From 23fd8e3d127ab20c430ec7b6b37b8a1f86342943 Mon Sep 17 00:00:00 2001 From: skuli434 <skuli434@ispconfig3> Date: Thu, 22 Dec 2011 09:28:30 -0500 Subject: [PATCH] myispconfig --- interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng | 12 interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_right_round.png | 0 interface/ispconfig/interface/themes/default/icons/x16/drill_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng | 18 interface/ispconfig/interface/sites/lib/lang/hu_database.lng | 25 interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng | 26 interface/ispconfig/interface/mail/list/spamfilter_users.list.php | 108 interface/ispconfig/interface/sites/lib/lang/es.lng | 22 interface/ispconfig/interface/sites/lib/lang/pl_web_domain.lng | 60 interface/ispconfig/interface/mail/lib/lang/br_mail_transport.lng | 10 interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/image.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_shell_user.lng | 23 interface/ispconfig/interface/themes/default/icons/x16/wrench_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ro.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/link.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ca.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_red.png | 0 interface/ispconfig/interface/client/lib/lang/en_client_template.lng | 61 interface/ispconfig/interface/mail/spamfilter_whitelist_list.php | 24 interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng | 4 interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3_mix.png | 0 interface/ispconfig/interface/themes/default/icons/x16/film_exclamation.png | 0 interface/ispconfig/interface/web/tools/user_settings.php | 97 interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng | 8 interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/x16-list/flag_black.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng | 15 interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng | 42 interface/ispconfig/interface/dns/lib/lang/br.lng | 20 interface/ispconfig/server/conf/error/gr/404.html | 61 interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/en_mail_transport.lng | 10 interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng | 9 interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng | 16 interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng | 18 interface/ispconfig/interface/sites/lib/lang/tr.lng | 22 interface/ispconfig/interface/themes/default/yaml/screen/basemod_draft.css | 70 interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/disc_arrow.png | 0 interface/ispconfig/server/lib/mysql_clientdb.conf | 7 interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/lock__minus.png | 0 interface/ispconfig/interface/dns/dns_template_list.php | 24 interface/ispconfig/interface/themes/default/icons/x16/eraser.png | 0 interface/ispconfig/server/conf/vhost.conf.master | 350 interface/ispconfig/interface/monitor/lib/lang/ja_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/lightning__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sort__arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/mail_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart_half.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/pl_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/flags/vg.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/flags/jp.png | 0 interface/ispconfig/interface/admin/form/server_config.tform.php | 750 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy.lng | 39 interface/ispconfig/interface/client/lib/lang/fi_client_del.lng | 6 interface/ispconfig/interface/sites/templates/web_domain_redirect.htm | 28 interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng | 29 interface/ispconfig/interface/themes/default/icons/flags/gw.png | 0 interface/ispconfig/interface/themes/default/icons/x16/image_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/script_code.png | 0 interface/ispconfig/interface/mymodule/lib/admin.conf.php | 7 interface/ispconfig/interface/client/lib/lang/nl_reseller.lng | 93 interface/ispconfig/interface/themes/default/icons/x16/envelope_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/slash.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/mx.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebook_arrow.png | 0 interface/ispconfig/interface/sites/cron_del.php | 64 interface/ispconfig/interface/themes/default/icons/x16/equalizer_exclamation.png | 0 interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/sn.png | 0 interface/ispconfig/interface/themes/default/icons/x16/gear__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x12/rss_round.png | 0 interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng | 15 interface/ispconfig/interface/sites/lib/lang/fr.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/question_shield.png | 0 interface/ispconfig/interface/admin/templates/software_repo_list.htm | 56 interface/ispconfig/interface/themes/default/icons/flags/bb.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cassette_minus.png | 0 interface/ispconfig/interface/client/lib/lang/tr_client.lng | 94 interface/ispconfig/interface/help/lib/lang/pt.lng | 10 interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/camera__arrow.png | 0 interface/ispconfig/interface/monitor/lib/lang/ru_datalog_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pill_minus.png | 0 interface/ispconfig/interface/monitor/lib/lang/it_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/gear.png | 0 interface/ispconfig/interface/themes/default/icons/x16/photo_album__minus.png | 0 interface/ispconfig/server/lib/classes/getconf.inc.php | 65 interface/ispconfig/interface/designer/lib/lang/es_form_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/pictures_exclamation.png | 0 interface/ispconfig/interface/sites/templates/ftp_user_advanced_client.htm | 22 interface/ispconfig/interface/themes/default/icons/flags/fi.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mail_open.png | 0 interface/ispconfig/interface/login/lib/lang/pl.lng | 17 interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/bg_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/mail/mail_domain_catchall_list.php | 26 interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng | 29 interface/ispconfig/interface/themes/default/icons/x16/door_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/se_shell_user.lng | 22 interface/ispconfig/interface/monitor/list/log.list.php | 90 interface/ispconfig/interface/sites/lib/lang/es_database.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/receipts.png | 0 interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm | 28 interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng | 6 interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/fi_cron_list.lng | 12 interface/ispconfig/interface/mail/mail_domain_edit.php | 327 interface/ispconfig/interface/client/lib/lang/en_client_del.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/plus_circle.png | 0 interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng | 6 interface/ispconfig/interface/help/lib/lang/fr_support_message.lng | 7 interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/mails_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/flags/iq.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/tag__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folder__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/film_small.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng | 15 interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng | 7 interface/ispconfig/interface/admin/templates/language_list.htm | 47 interface/ispconfig/interface/themes/default/icons/x16/chain_pencil.png | 0 interface/ispconfig/interface/sites/web_aliasdomain_list.php | 55 interface/ispconfig/interface/js/yui/treeview/assets/lp.gif | 0 interface/ispconfig/interface/themes/default/icons/x16-list/star_blue.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng | 15 interface/ispconfig/interface/help/lib/lang/it.lng | 9 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config.lng | 20 interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng | 15 interface/ispconfig/server/plugins-enabled/mail_plugin.inc.php | 311 interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/inbox.png | 0 interface/ispconfig/interface/themes/default/icons/x16/report_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng | 8 interface/ispconfig/interface/monitor/lib/lang/es_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_090.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small_pin.png | 0 interface/ispconfig/interface/client/lib/admin.conf.php | 2 interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist.lng | 9 interface/ispconfig/interface/sites/ajax_get_ip.php | 56 interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng | 7 interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng | 16 interface/ispconfig/interface/mail/form/mail_relay_recipient.tform.php | 104 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_315.png | 0 interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng | 8 interface/ispconfig/interface/client/form/client_template.tform.php | 482 interface/ispconfig/interface/js/yui/reset/README | 25 interface/ispconfig/interface/monitor/lib/lang/fr.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/book__plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tm.png | 0 interface/ispconfig/interface/themes/default/icons/x12/bar_graph.png | 0 interface/ispconfig/server/scripts/update_from_tgz.sh | 22 interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng | 7 interface/ispconfig/interface/keepalive.php | 36 interface/ispconfig/interface/login/lib/lang/se.lng | 17 interface/ispconfig/interface/js/yui/calendar/assets/calendar.css | 197 interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_270.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_alias_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/crown_silver.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_mail_user.lng | 39 interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_text.png | 0 interface/ispconfig/interface/themes/default/icons/x16/key__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter.lng | 17 interface/ispconfig/interface/themes/default/icons/x16-list/rss_round.png | 0 interface/ispconfig/interface/help/templates/support_message_list.htm | 53 interface/ispconfig/interface/themes/default/icons/x16/balloon__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/tag__exclamation.png | 0 interface/ispconfig/interface/content.php | 83 interface/ispconfig/interface/themes/default/icons/flags/ly.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng | 26 interface/ispconfig/server/conf/error/en/503.html | 61 interface/ispconfig/interface/themes/default/icons/x16/media_players_arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/screwdriver_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_user_list.lng | 8 interface/ispconfig/interface/sites/database_edit.php | 338 interface/ispconfig/interface/sites/templates/database_list.htm | 64 interface/ispconfig/interface/help/lib/module.conf.php | 60 interface/ispconfig/interface/help/lib/lang/hu.lng | 9 interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16-list/upload.png | 0 interface/ispconfig/interface/sites/lib/lang/en_ftp_user_list.lng | 8 interface/ispconfig/interface/js/yui/event/event-min.js | 84 interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng | 27 interface/ispconfig/interface/admin/software_repo_list.php | 52 interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng | 16 interface/ispconfig/interface/mail/mail_get_edit.php | 109 interface/ispconfig/interface/themes/default/icons/x16/document_shred.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng | 24 interface/ispconfig/interface/themes/default/icons/x16/cross_small_circle.png | 0 interface/ispconfig/interface/sites/lib/lang/fi_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/sites/lib/lang/ru_cron.lng | 22 interface/ispconfig/interface/admin/lib/lang/en_users_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng | 12 interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist_list.lng | 10 interface/ispconfig/interface/mail/spamfilter_blacklist_del.php | 51 interface/ispconfig/interface/themes/default/icons/x12/accept.png | 0 interface/ispconfig/interface/mail/mail_forward_edit.php | 141 interface/ispconfig/interface/themes/default/icons/flags/sy.png | 0 interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng | 8 interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng | 8 interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/books__pencil.png | 0 interface/ispconfig/interface/monitor/lib/lang/bg_datalog_list.lng | 8 interface/ispconfig/server/plugins-enabled/cron_jailkit_plugin.inc.php | 328 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy.lng | 38 interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter.lng | 18 interface/ispconfig/interface/themes/default/icons/x16-list/flag_red.png | 0 interface/ispconfig/interface/themes/default/icons/x16/plug.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipts_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/tr_cron_list.lng | 12 interface/ispconfig/interface/mail/form/mail_user_filter.tform.php | 135 interface/ispconfig/server/plugins-enabled/postfix_filter_plugin.inc.php | 153 interface/ispconfig/interface/sites/lib/lang/hu_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/paint_can_exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng | 15 interface/ispconfig/interface/client/lib/lang/nl_client.lng | 94 interface/ispconfig/interface/themes/default/icons/flags/mm.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng | 9 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/eraser_arrow.png | 0 interface/ispconfig/interface/themes/default/yaml/debug/debug.css | 157 interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng | 8 interface/ispconfig/interface/mail/templates/mail_alias_list.htm | 57 interface/ispconfig/interface/themes/default/icons/flags/fam.png | 0 interface/ispconfig/server/conf/error/pl/404.html | 61 interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng | 15 interface/ispconfig/server/plugins-enabled/getmail_plugin.inc.php | 163 interface/ispconfig/interface/themes/default/css/patches/central.css | 37 interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng | 16 interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng | 6 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist.lng | 10 interface/ispconfig/interface/themes/default/icons/x16-list/flag_blue.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/clipboard__pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/dk.png | 0 interface/ispconfig/interface/themes/default/icons/x16/playing_card_pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng | 16 interface/ispconfig/interface/js/yui/event/event.js | 2054 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/fi_cron.lng | 21 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users.lng | 9 interface/ispconfig/interface/designer/templates/module_list.htm | 18 interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng | 14 interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng | 7 interface/ispconfig/interface/client/lib/lang/nl_client_del.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/box__pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng | 6 interface/ispconfig/interface/sites/lib/lang/se_web_sites_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/br_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/js/yui/animation/animation-min.js | 75 interface/ispconfig/interface/themes/default/icons/flags/gh.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter.lng | 17 interface/ispconfig/server/conf/error/sr/401.html | 61 interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/book_small_brown.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bell__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/stamp_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng | 15 interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng | 24 interface/ispconfig/interface/mail/lib/lang/fi_mail_user.lng | 39 interface/ispconfig/interface/admin/lib/lang/it_system_config.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/bank_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/hu_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/templates/listpage.tpl.htm | 1 interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_plus.png | 0 interface/ispconfig/interface/js/yui/container/container_core.js | 2919 interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng | 7 interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng | 11 interface/ispconfig/interface/client/lib/lang/en_client.lng | 97 interface/ispconfig/interface/themes/default/icons/x16/table__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng | 15 interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng | 6 interface/ispconfig/interface/client/lib/lang/de_clients_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/gd.png | 0 interface/ispconfig/interface/themes/default/icons/x16/paint_can_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/fr_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/color_small.png | 0 interface/ispconfig/interface/admin/list/remote_user.list.php | 65 interface/ispconfig/interface/themes/default/icons/x16/socket_exclamation.png | 0 interface/ispconfig/interface/web/tools/lib/lang/tr.lng | 6 interface/ispconfig/interface/sites/lib/lang/br_web_subdomain.lng | 40 interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/mails_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/films_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/report_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pictures_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/se_language_list.lng | 7 interface/ispconfig/interface/js/yui/connection/README | 182 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users.lng | 8 interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng | 8 interface/ispconfig/interface/mail/templates/mail_whitelist_list.htm | 60 interface/ispconfig/interface/themes/default/icons/x16/balloons_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/lightning_small.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng | 42 interface/ispconfig/interface/mail/lib/lang/sk_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/key.png | 0 interface/ispconfig/interface/themes/default/icons/flags/gs.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pipette_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipts_arrow.png | 0 interface/ispconfig/server/conf/error/hu/503.html | 61 interface/ispconfig/interface/admin/lib/lang/ru_users.lng | 29 interface/ispconfig/interface/web/tools/lib/lang/es_usersettings.lng | 8 interface/ispconfig/interface/mail/spamfilter_blacklist_list.php | 24 interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng | 15 interface/ispconfig/interface/sites/form/web_domain.tform.php | 463 interface/ispconfig/interface/themes/default/icons/x16/pencil_small.png | 0 interface/ispconfig/interface/sites/lib/lang/ru_web_sites_stats_list.lng | 9 interface/ispconfig/server/conf/error/si/401.html | 61 interface/ispconfig/interface/sites/lib/lang/bg.lng | 22 interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng | 14 interface/ispconfig/interface/themes/default/icons/x16/scripts__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x32/state_unknown.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/box__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/microphone_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_transport.lng | 10 interface/ispconfig/interface/mail/mail_user_list.php | 44 interface/ispconfig/interface/themes/default/icons/flags/fm.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tags__arrow.png | 0 interface/ispconfig/interface/themes/default/yaml/core/slim_iehacks.css | 36 interface/ispconfig/interface/mail/lib/lang/it_mail_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/kz.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cross_circle_frame.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_web_sites_stats_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x12/double_comment.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/camera.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_domain.lng | 13 interface/ispconfig/interface/mail/lib/lang/it_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/drill_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_user_stats_list.lng | 8 interface/ispconfig/interface/monitor/lib/lang/es.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/calendar__exclamation.png | 0 interface/ispconfig/interface/admin/form/server_ip.tform.php | 125 interface/ispconfig/interface/themes/default/icons/x16/notebooks_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/address_book_blue.png | 0 interface/ispconfig/server/conf/error/hu/500.html | 61 interface/ispconfig/interface/sites/templates/shell_user_edit.htm | 62 interface/ispconfig/interface/js/yui/reset-fonts-grids/reset-fonts-grids.css | 9 interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng | 16 interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng | 24 interface/ispconfig/interface/admin/lib/lang/it_users_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/sk.lng | 20 interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng | 7 interface/ispconfig/interface/mail/lib/module.conf.php | 125 interface/ispconfig/interface/sites/web_sites_stats.php | 64 interface/ispconfig/server/lib/classes/plugins.inc.php | 130 interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm | 22 interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter.lng | 17 interface/ispconfig/interface/sites/lib/lang/pl_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/book.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wallet_pencil.png | 0 interface/ispconfig/interface/js/yui/grids/README | 48 interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng | 7 interface/ispconfig/server/conf/error/br/405.html | 61 interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/flags/mt.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter.lng | 9 interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng | 8 interface/ispconfig/interface/help/lib/admin.conf.php | 8 interface/ispconfig/interface/mail/lib/lang/se_mail_forward.lng | 7 interface/ispconfig/nbproject/project.properties | 8 interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng | 15 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/documents_stack.png | 0 interface/ispconfig/interface/sites/ftp_user_list.php | 55 interface/ispconfig/interface/themes/default/icons/x16/blogs_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x12/star_blue.png | 0 interface/ispconfig/interface/client/lib/lang/sk_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/x16/funnel_exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng | 15 interface/ispconfig/interface/sites/lib/lang/fr_web_domain_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng | 7 interface/ispconfig/interface/admin/lib/lang/it_server.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/images_arrow.png | 0 interface/ispconfig/interface/designer/templates/module_nav_edit.htm | 24 interface/ispconfig/interface/themes/default/icons/x16/script.png | 0 interface/ispconfig/interface/designer/module_list.php | 69 interface/ispconfig/interface/themes/default/icons/flags/sj.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/images_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng | 8 interface/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php | 352 interface/ispconfig/interface/client/lib/lang/es_reseller.lng | 93 interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config.lng | 20 interface/ispconfig/interface/client/templates/reseller_edit_address.htm | 101 interface/ispconfig/interface/web/tools/lib/lang/fr.lng | 6 interface/ispconfig/interface/mail/lib/lang/hu_mail_transport.lng | 10 interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng | 15 interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng | 7 interface/ispconfig/interface/admin/lib/lang/ro_groups.lng | 5 interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/sort_quantity_descending.png | 0 interface/ispconfig/interface/sites/lib/lang/se_web_domain.lng | 60 interface/ispconfig/interface/mail/lib/lang/tr_mail_alias_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/fr_ftp_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_mail_alias.lng | 11 interface/ispconfig/interface/sites/lib/lang/pl_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/sites/lib/lang/br_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/key__pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/wand_arrow.png | 0 interface/ispconfig/interface/web/tools/lib/lang/bg_usersettings.lng | 8 interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/layout.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pin_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/layout_3_mix.png | 0 interface/ispconfig/server/mods-available/database_module.inc.php | 103 interface/ispconfig/interface/themes/default/icons/x16/home_minus.png | 0 interface/ispconfig/interface/dns/lib/lang/de.lng | 20 interface/ispconfig/interface/mail/form/mail_user.tform.php.orig | 280 interface/ispconfig/interface/sites/lib/lang/de_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/hk.png | 0 interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng | 6 interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/bookmark__pencil.png | 0 interface/ispconfig/nbproject/project.xml | 9 interface/ispconfig/interface/mail/lib/lang/it_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_135.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_get.lng | 16 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/sites/templates/web_subdomain_list.htm | 60 interface/ispconfig/interface/themes/default/icons/flags/dz.png | 0 interface/ispconfig/interface/client/lib/lang/it_client_del.lng | 6 interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng | 24 interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng | 9 interface/ispconfig/interface/dns/templates/dns_template_list.htm | 53 interface/ispconfig/interface/monitor/lib/lang/se_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/stamp_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/blogs.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_users.lng | 28 interface/ispconfig/interface/admin/lib/lang/bg.lng | 40 interface/ispconfig/interface/themes/default/icons/x16/chain_exclamation.png | 0 interface/ispconfig/interface/web/tools/lib/menu.d/statistics.menu.php | 25 interface/ispconfig/interface/sites/lib/lang/tr_shell_user.lng | 22 interface/ispconfig/interface/mail/lib/lang/se_mail_domain.lng | 13 interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/wrench.png | 0 interface/ispconfig/interface/js/yui/slider/slider.js | 1222 interface/ispconfig/interface/mymodule/list/support_message.list.php | 63 interface/ispconfig/interface/sites/lib/lang/fi_shell_user.lng | 22 interface/ispconfig/interface/admin/lib/module.conf.php | 174 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/js/yui/logger/logger-min.js | 63 interface/ispconfig/interface/sites/lib/lang/tr_web_domain.lng | 60 interface/ispconfig/interface/designer/index.php | 0 interface/ispconfig/interface/themes/default/icons/x16/trophy_exclamation.png | 0 interface/ispconfig/interface/sites/lib/lang/pl_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/documents_text.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter.lng | 9 interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/ag.png | 0 interface/ispconfig/interface/themes/default/icons/x12/flag_green.png | 0 interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/hammer__arrow.png | 0 interface/ispconfig/interface/client/lib/lang/pt_reseller.lng | 94 interface/ispconfig/interface/mail/lib/lang/es_mail_forward_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/se_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/envelope_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/question_frame.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng | 16 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist.lng | 10 interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark__small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/qa.png | 0 interface/ispconfig/interface/dns/lib/lang/tr.lng | 20 interface/ispconfig/interface/themes/default/icons/flags/bm.png | 0 interface/ispconfig/interface/themes/default/icons/x16/table__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/script__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter.lng | 9 interface/ispconfig/interface/designer/lib/lang/de_form_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/blog__plus.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_config_getmail_edit.htm | 22 interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/designer/lib/lang/fr.lng | 2 interface/ispconfig/interface/themes/default/icons/x16-list/bar_graph.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wall__pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_users.lng | 28 interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng | 8 interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist_list.lng | 10 interface/ispconfig/interface/web/tools/lib/lang/de.lng | 6 interface/ispconfig/interface/js/yui/tabview/assets/border_tabs.css | 54 interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist.lng | 9 interface/ispconfig/server/conf/error/si/404.html | 61 interface/ispconfig/server/conf/apache_apps.vhost.master | 42 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users_list.lng | 10 interface/ispconfig/interface/themes/default/images/screen_bg.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng | 14 interface/ispconfig/server/mods-enabled/dns_module.inc.php | 128 interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist.lng | 9 interface/ispconfig/interface/admin/lib/lang/es_server.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/puzzle__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/flags/az.png | 0 interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/ticket_pencil.png | 0 interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/tr_mail_transport.lng | 10 interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_nrm_1.gif | 0 interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/binocular_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cross_circle.png | 0 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ja_mail_alias_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall.lng | 9 interface/ispconfig/interface/admin/software_package_list.php | 169 interface/ispconfig/interface/js/yui/button/button-beta-debug.js | 4061 + interface/ispconfig/interface/themes/default/icons/x16/layout_2_equal.png | 0 interface/ispconfig/interface/themes/default/icons/flags/mq.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/fi_database.lng | 25 interface/ispconfig/interface/monitor/templates/syslog_list.htm | 56 interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist_list.lng | 10 interface/ispconfig/interface/admin/templates/remote_user_list.htm | 54 interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/receipt_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_users.lng | 28 interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm | 38 interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall.lng | 10 interface/ispconfig/interface/client/lib/lang/en_reseller.lng | 96 interface/ispconfig/interface/admin/language_list.php | 108 interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng | 29 interface/ispconfig/interface/designer/lib/lang/es.lng | 2 interface/ispconfig/interface/sites/lib/lang/ru_database.lng | 26 interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng | 15 interface/ispconfig/interface/admin/lib/lang/hu_server.lng | 13 interface/ispconfig/interface/themes/default/icons/flags/kg.png | 0 interface/ispconfig/interface/sites/lib/lang/nl_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/folder.png | 0 interface/ispconfig/interface/sites/templates/web_domain_edit.htm | 120 interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng | 7 interface/ispconfig/interface/login/lib/lang/hu.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/layout_header_2.png | 0 interface/ispconfig/interface/themes/default/icons/x16/music.png | 0 interface/ispconfig/server/conf/apache_ispconfig.conf.master | 43 interface/ispconfig/interface/admin/server_edit.php | 86 interface/ispconfig/interface/designer/lib/lang/pl.lng | 2 interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng | 8 interface/ispconfig/interface/sites/lib/lang/br.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/blog__pencil.png | 0 interface/ispconfig/interface/client/lib/lang/pt_client.lng | 95 interface/ispconfig/interface/client/lib/lang/ru.lng | 14 interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/drawer_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/paint_can_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng | 7 interface/ispconfig/interface/mail/list/mail_forward.list.php | 79 interface/ispconfig/interface/js/yui/tabview/tabview.js | 1021 interface/ispconfig/interface/mail/lib/lang/br_mail_forward_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng | 26 interface/ispconfig/interface/themes/default/icons/x16/plus_shield.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng | 26 interface/ispconfig/server/plugins-available/postfix_filter_plugin.inc.php | 153 interface/ispconfig/server/conf/error/nl/404.html | 61 interface/ispconfig/interface/mail/lib/lang/nl_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/notebooks_pencil.png | 0 interface/ispconfig/server/scripts/create_jailkit_programs.sh | 20 interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng | 7 interface/ispconfig/interface/client/lib/lang/se_client_del.lng | 6 interface/ispconfig/interface/client/templates/resellers_list.htm | 63 interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/client/lib/lang/se_reseller.lng | 93 interface/ispconfig/interface/themes/default/icons/flags/bj.png | 0 interface/ispconfig/interface/mail/templates/mail_get_edit.htm | 54 interface/ispconfig/server/conf/error/es/401.html | 61 interface/ispconfig/interface/admin/lib/lang/it_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/tags__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/stamp_pencil.png | 0 interface/ispconfig/server/lib/classes/tpl_error.inc.php | 92 interface/ispconfig/interface/web/tools/lib/lang/br_usersettings.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_firewall.lng | 11 interface/ispconfig/interface/mail/templates/mail_blacklist_list.htm | 60 interface/ispconfig/interface/admin/remote_user_list.php | 24 interface/ispconfig/interface/sites/lib/lang/tr_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/star__pencil.png | 0 interface/ispconfig/interface/sites/templates/web_domain_stats.htm | 22 interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng | 29 interface/ispconfig/server/lib/app.inc.php | 181 interface/ispconfig/interface/client/list/client.list.php | 87 interface/ispconfig/interface/js/yui/menu/assets/menuchk8_hov_1.gif | 0 interface/ispconfig/interface/themes/default/icons/x16/discs_pencil.png | 0 interface/ispconfig/interface/admin/templates/software_update_list.htm | 49 interface/ispconfig/interface/mail/lib/lang/se_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x32/state_critical.png | 0 interface/ispconfig/interface/login/lib/lang/it.lng | 17 interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/clipboard_text.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/ru_strengthmeter.lng | 9 interface/ispconfig/interface/web/tools/lib/lang/nl_usersettings.lng | 8 interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng | 6 interface/ispconfig/interface/mail/form/mail_domain.tform.php | 101 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall.lng | 9 interface/ispconfig/interface/sites/lib/lang/pt_web_domain_list.lng | 9 interface/ispconfig/interface/themes/default/css/screen/uni-form.css | 130 interface/ispconfig/interface/themes/default/icons/x16/ticket_exclamation.png | 0 interface/ispconfig/interface/web/tools/lib/lang/bg.lng | 6 interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js | 3100 interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng | 43 interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist_list.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/gp.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/cards__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/logout.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng | 16 interface/ispconfig/interface/admin/groups_edit.php | 53 interface/ispconfig/interface/themes/default/icons/flags/no.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist.lng | 9 interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain_list.lng | 8 interface/ispconfig/interface/js/yui/grids/grids-min.css | 7 interface/ispconfig/interface/themes/default/icons/x16/image_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng | 16 interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng | 24 interface/ispconfig/interface/themes/default/icons/x16/socket_plus.png | 0 interface/ispconfig/interface/client/lib/lang/ru_client_template.lng | 58 interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/ga.png | 0 interface/ispconfig/interface/dns/form/dns_txt.tform.php | 156 interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist.lng | 10 interface/ispconfig/interface/admin/lib/lang/fr.lng | 40 interface/ispconfig/interface/web/tools/lib/module.conf.php | 38 interface/ispconfig/interface/admin/form/groups.tform.php | 112 interface/ispconfig/interface/dns/list/dns_template.list.php | 80 interface/ispconfig/interface/themes/default/icons/x16/bandaid_small.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter.lng | 10 interface/ispconfig/interface/sites/templates/web_aliasdomain_list.htm | 59 interface/ispconfig/interface/admin/lib/lang/hu_groups.lng | 5 interface/ispconfig/interface/themes/default/images/header_logo.png.old | 0 interface/ispconfig/interface/themes/default/icons/x16/folder__arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng | 15 interface/ispconfig/interface/strengthmeter/lib/lang/tr_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/kw.png | 0 interface/ispconfig/interface/client/lib/lang/de_client_template.lng | 57 interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng | 8 interface/ispconfig/interface/client/lib/lang/tr.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/chain_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config_list.lng | 5 interface/ispconfig/interface/admin/system_config_edit.php | 97 interface/ispconfig/interface/themes/default/icons/x16/music_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/home_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_database_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x12/calendar2.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng | 15 interface/ispconfig/interface/monitor/lib/lang/pl_syslog_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/it_database_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/tr_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/contrast_small_low.png | 0 interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng | 15 interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/en_shell_user.lng | 23 interface/ispconfig/interface/themes/default/icons/flags/by.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/flags/tt.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart_small_half.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/tr_web_domain_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/pin_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/fr_web_domain.lng | 60 interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall.lng | 9 interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/contrast__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/safe.png | 0 interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng | 6 interface/ispconfig/interface/sites/lib/lang/en_web_subdomain_list.lng | 8 interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng | 16 interface/ispconfig/interface/client/lib/lang/es.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/camera__exclamation.png | 0 interface/ispconfig/interface/admin/list/server_ip.list.php | 68 interface/ispconfig/interface/themes/default/icons/x16/door_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter.lng | 17 interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng | 42 interface/ispconfig/interface/mail/lib/lang/bg_mail_alias.lng | 11 interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng | 7 interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/light_bulb__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/picture_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_server.lng | 13 interface/ispconfig/interface/js/yui/history/history-experimental-debug.js | 649 interface/ispconfig/interface/mail/lib/lang/it_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16-list/pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_transport_list.lng | 10 interface/ispconfig/interface/themes/default/icons/flags/lr.png | 0 interface/ispconfig/interface/admin/lib/lang/de_language_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng | 6 interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/table.png | 0 interface/ispconfig/interface/admin/lib/lang/tr.lng | 40 interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/database_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/it_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/drawer_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/folder__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/world2.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart_small_empty.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tag__pencil.png | 0 interface/ispconfig/interface/client/client_template_del.php | 67 interface/ispconfig/interface/designer/lib/lang/de.lng | 2 interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng | 15 interface/ispconfig/interface/monitor/lib/lang/pt_datalog_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ro_mail_alias_list.lng | 8 interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_270.png | 0 interface/ispconfig/server/conf/error/pl/401.html | 61 interface/ispconfig/server/conf/error/fr/401.html | 61 interface/ispconfig/interface/mail/lib/lang/pl_mail_get_list.lng | 9 interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm | 46 interface/ispconfig/interface/dns/dns_hinfo_edit.php | 138 interface/ispconfig/interface/sites/list/database.list.php | 101 interface/ispconfig/interface/themes/default/icons/x32/state_error.png | 0 interface/ispconfig/interface/themes/default/icons/x16/star.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tag_label.png | 0 interface/ispconfig/interface/themes/default/icons/x16/images_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_alias.lng | 12 interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng | 16 interface/ispconfig/interface/sites/lib/admin.conf.php | 2 interface/ispconfig/interface/mail/list/spamfilter_policy.list.php | 116 interface/ispconfig/interface/themes/default/icons/x16/image_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lightning__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng | 26 interface/ispconfig/interface/js/yui/fonts/README | 13 interface/ispconfig/interface/themes/default/icons/flags/an.png | 0 interface/ispconfig/interface/sites/lib/lang/fr_shell_user_list.lng | 8 interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js | 214 interface/ispconfig/interface/admin/lib/lang/se_server_config.lng | 68 interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/ua.png | 0 interface/ispconfig/interface/web/tools/lib/lang/br.lng | 6 interface/ispconfig/interface/js/yui/dom/dom-min.js | 59 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer_gavel.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng | 15 interface/ispconfig/interface/dns/templates/dns_soa_edit.htm | 95 interface/ispconfig/interface/client/lib/lang/hu_reseller.lng | 93 interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng | 15 interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng | 24 interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter.lng | 17 interface/ispconfig/server/server.sh | 7 interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist.lng | 10 interface/ispconfig/interface/web/tools/lib/lang/ru.lng | 7 interface/ispconfig/interface/themes/default/icons/x16-list/stop_round.png | 0 interface/ispconfig/interface/mail/mail_aliasdomain_edit.php | 141 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/bell__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users_list.lng | 11 interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/databases.png | 0 interface/ispconfig/interface/js/yui/connection/connection-debug.js | 1082 interface/ispconfig/interface/client/lib/lang/it_clients_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x64/server.png | 0 interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng | 18 interface/ispconfig/interface/sites/lib/lang/ro_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/magnet__plus.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng | 7 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/gear__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/mail/mail_content_filter_del.php | 51 interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng | 8 interface/ispconfig/interface/admin/form/firewall.tform.php | 112 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/de_database.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/heart_empty.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/clock.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/cx.png | 0 interface/ispconfig/interface/sites/lib/lang/en_web_subdomain.lng | 40 interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng | 15 interface/ispconfig/interface/sites/lib/lang/sk_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/clock__pencil.png | 0 interface/ispconfig/interface/mymodule/templates/support_message_edit.html | 14 interface/ispconfig/server/conf/error/it/503.html | 61 interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet_descending.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng | 16 interface/ispconfig/interface/js/yui/container/container-debug.js | 4752 + interface/ispconfig/interface/themes/default/icons/x16/clock_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disk_small.png | 0 interface/ispconfig/interface/designer/lib/lang/de_form_show.lng | 18 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy.lng | 38 interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain.lng | 40 interface/ispconfig/interface/designer/templates/form_show.htm | 61 interface/ispconfig/interface/mail/form/mail_get.tform.php | 148 interface/ispconfig/interface/admin/lib/lang/es.lng | 40 interface/ispconfig/interface/themes/default/icons/flags/europeanunion.png | 0 interface/ispconfig/interface/themes/default/icons/x12/accept_green.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient.lng | 9 interface/ispconfig/interface/mail/lib/lang/sk.lng | 47 interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng | 15 interface/ispconfig/interface/admin/lib/lang/sk.lng | 40 interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall.lng | 9 interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/calculator_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/puzzle_disable.png | 0 interface/ispconfig/interface/themes/default/icons/x16/ticket_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pipette_exclamation.png | 0 interface/ispconfig/interface/js/yui/yahoo/yahoo.js | 433 interface/ispconfig/interface/designer/lib/lang/it_form_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/sk_mail_get.lng | 16 interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng | 16 interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist.lng | 10 interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng | 14 interface/ispconfig/interface/sites/lib/lang/fr_shell_user.lng | 22 interface/ispconfig/server/conf/error/fr/404.html | 61 interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ru_mail_forward.lng | 8 interface/ispconfig/interface/dns/lib/lang/bg.lng | 20 interface/ispconfig/interface/js/yui/treeview/treeview-debug.js | 2287 interface/ispconfig/interface/mail/lib/lang/pt_mail_forward_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/sk_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/vcard_add.png | 0 interface/ispconfig/interface/dns/templates/dns_rp_edit.htm | 38 interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/mail__exclamation.png | 0 interface/ispconfig/interface/client/templates/client_del.htm | 25 interface/ispconfig/interface/themes/default/icons/flags/sb.png | 0 interface/ispconfig/interface/mail/mail_transport_edit.php | 179 interface/ispconfig/interface/js/yui/tabview/README | 21 interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng | 17 interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist_list.lng | 10 interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/se_system_config.lng | 15 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/js/yui/history/history-experimental.js | 649 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users_list.lng | 10 interface/ispconfig/server/conf/error/cz/405.html | 61 interface/ispconfig/server/plugins-available/mail_plugin.inc.php | 311 interface/ispconfig/server/conf/error/en/500.html | 61 interface/ispconfig/interface/themes/default/icons/x16/puzzle__arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng | 6 interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng | 15 interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js | 2958 interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain.lng | 40 interface/ispconfig/interface/themes/default/icons/x16/bin.png | 0 interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/flags/scotland.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng | 6 interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm | 30 interface/ispconfig/interface/sites/lib/lang/es_web_subdomain.lng | 40 interface/ispconfig/interface/admin/lib/lang/ro_server.lng | 13 interface/ispconfig/interface/admin/templates/server_edit_services.htm | 70 interface/ispconfig/interface/mail/lib/lang/nl_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/balloons.png | 0 interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng | 9 interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng | 7 interface/ispconfig/interface/sites/lib/lang/se_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/bf.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/pl_users.lng | 28 interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_green.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ja_server.lng | 13 interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/disk.png | 0 interface/ispconfig/interface/themes/default/yaml/print/print_020_draft.css | 31 interface/ispconfig/interface/client/lib/lang/pl_client_del.lng | 6 interface/ispconfig/interface/help/lib/lang/hu_support_message.lng | 7 interface/ispconfig/interface/mail/lib/lang/tr_mail_alias.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/folder__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clipboard.png | 0 interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/it_language_export.lng | 6 interface/ispconfig/server/conf/error/si/405.html | 61 interface/ispconfig/server/conf/error/it/500.html | 61 interface/ispconfig/interface/themes/default/icons/x16/balloon__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng | 15 interface/ispconfig/interface/js/yui/button/assets/background.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng | 15 interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng | 26 interface/ispconfig/interface/themes/default/icons/x16/binocular.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pictures_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/palette_exclamation.png | 0 interface/ispconfig/interface/admin/templates/server_config_server_edit.htm | 51 interface/ispconfig/interface/themes/default/icons/x16/photo_album__arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_web_domain.lng | 61 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy.lng | 38 interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng | 15 interface/ispconfig/interface/mail/lib/lang/de_mail_get.lng | 16 interface/ispconfig/interface/sites/form/cron.tform.php | 189 interface/ispconfig/interface/client/lib/lang/fr.lng | 13 interface/ispconfig/interface/themes/default/icons/flags/cm.png | 0 interface/ispconfig/interface/admin/lib/lang/en_server_list.lng | 11 interface/ispconfig/interface/client/lib/lang/fi_client.lng | 94 interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng | 15 interface/ispconfig/interface/mail/spamfilter_policy_edit.php | 95 interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/cancel.png | 0 interface/ispconfig/interface/themes/default/icons/x16/shield__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/key_disable.png | 0 interface/ispconfig/interface/themes/default/icons/x16/chain_small.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng | 8 interface/ispconfig/interface/admin/firewall_del.php | 51 interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/calendar__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebooks.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_users.lng | 28 interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng | 6 interface/ispconfig/interface/sites/tools.inc.php | 126 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy.lng | 38 interface/ispconfig/interface/monitor/lib/lang/de.lng | 138 interface/ispconfig/interface/themes/default/icons/x12/pictures.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/photo_album__pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/de_web_sites_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/picture_plus.png | 0 interface/ispconfig/interface/mail/spamfilter_users_list.php | 24 interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng | 8 interface/ispconfig/interface/monitor/lib/admin.conf.php | 2 interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng | 8 interface/ispconfig/interface/robots.txt | 2 interface/ispconfig/interface/themes/default/icons/x16/equalizer_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pictures.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/funnel.png | 0 interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng | 8 interface/ispconfig/interface/dns/lib/lang/nl.lng | 20 interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/ticket_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/tr_web_sites_stats_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist.lng | 9 interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/door_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain_list.lng | 7 interface/ispconfig/server/conf/error/fi/404.html | 61 interface/ispconfig/interface/themes/default/icons/x16/books_stack.png | 0 interface/ispconfig/interface/mail/lib/admin.conf.php | 2 interface/ispconfig/interface/themes/default/icons/x12/minus_round.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/film.png | 0 interface/ispconfig/interface/web/tools/lib/lang/se.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/hammer.png | 0 interface/ispconfig/interface/client/lib/lang/bg_client_template.lng | 57 interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/sort__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart__pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng | 15 interface/ispconfig/interface/mail/lib/lang/pl_mail_domain.lng | 13 interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng | 15 interface/ispconfig/server/conf/mailfilter_move_junk.master | 19 interface/ispconfig/server/conf/error/sr/405.html | 61 interface/ispconfig/interface/themes/default/icons/x12/new.png | 0 interface/ispconfig/interface/sites/lib/lang/es_cron.lng | 21 interface/ispconfig/interface/dns/templates/dns_ns_edit.htm | 38 interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng | 24 interface/ispconfig/interface/themes/default/icons/x16-list/plus.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng | 15 interface/ispconfig/server/conf/error/cz/503.html | 61 interface/ispconfig/server/conf/error/nl/401.html | 61 interface/ispconfig/interface/mail/mail_domain_del.php | 92 interface/ispconfig/interface/themes/default/icons/x16/trophy_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/hammer__minus.png | 0 interface/ispconfig/interface/help/lib/lang/pl.lng | 9 interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/layout_split.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folders_plus.png | 0 interface/ispconfig/server/conf/error/es/404.html | 61 interface/ispconfig/interface/sites/lib/lang/br_cron_list.lng | 12 interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/bell__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/flags/ar.png | 0 interface/ispconfig/interface/admin/lib/lang/se_language_add.lng | 8 interface/ispconfig/interface/js/yui/treeview/assets/tree.css | 102 interface/ispconfig/interface/themes/default/icons/x16/picture_small_sunset.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sort_number_descending.png | 0 interface/ispconfig/interface/sites/lib/lang/de_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/table_delete_column.png | 0 interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng | 7 interface/ispconfig/interface/sites/lib/lang/sk_database.lng | 25 interface/ispconfig/interface/themes/default/icons/flags/lv.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebook_minus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/py.png | 0 interface/ispconfig/interface/admin/lib/lang/en_language_export.lng | 6 interface/ispconfig/interface/admin/lib/lang/pl_server.lng | 13 interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist.lng | 9 interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/eraser_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng | 7 interface/ispconfig/interface/dns/dns_srv_edit.php | 138 interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/home_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter.lng | 9 interface/ispconfig/interface/sites/lib/lang/pl_database.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wall_small_brick.png | 0 interface/ispconfig/interface/js/yui/menu/assets/map.gif | 0 interface/ispconfig/interface/sites/lib/lang/de_database_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/tr_mail_user_list.lng | 7 interface/ispconfig/interface/client/lib/lang/de_client.lng | 94 interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/flag.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/security_orange.png | 0 interface/ispconfig/interface/themes/default/icons/x16/drawer_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/ruler__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter.lng | 10 interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif | 0 interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/pt_ftp_user_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/ro_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng | 16 interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng | 6 interface/ispconfig/interface/designer/lib/lang/en_module_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/monitor/lib/lang/pl.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small_off.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng | 7 interface/ispconfig/interface/mail/mail_relay_recipient_list.php | 24 interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng | 42 interface/ispconfig/interface/themes/default/icons/flags/ci.png | 0 interface/ispconfig/interface/themes/default/icons/flags/gl.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_pin.png | 0 interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng | 12 interface/ispconfig/interface/mail/lib/lang/bg_mail_user_list.lng | 7 interface/ispconfig/interface/mail/templates/spamfilter_quarantine_edit.htm | 44 interface/ispconfig/interface/themes/default/icons/x16/lock.png | 0 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/mail/lib/lang/es_mail_user_stats_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng | 16 interface/ispconfig/interface/mail/mail_user_filter_del.php | 83 interface/ispconfig/interface/help/lib/lang/ja.lng | 9 interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain.lng | 40 interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/notebooks_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/plug_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng | 8 interface/ispconfig/interface/admin/lib/lang/it_users.lng | 28 interface/ispconfig/interface/themes/default/icons/x16/document__plus.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng | 17 interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_nrm_1.gif | 0 interface/ispconfig/interface/themes/default/icons/x16/tags__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x12/flag_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/cancel_round.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipt_text.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ie.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/arrow_045.png | 0 interface/ispconfig/interface/sites/lib/lang/de.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/equalizer.png | 0 interface/ispconfig/interface/themes/default/icons/x16/blogs_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/stamp_arrow.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/pill_pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng | 6 interface/ispconfig/interface/sites/lib/lang/sk_cron.lng | 21 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/se_users.lng | 28 interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng | 68 interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng | 8 interface/ispconfig/interface/mail/mail_forward_del.php | 51 interface/ispconfig/interface/themes/default/icons/flags/lc.png | 0 interface/ispconfig/interface/themes/default/icons/flags/pf.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_get.lng | 17 interface/ispconfig/server/conf/error/gr/400.html | 61 interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng | 7 interface/ispconfig/interface/js/uni-form/uni-form.jquery.js | 106 interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/se_users_list.lng | 9 interface/ispconfig/interface/help/templates/support_message_edit.htm | 33 interface/ispconfig/interface/themes/default/icons/x16/address_book__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x12/flag_yellow.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_groups.lng | 5 interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/briefcase_exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng | 22 interface/ispconfig/interface/dns/dns_template_del.php | 58 interface/ispconfig/interface/client/templates/client_template_edit_template.htm | 28 interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist_list.lng | 10 interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x12/article.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_180.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/databases_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/comment_blue.png | 0 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/js/yui/button/button-beta.js | 3949 + interface/ispconfig/interface/themes/default/icons/x16/plug_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/folders_exclamation.png | 0 interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng | 6 interface/ispconfig/interface/mail/form/spamfilter_config.tform.php | 275 interface/ispconfig/interface/themes/default/icons/x16/puzzle__minus.png | 0 interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng | 12 interface/ispconfig/server/conf/error/cz/403.html | 61 interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng | 7 interface/ispconfig/interface/mail/lib/lang/br_mail_forward.lng | 7 interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/mail/mail_domain_list.php | 27 interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/media_players.png | 0 interface/ispconfig/interface/admin/lib/lang/it_server_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/crown__plus.png | 0 interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config_list.lng | 5 interface/ispconfig/interface/admin/templates/remote_user_edit.htm | 41 interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist.lng | 9 interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm | 44 interface/ispconfig/interface/dns/templates/dns_wizard.htm | 80 interface/ispconfig/interface/mail/lib/lang/tr_mail_domain.lng | 13 interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng | 4 interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng | 26 interface/ispconfig/interface/themes/default/icons/x16/document_small.png | 0 interface/ispconfig/interface/mail/form/spamfilter_policy.tform.php | 382 interface/ispconfig/interface/themes/default/icons/x16/equalizer_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_get.lng | 16 interface/ispconfig/interface/client/lib/lang/fr_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/flags/as.png | 0 interface/ispconfig/interface/themes/default/icons/x16/eraser_exclamation.png | 0 interface/ispconfig/server/plugins-available/cron_plugin.inc.php | 239 interface/ispconfig/interface/mail/spamfilter_whitelist_edit.php | 119 interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng | 8 interface/ispconfig/interface/themes/default/images/favicon.ico | 0 interface/ispconfig/server/conf/error/es/405.html | 61 interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng | 8 interface/ispconfig/interface/help/lib/lang/en.lng | 10 interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/image_sunset.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebooks_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain.lng | 40 interface/ispconfig/interface/js/yui/treeview/assets/tn.gif | 0 interface/ispconfig/interface/themes/default/icons/flags/pe.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng | 11 interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng | 27 interface/ispconfig/interface/mail/templates/spamfilter_config_list.htm | 51 interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng | 16 interface/ispconfig/interface/themes/default/icons/flags/ir.png | 0 interface/ispconfig/server/conf/error/fi/500.html | 61 interface/ispconfig/interface/themes/default/icons/x12/arrow_left_blue_round.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config.lng | 20 interface/ispconfig/interface/designer/templates/module_edit.htm | 43 interface/ispconfig/interface/admin/templates/language_edit.htm | 29 interface/ispconfig/interface/themes/default/icons/x16/ruler__pencil.png | 0 interface/ispconfig/interface/sites/templates/shell_user_advanced.htm | 34 interface/ispconfig/interface/admin/templates/software_package_list.htm | 34 interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng | 15 interface/ispconfig/interface/strengthmeter/lib/lang/hu_strengthmeter.lng | 8 interface/ispconfig/interface/admin/remote_user_del.php | 62 interface/ispconfig/interface/client/reseller_list.php | 55 interface/ispconfig/server/plugins-available/software_update_plugin.inc.php | 178 interface/ispconfig/interface/mail/lib/lang/it_mail_user.lng | 41 interface/ispconfig/interface/admin/firewall_list.php | 52 interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/ticket_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/bg_web_domain.lng | 60 interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter_list.lng | 7 interface/ispconfig/interface/admin/templates/server_ip_edit.htm | 34 interface/ispconfig/interface/client/list/reseller.list.php | 87 interface/ispconfig/interface/designer/lib/lang/pt.lng | 3 interface/ispconfig/interface/mail/lib/lang/en_mail_domain.lng | 13 interface/ispconfig/interface/help/lib/lang/en_support_message.lng | 7 interface/ispconfig/interface/sites/lib/lang/en_database.lng | 25 interface/ispconfig/server/conf/error/fi/403.html | 61 interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng | 15 interface/ispconfig/interface/sites/lib/lang/se.lng | 22 interface/ispconfig/server/conf/error/br/503.html | 61 interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng | 15 interface/ispconfig/interface/admin/lib/lang/br_users_list.lng | 9 interface/ispconfig/interface/monitor/lib/lang/hu_datalog_list.lng | 8 interface/ispconfig/server/mods-available/dns_module.inc.php | 128 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng | 24 interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif | 0 interface/ispconfig/server/conf/error/en/405.html | 61 interface/ispconfig/interface/designer/lib/lang/es_form_show.lng | 18 interface/ispconfig/interface/themes/default/icons/x16/ticket_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/balloon_left.png | 0 interface/ispconfig/server/conf/error/pl/403.html | 61 interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng | 29 interface/ispconfig/interface/sites/lib/lang/ja_web_domain.lng | 60 interface/ispconfig/interface/themes/default/icons/x16/table__pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/ro.lng | 20 interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/newspaper.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/chain.png | 0 interface/ispconfig/interface/admin/templates/software_repo_edit.htm | 40 interface/ispconfig/interface/themes/default/icons/flags/hu.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain.lng | 41 interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/gear__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clipboard__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_suit.png | 0 interface/ispconfig/server/mods-available/client_module.inc.php | 96 interface/ispconfig/interface/designer/lib/lang/es_module_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy_list.lng | 10 interface/ispconfig/interface/designer/lib/lang/br.lng | 2 interface/ispconfig/interface/mail/lib/lang/ru_mail_user_stats_list.lng | 9 interface/ispconfig/interface/dns/dns_soa_edit.php | 222 interface/ispconfig/interface/themes/default/icons/x16/image_resize_actual.png | 0 interface/ispconfig/interface/dns/templates/dns_template_edit.htm | 38 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/client/templates/clients_list.htm | 63 interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng | 15 interface/ispconfig/interface/mail/lib/lang/hu_mail_get.lng | 16 interface/ispconfig/interface/mail/lib/lang/fr_mail_alias.lng | 11 interface/ispconfig/interface/mail/lib/lang/tr.lng | 47 interface/ispconfig/interface/themes/default/icons/flags/ng.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipts_text.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pin_pencil.png | 0 interface/ispconfig/server/conf/error/nl/400.html | 61 interface/ispconfig/interface/help/lib/lang/tr_support_message.lng | 7 interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/shield__exclamation.png | 0 interface/ispconfig/interface/js/yui/reset/reset.css | 15 interface/ispconfig/interface/js/yui/element/README | 7 interface/ispconfig/server/conf/error/pl/500.html | 61 interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x12/arrow_2_right_round.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/article.png | 0 interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng | 16 interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng | 5 interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng | 15 interface/ispconfig/interface/sites/lib/lang/pl.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/tag__minus.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng | 7 interface/ispconfig/interface/admin/templates/groups_edit.htm | 26 interface/ispconfig/interface/themes/default/icons/x16/color_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_user_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/mails_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/switch_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart.png | 0 interface/ispconfig/interface/mail/templates/mail_domain_catchall_list.htm | 57 interface/ispconfig/server/conf/php-cgi-starter.master | 7 interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng | 15 interface/ispconfig/interface/sites/lib/lang/fi_ftp_user_list.lng | 8 interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/database_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/home_exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/sk.lng | 2 interface/ispconfig/interface/sites/web_domain_list.php | 59 interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pipette.png | 0 interface/ispconfig/interface/themes/default/icons/x16/playing_card_plus.png | 0 interface/ispconfig/server/scripts/ispconfig_update.php | 109 interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall.lng | 9 interface/ispconfig/interface/client/lib/lang/tr_client_del.lng | 6 interface/ispconfig/interface/sites/lib/lang/ru.lng | 23 interface/ispconfig/interface/js/yui/grids/grids.css | 129 interface/ispconfig/interface/themes/default/icons/x16/playing_card.png | 0 interface/ispconfig/interface/themes/default/icons/x16/newspaper_plus.png | 0 interface/ispconfig/interface/js/yui/treeview/assets/tmh.gif | 0 interface/ispconfig/interface/admin/lib/lang/se_server_list.lng | 11 interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng | 11 interface/ispconfig/interface/login/lib/lang/de.lng | 17 interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng | 8 interface/ispconfig/interface/mail/lib/lang/de.lng | 47 interface/ispconfig/interface/themes/default/icons/x16/printer.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/themes/default/css/screen/basemod.css | 118 interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng | 4 interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng | 24 interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng | 11 interface/ispconfig/interface/mail/lib/lang/nl_mail_domain.lng | 13 interface/ispconfig/interface/sites/database_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/document_text.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_players_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users_list.lng | 10 interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng | 16 interface/ispconfig/interface/js/yui/fonts/fonts.css | 29 interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/ja.lng | 40 interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng | 15 interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/info.png | 0 interface/ispconfig/interface/themes/default/icons/flags/mw.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain.lng | 11 interface/ispconfig/interface/themes/default/icons/x16-list/accept.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/tables_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/wall__arrow.png | 0 interface/ispconfig/server/conf/error/it/400.html | 61 interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng | 6 interface/ispconfig/interface/mail/lib/lang/br_mail_user_list.lng | 7 interface/ispconfig/interface/admin/templates/users_groups_edit.htm | 30 interface/ispconfig/interface/themes/default/icons/x16/clipboard__minus.png | 0 interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm | 38 interface/ispconfig/interface/themes/default/icons/x16/address_book__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/exclamation_shield.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wrench_exclamation.png | 0 interface/ispconfig/server/conf/error/de/403.html | 61 interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter.lng | 9 interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter.lng | 17 interface/ispconfig/interface/themes/default/icons/flags/ad.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disc_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter.lng | 10 interface/ispconfig/interface/dns/form/dns_alias.tform.php | 161 interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/disc.png | 0 interface/ispconfig/interface/js/yui/calendar/assets/callt.gif | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_forward.lng | 7 interface/ispconfig/interface/mail/lib/lang/es.lng | 47 interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter.lng | 9 interface/ispconfig/interface/sites/lib/lang/ro_web_sites_stats_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng | 15 interface/ispconfig/interface/mail/lib/lang/en_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16-list/arrow_left_blue_round.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_groups.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/pt.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tn.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disk__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/arrow_090.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng | 29 interface/ispconfig/interface/themes/default/icons/flags/br.png | 0 interface/ispconfig/interface/themes/default/icons/x16/scripts__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/wrench_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng | 6 interface/ispconfig/interface/mail/lib/lang/de_mail_transport_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/bg_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/tags.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder.png | 0 interface/ispconfig/interface/login/lib/lang/tr.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/bookmark__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebook.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/tr_mail_get_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/arrow_315_small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/sz.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipt_shred.png | 0 interface/ispconfig/interface/themes/default/icons/x16/hammer_screwdriver.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng | 6 interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng | 16 interface/ispconfig/interface/admin/lib/lang/en_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/media_players_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_alias.lng | 11 interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/sticky_note_pin.png | 0 interface/ispconfig/interface/admin/lib/lang/ro.lng | 40 interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng | 15 interface/ispconfig/interface/mail/templates/mail_content_filter_list.htm | 60 interface/ispconfig/interface/monitor/datalog_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/arrow_090_small.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng | 30 interface/ispconfig/interface/themes/default/icons/x16/gear__pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng | 8 interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/binocular_plus.png | 0 interface/ispconfig/interface/mail/mail_user_edit.php | 328 interface/ispconfig/interface/themes/default/icons/flags/mn.png | 0 interface/ispconfig/interface/admin/lib/lang/en_server_config.lng | 68 interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng | 6 interface/ispconfig/interface/web/tools/lib/lang/en_usersettings.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/bn.png | 0 interface/ispconfig/interface/themes/default/icons/x16/broom_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/nl.lng | 22 interface/ispconfig/interface/themes/default/icons/flags/pa.png | 0 interface/ispconfig/interface/themes/default/icons/x16/book__arrow.png | 0 interface/ispconfig/interface/dns/form/dns_aaaa.tform.php | 159 interface/ispconfig/interface/themes/default/icons/x16/database_small.png | 0 interface/ispconfig/interface/sites/list/shell_user.list.php | 99 interface/ispconfig/interface/admin/lib/lang/se_language_export.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/newspaper_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/eraser_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy.lng | 38 interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng | 24 interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/dj.png | 0 interface/ispconfig/interface/themes/default/icons/x16/drill_pencil.png | 0 interface/ispconfig/interface/mail/spamfilter_policy_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16-list/question_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipts_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folder_open_image.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pipette_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_090.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wall_small.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_user.lng | 39 interface/ispconfig/interface/mail/templates/mail_user_stats_list.htm | 52 interface/ispconfig/interface/themes/default/icons/x16/ticket.png | 0 interface/ispconfig/interface/themes/default/icons/x12/article_text.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_gray.png | 0 interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng | 9 interface/ispconfig/interface/mail/form/mail_user_filter.tform.php.orig | 135 interface/ispconfig/interface/themes/default/icons/x16/books__minus.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng | 8 interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter_list.lng | 8 interface/ispconfig/interface/mail/templates/mail_whitelist_edit.htm | 41 interface/ispconfig/interface/themes/default/icons/x16/arrow_225.png | 0 interface/ispconfig/interface/themes/default/icons/flags/nz.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist.lng | 9 interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/newspaper_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/picture_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_player_small_green.png | 0 interface/ispconfig/interface/themes/default/icons/flags/aw.png | 0 interface/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php | 189 interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist.lng | 9 interface/ispconfig/server/lib/classes/tpl.inc.php | 1501 interface/ispconfig/interface/themes/default/icons/x16/puzzle.png | 0 interface/ispconfig/interface/js/yui/calendar/calendar-min.js | 116 interface/ispconfig/interface/client/lib/lang/ro_client_del.lng | 6 interface/ispconfig/interface/themes/default/icons/x12/upload.png | 0 interface/ispconfig/interface/themes/default/icons/x16/box__exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/br_module_show.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/puzzle__plus.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/hu_users.lng | 28 interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/magnet__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/client/client_del.php | 166 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/database.png | 0 interface/ispconfig/interface/monitor/log_list.php | 55 interface/ispconfig/interface/sites/lib/lang/ru_web_domain.lng | 61 interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng | 8 interface/ispconfig/interface/mail/mail_whitelist_del.php | 51 interface/ispconfig/interface/js/scrigo.js.php | 503 interface/ispconfig/interface/js/yui/slider/slider-debug.js | 1259 interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng | 7 interface/ispconfig/interface/mail/mail_content_filter_edit.php | 75 interface/ispconfig/interface/admin/lib/lang/de_language_import.lng | 8 interface/ispconfig/interface/mail/lib/lang/br_mail_domain_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_list.lng | 7 interface/ispconfig/interface/admin/server_del.php | 51 interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/wall__plus.png | 0 interface/ispconfig/interface/designer/lib/lang/it_form_show.lng | 18 interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/light_bulb__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall.lng | 9 interface/ispconfig/interface/sites/form/web_subdomain.tform.php | 136 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bandaid_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy_list.lng | 10 interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng | 29 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config.lng | 20 interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng | 15 interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng | 16 interface/ispconfig/interface/monitor/lib/lang/nl_datalog_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_mail_transport_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/br_database.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/bandaid.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium_left.png | 0 interface/ispconfig/interface/themes/default/icons/x16/star__minus.png | 0 interface/ispconfig/interface/themes/default/yaml/core/iehacks.css | 310 interface/ispconfig/interface/sites/lib/lang/bg_web_sites_stats_list.lng | 8 interface/ispconfig/server/conf/error/en/400.html | 61 interface/ispconfig/interface/themes/default/icons/x16/paint_can_pencil.png | 0 interface/ispconfig/interface/help/lib/lang/se.lng | 9 interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng | 26 interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/flags/so.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng | 14 interface/ispconfig/interface/themes/default/icons/x16/scripts_code.png | 0 interface/ispconfig/server/conf/error/de/401.html | 61 interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng | 15 interface/ispconfig/interface/dns/templates/dns_soa_list.htm | 62 interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng | 16 interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter_list.lng | 7 interface/ispconfig/interface/monitor/lib/lang/pt.lng | 139 interface/ispconfig/interface/themes/default/icons/flags/cu.png | 0 interface/ispconfig/interface/themes/default/icons/x16/flag_arrow.png | 0 interface/ispconfig/interface/designer/lib/lang/se_form_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/pt_users.lng | 29 interface/ispconfig/server/conf/error/hu/405.html | 61 interface/ispconfig/interface/sites/lib/lang/ru_ftp_user_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/printer_empty.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_user.lng | 42 interface/ispconfig/interface/themes/default/icons/x16/bin__arrow.png | 0 interface/ispconfig/interface/web/tools/lib/lang/sk.lng | 6 interface/ispconfig/server/conf/sieve_filter.master | 30 interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/nc.png | 0 interface/ispconfig/interface/themes/default/icons/x16/camera_small.png | 0 interface/ispconfig/interface/themes/default/icons/x12/pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng | 24 interface/ispconfig/interface/sites/database_list.php | 73 interface/ispconfig/server/conf/error/gr/500.html | 61 interface/ispconfig/interface/mail/form/mail_transport.tform.php | 111 interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng | 7 interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng | 8 interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/sk.png | 0 interface/ispconfig/interface/help/lib/lang/nl.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/ke.png | 0 interface/ispconfig/interface/themes/default/icons/flags/lk.png | 0 interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng | 6 interface/ispconfig/interface/strengthmeter/lib/lang/pl_strengthmeter.lng | 8 interface/ispconfig/interface/mail/lib/lang/hu_mail_alias_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng | 9 interface/ispconfig/interface/admin/server_ip_edit.php | 73 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/de.png | 0 interface/ispconfig/interface/themes/default/icons/x16/playing_card_exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng | 25 interface/ispconfig/interface/sites/lib/lang/pl_ftp_user_list.lng | 8 interface/ispconfig/interface/sites/templates/web_aliasdomain_edit.htm | 50 interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small.png | 0 interface/ispconfig/interface/themes/default/icons/x12/plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/flags/catalonia.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng | 15 interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng | 16 interface/ispconfig/interface/monitor/lib/lang/br.lng | 138 interface/ispconfig/interface/dns/lib/lang/ja.lng | 20 interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/se_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/media_player_black.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng | 68 interface/ispconfig/interface/themes/default/icons/x16/tables_minus.png | 0 interface/ispconfig/interface/js/yui/container/container.js | 4727 + interface/ispconfig/interface/mail/mail_spamfilter_edit.php | 124 interface/ispconfig/interface/admin/lib/lang/de_firewall.lng | 11 interface/ispconfig/interface/client/lib/lang/pl_client_template.lng | 57 interface/ispconfig/interface/client/lib/lang/fr_reseller.lng | 93 interface/ispconfig/interface/mail/templates/mail_user_mailfilter_edit.htm | 26 interface/ispconfig/interface/themes/default/icons/x16/wallet_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/address_book__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_get.lng | 16 interface/ispconfig/interface/mail/lib/lang/fi_mail_user_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bin__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain.lng | 12 interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/ro_mail_user.lng | 39 interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/fr_mail_domain.lng | 13 interface/ispconfig/interface/sites/web_aliasdomain_edit.php | 114 interface/ispconfig/interface/themes/default/icons/x12/rss.png | 0 interface/ispconfig/interface/client/client_template_list.php | 21 interface/ispconfig/interface/themes/default/icons/x16/wallet.png | 0 interface/ispconfig/interface/themes/default/icons/flags/zm.png | 0 interface/ispconfig/interface/themes/default/icons/x16/layout_join.png | 0 interface/ispconfig/interface/themes/default/yaml/!important.txt | 4 interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/slash_small.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng | 8 interface/ispconfig/interface/mail/templates/mail_alias_edit.htm | 39 interface/ispconfig/interface/sites/lib/lang/br_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/newspapers_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_language_import.lng | 8 interface/ispconfig/server/conf/error/sr/400.html | 61 interface/ispconfig/interface/themes/default/icons/flags/england.png | 0 interface/ispconfig/interface/themes/default/icons/x16/trophy_arrow.png | 0 interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_groups.lng | 5 interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/scripts__exclamation.png | 0 interface/ispconfig/server/mods-available/cron_module.inc.php | 97 interface/ispconfig/server/plugins-enabled/firewall_plugin.inc.php | 145 interface/ispconfig/interface/mail/lib/lang/bg.lng | 47 interface/ispconfig/server/conf/error/br/401.html | 61 interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/es_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/star_small.png | 0 interface/ispconfig/interface/client/lib/lang/se_client.lng | 94 interface/ispconfig/interface/sites/lib/lang/fi_web_domain.lng | 60 interface/ispconfig/interface/js/yui/button/button-beta-min.js | 126 interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/it_cron.lng | 21 interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng | 6 interface/ispconfig/interface/sites/lib/lang/de_web_subdomain_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/se_mail_transport.lng | 10 interface/ispconfig/interface/client/lib/lang/se_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/in.png | 0 interface/ispconfig/interface/themes/default/images/lists_tfoot_bg.png | 0 interface/ispconfig/interface/dns/dns_soa_del.php | 69 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/pt_mail_user_stats_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/image_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng | 42 interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng | 16 interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain.lng | 11 interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng | 19 interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng | 8 interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng | 7 interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm | 33 interface/ispconfig/interface/themes/default/icons/x16/bandaid_pencil.png | 0 interface/ispconfig/server/conf/error/fr/405.html | 61 interface/ispconfig/interface/themes/default/icons/x16/music_small.png | 0 interface/ispconfig/interface/js/yui/menu/README | 385 interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng | 6 interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng | 6 interface/ispconfig/interface/sites/lib/lang/sk_web_sites_stats_list.lng | 8 interface/ispconfig/interface/mail/form/mail_user.tform.php | 280 interface/ispconfig/interface/themes/default/icons/flags/tr.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/printer.png | 0 interface/ispconfig/interface/themes/default/icons/x16/book_brown.png | 0 interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng | 15 interface/ispconfig/interface/sites/lib/lang/hu_ftp_user.lng | 27 interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng | 42 interface/ispconfig/interface/themes/default/icons/x16/blogs_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng | 7 interface/ispconfig/server/plugins-available/network_settings_plugin.inc.php | 289 interface/ispconfig/interface/mail/templates/mail_user_autoresponder_edit.htm | 37 interface/ispconfig/interface/sites/web_subdomain_edit.php | 114 interface/ispconfig/interface/themes/default/icons/x16/script__plus.png | 0 interface/ispconfig/interface/client/lib/lang/en_clients_list.lng | 9 interface/ispconfig/server/conf/index/robots.txt | 2 interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/receipts_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/pt_mail_get_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/camera__pencil.png | 0 interface/ispconfig/interface/mail/form/mail_aliasdomain.tform.php | 113 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_plus.png | 0 interface/ispconfig/server/conf/error/en/401.html | 61 interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng | 7 interface/ispconfig/interface/sites/templates/web_domain_list.htm | 59 interface/ispconfig/interface/admin/lib/lang/de_server_list.lng | 11 interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng | 22 interface/ispconfig/interface/mail/lib/lang/hu.lng | 47 interface/ispconfig/interface/sites/lib/lang/fr_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter.lng | 10 interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/chain_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier__arrow.png | 0 interface/ispconfig/interface/client/lib/lang/it_reseller.lng | 93 interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist.lng | 9 interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/hu_mail_user.lng | 39 interface/ispconfig/interface/mail/list/mail_blacklist.list.php | 95 interface/ispconfig/server/lib/classes/file.inc.php | 319 interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/br.lng | 47 interface/ispconfig/interface/themes/default/icons/flags/mc.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng | 14 interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng | 18 interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16-list/calendar.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/ja_mail_alias.lng | 11 interface/ispconfig/interface/themes/default/icons/x12/flag_black.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist.lng | 9 interface/ispconfig/interface/web/tools/templates/user_settings.htm | 36 interface/ispconfig/interface/login/lib/lang/pt.lng | 18 interface/ispconfig/interface/themes/default/icons/x16/lightning_disable.png | 0 interface/ispconfig/interface/admin/lib/lang/en_groups.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/feed_small.png | 0 interface/ispconfig/interface/js/yui/logger/logger.js | 1597 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/x16/databases_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng | 8 interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/br_mail_domain.lng | 13 interface/ispconfig/interface/dns/lib/lang/fr.lng | 20 interface/ispconfig/interface/themes/default/icons/flags/mr.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_user.lng | 39 interface/ispconfig/interface/themes/default/icons/x12/link.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/pt_mail_forward.lng | 8 interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall.lng | 10 interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter.lng | 9 interface/ispconfig/interface/js/yui/treeview/assets/lmh.gif | 0 interface/ispconfig/interface/themes/default/icons/flags/om.png | 0 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy.lng | 38 interface/ispconfig/interface/dns/dns_mx_edit.php | 138 interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng | 15 interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng | 18 interface/ispconfig/interface/themes/default/icons/x16/tag_small.png | 0 interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng | 16 interface/ispconfig/interface/dns/lib/lang/pl.lng | 20 interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng | 26 interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng | 15 interface/ispconfig/interface/sites/lib/lang/bg_ftp_user.lng | 27 interface/ispconfig/interface/js/uni-form/jquery.js | 1 interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist.lng | 9 interface/ispconfig/interface/nav.php | 102 interface/ispconfig/server/mods-enabled/cron_module.inc.php | 97 interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng | 11 interface/ispconfig/interface/client/lib/lang/se.lng | 13 interface/ispconfig/interface/help/lib/lang/fr.lng | 9 interface/ispconfig/interface/admin/language_import.php | 105 interface/ispconfig/interface/admin/lib/lang/en_system_config.lng | 17 interface/ispconfig/interface/themes/default/icons/flags/kh.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_delete.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/br_strengthmeter.lng | 8 interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng | 18 interface/ispconfig/interface/mail/spamfilter_config_edit.php | 96 interface/ispconfig/interface/login/lib/lang/ro.lng | 17 interface/ispconfig/server/conf/error/se/400.html | 61 interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng | 69 interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng | 8 interface/ispconfig/interface/capp.php | 56 interface/ispconfig/interface/mail/mail_blacklist_list.php | 24 interface/ispconfig/interface/monitor/lib/lang/bg.lng | 138 interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/ee.png | 0 interface/ispconfig/interface/dns/dns_a_edit.php | 144 interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng | 9 interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnet_disable.png | 0 interface/ispconfig/interface/sites/lib/lang/en_ftp_user.lng | 28 interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng | 15 interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng | 7 interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16-list/calendar2.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/money.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist.lng | 10 interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/light_bulb__pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/tr.lng | 2 interface/ispconfig/interface/monitor/lib/lang/se_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/table__arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/es.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/balloon__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/feed__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wall__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng | 16 interface/ispconfig/interface/themes/default/icons/flags/pm.png | 0 interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng | 4 interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet.png | 0 interface/ispconfig/interface/admin/server_list.php | 51 interface/ispconfig/interface/admin/users_del.php | 51 interface/ispconfig/interface/themes/default/icons/flags/ls.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng | 6 interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/ja_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/rw.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng | 15 interface/ispconfig/interface/mail/spamfilter_whitelist_del.php | 51 interface/ispconfig/interface/help/lib/lang/ru_support_message.lng | 8 interface/ispconfig/interface/mail/lib/lang/pt.lng | 48 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/star_half.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/crown_bronze.png | 0 interface/ispconfig/interface/themes/default/icons/x12/security_red.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng | 8 interface/ispconfig/interface/sites/lib/lang/hu_web_sites_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/folders_stack.png | 0 interface/ispconfig/interface/client/lib/lang/pt_client_del.lng | 7 interface/ispconfig/interface/js/yui/connection/connection.js | 1054 interface/ispconfig/interface/mail/lib/lang/ro_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/safe_pencil.png | 0 interface/ispconfig/interface/dns/templates/dns_alias_edit.htm | 38 interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng | 42 interface/ispconfig/interface/mymodule/lib/mymodule.config.php | 47 interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng | 7 interface/ispconfig/interface/sites/lib/lang/it_web_domain.lng | 60 interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng | 7 interface/ispconfig/interface/sites/templates/web_subdomain_edit.htm | 42 interface/ispconfig/interface/themes/default/icons/x16/bin__plus.png | 0 interface/ispconfig/interface/client/lib/lang/nl.lng | 13 interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist.lng | 9 interface/ispconfig/interface/mail/lib/lang/ja.lng | 47 interface/ispconfig/interface/sites/lib/lang/nl_web_sites_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/briefcase_pencil.png | 0 interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_nrm_1.gif | 0 interface/ispconfig/interface/admin/lib/lang/se_firewall.lng | 11 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/client/lib/lang/nl_client_template.lng | 57 interface/ispconfig/server/conf/autoresponder.master | 23 interface/ispconfig/interface/mail/lib/lang/ja_mail_get.lng | 16 interface/ispconfig/interface/sites/lib/lang/ru_database_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/it.lng | 22 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/contrast_small.png | 0 interface/ispconfig/interface/designer/lib/lang/br_form_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng | 5 interface/ispconfig/interface/dns/dns_cname_edit.php | 138 interface/ispconfig/interface/themes/default/icons/flags/tf.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_groups.lng | 5 interface/ispconfig/interface/themes/default/icons/x12/dollar.png | 0 interface/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php | 303 interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng | 68 interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/bookmark__exclamation.png | 0 interface/ispconfig/server/conf/error/gr/401.html | 61 interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x12/magnify.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_045_small.png | 0 interface/ispconfig/interface/sites/lib/lang/fi_database_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng | 7 interface/ispconfig/interface/sites/lib/lang/se_web_domain_list.lng | 8 interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/es_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x12/flag_red.png | 0 interface/ispconfig/interface/themes/default/icons/flags/cf.png | 0 interface/ispconfig/interface/themes/default/icons/flags/cy.png | 0 interface/ispconfig/interface/themes/default/icons/x12/comment_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16/contrast__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wand_minus.png | 0 interface/ispconfig/interface/designer/lib/module.conf.php | 95 interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng | 15 interface/ispconfig/interface/js/yui/logger/README | 51 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config.lng | 20 interface/ispconfig/interface/admin/lib/lang/pl.lng | 40 interface/ispconfig/interface/themes/default/icons/flags/sr.png | 0 interface/ispconfig/interface/themes/default/icons/x16/key__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tick.png | 0 interface/ispconfig/interface/sites/lib/lang/es_database_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/disks.png | 0 interface/ispconfig/interface/themes/default/icons/x16/film_arrow.png | 0 interface/ispconfig/interface/temp/en.lng | 2131 interface/ispconfig/interface/sites/lib/module.conf.php | 113 interface/ispconfig/interface/themes/default/icons/flags/bz.png | 0 interface/ispconfig/interface/themes/default/icons/x16/screwdriver.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter.lng | 17 interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x12/info.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipt_arrow.png | 0 interface/ispconfig/interface/dns/dns_rp_edit.php | 138 interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist.lng | 9 interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng | 14 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/sg.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_get_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng | 14 interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/music_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/ro.lng | 47 interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient.lng | 9 interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/tag__plus.png | 0 interface/ispconfig/interface/web/tools/lib/lang/sk_usersettings.lng | 8 interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_dim_1.gif | 0 interface/ispconfig/interface/designer/templates/form_edit.htm | 79 interface/ispconfig/interface/themes/default/icons/x16/pencil_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tags_label.png | 0 interface/ispconfig/interface/dns/templates/dns_srv_edit.htm | 38 interface/ispconfig/interface/themes/default/icons/x16/safe_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/ruler__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng | 16 interface/ispconfig/interface/admin/lib/lang/de.lng | 40 interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/ro_database.lng | 25 interface/ispconfig/interface/themes/default/icons/flags/hn.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/color_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng | 7 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy.lng | 39 interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient.lng | 9 interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng | 4 interface/ispconfig/interface/mail/mail_whitelist_edit.php | 113 interface/ispconfig/interface/themes/default/icons/x16/mail__arrow.png | 0 interface/ispconfig/interface/designer/lib/lang/br_module_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/br_language_import.lng | 8 interface/ispconfig/interface/sites/lib/lang/ja_database_list.lng | 8 interface/ispconfig/interface/client/lib/lang/es_client_del.lng | 6 interface/ispconfig/server/conf/error/es/400.html | 61 interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng | 7 interface/ispconfig/interface/mail/lib/lang/ru_mail_transport.lng | 11 interface/ispconfig/interface/sites/lib/lang/ja_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/images/header_logo.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_users_list.htm | 63 interface/ispconfig/interface/themes/default/icons/x16/media_player__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cards_stack.png | 0 interface/ispconfig/interface/js/yui/tabview/assets/tabview.css | 75 interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng | 6 interface/ispconfig/interface/js/yui/menu/menu.js | 8265 ++ interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/ja_groups.lng | 5 interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng | 7 interface/ispconfig/server/mods-available/server_module.inc.php | 137 interface/ispconfig/interface/themes/default/icons/x16/mail_open_film.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng | 15 interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/disks__plus.png | 0 interface/ispconfig/interface/client/lib/lang/de_reseller.lng | 93 interface/ispconfig/interface/js/yui/element/element-beta-debug.js | 906 interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng | 9 interface/ispconfig/server/conf/error/si/403.html | 61 interface/ispconfig/interface/themes/default/icons/x16/pencil_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/nr.png | 0 interface/ispconfig/interface/themes/default/icons/x12/envelope.png | 0 interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter.lng | 10 interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient.lng | 9 interface/ispconfig/interface/sites/lib/lang/en_web_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/heart__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/it_groups.lng | 5 interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng | 16 interface/ispconfig/interface/help/lib/lang/pt_support_message.lng | 8 interface/ispconfig/interface/mail/list/mail_domain_catchall.list.php | 79 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16-list/lock.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng | 16 interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/pill_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist.lng | 9 interface/ispconfig/interface/admin/list/server.list.php | 110 interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/color_pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/calculator_minus.png | 0 interface/ispconfig/interface/login/logout.php | 80 interface/ispconfig/interface/themes/default/icons/x16/home.png | 0 interface/ispconfig/interface/themes/default/icons/x16/palette_minus.png | 0 interface/ispconfig/interface/monitor/lib/lang/tr.lng | 138 interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng | 8 interface/ispconfig/interface/themes/default/yaml/screen/content_default.css | 170 interface/ispconfig/server/conf/error/nl/503.html | 61 interface/ispconfig/interface/themes/default/templates/sidenav.tpl.htm | 24 interface/ispconfig/server/conf/error/fr/400.html | 61 interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/mail_relay_recipient_edit.php | 59 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng | 42 interface/ispconfig/interface/mail/lib/lang/br_mail_alias.lng | 11 interface/ispconfig/interface/monitor/show_log.php | 143 interface/ispconfig/interface/themes/default/icons/x16/wall_disable.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_transport_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/se_mail_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/paper_bag.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng | 9 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/en_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/documents_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/mg.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_policy_edit.htm | 64 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng | 15 interface/ispconfig/interface/js/yui/menu/assets/menuchk8_dim_1.gif | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/bell__pencil.png | 0 interface/ispconfig/interface/help/lib/lang/ru.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/media_player__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/piano_minus.png | 0 interface/ispconfig/vpproject/ispconfig.vpppath | 1 interface/ispconfig/interface/admin/server_config_list.php | 53 interface/ispconfig/interface/themes/default/icons/x16/broom_exclamation.png | 0 interface/ispconfig/interface/client/lib/lang/sk_reseller.lng | 93 interface/ispconfig/interface/mail/lib/lang/bg_mail_forward_list.lng | 8 interface/ispconfig/interface/js/yui/datasource/datasource-beta.js | 902 interface/ispconfig/interface/admin/form/remote_user.tform.php | 160 interface/ispconfig/server/conf/debian_network_interfaces.master | 27 interface/ispconfig/interface/mail/list/mail_aliasdomain.list.php | 79 interface/ispconfig/interface/sites/lib/lang/ja_database.lng | 25 interface/ispconfig/interface/admin/lib/lang/br_server_config.lng | 68 interface/ispconfig/interface/themes/default/icons/flags/um.png | 0 interface/ispconfig/interface/sites/lib/lang/br_ftp_user.lng | 27 interface/ispconfig/interface/admin/templates/language_import.htm | 41 interface/ispconfig/interface/themes/default/icons/flags/ao.png | 0 interface/ispconfig/server/plugins-available/pma_symlink_plugin.inc.php | 121 interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/ro_shell_user_list.lng | 8 interface/ispconfig/server/plugins-available/powerdns_plugin.inc.php | 345 interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng | 29 interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm | 34 interface/ispconfig/interface/designer/lib/lang/br_form_show.lng | 18 interface/ispconfig/interface/login/lib/lang/sk.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/ruler.png | 0 interface/ispconfig/interface/themes/default/icons/x16/funnel_small.png | 0 interface/ispconfig/interface/remote/index.php | 15 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users_list.lng | 10 interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/folder_shred.png | 0 interface/ispconfig/interface/themes/default/icons/x16/vcard_delete.png | 0 interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/wall.png | 0 interface/ispconfig/interface/sites/lib/lang/it_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/jm.png | 0 interface/ispconfig/interface/themes/default/icons/flags/bg.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng | 14 interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist_list.lng | 10 interface/ispconfig/server/mods-enabled/client_module.inc.php | 96 interface/ispconfig/interface/login/lib/lang/bg.lng | 17 interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng | 6 interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng | 15 interface/ispconfig/interface/sites/form/database.tform.php | 155 interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/gear_small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/rs.png | 0 interface/ispconfig/server/conf/error/se/503.html | 61 interface/ispconfig/interface/dns/templates/dns_a_list.htm | 85 interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng | 15 interface/ispconfig/server/conf/gentoo_network_interfaces.master | 13 interface/ispconfig/interface/admin/lib/lang/de_language_add.lng | 8 interface/ispconfig/interface/sites/lib/lang/ru_web_domain_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng | 7 interface/ispconfig/interface/designer/form_edit.php | 152 interface/ispconfig/interface/mail/lib/lang/se_mail_alias.lng | 11 interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng | 15 interface/ispconfig/interface/sites/lib/lang/de_web_domain.lng | 60 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config_list.lng | 6 interface/ispconfig/server/conf/error/se/405.html | 61 interface/ispconfig/interface/monitor/lib/lang/sk.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/picture_sunset.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/safe_exclamation.png | 0 interface/ispconfig/interface/web/tools/lib/lang/fi.lng | 6 interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/folder_open_document.png | 0 interface/ispconfig/interface/themes/default/icons/x16/stamp.png | 0 interface/ispconfig/interface/mail/templates/mail_user_mailbox_edit.htm | 67 interface/ispconfig/interface/themes/default/icons/x16/wand_exclamation.png | 0 interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/arrow_skip.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/chain_unchain.png | 0 interface/ispconfig/interface/admin/lib/lang/br_server.lng | 13 interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng | 8 interface/ispconfig/interface/mail/lib/lang/fi_mail_transport.lng | 10 interface/ispconfig/interface/help/support_message_edit.php | 71 interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif | 0 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/media_player__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/kp.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/sticky_note__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users.lng | 8 interface/ispconfig/interface/mail/lib/lang/fi_mail_alias.lng | 11 interface/ispconfig/interface/mail/lib/lang/ro_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16-list/article_text.png | 0 interface/ispconfig/interface/themes/default/icons/flags/sv.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/tags__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/flags/wales.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng | 8 interface/ispconfig/interface/client/lib/lang/pl_reseller.lng | 93 interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng | 7 interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng | 7 interface/ispconfig/interface/sites/templates/cron_edit.htm | 68 interface/ispconfig/interface/admin/lib/lang/de_server.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/picture_small.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/flag_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pipette_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/crown__exclamation.png | 0 interface/ispconfig/server/plugins-available/maildeliver_plugin.inc.php | 131 interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/crown__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist.lng | 9 interface/ispconfig/interface/mail/webmailer.php | 68 interface/ispconfig/interface/admin/lib/lang/br.lng | 40 interface/ispconfig/interface/themes/default/icons/x16/calendar__minus.png | 0 interface/ispconfig/server/conf/error/nl/405.html | 61 interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/books__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_red.png | 0 interface/ispconfig/interface/mail/mail_blacklist_del.php | 51 interface/ispconfig/interface/mail/lib/lang/se_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/accept_green.png | 0 interface/ispconfig/interface/sites/lib/lang/nl_database_list.lng | 8 interface/ispconfig/interface/sites/templates/web_domain_ssl.htm | 62 interface/ispconfig/server/conf/error/de/500.html | 61 interface/ispconfig/interface/sites/lib/lang/nl_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/receipt_plus.png | 0 interface/ispconfig/interface/themes/default/templates/module.tpl.htm | 37 interface/ispconfig/interface/mail/templates/mail_transport_edit.htm | 56 interface/ispconfig/interface/themes/default/icons/x16-list/new.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tj.png | 0 interface/ispconfig/interface/js/yui/yahoo/README | 64 interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng | 8 interface/ispconfig/interface/client/lib/lang/pl_client.lng | 94 interface/ispconfig/interface/themes/default/icons/x16/mail.png | 0 interface/ispconfig/interface/js/yui/calendar/calendar.js | 4309 + interface/ispconfig/interface/themes/default/icons/x16/magnifier_small.png | 0 interface/ispconfig/server/conf/error/hu/400.html | 61 interface/ispconfig/interface/themes/default/icons/flags/bv.png | 0 interface/ispconfig/interface/themes/default/icons/x16/minus_small.png | 0 interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain.lng | 40 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x12/cancel.png | 0 interface/ispconfig/interface/themes/default/icons/flags/va.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_user_stats_list.lng | 8 interface/ispconfig/interface/dns/list/dns_a.list.php | 127 interface/ispconfig/interface/themes/default/icons/x16/balloon__plus.png | 0 interface/ispconfig/interface/js/yui/dom/README | 79 interface/ispconfig/interface/client/lib/lang/ru_client.lng | 95 interface/ispconfig/interface/themes/default/icons/flags/et.png | 0 interface/ispconfig/interface/themes/default/icons/flags/mz.png | 0 interface/ispconfig/interface/themes/default/icons/x16/documents_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_ftp_user.lng | 27 interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js | 3071 interface/ispconfig/interface/sites/lib/lang/bg_cron.lng | 21 interface/ispconfig/interface/sites/lib/lang/en_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/sc.png | 0 interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng | 16 interface/ispconfig/interface/client/lib/lang/ru_client_del.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_out.png | 0 interface/ispconfig/interface/themes/default/icons/x16/address_book__plus.png | 0 interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng | 29 interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng | 7 interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng | 6 interface/ispconfig/interface/client/lib/lang/en.lng | 14 interface/ispconfig/interface/mail/templates/spamfilter_config_server_edit.htm | 38 interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_forward_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/hr.png | 0 interface/ispconfig/server/plugins-enabled/network_settings_plugin.inc.php | 289 interface/ispconfig/interface/help/version.php | 50 interface/ispconfig/interface/js/yui/tabview/tabview-min.js | 35 interface/ispconfig/interface/designer/templates/module_show.htm | 31 interface/ispconfig/interface/admin/lib/lang/pt_server.lng | 14 interface/ispconfig/interface/mail/lib/lang/hu_mail_get_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/fi_mail_alias_list.lng | 8 interface/ispconfig/interface/js/yui/dom/dom-debug.js | 935 interface/ispconfig/interface/monitor/lib/lang/de_syslog_list.lng | 7 interface/ispconfig/interface/admin/language_edit.php | 104 interface/ispconfig/interface/mail/lib/lang/pt_mail_transport.lng | 11 interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/newspapers_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_user_list.lng | 7 interface/ispconfig/interface/mail/spamfilter_users_edit.php | 111 interface/ispconfig/interface/sites/form/ftp_user.tform.php | 253 interface/ispconfig/interface/admin/lib/lang/es_groups.lng | 5 interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng | 15 interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient_list.lng | 10 interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng | 12 interface/ispconfig/interface/web/tools/lib/lang/it_usersettings.lng | 8 interface/ispconfig/interface/client/lib/lang/br_client_template.lng | 57 interface/ispconfig/interface/designer/lib/lang/bg.lng | 2 interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng | 15 interface/ispconfig/interface/sites/lib/lang/nl_shell_user.lng | 22 interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pipette_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/flag_yellow.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/balloon_small.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/playing_card_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng | 5 interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng | 9 interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng | 10 interface/ispconfig/interface/themes/default/icons/flags/ae.png | 0 interface/ispconfig/server/conf/error/fr/503.html | 61 interface/ispconfig/interface/mail/lib/lang/es_mail_user_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/ps.png | 0 interface/ispconfig/interface/admin/lib/lang/it.lng | 40 interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x12/world.png | 0 interface/ispconfig/interface/js/yui/tabview/tabview-debug.js | 1025 interface/ispconfig/interface/themes/default/icons/x16/discs_arrow.png | 0 interface/ispconfig/interface/designer/lib/lang/ro.lng | 2 interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng | 15 interface/ispconfig/interface/sites/lib/lang/nl_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/pl_mail_forward.lng | 7 interface/ispconfig/interface/admin/form/users.tform.php | 456 interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng | 5 interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng | 26 interface/ispconfig/interface/themes/default/icons/x16/cassette_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lightning.png | 0 interface/ispconfig/interface/monitor/lib/lang/tr_datalog_list.lng | 8 interface/ispconfig/interface/mymodule/support_message_del.php | 21 interface/ispconfig/interface/sites/form/shell_user.tform.php | 196 interface/ispconfig/interface/themes/default/icons/x16/blogs_stack.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_cron_list.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/pill_small.png | 0 interface/ispconfig/interface/sites/templates/ftp_user_advanced.htm | 50 interface/ispconfig/interface/themes/default/icons/flags/ht.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_whitelist_edit.htm | 49 interface/ispconfig/interface/themes/default/icons/x16/switch_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wrench_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mail__plus.png | 0 interface/ispconfig/interface/admin/firewall_edit.php | 72 interface/ispconfig/interface/themes/default/icons/x16-list/burst.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ro_mail_user_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/it_mail_forward.lng | 7 interface/ispconfig/interface/mail/list/mail_domain.list.php | 86 interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng | 26 interface/ispconfig/interface/themes/default/icons/x16/calendar_month.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_transport_list.lng | 9 interface/ispconfig/server/mods-available/web_module.inc.php | 140 interface/ispconfig/interface/themes/default/icons/flags/tz.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/pencil_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/playing_card_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnet__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/binocular_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/id.png | 0 interface/ispconfig/interface/sites/lib/lang/bg_database_list.lng | 8 interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif | 0 interface/ispconfig/interface/themes/default/icons/x16-list/security_red.png | 0 interface/ispconfig/interface/themes/default/icons/x16/document_music_playlist.png | 0 interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/es_shell_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/nl_mail_alias_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/user_add.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_groups.lng | 5 interface/ispconfig/interface/sites/lib/lang/it_web_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/table__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/pl.lng | 47 interface/ispconfig/interface/themes/default/icons/x16/balloons_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mail__pencil.png | 0 interface/ispconfig/interface/client/templates/client_edit_limits.htm | 190 interface/ispconfig/interface/themes/default/icons/x16/paper_bag_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng | 8 interface/ispconfig/interface/js/yui/history/assets/blank.html | 1 interface/ispconfig/interface/themes/default/icons/flags/ws.png | 0 interface/ispconfig/interface/themes/default/icons/x16/box__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter.lng | 9 interface/ispconfig/interface/client/lib/lang/ja.lng | 13 interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/wand_pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng | 5 interface/ispconfig/interface/designer/lib/lang/ja.lng | 2 interface/ispconfig/interface/client/reseller_edit.php | 222 interface/ispconfig/interface/designer/lib/lang/es_module_show.lng | 16 interface/ispconfig/interface/sites/lib/lang/de_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_180.png | 0 interface/ispconfig/interface/client/form/client.tform.php | 785 interface/ispconfig/interface/client/lib/lang/fi.lng | 13 interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/br_system_config.lng | 15 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/screwdriver_arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng | 16 interface/ispconfig/interface/js/yui/yahoo/yahoo-debug.js | 433 interface/ispconfig/interface/mail/mail_user_filter_edit.php | 232 interface/ispconfig/interface/monitor/lib/lang/hu_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/tables_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_web_domain.lng | 60 interface/ispconfig/server/plugins-enabled/shelluser_base_plugin.inc.php | 189 interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/folder_small.png | 0 interface/ispconfig/interface/themes/default/yaml/print/print_103_draft.css | 38 interface/ispconfig/interface/admin/templates/server_config_web_edit.htm | 74 interface/ispconfig/interface/themes/default/icons/x16/hammer__exclamation.png | 0 interface/ispconfig/server/conf/motd.master | 4 interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng | 42 interface/ispconfig/interface/themes/default/icons/flags/mk.png | 0 interface/ispconfig/interface/sites/shell_user_list.php | 55 interface/ispconfig/interface/sites/lib/lang/bg_web_domain_list.lng | 8 interface/ispconfig/server/conf/error/si/503.html | 61 interface/ispconfig/interface/admin/software_update_list.php | 222 interface/ispconfig/interface/mail/lib/lang/tr_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/document__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/door.png | 0 interface/ispconfig/interface/themes/default/icons/x16/exclamation_small.png | 0 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/mail/list/mail_alias.list.php | 79 interface/ispconfig/interface/themes/default/icons/flags/uy.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_alias_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/km.png | 0 interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng | 6 interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng | 7 interface/ispconfig/interface/js/yui/treeview/assets/tm.gif | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall.lng | 9 interface/ispconfig/interface/sites/lib/lang/ja_cron.lng | 21 interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist_list.lng | 11 interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng | 29 interface/ispconfig/interface/mail/lib/lang/sk_mail_user.lng | 39 interface/ispconfig/interface/mail/mail_relay_recipient_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_225.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lightning__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/paint_can_plus.png | 0 interface/ispconfig/interface/mail/templates/mail_domain_catchall_edit.htm | 38 interface/ispconfig/interface/sites/lib/lang/en_cron.lng | 21 interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng | 19 interface/ispconfig/interface/themes/default/icons/flags/at.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/mails_plus.png | 0 interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng | 24 interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/admin/server_ip_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/picture.png | 0 interface/ispconfig/interface/admin/lib/lang/pt.lng | 41 interface/ispconfig/interface/dns/lib/lang/hu.lng | 20 interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist_list.lng | 10 interface/ispconfig/interface/sites/lib/lang/ru_ftp_user.lng | 28 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/yaml/patches/patch_layout_draft.css | 29 interface/ispconfig/interface/themes/default/icons/flags/dm.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users.lng | 8 interface/ispconfig/interface/designer/lib/lang/de_module_list.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/tk.png | 0 interface/ispconfig/interface/themes/default/icons/x16/layout_header_3_mix.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/flag_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mails_exclamation.png | 0 interface/ispconfig/interface/js/yui/dragdrop/README | 118 interface/ispconfig/interface/themes/default/icons/flags/gf.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users_list.lng | 10 interface/ispconfig/server/conf/error/cz/404.html | 61 interface/ispconfig/interface/mail/lib/lang/bg_mail_user_stats_list.lng | 8 interface/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php | 305 interface/ispconfig/interface/client/lib/lang/tr_reseller.lng | 93 interface/ispconfig/interface/sites/templates/ftp_user_edit.htm | 48 interface/ispconfig/interface/mail/lib/lang/sk_mail_alias.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/za.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/sort_date.png | 0 interface/ispconfig/interface/sites/lib/lang/se_cron_list.lng | 12 interface/ispconfig/interface/themes/default/yaml/debug/images/grid_pattern.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng | 17 interface/ispconfig/interface/client/lib/lang/ro.lng | 13 interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng | 68 interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/switch.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnet__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/help/lib/lang/br.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/cn.png | 0 interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng | 24 interface/ispconfig/interface/monitor/lib/lang/ro_datalog_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/key__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/minus_small_circle.png | 0 interface/ispconfig/interface/dns/dns_wizard.php | 274 interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng | 7 interface/ispconfig/server/conf/error/br/400.html | 63 interface/ispconfig/interface/themes/default/icons/x16/calculator_pencil.png | 0 interface/ispconfig/server/conf/error/es/503.html | 61 interface/ispconfig/interface/sites/lib/lang/it_web_subdomain.lng | 40 interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/ro_mail_forward.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/binocular_arrow.png | 0 interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng | 5 interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng | 26 interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient_list.lng | 9 interface/ispconfig/server/conf/error/se/404.html | 61 interface/ispconfig/interface/client/lib/lang/ja_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/x16/card.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/fk.png | 0 interface/ispconfig/interface/monitor/lib/lang/ja_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/pictures.png | 0 interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng | 18 interface/ispconfig/server/conf/error/sr/403.html | 61 interface/ispconfig/interface/admin/templates/server_list.htm | 58 interface/ispconfig/interface/themes/default/icons/flags/bs.png | 0 interface/ispconfig/interface/themes/default/icons/x16/shield.png | 0 interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_hov_1.gif | 0 interface/ispconfig/interface/themes/default/icons/flags/ve.png | 0 interface/ispconfig/interface/sites/lib/lang/br_web_domain_list.lng | 8 interface/ispconfig/interface/sites/web_domain_edit.php | 477 interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng | 6 interface/ispconfig/interface/help/lib/lang/br_support_message.lng | 7 interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/books__plus.png | 0 interface/ispconfig/interface/mail/templates/mail_aliasdomain_edit.htm | 37 interface/ispconfig/interface/sites/lib/lang/ja_ftp_user.lng | 27 interface/ispconfig/interface/themes/default/icons/x16/films_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/feed__minus.png | 0 interface/ispconfig/interface/mail/templates/mail_relay_recipient_edit.htm | 35 interface/ispconfig/interface/admin/lib/lang/es_system_config.lng | 15 interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter_list.lng | 7 interface/ispconfig/interface/help/lib/lang/bg.lng | 9 interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist_list.lng | 11 interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng | 9 interface/ispconfig/interface/help/lib/lang/se_support_message.lng | 7 interface/ispconfig/interface/strengthmeter/lib/lang/en_strengthmeter.lng | 8 interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng | 68 interface/ispconfig/interface/sites/lib/lang/se_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/sticky_note__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x12/calendar.png | 0 interface/ispconfig/interface/sites/lib/lang/sk_cron_list.lng | 12 interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng | 7 interface/ispconfig/interface/sites/templates/web_domain_advanced.htm | 41 interface/ispconfig/interface/themes/default/icons/x16/arrow_225_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disk__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/minus_circle_frame.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_taglevel_edit.htm | 52 interface/ispconfig/interface/themes/default/icons/x16/home_small.png | 0 interface/ispconfig/server/conf/error/hu/401.html | 61 interface/ispconfig/interface/themes/default/icons/x16-list/flag_orange.png | 0 interface/ispconfig/interface/themes/default/icons/x16/equalizer_minus.png | 0 interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/user_female.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_forward.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/cassette_plus.png | 0 interface/ispconfig/server/mods-enabled/server_module.inc.php | 137 interface/ispconfig/interface/dns/lib/lang/it.lng | 20 interface/ispconfig/interface/themes/default/yaml/core/slim_base.css | 50 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_pencil.png | 0 interface/ispconfig/interface/designer/lib/lang/se_form_show.lng | 18 interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng | 8 interface/ispconfig/interface/dns/lib/lang/pt.lng | 21 interface/ispconfig/interface/dns/dns_ptr_edit.php | 138 interface/ispconfig/interface/themes/default/icons/x16/mail__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_get.lng | 16 interface/ispconfig/interface/sites/lib/lang/ja_cron_list.lng | 12 interface/ispconfig/interface/themes/default/icons/x16/blog.png | 0 interface/ispconfig/interface/themes/default/icons/x16/books__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/x16/briefcase_plus.png | 0 interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng | 24 interface/ispconfig/interface/themes/default/icons/x16/paper_bag_arrow.png | 0 interface/ispconfig/interface/client/lib/lang/es_clients_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/film_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier_left.png | 0 interface/ispconfig/interface/mail/form/spamfilter_whitelist.tform.php | 119 interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng | 6 interface/ispconfig/interface/themes/default/icons/flags/mv.png | 0 interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/is.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_server.lng | 13 interface/ispconfig/interface/admin/lib/lang/en_users.lng | 28 interface/ispconfig/interface/themes/default/icons/x16/paper_bag_pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/es_server_config.lng | 68 interface/ispconfig/interface/themes/default/icons/x16/images_stack.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_cron.lng | 21 interface/ispconfig/interface/themes/default/icons/x16/inbox_minus.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_blacklist_edit.htm | 49 interface/ispconfig/interface/mymodule/support_message_edit.php | 33 interface/ispconfig/interface/themes/default/icons/x16/document_text_image.png | 0 interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js | 183 interface/ispconfig/interface/themes/default/icons/x16/lock_disable.png | 0 interface/ispconfig/interface/themes/default/icons/flags/eh.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/tv.png | 0 interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng | 42 interface/ispconfig/interface/themes/default/icons/x16/light_bulb_off.png | 0 interface/ispconfig/interface/themes/default/icons/x16/piano.png | 0 interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng | 6 interface/ispconfig/interface/designer/module_nav_flip.php | 91 interface/ispconfig/interface/sites/web_domain_del.php | 87 interface/ispconfig/interface/themes/default/icons/x16/broom_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng | 11 interface/ispconfig/interface/mail/list/mail_user.list.php | 78 interface/ispconfig/interface/monitor/lib/lang/it_datalog_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/yaml/core/print_base.css | 120 interface/ispconfig/interface/themes/default/icons/x16/tux.png | 0 interface/ispconfig/interface/themes/default/icons/flags/to.png | 0 interface/ispconfig/server/conf/error/gr/503.html | 61 interface/ispconfig/server/lib/classes/system.inc.php | 1232 interface/ispconfig/interface/admin/server_config_edit.php | 95 interface/ispconfig/interface/themes/default/icons/x16/scripts__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/socket_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist.lng | 9 interface/ispconfig/interface/themes/default/templates/topnav.tpl.htm | 9 interface/ispconfig/interface/themes/default/icons/x16/tick_circle.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ai.png | 0 interface/ispconfig/interface/themes/default/images/lists_thead_bg.png | 0 interface/ispconfig/interface/admin/language_add.php | 104 interface/ispconfig/interface/client/tools.inc.php | 88 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/clock__arrow.png | 0 interface/ispconfig/interface/web/tools/form/user_settings.tform.php | 144 interface/ispconfig/interface/themes/default/icons/x16/media_players_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x12/lock.png | 0 interface/ispconfig/server/conf/bash.bashrc.master | 65 interface/ispconfig/interface/themes/default/icons/x16/cards_address.png | 0 interface/ispconfig/interface/themes/default/icons/flags/io.png | 0 interface/ispconfig/interface/admin/lib/lang/br_users.lng | 28 interface/ispconfig/interface/mail/lib/lang/de_mail_transport.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/contrast__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/films_arrow.png | 0 interface/ispconfig/interface/mail/form/mail_blacklist.tform.php | 110 interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/wallet_plus.png | 0 interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng | 22 interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/wand_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter_list.lng | 8 interface/ispconfig/server/conf/php-fcgi-starter.master | 16 interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_mail_forward.lng | 7 interface/ispconfig/interface/mail/lib/lang/hu_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/music_exclamation.png | 0 interface/ispconfig/interface/sites/templates/web_sites_stats_list.htm | 52 interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng | 18 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/sites/lib/lang/tr_database.lng | 25 interface/ispconfig/interface/themes/default/icons/flags/ax.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng | 16 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/admin/users_list.php | 52 interface/ispconfig/interface/mail/lib/lang/it_mail_alias_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/bank_minus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/bo.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng | 7 interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/documents_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/lightning__plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/gy.png | 0 interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng | 15 interface/ispconfig/interface/login/lib/lang/nl.lng | 17 interface/ispconfig/server/lib/classes/tpl_ini.inc.php | 116 interface/ispconfig/interface/themes/default/icons/x16/arrow_270_small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/nf.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/fr_strengthmeter.lng | 8 interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng | 8 interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x12/security_green.png | 0 interface/ispconfig/interface/themes/default/icons/x16/flag_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng | 14 interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng | 7 interface/ispconfig/interface/mymodule/form/support_message.tform.php | 132 interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist.lng | 9 interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/report_arrow.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng | 15 interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users.lng | 8 interface/ispconfig/interface/client/lib/lang/bg_client_del.lng | 6 interface/ispconfig/interface/sites/lib/lang/bg_cron_list.lng | 12 interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter.lng | 18 interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng | 15 interface/ispconfig/interface/themes/default/icons/x12/download.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng | 17 interface/ispconfig/interface/monitor/lib/lang/ro.lng | 138 interface/ispconfig/interface/client/lib/lang/hu_client_del.lng | 6 interface/ispconfig/interface/js/yui/datatable/datatable-beta.js | 4930 + interface/ispconfig/interface/themes/default/icons/x16/question.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ki.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/cc.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folder_open.png | 0 interface/ispconfig/interface/themes/default/icons/x16/plus_circle_frame.png | 0 interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/it_web_subdomain_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng | 16 interface/ispconfig/interface/dns/dns_rr_del.php | 51 interface/ispconfig/interface/sites/lib/lang/hu_shell_user.lng | 22 interface/ispconfig/interface/admin/lib/lang/se_server.lng | 13 interface/ispconfig/interface/monitor/show_sys_state.php | 508 interface/ispconfig/interface/themes/default/icons/flags/mo.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folder_open_film.png | 0 interface/ispconfig/interface/themes/default/icons/x16/calendar__arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng | 15 interface/ispconfig/interface/monitor/lib/lang/sk_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/vi.png | 0 interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng | 6 interface/ispconfig/interface/dns/lib/module.conf.php | 57 interface/ispconfig/interface/js/yui/element/element-beta-min.js | 30 interface/ispconfig/interface/sites/ftp_user_del.php | 51 interface/ispconfig/interface/themes/default/icons/flags/nu.png | 0 interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_dim_1.gif | 0 interface/ispconfig/interface/sites/lib/lang/br_web_domain.lng | 60 interface/ispconfig/interface/themes/default/icons/x16/funnel_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/client/templates/reseller_edit_limits.htm | 179 interface/ispconfig/interface/monitor/lib/lang/sk_datalog_list.lng | 8 interface/ispconfig/interface/client/reseller_del.php | 92 interface/ispconfig/interface/themes/default/icons/x12/clock.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter.lng | 9 interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng | 7 interface/ispconfig/interface/help/lib/lang/bg_support_message.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/gb.png | 0 interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain_list.lng | 8 interface/ispconfig/interface/client/lib/lang/tr_client_template.lng | 57 interface/ispconfig/interface/mail/lib/lang/ru.lng | 48 interface/ispconfig/interface/themes/default/icons/x16/sticky_note__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebook_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/fo.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cards.png | 0 interface/ispconfig/interface/help/lib/lang/es.lng | 9 interface/ispconfig/interface/login/lib/lang/en.lng | 22 interface/ispconfig/interface/mail/lib/lang/ro_mail_alias.lng | 11 interface/ispconfig/interface/dns/form/dns_rp.tform.php | 159 interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng | 15 interface/ispconfig/interface/admin/list/server_config.list.php | 60 interface/ispconfig/server/conf/error/en/404.html | 61 interface/ispconfig/interface/admin/lib/lang/it_firewall.lng | 11 interface/ispconfig/interface/dns/templates/dns_mx_edit.htm | 42 interface/ispconfig/interface/themes/default/icons/x16/disc_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/book__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng | 6 interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng | 16 interface/ispconfig/interface/js/yui/logger/assets/logger.css | 26 interface/ispconfig/interface/mail/lib/lang/sk_mail_forward.lng | 7 interface/ispconfig/interface/login/index.php | 203 interface/ispconfig/interface/mail/lib/lang/sk_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/flags/cr.png | 0 interface/ispconfig/interface/themes/default/icons/flags/gu.png | 0 interface/ispconfig/server/conf/error/cz/400.html | 61 interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng | 4 interface/ispconfig/server/conf/bastille-firewall.cfg.master | 320 interface/ispconfig/interface/themes/default/icons/x16/briefcase_minus.png | 0 interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng | 9 interface/ispconfig/interface/admin/templates/users_user_edit.htm | 67 interface/ispconfig/interface/themes/default/icons/x16/crown.png | 0 interface/ispconfig/interface/mail/lib/lang/se.lng | 47 interface/ispconfig/interface/mail/templates/mail_domain_edit.htm | 67 interface/ispconfig/interface/client/lib/lang/fr_client.lng | 94 interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng | 6 interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist_list.lng | 10 interface/ispconfig/interface/sites/lib/lang/bg_database.lng | 25 interface/ispconfig/interface/mail/lib/lang/ja_mail_user_list.lng | 7 interface/ispconfig/interface/js/yui/slider/slider-min.js | 36 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/image_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/se_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/calendar.png | 0 interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng | 29 interface/ispconfig/interface/mail/lib/lang/bg_mail_get_list.lng | 9 interface/ispconfig/interface/web/tools/lib/lang/tr_usersettings.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/safe_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/hu.lng | 40 interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/disk_small_black.png | 0 interface/ispconfig/interface/themes/default/icons/x16/folders_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_user_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng | 7 interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/databases_exclamation.png | 0 interface/ispconfig/interface/sites/lib/lang/br_web_sites_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng | 7 interface/ispconfig/interface/mail/list/mail_content_filter.list.php | 96 interface/ispconfig/interface/themes/default/icons/x16/ruler__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/palette_arrow.png | 0 interface/ispconfig/server/plugins-enabled/ftpuser_base_plugin.inc.php | 112 interface/ispconfig/interface/mail/lib/lang/nl_mail_transport.lng | 10 interface/ispconfig/server/conf/error/it/401.html | 61 interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng | 29 interface/ispconfig/interface/themes/default/icons/x16/plus_small_circle.png | 0 interface/ispconfig/server/scripts/vlogger | 574 interface/ispconfig/interface/designer/templates/form_list.htm | 24 interface/ispconfig/interface/mail/lib/lang/pt_mail_domain.lng | 14 interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng | 16 interface/ispconfig/interface/mail/lib/lang/pt_mail_get.lng | 17 interface/ispconfig/interface/js/yui/history/history-experimental-min.js | 44 interface/ispconfig/interface/themes/default/yaml/navigation/nav_vlist.css | 109 interface/ispconfig/interface/themes/default/icons/flags/sl.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bin_full.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng | 15 interface/ispconfig/interface/help/support_message_del.php | 48 interface/ispconfig/interface/themes/default/icons/x16/ruler__plus.png | 0 interface/ispconfig/interface/client/lib/lang/pt_client_template.lng | 58 interface/ispconfig/interface/mymodule/templates/support_message_view.html | 14 interface/ispconfig/interface/monitor/lib/lang/pl_datalog_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng | 7 interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_hov_1.gif | 0 interface/ispconfig/interface/monitor/lib/lang/pt_syslog_list.lng | 8 interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/database_arrow.png | 0 interface/ispconfig/interface/js/yui/container/container-min.js | 159 interface/ispconfig/interface/sites/lib/lang/de_ftp_user.lng | 27 interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/contrast_low.png | 0 interface/ispconfig/interface/client/lib/lang/ro_client_template.lng | 57 interface/ispconfig/interface/login/lib/lang/br.lng | 17 interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng | 15 interface/ispconfig/interface/monitor/lib/lang/fr_syslog_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng | 16 interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist.lng | 9 interface/ispconfig/interface/designer/lib/lang/en.lng | 3 interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall.lng | 9 interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/user_comment.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng | 4 interface/ispconfig/interface/mail/lib/lang/nl_mail_transport_list.lng | 9 interface/ispconfig/interface/web/tools/lib/lang/ja.lng | 6 interface/ispconfig/interface/sites/lib/lang/fr_web_sites_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/table_delete.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/js/yui/container/container_core-debug.js | 2932 interface/ispconfig/interface/mail/lib/lang/ja_mail_forward_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng | 15 interface/ispconfig/interface/sites/cron_edit.php | 221 interface/ispconfig/interface/themes/default/icons/x16/film_pencil.png | 0 interface/ispconfig/interface/monitor/lib/lang/de_datalog_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/de_users_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/crown__minus.png | 0 interface/ispconfig/interface/admin/groups_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/box_label.png | 0 interface/ispconfig/interface/themes/default/icons/x16/scripts.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain.lng | 12 interface/ispconfig/interface/sites/lib/lang/br_database_list.lng | 9 interface/ispconfig/interface/help/lib/lang/fi_support_message.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/document_horizontal.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disc_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_forward.lng | 7 interface/ispconfig/interface/js/yui/treeview/assets/ln.gif | 0 interface/ispconfig/interface/themes/default/icons/x16/information_shield.png | 0 interface/ispconfig/interface/admin/templates/firewall_list.htm | 60 interface/ispconfig/interface/client/client_list.php | 25 interface/ispconfig/interface/mail/lib/lang/bg_mail_user.lng | 41 interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/balloons_pencil.png | 0 interface/ispconfig/server/conf/error/de/404.html | 61 interface/ispconfig/server/conf/error/nl/403.html | 61 interface/ispconfig/interface/themes/default/icons/x16/layout_header.png | 0 interface/ispconfig/interface/themes/default/icons/x16/plug_pencil.png | 0 interface/ispconfig/interface/js/yui/menu/menu-debug.js | 8317 ++ interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/media_player__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/plus_small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/es.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/cassette.png | 0 interface/ispconfig/interface/sites/lib/lang/ja_shell_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users.lng | 8 interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/briefcase.png | 0 interface/ispconfig/interface/client/lib/lang/it_client.lng | 94 interface/ispconfig/interface/mail/mail_user_stats.php | 63 interface/ispconfig/server/conf/index/.htaccess | 0 interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng | 5 interface/ispconfig/interface/sites/lib/lang/ro.lng | 22 interface/ispconfig/server/conf/error/it/405.html | 61 interface/ispconfig/interface/themes/default/icons/flags/pl.png | 0 interface/ispconfig/interface/sites/web_subdomain_list.php | 55 interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain.lng | 11 interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng | 7 interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng | 6 interface/ispconfig/interface/designer/module_nav_edit.php | 146 interface/ispconfig/interface/themes/default/icons/x16/image_minus.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng | 16 interface/ispconfig/interface/admin/templates/firewall_edit.htm | 38 interface/ispconfig/server/conf/error/si/500.html | 61 interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16-list/world.png | 0 interface/ispconfig/interface/themes/default/icons/flags/hm.png | 0 interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/admin/lib/lang/it_language_import.lng | 8 interface/ispconfig/interface/strengthmeter/lib/lang/es_strengthmeter.lng | 8 interface/ispconfig/interface/web/tools/lib/lang/fr_usersettings.lng | 8 interface/ispconfig/interface/client/lib/lang/de_client_del.lng | 6 interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng | 7 interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js | 93 interface/ispconfig/interface/themes/default/icons/x16/star__plus.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/nl_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/receipt.png | 0 interface/ispconfig/interface/web/tools/lib/lang/nl.lng | 6 interface/ispconfig/server/conf/error/de/400.html | 61 interface/ispconfig/interface/themes/default/yaml/print/print_123_draft.css | 40 interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng | 7 interface/ispconfig/interface/web/tools/lib/lang/pl_usersettings.lng | 8 interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng | 4 interface/ispconfig/interface/designer/lib/lang/it_module_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/paper_bag_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/it_ftp_user.lng | 27 interface/ispconfig/interface/themes/default/icons/x16/camera__plus.png | 0 interface/ispconfig/interface/admin/lib/lang/en_server.lng | 13 interface/ispconfig/interface/help/list/support_message.list.php | 62 interface/ispconfig/interface/themes/default/icons/x16/envelope_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/sk_web_domain.lng | 60 interface/ispconfig/interface/themes/default/icons/x16/bell__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/report_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng | 15 interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/al.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bandaid_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_groups.lng | 6 interface/ispconfig/interface/sites/lib/lang/hu.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/disks__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/inbox_pencil.png | 0 interface/ispconfig/server/conf/error/sr/503.html | 61 interface/ispconfig/interface/web/tools/lib/lang/en.lng | 6 interface/ispconfig/server/conf/error/br/500.html | 61 interface/ispconfig/interface/mail/lib/lang/it_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/disc_plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/lt.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/tr_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/heart_break.png | 0 interface/ispconfig/interface/themes/default/icons/x16/drawer_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/notebooks_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter.lng | 17 interface/ispconfig/interface/mail/lib/lang/it.lng | 47 interface/ispconfig/interface/themes/default/icons/x16/disk_black.png | 0 interface/ispconfig/interface/themes/default/icons/flags/gn.png | 0 interface/ispconfig/interface/sites/lib/lang/pt.lng | 23 interface/ispconfig/interface/themes/default/icons/x16-list/folder.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tc.png | 0 interface/ispconfig/server/conf/index/favicon.ico | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng | 15 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/newspapers_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/films.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/fr.png | 0 interface/ispconfig/server/plugins-available/webmail_symlink_plugin.inc.php | 121 interface/ispconfig/interface/themes/default/icons/flags/cv.png | 0 interface/ispconfig/interface/themes/default/icons/x12/code.png | 0 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users.lng | 8 interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng | 14 interface/ispconfig/interface/themes/default/icons/x16/hammer_left.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient.lng | 9 interface/ispconfig/interface/mail/lib/lang/ja_mail_transport.lng | 10 interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_180_small.png | 0 interface/ispconfig/server/scripts/update_from_svn.sh | 10 interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bank_arrow.png | 0 interface/ispconfig/interface/mail/form/mail_spamfilter.tform.php | 146 interface/ispconfig/interface/themes/default/icons/x16/palette_plus.png | 0 interface/ispconfig/interface/web/tools/lib/lang/ro_usersettings.lng | 8 interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_dim_1.gif | 0 interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng | 7 interface/ispconfig/interface/dns/form/dns_a.tform.php | 159 interface/ispconfig/interface/themes/default/icons/flags/cg.png | 0 interface/ispconfig/interface/monitor/lib/lang/en.lng | 138 interface/ispconfig/server/conf/error/fr/500.html | 61 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist_list.lng | 9 interface/ispconfig/server/scripts/create_jailkit_user.sh | 33 interface/ispconfig/interface/themes/default/icons/flags/ms.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng | 8 interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng | 22 interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng | 14 interface/ispconfig/interface/js/yui/event/event-debug.js | 2076 interface/ispconfig/interface/js/yui/datasource/datasource-beta-debug.js | 912 interface/ispconfig/interface/themes/default/icons/x16/tick_small_circle.png | 0 interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng | 24 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/mail/mail_spamfilter_list.php | 23 interface/ispconfig/interface/js/yui/calendar/calendar-debug.js | 4331 + interface/ispconfig/interface/mail/lib/lang/en_mail_user.lng | 40 interface/ispconfig/interface/themes/default/icons/x16/printer__exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng | 16 interface/ispconfig/server/conf/error/hu/404.html | 61 interface/ispconfig/interface/themes/default/images/header_bg.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnifier__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_server.lng | 14 interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng | 43 interface/ispconfig/interface/mail/templates/mail_get_list.htm | 63 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/card_address.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_get_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/fi.lng | 22 interface/ispconfig/interface/client/client_template_edit.php | 97 interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif | 0 interface/ispconfig/interface/strengthmeter/lib/lang/ja_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/printer__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/layout_3.png | 0 interface/ispconfig/interface/monitor/templates/show_data.htm | 12 interface/ispconfig/interface/themes/default/icons/x16/documents_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/nl_cron_list.lng | 12 interface/ispconfig/interface/mail/lib/lang/br_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/images_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_go.png | 0 interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng | 6 interface/ispconfig/interface/js/yui/connection/connection-min.js | 104 interface/ispconfig/interface/themes/default/icons/x16/magnet.png | 0 interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng | 14 interface/ispconfig/interface/themes/default/icons/x16/stamp_exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng | 29 interface/ispconfig/interface/sites/lib/lang/es_web_sites_stats_list.lng | 8 interface/ispconfig/server/cron_daily.sh | 5 interface/ispconfig/interface/dns/lib/lang/ru.lng | 21 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/dns/dns_aaaa_edit.php | 139 interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng | 16 interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng | 7 interface/ispconfig/interface/login/lib/lang/ja.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/hammer__plus.png | 0 interface/ispconfig/server/mods-enabled/database_module.inc.php | 103 interface/ispconfig/interface/themes/default/icons/x16/calendar__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clock__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/bell_disable.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sort__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng | 9 interface/ispconfig/interface/login/lib/lang/fi.lng | 17 interface/ispconfig/server/conf/bind_named.conf.local.master | 9 interface/ispconfig/interface/mail/lib/lang/tr_mail_user_stats_list.lng | 8 interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/magnet_small.png | 0 interface/ispconfig/interface/sites/form/web_aliasdomain.tform.php | 142 interface/ispconfig/interface/mail/lib/lang/se_mail_user.lng | 41 interface/ispconfig/interface/themes/default/icons/x16/newspapers_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/home_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/feed__pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/en.lng | 22 interface/ispconfig/interface/themes/default/icons/x32/state_info.png | 0 interface/ispconfig/interface/sites/list/ftp_user.list.php | 99 interface/ispconfig/interface/themes/default/icons/flags/bh.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disk__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient.lng | 9 interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist_list.lng | 10 interface/ispconfig/server/plugins-available/getmail_plugin.inc.php | 163 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/mail/mail_alias_del.php | 51 interface/ispconfig/interface/mail/templates/spamfilter_config_mail_edit.htm | 66 interface/ispconfig/interface/web/tools/lib/lang/pt.lng | 7 interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall.lng | 9 interface/ispconfig/interface/sites/lib/lang/de_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/admin/lib/lang/br_language_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config.lng | 20 interface/ispconfig/interface/mail/lib/lang/bg_mail_transport_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/en_mail_alias_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/switch_pencil.png | 0 interface/ispconfig/interface/dns/lib/admin.conf.php | 2 interface/ispconfig/interface/help/lib/lang/it_support_message.lng | 7 interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng | 8 interface/ispconfig/interface/sites/lib/lang/fi_shell_user_list.lng | 8 interface/ispconfig/interface/mail/spamfilter_config_list.php | 24 interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium.png | 0 interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng | 5 interface/ispconfig/interface/sites/shell_user_del.php | 51 interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng | 7 interface/ispconfig/interface/monitor/lib/lang/fi_datalog_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter.lng | 17 interface/ispconfig/interface/client/templates/client_edit_address.htm | 101 interface/ispconfig/interface/help/index.php | 16 interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/md.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter.lng | 17 interface/ispconfig/interface/themes/default/yaml/core/base.css | 229 interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter.lng | 9 interface/ispconfig/interface/client/templates/client_template_edit_limits.htm | 124 interface/ispconfig/interface/client/lib/lang/ja_client_del.lng | 6 interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/discs_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/media_player.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sort_date_descending.png | 0 interface/ispconfig/interface/client/lib/lang/es_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/x16/drawer_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/ja_mail_forward.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/document_music.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng | 7 interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng | 7 interface/ispconfig/interface/js/yui/history/README | 11 interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2.png | 0 interface/ispconfig/interface/themes/default/icons/x12/accept_blue.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_domain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/user_orange.png | 0 interface/ispconfig/interface/client/lib/module.conf.php | 63 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/flags/gr.png | 0 interface/ispconfig/server/scripts/create_jailkit_chroot.sh | 43 interface/ispconfig/interface/themes/default/icons/x16/light_bulb__minus.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng | 11 interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm | 38 interface/ispconfig/interface/dns/templates/dns_a_edit.htm | 39 interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng | 15 interface/ispconfig/interface/sites/lib/lang/pl_web_domain_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/pl_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/shield__plus.png | 0 interface/ispconfig/interface/sites/lib/lang/hu_cron.lng | 21 interface/ispconfig/interface/index.php | 41 interface/ispconfig/interface/themes/default/icons/x16/arrow_135_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/card__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter.lng | 11 interface/ispconfig/interface/sites/lib/lang/fi_ftp_user.lng | 27 interface/ispconfig/interface/admin/lib/lang/sk_users.lng | 28 interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/newspaper_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/it_ftp_user_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/fr_cron_list.lng | 12 interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/tr_server.lng | 13 interface/ispconfig/interface/designer/lib/lang/en_module_show.lng | 17 interface/ispconfig/interface/monitor/templates/datalog_list.htm | 49 interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/wrench_screwdriver.png | 0 interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/piano_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_user_list.lng | 7 interface/ispconfig/interface/js/yui/menu/assets/menuchk8_nrm_1.gif | 0 interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng | 11 interface/ispconfig/interface/themes/default/css/screen/content.css | 188 interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain.lng | 40 interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng | 16 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pencil_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/flags/sh.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng | 15 interface/ispconfig/server/mods-enabled/monitor_core_module.inc.php | 1465 interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng | 26 interface/ispconfig/interface/themes/default/licences.txt | 8 interface/ispconfig/interface/themes/default/icons/x16/feed.png | 0 interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer.png | 0 interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng | 8 interface/ispconfig/interface/web/tools/index.php | 50 interface/ispconfig/interface/monitor/lib/lang/ja.lng | 138 interface/ispconfig/interface/designer/form_list.php | 89 interface/ispconfig/interface/themes/default/icons/x16/switch_minus.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng | 18 interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng | 7 interface/ispconfig/interface/mail/lib/lang/bg_mail_alias_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/sk_ftp_user.lng | 27 interface/ispconfig/interface/dns/dns_txt_edit.php | 138 interface/ispconfig/interface/themes/default/icons/flags/ph.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain.lng | 11 interface/ispconfig/interface/monitor/lib/lang/fi.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/sort_number.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng | 7 interface/ispconfig/interface/themes/default/yaml/debug/images/yaml_debug.gif | 0 interface/ispconfig/interface/admin/form/filesync.tform.php | 205 interface/ispconfig/interface/monitor/lib/lang/tr_syslog_list.lng | 7 interface/ispconfig/interface/js/yui/animation/README | 45 interface/ispconfig/interface/mail/lib/lang/pt_mail_user.lng | 40 interface/ispconfig/interface/sites/lib/lang/pt_shell_user_list.lng | 9 interface/ispconfig/interface/designer/module_show.php | 113 interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist.lng | 9 interface/ispconfig/interface/admin/form/dbsync.tform.php | 264 interface/ispconfig/interface/client/lib/lang/it.lng | 13 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users.lng | 8 interface/ispconfig/interface/mail/lib/lang/nl_mail_user.lng | 39 interface/ispconfig/interface/themes/default/icons/x12/security_orange.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clock_frame.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cross_small.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/en_language_import.lng | 8 interface/ispconfig/interface/mail/templates/spamfilter_blacklist_list.htm | 63 interface/ispconfig/interface/mail/lib/lang/es_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/screwdriver_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/ja_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/card__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/discs_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/printer__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users.lng | 8 interface/ispconfig/interface/mail/templates/mail_forward_list.htm | 57 interface/ispconfig/interface/mail/templates/spamfilter_policy_list.htm | 63 interface/ispconfig/interface/themes/default/icons/x32/state_warning.png | 0 interface/ispconfig/interface/client/lib/lang/bg_client.lng | 94 interface/ispconfig/interface/mail/form/mail_content_filter.tform.php | 116 interface/ispconfig/interface/dns/form/dns_mx.tform.php | 159 interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/pw.png | 0 interface/ispconfig/interface/web/tools/lib/lang/ro.lng | 6 interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/br_mail_transport_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng | 42 interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng | 8 interface/ispconfig/interface/mail/mail_aliasdomain_del.php | 51 interface/ispconfig/interface/help/lib/lang/ro_support_message.lng | 7 interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng | 15 interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall_list.lng | 10 interface/ispconfig/interface/dns/templates/dns_cname_edit.htm | 38 interface/ispconfig/interface/themes/default/icons/x16/inbox_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/shield_disable.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_alias_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/clock__plus.png | 0 interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng | 16 interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/themes/default/header_logo.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clipboard_empty.png | 0 interface/ispconfig/interface/admin/list/users.list.php | 75 interface/ispconfig/interface/admin/list/firewall.list.php | 93 interface/ispconfig/interface/js/yui/animation/animation.js | 1358 interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng | 9 interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng | 30 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_ftp_user_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/es_ftp_user.lng | 27 interface/ispconfig/interface/themes/default/icons/x16-list/refresh.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_315.png | 0 interface/ispconfig/interface/admin/users_edit.php | 74 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/mymodule/support_message_list.php | 24 interface/ispconfig/interface/mail/mail_alias_edit.php | 145 interface/ispconfig/interface/help/form/support_message.tform.php | 120 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users_list.lng | 10 interface/ispconfig/server/lib/classes/tpl_cache.inc.php | 186 interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng | 16 interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/pl_mail_user.lng | 39 interface/ispconfig/interface/themes/default/icons/x16/address_book__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/flags/cz.png | 0 interface/ispconfig/interface/themes/default/icons/flags/la.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_players_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tg.png | 0 interface/ispconfig/interface/mail/templates/spamfilter_other_edit.htm | 80 interface/ispconfig/interface/themes/default/icons/x16/briefcase_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/document__arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng | 6 interface/ispconfig/interface/js/yui/yahoo/yahoo-min.js | 15 interface/ispconfig/interface/themes/default/icons/x16/disc_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tables_exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/newspapers.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng | 26 interface/ispconfig/interface/designer/form_show.php | 119 interface/ispconfig/interface/monitor/datalog_list.php | 64 interface/ispconfig/interface/js/yui/calendar/README | 88 interface/ispconfig/interface/themes/default/icons/x16/color_minus.png | 0 interface/ispconfig/interface/mail/list/spamfilter_whitelist.list.php | 108 interface/ispconfig/server/plugins-available/apache2_plugin.inc.php | 987 interface/ispconfig/interface/admin/lib/lang/br_language_add.lng | 8 interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/ro_shell_user.lng | 22 interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng | 16 interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng | 15 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/es_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/films_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/book_small.png | 0 interface/ispconfig/interface/themes/default/css/navigation/nav_side.css | 125 interface/ispconfig/interface/mail/lib/lang/fr_mail_user.lng | 41 interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng | 16 interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/monitor/lib/lang/hu.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/wallet_exclamation.png | 0 interface/ispconfig/interface/client/list/client_template.list.php | 65 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tables_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/dollar.png | 0 interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng | 30 interface/ispconfig/interface/mail/lib/lang/es_mail_transport_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/sd.png | 0 interface/ispconfig/interface/admin/server_config_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/sort_quantity.png | 0 interface/ispconfig/interface/sites/lib/lang/pl_cron_list.lng | 12 interface/ispconfig/interface/themes/default/icons/x16/tags__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_domain.lng | 14 interface/ispconfig/interface/themes/default/icons/x16-list/flag_green.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/monitor/tools.inc.php | 456 interface/ispconfig/interface/themes/default/icons/x16/lock__pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/sk_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/book__pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/es_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/flags/bw.png | 0 interface/ispconfig/interface/designer/lib/lang/it_module_show.lng | 16 interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng | 6 interface/ispconfig/interface/monitor/lib/lang/ru_syslog_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng | 11 interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng | 16 interface/ispconfig/interface/mail/list/mail_user_stats.list.php | 60 interface/ispconfig/interface/themes/default/icons/x16/gear_disable.png | 0 interface/ispconfig/interface/web/tools/lib/lang/hu_usersettings.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/databases_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mail_open_image.png | 0 interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng | 6 interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm | 22 interface/ispconfig/interface/mail/spamfilter_config_del.php | 51 interface/ispconfig/interface/mail/templates/mail_user_filter_list.htm | 45 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/list/spamfilter_blacklist.list.php | 108 interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall.lng | 9 interface/ispconfig/interface/mail/lib/lang/sk_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/arrow_000_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/screwdriver_pencil.png | 0 interface/ispconfig/interface/js/yui/dom/dom.js | 901 interface/ispconfig/interface/dns/lib/lang/se.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/lock__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng | 16 interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x12/money.png | 0 interface/ispconfig/interface/themes/default/icons/x16/door_plus.png | 0 interface/ispconfig/interface/client/lib/lang/ja_reseller.lng | 93 interface/ispconfig/interface/mail/mail_transport_del.php | 51 interface/ispconfig/interface/mail/templates/spamfilter_users_edit.htm | 50 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/blog__exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng | 6 interface/ispconfig/interface/sites/list/web_aliasdomain.list.php | 99 interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng | 5 interface/ispconfig/interface/client/lib/lang/br_client.lng | 94 interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter.lng | 10 interface/ispconfig/interface/sites/lib/lang/se_cron.lng | 21 interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/calendar_day.png | 0 interface/ispconfig/interface/themes/default/icons/x16/receipt_exclamation.png | 0 interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/paint_can.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/star__arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_users.lng | 28 interface/ispconfig/server/conf/error/sr/500.html | 61 interface/ispconfig/interface/sites/lib/lang/nl_web_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/information_frame.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng | 68 interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/ck.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sort.png | 0 interface/ispconfig/interface/mail/mail_get_list.php | 26 interface/ispconfig/interface/themes/default/icons/x16/clock_fill.png | 0 interface/ispconfig/server/conf/error/se/401.html | 61 interface/ispconfig/interface/monitor/lib/lang/en_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/color.png | 0 interface/ispconfig/server/scripts/ispconfig_update.sh | 3 interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/microphone_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/minus_circle.png | 0 interface/ispconfig/interface/designer/lib/lang/fi.lng | 2 interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter.lng | 17 interface/ispconfig/interface/sites/lib/lang/ja.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/database_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/es_web_domain.lng | 60 interface/ispconfig/interface/designer/lib/lang/hu.lng | 2 interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/pl_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/folders.png | 0 interface/ispconfig/interface/sites/lib/lang/pl_shell_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/calculator_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x64/network.png | 0 interface/ispconfig/interface/dns/dns_soa_list.php | 25 interface/ispconfig/interface/mail/mail_forward_list.php | 26 interface/ispconfig/interface/themes/default/icons/flags/bd.png | 0 interface/ispconfig/interface/sites/web_aliasdomain_del.php | 51 interface/ispconfig/interface/themes/default/icons/x16/blog__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bank.png | 0 interface/ispconfig/interface/themes/default/icons/x16/feed_balloon.png | 0 interface/ispconfig/interface/client/lib/lang/se_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/x16-list/magnify.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cross.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config_list.lng | 5 interface/ispconfig/interface/web/tools/lib/lang/fi_usersettings.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/mh.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_transport.lng | 10 interface/ispconfig/interface/designer/module_nav_item_flip.php | 93 interface/ispconfig/interface/themes/default/icons/x16/clock__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_mail_domain.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/document.png | 0 interface/ispconfig/interface/js/yui/container/assets/info16_1.gif | 0 interface/ispconfig/interface/help/lib/lang/de.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle.png | 0 interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng | 15 interface/ispconfig/interface/sites/lib/lang/fi_web_domain_list.lng | 8 interface/ispconfig/interface/monitor/lib/lang/fi_syslog_list.lng | 7 interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng | 9 interface/ispconfig/interface/js/yui/fonts/fonts-min.css | 7 interface/ispconfig/interface/admin/lib/lang/br_language_export.lng | 6 interface/ispconfig/interface/dns/form/dns_hinfo.tform.php | 158 interface/ispconfig/interface/themes/default/icons/x16/microphone_pencil.png | 0 interface/ispconfig/interface/client/client_edit.php | 228 interface/ispconfig/interface/js/yui/element/element-beta.js | 896 interface/ispconfig/interface/themes/default/icons/x16/pictures_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/en_language_add.lng | 8 interface/ispconfig/interface/sites/lib/lang/fr_database.lng | 25 interface/ispconfig/interface/themes/default/icons/x16/screwdriver_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config.lng | 21 interface/ispconfig/interface/themes/default/icons/flags/sm.png | 0 interface/ispconfig/interface/themes/default/icons/x16/ruler_crop.png | 0 interface/ispconfig/interface/themes/default/icons/x16/images_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/my.png | 0 interface/ispconfig/interface/themes/default/icons/x16/blog__arrow.png | 0 interface/ispconfig/interface/login/lib/lang/fr.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/bank_pencil.png | 0 interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain.lng | 40 interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient.lng | 9 interface/ispconfig/interface/mail/lib/lang/pl_mail_alias_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/auction_hammer.png | 0 interface/ispconfig/interface/themes/default/icons/x16/table_insert_column.png | 0 interface/ispconfig/interface/themes/default/icons/x16/calculator_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/crown__pencil.png | 0 interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/sort_small.png | 0 interface/ispconfig/interface/themes/default/icons/flags/kn.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/images/buttonHolder_bg.gif | 0 interface/ispconfig/interface/js/yui/treeview/README | 147 interface/ispconfig/interface/js/yui/event/README | 161 interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/mail/templates/spamfilter_whitelist_list.htm | 63 interface/ispconfig/interface/sites/cron_list.php | 23 interface/ispconfig/interface/sites/lib/lang/se_database.lng | 25 interface/ispconfig/interface/admin/language_complete.php | 167 interface/ispconfig/interface/themes/default/icons/x16/sticky_note__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_mail_user_list.lng | 7 interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm | 84 interface/ispconfig/interface/themes/default/icons/x16/cross_shield.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_web_domain_list.lng | 8 interface/ispconfig/server/conf/error/se/403.html | 61 interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng | 12 interface/ispconfig/server/conf/error/cz/500.html | 61 interface/ispconfig/interface/mail/list/mail_relay_recipient.list.php | 85 interface/ispconfig/interface/themes/default/icons/x16/card__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lock__plus.png | 0 interface/ispconfig/interface/client/lib/lang/ja_client.lng | 94 interface/ispconfig/interface/themes/default/icons/x16/star_small_empty.png | 0 interface/ispconfig/interface/mail/lib/lang/de_mail_alias_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/fr.lng | 47 interface/ispconfig/interface/themes/default/icons/x16/folders_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist.lng | 9 interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter.lng | 17 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_blue.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng | 16 interface/ispconfig/interface/themes/default/icons/x16-list/rss.png | 0 interface/ispconfig/interface/index.htm | 8 interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist_list.lng | 10 interface/ispconfig/server/plugins-available/postfix_server_plugin.inc.php | 116 interface/ispconfig/interface/admin/templates/language_complete.htm | 29 interface/ispconfig/interface/themes/default/icons/x16/microphone.png | 0 interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall.lng | 9 interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng | 12 interface/ispconfig/interface/client/lib/lang/ro_client.lng | 94 interface/ispconfig/interface/themes/default/icons/x16/report_plus.png | 0 interface/ispconfig/interface/login/lib/lang/es.lng | 17 interface/ispconfig/interface/mail/mail_user_del.php | 66 interface/ispconfig/interface/themes/default/icons/x16-list/arrow_right_blue_round.png | 0 interface/ispconfig/interface/themes/default/css/print/print_100.css | 31 interface/ispconfig/interface/themes/default/icons/x16/sort__plus.png | 0 interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist_list.lng | 10 interface/ispconfig/interface/dns/dns_template_edit.php | 60 interface/ispconfig/interface/themes/default/icons/flags/pr.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_270.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wand.png | 0 interface/ispconfig/interface/js/yui/slider/README | 69 interface/ispconfig/interface/themes/default/icons/flags/tl.png | 0 interface/ispconfig/interface/themes/default/icons/x16/table_insert.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng | 8 interface/ispconfig/interface/help/templates/support_message_view.htm | 26 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng | 6 interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng | 6 interface/ispconfig/interface/sites/lib/lang/se_ftp_user_list.lng | 8 interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/vu.png | 0 interface/ispconfig/interface/sites/lib/lang/tr_ftp_user.lng | 27 interface/ispconfig/server/plugins-available/apps_vhost_plugin.inc.php | 114 interface/ispconfig/interface/sites/lib/lang/it_database.lng | 25 interface/ispconfig/interface/sites/lib/lang/hu_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/images.png | 0 interface/ispconfig/interface/mail/templates/mail_user_list.htm | 58 interface/ispconfig/interface/client/lib/lang/ru_reseller.lng | 94 interface/ispconfig/interface/sites/lib/lang/de_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/script__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/sites/lib/lang/es_cron_list.lng | 12 interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall_list.lng | 10 interface/ispconfig/interface/sites/lib/lang/nl_ftp_user.lng | 27 interface/ispconfig/interface/sites/list/web_subdomain.list.php | 99 interface/ispconfig/interface/admin/templates/server_edit_config.htm | 22 interface/ispconfig/interface/themes/default/icons/x16/funnel_pencil.png | 0 interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/fi_users.lng | 28 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_text.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_player_small_red.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist.lng | 9 interface/ispconfig/server/conf/index/standard_index.html_br | 60 interface/ispconfig/interface/themes/default/icons/x12/star.png | 0 interface/ispconfig/interface/themes/default/icons/flags/fj.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/js/yui/treeview/treeview.js | 2248 interface/ispconfig/interface/themes/default/icons/x16-list/code.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/information_small.png | 0 interface/ispconfig/interface/admin/form/software_repo.tform.php | 153 interface/ispconfig/interface/themes/default/icons/x16/balloon__exclamation.png | 0 interface/ispconfig/server/conf/error/gr/403.html | 61 interface/ispconfig/server/plugins-enabled/software_update_plugin.inc.php | 178 interface/ispconfig/interface/sites/lib/lang/sk_web_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/lock_small.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/af.png | 0 interface/ispconfig/server/plugins-enabled/apache2_plugin.inc.php | 987 interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/lib/lang/fr_mail_forward_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/hu_mail_transport_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy.lng | 38 interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy.lng | 38 interface/ispconfig/interface/mail/lib/lang/nl_mail_forward.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/disk__exclamation.png | 0 interface/ispconfig/server/conf/index/standard_index.html_de | 60 interface/ispconfig/interface/mail/templates/mail_domain_list.htm | 57 interface/ispconfig/interface/themes/default/icons/x16/discs_plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pin_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng | 4 interface/ispconfig/interface/themes/default/icons/x16/bookmark__arrow.png | 0 interface/ispconfig/interface/help/support_message_list.php | 20 interface/ispconfig/server/conf/index/standard_index.html_cz | 60 interface/ispconfig/interface/client/lib/lang/ro_reseller.lng | 96 interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng | 15 interface/ispconfig/interface/sites/templates/ftp_user_list.htm | 59 interface/ispconfig/interface/mail/lib/lang/en_mail_transport_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/en_mail_alias.lng | 11 interface/ispconfig/interface/mail/templates/mail_transport_list.htm | 63 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist.lng | 9 interface/ispconfig/server/conf/index/standard_index.html_en | 60 interface/ispconfig/server/conf/index/standard_index.html_es | 60 interface/ispconfig/interface/admin/lib/lang/se_language_import.lng | 8 interface/ispconfig/interface/sites/lib/lang/ru_shell_user.lng | 23 interface/ispconfig/interface/themes/default/icons/flags/ml.png | 0 interface/ispconfig/interface/client/lib/lang/sk_client.lng | 94 interface/ispconfig/interface/themes/default/icons/x16/paper_bag_minus.png | 0 interface/ispconfig/interface/client/lib/lang/br_client_del.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/books_brown.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/se_strengthmeter.lng | 8 interface/ispconfig/interface/mail/lib/lang/hu_mail_alias.lng | 11 interface/ispconfig/interface/web/tools/lib/lang/se_usersettings.lng | 8 interface/ispconfig/interface/monitor/templates/show_log.htm | 25 interface/ispconfig/server/conf/index/standard_index.html_fi | 60 interface/ispconfig/interface/themes/default/css/central.css | 32 interface/ispconfig/interface/themes/default/icons/flags/gi.png | 0 interface/ispconfig/server/conf/index/standard_index.html_fr | 60 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ro_mail_user_list.lng | 7 interface/ispconfig/interface/monitor/lib/lang/en_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/address_book.png | 0 interface/ispconfig/interface/themes/default/icons/x16/socket.png | 0 interface/ispconfig/interface/themes/default/icons/flags/au.png | 0 interface/ispconfig/interface/themes/default/icons/x16/mail_open_document.png | 0 interface/ispconfig/interface/themes/default/icons/x12/stop.png | 0 interface/ispconfig/interface/themes/default/icons/x12/printer.png | 0 interface/ispconfig/interface/themes/default/icons/x16/minus_shield.png | 0 interface/ispconfig/interface/themes/default/icons/x16/palette_pencil.png | 0 interface/ispconfig/interface/mail/form/mail_whitelist.tform.php | 110 interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/funnel_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_server.lng | 13 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users_list.lng | 10 interface/ispconfig/interface/mail/form/mail_forward.tform.php | 108 interface/ispconfig/interface/themes/default/icons/x16/camera_small_black.png | 0 interface/ispconfig/server/cron_daily.php | 303 interface/ispconfig/interface/login/templates/password_reset.htm | 33 interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter.lng | 9 interface/ispconfig/server/server.php | 148 interface/ispconfig/server/conf/index/standard_index.html_gr | 60 interface/ispconfig/interface/themes/default/icons/flags/ba.png | 0 interface/ispconfig/interface/themes/default/icons/x16/palette.png | 0 interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng | 9 interface/ispconfig/interface/monitor/lib/lang/nl_syslog_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/pl_ftp_user.lng | 27 interface/ispconfig/interface/themes/default/icons/x16/layout_header_2_equal.png | 0 interface/ispconfig/interface/designer/lib/lang/it.lng | 2 interface/ispconfig/interface/themes/default/icons/flags/it.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng | 42 interface/ispconfig/interface/sites/lib/lang/ru_shell_user_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng | 12 interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/door_exclamation.png | 0 interface/ispconfig/interface/mail/mail_alias_list.php | 26 interface/ispconfig/interface/themes/default/icons/x16/contrast.png | 0 interface/ispconfig/interface/js/yui/datatable/assets/datatable.css | 82 interface/ispconfig/interface/mail/form/spamfilter_blacklist.tform.php | 119 interface/ispconfig/server/conf/index/standard_index.html_hu | 60 interface/ispconfig/interface/themes/default/icons/x16/binocular_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/newspaper_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter_list.lng | 7 interface/ispconfig/server/conf/error/se/500.html | 61 interface/ispconfig/interface/themes/default/icons/x16/light_bulb.png | 0 interface/ispconfig/interface/mail/mail_domain_catchall_edit.php | 138 interface/ispconfig/interface/themes/default/icons/x16/balloons_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/key__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/database_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/plug_exclamation.png | 0 interface/ispconfig/server/conf/index/standard_index.html_it | 60 interface/ispconfig/interface/themes/default/icons/x16/cassette_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng | 7 interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/media_player__plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/co.png | 0 interface/ispconfig/interface/sites/lib/lang/de_cron_list.lng | 12 interface/ispconfig/interface/sites/lib/lang/en_cron_list.lng | 12 interface/ispconfig/interface/themes/default/yaml/print/print_003_draft.css | 32 interface/ispconfig/interface/themes/default/icons/x16/picture_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/tw.png | 0 interface/ispconfig/interface/client/lib/lang/fi_client_template.lng | 57 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users.lng | 8 interface/ispconfig/interface/monitor/lib/lang/fr_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/eraser_minus.png | 0 interface/ispconfig/interface/js/yui/treeview/assets/tp.gif | 0 interface/ispconfig/interface/admin/templates/users_list.htm | 61 interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng | 15 interface/ispconfig/interface/js/yui/treeview/assets/vline.gif | 0 interface/ispconfig/interface/themes/default/icons/x16-list/envelope.png | 0 interface/ispconfig/interface/designer/lib/admin.conf.php | 4 interface/ispconfig/interface/client/lib/lang/sk.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/puzzle__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/equalizer_arrow.png | 0 interface/ispconfig/interface/dns/dns_alias_edit.php | 138 interface/ispconfig/interface/sites/lib/lang/sk_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/trophy_pencil.png | 0 interface/ispconfig/interface/admin/templates/language_add.htm | 29 interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng | 15 interface/ispconfig/interface/themes/default/icons/x32/state_ok.png | 0 interface/ispconfig/interface/themes/default/icons/x16/films_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/broom.png | 0 interface/ispconfig/interface/sites/lib/lang/ru_web_aliasdomain_list.lng | 12 interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng | 14 interface/ispconfig/interface/js/yui/datasource/README | 5 interface/ispconfig/interface/mail/list/mail_get.list.php | 102 interface/ispconfig/interface/themes/default/icons/x16/receipts_minus.png | 0 interface/ispconfig/interface/js/yui/button/README | 3 interface/ispconfig/server/conf/error/fi/401.html | 61 interface/ispconfig/interface/mail/mail_spamfilter_del.php | 51 interface/ispconfig/interface/sites/lib/lang/nl_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/ni.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sticky_note_shred.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng | 6 interface/ispconfig/interface/sites/templates/cron_list.htm | 71 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/jo.png | 0 interface/ispconfig/interface/admin/lib/lang/nl.lng | 40 interface/ispconfig/server/conf/error/en/403.html | 61 interface/ispconfig/interface/sites/lib/lang/it_cron_list.lng | 12 interface/ispconfig/interface/dns/form/dns_soa.tform.php | 230 interface/ispconfig/interface/sites/lib/lang/it_web_sites_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng | 7 interface/ispconfig/interface/sites/lib/lang/bg_ftp_user_list.lng | 8 interface/ispconfig/server/conf/error/es/403.html | 61 interface/ispconfig/interface/dns/form/dns_cname.tform.php | 159 interface/ispconfig/interface/mail/list/mail_user_filter.list.php | 60 interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng | 18 interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain.lng | 41 interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/hammer__pencil.png | 0 interface/ispconfig/interface/themes/default/templates/module_tree.tpl.htm | 38 interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng | 6 interface/ispconfig/interface/admin/lib/lang/pt_groups.lng | 6 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/camera_black.png | 0 interface/ispconfig/interface/themes/default/icons/x16/tick_small.png | 0 interface/ispconfig/interface/sites/web_subdomain_del.php | 51 interface/ispconfig/interface/themes/default/icons/flags/ye.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/x16/user_green.png | 0 interface/ispconfig/interface/themes/default/icons/x16/image_resize.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ne.png | 0 interface/ispconfig/interface/client/lib/lang/it_client_template.lng | 57 interface/ispconfig/interface/themes/default/icons/x16/envelope_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng | 6 interface/ispconfig/interface/dns/form/dns_srv.tform.php | 159 interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng | 14 interface/ispconfig/interface/themes/default/icons/flags/li.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pictures_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/themes/default/images/meter_bg.gif | 0 interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng | 7 interface/ispconfig/interface/mail/form/mail_alias.tform.php | 114 interface/ispconfig/interface/themes/default/icons/x16/bell.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist.lng | 9 interface/ispconfig/interface/sites/lib/lang/de_web_domain_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng | 6 interface/ispconfig/interface/themes/default/icons/flags/si.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_180.png | 0 interface/ispconfig/interface/admin/language_export.php | 120 interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/drill_minus.png | 0 interface/ispconfig/interface/client/lib/lang/hu_client.lng | 94 interface/ispconfig/interface/sites/list/web_sites_stats.list.php | 60 interface/ispconfig/interface/mail/lib/lang/pt_mail_alias.lng | 12 interface/ispconfig/interface/themes/default/icons/x16/contrast__minus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/mu.png | 0 interface/ispconfig/interface/js/yui/container/assets/close12_1.gif | 0 interface/ispconfig/interface/themes/default/icons/flags/cd.png | 0 interface/ispconfig/interface/sites/lib/lang/en_web_domain.lng | 61 interface/ispconfig/interface/strengthmeter/lib/lang/fi_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/cards__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/it_language_add.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/media_player_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/printer_small.png | 0 interface/ispconfig/interface/themes/default/icons/x16/scripts__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/balloons_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/ja_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/sticky_note.png | 0 interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng | 42 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist_list.lng | 9 interface/ispconfig/interface/client/lib/lang/es_client.lng | 94 interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy.lng | 38 interface/ispconfig/interface/monitor/list/datalog.list.php | 91 interface/ispconfig/interface/mail/lib/lang/pl_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium.png | 0 interface/ispconfig/interface/themes/default/icons/flags/re.png | 0 interface/ispconfig/interface/help/lib/lang/fi.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/ge.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng | 16 interface/ispconfig/server/plugins-enabled/cron_plugin.inc.php | 239 interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng | 15 interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist.lng | 9 interface/ispconfig/server/lib/classes/mod_mail_base.inc.php | 76 interface/ispconfig/interface/client/templates/client_template_list.htm | 53 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/piano_exclamation.png | 0 interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm | 39 interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/se.lng | 40 interface/ispconfig/interface/admin/lib/lang/ru.lng | 41 interface/ispconfig/interface/themes/default/icons/x16/sort__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/vcard_edit.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/feed__arrow.png | 0 interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng | 7 interface/ispconfig/interface/js/yui/calendar/assets/calx.gif | 0 interface/ispconfig/interface/themes/default/icons/x16/contrast__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_transport.lng | 10 interface/ispconfig/interface/client/lib/lang/hu_client_template.lng | 57 interface/ispconfig/interface/designer/module_nav_item_del.php | 82 interface/ispconfig/server/conf/bind_pri.domain.master | 48 interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/icons/flags/uz.png | 0 interface/ispconfig/interface/themes/default/icons/x16/disk__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/fi_mail_get.lng | 16 interface/ispconfig/server/conf/error/fi/405.html | 61 interface/ispconfig/interface/themes/default/icons/x16/bandaid_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng | 15 interface/ispconfig/interface/sites/lib/lang/bg_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/box.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter.lng | 10 interface/ispconfig/interface/mail/mail_whitelist_list.php | 24 interface/ispconfig/server/lib/classes/services.inc.php | 80 interface/ispconfig/interface/themes/default/icons/flags/gt.png | 0 interface/ispconfig/server/conf/error/es/500.html | 61 interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/tables.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng | 15 interface/ispconfig/interface/sites/lib/lang/ro_cron_list.lng | 12 interface/ispconfig/interface/sites/lib/lang/br_shell_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/ug.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ma.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/templates/mail_relay_recipient_list.htm | 55 interface/ispconfig/interface/mail/list/mail_whitelist.list.php | 94 interface/ispconfig/server/plugins-available/firewall_plugin.inc.php | 145 interface/ispconfig/interface/mail/lib/lang/pl_mail_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music_playlist.png | 0 interface/ispconfig/server/mods-enabled/mail_module.inc.php | 153 interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter.lng | 10 interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/web/tools/lib/lang/pl.lng | 6 interface/ispconfig/interface/client/lib/lang/br_reseller.lng | 93 interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient.lng | 9 interface/ispconfig/server/plugins-enabled/maildeliver_plugin.inc.php | 131 interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng | 22 interface/ispconfig/interface/mail/lib/lang/hu_mail_forward_list.lng | 8 interface/ispconfig/interface/admin/form/system_config.tform.php | 167 interface/ispconfig/interface/admin/login_as.php | 84 interface/ispconfig/interface/client/lib/lang/br_clients_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/script__exclamation.png | 0 interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng | 7 interface/ispconfig/interface/themes/default/templates/main.tpl.htm | 111 interface/ispconfig/server/conf/error/si/400.html | 61 interface/ispconfig/interface/admin/templates/language_export.htm | 28 interface/ispconfig/interface/themes/default/icons/x16/notebook_pencil.png | 0 interface/ispconfig/server/conf/error/br/404.html | 61 interface/ispconfig/server/conf/error/sr/404.html | 61 interface/ispconfig/interface/themes/default/icons/x16/sticky_note__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/en.lng | 22 interface/ispconfig/interface/js/yui/utilities/utilities.js | 418 interface/ispconfig/interface/themes/default/icons/x16/camera__minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/blogs_exclamation.png | 0 interface/ispconfig/interface/mail/spamfilter_blacklist_edit.php | 118 interface/ispconfig/interface/sites/lib/lang/pt_web_aliasdomain_list.lng | 12 interface/ispconfig/interface/themes/default/icons/x16/chain_minus.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall.lng | 9 interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_stack.png | 0 interface/ispconfig/interface/admin/lib/lang/de_users.lng | 28 interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter.lng | 17 interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/de_system_config.lng | 15 interface/ispconfig/interface/admin/lib/lang/fr_server.lng | 13 interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng | 15 interface/ispconfig/interface/mail/mail_domain_catchall_del.php | 51 interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng | 9 interface/ispconfig/interface/client/lib/lang/bg.lng | 13 interface/ispconfig/server/plugins-available/ftpuser_base_plugin.inc.php | 112 interface/ispconfig/interface/admin/lib/lang/de_groups.lng | 5 interface/ispconfig/interface/sites/lib/lang/ru_cron_list.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/card__pencil.png | 0 interface/ispconfig/interface/login/lib/module.conf.php | 6 interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng | 6 interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng | 6 interface/ispconfig/interface/admin/templates/server_config_list.htm | 40 interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng | 16 interface/ispconfig/interface/help/lib/lang/ro.lng | 9 interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain.lng | 40 interface/ispconfig/server/lib/classes/ini_parser.inc.php | 69 interface/ispconfig/interface/themes/default/icons/x16/pin.png | 0 interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng | 26 interface/ispconfig/interface/mail/lib/lang/sk_mail_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/pn.png | 0 interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/tick_shield.png | 0 interface/ispconfig/interface/themes/default/yaml/print/print_100_draft.css | 31 interface/ispconfig/interface/themes/default/icons/x16/shield__minus.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/hu_mail_forward.lng | 7 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/fi.lng | 40 interface/ispconfig/interface/dns/form/dns_template.tform.php | 101 interface/ispconfig/interface/themes/default/icons/x16/switch_exclamation.png | 0 interface/ispconfig/server/conf/error/gr/405.html | 61 interface/ispconfig/interface/designer/lib/lang/de_module_show.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/tag.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall.lng | 9 interface/ispconfig/server/conf/error/it/404.html | 61 interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/sites/ftp_user_edit.php | 209 interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng | 16 interface/ispconfig/interface/js/yui/container/container_core-min.js | 109 interface/ispconfig/interface/themes/default/icons/x16/information.png | 0 interface/ispconfig/interface/themes/default/icons/flags/mp.png | 0 interface/ispconfig/interface/js/yui/treeview/assets/lm.gif | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_forward_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark_book.png | 0 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_pink.png | 0 interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng | 5 interface/ispconfig/interface/sites/lib/lang/pt_database.lng | 26 interface/ispconfig/interface/mail/lib/lang/fi.lng | 47 interface/ispconfig/interface/mail/lib/lang/fr_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/css/navigation/nav_top.css | 52 interface/ispconfig/interface/sites/lib/lang/hu_web_domain_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/se_web_subdomain.lng | 40 interface/ispconfig/interface/help/lib/lang/nl_support_message.lng | 7 interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double_135.png | 0 interface/ispconfig/interface/themes/default/icons/x16/user_edit.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist_list.lng | 10 interface/ispconfig/interface/mail/templates/mail_blacklist_edit.htm | 41 interface/ispconfig/interface/strengthmeter/lib/lang/bg_strengthmeter.lng | 8 interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/pl_groups.lng | 5 interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/documents_plus.png | 0 interface/ispconfig/interface/mail/lib/lang/ru_mail_get_list.lng | 10 interface/ispconfig/interface/sites/lib/lang/es_web_domain_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/document_zipper.png | 0 interface/ispconfig/interface/themes/default/icons/x16/printer__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_alias.lng | 11 interface/ispconfig/interface/client/form/reseller.tform.php | 761 interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng | 17 interface/ispconfig/interface/js/yui/container/assets/container.css | 230 interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng | 6 interface/ispconfig/interface/monitor/lib/lang/it.lng | 138 interface/ispconfig/interface/themes/default/icons/x16/books.png | 0 interface/ispconfig/interface/js/yui/yahoo-dom-event/yahoo-dom-event.js | 144 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng | 11 interface/ispconfig/interface/mail/lib/lang/nl_mail_alias.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/microphone_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/ja_web_domain_list.lng | 8 interface/ispconfig/interface/login/password_reset.php | 92 interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/folders_pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config.lng | 20 interface/ispconfig/interface/web/tools/lib/lang/pt_usersettings.lng | 9 interface/ispconfig/interface/sites/lib/lang/fr_database_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter.lng | 17 interface/ispconfig/interface/admin/lib/lang/es_users.lng | 28 interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x12/minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/discs.png | 0 interface/ispconfig/interface/mail/templates/mail_aliasdomain_list.htm | 57 interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng | 15 interface/ispconfig/interface/client/lib/lang/sk_client_del.lng | 6 interface/ispconfig/interface/sites/templates/database_edit.htm | 108 interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng | 8 interface/ispconfig/interface/client/lib/lang/fi_reseller.lng | 93 interface/ispconfig/interface/themes/default/icons/flags/cs.png | 0 interface/ispconfig/interface/mail/lib/lang/es_mail_alias_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain.lng | 11 interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng | 15 interface/ispconfig/interface/admin/lib/lang/de_server_config.lng | 68 interface/ispconfig/interface/monitor/lib/lang/br_datalog_list.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/ky.png | 0 interface/ispconfig/interface/client/lib/lang/hu.lng | 13 interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng | 68 interface/ispconfig/interface/admin/lib/lang/br_groups.lng | 5 interface/ispconfig/interface/js/yui/menu/assets/menu.css | 384 interface/ispconfig/interface/sites/shell_user_edit.php | 224 interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng | 42 interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng | 12 interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng | 23 interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/hu_web_domain.lng | 60 interface/ispconfig/interface/themes/default/icons/x16/trophy.png | 0 interface/ispconfig/server/conf/getmail.conf.master | 16 interface/ispconfig/interface/admin/remote_user_edit.php | 43 interface/ispconfig/interface/designer/templates/paging.tpl.htm | 9 interface/ispconfig/interface/themes/default/icons/x16/piano_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng | 10 interface/ispconfig/interface/monitor/lib/lang/es_syslog_list.lng | 7 interface/ispconfig/interface/dns/templates/dns_records_edit.htm | 12 interface/ispconfig/interface/themes/default/icons/x12/cancel_round.png | 0 interface/ispconfig/interface/themes/default/icons/flags/td.png | 0 interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng | 42 interface/ispconfig/interface/help/lib/lang/es_support_message.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/gear__exclamation.png | 0 interface/ispconfig/interface/js/yui/button/assets/button.css | 217 interface/ispconfig/interface/themes/default/icons/x12/burst.png | 0 interface/ispconfig/interface/themes/default/icons/x16/star__exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng | 68 interface/ispconfig/interface/themes/default/icons/x16/photo_album_blue.png | 0 interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng | 22 interface/ispconfig/interface/themes/default/icons/x16/calculator.png | 0 interface/ispconfig/interface/sites/lib/lang/sk_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/tick_circle_frame.png | 0 interface/ispconfig/interface/themes/default/icons/flags/ch.png | 0 interface/ispconfig/server/conf/error/pl/400.html | 61 interface/ispconfig/server/plugins-enabled/apps_vhost_plugin.inc.php | 114 interface/ispconfig/interface/themes/default/icons/flags/st.png | 0 interface/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php | 328 interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/heart__plus.png | 0 interface/ispconfig/interface/sites/lib/lang/pl_web_sites_stats_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/fi_mail_transport_list.lng | 9 interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng | 6 interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist.lng | 10 interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng | 68 interface/ispconfig/interface/themes/default/icons/flags/vn.png | 0 interface/ispconfig/interface/themes/default/icons/x16/inbox_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist_list.lng | 10 interface/ispconfig/interface/strengthmeter/lib/lang/de_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/media_player_small_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16/broom_minus.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng | 16 interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng | 4 interface/ispconfig/interface/sites/lib/lang/se_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/client/lib/lang/de.lng | 13 interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/documents.png | 0 interface/ispconfig/interface/themes/default/yaml/print/print_023_draft.css | 40 interface/ispconfig/interface/dns/templates/dns_txt_edit.htm | 38 interface/ispconfig/interface/themes/default/icons/x16/layout_2.png | 0 interface/ispconfig/interface/themes/default/icons/x16/document_horizontal_text.png | 0 interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/drawer.png | 0 interface/ispconfig/interface/themes/default/icons/x16/document__minus.png | 0 interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng | 10 interface/ispconfig/interface/mail/mail_get_del.php | 51 interface/ispconfig/interface/mail/templates/mail_user_custom_rules_edit.htm | 22 interface/ispconfig/interface/web/tools/lib/lang/de_usersettings.lng | 8 interface/ispconfig/server/mods-available/monitor_core_module.inc.php | 1465 interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_mail_alias_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/wrench_pencil.png | 0 interface/ispconfig/interface/dns/dns_a_list.php | 24 interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/x16/pencil.png | 0 interface/ispconfig/interface/admin/lib/lang/de_language_export.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/book__minus.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/envelope_plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/na.png | 0 interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng | 6 interface/ispconfig/interface/admin/groups_list.php | 51 interface/ispconfig/server/conf/error/fi/503.html | 61 interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain.lng | 11 interface/ispconfig/interface/mail/mail_blacklist_edit.php | 114 interface/ispconfig/interface/themes/default/icons/flags/er.png | 0 interface/ispconfig/interface/client/lib/lang/bg_reseller.lng | 93 interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/br_shell_user.lng | 22 interface/ispconfig/server/conf/error/br/403.html | 61 interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng | 6 interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng | 26 interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng | 9 interface/ispconfig/interface/js/yui/treeview/assets/tph.gif | 0 interface/ispconfig/interface/sites/lib/lang/se_ftp_user.lng | 27 interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng | 8 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/ja_mail_user.lng | 39 interface/ispconfig/interface/themes/default/icons/flags/se.png | 0 interface/ispconfig/interface/themes/default/icons/x12/world2.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng | 16 interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_list.lng | 8 interface/ispconfig/server/mods-available/mail_module.inc.php | 153 interface/ispconfig/interface/mail/lib/lang/fr_mail_transport.lng | 10 interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter.lng | 10 interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/nl_database.lng | 25 interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng | 6 interface/ispconfig/server/plugins-enabled/mysql_clientdb_plugin.inc.php | 305 interface/ispconfig/interface/themes/default/icons/x16/mails.png | 0 interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/blogs_minus.png | 0 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/layout_header_3.png | 0 interface/ispconfig/interface/mail/mail_aliasdomain_list.php | 26 interface/ispconfig/interface/sites/list/web_domain.list.php | 94 interface/ispconfig/interface/mail/lib/lang/sk_mail_alias_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/tr_ftp_user_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/drill.png | 0 interface/ispconfig/server/lib/classes/db_mysql.inc.php | 612 interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users_list.lng | 10 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng | 7 interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng | 8 interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/printer__pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng | 6 interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng | 15 interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/flags/np.png | 0 interface/ispconfig/interface/mail/form/mail_domain_catchall.tform.php | 119 interface/ispconfig/interface/themes/default/icons/x16/clipboard__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/it_mail_transport.lng | 10 interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng | 42 interface/ispconfig/interface/web/tools/lib/lang/it.lng | 6 interface/ispconfig/interface/mail/lib/lang/pl_mail_alias.lng | 11 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/receipt_minus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/heart_small.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng | 15 interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter.lng | 17 interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng | 5 interface/ispconfig/interface/monitor/lib/lang/nl.lng | 138 interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng | 16 interface/ispconfig/interface/mail/lib/lang/fr_mail_alias_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16-list/minus_round.png | 0 interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/se_shell_user_list.lng | 8 interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/il.png | 0 interface/ispconfig/interface/designer/lib/lang/ru.lng | 3 interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_actual.png | 0 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy.lng | 38 interface/ispconfig/interface/strengthmeter/lib/lang/ro_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x12/question_blue.png | 0 interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng | 7 interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/music_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/film_plus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/me.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/star_empty.png | 0 interface/ispconfig/interface/admin/index.php | 78 interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__pencil.png | 0 interface/ispconfig/interface/js/yui/treeview/treeview-min.js | 70 interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/pill.png | 0 interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/image_small_sunset.png | 0 interface/ispconfig/interface/themes/default/icons/x16/piano_plus.png | 0 interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif | 0 interface/ispconfig/server/conf/error/nl/500.html | 61 interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist_list.lng | 9 interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng | 5 interface/ispconfig/interface/themes/default/icons/flags/gq.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config.lng | 21 interface/ispconfig/interface/admin/lib/lang/es_users_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/it_mail_get_list.lng | 9 interface/ispconfig/interface/sites/lib/lang/fr_ftp_user.lng | 27 interface/ispconfig/interface/themes/default/icons/x16/bookmark.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_exclamation.png | 0 interface/ispconfig/interface/admin/form/server.tform.php | 157 interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng | 22 interface/ispconfig/interface/help/lib/lang/pl_support_message.lng | 7 interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng | 5 interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3.png | 0 interface/ispconfig/interface/help/lib/lang/de_support_message.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/disks__pencil.png | 0 interface/ispconfig/server/plugins-available/maildrop_plugin.inc.php | 240 interface/ispconfig/interface/mail/lib/lang/fr_mail_user_stats_list.lng | 8 interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng | 8 interface/ispconfig/interface/mail/lib/lang/tr_mail_get.lng | 16 interface/ispconfig/interface/designer/lib/lang/se_module_list.lng | 5 interface/ispconfig/interface/designer/module_edit.php | 183 interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient_list.lng | 9 interface/ispconfig/interface/dns/list/dns_soa.list.php | 111 interface/ispconfig/interface/themes/default/icons/x12/folder.png | 0 interface/ispconfig/interface/sites/lib/lang/es_web_subdomain_list.lng | 8 interface/ispconfig/interface/js/yui/reset/reset-min.css | 7 interface/ispconfig/interface/web/tools/lib/lang/hu.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/minus.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng | 6 interface/ispconfig/interface/themes/default/css/screen/content_ispc.css | 822 interface/ispconfig/interface/themes/default/icons/x16-list/stop.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_se | 60 interface/ispconfig/interface/themes/default/icons/x16-list/security_green.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_fit.png | 0 interface/ispconfig/interface/admin/server_ip_list.php | 54 interface/ispconfig/interface/client/lib/lang/pl.lng | 13 interface/ispconfig/interface/themes/default/icons/x16/balloon_small_left.png | 0 interface/ispconfig/interface/themes/default/icons/x16/clipboard__plus.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cards__plus.png | 0 interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng | 29 interface/ispconfig/interface/sites/templates/shell_user_list.htm | 59 interface/ispconfig/interface/mail/lib/lang/bg_mail_forward.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_pencil.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_sr | 60 interface/ispconfig/interface/themes/default/icons/x16/color_arrow.png | 0 interface/ispconfig/interface/mail/form/spamfilter_users.tform.php | 125 interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng | 15 interface/ispconfig/interface/mail/lib/lang/nl.lng | 47 interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/x16-list/double_comment.png | 0 interface/ispconfig/interface/js/yui/autocomplete/README | 77 interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng | 15 interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/inbox_exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/flags/us.png | 0 interface/ispconfig/server/conf/error/de/503.html | 62 interface/ispconfig/interface/themes/default/icons/flags/eg.png | 0 interface/ispconfig/interface/themes/default/yaml/debug/images/warning_iehacks.gif | 0 interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng | 8 interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng | 5 interface/ispconfig/interface/admin/lib/lang/fr_users.lng | 28 interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall.lng | 9 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy.lng | 38 interface/ispconfig/interface/themes/default/icons/x16/mails_stack.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng | 68 interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/disks__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/picture_arrow.png | 0 interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng | 11 interface/ispconfig/interface/themes/default/icons/x12/flag_orange.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lock_unlock.png | 0 interface/ispconfig/interface/themes/default/icons/x16/magnet__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/cassette_pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng | 16 interface/ispconfig/interface/admin/lib/lang/es_server_list.lng | 11 interface/ispconfig/interface/js/yui/treeview/assets/loading.gif | 0 interface/ispconfig/interface/sites/lib/lang/it_shell_user.lng | 22 interface/ispconfig/interface/themes/default/icons/flags/pk.png | 0 interface/ispconfig/interface/themes/default/icons/x16/arrow_135.png | 0 interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/tr_groups.lng | 5 interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/x16-list/accept_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pill_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng | 11 interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/ro_mail_transport.lng | 10 interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient.lng | 9 interface/ispconfig/interface/admin/lib/lang/es_language_export.lng | 6 interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng | 8 interface/ispconfig/interface/mail/templates/mail_user_filter_edit.htm | 38 interface/ispconfig/interface/mail/mail_content_filter_list.php | 26 interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter.lng | 10 interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng | 15 interface/ispconfig/interface/themes/default/templates/form.tpl.htm | 1 interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config.lng | 20 interface/ispconfig/interface/themes/default/icons/flags/am.png | 0 interface/ispconfig/interface/sites/lib/lang/en_web_sites_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/es_language_add.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/wall__minus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/bi.png | 0 interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/disks__arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/strengthmeter/lib/lang/it_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/flags/ru.png | 0 interface/ispconfig/interface/js/yui/container/README | 207 interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall_list.lng | 9 interface/ispconfig/interface/monitor/lib/lang/br_syslog_list.lng | 7 interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js | 3068 interface/ispconfig/interface/dns/form/dns_ptr.tform.php | 159 interface/ispconfig/interface/monitor/lib/lang/se.lng | 138 interface/ispconfig/interface/themes/default/icons/flags/cl.png | 0 interface/ispconfig/interface/js/yui/animation/animation-debug.js | 1361 interface/ispconfig/interface/designer/lib/lang/nl.lng | 2 interface/ispconfig/interface/themes/default/icons/x16/sticky_note_text.png | 0 interface/ispconfig/interface/mail/mail_transport_list.php | 26 interface/ispconfig/interface/themes/default/icons/x16/media_player_small_purple.png | 0 interface/ispconfig/interface/themes/default/icons/flags/nl.png | 0 interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng | 11 interface/ispconfig/interface/mail/lib/lang/en_mail_forward.lng | 7 interface/ispconfig/interface/web/tools/lib/lang/ru_usersettings.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/pin_exclamation.png | 0 interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/disks_black.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/document__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/socket_pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/lock__arrow.png | 0 interface/ispconfig/interface/themes/default/icons/x16/pill_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users.lng | 9 interface/ispconfig/interface/sites/lib/lang/hu_cron_list.lng | 12 interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng | 69 interface/ispconfig/interface/themes/default/icons/x16/bin__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wall_brick.png | 0 interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng | 15 interface/ispconfig/server/conf/index/user_standard_index.html_it | 60 interface/ispconfig/interface/themes/default/icons/x16/lightning__arrow.png | 0 interface/ispconfig/server/plugins-enabled/postfix_server_plugin.inc.php | 116 interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng | 8 interface/ispconfig/server/conf/error/de/405.html | 61 interface/ispconfig/interface/themes/default/icons/x16/photo_album__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16/broom_pencil.png | 0 interface/ispconfig/interface/monitor/lib/lang/ru.lng | 139 interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng | 6 interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng | 15 interface/ispconfig/interface/help/lib/lang/sk.lng | 9 interface/ispconfig/interface/sites/lib/lang/de_web_subdomain.lng | 40 interface/ispconfig/interface/client/lib/lang/fr_client_del.lng | 6 interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng | 23 interface/ispconfig/interface/sites/lib/lang/pt_cron.lng | 22 interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng | 15 interface/ispconfig/interface/mail/lib/lang/en_mail_user_stats_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_mail_forward_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/de_mail_get_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/lb.png | 0 interface/ispconfig/interface/themes/default/icons/x12/arrow_right_blue_round.png | 0 interface/ispconfig/interface/themes/default/icons/flags/th.png | 0 interface/ispconfig/interface/themes/default/icons/x16/light_bulb__arrow.png | 0 interface/ispconfig/server/conf/index/standard_index.html_nl | 60 interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js | 4956 + interface/ispconfig/interface/mail/templates/mail_forward_edit.htm | 37 interface/ispconfig/interface/themes/default/yaml/print/print_120_draft.css | 39 interface/ispconfig/interface/designer/lib/lang/en_form_show.lng | 18 interface/ispconfig/interface/dns/form/dns_ns.tform.php | 159 interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng | 15 interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config_list.lng | 5 interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/databases_arrow.png | 0 interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/br_server_list.lng | 11 interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist.lng | 9 interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng | 29 interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng | 6 interface/ispconfig/interface/admin/list/software_repo.list.php | 78 interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter_list.lng | 9 interface/ispconfig/server/conf/index/user_standard_index.html_nl | 60 interface/ispconfig/interface/monitor/log_del.php | 44 interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/plus.png | 0 interface/ispconfig/interface/sites/lib/lang/pt_ftp_user.lng | 28 interface/ispconfig/interface/admin/lib/lang/it_server_config.lng | 68 interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng | 6 interface/ispconfig/interface/mail/list/mail_transport.list.php | 104 interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter_list.lng | 8 interface/ispconfig/server/conf/index/standard_index.html_pl | 60 interface/ispconfig/interface/themes/default/icons/x16/blog_blue.png | 0 interface/ispconfig/interface/themes/default/icons/x16/photo_album.png | 0 interface/ispconfig/interface/strengthmeter/lib/lang/sk_strengthmeter.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/trophy_plus.png | 0 interface/ispconfig/server/mods-core/monitor_core_module.inc.php | 1465 interface/ispconfig/interface/sites/list/cron.list.php | 152 interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist.lng | 9 interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/arrow_stop.png | 0 interface/ispconfig/interface/js/yui/yahoo-dom-event/README | 35 interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/bt.png | 0 interface/ispconfig/interface/mail/list/mail_spamfilter.list.php | 85 interface/ispconfig/interface/themes/default/icons/flags/vc.png | 0 interface/ispconfig/interface/themes/default/icons/x16/wallet_arrow.png | 0 interface/ispconfig/interface/themes/default/yaml/patches/patch_nav_vlist.css | 61 interface/ispconfig/interface/themes/default/icons/flags/yt.png | 0 interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy_list.lng | 9 interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/shield__pencil.png | 0 interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng | 15 interface/ispconfig/server/conf/error/it/403.html | 61 interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng | 5 interface/ispconfig/server/conf/index/user_standard_index.html_pl | 60 interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_minus.png | 0 interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/cards__arrow.png | 0 interface/ispconfig/interface/sites/database_phpmyadmin.php | 70 interface/ispconfig/server/conf/error/hu/403.html | 61 interface/ispconfig/interface/sites/lib/lang/hu_web_aliasdomain_list.lng | 11 interface/ispconfig/interface/themes/default/icons/x16/folder__pencil.png | 0 interface/ispconfig/interface/mail/lib/lang/tr_mail_transport_list.lng | 9 interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_left_round.png | 0 interface/ispconfig/server/conf/error/cz/401.html | 61 interface/ispconfig/interface/themes/default/yaml/core/slim_print_base.css | 21 interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng | 4 interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__exclamation.png | 0 interface/ispconfig/interface/themes/default/icons/x16-list/download.png | 0 interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/tr_mail_user.lng | 39 interface/ispconfig/interface/sites/lib/lang/fi_web_sites_stats_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/ja_mail_user_stats_list.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/magnifier__minus.png | 0 interface/ispconfig/interface/themes/default/icons/flags/sa.png | 0 interface/ispconfig/interface/help/lib/lang/sk_support_message.lng | 7 interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng | 6 interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng | 6 interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng | 8 interface/ispconfig/interface/dns/dns_ns_edit.php | 138 interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/cassette_arrow.png | 0 interface/ispconfig/server/plugins-available/bind_plugin.inc.php | 224 interface/ispconfig/interface/admin/lib/lang/en_firewall.lng | 12 interface/ispconfig/interface/designer/module_nav_del.php | 80 interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/drill_plus.png | 0 interface/ispconfig/interface/sites/lib/lang/br_web_subdomain_list.lng | 8 interface/ispconfig/server/mods-enabled/web_module.inc.php | 140 interface/ispconfig/interface/mail/lib/lang/es_mail_forward.lng | 7 interface/ispconfig/server/conf/index/standard_index.html_se | 60 interface/ispconfig/interface/admin/lib/lang/es_language_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/vcard.png | 0 interface/ispconfig/interface/themes/default/icons/flags/kr.png | 0 interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient.lng | 9 interface/ispconfig/interface/client/lib/lang/pt.lng | 14 interface/ispconfig/server/conf/index/standard_index.html_sr | 60 interface/ispconfig/server/conf/error/fr/403.html | 61 interface/ispconfig/interface/themes/default/icons/x16-list/star.png | 0 interface/ispconfig/interface/admin/lib/lang/br_firewall.lng | 11 interface/ispconfig/interface/admin/software_repo_del.php | 51 interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng | 10 interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng | 8 interface/ispconfig/interface/themes/default/css/screen/uni-form-generic.css | 136 interface/ispconfig/interface/themes/default/icons/flags/gm.png | 0 interface/ispconfig/interface/monitor/show_data.php | 139 interface/ispconfig/interface/themes/default/icons/x16/question_small.png | 0 interface/ispconfig/interface/mail/lib/lang/ro_mail_get_list.lng | 9 interface/ispconfig/interface/admin/templates/groups_list.htm | 55 interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng | 15 interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng | 6 interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng | 16 interface/ispconfig/server/lib/config.inc.php | 154 interface/ispconfig/interface/themes/default/icons/flags/be.png | 0 interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users_list.lng | 11 interface/ispconfig/interface/themes/default/icons/flags/zw.png | 0 interface/ispconfig/interface/client/lib/lang/br.lng | 13 interface/ispconfig/interface/mail/templates/mail_content_filter_edit.htm | 50 interface/ispconfig/interface/themes/default/icons/x12/stop_round.png | 0 interface/ispconfig/interface/themes/default/icons/x16/card__plus.png | 0 interface/ispconfig/interface/monitor/lib/lang/ro_syslog_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng | 9 interface/ispconfig/interface/themes/default/icons/x16/balloon.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bin__minus.png | 0 interface/ispconfig/server/conf/error/fi/400.html | 61 interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js | 59 interface/ispconfig/interface/themes/default/icons/flags/ec.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_cz | 60 interface/ispconfig/interface/themes/default/icons/x16/funnel_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/ja_web_sites_stats_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/sk.lng | 22 interface/ispconfig/interface/themes/default/css/screen/basemod_2col_left_seo.css | 48 interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng | 15 interface/ispconfig/interface/mail/lib/lang/fi_mail_user_stats_list.lng | 8 interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng | 16 interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter_list.lng | 8 interface/ispconfig/interface/sites/lib/lang/en_database_list.lng | 9 interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng | 16 interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng | 8 interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/notebook_plus.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_de | 60 interface/ispconfig/interface/admin/lib/lang/se_groups.lng | 5 interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng | 9 interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng | 6 interface/ispconfig/server/lib/classes/modules.inc.php | 250 interface/ispconfig/interface/mail/spamfilter_users_del.php | 51 interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng | 9 interface/ispconfig/interface/designer/module_nav_item_edit.php | 150 interface/ispconfig/interface/mail/list/spamfilter_config.list.php | 60 interface/ispconfig/interface/themes/default/icons/x12/refresh.png | 0 interface/ispconfig/interface/themes/default/icons/x16/exclamation_frame.png | 0 interface/ispconfig/interface/dns/lib/lang/fi.lng | 20 interface/ispconfig/interface/themes/default/icons/x16-list/clock.png | 0 interface/ispconfig/interface/themes/default/icons/x16/flag_minus.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_br | 60 interface/ispconfig/server/plugins-enabled/shelluser_jailkit_plugin.inc.php | 303 interface/ispconfig/interface/help/lib/lang/tr.lng | 9 interface/ispconfig/interface/js/yui/treeview/assets/lph.gif | 0 interface/ispconfig/interface/js/yui/datatable/README | 9 interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter_list.lng | 7 interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng | 8 interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/script__pencil.png | 0 interface/ispconfig/interface/themes/default/icons/x16/star_small_half.png | 0 interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng | 26 interface/ispconfig/interface/mail/spamfilter_policy_list.php | 24 interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng | 15 interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng | 9 interface/ispconfig/interface/themes/default/icons/flags/pg.png | 0 interface/ispconfig/interface/themes/default/icons/x16/bank_exclamation.png | 0 interface/ispconfig/interface/login/templates/index.htm | 33 interface/ispconfig/interface/designer/lib/lang/se_module_show.lng | 16 interface/ispconfig/interface/js/yui/reset-fonts-grids/README | 24 interface/ispconfig/interface/themes/default/icons/x16/newspapers_minus.png | 0 interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain.lng | 40 interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/templates/tabbed_form.tpl.htm | 28 interface/ispconfig/server/conf/index/user_standard_index.html_fr | 60 interface/ispconfig/interface/themes/default/icons/x16/microphone_minus.png | 0 interface/ispconfig/interface/js/yui/menu/menu-min.js | 260 interface/ispconfig/interface/themes/default/icons/x16/tables_stacks.png | 0 interface/ispconfig/interface/themes/default/icons/x12/arrow_2_left_round.png | 0 interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/music_plus.png | 0 interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng | 8 interface/ispconfig/interface/admin/lib/lang/bg_server.lng | 13 interface/ispconfig/interface/designer/lib/lang/en_form_list.lng | 7 interface/ispconfig/interface/designer/lib/lang/se.lng | 2 interface/ispconfig/server/conf/index/user_standard_index.html_fi | 60 interface/ispconfig/interface/admin/lib/lang/en.lng | 42 interface/ispconfig/interface/monitor/lib/module.conf.php | 160 interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng | 14 interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_black.png | 0 interface/ispconfig/interface/admin/templates/server_ip_list.htm | 53 interface/ispconfig/interface/themes/default/icons/x16/plug_plus.png | 0 interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng | 6 interface/ispconfig/interface/themes/default/icons/x16/folder_zipper.png | 0 interface/ispconfig/interface/themes/default/icons/flags/aq.png | 0 interface/ispconfig/interface/themes/default/icons/flags/wf.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_en | 60 interface/ispconfig/interface/js/yui/logger/logger-debug.js | 1597 interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng | 7 interface/ispconfig/interface/sites/lib/lang/nl_web_domain.lng | 60 interface/ispconfig/server/conf/index/user_standard_index.html_es | 60 interface/ispconfig/interface/web/tools/lib/lang/es.lng | 6 interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif | 0 interface/ispconfig/interface/themes/default/icons/x16/photo_album__plus.png | 0 interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient.lng | 9 interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng | 8 interface/ispconfig/interface/themes/default/icons/x16/feed__exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/pl_mail_transport.lng | 10 interface/ispconfig/interface/themes/default/icons/flags/lu.png | 0 interface/ispconfig/interface/web/tools/lib/lang/ja_usersettings.lng | 8 interface/ispconfig/interface/login/lib/lang/ru.lng | 18 interface/ispconfig/interface/themes/default/icons/x16/safe_minus.png | 0 interface/ispconfig/interface/help/lib/lang/ja_support_message.lng | 7 interface/ispconfig/interface/themes/default/icons/flags/do.png | 0 interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng | 23 interface/ispconfig/interface/admin/list/groups.list.php | 61 interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2_equal.png | 0 interface/ispconfig/interface/themes/default/icons/x16/card_small.png | 0 interface/ispconfig/server/conf/index/user_standard_index.html_hu | 60 interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng | 7 interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng | 14 interface/ispconfig/interface/monitor/lib/lang/bg_syslog_list.lng | 7 interface/ispconfig/interface/themes/default/icons/x16/bandaid_exclamation.png | 0 interface/ispconfig/interface/mail/lib/lang/nl_mail_get.lng | 16 interface/ispconfig/interface/themes/default/icons/x16/report.png | 0 interface/ispconfig/interface/themes/default/icons/x16/socket_arrow.png | 0 interface/ispconfig/interface/sites/lib/lang/tr_database_list.lng | 8 interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng | 15 interface/ispconfig/interface/mail/lib/lang/de_mail_domain.lng | 13 interface/ispconfig/interface/js/yui/utilities/README | 36 interface/ispconfig/interface/admin/software_repo_edit.php | 58 interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng | 15 interface/ispconfig/interface/themes/default/icons/x16/cards__pencil.png | 0 interface/ispconfig/server/conf/error/pl/503.html | 61 interface/ispconfig/interface/sites/lib/lang/en_shell_user_list.lng | 8 interface/ispconfig/interface/monitor/templates/show_sys_state.htm | 25 interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng | 15 interface/ispconfig/interface/mail/lib/lang/sk_mail_get_list.lng | 9 interface/ispconfig/server/conf/error/pl/405.html | 61 interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng | 6 interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist_list.lng | 10 interface/ispconfig/interface/themes/default/icons/x16/envelope.png | 0 interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng | 6 interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist_list.lng | 10 interface/ispconfig/server/conf/index/user_standard_index.html_gr | 60 interface/ispconfig/interface/mail/lib/lang/en_mail_user_list.lng | 7 interface/ispconfig/interface/mail/lib/lang/en.lng | 51 interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain.lng | 40 interface/ispconfig/interface/themes/default/icons/x16/box__minus.png | 0 4,526 files changed, 221,119 insertions(+), 0 deletions(-) diff --git a/interface/ispconfig/interface/admin/firewall_del.php b/interface/ispconfig/interface/admin/firewall_del.php new file mode 100644 index 0000000..5f4dc91 --- /dev/null +++ b/interface/ispconfig/interface/admin/firewall_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/firewall.list.php"; +$tform_def_file = "form/firewall.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/firewall_edit.php b/interface/ispconfig/interface/admin/firewall_edit.php new file mode 100644 index 0000000..0401143 --- /dev/null +++ b/interface/ispconfig/interface/admin/firewall_edit.php @@ -0,0 +1,72 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/firewall.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from firewall WHERE firewall_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/firewall_list.php b/interface/ispconfig/interface/admin/firewall_list.php new file mode 100644 index 0000000..f95c570 --- /dev/null +++ b/interface/ispconfig/interface/admin/firewall_list.php @@ -0,0 +1,52 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/firewall.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/dbsync.tform.php b/interface/ispconfig/interface/admin/form/dbsync.tform.php new file mode 100644 index 0000000..363c916 --- /dev/null +++ b/interface/ispconfig/interface/admin/form/dbsync.tform.php @@ -0,0 +1,264 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +//* Load modules +$modules_list = array(); +$handle = @opendir(ISPC_WEB_PATH); +while ($file = @readdir ($handle)) { + if ($file != "." && $file != "..") { + if(@is_dir(ISPC_WEB_PATH."/$file")) { + if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') { + $modules_list[$file] = $file; + } + } + } +} +closedir($handle); + +//* read data bases in with more activated db_history. +$db_tables = array(); +foreach($modules_list as $md) { + $handle = @opendir(ISPC_WEB_PATH."/$md/form"); + while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..' && substr($file, 0, 1) != '.') { + include_once(ISPC_WEB_PATH."/$md/form/$file"); + if(isset($form['db_history']) && $form['db_history'] == 'yes') { + $tmp_id = $form['db_table']; + $db_tables[$tmp_id] = $form['db_table']; + } + unset($form); + } + } + closedir($handle); +} +unset($form); + + +$form['title'] = 'DB sync'; +$form['description'] = 'ISPConfig database synchronisation tool.'; +$form['name'] = 'dbsync'; +$form['action'] = 'dbsync_edit.php'; +$form['db_table'] = 'sys_dbsync'; +$form['db_table_idx'] = 'id'; +$form['tab_default'] = 'dbsync'; +$form['list_default'] = 'dbsync_list.php'; +$form['auth'] = 'no'; + + +$form['tabs']['dbsync'] = array ( + 'title' => 'DB sync', + 'width' => 80, + 'template' => 'templates/dbsync_edit.htm', + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'jobname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '/^.{1,30}$/', + 'errmsg' => 'jobname_err', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'sync_interval_minutes' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => array('mysql' => 'mysql'), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_host' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'db_tables' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'regex' => '', + 'errmsg' => '', + 'default' => 'admin,forms', + 'value' => $db_tables, + 'separator' => ',', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'empty_datalog' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => array(0 => 0,1 => 1), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'sync_datalog_external' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => array(0 => 0,1 => 1), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'active' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'regex' => '', + 'errmsg' => '', + 'default' => '1', + 'value' => array(0 => 0,1 => 1), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ) + ################################## + # ENDE Datenbankfelder + ################################## + ) +); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/filesync.tform.php b/interface/ispconfig/interface/admin/form/filesync.tform.php new file mode 100644 index 0000000..c252b1a --- /dev/null +++ b/interface/ispconfig/interface/admin/form/filesync.tform.php @@ -0,0 +1,205 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form["title"] = "Datei Synchronisation"; +$form["description"] = "Formular zum Anlegen von Datei-Synchronisierungen."; +$form["name"] = "filesync"; +$form["action"] = "filesync_edit.php"; +$form["db_table"] = "sys_filesync"; +$form["db_table_idx"] = "id"; +$form["tab_default"] = "filesync"; +$form["list_default"] = "filesync_list.php"; +$form["auth"] = 'no'; + + +$form["tabs"]['filesync'] = array ( + 'title' => "Datei sync", + 'width' => 80, + 'template' => "templates/filesync_edit.htm", + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'jobname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '/^.{1,30}$/', + 'errmsg' => 'jobname_err', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'sync_interval_minutes' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'ftp_host' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'ftp_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'ftp_username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'ftp_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'local_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'wput_options' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '--timestamping --dont-continue', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'active' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'regex' => '', + 'errmsg' => '', + 'default' => '1', + 'value' => array(0 => 0,1 => 1), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ) + ################################## + # ENDE Datenbankfelder + ################################## + ) +); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/firewall.tform.php b/interface/ispconfig/interface/admin/form/firewall.tform.php new file mode 100644 index 0000000..edbe89c --- /dev/null +++ b/interface/ispconfig/interface/admin/form/firewall.tform.php @@ -0,0 +1,112 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Firewall"; +$form["description"] = ""; +$form["name"] = "firewall"; +$form["action"] = "firewall_edit.php"; +$form["db_table"] = "firewall"; +$form["db_table_idx"] = "firewall_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "firewall"; +$form["list_default"] = "firewall_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['firewall'] = array ( + 'title' => "Firewall", + 'width' => 100, + 'template' => "templates/firewall_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'firewall_error_unique'), + ), + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'tcp_port' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\s0-9\,\:]{0,255}$/', + 'errmsg'=> 'tcp_ports_error_regex'), + ), + 'default' => '20,21,22,25,53,80,110,143,443,3306,8080,10000', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'udp_port' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\s0-9\,\:]{0,255}$/', + 'errmsg'=> 'tcp_ports_error_regex'), + ), + 'default' => '53,3306', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/groups.tform.php b/interface/ispconfig/interface/admin/form/groups.tform.php new file mode 100644 index 0000000..c27cfad --- /dev/null +++ b/interface/ispconfig/interface/admin/form/groups.tform.php @@ -0,0 +1,112 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form["title"] = "Groups"; +$form["description"] = "groups_description"; +$form["name"] = "groups"; +$form["action"] = "groups_edit.php"; +$form["db_table"] = "sys_group"; +$form["db_table_idx"] = "groupid"; +$form["db_history"] = "yes"; +$form["tab_default"] = "groups"; +$form["list_default"] = "groups_list.php"; +$form["auth"] = 'no'; + +$form["tabs"]['groups'] = array ( + 'title' => "Groups", + 'width' => 80, + 'template' => "templates/groups_edit.htm", + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '/^.{1,30}$/', + 'errmsg' => 'name_err', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'description' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '', + 'maxlength' => '', + 'rows' => '5', + 'cols' => '30' + ) + ################################## + # ENDE Datenbankfelder + ################################## + ) +); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/remote_user.tform.php b/interface/ispconfig/interface/admin/form/remote_user.tform.php new file mode 100644 index 0000000..2657656 --- /dev/null +++ b/interface/ispconfig/interface/admin/form/remote_user.tform.php @@ -0,0 +1,160 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$function_list = array(); +$function_list['mail_domain_get,mail_domain_add,mail_domain_update,mail_domain_delete'] = 'Mail domain functions'; +$function_list['mail_user_get,mail_user_add,mail_user_update,mail_user_delete'] = 'Mail user functions'; +$function_list['mail_alias_get,mail_alias_add,mail_alias_update,mail_alias_delete'] = 'Mail alias functions'; +$function_list['mail_forward_get,mail_forward_add,mail_forward_update,mail_forward_delete'] = 'Mail forward functions'; +$function_list['mail_catchall_get,mail_catchall_add,mail_catchall_update,mail_catchall_delete'] = 'Mail catchall functions'; +$function_list['mail_transport_get,mail_transport_add,mail_transport_update,mail_transport_delete'] = 'Mail transport functions'; +$function_list['mail_whitelist_get,mail_whitelist_add,mail_whitelist_update,mail_whitelist_delete'] = 'Mail whitelist functions'; +$function_list['mail_blacklist_get,mail_blacklist_add,mail_blacklist_update,mail_blacklist_delete'] = 'Mail blacklist functions'; +$function_list['mail_spamfilter_user_get,mail_spamfilter_user_add,mail_spamfilter_user_update,mail_spamfilter_user_delete'] = 'Mail spamfilter user functions'; +$function_list['mail_policy_get,mail_policy_add,mail_policy_update,mail_policy_delete'] = 'Mail spamfilter policy functions'; +$function_list['mail_fetchmail_get,mail_fetchmail_add,mail_fetchmail_update,mail_fetchmail_delete'] = 'Mail fetchmail functions'; +$function_list['mail_whitelist_get,mail_whitelist_add,mail_whitelist_update,mail_whitelist_delete'] = 'Mail whitelist functions'; +$function_list['mail_blacklist_get,mail_blacklist_add,mail_blacklist_update,mail_blacklist_delete'] = 'Mail blacklist functions'; +$function_list['mail_user_filter_get,mail_user_filter_add,mail_user_filter_update,mail_user_filter_delete'] = 'Mail user filter functions'; +$function_list['mail_filter_get,mail_filter_add,mail_filter_update,mail_filter_delete'] = 'Mail filter functions'; +$function_list['client_get,client_add,client_update,client_delete'] = 'Client functions'; +$function_list['sites_cron_get,sites_cron_add,sites_cron_update,sites_cron_delete'] = 'Sites cron functions'; +$function_list['sites_database_get,sites_database_add,sites_database_update,sites_database_delete'] = 'Sites database functions'; +$function_list['sites_ftp_user_get,sites_ftp_user_add,sites_ftp_user_update,sites_ftp_user_delete'] = 'Sites FTP-User functions'; +$function_list['sites_shell_user_get,sites_shell_user_add,sites_shell_user_update,sites_shell_user_delete'] = 'Sites Shell-User functions'; +$function_list['sites_web_domain_get,sites_web_domain_add,sites_web_domain_update,sites_web_domain_delete'] = 'Sites Domain functions'; +$function_list['sites_web_aliasdomain_get,sites_web_aliasdomain_add,sites_web_aliasdomain_update,sites_web_aliasdomain_delete'] = 'Sites Aliasdomain functions'; +$function_list['sites_web_subdomain_get,sites_web_subdomain_add,sites_web_subdomain_update,sites_web_subdomain_delete'] = 'Sites Subdomain functions'; +$function_list['dns_zone_get,dns_zone_add,dns_zone_update,dns_zone_delete'] = 'DNS zone functions'; +$function_list['dns_a_get,dns_a_add,dns_a_update,dns_a_delete'] = 'DNS a functions'; +$function_list['dns_aaaa_get,dns_aaaa_add,dns_aaaa_update,dns_aaaa_delete'] = 'DNS aaaa functions'; +$function_list['dns_alias_get,dns_alias_add,dns_alias_update,dns_alias_delete'] = 'DNS alias functions'; +$function_list['dns_cname_get,dns_cname_add,dns_cname_update,dns_cname_delete'] = 'DNS cname functions'; +$function_list['dns_hinfo_get,dns_hinfo_add,dns_hinfo_update,dns_hinfo_delete'] = 'DNS hinfo functions'; +$function_list['dns_mx_get,dns_mx_add,dns_mx_update,dns_mx_delete'] = 'DNS mx functions'; +$function_list['dns_ns_get,dns_ns_add,dns_ns_update,dns_ns_delete'] = 'DNS ns functions'; +$function_list['dns_ptr_get,dns_ptr_add,dns_ptr_update,dns_ptr_delete'] = 'DNS ptr functions'; +$function_list['dns_rp_get,dns_rp_add,dns_rp_update,dns_rp_delete'] = 'DNS rp functions'; +$function_list['dns_srv_get,dns_srv_add,dns_srv_update,dns_srv_delete'] = 'DNS srv functions'; +$function_list['dns_txt_get,dns_txt_add,dns_txt_update,dns_txt_delete'] = 'DNS txt functions'; + + +$form["title"] = "Remote user"; +$form["description"] = ""; +$form["name"] = "remote_user"; +$form["action"] = "remote_user_edit.php"; +$form["db_table"] = "remote_user"; +$form["db_table_idx"] = "remote_userid"; +$form["db_history"] = "yes"; +$form["tab_default"] = "remote_user"; +$form["list_default"] = "remote_user_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['remote_user'] = array ( + 'title' => "Remote User", + 'width' => 100, + 'template' => "templates/remote_user_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'remote_userid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username', + 'keyfield'=> 'remote_userid', + 'valuefield'=> 'remote_username' + ), + 'value' => '' + ), + + 'remote_username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'username_error_unique'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'username_error_regex'), +2 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'username_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'remote_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption' => 'MD5', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'remote_functions' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'CHECKBOXARRAY', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $function_list, + 'separator' => ';', + 'width' => '', + 'maxlength' => '', + 'rows' => '5', + 'cols' => '30' + ) + + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + + + +?> diff --git a/interface/ispconfig/interface/admin/form/server.tform.php b/interface/ispconfig/interface/admin/form/server.tform.php new file mode 100644 index 0000000..9c0138b --- /dev/null +++ b/interface/ispconfig/interface/admin/form/server.tform.php @@ -0,0 +1,157 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Server"; +$form["description"] = ""; +$form["name"] = "server"; +$form["action"] = "server_edit.php"; +$form["db_table"] = "server"; +$form["db_table_idx"] = "server_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "services"; +$form["list_default"] = "server_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 1; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['services'] = array ( + 'title' => "Services", + 'width' => 100, + 'template' => "templates/server_edit_services.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'mail_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'web_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'dns_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'file_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'db_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'vserver_server' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '0', + 'value' => array(0 => 0,1 => 1) + ), + 'mirror_server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '' + ), + /* + 'update' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'value' => array(0 => 'No', 1 => 'Yes') + ), + */ + 'active' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'value' => array(0 => 'No', 1 => 'Yes') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +/* +$form["tabs"]['config'] = array ( + 'title' => "Config", + 'width' => 100, + 'template' => "templates/server_edit_config.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'config' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'width' => '', + 'cols' => '40', + 'rows' => '20', + 'maxlength' => '' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); +*/ + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/server_config.tform.php b/interface/ispconfig/interface/admin/form/server_config.tform.php new file mode 100644 index 0000000..b16f923 --- /dev/null +++ b/interface/ispconfig/interface/admin/form/server_config.tform.php @@ -0,0 +1,750 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Server Config"; +$form["description"] = ""; +$form["name"] = "server_config"; +$form["action"] = "server_config_edit.php"; +$form["db_table"] = "server"; +$form["db_table_idx"] = "server_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "server"; +$form["list_default"] = "server_config_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['server'] = array ( + 'title' => "Server", + 'width' => 70, + 'template' => "templates/server_config_server_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'auto_network_configuration' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'ip_address' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.105', + 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', + 'errmsg'=> 'ip_address_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'netmask' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '255.255.255.0', + 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', + 'errmsg'=> 'netmask_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'gateway' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1', + 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', + 'errmsg'=> 'gateway_error_wrong'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'hostname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'server1.domain.tld', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'hostname_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'nameservers' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1,192.168.0.2', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'nameservers_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'loglevel' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '2', + 'value' => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'), + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['mail'] = array ( + 'title' => "Mail", + 'width' => 60, + 'template' => "templates/server_config_mail_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'module' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('postfix_mysql' => 'postfix_mysql') + ), + 'maildir_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/[domain]/[localpart]/', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'maildir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'homedir_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'homedir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'pop3_imap_daemon' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('courier' => 'Courier', 'dovecot' => 'Dovecot') + ), + 'mail_filter_syntax' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve') + ), + 'mailuser_uid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_uid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_gid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_gid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_name_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_group_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'relayhost' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'relayhost_user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'relayhost_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'mailbox_size_limit' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' + ), + 'message_size_limit' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['getmail'] = array ( + 'title' => "Getmail", + 'width' => 80, + 'template' => "templates/server_config_getmail_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'getmail_config_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'getmail_config_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['web'] = array ( + 'title' => "Web", + 'width' => 60, + 'template' => "templates/server_config_web_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'website_basedir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'website_basedir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'website_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'website_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'website_symlinks' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'website_symlinks_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'vhost_conf_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'vhost_conf_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'vhost_conf_enabled_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'vhost_conf_enabled_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'security_level' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '20', + 'value' => array('10' => 'Medium', '20' => 'High') + ), + 'user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'apache_user_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'apache_group_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'php_open_basedir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'php_open_basedir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'htaccess_allow_override' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'htaccess_allow_override_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'apps_vhost_port' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '8081', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'apps_vhost_port_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'apps_vhost_ip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '_default_', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'apps_vhost_ip_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'apps_vhost_servername' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['dns'] = array ( + 'title' => "DNS", + 'width' => 60, + 'template' => "templates/server_config_dns_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'bind_user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'bind_user_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'bind_group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'bind_group_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'bind_zonefiles_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'bind_zonefiles_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'named_conf_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'named_conf_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'named_conf_local_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'named_conf_local_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['fastcgi'] = array ( + 'title' => "FastCGI", + 'width' => 80, + 'template' => "templates/server_config_fastcgi_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'fastcgi_starter_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_starter_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_starter_script' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_starter_script_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_alias' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_alias_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_phpini_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_phpini_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_children' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_children_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_max_requests' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_max_requests_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fastcgi_bin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fastcgi_bin_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +$form["tabs"]['jailkit'] = array ( + 'title' => "Jailkit", + 'width' => 80, + 'template' => "templates/server_config_jailkit_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'jailkit_chroot_home' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'jailkit_chroot_home_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'jailkit_chroot_app_sections' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'jailkit_chroot_app_sections_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' + ), + 'jailkit_chroot_app_programs' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'jailkit_chroot_app_programs_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' + ), + 'jailkit_chroot_cron_programs' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'jailkit_chroot_cron_programs_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '1000' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +$form["tabs"]['vlogger'] = array ( + 'title' => "vlogger", + 'width' => 80, + 'template' => "templates/server_config_vlogger_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'config_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'vlogger_config_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +$form["tabs"]['cron'] = array ( + 'title' => "Cron", + 'width' => 80, + 'template' => "templates/server_config_cron_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'init_script' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'cron_init_script_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'crontab_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'crontab_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'wget' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'cron_wget_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/server_ip.tform.php b/interface/ispconfig/interface/admin/form/server_ip.tform.php new file mode 100644 index 0000000..d0f12da --- /dev/null +++ b/interface/ispconfig/interface/admin/form/server_ip.tform.php @@ -0,0 +1,125 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form["title"] = "IP Addresses"; +$form["description"] = "Form to edit system IP Addresses"; +$form["name"] = "server_ip"; +$form["action"] = "server_ip_edit.php"; +$form["db_table"] = "server_ip"; +$form["db_table_idx"] = "server_ip_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "server_ip"; +$form["list_default"] = "server_ip_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['server_ip'] = array ( + 'title' => "IP Address", + 'width' => 80, + 'template' => "templates/server_ip_edit.htm", + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'ip_address' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISIPV4', + 'errmsg'=> 'ip_error_wrong'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'ip_error_unique'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '15', + 'rows' => '', + 'cols' => '' + ), + 'virtualhost' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datenbankfelder + ################################## + ) +); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/software_repo.tform.php b/interface/ispconfig/interface/admin/form/software_repo.tform.php new file mode 100644 index 0000000..361d93c --- /dev/null +++ b/interface/ispconfig/interface/admin/form/software_repo.tform.php @@ -0,0 +1,153 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form["title"] = "Software Repository"; +$form["description"] = "Software Repositoy which may contain addons or updates"; +$form["name"] = "software_repo"; +$form["action"] = "software_repo_edit.php"; +$form["db_table"] = "software_repo"; +$form["db_table_idx"] = "software_repo_id"; +$form["db_history"] = "no"; +$form["tab_default"] = "software_repo"; +$form["list_default"] = "software_repo_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['software_repo'] = array ( + 'title' => "Repository", + 'width' => 80, + 'template' => "templates/software_repo_edit.htm", + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'repo_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'repo_name_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'repo_name_unique'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '40', + 'maxlength' => '40', + 'rows' => '', + 'cols' => '' + ), + 'repo_url' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'repo_name_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'repo_name_unique'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '40', + 'maxlength' => '40', + 'rows' => '', + 'cols' => '' + ), + 'repo_username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '30', + 'rows' => '', + 'cols' => '' + ), + 'repo_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption' => 'CLEARTEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '30', + 'rows' => '', + 'cols' => '' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datenbankfelder + ################################## + ) +); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/system_config.tform.php b/interface/ispconfig/interface/admin/form/system_config.tform.php new file mode 100644 index 0000000..2ce24c5 --- /dev/null +++ b/interface/ispconfig/interface/admin/form/system_config.tform.php @@ -0,0 +1,167 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "System Config"; +$form["description"] = ""; +$form["name"] = "system_config"; +$form["action"] = "system_config_edit.php"; +$form["db_table"] = "sys_ini"; +$form["db_table_idx"] = "sysini_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "sites"; +$form["list_default"] = "server_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['sites'] = array ( + 'title' => "Sites", + 'width' => 70, + 'template' => "templates/system_config_sites_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'dbname_prefix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', + 'errmsg'=> 'dbname_prefix_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'dbuser_prefix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', + 'errmsg'=> 'dbuser_prefix_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ftpuser_prefix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', + 'errmsg'=> 'ftpuser_prefix_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'shelluser_prefix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', + 'errmsg'=> 'shelluser_prefix_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'dblist_phpmyadmin_link' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'phpmyadmin_url' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', + 'errmsg'=> 'phpmyadmin_url_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['mail'] = array ( + 'title' => "Mail", + 'width' => 70, + 'template' => "templates/system_config_mail_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'mailboxlist_webmail_link' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'webmail_url' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', + 'errmsg'=> 'webmail_url_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/form/users.tform.php b/interface/ispconfig/interface/admin/form/users.tform.php new file mode 100644 index 0000000..1edbb0c --- /dev/null +++ b/interface/ispconfig/interface/admin/form/users.tform.php @@ -0,0 +1,456 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form['title'] = 'Users'; +$form['description'] = 'Form to edit systemusers.'; +$form['name'] = 'users'; +$form['action'] = 'users_edit.php'; +$form['db_table'] = 'sys_user'; +$form['db_table_idx'] = 'userid'; +$form["db_history"] = "no"; +$form['tab_default'] = 'users'; +$form['list_default'] = 'users_list.php'; +$form['auth'] = 'yes'; + +//* 0 = id of the user, > 0 id must match with id of current user +$form['auth_preset']['userid'] = 0; +//* 0 = default groupid of the user, > 0 id must match with groupid of current user +$form['auth_preset']['groupid'] = 0; + +//** Permissions are: r = read, i = insert, u = update, d = delete +$form['auth_preset']['perm_user'] = 'riud'; +$form['auth_preset']['perm_group'] = 'riud'; +$form['auth_preset']['perm_other'] = ''; + +//* Pick out modules +$modules_list = array(); +$handle = @opendir(ISPC_WEB_PATH); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH."/$file")) { + if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login' && $file != 'designer') { + $modules_list[$file] = $file; + } + } + } +} + +//* Load themes +$themes_list = array(); +$handle = @opendir(ISPC_THEMES_PATH); +while ($file = @readdir ($handle)) { + if (substr($file, 0, 1) != '.') { + if(@is_dir(ISPC_THEMES_PATH."/$file")) { + $themes_list[$file] = $file; + } + } +} + +//* Languages +$language_list = array(); +$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang'); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') { + $tmp = substr($file, 0, 2); + $language_list[$tmp] = $tmp; + } + } +} + +//* Pick out groups +$groups_list = array(); +$tmp_records = $app->db->queryAllRecords('SELECT groupid, name FROM sys_group ORDER BY name'); +if(is_array($tmp_records)) { + foreach($tmp_records as $tmp_rec) { + $groups_list[$tmp_rec['groupid']] = $tmp_rec['name']; + } +} + +$form['tabs']['users'] = array ( + 'title' => 'Users', + 'width' => 80, + 'template' => 'templates/users_user_edit.htm', + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'username_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'username_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\_]{0,64}$/', + 'errmsg'=> 'username_err'), + ), + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '30', + 'rows' => '', + 'cols' => '' + ), + 'passwort' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '100', + 'rows' => '', + 'cols' => '' + ), + 'modules' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'regex' => '', + 'errmsg' => '', + 'default' => 'admin,forms', + 'value' => $modules_list, + 'separator' => ',', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'startmodule' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $modules_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'app_theme' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'RADIO', + 'regex' => '', + 'errmsg' => '', + 'default' => 'default', + 'value' => $themes_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'typ' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'RADIO', + 'regex' => '', + 'errmsg' => '', + 'default' => 'user', + 'value' => array ('user' => 'user', 'admin' => 'admin'), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'active' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => array(0 => 0,1 => 1), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'language' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $language_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '2', + 'rows' => '', + 'cols' => '' + ) + ################################## + # ENDE Datenbankfelder + ################################## + ) +); +/* +$form['tabs']['address'] = array ( + 'title' => 'Address', + 'width' => 80, + 'template' => 'templates/users_address_edit.htm', + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'vorname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'unternehmen' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'strasse' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'ort' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'plz' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'land' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'url' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'telefon' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'fax' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ) + + ################################## + # ENDE Datenbankfelder + ################################## + ) +); +*/ + +$form['tabs']['groups'] = array ( + 'title' => 'Groups', + 'width' => 80, + 'template' => 'templates/users_groups_edit.htm', + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'default_group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $groups_list, + 'separator' => ',', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'groups' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $groups_list, + 'separator' => ',', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ) + + ################################## + # ENDE Datenbankfelder + ################################## + ) +); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/groups_del.php b/interface/ispconfig/interface/admin/groups_del.php new file mode 100644 index 0000000..a7a804d --- /dev/null +++ b/interface/ispconfig/interface/admin/groups_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/groups.list.php"; +$tform_def_file = "form/groups.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/groups_edit.php b/interface/ispconfig/interface/admin/groups_edit.php new file mode 100644 index 0000000..bee5976 --- /dev/null +++ b/interface/ispconfig/interface/admin/groups_edit.php @@ -0,0 +1,53 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/groups.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); + +// let tform_actions handle the page +$app->tform_actions->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/groups_list.php b/interface/ispconfig/interface/admin/groups_list.php new file mode 100644 index 0000000..fee6a17 --- /dev/null +++ b/interface/ispconfig/interface/admin/groups_list.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/groups.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/index.php b/interface/ispconfig/interface/admin/index.php new file mode 100644 index 0000000..50afd7b --- /dev/null +++ b/interface/ispconfig/interface/admin/index.php @@ -0,0 +1,78 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +class admin_index { + + var $status = 'OK'; + var $target = ''; + + function render() { + + global $app; + + $app->uses('tpl'); + $app->tpl->newTemplate("form.tpl.htm"); + + $app->tpl->setVar('error',$error); + $app->tpl->setInclude('content_tpl','admin/templates/index.htm'); + return $app->tpl->grab(); + /* + $filename = 'test.txt'; +$somecontent = $app->tpl->grab(); + +// Sichergehen, dass die Datei existiert und beschreibbar ist + + + // Wir �ffnen $filename im "Anh�nge" - Modus. + // Der Dateizeiger befindet sich am Ende der Datei, und + // dort wird $somecontent sp�ter mit fwrite() geschrieben. + if (!$handle = fopen($filename, "w")) { + print "Kann die Datei $filename nicht �ffnen"; + exit; + } + + // Schreibe $somecontent in die ge�ffnete Datei. + if (!fwrite($handle, $somecontent)) { + print "Kann in die Datei $filename nicht schreiben"; + exit; + } + + + fclose($handle); + + + + + return 'dd'; + */ + } +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/language_add.php b/interface/ispconfig/interface/admin/language_add.php new file mode 100644 index 0000000..9ab9adc --- /dev/null +++ b/interface/ispconfig/interface/admin/language_add.php @@ -0,0 +1,104 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_add.htm'); + +//* reading languages +$language_option = ''; +$error = ''; +$msg = ''; +$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en'; +if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.'); + +$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/'); +while ($file = readdir ($handle)) { + if ($file != '.' && $file != '..') { + $tmp_lng = substr($file,0,-4); + if($tmp_lng !='') { + $selected = ($tmp_lng == $selected_language)?'SELECTED':''; + $language_option .= "<option value='$tmp_lng' $selected>$tmp_lng</option>"; + if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.'; + } + } +} +$app->tpl->setVar('language_option',$language_option); +$app->tpl->setVar('error',$error); + +if(isset($_POST['lng_new']) && strlen($_POST['lng_new']) == 2 && $error == '') { + $lng_new = $_POST['lng_new']; + if(!preg_match("/^[a-z]{2}$/i", $lng_new)) die('unallowed characters in language name.'); + + //* Copy the main language file + copy(ISPC_LIB_PATH."/lang/$selected_language.lng",ISPC_LIB_PATH."/lang/$lng_new.lng"); + + //* Make a copy of every language file + $bgcolor = '#FFFFFF'; + $language_files_list = array(); + $handle = @opendir(ISPC_WEB_PATH); + while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) { + $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang'); + while ($lang_file = @readdir ($handle2)) { + if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) { + $new_lang_file = $lng_new.substr($lang_file,2); + //echo ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file.' ## '.ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$new_lang_file; + copy(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file,ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$new_lang_file); + $msg = 'Added new language '.$lng_new; + } + } + } + } + } +} + +$app->tpl->setVar('msg',$msg); + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_add.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/language_complete.php b/interface/ispconfig/interface/admin/language_complete.php new file mode 100644 index 0000000..0906a52 --- /dev/null +++ b/interface/ispconfig/interface/admin/language_complete.php @@ -0,0 +1,167 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_complete.htm'); + +//* reading languages +$language_option = ''; +$error = ''; +$msg = ''; +$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en'; +if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.'); + +$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/'); +while ($file = readdir ($handle)) { + if ($file != '.' && $file != '..') { + $tmp_lng = substr($file,0,-4); + if($tmp_lng !='' && $tmp_lng != 'en') { + $selected = ($tmp_lng == $selected_language)?'SELECTED':''; + $language_option .= "<option value='$tmp_lng' $selected>$tmp_lng</option>"; + //if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.'; + } + } +} +$app->tpl->setVar('language_option',$language_option); +$app->tpl->setVar('error',$error); + +// Export the language file +if(isset($_POST['lng_select']) && $error == '') { + + // complete the global langauge file + merge_langfile(ISPC_LIB_PATH."/lang/".$selected_language.".lng",ISPC_LIB_PATH."/lang/en.lng"); + + // Go trough all language files + $bgcolor = '#FFFFFF'; + $language_files_list = array(); + $handle = @opendir(ISPC_WEB_PATH); + while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) { + $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang'); + while ($lang_file = @readdir ($handle2)) { + if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == 'en') { + $target_lang_file = $selected_language.substr($lang_file,2); + merge_langfile(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$target_lang_file,ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file); + } + } + $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang'); + while ($lang_file = @readdir ($handle2)) { + if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) { + $master_lang_file=ISPC_WEB_PATH.'/'.$file.'/lib/lang/en'.substr($lang_file,2); + $target_lang_file=ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file; + if(!file_exists($master_lang_file)){ + unlink($target_lang_file); + $msg.="File $target_lang_file removed because does not exist in master language<br />"; + } + } + }//Finish of remove the files how not exists in master language + } + } + } +if($msg=='') +$msg="No files created, removed or modified<br />"; +} + +function merge_langfile($langfile,$masterfile) { + global $msg; + + if(is_file($langfile)) { + + // Load the english language file + include($masterfile); + if(isset($wb) && is_array($wb)) { + $wb_master = $wb; + unset($wb); + } else { + $wb_master = array(); + } + + // Load the incomplete language file + $wb = array(); + include($langfile); + + $n = 0; + foreach($wb_master as $key => $val) { + if(!isset($wb[$key])) { + $wb[$key] = $val; + $n++; + } + } + + $r = 0; + foreach($wb as $key => $val) { + if(!isset($wb_master[$key])) { + unset($wb[$key]); + $r++; + } + } + + $file_content = "<?php\n"; + foreach($wb as $key => $val) { + $val = str_replace("'",'',$val); + $val = str_replace('"','',$val); + $file_content .= '$wb['."'$key'".'] = '."'$val';\n"; + } + $file_content .= "?>\n"; + + if($n!=0) + $msg .= "Added $n lines to the file $langfile<br />"; + if($r!=0) + $msg .= "Removed $r lines to the file $langfile<br />"; + file_put_contents($langfile ,$file_content); + } else { + $msg .= "File does not exist yet. Copied file $masterfile to $langfile<br />"; + copy($masterfile,$langfile); + } +} + +$app->tpl->setVar('msg',$msg); + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_complete.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/language_edit.php b/interface/ispconfig/interface/admin/language_edit.php new file mode 100644 index 0000000..d76dc62 --- /dev/null +++ b/interface/ispconfig/interface/admin/language_edit.php @@ -0,0 +1,104 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_edit.htm'); + +$lang = $_REQUEST['lang']; +$module = $_REQUEST['module']; +$lang_file = $_REQUEST['lang_file']; + +if(!preg_match("/^[a-z]+$/i", $lang)) die('unallowed characters in language name.'); +if(!preg_match("/^[a-z_]+$/i", $module)) die('unallowed characters in module name.'); +if(!preg_match("/^[a-z\._]+$/i", $lang_file)) die('unallowed characters in language file name.'); + +$msg = ''; + +//* Save data +if(isset($_POST['records']) && is_array($_POST['records'])) { + $file_content = "<?php\n"; + foreach($_POST['records'] as $key => $val) { + $val = stripslashes($val); + $val = str_replace('"','\"',$val); + $val = str_replace('$','',$val); + $file_content .= '$wb['."'$key'".'] = "'.$val.'";'."\n"; + $msg = 'File saved.'; + } + $file_content .= "?>\n"; + if($module == 'global') { + file_put_contents(ISPC_LIB_PATH."/lang/$lang_file" ,$file_content); + } else { + file_put_contents(ISPC_WEB_PATH."/$module/lib/lang/$lang_file" ,$file_content); + } +} + + +$app->tpl->setVar(array('module' => $module,'lang_file' => $lang_file, 'lang' => $lang, 'msg' => $msg)); + +if($module == 'global') { + include(ISPC_LIB_PATH."/lang/$lang_file"); + $file_path = ISPC_LIB_PATH."/lang/$lang_file"; +} else { + include(ISPC_WEB_PATH."/$module/lib/lang/$lang_file"); + $file_path = ISPC_WEB_PATH."/$module/lib/lang/$lang_file"; +} +$app->tpl->setVar("file_path", $file_path); + +$keyword_list = array(); +if(isset($wb) && is_array($wb)) { + foreach($wb as $key => $val) { + $keyword_list[] = array('key' => $key, 'val' => $val); + } + + $app->tpl->setLoop('records', $keyword_list); + unset($wb); +} + + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_edit.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> diff --git a/interface/ispconfig/interface/admin/language_export.php b/interface/ispconfig/interface/admin/language_export.php new file mode 100644 index 0000000..eb5790b --- /dev/null +++ b/interface/ispconfig/interface/admin/language_export.php @@ -0,0 +1,120 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_export.htm'); + +//* reading languages +$language_option = ''; +$error = ''; +$msg = ''; +$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en'; +if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.'); + +$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/'); +while ($file = readdir ($handle)) { + if ($file != '.' && $file != '..') { + $tmp_lng = substr($file,0,-4); + if($tmp_lng !='') { + $selected = ($tmp_lng == $selected_language)?'SELECTED':''; + $language_option .= "<option value='$tmp_lng' $selected>$tmp_lng</option>"; + //if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.'; + } + } +} +$app->tpl->setVar('language_option',$language_option); +$app->tpl->setVar('error',$error); + +// Export the language file +if(isset($_POST['lng_select']) && $error == '') { + //$lng_select = $_POST['lng_select']; + //if(!preg_match("/^[a-z]{2}$/i", $lng_select)) die('unallowed characters in language name.'); + + // This variable contains the content of the language files + $content = ''; + $content .= "---|ISPConfig Language File|".$conf["app_version"]."|".$selected_language."\n"; + + //* get the global language file + $content .= "--|global|".$selected_language."|".$selected_language.".lng\n"; + $content .= file_get_contents(ISPC_LIB_PATH."/lang/".$selected_language.".lng")."\n"; + + //* Get the global file of the module + //$content .= "---|$module|$selected_language|\n"; + //copy(ISPC_WEB_PATH."/$module/lib/lang/$selected_language.lng",ISPC_WEB_PATH."/$module/lib/lang/$lng_new.lng"); + $bgcolor = '#FFFFFF'; + $language_files_list = array(); + $handle = @opendir(ISPC_WEB_PATH); + while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) { + $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang'); + while ($lang_file = @readdir ($handle2)) { + if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) { + $content .= "--|".$file."|".$selected_language."|".$lang_file."\n"; + $content .= file_get_contents(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file)."\n"; + $msg .= 'Exported language file '.$lang_file.'<br />'; + } + } + } + } + } + + $content .= '---|EOF'; + + // Write the language file + file_put_contents(ISPC_WEB_TEMP_PATH.'/'.$selected_language.'.lng', $content); + + $msg = "Exported language file to: <a href='temp/$selected_language.lng' target='_blank'>/temp/".$selected_language.'.lng</a>'; + + //$msg = nl2br($content); +} + +$app->tpl->setVar('msg',$msg); + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_export.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/language_import.php b/interface/ispconfig/interface/admin/language_import.php new file mode 100644 index 0000000..12eb86d --- /dev/null +++ b/interface/ispconfig/interface/admin/language_import.php @@ -0,0 +1,105 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_import.htm'); +$msg = ''; +$error = ''; + +// Export the language file +if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'])) { + $lines = file($_FILES['file']['tmp_name']); + // initial check + $parts = explode('|',$lines[0]); + if($parts[0] == '---' && $parts[1] == 'ISPConfig Language File') { + if($_POST['ignore_version'] != 1 && $parts[2] != $conf["app_version"]) { + $error .= 'Application version does not match. Appversion: '.$conf["app_version"].' Lanfile version: '.$parts[2]; + } else { + unset($lines[0]); + + $buffer = ''; + $langfile_path = ''; + // all other lines + foreach($lines as $line) { + $parts = explode('|',$line); + if(is_array($parts) && count($parts) > 0 && $parts[0] == '--') { + // Write language file, if its not the first file + if($buffer != '' && $langfile_path != '') { + if(@$_REQUEST['overwrite'] != 1 && @is_file($langfile_path)) { + $error .= "File exists, not written: $langfile_path<br />"; + } else { + $msg .= "File written: $langfile_path<br />"; + file_put_contents($langfile_path,$buffer); + } + } + // empty buffer and set variables + $buffer = ''; + $module_name = trim($parts[1]); + $selected_language = trim($parts[2]); + $file_name = trim($parts[3]); + if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die("unallowed characters in selected language name: $selected_language"); + if(!preg_match("/^[a-z_]+$/i", $module_name)) die('unallowed characters in module name.'); + if(!preg_match("/^[a-z\._]+$/i", $file_name) || stristr($file_name,'..')) die("unallowed characters in language file name: '$file_name'"); + if($module_name == 'global') { + $langfile_path = trim(ISPC_LIB_PATH."/lang/".$selected_language.".lng"); + } else { + $langfile_path = trim(ISPC_WEB_PATH.'/'.$module_name.'/lib/lang/'.$file_name); + } + } else { + $buffer .= $line; + } + } + } + } +} + +$app->tpl->setVar('msg',$msg); +$app->tpl->setVar('error',$error); + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_import.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/language_list.php b/interface/ispconfig/interface/admin/language_list.php new file mode 100644 index 0000000..f423be4 --- /dev/null +++ b/interface/ispconfig/interface/admin/language_list.php @@ -0,0 +1,108 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/language_list.htm'); + +$language_files_list = array(); +$bgcolor = '#FFFFFF'; + +//* reading languages +$language_option = ''; +$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):$_SESSION['s']['language']; +$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/'); +while ($file = readdir ($handle)) { + if ($file != '.' && $file != '..') { + $tmp_lng = substr($file,0,-4); + if($tmp_lng !='') { + $selected = ($tmp_lng == $selected_language)?'SELECTED':''; + $language_option .= "<option value='$tmp_lng' $selected>$tmp_lng</option>"; + + //$bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; + if($file == $selected_language.'.lng') { + $language_files_list[] = array( 'module' => 'global', + 'lang_file' => $file, + 'lang_file_date' => date("Y-m-d H:i:s", filectime(ISPC_ROOT_PATH.'/lib/lang/'.$file)), + 'bgcolor' => $bgcolor, + 'lang' => $selected_language); + } + + + } + } +} +$app->tpl->setVar('language_option',$language_option); +// $app->tpl->setLoop('records', $language_list); + +//* list all language files of the selected language +$handle = @opendir(ISPC_WEB_PATH); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) { + $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang'); + while ($lang_file = @readdir ($handle2)) { + if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) { + $bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; + $language_files_list[] = array( 'module' => $file, + 'lang_file' => $lang_file, + 'lang_file_date' => date("Y-m-d H:i:s", filectime(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file)), + 'bgcolor' => $bgcolor, + 'lang' => $selected_language); + } + } + } + } +} + +$app->tpl->setLoop('records', $language_files_list); + + + + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_list.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg.lng b/interface/ispconfig/interface/admin/lib/lang/bg.lng new file mode 100644 index 0000000..8a1c30b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Не е въведено потребителско име или парола.'; +$wb['1002'] = 'Грешно потребителско име или парола.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Групи'; +$wb['groups_description'] = 'Редактиране на групи'; +$wb['Server'] = 'Сървър'; +$wb['Services'] = 'Услуги'; +$wb['Config'] = 'Настрйки'; +$wb['Server Config'] = 'Настрйки на сървъра'; +$wb['Mail'] = 'Поща'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Уеб'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Система'; +$wb['Add user'] = 'Нов потребител'; +$wb['Edit user'] = 'Редактиране на потребител'; +$wb['CP Users'] = 'Потребители'; +$wb['Add group'] = 'Нова група'; +$wb['Edit group'] = 'Редактиране на група'; +$wb['Edit server'] = 'Редактиране на сървър'; +$wb['Edit Server IP'] = 'Edit Server IP'; +$wb['Servers'] = 'Сървъри'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Езици'; +$wb['New Language'] = 'Нов език'; +$wb['Export'] = 'Експортиране'; +$wb['Import'] = 'Импортиране'; +$wb['Language Editor'] = 'Редактор за езиците'; +$wb['Software'] = 'Софтуер'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng new file mode 100644 index 0000000..e626345 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['tcp_port_help_txt'] = 'Separated by comma'; +$wb['udp_port_help_txt'] = 'Separated by comma'; +$wb['active_txt'] = 'Active'; +$wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng new file mode 100644 index 0000000..24a34be --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['add_new_record_txt'] = 'Add Firewall record'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng b/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng new file mode 100644 index 0000000..b59c210 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Описание'; +$wb['name_txt'] = 'Група'; +$wb['name_err'] = 'Името на групата трябва да е между 1 и 30 символа.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng new file mode 100644 index 0000000..fcf73a1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Групи'; +$wb['description_txt'] = 'Описание'; +$wb['name_txt'] = 'Група'; +$wb['add_new_record_txt'] = 'Нова група'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng new file mode 100644 index 0000000..2dd3689 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Добавяне на език'; +$wb['language_select_txt'] = 'Изберете изходен език'; +$wb['language_new_txt'] = 'Нов език'; +$wb['btn_save_txt'] = 'Създаване на файловете за новия език'; +$wb['btn_cancel_txt'] = 'Отказ'; +$wb['language_new_hint_txt'] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng new file mode 100644 index 0000000..30c51c2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Сливане на файловете на избрания език с тези на английски.<br />Към избрания език ще бъдат добавени файлове и отделни записи, които липсват в него, но съществуват в английския.'; +$wb['language_select_txt'] = 'Изберете език'; +$wb['btn_save_txt'] = 'Сливане'; +$wb['btn_cancel_txt'] = 'Отказ'; +$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng new file mode 100644 index 0000000..ce30b66 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Редактор за езиците'; +$wb['language_select_txt'] = 'Изберете език'; +$wb['module_txt'] = 'Модул'; +$wb['lang_file_txt'] = 'Файл'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng new file mode 100644 index 0000000..d8e91de --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Експортиране на език'; +$wb['language_select_txt'] = 'Изберете език'; +$wb['btn_save_txt'] = 'Експортиране'; +$wb['btn_cancel_txt'] = 'Отказ'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng new file mode 100644 index 0000000..4d3922e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Импортиране на езиков файл'; +$wb['language_import_txt'] = 'Изберете езиков файл'; +$wb['btn_save_txt'] = 'Импортиране'; +$wb['language_overwrite_txt'] = 'Презапиши ако съществува'; +$wb['btn_cancel_txt'] = 'Отказ'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng new file mode 100644 index 0000000..2a096aa --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Редактор за езиците'; +$wb['language_select_txt'] = 'Изберете език'; +$wb['module_txt'] = 'Модул'; +$wb['lang_file_txt'] = 'Файл'; +$wb['lang_file_date_txt'] = 'Последна редакция'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server.lng new file mode 100644 index 0000000..1b42f22 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'config'; +$wb['server_name_txt'] = 'Servername'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['active_txt'] = 'Active'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng new file mode 100644 index 0000000..16803a9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['website_path_txt'] = 'Website path'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Network Configuration'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Invalid IP address format.'; +$wb['netmask_error_wrong'] = 'Invalid Netmask format.'; +$wb['gateway_error_wrong'] = 'Invalid Gateway format.'; +$wb['hostname_error_empty'] = 'Hostname is empty.'; +$wb['nameservers_error_empty'] = 'Nameserver is empty.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Config directory'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['security_level_txt'] = 'Security level'; +$wb['web_user_txt'] = 'Apache user'; +$wb['web_group_txt'] = 'Apache group'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng new file mode 100644 index 0000000..636c2e0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng new file mode 100644 index 0000000..6d451f5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng new file mode 100644 index 0000000..81ae8f0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Addresses'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['add_new_record_txt'] = 'Add new IP Address'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng new file mode 100644 index 0000000..7b42c49 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Name'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'File'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Add new Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng new file mode 100644 index 0000000..03917ca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Software packages'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng new file mode 100644 index 0000000..574dd11 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'User (optional)'; +$wb['repo_password_txt'] = 'Password (optional)'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng new file mode 100644 index 0000000..b7a219f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Active'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng new file mode 100644 index 0000000..ebf4e6f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Software updates'; +$wb['installed_txt'] = 'Action'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Action'; +$wb['server_select_txt'] = 'Select server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng new file mode 100644 index 0000000..e7f5d93 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_users.lng b/interface/ispconfig/interface/admin/lib/lang/bg_users.lng new file mode 100644 index 0000000..8e70364 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Username'; +$wb['username_err'] = 'The username is too long or contains invalid characters.'; +$wb['username_empty'] = 'The username is empty.'; +$wb['username_unique'] = 'There is already a user with this username.'; +$wb['passwort_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['modules_txt'] = 'Module'; +$wb['startmodule_txt'] = 'Startmodule'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Type'; +$wb['active_txt'] = 'Active'; +$wb['language_txt'] = 'Language'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['unternehmen_txt'] = 'Company'; +$wb['strasse_txt'] = 'Street'; +$wb['ort_txt'] = 'City'; +$wb['plz_txt'] = 'ZIP'; +$wb['land_txt'] = 'Country'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telephone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Groups'; +$wb['default_group_txt'] = 'Default Group'; +$wb['startmodule_err'] = 'Start module is not within modules.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng new file mode 100644 index 0000000..0de8cdc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Users'; +$wb['username_txt'] = 'Username'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['ort_txt'] = 'city'; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br.lng b/interface/ispconfig/interface/admin/lib/lang/br.lng new file mode 100644 index 0000000..9debee0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Por favor, preencha o nome do usuário e senha!'; +$wb['1002'] = 'Nome do usuário ou senha incorretos!'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Grupos'; +$wb['groups_description'] = 'Formulário para edição dos Grupos de usuários do sistema.'; +$wb['Server'] = 'Servidor'; +$wb['Services'] = 'Serviços'; +$wb['Config'] = 'Configuração'; +$wb['Server Config'] = 'Configuração do Servidor'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Sistema'; +$wb['Add user'] = 'Adicionar Usuário'; +$wb['Edit user'] = 'Editar Usuário'; +$wb['CP Users'] = 'Usuários'; +$wb['Add group'] = 'Adicionar Grupo'; +$wb['Edit group'] = 'Editar Grupo'; +$wb['Edit server'] = 'Editar Servidor'; +$wb['Edit Server IP'] = 'Editar Endereço IP do Servidor'; +$wb['Servers'] = 'Servidores'; +$wb['Sync. Now'] = 'Sincronizar agora'; +$wb['DB Sync.'] = 'Sincronizar Banco de Dados'; +$wb['Languages'] = 'Idiomas'; +$wb['New Language'] = 'Novo Idioma'; +$wb['Export'] = 'Exportar'; +$wb['Import'] = 'Importar'; +$wb['Language Editor'] = 'Editor de Idiomas'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositórios'; +$wb['Server Services'] = 'Serviços do Servidor'; +$wb['Interface Config'] = 'Configuração da Interface'; +$wb['Packages'] = 'Pacotes'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Mesclar'; +$wb['Remote Users'] = 'Usuários Remotos'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng new file mode 100644 index 0000000..40a7496 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; +$wb['tcp_port_help_txt'] = 'Separado por vírgula'; +$wb['udp_port_help_txt'] = 'Separado por vírgula'; +$wb['active_txt'] = 'Ativo'; +$wb['firewall_error_unique'] = 'Já existe uma regra de firewall para este servidor!'; +$wb['tcp_ports_error_regex'] = 'Caratere não permitido para definição de porta tcp. São permitidos somente números, : e ,.'; +$wb['udp_ports_error_regex'] = 'Caratere não permitido para definição de porta udp. São permitidos somente números, : e ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng new file mode 100644 index 0000000..d299957 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; +$wb['add_new_record_txt'] = 'Adcionar registro de firewall'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_groups.lng b/interface/ispconfig/interface/admin/lib/lang/br_groups.lng new file mode 100644 index 0000000..41afadb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Descrição'; +$wb['name_txt'] = 'Grupo'; +$wb['name_err'] = 'O Nome do Grupo deve conter de 1 a 30 caracteres!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng new file mode 100644 index 0000000..73a6f43 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Grupos de usuários do sistema'; +$wb['description_txt'] = 'Descrição'; +$wb['name_txt'] = 'Grupo'; +$wb['add_new_record_txt'] = 'Adicionar novo Grupo'; +$wb['warning_txt'] = '<b>AVISO:</b> Não modifique ou edite qualquer configuração de usuário aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar usuários e grupos aqui pode ocasionar perda de dados!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng new file mode 100644 index 0000000..064b9ea --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Adcionar novo idioma'; +$wb['language_select_txt'] = 'Selecione o idioma base'; +$wb['language_new_txt'] = 'Novo Idioma'; +$wb['language_new_hint_txt'] = '2 letras código ISO 639-1 (Veja http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Criar um novo conjunto de idioma'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng new file mode 100644 index 0000000..c4c0b14 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mesclar Idioma'; +$wb['list_desc_txt'] = 'Mesclar o arquivo de idioma selecionado com o arquivo de idioma principal (em inglês). <br />Isto permite completar qualquer falha de tradução, com o arquivo principal original em inglês.'; +$wb['language_select_txt'] = 'Selecionar Idioma'; +$wb['btn_save_txt'] = 'Mesclar arquivos agora'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng new file mode 100644 index 0000000..2a3f572 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Editor de Arquivos de Idioma'; +$wb['language_select_txt'] = 'Selecione o idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Arquivo de Idioma'; +$wb['btn_save_txt'] = 'Salvar'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng new file mode 100644 index 0000000..d484661 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Exportar arquivos de idioma'; +$wb['language_select_txt'] = 'Selecione o idioma'; +$wb['btn_save_txt'] = 'Exportar idioma selecionado para um arquivo'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng new file mode 100644 index 0000000..290335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Importar arquivo de idioma'; +$wb['language_import_txt'] = 'Buscar arquivo de idioma'; +$wb['btn_save_txt'] = 'Importar Arquivo de Idioma Selecionado'; +$wb['language_overwrite_txt'] = 'Sobre escrever o arquivo se existir.'; +$wb['btn_cancel_txt'] = 'Voltar'; +$wb['ignore_version_txt'] = 'Pular checagem de versão do ISPConfig'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng new file mode 100644 index 0000000..348b94a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Editor de arquivo de idioma'; +$wb['language_select_txt'] = 'Selecione o idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Arquido de Idioma'; +$wb['lang_file_date_txt'] = 'Ultima Modificação'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng new file mode 100644 index 0000000..c873979 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Nome do usuário:'; +$wb['password_txt'] = 'Senha:'; +$wb['function_txt'] = 'Funções:'; +$wb['username_error_unique'] = 'O nome de usuário deve ser único'; +$wb['username_error_empty'] = 'O nome de usuário não pode estar em branco'; +$wb['password_error_empty'] = 'A senha não pode estar em branco'; +$wb['password_strength_txt'] = 'Segurança da senha:'; +$wb['Mail domain functions'] = 'Funções de domínio de correio'; +$wb['Mail user functions'] = 'Funções de usuário de correio'; +$wb['Mail alias functions'] = 'Funções de aliases de correio'; +$wb['Mail forward functions'] = 'Funções de encaminhamento de correio'; +$wb['Mail catchall functions'] = 'Funções de catchall de correio'; +$wb['Mail transport functions'] = 'Funções de transporte de correio'; +$wb['Mail whitelist functions'] = 'Funções de lista branca de correio'; +$wb['Mail blacklist functions'] = 'Funções de lista negra de correio'; +$wb['Mail spamfilter user functions'] = 'Funções de spamfilter de usuário de correio'; +$wb['Mail spamfilter policy functions'] = 'Funções de política de spamfilter de correio'; +$wb['Mail fetchmail functions'] = 'Funções de fetchmail'; +$wb['Mail user filter functions'] = 'Funções de filtro de correio de usuário'; +$wb['Mail filter functions'] = 'Funções de filtro de correio'; +$wb['Client functions'] = 'Funções de cliente'; +$wb['Sites cron functions'] = 'Funções de cron (Sites)'; +$wb['Sites database functions'] = 'Funções de Banco de Dados (Sites)'; +$wb['Sites FTP-User functions'] = 'Funções de Usuários FTP (Sites)'; +$wb['Sites Shell-User functions'] = 'Funções de Usuários de Shell (Sites)'; +$wb['Sites Domain functions'] = 'Funções de Domínio (Sites)'; +$wb['Sites Aliasdomain functions'] = 'Função de Aliasdomain (Sites)'; +$wb['Sites Subdomain functions'] = 'Função de Subdomain (Sites)'; +$wb['DNS zone functions'] = 'Funções de Zona DNS'; +$wb['DNS a functions'] = 'Funções de a DNS'; +$wb['DNS aaaa functions'] = 'Funções de aaaa DNS'; +$wb['DNS alias functions'] = 'Funções de alias DNS'; +$wb['DNS cname functions'] = 'Funções de cname DNS'; +$wb['DNS hinfo functions'] = 'Funções de hinfo DNS'; +$wb['DNS mx functions'] = 'Funções de mx DNS'; +$wb['DNS ns functions'] = 'Funções de ns DNS'; +$wb['DNS ptr functions'] = 'Funções de ptr DNS'; +$wb['DNS rp functions'] = 'Funções de rp DNS'; +$wb['DNS srv functions'] = 'Funções de srv DNS'; +$wb['DNS txt functions'] = 'Funções de txt DNS'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng new file mode 100644 index 0000000..d84321d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Usuários Remotos'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Adcionar novo usuário'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Nome do usuário'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server.lng b/interface/ispconfig/interface/admin/lib/lang/br_server.lng new file mode 100644 index 0000000..899104f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'Configuração'; +$wb['server_name_txt'] = 'Nome do Servidor'; +$wb['mail_server_txt'] = 'Servidor de Mail'; +$wb['web_server_txt'] = 'Servidor Web'; +$wb['dns_server_txt'] = 'Servidor DNS'; +$wb['file_server_txt'] = 'Servidor de Arquivo'; +$wb['db_server_txt'] = 'Servidor de Banco de Dados'; +$wb['vserver_server_txt'] = 'Servidor VServer'; +$wb['active_txt'] = 'Ativado'; +$wb['mirror_server_id_txt'] = 'É um espelho de servidor'; +$wb['- None -'] = '- Não -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng new file mode 100644 index 0000000..6791ea1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Raiz do Chroot Jailkit'; +$wb['jailkit_chroot_app_sections_txt'] = 'Aplicações Jailkit chroot (Sessões)'; +$wb['jailkit_chroot_app_programs_txt'] = 'Aplicações Jailkit em ambiente chroot'; +$wb['website_path_txt'] = 'Caminho do Website'; +$wb['website_symlinks_txt'] = 'Website symlinks: link simbólico'; +$wb['website_basedir_txt'] = 'Website basedir: Diretório base '; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost diretório de configuração ativo'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI: Caminho diretório inicial'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI: Script inicial'; +$wb['fastcgi_alias_txt'] = 'FastCGI: Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI: Caminho do php.ini '; +$wb['fastcgi_children_txt'] = 'FastCGI: Filhos'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI: Requisições máximas'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Módulo'; +$wb['maildir_path_txt'] = 'Caminho do diretório Maildir'; +$wb['homedir_path_txt'] = 'Caminho do diretório Home'; +$wb['mailuser_uid_txt'] = 'UID usuário de email'; +$wb['mailuser_gid_txt'] = 'GID usuário de email'; +$wb['mailuser_name_txt'] = 'Nome usuário de email'; +$wb['mailuser_group_txt'] = 'Grupo usuário de email'; +$wb['relayhost_txt'] = 'Host Relay'; +$wb['relayhost_user_txt'] = 'Usuário do Host Relay'; +$wb['relayhost_password_txt'] = 'Senha do Host Relay'; +$wb['mailbox_size_limit_txt'] = 'Tamanho máximo da Caixa Postal'; +$wb['message_size_limit_txt'] = 'Tamanho máximo de mensagem'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['netmask_txt'] = 'Máscara de Rede'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Nome do Host'; +$wb['nameservers_txt'] = 'Servidores DNS'; +$wb['auto_network_configuration_txt'] = 'Configuração de Rede'; +$wb['ip_address_error_wrong'] = 'Formato do Endereço IP inválido!'; +$wb['netmask_error_wrong'] = 'Formato da Máscara de Rede inválio!'; +$wb['gateway_error_wrong'] = 'Gateway inválido!'; +$wb['hostname_error_empty'] = 'Por favor, entre com o nome do Host.'; +$wb['nameservers_error_empty'] = 'Por favor, entre com o Servidor DNS.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Cron de aplicações Jailkit em ambiente chroot'; +$wb['config_dir_txt'] = 'Diretório de configuração'; +$wb['init_script_txt'] = 'Cron init nome do script'; +$wb['crontab_dir_txt'] = 'Caminho para crontabs individuais'; +$wb['wget_txt'] = 'Caminho para o wget'; +$wb['web_user_txt'] = 'Usuário Apache'; +$wb['web_group_txt'] = 'Grupo Apache'; +$wb['security_level_txt'] = 'Nível de Segurança'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'Usuário BIND'; +$wb['bind_group_txt'] = 'Groupo BIND'; +$wb['bind_zonefiles_dir_txt'] = 'Diretório de arquivos de zona do BIND'; +$wb['named_conf_path_txt'] = 'Caminho do BIND named.conf'; +$wb['bind_user_error_empty'] = 'Usuário do BIND está em branco.'; +$wb['bind_group_error_empty'] = 'Grupo do BIND está em branco.'; +$wb['bind_zonefiles_dir_error_empty'] = 'Diretório de arquivos de zona está em branco.'; +$wb['named_conf_path_error_empty'] = 'Caminho do BIND named.conf.'; +$wb['named_conf_local_path_error_empty'] = 'Caminho do BIND named.conf.local está em branco.'; +$wb['mail_filter_syntax_txt'] = 'Sintaxe do Mailfilter'; +$wb['pop3_imap_daemon_txt'] = 'Daemon POP3/IMAP'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir está em branco.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride está em branco.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng new file mode 100644 index 0000000..60047d5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Configuração do Servidor'; +$wb['server_name_txt'] = 'Servidor'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng new file mode 100644 index 0000000..b062dbb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['virtualhost_txt'] = 'Nome VirtualHost HTTP'; +$wb['ip_error_wrong'] = 'Endereço IP inválido!'; +$wb['ip_error_unique'] = 'O endereço IP deve ser único'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng new file mode 100644 index 0000000..864464e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Endereço IP'; +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['add_new_record_txt'] = 'Adicionar novo Endereço IP'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng new file mode 100644 index 0000000..5a1266c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'Nome'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Arquivo'; +$wb['db_server_txt'] = 'Banco de Dados'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Adicionar novo Servidor'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng new file mode 100644 index 0000000..893cc4c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Pacotes de Software'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Pacote'; +$wb['package_description_txt'] = 'Descrição'; +$wb['action_txt'] = 'Acão'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng new file mode 100644 index 0000000..5b54c30 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repositório'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Usuário (opcional)'; +$wb['repo_password_txt'] = 'Senha (opcional)'; +$wb['active_txt'] = 'Ativo'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng new file mode 100644 index 0000000..6941c7f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repositório'; +$wb['active_txt'] = 'Ativo'; +$wb['repo_name_txt'] = 'Repositório'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng new file mode 100644 index 0000000..e6af8ec --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Atualizações de Programas'; +$wb['server_select_txt'] = 'Selecione o servidor'; +$wb['installed_txt'] = 'Ações'; +$wb['update_title_txt'] = 'Atualizar'; +$wb['version_txt'] = 'Versão'; +$wb['action_txt'] = 'Ação'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng new file mode 100644 index 0000000..5fa32ab --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edite estes valores com cuidado! Não remova os prefixos em um sistema com mais de um cliente!!'; +$wb['dbname_prefix_txt'] = 'Prefixo Nome do Banco de Dados'; +$wb['dbuser_prefix_txt'] = 'Prefixo Usuário do Banco de Dados'; +$wb['shelluser_prefix_txt'] = 'Prefixo Usuário de Shell'; +$wb['ftpuser_prefix_txt'] = 'Prefixo Usuário FTP'; +$wb['dbname_prefix_error_regex'] = 'Caractere não permitido para o prefixo do nome do Banco de Dados!'; +$wb['dbuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Usuário do Banco de Dados!'; +$wb['ftpuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Usuário FTP!'; +$wb['shelluser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Usuário Shell!'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link para phpmyadmin'; +$wb['mailboxlist_webmail_link_txt'] = 'Link para o webmail'; +$wb['webmail_url_txt'] = 'URL do Webmail'; +$wb['phpmyadmin_url_txt'] = 'URL do PHPMyAdmin'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_users.lng b/interface/ispconfig/interface/admin/lib/lang/br_users.lng new file mode 100644 index 0000000..28369f7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Usuário'; +$wb['username_err'] = 'O Nome do Usuário é muito longo ou contém caracteres inválidos!'; +$wb['username_empty'] = 'Por favor, entre com o nome do Usuário.'; +$wb['username_unique'] = 'Já existe um Usuário com este nome!'; +$wb['passwort_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança da Senha'; +$wb['modules_txt'] = 'Módulos'; +$wb['startmodule_txt'] = 'Módulo Inicial'; +$wb['app_theme_txt'] = 'Tema'; +$wb['typ_txt'] = 'Tipo'; +$wb['active_txt'] = 'Ativo'; +$wb['language_txt'] = 'Idioma'; +$wb['name_txt'] = 'Nome'; +$wb['vorname_txt'] = 'Sobrenome'; +$wb['unternehmen_txt'] = 'Empresa'; +$wb['strasse_txt'] = 'Endereço'; +$wb['ort_txt'] = 'Cidade'; +$wb['plz_txt'] = 'CEP'; +$wb['land_txt'] = 'País'; +$wb['email_txt'] = 'E-mail'; +$wb['url_txt'] = 'Site'; +$wb['telefon_txt'] = 'Telefone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Grupos'; +$wb['default_group_txt'] = 'Grupo Padrão'; +$wb['startmodule_err'] = 'O módulo inicial não está contido nos módulos.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng new file mode 100644 index 0000000..d21054a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Usuários'; +$wb['username_txt'] = 'Nome de Usuário'; +$wb['name_txt'] = 'Nome'; +$wb['vorname_txt'] = 'Sobrenome'; +$wb['ort_txt'] = 'cidade'; +$wb['add_new_record_txt'] = 'Adcionar novo usuário'; +$wb['warning_txt'] = '<b>AVISO:</b> Não modifique ou edite qualquer configuração de usuário aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar usuários e grupos aqui pode ocasionar perda de dados!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de.lng b/interface/ispconfig/interface/admin/lib/lang/de.lng new file mode 100644 index 0000000..c5fd284 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Benutzername oder Passwort ist leer.'; +$wb['1002'] = 'Benutzername oder Passwort ist falsch.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Gruppen'; +$wb['groups_description'] = 'Formular zur Bearbeitung von Systembenutzer Gruppen.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Dienste'; +$wb['Config'] = 'Konfiguration'; +$wb['Server Config'] = 'Serverkonfiguration'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Benutzer hinzufügen'; +$wb['Edit user'] = 'Benutzer bearbeiten'; +$wb['CP Users'] = 'CP Benutzer'; +$wb['Add group'] = 'Gruppe hinzufügen'; +$wb['Edit group'] = 'Gruppe bearbeiten'; +$wb['Edit server'] = 'Server bearbeiten'; +$wb['Edit Server IP'] = 'Server IP bearbeiten'; +$wb['Servers'] = 'Server'; +$wb['Sync. Now'] = 'Jetzt syncronisieren'; +$wb['DB Sync.'] = 'DB Syncronisation'; +$wb['Languages'] = 'Sprachen'; +$wb['New Language'] = 'Neue Sprache'; +$wb['Export'] = 'Exportieren'; +$wb['Import'] = 'Importieren'; +$wb['Language Editor'] = 'Sprachen Editor'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Benutzer'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng new file mode 100644 index 0000000..0f58d7c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Offene TCP Ports'; +$wb['udp_port_txt'] = 'Offene UDP Ports'; +$wb['tcp_port_help_txt'] = 'Getrennt durch Beistrich'; +$wb['udp_port_help_txt'] = 'Getrennt durch Beistrich'; +$wb['active_txt'] = 'Aktiv'; +$wb['firewall_error_unique'] = 'Es gibt bereits einen Firewalldatensatz für diesen Server.'; +$wb['tcp_ports_error_regex'] = 'Zeichen nicht erlaubt in TCP Port Definition. Erlaubte Zeichen sind Nummern, : und ,.'; +$wb['udp_ports_error_regex'] = 'Zeichen nicht erlaubt in TCP Port Definition. Erlaubte Zeichen sind Nummern, : und ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng new file mode 100644 index 0000000..aefad61 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Offene TCP Ports'; +$wb['udp_port_txt'] = 'Offene UDP Ports'; +$wb['add_new_record_txt'] = 'Firewalleintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_groups.lng b/interface/ispconfig/interface/admin/lib/lang/de_groups.lng new file mode 100644 index 0000000..25f81b1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Beschreibung'; +$wb['name_txt'] = 'Gruppe'; +$wb['name_err'] = 'Das Feld Gruppe muss min. 1, max. 30 Zeichen lang sein.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng new file mode 100644 index 0000000..2447431 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Systembenutzergruppen'; +$wb['description_txt'] = 'Beschreibung'; +$wb['name_txt'] = 'Gruppe'; +$wb['add_new_record_txt'] = 'Neue Gruppe hinzufügen'; +$wb['warning_txt'] = '<b>WARNUNG:</b> Bitte hier keine Benutzereinstellungen verändern. Benutzen Sie die Kunden- und Resellereinstellungen im Kundenmodul. Modifizieren der Benutzer oder Gruppen hier könnte zum Datenverlust führen!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng new file mode 100644 index 0000000..118bdee --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Neue Sprache hinzufügen'; +$wb['language_select_txt'] = 'Sprachbasis auswählen'; +$wb['language_new_txt'] = 'Neue Sprache'; +$wb['language_new_hint_txt'] = '2 Buchstaben ISO 639-1 Sprachcode (siehe http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Neues Sprachdateiset erstellen'; +$wb['btn_cancel_txt'] = 'Zurück'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng new file mode 100644 index 0000000..1376e0c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Sprachdatei zusammenführen'; +$wb['list_desc_txt'] = 'Die ausgewählte Sprache mit der englischen Master Sprachdatei zusammenführen. <br />Dies fügt fehlende Sätze aus der englischen Master Sprachdatei in der gewählten Sprache ein.'; +$wb['language_select_txt'] = 'Sprache auswählen'; +$wb['btn_save_txt'] = 'Dateien jetzt zusammenführen'; +$wb['btn_cancel_txt'] = 'Zurück'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng new file mode 100644 index 0000000..30ab21b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sprachdatei Editor'; +$wb['language_select_txt'] = 'Sprache auswählen'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Sprachdatei'; +$wb['btn_save_txt'] = 'Speichern'; +$wb['btn_cancel_txt'] = 'Zurück'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng new file mode 100644 index 0000000..70eb466 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Sprachdatei exportieren'; +$wb['language_select_txt'] = 'Sprache auswählen'; +$wb['btn_save_txt'] = 'Ausgewähltes Sprachdateiset exportieren'; +$wb['btn_cancel_txt'] = 'Zurück'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng new file mode 100644 index 0000000..698213e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sprachdatei importieren'; +$wb['language_import_txt'] = 'Sprache auswählen'; +$wb['btn_save_txt'] = 'Ausgewählte Sprache importieren'; +$wb['language_overwrite_txt'] = 'Datei überschreiben, falls sie existiert.'; +$wb['btn_cancel_txt'] = 'Zurück'; +$wb['ignore_version_txt'] = 'ISPConfig Versionsüberprüfung überspringen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng new file mode 100644 index 0000000..074eab9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Sprachdatei Editor'; +$wb['language_select_txt'] = 'Wähle Sprache'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Sprachdatei'; +$wb['lang_file_date_txt'] = 'Letzte Änderung'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng new file mode 100644 index 0000000..c6fddd9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Banutzername:'; +$wb['password_txt'] = 'Passwort:'; +$wb['function_txt'] = 'Funktionen:'; +$wb['username_error_unique'] = 'Benutzername muss einzigartig sein'; +$wb['username_error_empty'] = 'Benutzername darf nicht leer sein'; +$wb['password_error_empty'] = 'Passwort darf nicht leer sein'; +$wb['password_strength_txt'] = 'Passwortstärke:'; +$wb['Mail domain functions'] = 'Mail Domain Funktionen'; +$wb['Mail user functions'] = 'Mail Benutzer Funktionen'; +$wb['Mail alias functions'] = 'Mail Alias Funktionen'; +$wb['Mail forward functions'] = 'Mail Weiterleitung Funktionen'; +$wb['Mail catchall functions'] = 'Mail Catchall Funktionen'; +$wb['Mail transport functions'] = 'Mail Transport Funktionen'; +$wb['Mail whitelist functions'] = 'Mail Whitelist Funktionen'; +$wb['Mail blacklist functions'] = 'Mail Blacklist Funktionen'; +$wb['Mail spamfilter user functions'] = 'Mail Spamfilter Benutzer Funktionen'; +$wb['Mail spamfilter policy functions'] = 'Mail Spamfilter Richtlinien Funktionen'; +$wb['Mail fetchmail functions'] = 'Mail Fetchmail Funktionen'; +$wb['Mail user filter functions'] = 'Mail Benutzer Filter Funktionen'; +$wb['Mail filter functions'] = 'Mail Filter Funktionen'; +$wb['Client functions'] = 'Kunden Funktionen'; +$wb['Sites cron functions'] = 'Sites Cron Funktionen'; +$wb['Sites database functions'] = 'Sites Datenbanken Funktionen'; +$wb['Sites FTP-User functions'] = 'Sites FTP-Benutzer Funktionen'; +$wb['Sites Shell-User functions'] = 'Sites Shell-Benutzer Funktionen'; +$wb['Sites Domain functions'] = 'Sites Domain Funktionen'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain Funktionen'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain Funktionen'; +$wb['DNS zone functions'] = 'DNS Zone Funktionen'; +$wb['DNS a functions'] = 'DNS a Funktionen'; +$wb['DNS aaaa functions'] = 'DNS aaaa Funktionen'; +$wb['DNS alias functions'] = 'DNS Alias Funktionen'; +$wb['DNS cname functions'] = 'DNS cname Funktionen'; +$wb['DNS hinfo functions'] = 'DNS hinfo Funktionen'; +$wb['DNS mx functions'] = 'DNS mx Funktionen'; +$wb['DNS ns functions'] = 'DNS ns Funktionen'; +$wb['DNS ptr functions'] = 'DNS ptr Funktionen'; +$wb['DNS rp functions'] = 'DNS rp Funktionen'; +$wb['DNS srv functions'] = 'DNS srv Funktionen'; +$wb['DNS txt functions'] = 'DNS txt Funktionen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng new file mode 100644 index 0000000..163b7e8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Benutzer'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Neuen Benutzer hinzufügen'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Benutzername'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server.lng b/interface/ispconfig/interface/admin/lib/lang/de_server.lng new file mode 100644 index 0000000..f01116a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'Konfiguration'; +$wb['server_name_txt'] = 'Servername'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['active_txt'] = 'Aktiv'; +$wb['mirror_server_id_txt'] = 'Ist Mirror von Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng new file mode 100644 index 0000000..f0caa43 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['website_path_txt'] = 'Website Pfad'; +$wb['website_symlinks_txt'] = 'Website Symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI Starter Pfad'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI Starter Script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Pfad'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Modul'; +$wb['maildir_path_txt'] = 'Maildir Pfad'; +$wb['homedir_path_txt'] = 'Homedir Pfad'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Gruppe'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost Benutzer'; +$wb['relayhost_password_txt'] = 'Relayhost Passwort'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Größen Limit'; +$wb['message_size_limit_txt'] = 'Message Größen Limit'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameserver'; +$wb['auto_network_configuration_txt'] = 'Netzwerk Konfiguration'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Ungültiges IP Adressen Format.'; +$wb['netmask_error_wrong'] = 'Ungültiges Netmask Format.'; +$wb['gateway_error_wrong'] = 'Ungültiges Gateway Format.'; +$wb['hostname_error_empty'] = 'Hostname ist leer.'; +$wb['nameservers_error_empty'] = 'Nameserver ist leer.'; +$wb['config_dir_txt'] = 'Config Verzeichnis'; +$wb['init_script_txt'] = 'Cron init Script Name'; +$wb['crontab_dir_txt'] = 'Pfad für individuelle Crontabs'; +$wb['wget_txt'] = 'Pfad zum wget Programm'; +$wb['web_user_txt'] = 'Apache Benutzer'; +$wb['web_group_txt'] = 'Apache Gruppe'; +$wb['security_level_txt'] = 'Security Level'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND Benutzer'; +$wb['bind_group_txt'] = 'BIND Gruppe'; +$wb['bind_zonefiles_dir_txt'] = 'BIND Zonefiles Verzeichnis'; +$wb['named_conf_path_txt'] = 'BIND named.conf Pfad'; +$wb['bind_user_error_empty'] = 'BIND Benutzer ist leer.'; +$wb['bind_group_error_empty'] = 'BIND Gruppe ist leer.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND Zonefiles Verzeichnis ist leer.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf Pfad ist leer.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local Pfad ist leer.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir ist leer.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride ist leer.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng new file mode 100644 index 0000000..191b2c8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Serverkonfiguration'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng new file mode 100644 index 0000000..8210037 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'Das IP Adresse ist ungültig'; +$wb['ip_error_unique'] = 'Das IP Adresse müss einzigartig sein'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng new file mode 100644 index 0000000..0d0727c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Adressen'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['add_new_record_txt'] = 'Neue IP Adresse hinzufügen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng new file mode 100644 index 0000000..332a603 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Name'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Datei'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Neuen Server hinzufügen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng new file mode 100644 index 0000000..ca797d3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Softwarepakete'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Paket'; +$wb['package_description_txt'] = 'Beschreibung'; +$wb['action_txt'] = 'Aktion'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng new file mode 100644 index 0000000..6e54c4a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Benutzername (optional)'; +$wb['repo_password_txt'] = 'Passwort (optional)'; +$wb['active_txt'] = 'Aktiv'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng new file mode 100644 index 0000000..db6f49f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Aktiv'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng new file mode 100644 index 0000000..6f01c1f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Softwareupdates'; +$wb['server_select_txt'] = 'Server wählen'; +$wb['installed_txt'] = 'Aktion'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Aktion'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng new file mode 100644 index 0000000..2c10f25 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Bearbeiten Sie diese Werte sorgfältig! Entfernen Sie die Prefixe nicht auf Systemen mit mehr als einem Client.'; +$wb['dbname_prefix_txt'] = 'Datenbanknamen Prefix'; +$wb['dbuser_prefix_txt'] = 'Datenbankbenutzer Prefix'; +$wb['shelluser_prefix_txt'] = 'Shellbenutzer Prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP Benutzer Prefix'; +$wb['dbname_prefix_error_regex'] = 'Zeichen nicht erlaubt in Datenbanknamen Prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Zeichen nicht erlaubt in Datenbankbenutzer Prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Zeichen nicht erlaubt in FTP Benutzer Prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Zeichen nicht erlaubt in Shellbenutzer Prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link zu phpMyAdmin in der Datenbankliste'; +$wb['mailboxlist_webmail_link_txt'] = 'Link zu Webmail in der Mailboxliste'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_users.lng b/interface/ispconfig/interface/admin/lib/lang/de_users.lng new file mode 100644 index 0000000..436cff5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Benutzername'; +$wb['username_err'] = 'Der Benutzername enthält ungültige Zeichen.'; +$wb['passwort_txt'] = 'Passwort'; +$wb['modules_txt'] = 'Module'; +$wb['startmodule_txt'] = 'Startmodul'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktiv'; +$wb['language_txt'] = 'Sprache'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Vorname'; +$wb['unternehmen_txt'] = 'Unternehmen'; +$wb['strasse_txt'] = 'Strasse'; +$wb['ort_txt'] = 'Ort'; +$wb['plz_txt'] = 'PLZ'; +$wb['land_txt'] = 'Land'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'URL'; +$wb['telefon_txt'] = 'Telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Gruppen'; +$wb['default_group_txt'] = 'Standardgruppe'; +$wb['username_empty'] = 'Der Benutzername ist leer'; +$wb['username_unique'] = 'Es gibt bereits einen Benutzer mit diesem Namen'; +$wb['startmodule_err'] = 'Start Modul ist nicht innerhalb der Module.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng new file mode 100644 index 0000000..73a6195 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Benutzer'; +$wb['username_txt'] = 'Benutzername'; +$wb['name_txt'] = 'Nachname'; +$wb['vorname_txt'] = 'Vorname'; +$wb['ort_txt'] = 'Ort'; +$wb['add_new_record_txt'] = 'Neuen Benutzer hinzufügen'; +$wb['warning_txt'] = '<b>WARNUNG:</b> Bitte hier keine Benutzereinstellungen verändern. Benutzen Sie die Kunden- und Resellereinstellungen im Kundenmodul. Modifizieren der Benutzer oder Gruppen hier könnte zum Datenverlust führen!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en.lng b/interface/ispconfig/interface/admin/lib/lang/en.lng new file mode 100644 index 0000000..06a3b45 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en.lng @@ -0,0 +1,42 @@ +<?php + +$wb[1001] = "Username or password is empty."; +$wb[1002] = "Username or password is wrong."; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Groups'; +$wb['groups_description'] = 'Form to edit systemuser groups.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Services'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Add user'; +$wb['Edit user'] = 'Edit user'; +$wb['CP Users'] = 'CP Users'; +$wb['Add group'] = 'Add group'; +$wb['Edit group'] = 'Edit group'; +$wb['Groups'] = 'Groups'; +$wb['Edit server'] = 'Edit server'; +$wb['Edit Server IP'] = 'Server IP addresses'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Languages'; +$wb['New Language'] = 'New Language'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Language Editor'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng new file mode 100644 index 0000000..025108b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng @@ -0,0 +1,12 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["tcp_port_txt"] = 'Open TCP ports'; +$wb["udp_port_txt"] = 'Open UDP ports'; +$wb["tcp_port_help_txt"] = 'Separated by comma'; +$wb["udp_port_help_txt"] = 'Separated by comma'; +$wb["active_txt"] = 'Active'; +$wb["firewall_error_unique"] = 'There is already a firewall record for this server.'; +$wb["active_txt"] = 'Active'; +$wb["tcp_ports_error_regex"] = 'Character not allowed in tcp port definition. Allowed characters are numbers, ":" and ",".'; +$wb["udp_ports_error_regex"] = 'Character not allowed in udp port definition. Allowed characters are numbers, ":" and ",".'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng new file mode 100644 index 0000000..d16e1c7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Firewall'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["tcp_port_txt"] = 'Open TCP ports'; +$wb["udp_port_txt"] = 'Open UDP ports'; +$wb["add_new_record_txt"] = 'Add Firewall record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_groups.lng b/interface/ispconfig/interface/admin/lib/lang/en_groups.lng new file mode 100644 index 0000000..a504f99 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb["description_txt"] = 'Description'; +$wb["name_txt"] = 'Group'; +$wb["name_err"] = 'Group must be min 1, max 30 Chars.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng new file mode 100644 index 0000000..ba18318 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Systemuser groups'; +$wb["description_txt"] = 'Description'; +$wb["name_txt"] = 'Group'; +$wb["add_new_record_txt"] = 'Add new Group'; +$wb["warning_txt"] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng new file mode 100644 index 0000000..2b5e5a4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Add new language'; +$wb["language_select_txt"] = 'Select language basis'; +$wb["language_new_txt"] = 'New language'; +$wb["language_new_hint_txt"] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Create new language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng new file mode 100644 index 0000000..1543877 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Merge language'; +$wb["list_desc_txt"] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb["language_select_txt"] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng new file mode 100644 index 0000000..4c50e88 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng new file mode 100644 index 0000000..791fc89 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb["list_head_txt"] = 'Export language files'; +$wb["language_select_txt"] = 'Select language'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng new file mode 100644 index 0000000..a554c6c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Import language file'; +$wb["language_import_txt"] = 'Select language file'; +$wb['btn_save_txt'] = 'Import the selected language file'; +$wb["language_overwrite_txt"] = 'Overwrite file, if exists.'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng new file mode 100644 index 0000000..e70f09f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Language file editor'; +$wb["language_select_txt"] = 'Select language'; +$wb["module_txt"] = 'Module'; +$wb["lang_file_txt"] = 'Language file'; +$wb["lang_file_date_txt"] = 'Last modify'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng new file mode 100644 index 0000000..56c6fac --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = "Remote Users"; +$wb['list_desc_txt'] = ""; +$wb['add_new_record_txt'] = "Add new user"; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = "Username"; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server.lng b/interface/ispconfig/interface/admin/lib/lang/en_server.lng new file mode 100644 index 0000000..dcd46c5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server.lng @@ -0,0 +1,13 @@ +<?php +$wb["config_txt"] = 'config'; +$wb["server_name_txt"] = 'Servername'; +$wb["mail_server_txt"] = 'Mailserver'; +$wb["web_server_txt"] = 'Webserver'; +$wb["dns_server_txt"] = 'DNS-Server'; +$wb["file_server_txt"] = 'Fileserver'; +$wb["db_server_txt"] = 'DB-Server'; +$wb["vserver_server_txt"] = 'VServer-Server'; +$wb["active_txt"] = 'Active'; +$wb["mirror_server_id_txt"] = 'Is mirror of Server'; +$wb["- None -"] = '- None -'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng new file mode 100644 index 0000000..603245d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb["jailkit_chroot_home_txt"] = 'Jailkit chroot home'; +$wb["jailkit_chroot_app_sections_txt"] = 'Jailkit chroot app sections'; +$wb["jailkit_chroot_app_programs_txt"] = 'Jailkit chrooted applications'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb["website_path_txt"] = 'Website path'; +$wb["website_symlinks_txt"] = 'Website symlinks'; +$wb["website_basedir_txt"] = 'Website basedir'; +$wb["vhost_conf_dir_txt"] = 'Vhost config dir'; +$wb["vhost_conf_enabled_dir_txt"] = 'Vhost config enabled dir'; +$wb["getmail_config_dir_txt"] = 'Getmail config dir'; +$wb["fastcgi_starter_path_txt"] = 'FastCGI starter path'; +$wb["fastcgi_starter_script_txt"] = 'FastCGI starter script'; +$wb["fastcgi_alias_txt"] = 'FastCGI Alias'; +$wb["fastcgi_phpini_path_txt"] = 'FastCGI php.ini Path'; +$wb["fastcgi_children_txt"] = 'FastCGI Children'; +$wb["fastcgi_max_requests_txt"] = 'FastCGI max. Requests'; +$wb["fastcgi_bin_txt"] = 'FastCGI Bin'; +$wb["module_txt"] = 'Module'; +$wb["maildir_path_txt"] = 'Maildir Path'; +$wb["homedir_path_txt"] = 'Homedir Path'; +$wb["mailuser_uid_txt"] = 'Mailuser UID'; +$wb["mailuser_gid_txt"] = 'Mailuser GID'; +$wb["mailuser_name_txt"] = 'Mailuser Name'; +$wb["mailuser_group_txt"] = 'Mailuser Group'; +$wb["relayhost_txt"] = 'Relayhost'; +$wb["relayhost_user_txt"] = 'Relayhost User'; +$wb["relayhost_password_txt"] = 'Relayhost Password'; +$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; +$wb["message_size_limit_txt"] = 'Message Size Limit'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["netmask_txt"] = 'Netmask'; +$wb["gateway_txt"] = 'Gateway'; +$wb["hostname_txt"] = 'Hostname'; +$wb["nameservers_txt"] = 'Nameservers'; +$wb["auto_network_configuration_txt"] = 'Network Configuration'; +$wb["ip_address_error_wrong"] = 'Invalid IP address format.'; +$wb["netmask_error_wrong"] = 'Invalid Netmask format.'; +$wb["gateway_error_wrong"] = 'Invalid Gateway format.'; +$wb["hostname_error_empty"] = 'Hostname is empty.'; +$wb["nameservers_error_empty"] = 'Nameserver is empty.'; +$wb["config_dir_txt"] = 'Config directory'; +$wb["init_script_txt"] = 'Cron init script name'; +$wb["crontab_dir_txt"] = 'Path for individual crontabs'; +$wb["wget_txt"] = 'Path to wget program'; +$wb["web_user_txt"] = 'Apache user'; +$wb["web_group_txt"] = 'Apache group'; +$wb["security_level_txt"] = 'Security level'; +$wb["loglevel_txt"] = 'Loglevel'; +$wb["apps_vhost_port_txt"] = 'Apps-vhost port'; +$wb["apps_vhost_ip_txt"] = 'Apps-vhost IP'; +$wb["apps_vhost_servername_txt"] = 'Apps-vhost Domain'; +$wb["bind_user_txt"] = 'BIND User'; +$wb["bind_group_txt"] = 'BIND Group'; +$wb["bind_zonefiles_dir_txt"] = 'BIND zonefiles directory'; +$wb["named_conf_path_txt"] = 'BIND named.conf path'; +$wb["bind_user_error_empty"] = 'BIND user is empty.'; +$wb["bind_group_error_empty"] = 'BIND group is empty.'; +$wb["bind_zonefiles_dir_error_empty"] = 'BIND zonefiles directory is empty.'; +$wb["named_conf_path_error_empty"] = 'BIND named.conf path is empty.'; +$wb["named_conf_local_path_error_empty"] = 'BIND named.conf.local path is empty.'; +$wb["mail_filter_syntax_txt"] = 'Mailfilter Syntax'; +$wb["pop3_imap_daemon_txt"] = 'POP3/IMAP Daemon'; +$wb["php_open_basedir_txt"] = 'PHP open_basedir'; +$wb["php_open_basedir_error_empty"] = 'PHP open_basedir is empty.'; +$wb["htaccess_allow_override_txt"] = '.htaccess AllowOverride'; +$wb["htaccess_allow_override_error_empty"] = '.htaccess AllowOverride is empty.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng new file mode 100644 index 0000000..4d8a3f6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb["list_head_txt"] = 'Server Configuration'; +$wb["server_name_txt"] = 'Server'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng new file mode 100644 index 0000000..ae4717c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["virtualhost_txt"] = 'HTTP NameVirtualHost'; +$wb["ip_error_wrong"] = 'The IP address is invalid'; +$wb["ip_error_unique"] = 'The IP address must be unique'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng new file mode 100644 index 0000000..008dfc4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb["list_head_txt"] = 'IP Addresses'; +$wb["server_id_txt"] = 'Server'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["add_new_record_txt"] = 'Add new IP Address'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng new file mode 100644 index 0000000..d15701e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb["list_head_txt"] = 'Server'; +$wb["server_name_txt"] = 'Name'; +$wb["mail_server_txt"] = 'Mail'; +$wb["web_server_txt"] = 'Web'; +$wb["dns_server_txt"] = 'DNS'; +$wb["file_server_txt"] = 'File'; +$wb["db_server_txt"] = 'DB'; +$wb["vserver_server_txt"] = 'VServer'; +$wb["add_new_record_txt"] = 'Add new Server'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng new file mode 100644 index 0000000..03917ca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Software packages'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng new file mode 100644 index 0000000..7968b00 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb["repo_name_txt"] = 'Repository'; +$wb["repo_url_txt"] = 'URL'; +$wb["repo_username_txt"] = 'User (optional)'; +$wb["repo_password_txt"] = 'Password (optional)'; +$wb["active_txt"] = 'Active'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng new file mode 100644 index 0000000..f0a0b30 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb["list_head_txt"] = 'Repository'; +$wb["active_txt"] = 'Active'; +$wb["repo_name_txt"] = 'Repository'; +$wb["repo_url_txt"] = 'URL'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng new file mode 100644 index 0000000..ec4af23 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Software updates'; +$wb['server_select_txt'] = 'Select server'; +$wb['installed_txt'] = 'Action'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng new file mode 100644 index 0000000..4502227 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng @@ -0,0 +1,17 @@ +<?php + +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/en_users.lng b/interface/ispconfig/interface/admin/lib/lang/en_users.lng new file mode 100644 index 0000000..0f9a1c5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_users.lng @@ -0,0 +1,28 @@ +<?php +$wb["username_txt"] = 'Username'; +$wb["username_err"] = 'The username is too long or contains invalid characters.'; +$wb["username_empty"] = 'The username is empty.'; +$wb["username_unique"] = 'There is already a user with this username.'; +$wb["passwort_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["modules_txt"] = 'Module'; +$wb["startmodule_txt"] = 'Startmodule'; +$wb["app_theme_txt"] = 'Design'; +$wb["typ_txt"] = 'Type'; +$wb["active_txt"] = 'Active'; +$wb["language_txt"] = 'Language'; +$wb["name_txt"] = 'Name'; +$wb["vorname_txt"] = 'Forename'; +$wb["unternehmen_txt"] = 'Company'; +$wb["strasse_txt"] = 'Street'; +$wb["ort_txt"] = 'City'; +$wb["plz_txt"] = 'ZIP'; +$wb["land_txt"] = 'Country'; +$wb["email_txt"] = 'Email'; +$wb["url_txt"] = 'Url'; +$wb["telefon_txt"] = 'Telephone'; +$wb["fax_txt"] = 'Fax'; +$wb["groups_txt"] = 'Groups'; +$wb["default_group_txt"] = 'Default Group'; +$wb["startmodule_err"] = 'Start module is not within modules.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng new file mode 100644 index 0000000..1042cd3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Users'; +$wb["username_txt"] = 'Username'; +$wb["name_txt"] = 'Name'; +$wb["vorname_txt"] = 'Forename'; +$wb["ort_txt"] = 'city'; +$wb["add_new_record_txt"] = 'Add new user'; +$wb["warning_txt"] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/lib/lang/es.lng b/interface/ispconfig/interface/admin/lib/lang/es.lng new file mode 100644 index 0000000..3e3566f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'El usuario o la contraseña están vacíos.'; +$wb['1002'] = 'El usuario o la contraseña son erróneos'; +$wb['Firewall'] = 'Cortafuegos'; +$wb['Groups'] = 'Grupos'; +$wb['groups_description'] = 'Formulario para editar los grupos del usuario de sistema.'; +$wb['Server'] = 'Servidor'; +$wb['Services'] = 'Servicios'; +$wb['Config'] = 'Configuración'; +$wb['Server Config'] = 'Configuración del servidor'; +$wb['Mail'] = 'Correo'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Sistema'; +$wb['Add user'] = 'Añadir usuario'; +$wb['Edit user'] = 'Editar usuarios'; +$wb['CP Users'] = 'Usuarios del Panel'; +$wb['Add group'] = 'Añadir grupo'; +$wb['Edit group'] = 'Editar grupo'; +$wb['Edit server'] = 'Editar servidor'; +$wb['Edit Server IP'] = 'Editar IP del servidor'; +$wb['Servers'] = 'Servidores'; +$wb['Sync. Now'] = 'Sincronizar ahora'; +$wb['DB Sync.'] = 'Sincronizar BD'; +$wb['Languages'] = 'Idiomas'; +$wb['New Language'] = 'Nuevo idioma'; +$wb['Export'] = 'Exportar'; +$wb['Import'] = 'Importar'; +$wb['Language Editor'] = 'Editar idioma'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositorios'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng new file mode 100644 index 0000000..2b31cf5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Abrir puertos TCP'; +$wb['udp_port_txt'] = 'Abrir puertos UDP'; +$wb['tcp_port_help_txt'] = 'Separados por coma'; +$wb['udp_port_help_txt'] = 'Separados por coma'; +$wb['active_txt'] = 'Activar'; +$wb['firewall_error_unique'] = 'Ya hay un registro de cortafuegos en este servidor'; +$wb['tcp_ports_error_regex'] = 'Caracter no permitido en la definición del puerto TCP. Los caracteres permitidos son números, : y ,.'; +$wb['udp_ports_error_regex'] = 'Caracter no permitido en la definición del puerto UDP. Los caracteres permitidos son números, : y ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng new file mode 100644 index 0000000..8332c41 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Cortafuegos'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Abrir puertos TCP'; +$wb['udp_port_txt'] = 'Abrir puertos UDP'; +$wb['add_new_record_txt'] = 'Añadir nuevo registro de cortafuegos'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_groups.lng b/interface/ispconfig/interface/admin/lib/lang/es_groups.lng new file mode 100644 index 0000000..37e6cd8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Descripción'; +$wb['name_txt'] = 'Grupo'; +$wb['name_err'] = 'El grupo debe tener entre 1 y 30 caracteres.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng new file mode 100644 index 0000000..f36c4d8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Grupos de usuarios del sistema'; +$wb['description_txt'] = 'Descripción'; +$wb['name_txt'] = 'Grupo'; +$wb['add_new_record_txt'] = 'Añadir nuevo grupo'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng new file mode 100644 index 0000000..d0f057a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Añadir nuevo idioma'; +$wb['language_select_txt'] = 'Seleccionar idioma base'; +$wb['language_new_txt'] = 'Nuevo idioma'; +$wb['btn_save_txt'] = 'Crear conjunto de ficheros de idioma'; +$wb['btn_cancel_txt'] = 'Atrás'; +$wb['language_new_hint_txt'] = '2 caracteres del código de idiomas ISO 639-1 (ver http://es.wikipedia.org/wiki/ISO_639-1)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng new file mode 100644 index 0000000..0e3e183 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mezclar el fichero de idioma seleccionado con el fichero de idioma maestro en inglés. <br />Esto añade las cadenas perdidas desde el fichero maestro en inglés.'; +$wb['language_select_txt'] = 'Elegir idioma'; +$wb['btn_save_txt'] = 'Mezclar los ficheros ahora'; +$wb['btn_cancel_txt'] = 'Atrás'; +$wb['list_desc_txt'] = 'Mezclar el fichero de idioma seleccionado con el fichero de idioma maestro en inglés. <br />Esto añade cadenas perdidas desde el fichero de idioma maestro en inglés al idioma seleccionado.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng new file mode 100644 index 0000000..f471c4d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Editor de ficheros de idioma'; +$wb['language_select_txt'] = 'Elegir idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Fichero de idioma'; +$wb['btn_save_txt'] = 'Guardar'; +$wb['btn_cancel_txt'] = 'Atrás'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng new file mode 100644 index 0000000..2883a7e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Exportar ficheros de idioma'; +$wb['language_select_txt'] = 'Elegir idioma'; +$wb['btn_save_txt'] = 'Exportar el conjunto de ficheros de idioma seleccionados'; +$wb['btn_cancel_txt'] = 'Atrás'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng new file mode 100644 index 0000000..87b465e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Fichero de importación de idioma'; +$wb['language_import_txt'] = 'Elija el fichero de idioma'; +$wb['btn_save_txt'] = 'Importar el fichero de idioma'; +$wb['language_overwrite_txt'] = 'Sobreescribir los ficheros, si existen'; +$wb['btn_cancel_txt'] = 'Atrás'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng new file mode 100644 index 0000000..dfa2cae --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Editor de ficheros de idioma'; +$wb['language_select_txt'] = 'Elija idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Ficheros de idioma'; +$wb['lang_file_date_txt'] = 'Última modificación'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng new file mode 100644 index 0000000..f3d3a9a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Nombre de usuario:'; +$wb['password_txt'] = 'Contraseña:'; +$wb['function_txt'] = 'Funciones:'; +$wb['username_error_unique'] = 'El nombre de usuario debe ser único'; +$wb['username_error_empty'] = 'El nombre de usuario no puede estar vacío'; +$wb['password_error_empty'] = 'La contraseña no puede estar vacía'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng new file mode 100644 index 0000000..e73f800 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Usuarios remotos'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Añadir nuevo usuario remoto'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Nombre de usuario'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server.lng b/interface/ispconfig/interface/admin/lib/lang/es_server.lng new file mode 100644 index 0000000..e38ccfc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'configuración'; +$wb['server_name_txt'] = 'Nombre de servidor'; +$wb['mail_server_txt'] = 'Servidor de correo'; +$wb['web_server_txt'] = 'Servidor web'; +$wb['dns_server_txt'] = 'Servidor DNS'; +$wb['file_server_txt'] = 'Servidor de ficheros'; +$wb['db_server_txt'] = 'Servidor de bases de datos'; +$wb['vserver_server_txt'] = 'ServidorVirtual-Servidor'; +$wb['active_txt'] = 'Activar'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng new file mode 100644 index 0000000..a76a5cf --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Carpeta Jailkit chroot'; +$wb['jailkit_chroot_app_sections_txt'] = 'Secciones de aplicación Jailkit chroot'; +$wb['jailkit_chroot_app_programs_txt'] = 'Aplicaciones Jailkit chrooted'; +$wb['website_path_txt'] = 'Ruta del sitio web'; +$wb['website_symlinks_txt'] = 'Enlaces simbólicos del sitio web'; +$wb['vhost_conf_dir_txt'] = 'Directorio de configuración de vhost'; +$wb['vhost_conf_enabled_dir_txt'] = 'Directorio de configuración de vhost activados'; +$wb['getmail_config_dir_txt'] = 'Directorio de configuración de Getmail'; +$wb['fastcgi_starter_path_txt'] = 'Ruta inicial de FastCGI'; +$wb['fastcgi_starter_script_txt'] = 'Script inicial de FastCGI'; +$wb['fastcgi_alias_txt'] = 'Alias de FastCGI'; +$wb['fastcgi_phpini_path_txt'] = 'Ruta al php.ini de FastCGI'; +$wb['fastcgi_children_txt'] = 'Hijos de FastCGI'; +$wb['fastcgi_max_requests_txt'] = 'Peticiones máximas de FastCGI'; +$wb['fastcgi_bin_txt'] = 'Binario de FastCGI'; +$wb['module_txt'] = 'Módulo'; +$wb['maildir_path_txt'] = 'Ruta de maildir'; +$wb['homedir_path_txt'] = 'Ruta de homedir'; +$wb['mailuser_uid_txt'] = 'UID usuario de correo'; +$wb['mailuser_gid_txt'] = 'GID usuario de correo'; +$wb['mailuser_name_txt'] = 'Nombre del usuario de correo'; +$wb['mailuser_group_txt'] = 'Grupo del usuario de correo'; +$wb['relayhost_txt'] = 'Servidor de retransmisión'; +$wb['relayhost_user_txt'] = 'Usuario de retransmisión'; +$wb['relayhost_password_txt'] = 'Contraseña de retramisión'; +$wb['mailbox_size_limit_txt'] = 'Límite de tamaño del buzón'; +$wb['message_size_limit_txt'] = 'Límite de tamaño del mensaje'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['netmask_txt'] = 'Máscara de red'; +$wb['gateway_txt'] = 'Pasarela'; +$wb['hostname_txt'] = 'Nombre de la máquina (hostname)'; +$wb['nameservers_txt'] = 'Servidores de nombres'; +$wb['auto_network_configuration_txt'] = 'Configuración de red'; +$wb['website_basedir_txt'] = 'Basedir del sitio Web'; +$wb['ip_address_error_wrong'] = 'Formato incorrecto de dirección IP.'; +$wb['netmask_error_wrong'] = 'Formato incorrecto de máscara de red.'; +$wb['gateway_error_wrong'] = 'Formato incorrecto de pasarela.'; +$wb['hostname_error_empty'] = 'El nombre de la máquina (hostname) está vacío.'; +$wb['nameservers_error_empty'] = 'El servidor de nombres (nameserver) está vacío.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Aplicaciones Jailkit cron chrooted'; +$wb['config_dir_txt'] = 'Directorio de configuración'; +$wb['init_script_txt'] = 'Nombre del script de inicio de cron'; +$wb['crontab_dir_txt'] = 'Ruta para las crontabs individuales'; +$wb['wget_txt'] = 'Ruta al programa wget'; +$wb['security_level_txt'] = 'Nivel de seguridad'; +$wb['web_user_txt'] = 'Usuario de Apache'; +$wb['web_group_txt'] = 'Grupo de Apache'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng new file mode 100644 index 0000000..6dd827a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Configuración del servidor'; +$wb['server_name_txt'] = 'Servidor'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng new file mode 100644 index 0000000..6358c5d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['virtualhost_txt'] = 'NameVirtualHost HTTP'; +$wb['ip_error_wrong'] = 'Dirección IP no válida'; +$wb['ip_error_unique'] = 'La dirección IP debe ser única'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng new file mode 100644 index 0000000..9ae9834 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Dirección IP'; +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['add_new_record_txt'] = 'Añadir nueva dirección IP'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng new file mode 100644 index 0000000..11a8e6f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'Nombre'; +$wb['mail_server_txt'] = 'Correo'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'FTP'; +$wb['db_server_txt'] = 'BD'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Añadir nuevo servidor'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng new file mode 100644 index 0000000..d4482d5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Paquetes de software'; +$wb['installed_txt'] = 'Estado'; +$wb['package_title_txt'] = 'Paquete'; +$wb['package_description_txt'] = 'Descripción'; +$wb['action_txt'] = 'Acción'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng new file mode 100644 index 0000000..3b9a89e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repositorio'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Usuario (opcional)'; +$wb['repo_password_txt'] = 'Contraseña (opcional)'; +$wb['active_txt'] = 'Activar'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng new file mode 100644 index 0000000..59f9790 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repositorio'; +$wb['active_txt'] = 'Activar'; +$wb['repo_name_txt'] = 'Repositorio'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng new file mode 100644 index 0000000..adbe6d8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Actualizaciones de software'; +$wb['installed_txt'] = 'Acción'; +$wb['update_title_txt'] = 'Actualizar'; +$wb['version_txt'] = 'Versión'; +$wb['action_txt'] = 'Acción'; +$wb['server_select_txt'] = 'Seleccionar servidor'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng new file mode 100644 index 0000000..7ce9dbe --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = '¡Tenga cuidado al modificar estos valores! No elimine los prefijos en un sistema que tenga más de un cliente.'; +$wb['dbname_prefix_txt'] = 'Prefijo del nombre de la base de datos'; +$wb['dbuser_prefix_txt'] = 'Prefijo del usuario de la base de datos'; +$wb['shelluser_prefix_txt'] = 'Prefijo del usuario de la consola'; +$wb['ftpuser_prefix_txt'] = 'Prefijo del usuario FTP'; +$wb['dbname_prefix_error_regex'] = 'Caracteres no permitidos en el prefijo del nombre de la base de datos.'; +$wb['dbuser_prefix_error_regex'] = 'Caracteres no permitidos en el prefijo del usuario de la base de datos.'; +$wb['ftpuser_prefix_error_regex'] = 'Caracteres no permitidos en el prefijo del usuario FTP.'; +$wb['shelluser_prefix_error_regex'] = 'Caracteres no permitidos en el prefijo del usuario de la consola.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Enlace a phpmyadmin en la lista de bases de datos'; +$wb['mailboxlist_webmail_link_txt'] = 'Enlace al correo web en la lista de buzones de correo'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_users.lng b/interface/ispconfig/interface/admin/lib/lang/es_users.lng new file mode 100644 index 0000000..1561060 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Nombre de usuario'; +$wb['username_err'] = 'El nombre de usuario es demasiado largo o contiene carácteres inválidos'; +$wb['username_empty'] = 'El nombre de usuario está vacío.'; +$wb['username_unique'] = 'El nombre de usuario debe ser único'; +$wb['passwort_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['modules_txt'] = 'Módulo'; +$wb['startmodule_txt'] = 'Módulo inicial'; +$wb['app_theme_txt'] = 'Diseño'; +$wb['typ_txt'] = 'Tipo'; +$wb['active_txt'] = 'Activar'; +$wb['language_txt'] = 'Idioma'; +$wb['name_txt'] = 'Nombre'; +$wb['vorname_txt'] = 'Apellidos'; +$wb['unternehmen_txt'] = 'Compañía'; +$wb['strasse_txt'] = 'Calle'; +$wb['ort_txt'] = 'Localidad'; +$wb['plz_txt'] = 'CP'; +$wb['land_txt'] = 'País'; +$wb['email_txt'] = 'Correo'; +$wb['url_txt'] = 'URL'; +$wb['telefon_txt'] = 'Teléfono'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Grupos'; +$wb['default_group_txt'] = 'Grupo por defecto'; +$wb['startmodule_err'] = 'El modulo inicial no está incluido en los módulos'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng new file mode 100644 index 0000000..ec36891 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Usuarios'; +$wb['username_txt'] = 'Usuario'; +$wb['name_txt'] = 'Nombre'; +$wb['vorname_txt'] = 'Apellido'; +$wb['ort_txt'] = 'Ciudad'; +$wb['add_new_record_txt'] = 'Añadir nuevo usuario'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi.lng b/interface/ispconfig/interface/admin/lib/lang/fi.lng new file mode 100644 index 0000000..545a3bf --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Käyttäjätunnus ja/tai salasana on tyhjä.'; +$wb['1002'] = 'Käyttäjätunnus ja/tai salasana on väärin.'; +$wb['Firewall'] = 'Palomuuri'; +$wb['Groups'] = 'Käyttäjäryhmät'; +$wb['groups_description'] = 'Lomake käyttäjäryhmien muokkaukseen.'; +$wb['Server'] = 'Palvelin'; +$wb['Services'] = 'Palvelut'; +$wb['Config'] = 'Asetukset'; +$wb['Server Config'] = 'Palvelimen asetukset'; +$wb['Mail'] = 'Posti'; +$wb['Getmail'] = 'Postin nouto'; +$wb['Web'] = 'WWW'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Järjestelmä'; +$wb['Add user'] = 'Lisää käyttäjä'; +$wb['Edit user'] = 'Muokkaa käyttäjää'; +$wb['CP Users'] = 'Hallintapaneelin käyttäjät'; +$wb['Add group'] = 'Lisää käyttäjäryhmä'; +$wb['Edit group'] = 'Muokkaa ryhmää'; +$wb['Edit server'] = 'Muokkaa palvelinta'; +$wb['Edit Server IP'] = 'Muokkaa palvelimen IP-osoitteita'; +$wb['Servers'] = 'Palvelimet'; +$wb['Sync. Now'] = 'Synkronoi nyt'; +$wb['DB Sync.'] = 'Tietokannan synkronointi.'; +$wb['Languages'] = 'Hallintapaneelin kielet'; +$wb['New Language'] = 'Lisää uusi kieli'; +$wb['Export'] = 'Lataa'; +$wb['Import'] = 'Asenna'; +$wb['Language Editor'] = 'Kielimuokkain'; +$wb['Software'] = 'Ohjelmat'; +$wb['Repositories'] = 'Ohjelmapakettien varastot'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng new file mode 100644 index 0000000..63cc2f7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['tcp_port_txt'] = 'Avoimet TCP-portit'; +$wb['udp_port_txt'] = 'Avoimet UDP-portit'; +$wb['tcp_port_help_txt'] = 'Pilkulla erotettu lista'; +$wb['udp_port_help_txt'] = 'Pilkulla erotettu lista'; +$wb['active_txt'] = 'Käytössä'; +$wb['firewall_error_unique'] = 'Tällainen palomuurisäänto on jo tällä palvelimella.'; +$wb['tcp_ports_error_regex'] = 'Merkki ei ole sallittu tcp-portin määrittelyssä. Sallittuja merkkejä ovat numerot, : ja ,.'; +$wb['udp_ports_error_regex'] = 'Merkki ei ole sallittu udp-portin määrittelyssä. Sallittuja merkkejä ovat numerot, : ja ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng new file mode 100644 index 0000000..96ff2dc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Palomuuri'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['tcp_port_txt'] = 'Avoimet TCP-portit'; +$wb['udp_port_txt'] = 'Avoimet UDP-portit'; +$wb['add_new_record_txt'] = 'Lisää uusi palomuurisääntö'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng b/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng new file mode 100644 index 0000000..141322b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Ryhmän kuvaus'; +$wb['name_txt'] = 'Käyttäjäryhmä'; +$wb['name_err'] = 'Käyttäjäryhmän nimen on oltava vähintään 1, enintään 30 merkkiä pitkä.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng new file mode 100644 index 0000000..71d9383 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Käyttäryhmät'; +$wb['description_txt'] = 'Ryhmien kuvaukset'; +$wb['name_txt'] = 'Käyttäjäryhmä'; +$wb['add_new_record_txt'] = 'Lisää uusi tietue'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng new file mode 100644 index 0000000..24efb7e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Lisää hallintapaneeliin uusi kieli'; +$wb['language_select_txt'] = 'Valitse peruskieli'; +$wb['language_new_txt'] = 'Lisää uusi kieli'; +$wb['btn_save_txt'] = 'Luo uudet kielitiedostot'; +$wb['btn_cancel_txt'] = 'Keskeytä'; +$wb['language_new_hint_txt'] = '2-merkkinen ISO 639-1 kielikoodi (Katso http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng new file mode 100644 index 0000000..b1776c9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Yhdistä valittu kielitiedosto englanninkielisen päätiedoston kanssa. <br />Tämä lisää puuttuvat käännöskohdat valittuun kielitiedostoon.'; +$wb['language_select_txt'] = 'Valitse täydennettävä kieli'; +$wb['btn_save_txt'] = 'Yhdistä kielitiedostot nyt'; +$wb['btn_cancel_txt'] = 'Keskeytä'; +$wb['list_desc_txt'] = 'Yhdistää valitun kielitiedoston englannin kielisen päätiedoston kanssa. <br />Tämä lisää puuttuvat käännöstiedot valittuun kielitiedostoon.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng new file mode 100644 index 0000000..cdf73da --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Kielimuokkain'; +$wb['language_select_txt'] = 'Valitse kieli'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['lang_file_txt'] = 'Kielitiedosto'; +$wb['btn_save_txt'] = 'Tallenna'; +$wb['btn_cancel_txt'] = 'Keskeytä'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng new file mode 100644 index 0000000..b1ff06c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Lataa kielitiedosto'; +$wb['language_select_txt'] = 'Valitse ladattava kieli'; +$wb['btn_save_txt'] = 'Lataa valittu kielitiedosto'; +$wb['btn_cancel_txt'] = 'Takaisin'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng new file mode 100644 index 0000000..ca60528 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Asenna kielitiedosto'; +$wb['language_import_txt'] = 'Valitse asennettava kielitiedosto'; +$wb['btn_save_txt'] = 'Asenna valittu kielitiedosto'; +$wb['language_overwrite_txt'] = 'Ylikirjoitetaan tiedostot, jos ne on jo olemassa.'; +$wb['btn_cancel_txt'] = 'Takaisin'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng new file mode 100644 index 0000000..85e7b70 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Kielitiedostojen muokkain'; +$wb['language_select_txt'] = 'Valitse kieli'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['lang_file_txt'] = 'Kielitiedosto'; +$wb['lang_file_date_txt'] = 'Viimeksi muokattu'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng new file mode 100644 index 0000000..1876872 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Käyttäjätunnus:'; +$wb['password_txt'] = 'Salasana:'; +$wb['function_txt'] = 'Toiminnot:'; +$wb['username_error_unique'] = 'Käyttäjätunnusen pitää olla yksilöllinen'; +$wb['username_error_empty'] = 'Käyttäjätunnus ei voi olla tyhjä'; +$wb['password_error_empty'] = 'Salasana ei voi olla tyhjä'; +$wb['password_strength_txt'] = 'Salasanan vahvuus:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng new file mode 100644 index 0000000..6aa4bd7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Etäkäyttäjät'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Lisää uusi etäkäyttäjä'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Käyttäjätunnus'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server.lng new file mode 100644 index 0000000..10058aa --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'Asetukset'; +$wb['server_name_txt'] = 'Palvelimen nimi'; +$wb['mail_server_txt'] = 'Sähköpostipalvelin'; +$wb['web_server_txt'] = 'WWW-palvelin'; +$wb['dns_server_txt'] = 'DNS-palvelin'; +$wb['file_server_txt'] = 'FTP-palvelin'; +$wb['db_server_txt'] = 'Tietokantapalvelin'; +$wb['vserver_server_txt'] = 'Virtuaalipalvelin'; +$wb['active_txt'] = 'Käytössä'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng new file mode 100644 index 0000000..3ef8fd6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot-kotikansio'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot-ohjelmaosiot'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted-ohjelmat'; +$wb['website_path_txt'] = 'Verkkotunnuksen kotihakemisto'; +$wb['website_symlinks_txt'] = 'Verkkotunnuksen symmetriset linkit'; +$wb['vhost_conf_dir_txt'] = 'Virtuaalipalvelimen asetuskansio'; +$wb['vhost_conf_enabled_dir_txt'] = 'Virtuaalipalvelimen käyttöönottokansio'; +$wb['getmail_config_dir_txt'] = 'Getmail-asetuskansio'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI:n käynnistyspolku'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI:n käynnistysskripti'; +$wb['fastcgi_alias_txt'] = 'FastCGI-alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI:n php.ini-polku'; +$wb['fastcgi_children_txt'] = 'FastCGI-lapsiprosessi'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI-pyyntöraja'; +$wb['fastcgi_bin_txt'] = 'FastCGI-binääri'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['maildir_path_txt'] = 'Postilaatikon hakemistopolku'; +$wb['homedir_path_txt'] = 'Kotikansion hakemistopolku'; +$wb['mailuser_uid_txt'] = 'Käyttäjätunnus'; +$wb['mailuser_gid_txt'] = 'Käyttäjäryhmä'; +$wb['mailuser_name_txt'] = 'Postikäyttäjän nimi'; +$wb['mailuser_group_txt'] = 'Postikäyttäjän ryhmä'; +$wb['relayhost_txt'] = 'Edelleenlähetyspalvelin'; +$wb['relayhost_user_txt'] = 'Edelleenlähetyspalvelimen käyttäjätunnus'; +$wb['relayhost_password_txt'] = 'Edelleenlähetyspalvelimen salasana'; +$wb['mailbox_size_limit_txt'] = 'Postilaatikon koko'; +$wb['message_size_limit_txt'] = 'Viestien enimmäiskoko'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['netmask_txt'] = 'Verkon peite'; +$wb['gateway_txt'] = 'Yhdyskäytävä'; +$wb['hostname_txt'] = 'Palvelimen nimi'; +$wb['nameservers_txt'] = 'Nimipalvelimet'; +$wb['auto_network_configuration_txt'] = 'Automaattiset verkkoasetukset'; +$wb['website_basedir_txt'] = 'Verkkotunnuksen peruskansio'; +$wb['ip_address_error_wrong'] = 'IP-osoite on väärän muotoinen.'; +$wb['netmask_error_wrong'] = 'Verkon peite on väärän muotoinen.'; +$wb['gateway_error_wrong'] = 'Yhdyskäytävä on väärän muotoinen.'; +$wb['hostname_error_empty'] = 'Isäntänimi on tyhjä.'; +$wb['nameservers_error_empty'] = 'Nimipalvelin on tyhjä.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrootatut ohjelmat'; +$wb['config_dir_txt'] = 'Asetuskansio'; +$wb['init_script_txt'] = 'Cronin init-skriptin nimi'; +$wb['crontab_dir_txt'] = 'Käyttäjien Crontabien polku'; +$wb['wget_txt'] = 'Wget-binäärin polku'; +$wb['security_level_txt'] = 'Turvallisuustaso'; +$wb['web_user_txt'] = 'Apache-käyttäjä'; +$wb['web_group_txt'] = 'Apache-ryhmä'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng new file mode 100644 index 0000000..ed1cbed --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Palvelimen asetukset'; +$wb['server_name_txt'] = 'Palvelin'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng new file mode 100644 index 0000000..9c330fc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['virtualhost_txt'] = 'Virtuaalipalvelin'; +$wb['ip_error_wrong'] = 'IP-osoite vääränlainen'; +$wb['ip_error_unique'] = 'IP-osoitteen on oltava yksilöllinen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng new file mode 100644 index 0000000..a297a62 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP-osoitteet'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['add_new_record_txt'] = 'Lisää uusi IP-osoite'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng new file mode 100644 index 0000000..30863bd --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Palvelin'; +$wb['server_name_txt'] = 'Palvelimen nimi'; +$wb['mail_server_txt'] = 'Postipalvelin'; +$wb['web_server_txt'] = 'Internet'; +$wb['dns_server_txt'] = 'Nimipalvelin'; +$wb['file_server_txt'] = 'Tiedostopalvelin'; +$wb['db_server_txt'] = 'Tietokantapalvelin'; +$wb['vserver_server_txt'] = 'Virtuaalipalvelin'; +$wb['add_new_record_txt'] = 'Lisää uusi tietue'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng new file mode 100644 index 0000000..a8957cc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Ohjelmapaketit'; +$wb['installed_txt'] = 'Ohjelmapaketin tila'; +$wb['package_title_txt'] = 'Ohjelmapaketti'; +$wb['package_description_txt'] = 'Ohjelmapaketin kuvaus'; +$wb['action_txt'] = 'Toiminto'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng new file mode 100644 index 0000000..c899694 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Ohjelmapakettien varasto'; +$wb['repo_url_txt'] = 'Varaston internetosoite'; +$wb['repo_username_txt'] = 'Käyttäjätunnus (valinnainen)'; +$wb['repo_password_txt'] = 'Salasana (valinnnainen)'; +$wb['active_txt'] = 'Käytössä'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng new file mode 100644 index 0000000..bde844c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Ohjelmapakettien varastot'; +$wb['active_txt'] = 'Käytössä'; +$wb['repo_name_txt'] = 'Ohjelmapakettien varasto'; +$wb['repo_url_txt'] = 'Ohjelmapakettien varaston osoite'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng new file mode 100644 index 0000000..9d9a2d2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Ohjelmapäivitykset'; +$wb['installed_txt'] = 'Toiminto'; +$wb['update_title_txt'] = 'Päivitä'; +$wb['version_txt'] = 'Versio'; +$wb['action_txt'] = 'Toiminto'; +$wb['server_select_txt'] = 'Valitse palvelin'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng new file mode 100644 index 0000000..254801e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Muokkaa näitä arvoja varoen! Älä poista etuliitteitä jos järjestelmässä on enemmän kuin yksi asiakas.'; +$wb['dbname_prefix_txt'] = 'Tietokannan nimen etuliite'; +$wb['dbuser_prefix_txt'] = 'Tietokannan käyttäjätunnuksen etuliite'; +$wb['shelluser_prefix_txt'] = 'Shell-käyttäjätunnuksen etuliite'; +$wb['ftpuser_prefix_txt'] = 'FTP-käyttäjätunnuksen etuliite'; +$wb['dbname_prefix_error_regex'] = 'Tietokannan nimen etuliite on vääränlainen.'; +$wb['dbuser_prefix_error_regex'] = 'Tietokannan käyttäjätunnuksen etuliite on vääränlainen.'; +$wb['ftpuser_prefix_error_regex'] = 'FTP-käyttäjätunnuksen etuliite on vääränlainen.'; +$wb['shelluser_prefix_error_regex'] = 'Shell-käyttäjätunnuksen etuliite on vääränlainen.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Linkki phpMyAdminiin tietokantalistassa'; +$wb['mailboxlist_webmail_link_txt'] = 'Linkki internetpostiin postilaatikkolistassa'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_users.lng b/interface/ispconfig/interface/admin/lib/lang/fi_users.lng new file mode 100644 index 0000000..08bada0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['username_err'] = 'Käyttäjätunnus on liian pitkä tai sisältää kiellettyjä merkkejä.'; +$wb['username_empty'] = 'Käyttäjätunnus on tyhjä.'; +$wb['username_unique'] = 'Tämä käyttäjätunnus on jo olemassa.'; +$wb['passwort_txt'] = 'Salasana'; +$wb['modules_txt'] = 'Ohjelmaosiot'; +$wb['startmodule_txt'] = 'Aloitusosio'; +$wb['app_theme_txt'] = 'Teema'; +$wb['typ_txt'] = 'Käyttäjän tyyppi'; +$wb['active_txt'] = 'Käytössä'; +$wb['language_txt'] = 'Käyttäjän kieli'; +$wb['name_txt'] = 'Etunimi'; +$wb['vorname_txt'] = 'Sukunimi'; +$wb['unternehmen_txt'] = 'Yritys'; +$wb['strasse_txt'] = 'Katuosoite'; +$wb['ort_txt'] = 'Kaupunki'; +$wb['plz_txt'] = 'Postinumero'; +$wb['land_txt'] = 'Maa'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['url_txt'] = 'Internet-osoite'; +$wb['telefon_txt'] = 'Puhelinnumero'; +$wb['fax_txt'] = 'Fax-numero'; +$wb['groups_txt'] = 'Käyttäjäryhmät'; +$wb['default_group_txt'] = 'Oletusryhmä'; +$wb['startmodule_err'] = 'Aloitusosio ei ole sallittu.'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng new file mode 100644 index 0000000..fe58f3b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Käyttäjätunnukset'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['name_txt'] = 'Etunimi'; +$wb['vorname_txt'] = 'Sukunimi'; +$wb['ort_txt'] = 'Kaupunki'; +$wb['add_new_record_txt'] = 'Lisää uusi käyttäjä'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr.lng b/interface/ispconfig/interface/admin/lib/lang/fr.lng new file mode 100644 index 0000000..929c46e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Username or password is empty.'; +$wb['1002'] = 'Username or password is wrong.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Groups'; +$wb['groups_description'] = 'Form to edit systemuser groups.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Services'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Add user'; +$wb['Edit user'] = 'Edit user'; +$wb['CP Users'] = 'CP Users'; +$wb['Add group'] = 'Add group'; +$wb['Edit group'] = 'Edit group'; +$wb['Edit server'] = 'Edit server'; +$wb['Edit Server IP'] = 'Server IP addresses'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Languages'; +$wb['New Language'] = 'New Language'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Language Editor'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng new file mode 100644 index 0000000..128000a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['tcp_port_txt'] = 'Ouvrir des ports TCP'; +$wb['udp_port_txt'] = 'Ouvrir des ports UDP'; +$wb['tcp_port_help_txt'] = 'Séparés par des virgules'; +$wb['udp_port_help_txt'] = 'Séparés par des virgules'; +$wb['active_txt'] = 'Actif'; +$wb['firewall_error_unique'] = 'Il y a déja un enregistrement au pare-feu pour ce serveur.'; +$wb['tcp_ports_error_regex'] = 'Caractère non autorisé dans la définition du port TCP. Les caractères autorisés sont les nombres, : et ,.'; +$wb['udp_ports_error_regex'] = 'Caractère non autorisé dans la définition du port USP. Les caractères autorisés sont les nombres, : et ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng new file mode 100644 index 0000000..965eb01 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Pare-feu'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['tcp_port_txt'] = 'Ouvrir des ports TCP'; +$wb['udp_port_txt'] = 'Ouvrir des ports UDP'; +$wb['add_new_record_txt'] = 'Ajouter un enregistrement au pare-feu'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng b/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng new file mode 100644 index 0000000..e0a92d7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Groupe'; +$wb['name_err'] = 'Le groupe doit avoir entre 1 et 30 caractères.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng new file mode 100644 index 0000000..2ebbc36 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Groupes dutilisateurs système'; +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Groupe'; +$wb['add_new_record_txt'] = 'Ajouter nouveau groupe'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng new file mode 100644 index 0000000..7db36eb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Ajouter un nouveau lanage'; +$wb['language_select_txt'] = 'Sélectionnez la base du langage'; +$wb['language_new_txt'] = 'Nouveau langage'; +$wb['btn_save_txt'] = 'Créer un nouveau fichier de langue'; +$wb['btn_cancel_txt'] = 'Précédent'; +$wb['language_new_hint_txt'] = '2 caractères de lISO 639-1 code langage (Voir http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng new file mode 100644 index 0000000..ede6ca5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Fusion de langages'; +$wb['language_select_txt'] = 'Sélectionnez le langage'; +$wb['btn_save_txt'] = 'Fusionner les fichiers'; +$wb['btn_cancel_txt'] = 'Précédent'; +$wb['list_desc_txt'] = 'Fusionne le langage sélectionné avec le langage principal anglais. <br />Ceci ajoute les élements manquant en anglais au fichier sélectionné.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng new file mode 100644 index 0000000..021acb4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Editeur de fichier de langue'; +$wb['language_select_txt'] = 'Sélectionnez le langage'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Fichier de langue'; +$wb['btn_save_txt'] = 'Enregistrer'; +$wb['btn_cancel_txt'] = 'Précédent'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng new file mode 100644 index 0000000..b819696 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Exporter les fichiers de langue'; +$wb['language_select_txt'] = 'Sélectionnez le langage'; +$wb['btn_save_txt'] = 'Exporte la langue sélectionnée dans un fichier'; +$wb['btn_cancel_txt'] = 'Précédent'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng new file mode 100644 index 0000000..8f76545 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Importer un fichier de langue'; +$wb['language_import_txt'] = 'Sélectionnez le fichier de langue'; +$wb['btn_save_txt'] = 'Importe le fichier de langue sélectionné'; +$wb['language_overwrite_txt'] = 'Ecraser le fichier sil éxiste déja.'; +$wb['btn_cancel_txt'] = 'Précédent'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng new file mode 100644 index 0000000..8e9f26a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Editeur de fichier de langue'; +$wb['language_select_txt'] = 'Sélectionnez le langage'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Fichier de langue'; +$wb['lang_file_date_txt'] = 'Dernière modification'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server.lng new file mode 100644 index 0000000..e8ab797 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_name_txt'] = 'Nom du serveur'; +$wb['mail_server_txt'] = 'Serveur Mail'; +$wb['web_server_txt'] = 'Serveur Web'; +$wb['dns_server_txt'] = 'Serveur DNS'; +$wb['file_server_txt'] = 'Serveur de fichier'; +$wb['active_txt'] = 'Actif'; +$wb['config_txt'] = 'config'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng new file mode 100644 index 0000000..0c22890 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Accueil du chroot Jailkit'; +$wb['jailkit_chroot_app_sections_txt'] = 'Sections des app. chrootées Jailkit'; +$wb['jailkit_chroot_app_programs_txt'] = 'Apps. chrootées Jailkit'; +$wb['website_path_txt'] = 'Chemin du site web'; +$wb['website_symlinks_txt'] = 'Liens symboliques du site web'; +$wb['vhost_conf_dir_txt'] = 'Répertoire de config. des VHosts'; +$wb['vhost_conf_enabled_dir_txt'] = 'Répertoire de config. des VHosts actives'; +$wb['getmail_config_dir_txt'] = 'Répertoire de config. de Getmail'; +$wb['fastcgi_starter_path_txt'] = 'Chemin du lanceur de FastCGI'; +$wb['fastcgi_starter_script_txt'] = 'Script lanceur de FastCGI'; +$wb['fastcgi_alias_txt'] = 'Alias de FastCGI'; +$wb['fastcgi_phpini_path_txt'] = 'Chemin du php.ini de FastCGI'; +$wb['fastcgi_children_txt'] = 'Enfant de FastCGI'; +$wb['fastcgi_max_requests_txt'] = 'Nombre max. de requêtes FastCGI'; +$wb['fastcgi_bin_txt'] = 'Exécutable FastCGI'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Chemin Maildir'; +$wb['homedir_path_txt'] = 'Chemin Homedir'; +$wb['mailuser_uid_txt'] = 'Utilisateur mail UID'; +$wb['mailuser_gid_txt'] = 'Utilisateur mail GID'; +$wb['mailuser_name_txt'] = 'Nom dutilisateur mail'; +$wb['mailuser_group_txt'] = 'Groupe de lutilisateur mail'; +$wb['relayhost_txt'] = 'Hôte de relai'; +$wb['relayhost_user_txt'] = 'Utilisateur du relai'; +$wb['relayhost_password_txt'] = 'Mot de passe du relai'; +$wb['mailbox_size_limit_txt'] = 'Taille max. de la boite mail'; +$wb['message_size_limit_txt'] = 'Taille max. des messages'; +$wb['ip_address_txt'] = 'Adresse IP'; +$wb['netmask_txt'] = 'Masque de réseau'; +$wb['gateway_txt'] = 'Passerelle'; +$wb['hostname_txt'] = 'Hôte'; +$wb['nameservers_txt'] = 'Serveurs de nom'; +$wb['auto_network_configuration_txt'] = 'Configuration du réseau'; +$wb['website_basedir_txt'] = 'Répertoire de base web'; +$wb['ip_address_error_wrong'] = 'Format de ladresse IP invalide.'; +$wb['netmask_error_wrong'] = 'Format du masque de réseau invalide.'; +$wb['gateway_error_wrong'] = 'Format de la passerelle invalide.'; +$wb['hostname_error_empty'] = 'Lhôte est vide.'; +$wb['nameservers_error_empty'] = 'Le serveur de nom est vide.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Applications Cron Jailkit chrootées'; +$wb['config_dir_txt'] = 'Répertoire de configuration'; +$wb['init_script_txt'] = 'Nom du script Cron de lancement'; +$wb['crontab_dir_txt'] = 'Chemin des différentes tables Cron'; +$wb['wget_txt'] = 'Chemin au programme wget'; +$wb['security_level_txt'] = 'Niveau de sécurité'; +$wb['web_user_txt'] = 'Utilisateur Apache'; +$wb['web_group_txt'] = 'Groupe Apache'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng new file mode 100644 index 0000000..850cdd1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Configuration du serveur'; +$wb['server_name_txt'] = 'Serveur'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng new file mode 100644 index 0000000..39ae21c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['ip_address_txt'] = 'Adresse IP'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng new file mode 100644 index 0000000..6bef5a3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Adresses IP'; +$wb['server_id_txt'] = 'Serveur'; +$wb['ip_address_txt'] = 'Adresse IP'; +$wb['add_new_record_txt'] = 'Nouvelle adresse IP'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng new file mode 100644 index 0000000..32637a3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Serveur'; +$wb['server_name_txt'] = 'Nom'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Fichier'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Ajouter nouveau serveur'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng new file mode 100644 index 0000000..f3d2c87 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Packages de logiciels'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng new file mode 100644 index 0000000..7b3ec48 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Référence'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Utilisateur (optionnel)'; +$wb['repo_password_txt'] = 'Mot de passe (optionnel)'; +$wb['active_txt'] = 'Actif'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng new file mode 100644 index 0000000..5674989 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Référence'; +$wb['active_txt'] = 'Actif'; +$wb['repo_name_txt'] = 'Référence'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng new file mode 100644 index 0000000..e630b67 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mises à jour des logiciels'; +$wb['installed_txt'] = 'Action'; +$wb['update_title_txt'] = 'Mise à jour'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Action'; +$wb['server_select_txt'] = 'Sélectionnez le serveur'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng new file mode 100644 index 0000000..9c7f7d9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Editez ces valeurs prudemment! Il nest pas conseillé de modifier les préfixes lorsque vous avez des clients!'; +$wb['dbname_prefix_txt'] = 'Préfixe du nom de la BDD'; +$wb['dbuser_prefix_txt'] = 'Préfixe de lutilisateur de la BDD'; +$wb['shelluser_prefix_txt'] = 'Préfixe lutilisateur Shell'; +$wb['ftpuser_prefix_txt'] = 'Préfixe de lutilisateur FTP'; +$wb['dbname_prefix_error_regex'] = 'Caractère non autorisé dans le préfixe du nom de la BDD.'; +$wb['dbuser_prefix_error_regex'] = 'Caractère non autorisé dans le préfixe de lutilisateur de la BDD.'; +$wb['ftpuser_prefix_error_regex'] = 'Caractère non autorisé dans le préfixe de lutilisateur FTP.'; +$wb['shelluser_prefix_error_regex'] = 'Caractère non autorisé dans le préfixe de lutilisateur Shell.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Lien vers PHPMyAdmin dans la liste des bases'; +$wb['mailboxlist_webmail_link_txt'] = 'Lien vers le Webmail dans la liste des boites mail'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_users.lng b/interface/ispconfig/interface/admin/lib/lang/fr_users.lng new file mode 100644 index 0000000..9bef687 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['username_err'] = 'username_err'; +$wb['passwort_txt'] = 'Mot de passe'; +$wb['modules_txt'] = 'Module'; +$wb['startmodule_txt'] = 'Module de démarrage'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Type'; +$wb['active_txt'] = 'Actif'; +$wb['language_txt'] = 'Langue'; +$wb['name_txt'] = 'Nom'; +$wb['vorname_txt'] = 'Prénom'; +$wb['unternehmen_txt'] = 'Société'; +$wb['strasse_txt'] = 'Rue'; +$wb['ort_txt'] = 'Ville'; +$wb['plz_txt'] = 'Code Postal'; +$wb['land_txt'] = 'Pays'; +$wb['email_txt'] = 'E-mail'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Télephone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Groupes'; +$wb['default_group_txt'] = 'Groupe par Défaut'; +$wb['username_empty'] = 'Le nom dutilisateur est vide.'; +$wb['username_unique'] = 'Le nom dutilisateur entré éxiste déja.'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['startmodule_err'] = 'Le module de départ néxiste pas.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng new file mode 100644 index 0000000..6d70fd8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Utilisateurs'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['name_txt'] = 'Nom'; +$wb['vorname_txt'] = 'Prénom'; +$wb['ort_txt'] = 'Ville'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel utilisateur'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu.lng b/interface/ispconfig/interface/admin/lib/lang/hu.lng new file mode 100644 index 0000000..d9e925f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Felhasználónév vagy Jelszó üres.'; +$wb['1002'] = 'Felhaszálónév vagy Jelszó hibás.'; +$wb['Firewall'] = 'Tűzfal'; +$wb['Groups'] = 'Csoprtok'; +$wb['groups_description'] = 'Rendszercsoport módosító oldal.'; +$wb['Server'] = 'Szerver'; +$wb['Services'] = 'Szolgáltatások'; +$wb['Config'] = 'Beállítások'; +$wb['Server Config'] = 'Szerver Beállítások'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Rendszer'; +$wb['Add user'] = 'Felhasználót hozzáad'; +$wb['Edit user'] = 'Felhasználót szerkeszt'; +$wb['CP Users'] = 'Admin felület Felhasználók'; +$wb['Add group'] = 'Csoprtot hozzáad'; +$wb['Edit group'] = 'Csoportot szerkeszt'; +$wb['Edit server'] = 'Szervert módosít'; +$wb['Edit Server IP'] = 'Szerver IP módosítás'; +$wb['Servers'] = 'Szerverek'; +$wb['Sync. Now'] = 'Szinkr. Most'; +$wb['DB Sync.'] = 'DB Szinkr.'; +$wb['Languages'] = 'Nyelvek'; +$wb['New Language'] = 'Új Nyelv'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Nyelv szerkesztő'; +$wb['Software'] = 'Program'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng new file mode 100644 index 0000000..e626345 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['tcp_port_help_txt'] = 'Separated by comma'; +$wb['udp_port_help_txt'] = 'Separated by comma'; +$wb['active_txt'] = 'Active'; +$wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng new file mode 100644 index 0000000..24a34be --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['add_new_record_txt'] = 'Add Firewall record'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng b/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng new file mode 100644 index 0000000..61c3dc5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['name_err'] = 'Group must be min 1, max 30 Chars.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng new file mode 100644 index 0000000..f1d8e2c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Systemuser groups'; +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['add_new_record_txt'] = 'Add new Group'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng new file mode 100644 index 0000000..8236c48 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Új nyelv'; +$wb['language_select_txt'] = 'Válasszony nyelvet'; +$wb['language_new_txt'] = 'Új nyelv'; +$wb['btn_save_txt'] = 'Új nyelv csomag összeállítás'; +$wb['btn_cancel_txt'] = 'Vissza'; +$wb['language_new_hint_txt'] = '2 karakteres ISO 639-1 nyelvi kód (Lásd http://hu.wikipedia.org/wiki/ISO_639-1)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng new file mode 100644 index 0000000..b5200ff --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng new file mode 100644 index 0000000..06ec606 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Nyelvi fájl szerkesztő'; +$wb['language_select_txt'] = 'Válasszon nyelvet'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Nyelvi fájl'; +$wb['btn_save_txt'] = 'Ment'; +$wb['btn_cancel_txt'] = 'Mégse'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng new file mode 100644 index 0000000..64c537f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Nyelvi fáljokat Exportál'; +$wb['language_select_txt'] = 'Válasszon nyelvet'; +$wb['btn_save_txt'] = 'Kiválasztott nyelv eportálása'; +$wb['btn_cancel_txt'] = 'Vissza'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng new file mode 100644 index 0000000..8111001 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Nyelvi fájlt Importál'; +$wb['language_import_txt'] = 'Válasszon nyelvi fájlt'; +$wb['btn_save_txt'] = 'A kiválasztott nyelv importálása'; +$wb['language_overwrite_txt'] = 'Létző fájlokat felülírja.'; +$wb['btn_cancel_txt'] = 'Vissza'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng new file mode 100644 index 0000000..658bd41 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Nyelvi fájl szerkesztő'; +$wb['language_select_txt'] = 'Válasszon nyelvet'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Nyelvi fájl'; +$wb['lang_file_date_txt'] = 'Utolsó módosítás'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server.lng new file mode 100644 index 0000000..1d61a37 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'beállítás'; +$wb['server_name_txt'] = 'Szervernév'; +$wb['mail_server_txt'] = 'Mailszerver'; +$wb['web_server_txt'] = 'Webszerver'; +$wb['dns_server_txt'] = 'DNS-Szerver'; +$wb['file_server_txt'] = 'Fájlszerver'; +$wb['db_server_txt'] = 'DB-Szerver'; +$wb['vserver_server_txt'] = 'VServer-Szerver'; +$wb['active_txt'] = 'Aktív'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng new file mode 100644 index 0000000..39f006e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['website_path_txt'] = 'Website path'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Network Configuration'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Invalid IP address format.'; +$wb['netmask_error_wrong'] = 'Invalid Netmask format.'; +$wb['gateway_error_wrong'] = 'Invalid Gateway format.'; +$wb['hostname_error_empty'] = 'Hostname is empty.'; +$wb['nameservers_error_empty'] = 'Nameserver is empty.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Config directory'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['web_user_txt'] = 'Apache user'; +$wb['web_group_txt'] = 'Apache group'; +$wb['security_level_txt'] = 'Security level'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng new file mode 100644 index 0000000..ade34c7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Szerver beállítások'; +$wb['server_name_txt'] = 'Szerver'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng new file mode 100644 index 0000000..5ffcd04 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['ip_address_txt'] = 'IP cím'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'IP cím érvénytelen'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng new file mode 100644 index 0000000..df533bc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP cím'; +$wb['server_id_txt'] = 'Szerver'; +$wb['ip_address_txt'] = 'IP cím'; +$wb['add_new_record_txt'] = 'Új IP cím'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng new file mode 100644 index 0000000..e0e9d13 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Szerver'; +$wb['server_name_txt'] = 'Név'; +$wb['mail_server_txt'] = 'EMail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Fájl'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Új Szerver'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng new file mode 100644 index 0000000..6f71f75 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Szoftvare csomag'; +$wb['installed_txt'] = 'Állapot'; +$wb['package_title_txt'] = 'Csomag'; +$wb['package_description_txt'] = 'Leírás'; +$wb['action_txt'] = 'Művelet'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng new file mode 100644 index 0000000..574dd11 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'User (optional)'; +$wb['repo_password_txt'] = 'Password (optional)'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng new file mode 100644 index 0000000..8d2d430 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Aktív'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng new file mode 100644 index 0000000..db6ade2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Szoftvare frissítések'; +$wb['installed_txt'] = 'Művelet'; +$wb['update_title_txt'] = 'Frissítés'; +$wb['version_txt'] = 'Verzió'; +$wb['action_txt'] = 'Művelet'; +$wb['server_select_txt'] = 'Válasszon szervert'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng new file mode 100644 index 0000000..e7f5d93 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_users.lng b/interface/ispconfig/interface/admin/lib/lang/hu_users.lng new file mode 100644 index 0000000..f9b525e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Felhasználónév'; +$wb['username_err'] = 'Felhasználónév túl hosszú vagy érvénytelen karaktereket tartalmaz'; +$wb['username_empty'] = 'Felhasználónév üres.'; +$wb['username_unique'] = 'Ez a felhasználónév már foglalt.'; +$wb['passwort_txt'] = 'Jelszó'; +$wb['modules_txt'] = 'Modul'; +$wb['startmodule_txt'] = 'Kezdőmodul'; +$wb['app_theme_txt'] = 'Kinézet'; +$wb['typ_txt'] = 'Típus'; +$wb['active_txt'] = 'Aktív'; +$wb['language_txt'] = 'Nyelv'; +$wb['name_txt'] = 'Név'; +$wb['vorname_txt'] = 'Családinév'; +$wb['unternehmen_txt'] = 'Cég'; +$wb['strasse_txt'] = 'Utca'; +$wb['ort_txt'] = 'Város'; +$wb['plz_txt'] = 'Irányítószám'; +$wb['land_txt'] = 'Megye'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Csoportok'; +$wb['default_group_txt'] = 'Alapértelemezett csoport'; +$wb['startmodule_err'] = 'Kezdő modul nincs engedélyezve.'; +$wb['password_strength_txt'] = 'Jelszó erősség'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng new file mode 100644 index 0000000..1cfe243 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Felhasználók'; +$wb['username_txt'] = 'Felhasználónév'; +$wb['name_txt'] = 'Név'; +$wb['vorname_txt'] = 'Családi név'; +$wb['ort_txt'] = 'Város'; +$wb['add_new_record_txt'] = 'Új felhasználó'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it.lng b/interface/ispconfig/interface/admin/lib/lang/it.lng new file mode 100644 index 0000000..1628a4e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Username or password is empty.'; +$wb['1002'] = 'Username or password is wrong.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Gruppi'; +$wb['groups_description'] = 'Form to edit systemuser groups.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Servizi'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Sistema'; +$wb['Add user'] = 'Aggiungi utente'; +$wb['Edit user'] = 'Modifica utente'; +$wb['CP Users'] = 'CP Utenti'; +$wb['Add group'] = 'Aggiungi gruppo'; +$wb['Edit group'] = 'Modifica gruppo'; +$wb['Edit server'] = 'Modifica server'; +$wb['Edit Server IP'] = 'Modifica IP Server'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Lingue'; +$wb['New Language'] = 'Nuova lingua'; +$wb['Export'] = 'Esporta'; +$wb['Import'] = 'Importa'; +$wb['Language Editor'] = 'Editor lingua'; +$wb['Software'] = 'Programmi'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng new file mode 100644 index 0000000..c58341d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Apri porte TCP'; +$wb['udp_port_txt'] = 'Apri porte UDP'; +$wb['tcp_port_help_txt'] = 'Separate dalla virgola'; +$wb['udp_port_help_txt'] = 'Separate dalle virgola'; +$wb['active_txt'] = 'Attivo'; +$wb['firewall_error_unique'] = 'Cè già un record firewall per questo server.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng new file mode 100644 index 0000000..24a34be --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['add_new_record_txt'] = 'Add Firewall record'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_groups.lng b/interface/ispconfig/interface/admin/lib/lang/it_groups.lng new file mode 100644 index 0000000..61c3dc5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['name_err'] = 'Group must be min 1, max 30 Chars.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng new file mode 100644 index 0000000..f1d8e2c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Systemuser groups'; +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['add_new_record_txt'] = 'Add new Group'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng new file mode 100644 index 0000000..d157e08 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aggiungi nuova lingua'; +$wb['language_select_txt'] = 'Seleziona lingua base'; +$wb['language_new_txt'] = 'Nuova lingua'; +$wb['btn_save_txt'] = 'Crea file della nuova lingua'; +$wb['btn_cancel_txt'] = 'Annulla'; +$wb['language_new_hint_txt'] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng new file mode 100644 index 0000000..b5200ff --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng new file mode 100644 index 0000000..4c50e88 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng new file mode 100644 index 0000000..f45d47b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Export language files'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng new file mode 100644 index 0000000..4c31ec3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Import language file'; +$wb['language_import_txt'] = 'Select language file'; +$wb['btn_save_txt'] = 'Import the selected language file'; +$wb['language_overwrite_txt'] = 'Overwrite file, if exists.'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng new file mode 100644 index 0000000..c63fb0f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Editor file di lingua'; +$wb['language_select_txt'] = 'Seleziona lingua'; +$wb['module_txt'] = 'Modulo'; +$wb['lang_file_txt'] = 'File lingua'; +$wb['lang_file_date_txt'] = 'Ultima modifica'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server.lng b/interface/ispconfig/interface/admin/lib/lang/it_server.lng new file mode 100644 index 0000000..922eae1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'config'; +$wb['server_name_txt'] = 'Nome Server'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['active_txt'] = 'Attivo'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng new file mode 100644 index 0000000..dfe9ce6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['website_path_txt'] = 'Website path'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +$wb['ip_address_txt'] = 'Indirizzo IP'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Network Configuration'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Invalid IP address format.'; +$wb['netmask_error_wrong'] = 'Invalid Netmask format.'; +$wb['gateway_error_wrong'] = 'Invalid Gateway format.'; +$wb['hostname_error_empty'] = 'Hostname is empty.'; +$wb['nameservers_error_empty'] = 'Nameserver is empty.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Config directory'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['security_level_txt'] = 'Security level'; +$wb['web_user_txt'] = 'Apache user'; +$wb['web_group_txt'] = 'Apache group'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng new file mode 100644 index 0000000..10a3e17 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Configurazione Server'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng new file mode 100644 index 0000000..6d451f5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng new file mode 100644 index 0000000..c2c4ab9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Indirizzi IP'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'Indirizzo IP'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo indirizzo IP'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng new file mode 100644 index 0000000..79ec28f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Nome'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'File'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Aggiungi Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng new file mode 100644 index 0000000..03917ca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Software packages'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng new file mode 100644 index 0000000..574dd11 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'User (optional)'; +$wb['repo_password_txt'] = 'Password (optional)'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng new file mode 100644 index 0000000..4db5211 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Attivo'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'Indirizzo'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng new file mode 100644 index 0000000..d45ee9a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aggiornamenti programmi'; +$wb['installed_txt'] = 'Azione'; +$wb['update_title_txt'] = 'Aggiornamento'; +$wb['version_txt'] = 'Versione'; +$wb['action_txt'] = 'Azione'; +$wb['server_select_txt'] = 'Select server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng new file mode 100644 index 0000000..e7f5d93 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_users.lng b/interface/ispconfig/interface/admin/lib/lang/it_users.lng new file mode 100644 index 0000000..8e70364 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Username'; +$wb['username_err'] = 'The username is too long or contains invalid characters.'; +$wb['username_empty'] = 'The username is empty.'; +$wb['username_unique'] = 'There is already a user with this username.'; +$wb['passwort_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['modules_txt'] = 'Module'; +$wb['startmodule_txt'] = 'Startmodule'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Type'; +$wb['active_txt'] = 'Active'; +$wb['language_txt'] = 'Language'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['unternehmen_txt'] = 'Company'; +$wb['strasse_txt'] = 'Street'; +$wb['ort_txt'] = 'City'; +$wb['plz_txt'] = 'ZIP'; +$wb['land_txt'] = 'Country'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telephone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Groups'; +$wb['default_group_txt'] = 'Default Group'; +$wb['startmodule_err'] = 'Start module is not within modules.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng new file mode 100644 index 0000000..35598d3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Utenti'; +$wb['username_txt'] = 'Nome utente'; +$wb['name_txt'] = 'Nome'; +$wb['vorname_txt'] = 'Cognome'; +$wb['ort_txt'] = 'Città'; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja.lng b/interface/ispconfig/interface/admin/lib/lang/ja.lng new file mode 100644 index 0000000..338f024 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'ユーザー名またはパスワードが未入力です。'; +$wb['1002'] = 'ユーザー名またはパスワードが正しくありません。'; +$wb['Firewall'] = 'ファイアウォール'; +$wb['Groups'] = 'グループ'; +$wb['groups_description'] = 'システムユーザーグループの編集'; +$wb['Server'] = 'サーバー'; +$wb['Services'] = 'サービス'; +$wb['Config'] = '設定'; +$wb['Server Config'] = 'サーバーの設定'; +$wb['Mail'] = 'メール'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'ウェブ'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'システム'; +$wb['Add user'] = 'ユーザーを追加する'; +$wb['Edit user'] = 'ユーザーを編集する'; +$wb['CP Users'] = 'コントロールパネルユーザー'; +$wb['Add group'] = 'グループを追加する'; +$wb['Edit group'] = 'グループを編集する'; +$wb['Edit server'] = 'サーバーを編集する'; +$wb['Edit Server IP'] = 'サーバーのIPアドレスを編集する'; +$wb['Servers'] = 'サーバー'; +$wb['Sync. Now'] = 'Sync.Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = '言語'; +$wb['New Language'] = '言語を追加する'; +$wb['Export'] = 'エクスポート'; +$wb['Import'] = 'インポート'; +$wb['Language Editor'] = '言語エディタ'; +$wb['Software'] = 'ソフトウェア'; +$wb['Repositories'] = 'リポジトリー'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng new file mode 100644 index 0000000..1f567b6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['tcp_port_txt'] = '許可済みTCPポート'; +$wb['udp_port_txt'] = '許可済みUDPポート'; +$wb['tcp_port_help_txt'] = 'カンマで区切ってください。'; +$wb['udp_port_help_txt'] = 'カンマで区切ってください。'; +$wb['active_txt'] = '有効'; +$wb['firewall_error_unique'] = 'このサーバーでは既にファイアウォールが設定されています。'; +$wb['tcp_ports_error_regex'] = 'TCPポートの設定に文字列は利用できません。利用可能な文字は数字、:、, のみです。'; +$wb['udp_ports_error_regex'] = 'UDPポートの設定に文字列は利用できません。利用可能な文字は数字、:、, のみです。'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng new file mode 100644 index 0000000..738c3e8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ファイアウォール'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['tcp_port_txt'] = '許可済みTCPポート'; +$wb['udp_port_txt'] = '許可済みUDPポート'; +$wb['add_new_record_txt'] = 'ファイアウォールの設定を追加する'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng new file mode 100644 index 0000000..7fa2d9f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = '説明'; +$wb['name_txt'] = 'グループ'; +$wb['name_err'] = 'グループ名は1〜30文字で指定してください。'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng new file mode 100644 index 0000000..ced6ab2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'システムユーザーのグループ'; +$wb['description_txt'] = '説明'; +$wb['name_txt'] = 'グループ'; +$wb['add_new_record_txt'] = '新しいグループを追加する'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng new file mode 100644 index 0000000..c704242 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = '新しい言語を追加する'; +$wb['language_select_txt'] = 'ベースにする言語を選んでください'; +$wb['language_new_txt'] = '新しい言語'; +$wb['language_new_hint_txt'] = '2文字の ISO 639-1 言語コード(http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes を参照してください)'; +$wb['btn_save_txt'] = '新しい言語ファイルセットを作る'; +$wb['btn_cancel_txt'] = '戻る'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng new file mode 100644 index 0000000..a5da880 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = '言語をマージする'; +$wb['list_desc_txt'] = '選んだ言語ファイルと、英語のマスター言語ファイルをマージします。<br />選んだ言語ファイルに欠けている要素がある場合、英語版から抜き出して追加します。'; +$wb['language_select_txt'] = '言語を選んでください'; +$wb['btn_save_txt'] = 'ファイルをマージする'; +$wb['btn_cancel_txt'] = '戻る'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng new file mode 100644 index 0000000..f913997 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = '言語ファイルエディタ'; +$wb['language_select_txt'] = '言語を選んでください'; +$wb['module_txt'] = 'モジュール'; +$wb['lang_file_txt'] = '言語ファイル'; +$wb['btn_save_txt'] = '保存する'; +$wb['btn_cancel_txt'] = '戻る'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng new file mode 100644 index 0000000..fc5d384 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = '言語ファイルをエクスポートする'; +$wb['language_select_txt'] = '言語を選んでください'; +$wb['btn_save_txt'] = '選んだ言語をエクスポートする'; +$wb['btn_cancel_txt'] = '戻る'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng new file mode 100644 index 0000000..4c55514 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = '言語ファイルをインポートする'; +$wb['language_import_txt'] = '言語を選んでください'; +$wb['btn_save_txt'] = '選んだ言語へインポートする'; +$wb['language_overwrite_txt'] = '同名のファイルが存在する場合に上書きする'; +$wb['btn_cancel_txt'] = '戻る'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng new file mode 100644 index 0000000..7fe018e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = '言語ファイルエディタ'; +$wb['language_select_txt'] = '言語を選んでください'; +$wb['module_txt'] = 'モジュール'; +$wb['lang_file_txt'] = '言語ファイル'; +$wb['lang_file_date_txt'] = '最終更新日時'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng new file mode 100644 index 0000000..4a01d4c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'ユーザー名:'; +$wb['password_txt'] = 'パスワード:'; +$wb['function_txt'] = '機能:'; +$wb['username_error_unique'] = '既に登録済みのユーザー名です。別の名前に変更してください。'; +$wb['username_error_empty'] = 'ユーザー名を指定してください。'; +$wb['password_error_empty'] = 'パスワードを指定してください。'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng new file mode 100644 index 0000000..4631fbb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'リモートユーザー'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'ユーザーを追加する'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'ユーザー名'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server.lng new file mode 100644 index 0000000..8eb0ef7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = '設定'; +$wb['server_name_txt'] = 'サーバー名'; +$wb['mail_server_txt'] = 'メールサーバー'; +$wb['web_server_txt'] = 'ウェブサーバー'; +$wb['dns_server_txt'] = 'DNSサーバー'; +$wb['file_server_txt'] = 'ファイルサーバー'; +$wb['db_server_txt'] = 'DBサーバー'; +$wb['vserver_server_txt'] = 'VServerサーバー'; +$wb['active_txt'] = '有効'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng new file mode 100644 index 0000000..5ef759a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'chroot ホーム'; +$wb['jailkit_chroot_app_sections_txt'] = '利用可能アプリケーションセクション'; +$wb['jailkit_chroot_app_programs_txt'] = '利用可能アプリケーション'; +$wb['jailkit_chroot_cron_programs_txt'] = 'cron での利用可能アプリケーション'; +$wb['website_path_txt'] = 'ウェブサイトのパス'; +$wb['website_symlinks_txt'] = 'ウェブサイトのシンボリックリンク'; +$wb['website_basedir_txt'] = 'ウェブサイトのベースディレクトリ'; +$wb['vhost_conf_dir_txt'] = 'バーチャルホスト設定ディレクトリ'; +$wb['vhost_conf_enabled_dir_txt'] = 'バーチャルホスト設定ディレクトリ(有効)'; +$wb['getmail_config_dir_txt'] = 'Getmail 設定ディレクトリ'; +$wb['fastcgi_starter_path_txt'] = 'FastCGIスターターのパス'; +$wb['fastcgi_starter_script_txt'] = 'FastCGIスタータースクリプト'; +$wb['fastcgi_alias_txt'] = 'FastCGIエイリアス'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini のパス'; +$wb['fastcgi_children_txt'] = 'FastCGIの子プロセス数'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI 最大リクエスト数'; +$wb['fastcgi_bin_txt'] = 'FastCGI実行ファイル'; +$wb['module_txt'] = 'モジュール'; +$wb['maildir_path_txt'] = 'メールディレクトリ'; +$wb['homedir_path_txt'] = 'ホームディレクトリ'; +$wb['mailuser_uid_txt'] = 'メールユーザーのUID'; +$wb['mailuser_gid_txt'] = 'メールユーザーのGID'; +$wb['mailuser_name_txt'] = 'メールユーザー名'; +$wb['mailuser_group_txt'] = 'メールユーザーグループ'; +$wb['relayhost_txt'] = 'リレーホスト'; +$wb['relayhost_user_txt'] = 'リレーホストユーザー'; +$wb['relayhost_password_txt'] = 'リレーホストパスワード'; +$wb['mailbox_size_limit_txt'] = 'メールボックスのサイズ'; +$wb['message_size_limit_txt'] = 'メッセージの最大サイズ'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['netmask_txt'] = 'ネットマスク'; +$wb['gateway_txt'] = 'ゲートウェイ'; +$wb['hostname_txt'] = 'ホスト名'; +$wb['nameservers_txt'] = 'ネームサーバー'; +$wb['auto_network_configuration_txt'] = 'ネットワークの設定'; +$wb['ip_address_error_wrong'] = 'IPアドレスの形式が不正です。'; +$wb['netmask_error_wrong'] = 'ネットマスクの形式が不正です。'; +$wb['gateway_error_wrong'] = 'ゲートウェイの形式が不正です。'; +$wb['hostname_error_empty'] = 'ホスト名を指定してください'; +$wb['nameservers_error_empty'] = 'ネームサーバー名を指定してください'; +$wb['config_dir_txt'] = '設定ディレクトリ'; +$wb['init_script_txt'] = 'Cron init スクリプト名'; +$wb['crontab_dir_txt'] = '個々の crontab の設置パス'; +$wb['wget_txt'] = 'wget のパス'; +$wb['web_user_txt'] = 'Apache のユーザー'; +$wb['web_group_txt'] = 'Apache のグループ'; +$wb['security_level_txt'] = 'セキュリティレベル'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng new file mode 100644 index 0000000..c77cfc9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'サーバーの設定'; +$wb['server_name_txt'] = 'サーバー'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng new file mode 100644 index 0000000..db52f24 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['virtualhost_txt'] = 'HTTP の NameVirtualHost を使う'; +$wb['ip_error_wrong'] = 'IPアドレスが不正です。'; +$wb['ip_error_unique'] = '既に登録済みのIPアドレスです。別の値に変更してください。'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng new file mode 100644 index 0000000..7879f51 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IPアドレス'; +$wb['server_id_txt'] = 'サーバー'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['add_new_record_txt'] = 'IPアドレスを追加する'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng new file mode 100644 index 0000000..1fa42e8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'サーバー'; +$wb['server_name_txt'] = 'サーバー名'; +$wb['mail_server_txt'] = 'メール'; +$wb['web_server_txt'] = 'ウェブ'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'ファイルサーバー'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'サーバーを追加する'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng new file mode 100644 index 0000000..5718b75 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ソフトウェアパッケージ'; +$wb['installed_txt'] = '状態'; +$wb['package_title_txt'] = 'パッケージ'; +$wb['package_description_txt'] = '説明'; +$wb['action_txt'] = '操作'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng new file mode 100644 index 0000000..fba63e9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'リポジトリー'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'ユーザー(必要があれば)'; +$wb['repo_password_txt'] = 'パスワード(必要があれば)'; +$wb['active_txt'] = '有効'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng new file mode 100644 index 0000000..a7d06d8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'リポジトリー'; +$wb['active_txt'] = '有効'; +$wb['repo_name_txt'] = 'リポジトリー'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng new file mode 100644 index 0000000..b375280 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ソフトウェアの更新'; +$wb['server_select_txt'] = 'サーバーを選択してください'; +$wb['installed_txt'] = '操作'; +$wb['update_title_txt'] = '更新'; +$wb['version_txt'] = 'バージョン'; +$wb['action_txt'] = '操作'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng new file mode 100644 index 0000000..673ef18 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = '値の変更には細心の注意を払ってください。クライアントが利用中のシステムのプリフィックスは削除しないでください。'; +$wb['dbname_prefix_txt'] = 'データベース名のプリフィックス'; +$wb['dbuser_prefix_txt'] = 'データベースユーザー名のプリフィックス'; +$wb['shelluser_prefix_txt'] = 'Shellユーザー名のプリフィックス'; +$wb['ftpuser_prefix_txt'] = 'FTPユーザー名のプリフィックス'; +$wb['dbname_prefix_error_regex'] = 'データベースのプリフィックスとして不正な値が指定されています。'; +$wb['dbuser_prefix_error_regex'] = 'データベースユーザーのプリフィックスとして不正な値が指定されています。'; +$wb['ftpuser_prefix_error_regex'] = 'FTPユーザーのプリフィックスとして不正な値が指定されています。'; +$wb['shelluser_prefix_error_regex'] = 'Shellユーザーのプリフィックスとして不正な値が指定されています。'; +$wb['dblist_phpmyadmin_link_txt'] = 'データベースの一覧から phpmyadmin へリンクする'; +$wb['mailboxlist_webmail_link_txt'] = 'メールボックスの一覧から webmail へリンクする'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_users.lng b/interface/ispconfig/interface/admin/lib/lang/ja_users.lng new file mode 100644 index 0000000..040c269 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'ユーザー名'; +$wb['username_err'] = 'ユーザー名が長すぎるか、または不正な文字を含んでいます。'; +$wb['username_empty'] = 'ユーザー名を入力してください。'; +$wb['username_unique'] = '既に登録済みのユーザー名です。別の名前を選んでください。'; +$wb['passwort_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['modules_txt'] = 'モジュール'; +$wb['startmodule_txt'] = 'ログイン直後のモジュール'; +$wb['app_theme_txt'] = 'デザイン'; +$wb['typ_txt'] = '種別'; +$wb['active_txt'] = '有効'; +$wb['language_txt'] = '言語'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['unternehmen_txt'] = 'Company'; +$wb['strasse_txt'] = 'Street'; +$wb['ort_txt'] = 'City'; +$wb['plz_txt'] = 'ZIP'; +$wb['land_txt'] = 'Country'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telephone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'グループ'; +$wb['default_group_txt'] = 'デフォルトのグループ'; +$wb['startmodule_err'] = '「ログイン直後のモジュール」は選択した「モジュール」から選んでください。'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng new file mode 100644 index 0000000..2ab8d22 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'ユーザー'; +$wb['username_txt'] = 'ユーザー名'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['ort_txt'] = 'city'; +$wb['add_new_record_txt'] = 'ユーザーを追加する'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl.lng b/interface/ispconfig/interface/admin/lib/lang/nl.lng new file mode 100644 index 0000000..41071ac --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Gebruikersnaam of wachtwoord is leeg.'; +$wb['1002'] = 'Gebruikersnaam of wachtwoord onjuist.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Groepen'; +$wb['groups_description'] = 'Formulier om gebruikers en groepen te wijzigen.'; +$wb['Server'] = 'Services'; +$wb['Server Services'] = 'Services'; +$wb['Services'] = 'Services'; +$wb['Config'] = 'Configureer'; +$wb['Server Config'] = 'Configuratie'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Services per server'; +$wb['Add user'] = 'Nieuwe gebruiker'; +$wb['Edit user'] = 'Wijzig gebruiker'; +$wb['CP Users'] = 'Gebruikers'; +$wb['Add group'] = 'Nieuwe groep'; +$wb['Edit group'] = 'Wijzig groep'; +$wb['Edit server'] = 'Services'; +$wb['Edit Server IP'] = 'IP-adressen'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. nu'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Talen en taal-bestanden'; +$wb['New Language'] = 'Nieuwe taal'; +$wb['Export'] = 'Exporteren'; +$wb['Import'] = 'Importeren'; +$wb['Merge'] = 'Samenvoegen'; +$wb['Language Editor'] = 'Taalbestanden'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Bronnen'; +$wb['Packages'] = 'Pakketten'; +$wb['Updates'] = 'Updates'; +$wb['Remote Users'] = 'API gebruikers'; +$wb['Interface Config'] = 'Omgevingsvariabelen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng new file mode 100644 index 0000000..26001af --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP poorten'; +$wb['udp_port_txt'] = 'Open UDP poorten'; +$wb['tcp_port_help_txt'] = 'Gescheiden door komma'; +$wb['udp_port_help_txt'] = 'Gescheiden door komma'; +$wb['active_txt'] = 'Actief?'; +$wb['firewall_error_unique'] = 'Er bestaat al een firewall record voor deze server.'; +$wb['tcp_ports_error_regex'] = 'Karakter niet toegestaan in tcp poort toewijzing. Toegestane tekens zijn cijfers, : en ,'; +$wb['udp_ports_error_regex'] = 'Karakter niet toegestaan in udp poort toewijzing. Toegestane tekens zijn cijfers, : en ,'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng new file mode 100644 index 0000000..37f7804 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP poorten'; +$wb['udp_port_txt'] = 'Open UDP poorten'; +$wb['add_new_record_txt'] = 'Firewall record toevoegen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng b/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng new file mode 100644 index 0000000..0454a67 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Omschrijving'; +$wb['name_txt'] = 'Groep'; +$wb['name_err'] = 'Groepsnaam moet tussen 1 en 30 karakters bevatten.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng new file mode 100644 index 0000000..43e2729 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Gebruikersgroepen'; +$wb['description_txt'] = 'Omschrijving'; +$wb['name_txt'] = 'Groep'; +$wb['add_new_record_txt'] = 'Nieuwe groep toevoegen'; +$wb['warning_txt'] = '<b>LET OP:</b> Uitgevoerde wijzigingen in deze module kunnen gevolgen hebben voor gebruikers gekoppeld aan deze groepen!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng new file mode 100644 index 0000000..8a5c5db --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Nieuwe taal toevoegen'; +$wb['language_select_txt'] = 'Selecteer basis-teksten vanuit taal'; +$wb['language_new_txt'] = 'Nieuwe taal'; +$wb['btn_save_txt'] = 'Aanmaken'; +$wb['btn_cancel_txt'] = 'Terug'; +$wb['language_new_hint_txt'] = '2 tekens ISO 639-1 taal-code (Zie http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng new file mode 100644 index 0000000..6116371 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Samenvoegen'; +$wb['language_select_txt'] = 'Selecteer taal'; +$wb['btn_save_txt'] = 'Bestanden nu samenvoegen'; +$wb['btn_cancel_txt'] = 'Terug'; +$wb['list_desc_txt'] = 'Laat ontbrekende teksten in de geselecteerde taal aanvullen vanuit de Engelstalige master.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng new file mode 100644 index 0000000..9656b36 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Taalbestand editor'; +$wb['language_select_txt'] = 'Selecteer taal'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Taalbestand'; +$wb['btn_save_txt'] = 'Opslaan'; +$wb['btn_cancel_txt'] = 'Terug'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng new file mode 100644 index 0000000..2c1d78f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Exporteer taalbestand'; +$wb['language_select_txt'] = 'Selecteer taal'; +$wb['btn_save_txt'] = 'Exporteren'; +$wb['btn_cancel_txt'] = 'Terug'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng new file mode 100644 index 0000000..f1d5fa5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Importeer taalbestand'; +$wb['language_import_txt'] = 'Selecteer taalbestand'; +$wb['btn_save_txt'] = 'Importeer het geselecteerde taalbestand'; +$wb['language_overwrite_txt'] = 'Overschrijven indien deze al bestaat?'; +$wb['btn_cancel_txt'] = 'Terug'; +$wb['ignore_version_txt'] = 'Controle ISPConfig versie overslaan?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng new file mode 100644 index 0000000..dc5843a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Taalbestand editor'; +$wb['language_select_txt'] = 'Selecteer taal'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Taalbestand'; +$wb['lang_file_date_txt'] = 'Laatste wijziging'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng new file mode 100644 index 0000000..4f9dc1d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['function_txt'] = 'Toegestaan voor het beheren van de volgende functies/records via de API:'; +$wb['username_error_unique'] = 'Gebruikersnaam moet uniek zijn.'; +$wb['username_error_empty'] = 'Gebruikersnaam mag niet leeg zijn.'; +$wb['password_error_empty'] = 'Wachtwoord mag niet leeg zijn.'; +$wb['password_strength_txt'] = 'Wachtwoord-sterkte'; +$wb['Mail domain functions'] = 'E-mail domeinen'; +$wb['Mail user functions'] = 'E-mail gebruikers/accounts'; +$wb['Mail alias functions'] = 'E-mail aliassen'; +$wb['Mail forward functions'] = 'E-mail doorsturen'; +$wb['Mail catchall functions'] = 'E-mail catch-all'; +$wb['Mail transport functions'] = 'E-mail transport'; +$wb['Mail whitelist functions'] = 'E-mail whitelist'; +$wb['Mail blacklist functions'] = 'E-mail blacklist'; +$wb['Mail spamfilter user functions'] = 'E-mail spamfilter gebruikers'; +$wb['Mail spamfilter policy functions'] = 'E-mail spamfilter policy'; +$wb['Mail fetchmail functions'] = 'E-mail fetchmail'; +$wb['Mail user filter functions'] = 'E-mail filter gebruikers/accounts'; +$wb['Mail filter functions'] = 'E-mail filters'; +$wb['Client functions'] = 'Klanten'; +$wb['Sites cron functions'] = 'Website Cron/taakplanner'; +$wb['Sites database functions'] = 'Website database'; +$wb['Sites FTP-User functions'] = 'Website FTP-gebruikers'; +$wb['Sites Shell-User functions'] = 'Website Shell-gebruikers'; +$wb['Sites Domain functions'] = 'Website domeinnamen'; +$wb['Sites Aliasdomain functions'] = 'Website aliasdomeinen'; +$wb['Sites Subdomain functions'] = 'Website subdomeinen'; +$wb['DNS zone functions'] = 'DNS zones'; +$wb['DNS a functions'] = 'DNS A'; +$wb['DNS aaaa functions'] = 'DNS AAAA'; +$wb['DNS alias functions'] = 'DNS aliassen'; +$wb['DNS cname functions'] = 'DNS CNAME'; +$wb['DNS hinfo functions'] = 'DNS HINFO'; +$wb['DNS mx functions'] = 'DNS MX'; +$wb['DNS ns functions'] = 'DNS NS'; +$wb['DNS ptr functions'] = 'DNS PTR'; +$wb['DNS rp functions'] = 'DNS RP'; +$wb['DNS srv functions'] = 'DNS SRV'; +$wb['DNS txt functions'] = 'DNS TXT'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng new file mode 100644 index 0000000..664ea75 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig API gebruikers'; +$wb['list_desc_txt'] = 'Overzicht van gebruikers die via de ISPConfig-API toegang krijgen tot deze server.'; +$wb['add_new_record_txt'] = 'Nieuwe API-gebruiker toevoegen'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Gebruikersnaam'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server.lng new file mode 100644 index 0000000..f348c79 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'Configuratie details<br /><br />Wijzigen? Zie: Server configuratie'; +$wb['server_name_txt'] = 'Servernaam'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'Database server'; +$wb['vserver_server_txt'] = 'VServer-server'; +$wb['active_txt'] = 'Actief?'; +$wb['mirror_server_id_txt'] = 'Deze server is mirror van server'; +$wb['- None -'] = '- niet van toepassing -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng new file mode 100644 index 0000000..8293bb8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app secties'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applicaties'; +$wb['website_path_txt'] = 'Website pad'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter pad'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Pad'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. aanvragen'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Pad'; +$wb['homedir_path_txt'] = 'Homedir Pad'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Naam'; +$wb['mailuser_group_txt'] = 'Mailuser Groep'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost gebruiker'; +$wb['relayhost_password_txt'] = 'Relayhost wachtoord'; +$wb['mailbox_size_limit_txt'] = 'Schijfruimte limiet e-mailaccount'; +$wb['message_size_limit_txt'] = 'E-mail berichtgrootte limiet'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostnaam'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Netwerk configuratie'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Ongeldige IP-adres indeling.'; +$wb['netmask_error_wrong'] = 'Ongeldige netmasker indeling.'; +$wb['gateway_error_wrong'] = 'Ongeldige gateway indeling.'; +$wb['hostname_error_empty'] = 'Hostnaam is leeg.'; +$wb['nameservers_error_empty'] = 'Nameserver is leeg.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applicaties'; +$wb['config_dir_txt'] = 'Configuratie directory'; +$wb['init_script_txt'] = 'Cron init script naam'; +$wb['crontab_dir_txt'] = 'Pad voor individuele crontabs'; +$wb['wget_txt'] = 'Pad naar wget'; +$wb['web_user_txt'] = 'Apache gebruiker'; +$wb['web_group_txt'] = 'Apache groep'; +$wb['security_level_txt'] = 'Beveiligingsniveau'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND Gebruiker'; +$wb['bind_group_txt'] = 'BIND Groep'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf pad'; +$wb['bind_user_error_empty'] = 'BIND gebruiker is leeg.'; +$wb['bind_group_error_empty'] = 'BIND groep is leeg.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is leeg.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf pad is leeg.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local pad is leeg.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is leeg.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is leeg.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng new file mode 100644 index 0000000..3d376e5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Server configuratie'; +$wb['server_name_txt'] = 'Servernaam'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng new file mode 100644 index 0000000..ef8079a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP-adres (ipv4)'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost activeren?'; +$wb['ip_error_wrong'] = 'Opgegeven IP-adres is ongeldig'; +$wb['ip_error_unique'] = 'Het IP-adres moet uniek zijn.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng new file mode 100644 index 0000000..acbd83e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Server IP-adressen'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['add_new_record_txt'] = 'Nieuw IP-adres toevoegen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng new file mode 100644 index 0000000..05e7aac --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Services per server'; +$wb['server_name_txt'] = 'Servernaam'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'Database server'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Nieuwe server toevoegen'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng new file mode 100644 index 0000000..177e1b8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Software pakketten'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Pakket'; +$wb['package_description_txt'] = 'Omschrijving'; +$wb['action_txt'] = 'Actie'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng new file mode 100644 index 0000000..bd4c931 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Gebruiker (optioneel)'; +$wb['repo_password_txt'] = 'Wachtwoord (optioneel)'; +$wb['active_txt'] = 'Actief?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng new file mode 100644 index 0000000..737e5cf --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Actief?'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng new file mode 100644 index 0000000..7c8dc76 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Software updates'; +$wb['installed_txt'] = 'Actie'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Versie'; +$wb['action_txt'] = 'Actie'; +$wb['server_select_txt'] = 'Selecteer server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng new file mode 100644 index 0000000..6d6d4f9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Let op bij het wijzigen van deze waarden. Verwijder de prefix niet op systemen met meer dan 1 klant.'; +$wb['dbname_prefix_txt'] = 'Databasenaam prefix'; +$wb['dbuser_prefix_txt'] = 'Gebruiker prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP gebruiker prefix'; +$wb['dbname_prefix_error_regex'] = 'Teken niet toegestaan in databasenaam'; +$wb['dbuser_prefix_error_regex'] = 'Teken niet toegestaan in gebruiker prefix'; +$wb['ftpuser_prefix_error_regex'] = 'Teken niet toegestaan in FTP gebruiker prefix'; +$wb['shelluser_prefix_error_regex'] = 'Teken niet toegestaan in Shell gebruiker prefix'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link phpMyAdmin weergeven?'; +$wb['mailboxlist_webmail_link_txt'] = 'Link Webmail weergeven?'; +$wb['webmail_url_txt'] = 'URL naar Webmail'; +$wb['phpmyadmin_url_txt'] = 'URL naar phpMyAdmin'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_users.lng b/interface/ispconfig/interface/admin/lib/lang/nl_users.lng new file mode 100644 index 0000000..4ab2737 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['username_err'] = 'De gebruikersnaam is te lang of bevat ongeldige karakters.'; +$wb['username_empty'] = 'De gebruikersnaam is leeg.'; +$wb['username_unique'] = 'Er bestaat reeds een gebruiker met deze gebruikersnaam.'; +$wb['passwort_txt'] = 'Wachtwoord'; +$wb['modules_txt'] = 'Beschikbare modulen'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['startmodule_txt'] = 'Vervolgmodule na aanmelding'; +$wb['app_theme_txt'] = 'ISPConfig Thema'; +$wb['typ_txt'] = 'Type gebruiker'; +$wb['active_txt'] = 'Actief?'; +$wb['language_txt'] = 'Taal'; +$wb['name_txt'] = 'Naam'; +$wb['vorname_txt'] = 'Voornaam'; +$wb['unternehmen_txt'] = 'Bedrijf'; +$wb['strasse_txt'] = 'Adres'; +$wb['ort_txt'] = 'Plaats'; +$wb['plz_txt'] = 'Postcode'; +$wb['land_txt'] = 'Land'; +$wb['email_txt'] = 'E-mail'; +$wb['url_txt'] = 'Website'; +$wb['telefon_txt'] = 'Telefoon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Gebruiker is lid van groep'; +$wb['default_group_txt'] = 'Standaard groep'; +$wb['startmodule_err'] = 'Module is niet binnen de lijst van beschikbare modulen.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng new file mode 100644 index 0000000..1435934 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Gebruikers'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['name_txt'] = 'Achternaam'; +$wb['vorname_txt'] = 'Voornaam'; +$wb['ort_txt'] = 'Plaats'; +$wb['add_new_record_txt'] = 'Nieuwe gebruiker toevoegen'; +$wb['warning_txt'] = '<b>LET OP:</b> Verander hier geen gegevens. Gebruik daarvoor de functie Wijzig klant/Wijzig reseller onder de Klanten-module van ISPConfig. Het veranderen van gebruikers in deze module kan dataverlies opleveren!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl.lng b/interface/ispconfig/interface/admin/lib/lang/pl.lng new file mode 100644 index 0000000..939bffb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Nazwa użytkownika lub hasło jest puste.'; +$wb['1002'] = 'Nazwa użytkownika lub hasło jest złe.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Grupy'; +$wb['groups_description'] = 'Formularz do edycji grup użytkowników w systemie.'; +$wb['Server'] = 'Serwer'; +$wb['Services'] = 'Serwisy'; +$wb['Config'] = 'Konfiguracja'; +$wb['Server Config'] = 'Konfiguracja serwera'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Dodaj użytkownika'; +$wb['Edit user'] = 'Edytuj uzytkownika'; +$wb['CP Users'] = 'Użytkownicy'; +$wb['Add group'] = 'Dodaj grupę'; +$wb['Edit group'] = 'Edytuj grupę'; +$wb['Edit server'] = 'Edytuj serwer'; +$wb['Edit Server IP'] = 'Edytuj IP serwera'; +$wb['Servers'] = 'Serwery'; +$wb['Sync. Now'] = 'Synchronizuj teraz.'; +$wb['DB Sync.'] = 'Synchronizacja bazy danych.'; +$wb['Languages'] = 'Języki'; +$wb['New Language'] = 'Nowy język'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Edytor języków'; +$wb['Software'] = 'Oprogramowanie'; +$wb['Repositories'] = 'Repozytoria'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng new file mode 100644 index 0000000..a216af6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['tcp_port_txt'] = 'Otwarty port TCP'; +$wb['udp_port_txt'] = 'Otwarty port UDP'; +$wb['tcp_port_help_txt'] = 'Odziel przecinkiem'; +$wb['udp_port_help_txt'] = 'Odziel przecinkiem'; +$wb['active_txt'] = 'Active'; +$wb['firewall_error_unique'] = 'Istnieje już wpis firewall-a dla tego serwera.'; +$wb['tcp_ports_error_regex'] = 'Znak nie jest dozwolony w formacie portu TCP. Dozwolone znaki to liczby, : oraz ,.'; +$wb['udp_ports_error_regex'] = 'Znak nie jest dozwolony w formacie portu UDP. Dozwolone znaki to liczby, : oraz ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng new file mode 100644 index 0000000..f7e1640 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['tcp_port_txt'] = 'Otwarte porty TCP'; +$wb['udp_port_txt'] = 'Otwarte porty UDP'; +$wb['add_new_record_txt'] = 'Dodaj wpis Firewall-a'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng b/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng new file mode 100644 index 0000000..b3c8b9c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Opis'; +$wb['name_txt'] = 'Grupa'; +$wb['name_err'] = 'Nazwa grupy musi mieć od 1 do 30 znaków.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng new file mode 100644 index 0000000..14565b0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Grupy użytkowników systemowych'; +$wb['description_txt'] = 'Opis'; +$wb['name_txt'] = 'Grupa'; +$wb['add_new_record_txt'] = 'Dodaj nową grupę'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng new file mode 100644 index 0000000..82e42ef --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Dodaj nowy język'; +$wb['language_select_txt'] = 'Wybierz domyślny język'; +$wb['language_new_txt'] = 'Nowy język'; +$wb['language_new_hint_txt'] = '2 znakowe kodowanie języka ISO 639-1 (Zobacz http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Utwórz nowy zbiór plików z językami'; +$wb['btn_cancel_txt'] = 'Wróć'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng new file mode 100644 index 0000000..0096c69 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Połącz język'; +$wb['list_desc_txt'] = 'Połącz pliki wybranego języka z plikiami języka angielskiego. <br />Ta opcja dodaje do wybranego języka brakujące zmienne językowe z plików języka angielskiego.'; +$wb['language_select_txt'] = 'Wybierz język'; +$wb['btn_save_txt'] = 'Połącz pliki teraz'; +$wb['btn_cancel_txt'] = 'Wróć'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng new file mode 100644 index 0000000..3a5e706 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Edytor plików języka'; +$wb['language_select_txt'] = 'Wybierz język'; +$wb['module_txt'] = 'Moduł'; +$wb['lang_file_txt'] = 'Plik języka'; +$wb['btn_save_txt'] = 'Zapisz'; +$wb['btn_cancel_txt'] = 'Wróć'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng new file mode 100644 index 0000000..82666fc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Exportuj pliki języka'; +$wb['language_select_txt'] = 'Wybierz język'; +$wb['btn_save_txt'] = 'Exportuj pliki wybranego języka'; +$wb['btn_cancel_txt'] = 'Wróć'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng new file mode 100644 index 0000000..83e9881 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Importuj plik języka'; +$wb['language_import_txt'] = 'Wybierz plik języka'; +$wb['btn_save_txt'] = 'Importuj wybrane pliki języka'; +$wb['language_overwrite_txt'] = 'Nadpisz plik jeśli istnieje.'; +$wb['btn_cancel_txt'] = 'Wróć'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng new file mode 100644 index 0000000..68f710b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Edytor plików języka'; +$wb['language_select_txt'] = 'Wyberz język'; +$wb['module_txt'] = 'Moduł'; +$wb['lang_file_txt'] = 'Plik języka'; +$wb['lang_file_date_txt'] = 'Ostatnia modyfikacja'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server.lng new file mode 100644 index 0000000..c027c0b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'Konfiguracja'; +$wb['server_name_txt'] = 'Nazwa serwera'; +$wb['mail_server_txt'] = 'Serwer poczty E-Mail'; +$wb['web_server_txt'] = 'Serwer WWW'; +$wb['dns_server_txt'] = 'Serwer DNS'; +$wb['file_server_txt'] = 'Serwer plików'; +$wb['db_server_txt'] = 'Serwer bazy danych'; +$wb['vserver_server_txt'] = 'Witrualny serwer'; +$wb['active_txt'] = 'Aktywny'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng new file mode 100644 index 0000000..76c3589 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Adres root-a Jailkit'; +$wb['jailkit_chroot_app_sections_txt'] = 'Sekcje aplikacji root-a Jailkit'; +$wb['jailkit_chroot_app_programs_txt'] = 'Ścieżki aplikacji root-a Jailkit'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Aplikacje cron root-a Jailkit'; +$wb['website_path_txt'] = 'Adres strony WWW'; +$wb['website_symlinks_txt'] = 'Symulowany link strony WWW'; +$wb['website_basedir_txt'] = 'Ścieżka bazowa strony WWW'; +$wb['vhost_conf_dir_txt'] = 'Ścieżka do konfiguracyji wirtualnego serwera'; +$wb['vhost_conf_enabled_dir_txt'] = 'Ścieżka do aktywnej konfiguracyji Vhost'; +$wb['getmail_config_dir_txt'] = 'Ścieżka do konfiguracyji Getmail'; +$wb['fastcgi_starter_path_txt'] = 'Adres startowy FastCGI'; +$wb['fastcgi_starter_script_txt'] = 'Startowy skrypt FastCGI'; +$wb['fastcgi_alias_txt'] = 'Alias FastCGI'; +$wb['fastcgi_phpini_path_txt'] = 'Ścieżka do php.ini FastCGI'; +$wb['fastcgi_children_txt'] = 'Ilość dzieci FastCGI'; +$wb['fastcgi_max_requests_txt'] = 'Maksymalna ilość zadań FastCGI'; +$wb['fastcgi_bin_txt'] = 'Kosz FastCGI'; +$wb['module_txt'] = 'Moduł'; +$wb['maildir_path_txt'] = 'Adres poczty e-mail'; +$wb['homedir_path_txt'] = 'Bazowy adres poczty e-mail'; +$wb['mailuser_uid_txt'] = 'UID użytkownika e-mail'; +$wb['mailuser_gid_txt'] = 'GID użytkownika e-mail'; +$wb['mailuser_name_txt'] = 'Nazwa użytkownika e-mail'; +$wb['mailuser_group_txt'] = 'Grupa użytkownika e-mail'; +$wb['relayhost_txt'] = 'Adres Relayhost'; +$wb['relayhost_user_txt'] = 'Użytkownik Relayhost'; +$wb['relayhost_password_txt'] = 'Hasło Relayhost'; +$wb['mailbox_size_limit_txt'] = 'Maksymalna wielkość skrzynki pocztowej'; +$wb['message_size_limit_txt'] = 'Maksymalna wielkość wiadomości'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['netmask_txt'] = 'Maska'; +$wb['gateway_txt'] = 'Bramka'; +$wb['hostname_txt'] = 'Nazwa'; +$wb['nameservers_txt'] = 'Nazwa serwera'; +$wb['auto_network_configuration_txt'] = 'Konfiguracja sieci'; +$wb['ip_address_error_wrong'] = 'Nieprawidłowy format adresu IP.'; +$wb['netmask_error_wrong'] = 'Nieprawidłowy format maski.'; +$wb['gateway_error_wrong'] = 'Nieprawidłowy format bramki.'; +$wb['hostname_error_empty'] = 'Nazwa jest pusta.'; +$wb['nameservers_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['config_dir_txt'] = 'Katalog konfiguracji'; +$wb['init_script_txt'] = 'Nazwa skryptu inicjującego Crona'; +$wb['crontab_dir_txt'] = 'Ścieżka do indywidualnych crontabs'; +$wb['wget_txt'] = 'Ścieżka do wget'; +$wb['web_user_txt'] = 'Użytkownik Apache'; +$wb['web_group_txt'] = 'Grupa Apache'; +$wb['security_level_txt'] = 'Security level'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng new file mode 100644 index 0000000..f9e8dcf --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Konfiguracja serwera'; +$wb['server_name_txt'] = 'Serwer'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng new file mode 100644 index 0000000..41e0b94 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['virtualhost_txt'] = 'Nazwa wirtualnego hosta HTTP'; +$wb['ip_error_wrong'] = 'Adres IP jest niepoprawny'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng new file mode 100644 index 0000000..6ab81c1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Adresy IP'; +$wb['server_id_txt'] = 'Serwer'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['add_new_record_txt'] = 'Dodaj nowy adres IP'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng new file mode 100644 index 0000000..f61ba5f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Serwer'; +$wb['server_name_txt'] = 'Nazwa'; +$wb['mail_server_txt'] = 'E-mail'; +$wb['web_server_txt'] = 'WWW'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Plik'; +$wb['db_server_txt'] = 'Baza danych'; +$wb['vserver_server_txt'] = 'Wirtualny serwer'; +$wb['add_new_record_txt'] = 'Dodaj nowy serwer'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng new file mode 100644 index 0000000..9549333 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Paczki z oprogramowaniem'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Paczka'; +$wb['package_description_txt'] = 'Opis'; +$wb['action_txt'] = 'Akcja'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng new file mode 100644 index 0000000..d11a1b3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repozytorium'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Użytkownik (Opcjonalnie)'; +$wb['repo_password_txt'] = 'Hasło (Opcjonalnie)'; +$wb['active_txt'] = 'Aktywny'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng new file mode 100644 index 0000000..7ca6af9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repozytoria'; +$wb['active_txt'] = 'Aktywny'; +$wb['repo_name_txt'] = 'Repozytoria'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng new file mode 100644 index 0000000..e38bdf8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aktualizacje oprogramowania'; +$wb['server_select_txt'] = 'Wybierz serwer'; +$wb['installed_txt'] = 'Akcja'; +$wb['update_title_txt'] = 'Aktualizacja'; +$wb['version_txt'] = 'Wersja'; +$wb['action_txt'] = 'Akcja'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng new file mode 100644 index 0000000..adaffca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edytuj te wartości ostrożnie! Nie usuwaj prefiksów w systemie w więcej niż jednym kliencie.'; +$wb['dbname_prefix_txt'] = 'Prefiks nazwy bazy danych'; +$wb['dbuser_prefix_txt'] = 'Prefiks użytkownika bazy danych'; +$wb['shelluser_prefix_txt'] = 'Prefiks użytkownika shell'; +$wb['ftpuser_prefix_txt'] = 'Prefiks uzytkownika FTP'; +$wb['dbname_prefix_error_regex'] = 'Znak nie jest dozwolony w prefiksie nazwy bazy danych.'; +$wb['dbuser_prefix_error_regex'] = 'Znak nie jest dozwolony w prefiksie nazwy użytkownika bazy danych.'; +$wb['ftpuser_prefix_error_regex'] = 'Znak nie jest dozwolony w prefiksie nazwy użytkownika ftp.'; +$wb['shelluser_prefix_error_regex'] = 'Znak nie jest dozwolony w prefiksie nazwy użytkownika shell.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Adres do phpMyAdmin-a w liście baz danych'; +$wb['mailboxlist_webmail_link_txt'] = 'Adres do poczty e-mail w liście skrzynek pocztowych'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_users.lng b/interface/ispconfig/interface/admin/lib/lang/pl_users.lng new file mode 100644 index 0000000..3b2472d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['username_err'] = 'Nazwa użytkownika jest za długa lub zawiera niedozwolone znaki.'; +$wb['username_empty'] = 'Nazwa użytkownika jest pusta.'; +$wb['username_unique'] = 'Istnieje już użytkownik o takiej nazwie.'; +$wb['passwort_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['modules_txt'] = 'Moduł'; +$wb['startmodule_txt'] = 'Moduł startowy'; +$wb['app_theme_txt'] = 'Styl'; +$wb['typ_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktywny'; +$wb['language_txt'] = 'Język'; +$wb['name_txt'] = 'Nazwa'; +$wb['vorname_txt'] = 'Imię'; +$wb['unternehmen_txt'] = 'Firma'; +$wb['strasse_txt'] = 'Ulica'; +$wb['ort_txt'] = 'Miasto'; +$wb['plz_txt'] = 'Kod pocztowy'; +$wb['land_txt'] = 'Państwowy'; +$wb['email_txt'] = 'E-mail'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Groupy'; +$wb['default_group_txt'] = 'Domyślna grupa'; +$wb['startmodule_err'] = 'Modułu startowego nie ma wśród modułów.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng new file mode 100644 index 0000000..b628eae --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Użytkownicy'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['name_txt'] = 'Nazwa'; +$wb['vorname_txt'] = 'Imię'; +$wb['ort_txt'] = 'Miasto'; +$wb['add_new_record_txt'] = 'Dodaj nowego użytkownika'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/pt.lng b/interface/ispconfig/interface/admin/lib/lang/pt.lng new file mode 100644 index 0000000..81bcba0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt.lng @@ -0,0 +1,41 @@ +<?php +$wb['1001'] = 'Por favor, preencha o nome do utilizador e senha!'; +$wb['1002'] = 'Nome do utilizador ou senha inválida(o)!'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Grupos'; +$wb['groups_description'] = 'Formulário para edição dos Grupos de utilizadors do sistema.'; +$wb['Server'] = 'Servidor'; +$wb['Services'] = 'Serviços'; +$wb['Config'] = 'Configuração'; +$wb['Server Config'] = 'Configuração do Servidor'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Sistema'; +$wb['Add user'] = 'Adicionar Utilizador '; +$wb['Edit user'] = 'Editar Utilizador '; +$wb['CP Users'] = 'Utilizadores'; +$wb['Add group'] = 'Adicionar Grupo'; +$wb['Edit group'] = 'Editar Grupo'; +$wb['Edit server'] = 'Editar Servidor'; +$wb['Edit Server IP'] = 'Editar Endereço IP do Servidor'; +$wb['Servers'] = 'Servidores'; +$wb['Sync. Now'] = 'Sincronizar agora'; +$wb['DB Sync.'] = 'Sincronizar Base de Dados'; +$wb['Languages'] = 'Idiomas'; +$wb['New Language'] = 'Novo Idioma'; +$wb['Export'] = 'Exportar'; +$wb['Import'] = 'Importar'; +$wb['Language Editor'] = 'Editor de Idiomas'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositórios'; +$wb['Server Services'] = 'Serviços do Servidor'; +$wb['Interface Config'] = 'Configuração da Interface'; +$wb['Packages'] = 'Pacotes'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Mesclar'; +$wb['Remote Users'] = 'Utilizadores Remotos'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng new file mode 100644 index 0000000..9c1fb78 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng @@ -0,0 +1,12 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; +$wb['tcp_port_help_txt'] = 'Separado por vírgula'; +$wb['udp_port_help_txt'] = 'Separado por vírgula'; +$wb['active_txt'] = 'Activo'; +$wb['firewall_error_unique'] = 'Já existe uma regra de firewall para este servidor!'; +$wb['tcp_ports_error_regex'] = 'Caractere não permitido para definição de porta tcp. Apenas são permitidos números, : e ,.'; +$wb['udp_ports_error_regex'] = 'Caractere não permitido para definição de porta udp. Apenas são permitidos números, : e ,.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng new file mode 100644 index 0000000..d1dd50b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; +$wb['add_new_record_txt'] = 'Adicionar registo de firewall'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng b/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng new file mode 100644 index 0000000..ee75776 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng @@ -0,0 +1,6 @@ +<?php +$wb['description_txt'] = 'Descrição'; +$wb['name_txt'] = 'Grupo'; +$wb['name_err'] = 'O Nome do Grupo deve conter de 1 a 30 caracteres!'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng new file mode 100644 index 0000000..6e61aef --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Grupos de utilizadors do sistema'; +$wb['description_txt'] = 'Descrição'; +$wb['name_txt'] = 'Grupo'; +$wb['add_new_record_txt'] = 'Adicionar Grupo'; +$wb['warning_txt'] = '<b>AVISO:</b> Não modifique ou edite qualquer configuração de utilizador aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar utilizadors e grupos aqui pode ocasionar perda de dados!'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng new file mode 100644 index 0000000..fb1a41a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Adicionar Idioma'; +$wb['language_select_txt'] = 'Seleccione o idioma base'; +$wb['language_new_txt'] = 'Novo Idioma'; +$wb['language_new_hint_txt'] = '2 letras código ISO 639-1 (Veja http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Criar um novo conjunto de idioma'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng new file mode 100644 index 0000000..54f44d0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mesclar Idioma'; +$wb['list_desc_txt'] = 'Mesclar o ficheiro de idioma seleccionado com o ficheiro de idioma principal (em inglês). <br />Isto permite completar qualquer falha de tradução, com o ficheiro principal original em inglês.'; +$wb['language_select_txt'] = 'Seleccionar Idioma'; +$wb['btn_save_txt'] = 'Mesclar ficheiros agora'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng new file mode 100644 index 0000000..0c6e29a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Editor de Ficheiros de Idioma'; +$wb['language_select_txt'] = 'Seleccione o idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Ficheiro de Idioma'; +$wb['btn_save_txt'] = 'Guardar'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng new file mode 100644 index 0000000..b4630e5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Exportar ficheiros de idioma'; +$wb['language_select_txt'] = 'Seleccione o idioma'; +$wb['btn_save_txt'] = 'Exportar idioma seleccionado para um ficheiro'; +$wb['btn_cancel_txt'] = 'Voltar'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng new file mode 100644 index 0000000..0d0967b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Importar ficheiro de idioma'; +$wb['language_import_txt'] = 'Procurar ficheiro de idioma'; +$wb['btn_save_txt'] = 'Importar Ficheiro de Idioma Seleccionado'; +$wb['language_overwrite_txt'] = 'Sobre-escrever o ficheiro se existir.'; +$wb['btn_cancel_txt'] = 'Voltar'; +$wb['ignore_version_txt'] = 'Ignorar verificação da versão do ISPConfig'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng new file mode 100644 index 0000000..649cd9d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Editor de ficheiro de idioma'; +$wb['language_select_txt'] = 'Seleccione o idioma'; +$wb['module_txt'] = 'Módulo'; +$wb['lang_file_txt'] = 'Arquido de Idioma'; +$wb['lang_file_date_txt'] = 'Ultima Modificação'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng new file mode 100644 index 0000000..1db8400 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng @@ -0,0 +1,43 @@ +<?php +$wb['username_txt'] = 'Nome do utilizador:'; +$wb['password_txt'] = 'Senha:'; +$wb['function_txt'] = 'Funções:'; +$wb['username_error_unique'] = 'O nome de utilizador deve ser único'; +$wb['username_error_empty'] = 'O nome de utilizador não pode estar em branco'; +$wb['password_error_empty'] = 'A senha não pode estar em branco'; +$wb['password_strength_txt'] = 'Segurança da senha:'; +$wb['Mail domain functions'] = 'Funções de domínio de correio'; +$wb['Mail user functions'] = 'Funções de utilizador de correio'; +$wb['Mail alias functions'] = 'Funções de aliases de correio'; +$wb['Mail forward functions'] = 'Funções de encaminhamento de correio'; +$wb['Mail catchall functions'] = 'Funções de catch-all de correio'; +$wb['Mail transport functions'] = 'Funções de transporte de correio'; +$wb['Mail whitelist functions'] = 'Funções de lista branca de correio'; +$wb['Mail blacklist functions'] = 'Funções de lista negra de correio'; +$wb['Mail spamfilter user functions'] = 'Funções de spamfilter de utilizador de correio'; +$wb['Mail spamfilter policy functions'] = 'Funções de política de spamfilter de correio'; +$wb['Mail fetchmail functions'] = 'Funções de fetchmail'; +$wb['Mail user filter functions'] = 'Funções de filtro de correio de utilizador'; +$wb['Mail filter functions'] = 'Funções de filtro de correio'; +$wb['Client functions'] = 'Funções de cliente'; +$wb['Sites cron functions'] = 'Funções de cron (Sites)'; +$wb['Sites database functions'] = 'Funções de Base de Dados (Sites)'; +$wb['Sites FTP-User functions'] = 'Funções de Utilizadores FTP (Sites)'; +$wb['Sites Shell-User functions'] = 'Funções de Utilizadores de Shell (Sites)'; +$wb['Sites Domain functions'] = 'Funções de Domínio (Sites)'; +$wb['Sites Aliasdomain functions'] = 'Função de Aliasdomain (Sites)'; +$wb['Sites Subdomain functions'] = 'Função de Subdomain (Sites)'; +$wb['DNS zone functions'] = 'Funções de Zona DNS'; +$wb['DNS a functions'] = 'Funções de a DNS'; +$wb['DNS aaaa functions'] = 'Funções de aaaa DNS'; +$wb['DNS alias functions'] = 'Funções de alias DNS'; +$wb['DNS cname functions'] = 'Funções de cname DNS'; +$wb['DNS hinfo functions'] = 'Funções de hinfo DNS'; +$wb['DNS mx functions'] = 'Funções de mx DNS'; +$wb['DNS ns functions'] = 'Funções de ns DNS'; +$wb['DNS ptr functions'] = 'Funções de ptr DNS'; +$wb['DNS rp functions'] = 'Funções de rp DNS'; +$wb['DNS srv functions'] = 'Funções de srv DNS'; +$wb['DNS txt functions'] = 'Funções de txt DNS'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng new file mode 100644 index 0000000..850b5ed --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Utilizadores Remotos'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Adicionar Utilizador'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Nome do utilizador'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server.lng new file mode 100644 index 0000000..a7cc7cb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server.lng @@ -0,0 +1,14 @@ +<?php +$wb['config_txt'] = 'Configuração'; +$wb['server_name_txt'] = 'Nome do Servidor'; +$wb['mail_server_txt'] = 'Servidor de Mail'; +$wb['web_server_txt'] = 'Servidor Web'; +$wb['dns_server_txt'] = 'Servidor DNS'; +$wb['file_server_txt'] = 'Servidor de Ficheiros'; +$wb['db_server_txt'] = 'Servidor de Base de Dados'; +$wb['vserver_server_txt'] = 'Servidor VServer'; +$wb['active_txt'] = 'Activado'; +$wb['mirror_server_id_txt'] = 'É um espelho de servidor'; +$wb['- None -'] = '- Não -'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng new file mode 100644 index 0000000..8c281b9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng @@ -0,0 +1,69 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Raiz do Chroot Jailkit'; +$wb['jailkit_chroot_app_sections_txt'] = 'Aplicações Jailkit chroot (Sessões)'; +$wb['jailkit_chroot_app_programs_txt'] = 'Aplicações Jailkit em ambiente chroot'; +$wb['website_path_txt'] = 'Pasta do Website'; +$wb['website_symlinks_txt'] = 'Website symlinks: link simbólico'; +$wb['website_basedir_txt'] = 'Website basedir: pasta base '; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost pasta de configuração activo'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI: Pasta inicial'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI: Script inicial'; +$wb['fastcgi_alias_txt'] = 'FastCGI: Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI: Pasta do php.ini '; +$wb['fastcgi_children_txt'] = 'FastCGI: Filhos'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI: Requisições máximas'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Módulo'; +$wb['maildir_path_txt'] = 'Pasta do Maildir'; +$wb['homedir_path_txt'] = 'Pasta Home'; +$wb['mailuser_uid_txt'] = 'UID utilizador de email'; +$wb['mailuser_gid_txt'] = 'GID utilizador de email'; +$wb['mailuser_name_txt'] = 'Nome utilizador de email'; +$wb['mailuser_group_txt'] = 'Grupo utilizador de email'; +$wb['relayhost_txt'] = 'Host Relay'; +$wb['relayhost_user_txt'] = 'Utilizador do Host Relay'; +$wb['relayhost_password_txt'] = 'Senha do Host Relay'; +$wb['mailbox_size_limit_txt'] = 'Tamanho máximo da Caixa Postal'; +$wb['message_size_limit_txt'] = 'Tamanho máximo de mensagem'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['netmask_txt'] = 'Máscara de Rede'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Nome do Host'; +$wb['nameservers_txt'] = 'Servidores DNS'; +$wb['auto_network_configuration_txt'] = 'Configuração de Rede'; +$wb['ip_address_error_wrong'] = 'Formato do Endereço IP inválido!'; +$wb['netmask_error_wrong'] = 'Formato da Máscara de Rede inválido!'; +$wb['gateway_error_wrong'] = 'Gateway inválido!'; +$wb['hostname_error_empty'] = 'Por favor, entre com o nome do Host.'; +$wb['nameservers_error_empty'] = 'Por favor, entre com o Servidor DNS.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Cron de aplicações Jailkit em ambiente chroot'; +$wb['config_dir_txt'] = 'Pasta de configuração'; +$wb['init_script_txt'] = 'Cron init nome do script'; +$wb['crontab_dir_txt'] = 'Pasta para crontabs individuais'; +$wb['wget_txt'] = 'Pasta para o wget'; +$wb['web_user_txt'] = 'Utilizador Apache'; +$wb['web_group_txt'] = 'Grupo Apache'; +$wb['security_level_txt'] = 'Nível de Segurança'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'Utilizador BIND'; +$wb['bind_group_txt'] = 'Groupo BIND'; +$wb['bind_zonefiles_dir_txt'] = 'Pasta de ficheiros de zona do BIND'; +$wb['named_conf_path_txt'] = 'Pasta do BIND named.conf'; +$wb['bind_user_error_empty'] = 'Utilizador do BIND está em branco.'; +$wb['bind_group_error_empty'] = 'Grupo do BIND está em branco.'; +$wb['bind_zonefiles_dir_error_empty'] = 'Pasta de ficheiros de zona está em branco.'; +$wb['named_conf_path_error_empty'] = 'Pasta do BIND named.conf.'; +$wb['named_conf_local_path_error_empty'] = 'Pasta do BIND named.conf.local está em branco.'; +$wb['mail_filter_syntax_txt'] = 'Sintaxe do Mailfilter'; +$wb['pop3_imap_daemon_txt'] = 'Daemon POP3/IMAP'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir está em branco.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride está em branco.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng new file mode 100644 index 0000000..551867d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Configuração do Servidor'; +$wb['server_name_txt'] = 'Servidor'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng new file mode 100644 index 0000000..3fab263 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['virtualhost_txt'] = 'Nome VirtualHost HTTP'; +$wb['ip_error_wrong'] = 'Endereço IP inválido!'; +$wb['ip_error_unique'] = 'O endereço IP deve ser único'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng new file mode 100644 index 0000000..a9c4ffe --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Endereço IP'; +$wb['server_id_txt'] = 'Servidor'; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['add_new_record_txt'] = 'Adicionar Endereço IP'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng new file mode 100644 index 0000000..e3c3c8a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'Nome'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Ficheiros'; +$wb['db_server_txt'] = 'Bases de Dados'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Adicionar Servidor'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng new file mode 100644 index 0000000..cba1c69 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Pacotes de Software'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Pacote'; +$wb['package_description_txt'] = 'Descrição'; +$wb['action_txt'] = 'Acção'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng new file mode 100644 index 0000000..257e0b5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng @@ -0,0 +1,8 @@ +<?php +$wb['repo_name_txt'] = 'Repositório'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Utilizador (opcional)'; +$wb['repo_password_txt'] = 'Senha (opcional)'; +$wb['active_txt'] = 'Activo'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng new file mode 100644 index 0000000..5b60ee2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Repositório'; +$wb['active_txt'] = 'Activo'; +$wb['repo_name_txt'] = 'Repositório'; +$wb['repo_url_txt'] = 'URL'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng new file mode 100644 index 0000000..163731b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Actualizações de Programas'; +$wb['server_select_txt'] = 'Seleccione o servidor'; +$wb['installed_txt'] = 'Acções'; +$wb['update_title_txt'] = 'Actualizar'; +$wb['version_txt'] = 'Versão'; +$wb['action_txt'] = 'Acção'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng new file mode 100644 index 0000000..9a662a9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng @@ -0,0 +1,16 @@ +<?php +$wb['warning'] = 'Edite estes valores com cuidado! Não remova os prefixos em um sistema com mais de um cliente!!'; +$wb['dbname_prefix_txt'] = 'Prefixo Nome da Base de Dados'; +$wb['dbuser_prefix_txt'] = 'Prefixo Utilizador da Base de Dados'; +$wb['shelluser_prefix_txt'] = 'Prefixo Utilizador de Shell'; +$wb['ftpuser_prefix_txt'] = 'Prefixo Utilizador FTP'; +$wb['dbname_prefix_error_regex'] = 'Caractere não permitido para o prefixo do nome da Base de Dados!'; +$wb['dbuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Utilizador da Base de Dados!'; +$wb['ftpuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Utilizador FTP!'; +$wb['shelluser_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Utilizador Shell!'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link para phpmyadmin'; +$wb['mailboxlist_webmail_link_txt'] = 'Link para o webmail'; +$wb['webmail_url_txt'] = 'URL do Webmail'; +$wb['phpmyadmin_url_txt'] = 'URL do PHPMyAdmin'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_users.lng b/interface/ispconfig/interface/admin/lib/lang/pt_users.lng new file mode 100644 index 0000000..fdf07aa --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_users.lng @@ -0,0 +1,29 @@ +<?php +$wb['username_txt'] = 'Utilizador '; +$wb['username_err'] = 'O Nome do utilizador é muito longo ou contém caracteres inválidos!'; +$wb['username_empty'] = 'Por favor, entre com um nome de utilizador .'; +$wb['username_unique'] = 'Já existe um utilizador com este nome!'; +$wb['passwort_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança da Senha'; +$wb['modules_txt'] = 'Módulos'; +$wb['startmodule_txt'] = 'Módulo Inicial'; +$wb['app_theme_txt'] = 'Tema'; +$wb['typ_txt'] = 'Tipo'; +$wb['active_txt'] = 'Activo'; +$wb['language_txt'] = 'Idioma'; +$wb['name_txt'] = 'Nome'; +$wb['vorname_txt'] = 'Sobrenome'; +$wb['unternehmen_txt'] = 'Empresa'; +$wb['strasse_txt'] = 'Endereço'; +$wb['ort_txt'] = 'Cidade'; +$wb['plz_txt'] = 'Cod.Postal'; +$wb['land_txt'] = 'País'; +$wb['email_txt'] = 'E-mail'; +$wb['url_txt'] = 'Site'; +$wb['telefon_txt'] = 'Telefone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Grupos'; +$wb['default_group_txt'] = 'Grupo Padrão'; +$wb['startmodule_err'] = 'O módulo inicial não está contido nos módulos.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng new file mode 100644 index 0000000..6ebec0a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Utilizadores'; +$wb['username_txt'] = 'Nome de Utilizador '; +$wb['name_txt'] = 'Nome'; +$wb['vorname_txt'] = 'Sobrenome'; +$wb['ort_txt'] = 'Cidade'; +$wb['add_new_record_txt'] = 'Adicionar Utilizador'; +$wb['warning_txt'] = '<b>AVISO:</b> Não modifique ou edite qualquer configuração de utilizador aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar utilizadors e grupos aqui pode resultar na perda de dados!'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ro.lng b/interface/ispconfig/interface/admin/lib/lang/ro.lng new file mode 100644 index 0000000..77d07ab --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Utilizator sau parola necompletata'; +$wb['1002'] = 'utilizator sau parola gresite'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Grupuri'; +$wb['groups_description'] = 'Form pentru editare systemuser grupuri.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Servicii'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Add user'; +$wb['Edit user'] = 'Edit user'; +$wb['CP Users'] = 'CP Users'; +$wb['Add group'] = 'Add grup'; +$wb['Edit group'] = 'Edit group'; +$wb['Edit server'] = 'Edit server'; +$wb['Edit Server IP'] = 'Edit Server IP'; +$wb['Servers'] = 'Servere'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Limba'; +$wb['New Language'] = 'Limba noua'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = ' Editor Limba'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repo'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng new file mode 100644 index 0000000..e626345 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['tcp_port_help_txt'] = 'Separated by comma'; +$wb['udp_port_help_txt'] = 'Separated by comma'; +$wb['active_txt'] = 'Active'; +$wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng new file mode 100644 index 0000000..24a34be --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['add_new_record_txt'] = 'Add Firewall record'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng new file mode 100644 index 0000000..61c3dc5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['name_err'] = 'Group must be min 1, max 30 Chars.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng new file mode 100644 index 0000000..f1d8e2c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Systemuser groups'; +$wb['description_txt'] = 'Description'; +$wb['name_txt'] = 'Group'; +$wb['add_new_record_txt'] = 'Add new Group'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng new file mode 100644 index 0000000..dc6b2d1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Add new language'; +$wb['language_select_txt'] = 'Select language basis'; +$wb['language_new_txt'] = 'New language'; +$wb['language_new_hint_txt'] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Create new language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng new file mode 100644 index 0000000..db7c05b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Merge language'; +$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng new file mode 100644 index 0000000..4c50e88 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng new file mode 100644 index 0000000..f45d47b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Export language files'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng new file mode 100644 index 0000000..fefae80 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Import e file limba'; +$wb['language_import_txt'] = 'Selecteaza file limba'; +$wb['btn_save_txt'] = 'Import file limba selectata'; +$wb['language_overwrite_txt'] = 'suprascrie file, daca exista'; +$wb['btn_cancel_txt'] = 'inapoi'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng new file mode 100644 index 0000000..1c784ed --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['lang_file_date_txt'] = 'Last modify'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng new file mode 100644 index 0000000..56c6fac --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = "Remote Users"; +$wb['list_desc_txt'] = ""; +$wb['add_new_record_txt'] = "Add new user"; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = "Username"; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server.lng new file mode 100644 index 0000000..1b42f22 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'config'; +$wb['server_name_txt'] = 'Servername'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['active_txt'] = 'Active'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng new file mode 100644 index 0000000..36899fd --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['website_path_txt'] = 'Website path'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Network Configuration'; +$wb['ip_address_error_wrong'] = 'Invalid IP address format.'; +$wb['netmask_error_wrong'] = 'Invalid Netmask format.'; +$wb['gateway_error_wrong'] = 'Invalid Gateway format.'; +$wb['hostname_error_empty'] = 'Hostname is empty.'; +$wb['nameservers_error_empty'] = 'Nameserver is empty.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Config directory'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['web_user_txt'] = 'Apache user'; +$wb['web_group_txt'] = 'Apache group'; +$wb['security_level_txt'] = 'Security level'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng new file mode 100644 index 0000000..636c2e0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng new file mode 100644 index 0000000..6d451f5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng new file mode 100644 index 0000000..4e98316 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Addrese'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Addresa'; +$wb['add_new_record_txt'] = 'Adauga o noua IP Addresa'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng new file mode 100644 index 0000000..5cea9d2 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Name'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'File'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Adauga un nou Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng new file mode 100644 index 0000000..3bcf7bc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Pachete Software '; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Pachet'; +$wb['package_description_txt'] = 'Descriere'; +$wb['action_txt'] = 'Actiune'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng new file mode 100644 index 0000000..574dd11 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'User (optional)'; +$wb['repo_password_txt'] = 'Password (optional)'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng new file mode 100644 index 0000000..b7a219f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Active'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng new file mode 100644 index 0000000..fc96ffa --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Software update'; +$wb['server_select_txt'] = 'Selectie server'; +$wb['installed_txt'] = 'Actiune'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Versiune'; +$wb['action_txt'] = 'Actiune'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng new file mode 100644 index 0000000..e7f5d93 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_users.lng b/interface/ispconfig/interface/admin/lib/lang/ro_users.lng new file mode 100644 index 0000000..8e70364 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Username'; +$wb['username_err'] = 'The username is too long or contains invalid characters.'; +$wb['username_empty'] = 'The username is empty.'; +$wb['username_unique'] = 'There is already a user with this username.'; +$wb['passwort_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['modules_txt'] = 'Module'; +$wb['startmodule_txt'] = 'Startmodule'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Type'; +$wb['active_txt'] = 'Active'; +$wb['language_txt'] = 'Language'; +$wb['name_txt'] = 'Name'; +$wb['vorname_txt'] = 'Forename'; +$wb['unternehmen_txt'] = 'Company'; +$wb['strasse_txt'] = 'Street'; +$wb['ort_txt'] = 'City'; +$wb['plz_txt'] = 'ZIP'; +$wb['land_txt'] = 'Country'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telephone'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Groups'; +$wb['default_group_txt'] = 'Default Group'; +$wb['startmodule_err'] = 'Start module is not within modules.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng new file mode 100644 index 0000000..16d8179 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Useri'; +$wb['username_txt'] = 'Username'; +$wb['name_txt'] = 'Nume'; +$wb['vorname_txt'] = 'Forename'; +$wb['ort_txt'] = 'oras'; +$wb['add_new_record_txt'] = 'Add user nou'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/ru.lng b/interface/ispconfig/interface/admin/lib/lang/ru.lng new file mode 100644 index 0000000..19d632e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru.lng @@ -0,0 +1,41 @@ +<?php +$wb['1001'] = 'Имя пользователя или пароль пусты.'; +$wb['1002'] = 'Имя пользователя или пароль неправильны.'; +$wb['Firewall'] = 'Файрволл'; +$wb['Groups'] = 'Группы'; +$wb['groups_description'] = 'Форма для редактирования группы системного пользователя.'; +$wb['Server'] = 'Сервер'; +$wb['Services'] = 'Службы'; +$wb['Config'] = 'Конфигурация'; +$wb['Server Config'] = 'Конфигурация сервера'; +$wb['Mail'] = 'Почта'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Система'; +$wb['Add user'] = 'Добавить пользователя'; +$wb['Edit user'] = 'Редактировать пользователя'; +$wb['CP Users'] = 'CP пользователя'; +$wb['Add group'] = 'Добавить группу'; +$wb['Edit group'] = 'Изменить пользователя'; +$wb['Edit server'] = 'Редактировать сервер'; +$wb['Edit Server IP'] = 'Изменить IP сервера'; +$wb['Servers'] = 'Серверы'; +$wb['Sync. Now'] = 'Синхронизировать сейчас'; +$wb['DB Sync.'] = 'Синхронизировать БД'; +$wb['Languages'] = 'Языки'; +$wb['New Language'] = 'Новый язык'; +$wb['Export'] = 'Экспорт'; +$wb['Import'] = 'Импорт'; +$wb['Language Editor'] = 'Редактор языков'; +$wb['Software'] = 'Софт'; +$wb['Repositories'] = 'Репозитарии'; +$wb['Server Services'] = 'Службы сервера'; +$wb['Interface Config'] = 'Конфиг интерфейса'; +$wb['Packages'] = 'Пакеты'; +$wb['Updates'] = 'Обновления'; +$wb['Merge'] = 'Объеденить'; +$wb['Remote Users'] = 'Удаленные пользователи'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng new file mode 100644 index 0000000..dfe0c10 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng @@ -0,0 +1,12 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['tcp_port_txt'] = 'Открытые TCP порты'; +$wb['udp_port_txt'] = 'Открытые UDP порты'; +$wb['tcp_port_help_txt'] = 'Перечислить через запятую'; +$wb['udp_port_help_txt'] = 'Перечислить через запятую'; +$wb['active_txt'] = 'Активен?'; +$wb['firewall_error_unique'] = 'Уже есть записи firewall для этого сервера.'; +$wb['tcp_ports_error_regex'] = 'Недопустимый символ в указании tcp порта. Допустимые сиволы - цифры, : и ,'; +$wb['udp_ports_error_regex'] = 'Недопустимый символ в указании udp порта. Допустимые сиволы - цифры, : и ,'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng new file mode 100644 index 0000000..fc2fffa --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['tcp_port_txt'] = 'Открытые TCP порты'; +$wb['udp_port_txt'] = 'Открытые UDP порты'; +$wb['add_new_record_txt'] = 'Добавить запись Firewall'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng new file mode 100644 index 0000000..d377f5f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng @@ -0,0 +1,6 @@ +<?php +$wb['description_txt'] = 'Описание'; +$wb['name_txt'] = 'Группа'; +$wb['name_err'] = 'Группа должна иметь от 1 до 30 символов.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng new file mode 100644 index 0000000..1495e69 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Группы системных пользователей'; +$wb['description_txt'] = 'Описание'; +$wb['name_txt'] = 'Группа'; +$wb['add_new_record_txt'] = 'Добавить новую группу'; +$wb['warning_txt'] = '<b>ВНИМАНИЕ:</b>Не удаляйте и не меняйте никаких настроек здесь. Используйте настройки клиента и реселлера в модуле КЛИЕНТ. Изменение пользователей или групп здесь может вызвать потерю данных!'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng new file mode 100644 index 0000000..5d1d154 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Добавить новый язык'; +$wb['language_select_txt'] = 'Выбрать в качестве базового'; +$wb['language_new_txt'] = 'Новый язык'; +$wb['btn_save_txt'] = 'Создать новый языковый файл'; +$wb['btn_cancel_txt'] = 'Назад'; +$wb['language_new_hint_txt'] = '2 символа в языковом обозначении ISO 639-1 (Смотри http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng new file mode 100644 index 0000000..c7ade3c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Объединение языков'; +$wb['language_select_txt'] = 'Выберите язык'; +$wb['btn_save_txt'] = 'Объеденить'; +$wb['btn_cancel_txt'] = 'Назад'; +$wb['list_desc_txt'] = 'Объеденить выбранный язык с английским мастер-языком. <br />Это добавит пропущенные строки из мастер-языка.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng new file mode 100644 index 0000000..b5cbb16 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Редактор языкового файла'; +$wb['language_select_txt'] = 'Выбрать язык'; +$wb['module_txt'] = 'Модуль'; +$wb['lang_file_txt'] = 'Выбрать язык'; +$wb['btn_save_txt'] = 'Сохранить'; +$wb['btn_cancel_txt'] = 'Назад'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng new file mode 100644 index 0000000..9a4a929 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Экспорт языкового файла'; +$wb['language_select_txt'] = 'Выбрать язык'; +$wb['btn_save_txt'] = 'Экспортировать выбранный язык в файл'; +$wb['btn_cancel_txt'] = 'Назад'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng new file mode 100644 index 0000000..f0b767e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Импорт языкового файла'; +$wb['language_import_txt'] = 'Выбрать языковый файл'; +$wb['btn_save_txt'] = 'Импорт выбранного языкового файла'; +$wb['language_overwrite_txt'] = 'Перезаписать, если есть.'; +$wb['btn_cancel_txt'] = 'Назад'; +$wb['ignore_version_txt'] = 'Пропустить проверку версий ISPConfig'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng new file mode 100644 index 0000000..72561a7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Редактор языковых файлов'; +$wb['language_select_txt'] = 'Выбрать язык'; +$wb['module_txt'] = 'Модуль'; +$wb['lang_file_txt'] = 'Выбрать язык'; +$wb['lang_file_date_txt'] = 'Последнее изменение'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng new file mode 100644 index 0000000..ceee7b9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng @@ -0,0 +1,43 @@ +<?php +$wb['username_txt'] = 'Лоигн:'; +$wb['password_txt'] = 'Пароль:'; +$wb['function_txt'] = 'Функции:'; +$wb['username_error_unique'] = 'Логин должен быть уникальным'; +$wb['username_error_empty'] = 'Логин не должен быть пустым'; +$wb['password_error_empty'] = 'Пароль не должен быть пустым'; +$wb['password_strength_txt'] = 'Стойкость пароля:'; +$wb['Mail domain functions'] = 'Функции почтового домена'; +$wb['Mail user functions'] = 'Функции почтовых пользователей'; +$wb['Mail alias functions'] = 'Функции почтовых алиасов'; +$wb['Mail forward functions'] = 'Функции почтовых пересылок'; +$wb['Mail catchall functions'] = 'Функции catchall'; +$wb['Mail transport functions'] = 'Функции почтового транспорта'; +$wb['Mail whitelist functions'] = 'Функции белых списков почты'; +$wb['Mail blacklist functions'] = 'Функции черных списков почты'; +$wb['Mail spamfilter user functions'] = 'Функции почтового спам-фильтра'; +$wb['Mail spamfilter policy functions'] = 'Функции правил почтового спам-фильтра'; +$wb['Mail fetchmail functions'] = 'Функции fetchmail'; +$wb['Mail user filter functions'] = 'Функции пользовательских фильтров почты'; +$wb['Mail filter functions'] = 'Функции почтовых фильтров'; +$wb['Client functions'] = 'Функции клиентов'; +$wb['Sites cron functions'] = 'Функции cron сайтов'; +$wb['Sites database functions'] = 'Функции БД сайтов'; +$wb['Sites FTP-User functions'] = 'Функции FTP-пользователей'; +$wb['Sites Shell-User functions'] = 'Функции Shell-пользователей'; +$wb['Sites Domain functions'] = 'Функции доменов'; +$wb['Sites Aliasdomain functions'] = 'Функции алиасов доменов'; +$wb['Sites Subdomain functions'] = 'Функции субдоменов'; +$wb['DNS zone functions'] = 'Функции DNS зон'; +$wb['DNS a functions'] = 'Функции DNS'; +$wb['DNS aaaa functions'] = 'Функции DNS aaaa'; +$wb['DNS alias functions'] = 'Функции DNS alias'; +$wb['DNS cname functions'] = 'Функции DNS cname'; +$wb['DNS hinfo functions'] = 'Функции DNS hinfo'; +$wb['DNS mx functions'] = 'Функции DNS mx'; +$wb['DNS ns functions'] = 'Функции DNS ns'; +$wb['DNS ptr functions'] = 'Функции DNS ptr'; +$wb['DNS rp functions'] = 'Функции DNS rp'; +$wb['DNS srv functions'] = 'Функции DNS srv'; +$wb['DNS txt functions'] = 'Функции DNS txt'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng new file mode 100644 index 0000000..f1bcdf9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Удаленные пользователи'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Добавить нового пользователя'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Логин'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server.lng new file mode 100644 index 0000000..5575e65 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server.lng @@ -0,0 +1,14 @@ +<?php +$wb['config_txt'] = 'конфиг'; +$wb['server_name_txt'] = 'Имя сервера'; +$wb['mail_server_txt'] = 'Почтовый сервер'; +$wb['web_server_txt'] = 'Web-сервер'; +$wb['dns_server_txt'] = 'DNS-Сервер'; +$wb['file_server_txt'] = 'Файл-сервер'; +$wb['db_server_txt'] = 'DB-Сервер'; +$wb['vserver_server_txt'] = 'VСервер'; +$wb['active_txt'] = 'Активен?'; +$wb['mirror_server_id_txt'] = 'Зеркало сервера'; +$wb['- None -'] = '- нет -'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng new file mode 100644 index 0000000..c0530b6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng @@ -0,0 +1,69 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Путь к Jailkit chroot'; +$wb['jailkit_chroot_app_sections_txt'] = 'Раздел программы Jailkit chroot'; +$wb['jailkit_chroot_app_programs_txt'] = 'Программы Jailkit chrooted'; +$wb['website_path_txt'] = 'Путь web-сайта'; +$wb['website_symlinks_txt'] = 'Симлинки Web-сайта'; +$wb['vhost_conf_dir_txt'] = 'Папка конфига Vhost'; +$wb['vhost_conf_enabled_dir_txt'] = 'Папка конфига включенного Vhost'; +$wb['getmail_config_dir_txt'] = 'Папка конфига Getmail'; +$wb['fastcgi_starter_path_txt'] = 'Стартовый путь FastCGI'; +$wb['fastcgi_starter_script_txt'] = 'Стартовый скрипт FastCGI'; +$wb['fastcgi_alias_txt'] = 'Алиас FastCGI'; +$wb['fastcgi_phpini_path_txt'] = 'Путь FastCGI в php.ini'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'Макс.запросов для FastCGI'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Модуль'; +$wb['maildir_path_txt'] = 'Путь Maildir'; +$wb['homedir_path_txt'] = 'Путь Homedir'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Имя Mailuser'; +$wb['mailuser_group_txt'] = 'Группа Mailuser'; +$wb['relayhost_txt'] = 'Relay-хост'; +$wb['relayhost_user_txt'] = 'Логин Relay-хоста'; +$wb['relayhost_password_txt'] = 'Пароль Relay-хоста'; +$wb['mailbox_size_limit_txt'] = 'Лимит размера Mailbox'; +$wb['message_size_limit_txt'] = 'Лимит размера сообщения'; +$wb['ip_address_txt'] = 'IP-адрес'; +$wb['netmask_txt'] = 'Сетевая маска'; +$wb['gateway_txt'] = 'Шлюз'; +$wb['hostname_txt'] = 'Имя узла'; +$wb['nameservers_txt'] = 'DNS сервера'; +$wb['auto_network_configuration_txt'] = 'Конфигурация сети'; +$wb['website_basedir_txt'] = 'Базовый путь Web-сайта'; +$wb['ip_address_error_wrong'] = 'Неверный формат IP-адреса'; +$wb['netmask_error_wrong'] = 'Неверный формат сетевой маски'; +$wb['gateway_error_wrong'] = 'Неверный формат шлюза'; +$wb['hostname_error_empty'] = 'Пустое имя хоста'; +$wb['nameservers_error_empty'] = 'Пустые DNS сервера'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Директория конфигов'; +$wb['init_script_txt'] = 'Имя скрипта инициализаци Cron'; +$wb['crontab_dir_txt'] = 'Путь к личным crontabs'; +$wb['wget_txt'] = 'Путь к программе wget'; +$wb['security_level_txt'] = 'Уровень безопасности'; +$wb['web_user_txt'] = 'Пользователь Apache'; +$wb['web_group_txt'] = 'Группа Apache'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost порт'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost домен'; +$wb['bind_user_txt'] = 'Пользователь BIND'; +$wb['bind_group_txt'] = 'Группа BIND'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles директория'; +$wb['named_conf_path_txt'] = 'Путь к BIND named.conf'; +$wb['bind_user_error_empty'] = 'Пользователь BIND пустой.'; +$wb['bind_group_error_empty'] = 'Группа BIND пустая.'; +$wb['bind_zonefiles_dir_error_empty'] = 'Папка зон для BIND пуста.'; +$wb['named_conf_path_error_empty'] = 'Путь BIND named.conf пуст.'; +$wb['named_conf_local_path_error_empty'] = 'Путь BIND named.conf.local пустой.'; +$wb['mail_filter_syntax_txt'] = 'Синтаксис почтовых фильтров'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP демон'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir пустой.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride пустой.'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng new file mode 100644 index 0000000..351caaf --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Настройки сервера'; +$wb['server_name_txt'] = 'Сервер'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng new file mode 100644 index 0000000..a835da0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['ip_address_txt'] = 'IP адрес'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'Неверный IP адрес'; +$wb['ip_error_unique'] = 'IP адрес должен быть уникальным'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng new file mode 100644 index 0000000..8e06c0a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'IP адреса'; +$wb['server_id_txt'] = 'Сервер'; +$wb['ip_address_txt'] = 'IP адрес'; +$wb['add_new_record_txt'] = 'Добавить новый IP адрес'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng new file mode 100644 index 0000000..4290a69 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Сервер'; +$wb['server_name_txt'] = 'Имя'; +$wb['mail_server_txt'] = 'Почта'; +$wb['web_server_txt'] = 'Веб'; +$wb['dns_server_txt'] = 'ДНС'; +$wb['file_server_txt'] = 'Файл'; +$wb['db_server_txt'] = 'БД'; +$wb['vserver_server_txt'] = 'VСервер'; +$wb['add_new_record_txt'] = 'Добавить новый сервер'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng new file mode 100644 index 0000000..7c4fbd8 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Пакеты ПО'; +$wb['installed_txt'] = 'Статус'; +$wb['package_title_txt'] = 'Пакет'; +$wb['package_description_txt'] = 'Описание'; +$wb['action_txt'] = 'Действие'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng new file mode 100644 index 0000000..7d5abbc --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng @@ -0,0 +1,8 @@ +<?php +$wb['repo_name_txt'] = 'Репозиторий'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Логин (опционально)'; +$wb['repo_password_txt'] = 'Пароль (опционально)'; +$wb['active_txt'] = 'Активен?'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng new file mode 100644 index 0000000..7989ba4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Репозитарии'; +$wb['active_txt'] = 'Активен?'; +$wb['repo_name_txt'] = 'Репозитарии'; +$wb['repo_url_txt'] = 'URL'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng new file mode 100644 index 0000000..41fcbd4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Обновление софта'; +$wb['installed_txt'] = 'Действие'; +$wb['update_title_txt'] = 'Обновить'; +$wb['version_txt'] = 'Версия'; +$wb['action_txt'] = 'Действие'; +$wb['server_select_txt'] = 'Выберите сервер'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng new file mode 100644 index 0000000..823cb74 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng @@ -0,0 +1,16 @@ +<?php +$wb['warning'] = 'Изменяйте эти значения аккуратно! Не удаляйте префиксы на системах где более одного пользователя.'; +$wb['dbname_prefix_txt'] = 'Префикс БД'; +$wb['dbuser_prefix_txt'] = 'Префикс пользователя БД'; +$wb['shelluser_prefix_txt'] = 'Префикс shell-пользователя'; +$wb['ftpuser_prefix_txt'] = 'Префикс FTP пользователя'; +$wb['dbname_prefix_error_regex'] = 'Неверный символ в префиксе БД'; +$wb['dbuser_prefix_error_regex'] = 'Неверный символ в префиксе пользователя БД'; +$wb['ftpuser_prefix_error_regex'] = 'Неверный символ в префиксе FTP пользователя'; +$wb['shelluser_prefix_error_regex'] = 'Неверный символ в префиксе shell-пользователя'; +$wb['dblist_phpmyadmin_link_txt'] = 'Соединить с phpmyadmin в списке БД'; +$wb['mailboxlist_webmail_link_txt'] = 'Соединить с webmail список ящиков'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_users.lng b/interface/ispconfig/interface/admin/lib/lang/ru_users.lng new file mode 100644 index 0000000..b29c020 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_users.lng @@ -0,0 +1,29 @@ +<?php +$wb['username_txt'] = 'Имя пользователя'; +$wb['username_err'] = 'Ошибка в логине'; +$wb['passwort_txt'] = 'Пароль'; +$wb['modules_txt'] = 'Модуль'; +$wb['startmodule_txt'] = 'Начальный модуль'; +$wb['app_theme_txt'] = 'Дизайн'; +$wb['typ_txt'] = 'Тип'; +$wb['active_txt'] = 'Активен?'; +$wb['language_txt'] = 'Язык'; +$wb['name_txt'] = 'Имя'; +$wb['vorname_txt'] = 'Фамилия'; +$wb['unternehmen_txt'] = 'Компания'; +$wb['strasse_txt'] = 'Улица'; +$wb['ort_txt'] = 'Город'; +$wb['plz_txt'] = 'Индека'; +$wb['land_txt'] = 'Страна'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Web-сайт'; +$wb['telefon_txt'] = 'Телефон'; +$wb['fax_txt'] = 'Факс'; +$wb['groups_txt'] = 'Группа'; +$wb['default_group_txt'] = 'Группа по умолчанию'; +$wb['username_empty'] = 'Пустое имя пользователя'; +$wb['username_unique'] = 'Такой пользователь существует'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['startmodule_err'] = 'Стартовый модуль вне дозволенных модулей'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng new file mode 100644 index 0000000..62f17c6 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Пользователи'; +$wb['username_txt'] = 'Логин'; +$wb['name_txt'] = 'Имя'; +$wb['vorname_txt'] = 'Фамилия'; +$wb['ort_txt'] = 'Город'; +$wb['add_new_record_txt'] = 'Добавить нового пользователя'; +$wb['warning_txt'] = '<b>ВНИМАНИЕ:</b>Не удаляйте и не меняйте никаких настроек здесь. Используйте настройки клиента и реселлера в модуле КЛИЕНТ. Изменение пользователей или групп здесь может вызвать потерю данных!'; +?> + diff --git a/interface/ispconfig/interface/admin/lib/lang/se.lng b/interface/ispconfig/interface/admin/lib/lang/se.lng new file mode 100644 index 0000000..4b86cbb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Anv�ndarnamnet eller l�senordet �r tomt.'; +$wb['1002'] = 'Felaktigt anv�ndarnamn eller l�senord.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Groups'; +$wb['groups_description'] = 'Form to edit systemuser groups.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Services'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Add user'; +$wb['Edit user'] = 'Edit user'; +$wb['CP Users'] = 'CP Users'; +$wb['Add group'] = 'Add group'; +$wb['Edit group'] = 'Edit group'; +$wb['Edit server'] = 'Edit server'; +$wb['Edit Server IP'] = 'Edit Server IP'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Languages'; +$wb['New Language'] = 'New Language'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Language Editor'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng new file mode 100644 index 0000000..e626345 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['tcp_port_help_txt'] = 'Separated by comma'; +$wb['udp_port_help_txt'] = 'Separated by comma'; +$wb['active_txt'] = 'Active'; +$wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng new file mode 100644 index 0000000..24a34be --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Open TCP ports'; +$wb['udp_port_txt'] = 'Open UDP ports'; +$wb['add_new_record_txt'] = 'Add Firewall record'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_groups.lng b/interface/ispconfig/interface/admin/lib/lang/se_groups.lng new file mode 100644 index 0000000..cfe8565 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Beskrivning'; +$wb['name_txt'] = 'Grupp'; +$wb['name_err'] = 'Gruppnamn m�ste ha min 1, max 30 Tecken.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng new file mode 100644 index 0000000..5b025e0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Systemanv�ndar grupper'; +$wb['description_txt'] = 'Beskrivning'; +$wb['name_txt'] = 'Grupp'; +$wb['add_new_record_txt'] = 'Add new Group'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng new file mode 100644 index 0000000..27bb0ee --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Add new language'; +$wb['language_select_txt'] = 'Select language basis'; +$wb['language_new_txt'] = 'New language'; +$wb['btn_save_txt'] = 'Create new language file set'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['language_new_hint_txt'] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng new file mode 100644 index 0000000..b5200ff --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng new file mode 100644 index 0000000..4c50e88 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng new file mode 100644 index 0000000..f45d47b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Export language files'; +$wb['language_select_txt'] = 'Select language'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng new file mode 100644 index 0000000..4c31ec3 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Import language file'; +$wb['language_import_txt'] = 'Select language file'; +$wb['btn_save_txt'] = 'Import the selected language file'; +$wb['language_overwrite_txt'] = 'Overwrite file, if exists.'; +$wb['btn_cancel_txt'] = 'Back'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng new file mode 100644 index 0000000..1c784ed --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['lang_file_date_txt'] = 'Last modify'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng new file mode 100644 index 0000000..cc9335b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng new file mode 100644 index 0000000..152a75f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Remote Users'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Username'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server.lng b/interface/ispconfig/interface/admin/lib/lang/se_server.lng new file mode 100644 index 0000000..f1c044b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_name_txt'] = 'Servernamn'; +$wb['mail_server_txt'] = 'Epostserver'; +$wb['web_server_txt'] = 'Webbserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Filserver'; +$wb['active_txt'] = 'Aktiv'; +$wb['config_txt'] = 'config'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng new file mode 100644 index 0000000..16803a9 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['website_path_txt'] = 'Website path'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Network Configuration'; +$wb['website_basedir_txt'] = 'Website basedir'; +$wb['ip_address_error_wrong'] = 'Invalid IP address format.'; +$wb['netmask_error_wrong'] = 'Invalid Netmask format.'; +$wb['gateway_error_wrong'] = 'Invalid Gateway format.'; +$wb['hostname_error_empty'] = 'Hostname is empty.'; +$wb['nameservers_error_empty'] = 'Nameserver is empty.'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['config_dir_txt'] = 'Config directory'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['security_level_txt'] = 'Security level'; +$wb['web_user_txt'] = 'Apache user'; +$wb['web_group_txt'] = 'Apache group'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng new file mode 100644 index 0000000..636c2e0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng new file mode 100644 index 0000000..6d451f5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng new file mode 100644 index 0000000..81ae8f0 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Addresses'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['add_new_record_txt'] = 'Add new IP Address'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng new file mode 100644 index 0000000..ff7bd6e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Namn'; +$wb['mail_server_txt'] = 'Epost'; +$wb['web_server_txt'] = 'Webb'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Fil'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Add new Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng new file mode 100644 index 0000000..03917ca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Software packages'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng new file mode 100644 index 0000000..574dd11 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'User (optional)'; +$wb['repo_password_txt'] = 'Password (optional)'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng new file mode 100644 index 0000000..b7a219f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Repository'; +$wb['active_txt'] = 'Active'; +$wb['repo_name_txt'] = 'Repository'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng new file mode 100644 index 0000000..ebf4e6f --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Software updates'; +$wb['installed_txt'] = 'Action'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Action'; +$wb['server_select_txt'] = 'Select server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng new file mode 100644 index 0000000..e7f5d93 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_users.lng b/interface/ispconfig/interface/admin/lib/lang/se_users.lng new file mode 100644 index 0000000..3708eff --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Anv�ndarnamn'; +$wb['username_err'] = 'anv�ndarnamn_fel'; +$wb['passwort_txt'] = 'L�senord'; +$wb['modules_txt'] = 'Modul'; +$wb['startmodule_txt'] = 'Startmodul'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktiv'; +$wb['language_txt'] = 'Spr�k'; +$wb['name_txt'] = 'Namn'; +$wb['vorname_txt'] = 'F�rnamn'; +$wb['unternehmen_txt'] = 'F�retag'; +$wb['strasse_txt'] = 'Gata'; +$wb['ort_txt'] = 'Stad'; +$wb['plz_txt'] = 'Postnr'; +$wb['land_txt'] = 'Land'; +$wb['email_txt'] = 'Epost'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Grupp'; +$wb['default_group_txt'] = 'Standard Grupp'; +$wb['username_empty'] = 'The username is empty.'; +$wb['username_unique'] = 'There is already a user with this username.'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['startmodule_err'] = 'Start module is not within modules.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng new file mode 100644 index 0000000..de5d63e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Anv�ndare'; +$wb['username_txt'] = 'Anv�ndarnamn'; +$wb['name_txt'] = 'Namn'; +$wb['vorname_txt'] = 'F�rnamn'; +$wb['ort_txt'] = 'stad'; +$wb['add_new_record_txt'] = 'Add new user'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk.lng b/interface/ispconfig/interface/admin/lib/lang/sk.lng new file mode 100644 index 0000000..a4eab14 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'U��vate?sk� meno a heslo je pr�zdne.'; +$wb['1002'] = 'U��vate?sk� meno alebo heslo je zle.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Skupiny'; +$wb['groups_description'] = 'Formul�r pre �pravu systemov�ch skup�n.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Slu�by'; +$wb['Config'] = 'Konfigurova?'; +$wb['Server Config'] = 'Konfigur�cia servera'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Syst�m'; +$wb['Add user'] = 'Prida? u��vate?a'; +$wb['Edit user'] = 'Upravi? u��vate?a'; +$wb['CP Users'] = 'CP u�ivatelia'; +$wb['Add group'] = 'Prida? skupinu'; +$wb['Edit group'] = 'Upravi? skupinu'; +$wb['Edit server'] = 'Upravi? server'; +$wb['Edit Server IP'] = 'Upravi? Server IP'; +$wb['Servers'] = 'Servery'; +$wb['Sync. Now'] = 'Synchronizova? teraz'; +$wb['DB Sync.'] = 'DB Synchroniz�cia'; +$wb['Languages'] = 'Jazyky'; +$wb['New Language'] = 'Nov� jazyk'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Editor jazyka'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Skladisko'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng new file mode 100644 index 0000000..581b438 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Otvoren� TCP porty'; +$wb['udp_port_txt'] = 'Otvoren� UDP porty'; +$wb['tcp_port_help_txt'] = 'Oddelen� ?iarkou'; +$wb['udp_port_help_txt'] = 'Oddelen� ?iarkou'; +$wb['active_txt'] = 'Akt�vne'; +$wb['firewall_error_unique'] = 'Existuje u� firewall z�znam pre tento server.'; +$wb['tcp_ports_error_regex'] = 'Znak nie je povolen� v TCP port defin�cie. Povolen� znaky s� ?�sla,:, a.'; +$wb['udp_ports_error_regex'] = 'Znak nie je povolen� v UDP port defin�cie. Povolen� znaky s� ?�sla,:, a.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng new file mode 100644 index 0000000..657d6ca --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Aktivova?'; +$wb['server_id_txt'] = 'Server'; +$wb['tcp_port_txt'] = 'Otvoren� TCP porty'; +$wb['udp_port_txt'] = 'Otvoren� UDP porty'; +$wb['add_new_record_txt'] = 'Prida? Firewall z�znam'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng b/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng new file mode 100644 index 0000000..f43077c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Popis'; +$wb['name_txt'] = 'Skupina'; +$wb['name_err'] = 'Skupina mus� ma? minim�lne 1, max 30 znakov.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng new file mode 100644 index 0000000..1b067b7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Skupina syst�movch u�iva?elov'; +$wb['description_txt'] = 'Popis'; +$wb['name_txt'] = 'Skupina'; +$wb['add_new_record_txt'] = 'Prida? skupinu'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng new file mode 100644 index 0000000..5b21d00 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Prida? nov� jazyk'; +$wb['language_select_txt'] = 'Vyberte z�klad jazyka'; +$wb['language_new_txt'] = 'Nov� jazyk'; +$wb['language_new_hint_txt'] = '2 znaky ISO 639-1 jazyka-k�du (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Vytvori? nov� jazykov� s�bor'; +$wb['btn_cancel_txt'] = 'Sp�?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng new file mode 100644 index 0000000..4b07613 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Zl�?i? jazyk'; +$wb['list_desc_txt'] = 'Zl�?i? vybran� s�bor s jazykom angli?tina master s�bor. <br /> dop??a ch�baj�ce re?azce z anglick�ho s�boru jazyka do zvolen�ho jazyka.'; +$wb['language_select_txt'] = 'Vyber jazyk'; +$wb['btn_save_txt'] = 'Zl�?i? s�bory teraz'; +$wb['btn_cancel_txt'] = 'Sp�?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng new file mode 100644 index 0000000..51c2c0a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Editor Jazykov�ho S�boru'; +$wb['language_select_txt'] = 'Vyberte jazyk'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Jazykov� s�bor'; +$wb['btn_save_txt'] = 'Ulo�i?'; +$wb['btn_cancel_txt'] = 'Sp�?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng new file mode 100644 index 0000000..6bdfbc1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Export jazykov�ho s�boru'; +$wb['language_select_txt'] = 'Vybra? jazykov�ho s�boru'; +$wb['btn_save_txt'] = 'Export vybran�ho jazykov�ho s�boru'; +$wb['btn_cancel_txt'] = 'Sp�?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng new file mode 100644 index 0000000..94c708a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Import jazykov�ho s�boru'; +$wb['language_import_txt'] = 'Vyberte s�bor jazyka'; +$wb['btn_save_txt'] = 'Import zvolen�ho jazykov�ho s�boru'; +$wb['language_overwrite_txt'] = 'Prepisa? subor ak existuje'; +$wb['btn_cancel_txt'] = 'Sp�?'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng new file mode 100644 index 0000000..034b23a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Editor jazykov�ho s�boru'; +$wb['language_select_txt'] = 'Vyberte jazyk'; +$wb['module_txt'] = 'Modul'; +$wb['lang_file_txt'] = 'Jazykov� s�bor'; +$wb['lang_file_date_txt'] = 'Posledn� modifik�cia'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng new file mode 100644 index 0000000..fae2654 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'U�ivate?:'; +$wb['password_txt'] = 'Heslo:'; +$wb['function_txt'] = 'Funkcia:'; +$wb['username_error_unique'] = 'Prihlasovacie meno mus� by? jedine?n�'; +$wb['username_error_empty'] = 'U��vate?sk� meno nem��e by? pr�zdne'; +$wb['password_error_empty'] = 'Heslo nem��e by? pr�zdne'; +$wb['password_strength_txt'] = 'Pevnos? hesla:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng new file mode 100644 index 0000000..7e4661d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Dia?kov� u�ivatelia'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Prida? nov� u��vate?'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'U��vate?sk� meno'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server.lng new file mode 100644 index 0000000..667996c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'konfig'; +$wb['server_name_txt'] = 'Meno servera'; +$wb['mail_server_txt'] = 'Mailserver'; +$wb['web_server_txt'] = 'Webserver'; +$wb['dns_server_txt'] = 'DNS-Server'; +$wb['file_server_txt'] = 'Fileserver'; +$wb['db_server_txt'] = 'DB-Server'; +$wb['vserver_server_txt'] = 'VServer-Server'; +$wb['active_txt'] = 'Akt�vne'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng new file mode 100644 index 0000000..2fc8618 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot domov'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sekcia'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted aplik�cia'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted aplik�cia'; +$wb['website_path_txt'] = 'Website cesta'; +$wb['website_symlinks_txt'] = 'Website symlinky'; +$wb['website_basedir_txt'] = 'Website z�kladny adres�r'; +$wb['vhost_conf_dir_txt'] = 'Vhost konfig adres�r'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost konfig odblokovan� adres�r'; +$wb['getmail_config_dir_txt'] = 'Getmail konfig adres�r'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter cesta'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter skript'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Cesta'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Modul'; +$wb['maildir_path_txt'] = 'Maildir Cesta'; +$wb['homedir_path_txt'] = 'Cesta k domovsk�mu adres�ru'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Meno'; +$wb['mailuser_group_txt'] = 'Mailuser Skupina'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost u�ivate?'; +$wb['relayhost_password_txt'] = 'Relayhost heslo'; +$wb['mailbox_size_limit_txt'] = 'Limit ve?kosti po�tovej schr�nky'; +$wb['message_size_limit_txt'] = 'Limit ve?kosti spr�vy'; +$wb['ip_address_txt'] = 'IP Adresa'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservery'; +$wb['auto_network_configuration_txt'] = 'Konfigur�cia siete'; +$wb['ip_address_error_wrong'] = 'IP adresa v neplatnom form�te.'; +$wb['netmask_error_wrong'] = 'Maska siete m� neplatn� form�t.'; +$wb['gateway_error_wrong'] = 'Neplatn� form�t Gateway.'; +$wb['hostname_error_empty'] = 'Hostname je pr�zdny.'; +$wb['nameservers_error_empty'] = 'Nameserver je pr�zdny.'; +$wb['config_dir_txt'] = 'Konfigura?n� adres�r'; +$wb['init_script_txt'] = 'Meno cron init skript '; +$wb['crontab_dir_txt'] = 'Cesta pre jednotliv� crontaby'; +$wb['wget_txt'] = 'Cesta k wget programu'; +$wb['web_user_txt'] = 'Apache u�ivate?'; +$wb['web_group_txt'] = 'Apache skupina'; +$wb['security_level_txt'] = 'Stupe? zabezpe?enia'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng new file mode 100644 index 0000000..73e7bac --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Konfigur�cia Servera'; +$wb['server_name_txt'] = 'Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng new file mode 100644 index 0000000..f6dfa75 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Adresa'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'IP adresa je neplatn�'; +$wb['ip_error_unique'] = 'IP adresa mus� by? unik�tna'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng new file mode 100644 index 0000000..de065f7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Adresy'; +$wb['server_id_txt'] = 'Server'; +$wb['ip_address_txt'] = 'IP Adresa'; +$wb['add_new_record_txt'] = 'Prida? nov� IP Adresu'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng new file mode 100644 index 0000000..aff4328 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Server'; +$wb['server_name_txt'] = 'Meno'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'S�bor'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Prida? nov� Server'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng new file mode 100644 index 0000000..bcb6acb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Softv�rov� bal�ky'; +$wb['installed_txt'] = 'Stav'; +$wb['package_title_txt'] = 'Bal�ky'; +$wb['package_description_txt'] = 'Popis'; +$wb['action_txt'] = 'Akcia'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng new file mode 100644 index 0000000..a3cb3fe --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Skladisko'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'U�ivate? (volite?n�)'; +$wb['repo_password_txt'] = 'Heslo (volite?n�)'; +$wb['active_txt'] = 'Aktivova?'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng new file mode 100644 index 0000000..52d468a --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Skladisko'; +$wb['active_txt'] = 'Akt�vne'; +$wb['repo_name_txt'] = 'Skladisko'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng new file mode 100644 index 0000000..01d0772 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aktualiz�cia softv�ru'; +$wb['server_select_txt'] = 'Vyberte server'; +$wb['installed_txt'] = 'Akcia'; +$wb['update_title_txt'] = 'Aktualiz�cia '; +$wb['version_txt'] = 'Verzia'; +$wb['action_txt'] = 'Akcia'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng new file mode 100644 index 0000000..90049de --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Upravte tieto hodnoty pozorne! Neodstra?ujte predpony na syst�moch s viac ako jedn�ho klienta.'; +$wb['dbname_prefix_txt'] = 'Predpona n�zvu datab�zy '; +$wb['dbuser_prefix_txt'] = 'Predpona datab�za u��vate?'; +$wb['shelluser_prefix_txt'] = 'Predpona Shell u��vate?'; +$wb['ftpuser_prefix_txt'] = 'Predpona FTP u��vate?'; +$wb['dbname_prefix_error_regex'] = 'Char nie je povolen� v prefix n�zov datab�zy.'; +$wb['dbuser_prefix_error_regex'] = 'Char nie je povolen� v datab�ze predpone user.'; +$wb['ftpuser_prefix_error_regex'] = 'Char nie je povolen� v ftp u��vate? predpone .'; +$wb['shelluser_prefix_error_regex'] = 'Char nie je povolen� �krupiny u��vate? predpone .'; +$wb['dblist_phpmyadmin_link_txt'] = 'Odkaz na phpmyadmin v NR zozname'; +$wb['mailboxlist_webmail_link_txt'] = 'Odkaz na webmail v zozname schr�nky'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_users.lng b/interface/ispconfig/interface/admin/lib/lang/sk_users.lng new file mode 100644 index 0000000..4376aa1 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['username_err'] = 'U��vate?sk� meno je pr�li� dlh� alebo obsahuje neplatn� znaky.'; +$wb['username_empty'] = 'U��vate?sk� meno je pr�zdne.'; +$wb['username_unique'] = 'V s�?asnosti u� existuje u��vate? s t�mto u��vate?sk�m menom.'; +$wb['passwort_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['modules_txt'] = 'Modul'; +$wb['startmodule_txt'] = 'Startmodul'; +$wb['app_theme_txt'] = 'Design'; +$wb['typ_txt'] = 'Typ'; +$wb['active_txt'] = 'Akt�vne'; +$wb['language_txt'] = 'Jazyk'; +$wb['name_txt'] = 'Meno'; +$wb['vorname_txt'] = 'Krstn� meno'; +$wb['unternehmen_txt'] = 'Spolo?nos?'; +$wb['strasse_txt'] = 'Ulica'; +$wb['ort_txt'] = 'Mesto'; +$wb['plz_txt'] = 'PS?'; +$wb['land_txt'] = 'Krajina'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telef�n'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Skupiny'; +$wb['default_group_txt'] = 'Z�kladn� Skupina'; +$wb['startmodule_err'] = '�tart modul nie je v moduloch.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng new file mode 100644 index 0000000..a04f716 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'U��vatelia'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['name_txt'] = 'Meno'; +$wb['vorname_txt'] = 'Krstn� meno'; +$wb['ort_txt'] = 'mesto'; +$wb['add_new_record_txt'] = 'Prida? nov�ho u��vate?a'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr.lng b/interface/ispconfig/interface/admin/lib/lang/tr.lng new file mode 100644 index 0000000..7e47b6c --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr.lng @@ -0,0 +1,40 @@ +<?php +$wb['1001'] = 'Kullanıcı adı veya şifre boş.'; +$wb['1002'] = 'Kullanıcı adı veya şifre yanlış.'; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Gruplar'; +$wb['groups_description'] = 'Sistem kullanıcılarını düzenleme formu.'; +$wb['Server'] = 'Sunucu'; +$wb['Services'] = 'Servisler'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Sunucu Konfigurasyonu'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'Sistem'; +$wb['Add user'] = 'Kullanıcı ekle'; +$wb['Edit user'] = 'Kullanıcı düzenle'; +$wb['CP Users'] = 'CP Kullanıcıları'; +$wb['Add group'] = 'Grup ekle'; +$wb['Edit group'] = 'Grup düzenle'; +$wb['Edit server'] = 'Sunucu düzenle'; +$wb['Edit Server IP'] = 'Sunucu IP düzenle'; +$wb['Servers'] = 'Sunucular'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Diller'; +$wb['New Language'] = 'Yeni Dil'; +$wb['Export'] = 'Dışa aktar'; +$wb['Import'] = 'İçe aktar'; +$wb['Language Editor'] = 'Dil Editörü'; +$wb['Software'] = 'Yazılım'; +$wb['Repositories'] = 'Depolar'; +$wb['Server Services'] = 'Server Services'; +$wb['Interface Config'] = 'Interface Config'; +$wb['Packages'] = 'Packages'; +$wb['Updates'] = 'Updates'; +$wb['Merge'] = 'Merge'; +$wb['Remote Users'] = 'Remote Users'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng new file mode 100644 index 0000000..d379841 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['tcp_port_txt'] = 'Açık TCP portları'; +$wb['udp_port_txt'] = 'Açık UDP portları'; +$wb['tcp_port_help_txt'] = 'Virgülle ayırınız'; +$wb['udp_port_help_txt'] = 'Virgülle ayırınız'; +$wb['active_txt'] = 'Aktif'; +$wb['firewall_error_unique'] = 'Bu sunucuda bir firewall kaydı zaten var.'; +$wb['tcp_ports_error_regex'] = 'TCP port tanımlaması için izin verilmeyen karakterler. İzin verilen karakterler; sayılar , : ve ,.'; +$wb['udp_ports_error_regex'] = 'UDP port tanımlaması için izin verilmeyen karakterler. İzin verilen karakterler; sayılar , : ve ,.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng new file mode 100644 index 0000000..5fcff63 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Firewall'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['tcp_port_txt'] = 'Açık TCP portları'; +$wb['udp_port_txt'] = 'Açık UDP portları'; +$wb['add_new_record_txt'] = 'Yeni Firewall Kaydı'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng b/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng new file mode 100644 index 0000000..5bad5a7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng @@ -0,0 +1,5 @@ +<?php +$wb['description_txt'] = 'Açıklama'; +$wb['name_txt'] = 'Grup'; +$wb['name_err'] = 'Grup ismi 1-30 karakter arasında olmalı.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng new file mode 100644 index 0000000..5e7f0eb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Sistem kullanıcısı grupları'; +$wb['description_txt'] = 'Açıklama'; +$wb['name_txt'] = 'Grup'; +$wb['add_new_record_txt'] = 'Yeni Grup'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng new file mode 100644 index 0000000..fa712eb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Yeni dil ekle'; +$wb['language_select_txt'] = 'Dil kaynağını seçiniz'; +$wb['language_new_txt'] = 'Yeni dil'; +$wb['language_new_hint_txt'] = 'ISO 639-1 dil kodlamasında 2 karakter (Ayrıntı http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Yeni dil dosyası oluştur'; +$wb['btn_cancel_txt'] = 'Geri'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng new file mode 100644 index 0000000..176d93b --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Dil birleştir'; +$wb['list_desc_txt'] = 'Seçili dil dosyasını İngilizce dil dosyası ile birleştirir. <br />Bu olay kayıp metinleri ingilizce dil dosyasından seçili dil dosyasına ekler'; +$wb['language_select_txt'] = 'Dil seç'; +$wb['btn_save_txt'] = 'Dosyaları şimdi birleştir'; +$wb['btn_cancel_txt'] = 'Geri'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng new file mode 100644 index 0000000..412b1b4 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Dil dosyası editörü'; +$wb['language_select_txt'] = 'Dil seç'; +$wb['module_txt'] = 'Modül'; +$wb['lang_file_txt'] = 'Dil dosyası'; +$wb['btn_save_txt'] = 'Kaydet'; +$wb['btn_cancel_txt'] = 'Geri'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng new file mode 100644 index 0000000..d0205cb --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Dil dosyalarını dışa aktar'; +$wb['language_select_txt'] = 'Dil seç'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Geri'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng new file mode 100644 index 0000000..2caaa07 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Dil dosyasını içe aktar'; +$wb['language_import_txt'] = 'Dil dosyası seç'; +$wb['btn_save_txt'] = 'Seçili dil dosyasını içe aktar'; +$wb['language_overwrite_txt'] = 'Eğer mevcutsa, üstüne yaz.'; +$wb['btn_cancel_txt'] = 'Geri'; +$wb['ignore_version_txt'] = 'Skip ISPConfig version check'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng new file mode 100644 index 0000000..833ce59 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Dil dosyası editörü'; +$wb['language_select_txt'] = 'Dil seç'; +$wb['module_txt'] = 'Modül'; +$wb['lang_file_txt'] = 'Dil dosyası'; +$wb['lang_file_date_txt'] = 'Son değişiklik'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng new file mode 100644 index 0000000..5d918ef --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['username_txt'] = 'Kullanıcı adı:'; +$wb['password_txt'] = 'Şifre:'; +$wb['function_txt'] = 'Fonksiyonlar:'; +$wb['username_error_unique'] = 'Bu kullanıcı adı zaten var'; +$wb['username_error_empty'] = 'Kullanıcı adı boş olamaz'; +$wb['password_error_empty'] = 'Şifre boş olamaz'; +$wb['password_strength_txt'] = 'Şifre Gücü:'; +$wb['Mail domain functions'] = 'Mail domain functions'; +$wb['Mail user functions'] = 'Mail user functions'; +$wb['Mail alias functions'] = 'Mail alias functions'; +$wb['Mail forward functions'] = 'Mail forward functions'; +$wb['Mail catchall functions'] = 'Mail catchall functions'; +$wb['Mail transport functions'] = 'Mail transport functions'; +$wb['Mail whitelist functions'] = 'Mail whitelist functions'; +$wb['Mail blacklist functions'] = 'Mail blacklist functions'; +$wb['Mail spamfilter user functions'] = 'Mail spamfilter user functions'; +$wb['Mail spamfilter policy functions'] = 'Mail spamfilter policy functions'; +$wb['Mail fetchmail functions'] = 'Mail fetchmail functions'; +$wb['Mail user filter functions'] = 'Mail user filter functions'; +$wb['Mail filter functions'] = 'Mail filter functions'; +$wb['Client functions'] = 'Client functions'; +$wb['Sites cron functions'] = 'Sites cron functions'; +$wb['Sites database functions'] = 'Sites database functions'; +$wb['Sites FTP-User functions'] = 'Sites FTP-User functions'; +$wb['Sites Shell-User functions'] = 'Sites Shell-User functions'; +$wb['Sites Domain functions'] = 'Sites Domain functions'; +$wb['Sites Aliasdomain functions'] = 'Sites Aliasdomain functions'; +$wb['Sites Subdomain functions'] = 'Sites Subdomain functions'; +$wb['DNS zone functions'] = 'DNS zone functions'; +$wb['DNS a functions'] = 'DNS a functions'; +$wb['DNS aaaa functions'] = 'DNS aaaa functions'; +$wb['DNS alias functions'] = 'DNS alias functions'; +$wb['DNS cname functions'] = 'DNS cname functions'; +$wb['DNS hinfo functions'] = 'DNS hinfo functions'; +$wb['DNS mx functions'] = 'DNS mx functions'; +$wb['DNS ns functions'] = 'DNS ns functions'; +$wb['DNS ptr functions'] = 'DNS ptr functions'; +$wb['DNS rp functions'] = 'DNS rp functions'; +$wb['DNS srv functions'] = 'DNS srv functions'; +$wb['DNS txt functions'] = 'DNS txt functions'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng new file mode 100644 index 0000000..eec9ef5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Uzak Kullanıcılar'; +$wb['list_desc_txt'] = ''; +$wb['add_new_record_txt'] = 'Yeni kullanıcı'; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = 'Kullanıcı adı'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server.lng new file mode 100644 index 0000000..73ae1df --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server.lng @@ -0,0 +1,13 @@ +<?php +$wb['config_txt'] = 'konfigurasyon'; +$wb['server_name_txt'] = 'Sunucu adı'; +$wb['mail_server_txt'] = 'Mail sunucusu'; +$wb['web_server_txt'] = 'Web sunucusu'; +$wb['dns_server_txt'] = 'DNS sunucusu'; +$wb['file_server_txt'] = 'Dosya sunucusu'; +$wb['db_server_txt'] = 'VT sunucusu'; +$wb['vserver_server_txt'] = 'VServer sunucusu'; +$wb['active_txt'] = 'Aktif'; +$wb['mirror_server_id_txt'] = 'Is mirror of Server'; +$wb['- None -'] = '- None -'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng new file mode 100644 index 0000000..40f08d5 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng @@ -0,0 +1,68 @@ +<?php +$wb['jailkit_chroot_home_txt'] = 'Jailkit chroot home'; +$wb['jailkit_chroot_app_sections_txt'] = 'Jailkit chroot app sections'; +$wb['jailkit_chroot_app_programs_txt'] = 'Jailkit chrooted applications'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb['website_path_txt'] = 'Website yolu'; +$wb['website_symlinks_txt'] = 'Website symlinks'; +$wb['website_basedir_txt'] = 'Website klasörü'; +$wb['vhost_conf_dir_txt'] = 'Vhost config dir'; +$wb['vhost_conf_enabled_dir_txt'] = 'Vhost config enabled dir'; +$wb['getmail_config_dir_txt'] = 'Getmail config dir'; +$wb['fastcgi_starter_path_txt'] = 'FastCGI starter path'; +$wb['fastcgi_starter_script_txt'] = 'FastCGI starter script'; +$wb['fastcgi_alias_txt'] = 'FastCGI Alias'; +$wb['fastcgi_phpini_path_txt'] = 'FastCGI php.ini Path'; +$wb['fastcgi_children_txt'] = 'FastCGI Children'; +$wb['fastcgi_max_requests_txt'] = 'FastCGI max. Requests'; +$wb['fastcgi_bin_txt'] = 'FastCGI Bin'; +$wb['module_txt'] = 'Modül'; +$wb['maildir_path_txt'] = 'Mail dizini yolu'; +$wb['homedir_path_txt'] = 'Kullanıcı dizini yolu'; +$wb['mailuser_uid_txt'] = 'Mail kullanıcısı UID'; +$wb['mailuser_gid_txt'] = 'Mail kullanıcısı GID'; +$wb['mailuser_name_txt'] = 'Mail kullanıcısı Adı'; +$wb['mailuser_group_txt'] = 'Mail kullanıcısı Grubu'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost Kullanıcı'; +$wb['relayhost_password_txt'] = 'Relayhost Şifre'; +$wb['mailbox_size_limit_txt'] = 'Mail kutusu boyutu'; +$wb['message_size_limit_txt'] = 'Mesaj boyutu'; +$wb['ip_address_txt'] = 'IP Adresleri'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['auto_network_configuration_txt'] = 'Ağ Konfigurasyonu'; +$wb['ip_address_error_wrong'] = 'Geçersiz IP adresi formatı.'; +$wb['netmask_error_wrong'] = 'Geçersiz Netmask formatı.'; +$wb['gateway_error_wrong'] = 'Geçersiz Gateway formatı.'; +$wb['hostname_error_empty'] = 'Hostname boş.'; +$wb['nameservers_error_empty'] = 'Nameserver boş.'; +$wb['config_dir_txt'] = 'Config dizini'; +$wb['init_script_txt'] = 'Cron init script name'; +$wb['crontab_dir_txt'] = 'Path for individual crontabs'; +$wb['wget_txt'] = 'Path to wget program'; +$wb['web_user_txt'] = 'Apache kullanıcısı'; +$wb['web_group_txt'] = 'Apache grubu'; +$wb['security_level_txt'] = 'Güvenlik seviyesi'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['apps_vhost_port_txt'] = 'Apps-vhost port'; +$wb['apps_vhost_ip_txt'] = 'Apps-vhost IP'; +$wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain'; +$wb['bind_user_txt'] = 'BIND User'; +$wb['bind_group_txt'] = 'BIND Group'; +$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory'; +$wb['named_conf_path_txt'] = 'BIND named.conf path'; +$wb['bind_user_error_empty'] = 'BIND user is empty.'; +$wb['bind_group_error_empty'] = 'BIND group is empty.'; +$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.'; +$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.'; +$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.'; +$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax'; +$wb['pop3_imap_daemon_txt'] = 'POP3/IMAP Daemon'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +$wb['php_open_basedir_error_empty'] = 'PHP open_basedir is empty.'; +$wb['htaccess_allow_override_txt'] = '.htaccess AllowOverride'; +$wb['htaccess_allow_override_error_empty'] = '.htaccess AllowOverride is empty.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng new file mode 100644 index 0000000..b3c74bd --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng @@ -0,0 +1,4 @@ +<?php +$wb['list_head_txt'] = 'Sunucu Konfigurasyonu'; +$wb['server_name_txt'] = 'Sunucu'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng new file mode 100644 index 0000000..7112f4e --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng @@ -0,0 +1,7 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['ip_address_txt'] = 'IP Adresleri'; +$wb['virtualhost_txt'] = 'HTTP NameVirtualHost'; +$wb['ip_error_wrong'] = 'The IP address is invalid'; +$wb['ip_error_unique'] = 'The IP address must be unique'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng new file mode 100644 index 0000000..c931986 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'IP Adresleri'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['ip_address_txt'] = 'IP Adresleri'; +$wb['add_new_record_txt'] = 'Yeni IP Adresi'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng new file mode 100644 index 0000000..7d689ce --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Sunucu'; +$wb['server_name_txt'] = 'İsim'; +$wb['mail_server_txt'] = 'Mail'; +$wb['web_server_txt'] = 'Web'; +$wb['dns_server_txt'] = 'DNS'; +$wb['file_server_txt'] = 'Dosya'; +$wb['db_server_txt'] = 'DB'; +$wb['vserver_server_txt'] = 'VServer'; +$wb['add_new_record_txt'] = 'Yeni Sunucu'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng new file mode 100644 index 0000000..46726f7 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Yazılım paketleri'; +$wb['installed_txt'] = 'Durum'; +$wb['package_title_txt'] = 'Paket'; +$wb['package_description_txt'] = 'Açıklama'; +$wb['action_txt'] = 'Eylem'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng new file mode 100644 index 0000000..67ce387 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng @@ -0,0 +1,7 @@ +<?php +$wb['repo_name_txt'] = 'Depo'; +$wb['repo_url_txt'] = 'URL'; +$wb['repo_username_txt'] = 'Kullanıcı (isteğe bağlı)'; +$wb['repo_password_txt'] = 'Şifre (isteğe bağlı)'; +$wb['active_txt'] = 'Aktif'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng new file mode 100644 index 0000000..a37f2af --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Depo'; +$wb['active_txt'] = 'Aktif'; +$wb['repo_name_txt'] = 'Depo'; +$wb['repo_url_txt'] = 'URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng new file mode 100644 index 0000000..3f77e54 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Yazılım güncelleştirmeleri'; +$wb['server_select_txt'] = 'Sunucu seç'; +$wb['installed_txt'] = 'Eylem'; +$wb['update_title_txt'] = 'Güncelleme'; +$wb['version_txt'] = 'Versiyon'; +$wb['action_txt'] = 'Eylem'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng new file mode 100644 index 0000000..980811d --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng @@ -0,0 +1,15 @@ +<?php +$wb['warning'] = 'Bu değerleri dikkatlice değiştirin! Sistemde birden fazla müşteri varsa, ön ekleri kaldırmayın.'; +$wb['dbname_prefix_txt'] = 'Veritabanı ismi ön eki'; +$wb['dbuser_prefix_txt'] = 'Veritabanı kullanıcısı ön eki'; +$wb['shelluser_prefix_txt'] = 'Shell kullanıcısı ön eki'; +$wb['ftpuser_prefix_txt'] = 'FTP kullanıcısı ön eki'; +$wb['dbname_prefix_error_regex'] = 'Veritabanı ismi ön ekinde izin verilmeyen karakterler'; +$wb['dbuser_prefix_error_regex'] = 'Veritabanı kullanıcısı ön ekinde izin verilmeyen karakterler'; +$wb['ftpuser_prefix_error_regex'] = 'FTP kullanıcısı ön ekinde izin verilmeyen karakterler'; +$wb['shelluser_prefix_error_regex'] = 'Shell kullanıcısı ön ekinde izin verilmeyen karakterler'; +$wb['dblist_phpmyadmin_link_txt'] = 'VT listesinde phpmyadmine link ver'; +$wb['mailboxlist_webmail_link_txt'] = 'Mail kutusunda webmaile link ver'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_users.lng b/interface/ispconfig/interface/admin/lib/lang/tr_users.lng new file mode 100644 index 0000000..3b8f059 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_users.lng @@ -0,0 +1,28 @@ +<?php +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['username_err'] = 'Kullanıcı adı çok uzun yada izin verilmeyen karakterler içermekte.'; +$wb['username_empty'] = 'Kullanıcı adı boş.'; +$wb['username_unique'] = 'Bu isimde bir kullanıcı zaten var.'; +$wb['passwort_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['modules_txt'] = 'Modül'; +$wb['startmodule_txt'] = 'Başlangıç modülü'; +$wb['app_theme_txt'] = 'Tasarım'; +$wb['typ_txt'] = 'Çeşit'; +$wb['active_txt'] = 'Aktif'; +$wb['language_txt'] = 'Dil'; +$wb['name_txt'] = 'İsim'; +$wb['vorname_txt'] = 'Takma ad'; +$wb['unternehmen_txt'] = 'Şirket'; +$wb['strasse_txt'] = 'Cadde'; +$wb['ort_txt'] = 'Şehir'; +$wb['plz_txt'] = 'Posta kodu'; +$wb['land_txt'] = 'Ülke'; +$wb['email_txt'] = 'Email'; +$wb['url_txt'] = 'Url'; +$wb['telefon_txt'] = 'Telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['groups_txt'] = 'Gruplar'; +$wb['default_group_txt'] = 'Varsayılan Grup'; +$wb['startmodule_err'] = 'Başlangıç modülü, modüllerin arasında değil.'; +?> diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng new file mode 100644 index 0000000..8d1e038 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Kullanıcılar'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['name_txt'] = 'İsim'; +$wb['vorname_txt'] = 'Takma ad'; +$wb['ort_txt'] = 'şehir'; +$wb['add_new_record_txt'] = 'Yeni Kullanıcı'; +$wb['warning_txt'] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> diff --git a/interface/ispconfig/interface/admin/lib/module.conf.php b/interface/ispconfig/interface/admin/lib/module.conf.php new file mode 100644 index 0000000..b6a6c57 --- /dev/null +++ b/interface/ispconfig/interface/admin/lib/module.conf.php @@ -0,0 +1,174 @@ +<?php + +global $conf; + +$module['name'] = 'admin'; +$module['title'] = 'top_menu_system'; +$module['template'] = 'module.tpl.htm'; +$module['startpage'] = 'admin/server_list.php'; +$module['tab_width'] = '60'; + + +$items[] = array( 'title' => 'Add user', + 'target' => 'content', + 'link' => 'admin/users_edit.php'); + +$items[] = array( 'title' => 'Edit user', + 'target' => 'content', + 'link' => 'admin/users_list.php'); + + +$module['nav'][] = array( 'title' => 'CP Users', + 'open' => 1, + 'items' => $items); + + +// cleanup +unset($items); +/* +$items[] = array( 'title' => 'Add group', + 'target' => 'content', + 'link' => 'admin/groups_edit.php'); + +$items[] = array( 'title' => 'Edit group', + 'target' => 'content', + 'link' => 'admin/groups_list.php'); + + +$module['nav'][] = array( 'title' => 'Groups', + 'open' => 1, + 'items' => $items); + + +// cleanup +unset($items); +*/ +/* +$items[] = array( 'title' => 'Add server', + 'target' => 'content', + 'link' => 'admin/server_edit.php'); +*/ +$items[] = array( 'title' => 'Server Services', + 'target' => 'content', + 'link' => 'admin/server_list.php'); + +$items[] = array( 'title' => 'Server Config', + 'target' => 'content', + 'link' => 'admin/server_config_list.php'); + +/* +$items[] = array( 'title' => 'Add Server IP', + 'target' => 'content', + 'link' => 'admin/server_ip_edit.php'); +*/ +$items[] = array( 'title' => 'Edit Server IP', + 'target' => 'content', + 'link' => 'admin/server_ip_list.php'); + + +$items[] = array( 'title' => 'Interface Config', + 'target' => 'content', + 'link' => 'admin/system_config_edit.php?id=1'); + +$module['nav'][] = array( 'title' => 'System', + 'open' => 1, + 'items' => $items); +// cleanup +unset($items); + + +$items[] = array( 'title' => 'Firewall', + 'target' => 'content', + 'link' => 'admin/firewall_list.php'); + + +$module['nav'][] = array( 'title' => 'Firewall', + 'open' => 1, + 'items' => $items); + + +// cleanup +unset($items); + + +$items[] = array( 'title' => 'Repositories', + 'target' => 'content', + 'link' => 'admin/software_repo_list.php'); + +$items[] = array( 'title' => 'Packages', + 'target' => 'content', + 'link' => 'admin/software_package_list.php'); + +$items[] = array( 'title' => 'Updates', + 'target' => 'content', + 'link' => 'admin/software_update_list.php'); + +$module['nav'][] = array( 'title' => 'Software', + 'open' => 1, + 'items' => $items); + + +// cleanup +unset($items); + +$items[] = array( 'title' => 'Languages', + 'target' => 'content', + 'link' => 'admin/language_list.php'); + +$items[] = array( 'title' => 'New Language', + 'target' => 'content', + 'link' => 'admin/language_add.php'); + +$items[] = array( 'title' => 'Merge', + 'target' => 'content', + 'link' => 'admin/language_complete.php'); + +$items[] = array( 'title' => 'Export', + 'target' => 'content', + 'link' => 'admin/language_export.php'); + +$items[] = array( 'title' => 'Import', + 'target' => 'content', + 'link' => 'admin/language_import.php'); + +$module['nav'][] = array( 'title' => 'Language Editor', + 'open' => 1, + 'items' => $items); + + +// cleanup +unset($items); + +$items[] = array( 'title' => 'Add user', + 'target' => 'content', + 'link' => 'admin/remote_user_edit.php'); + +$items[] = array( 'title' => 'Edit user', + 'target' => 'content', + 'link' => 'admin/remote_user_list.php'); + + +$module['nav'][] = array( 'title' => 'Remote Users', + 'open' => 1, + 'items' => $items); + +// cleanup +unset($items); + +// Getting the admin options from other modules +$modules = explode(',', $_SESSION['s']['user']['modules']); +if(is_array($modules)) { + foreach($modules as $mt) { + if(is_file($mt.'/lib/admin.conf.php')) { + $options = array(); + include_once(ISPC_WEB_PATH."/$mt/lib/admin.conf.php"); + if(is_array($options)) { + foreach($options as $opt) { + $module['nav'][] = $opt; + } + } + } + } +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/firewall.list.php b/interface/ispconfig/interface/admin/list/firewall.list.php new file mode 100644 index 0000000..ba3fb06 --- /dev/null +++ b/interface/ispconfig/interface/admin/list/firewall.list.php @@ -0,0 +1,93 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "firewall"; + +// Database table +$liste["table"] = "firewall"; + +// Index index field of the database table +$liste["table_idx"] = "firewall_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "firewall_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "firewall_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "firewall_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND db_server = 1 ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "tcp_port", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "udp_port", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/groups.list.php b/interface/ispconfig/interface/admin/list/groups.list.php new file mode 100644 index 0000000..c5e8c4d --- /dev/null +++ b/interface/ispconfig/interface/admin/list/groups.list.php @@ -0,0 +1,61 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of list +$liste['name'] = 'groups'; + +//* Database table +$liste['table'] = 'sys_group'; + +//* Primary index column +$liste['table_idx'] = 'groupid'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script file for listing +$liste['file'] = 'groups_list.php'; + +//* Script file to edit +$liste['edit_file'] = 'groups_edit.php'; + +//* Script file for deleting +$liste['delete_file'] = 'groups_del.php'; + +//* Paging Template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'no'; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste['item'][] = array( 'field' => 'name', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +$liste['item'][] = array( 'field' => 'description', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/remote_user.list.php b/interface/ispconfig/interface/admin/list/remote_user.list.php new file mode 100644 index 0000000..31ef652 --- /dev/null +++ b/interface/ispconfig/interface/admin/list/remote_user.list.php @@ -0,0 +1,65 @@ +<?php + +// Name of the list +$liste['name'] = 'remote_user'; + +// Database table +$liste['table'] = 'remote_user'; + +// Index index field of the database table +$liste['table_idx'] = 'userid'; + +// Search Field Prefix +$liste['search_prefix'] = 'search_'; + +// Records per page +$liste['records_per_page']= 15; + +// Script File of the list +$liste['file'] = 'remote_user_list.php'; + +// Script file of the edit form +$liste['edit_file'] = 'remote_user_edit.php'; + +// Script File of the delete script +$liste['delete_file'] = 'remote_user_del.php'; + +// Paging Template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +// Enable auth +$liste['auth'] = 'yes'; + + +//****** Search fields + +$liste['item'][] = array( + 'field' => 'remote_userid', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => '=', + 'prefix' => '', + 'suffix' => '', + 'width' => '', + 'datasource' => array( + 'type' => 'SQL', + 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username', + 'keyfield' => 'remote_userid', + 'valuefield' => 'remote_userid' + ), + 'value' => '' + ); + +$liste['item'][] = array( + 'field' => 'remote_username', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => '' + ); + +?> + diff --git a/interface/ispconfig/interface/admin/list/server.list.php b/interface/ispconfig/interface/admin/list/server.list.php new file mode 100644 index 0000000..90bccf1 --- /dev/null +++ b/interface/ispconfig/interface/admin/list/server.list.php @@ -0,0 +1,110 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of the list +$liste['name'] = 'server'; + +//* Database table +$liste['table'] = 'server'; + +//* Index index field of the database table +$liste['table_idx'] = 'server_id'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script File of the list +$liste['file'] = 'server_list.php'; + +//* Script file of the edit form +$liste['edit_file'] = 'server_edit.php'; + +//* Script File of the delete script +$liste['delete_file'] = 'server_del.php'; + +//* Paging Template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'yes'; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste['item'][] = array( 'field' => 'server_name', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => ''); + +$liste['item'][] = array( 'field' => 'mail_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste['item'][] = array( 'field' => 'web_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste['item'][] = array( 'field' => 'dns_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste['item'][] = array( 'field' => 'file_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste['item'][] = array( 'field' => 'db_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste['item'][] = array( 'field' => 'vserver_server', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/server_config.list.php b/interface/ispconfig/interface/admin/list/server_config.list.php new file mode 100644 index 0000000..c0c20e5 --- /dev/null +++ b/interface/ispconfig/interface/admin/list/server_config.list.php @@ -0,0 +1,60 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "server_config"; + +// Database table +$liste["table"] = "server"; + +// Index index field of the database table +$liste["table_idx"] = "server_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "server_config_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "server_config_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "server_config_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "server_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/server_ip.list.php b/interface/ispconfig/interface/admin/list/server_ip.list.php new file mode 100644 index 0000000..aacebc0 --- /dev/null +++ b/interface/ispconfig/interface/admin/list/server_ip.list.php @@ -0,0 +1,68 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of list +$liste['name'] = 'server_ip'; + +//* Database table +$liste['table'] = 'server_ip'; + +//* Primary index column +$liste['table_idx'] = 'server_ip_id'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script file for listing +$liste['file'] = 'server_ip_list.php'; + +//* Script file to edit +$liste['edit_file'] = 'server_ip_edit.php'; + +//* Script file to delete +$liste['delete_file'] = 'server_ip_del.php'; + +//* Paging template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'no'; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste['item'][] = array( 'field' => 'server_id', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => '', + 'value' => ''); + +$liste['item'][] = array( 'field' => 'ip_address', + 'datatype' => 'VARCHAR', + 'op' => '=', + 'prefix' => '', + 'suffix' => '', + 'width' => ''); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/software_repo.list.php b/interface/ispconfig/interface/admin/list/software_repo.list.php new file mode 100644 index 0000000..a9be62d --- /dev/null +++ b/interface/ispconfig/interface/admin/list/software_repo.list.php @@ -0,0 +1,78 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "software_repo"; + +// Database table +$liste["table"] = "software_repo"; + +// Index index field of the database table +$liste["table_idx"] = "software_repo_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "software_repo_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "software_repo_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "software_repo_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste["item"][] = array( 'field' => "repo_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "repo_url", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/list/users.list.php b/interface/ispconfig/interface/admin/list/users.list.php new file mode 100644 index 0000000..f53e03b --- /dev/null +++ b/interface/ispconfig/interface/admin/list/users.list.php @@ -0,0 +1,75 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of the list +$liste['name'] = 'users'; + +//* Database table +$liste['table'] = 'sys_user'; + +//* Primary index column +$liste['table_idx'] = 'userid'; + +//* Search column prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script file for list +$liste['file'] = 'users_list.php'; + +//* Script file to edit +$liste['edit_file'] = 'users_edit.php'; + +//* Script file to delete +$liste['delete_file'] = 'users_del.php'; + +//* Paging template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'no'; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste['item'][] = array( 'field' => 'username', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +$liste['item'][] = array( 'field' => 'vorname', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +$liste['item'][] = array( 'field' => 'name', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +$liste['item'][] = array( 'field' => 'ort', + 'datatype' => 'VARCHAR', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => ''); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/login_as.php b/interface/ispconfig/interface/admin/login_as.php new file mode 100644 index 0000000..0745c62 --- /dev/null +++ b/interface/ispconfig/interface/admin/login_as.php @@ -0,0 +1,84 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/* Check permissions for module */ +$app->auth->check_module_permissions('admin'); + +/* for security reasons ONLY the admin can login as other user */ +if ($_SESSION["s"]["user"]["typ"] != 'admin') { + die ("You don't have the right to login as other user!"); +} + +/* get the id of the user (must be int!) */ +if (!isset($_GET['id']) && !isset($_GET['cid'])){ + die ("No user selected!"); +} + +if(isset($_GET['id'])) { + $userId = intval($_GET['id']); + $backlink = 'admin/users_list.php'; +} else { + $client_id = intval($_GET['cid']); + $tmp_client = $app->db->queryOneRecord("SELECT username FROM client WHERE client_id = $client_id"); + $tmp_sys_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE username = '".$app->db->quote($tmp_client['username'])."'"); + $userId = $tmp_sys_user['userid']; + unset($tmp_client); + unset($tmp_sys_user); + $backlink = 'client/client_list.php'; +} + +/* + * Get the data to login as user x + */ +$dbData = $app->db->queryOneRecord( + "SELECT username, passwort FROM sys_user WHERE userid = " . $userId); + +/* + * Now generate the login-Form + */ +echo ' + <br /> <br /> <br /> <br /> + Do you want to login as user ' . $dbData['username'] . '?<br /> + If you do so, you can "go back" by clicking at logout.<br /> + <div style="visibility:hidden"> + <input type="text" name="username" value="' . $dbData['username'] . '" /> + <input type="password" name="passwort" value="' . $dbData['passwort'] .'" /> + </div> + <input type="hidden" name="s_mod" value="login" /> + <input type="hidden" name="s_pg" value="index" /> + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="Yes, login as Client" onClick="submitLoginForm(' . "'pageForm'" . ');"><span>Yes, login as Client</span></button> + <button class="negative iconstxt icoNegative" type="button" value="No, back to list" onClick="loadContent('. "'$backlink'" . ');"><span>No, back to list</span></button> + </div> +'; +?> diff --git a/interface/ispconfig/interface/admin/remote_user_del.php b/interface/ispconfig/interface/admin/remote_user_del.php new file mode 100644 index 0000000..74352ca --- /dev/null +++ b/interface/ispconfig/interface/admin/remote_user_del.php @@ -0,0 +1,62 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/remote_user.list.php"; +$tform_def_file = "form/remote_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('tpl,tform'); +$app->load('tform_actions'); + +// Create a class page_action that extends the tform_actions base class + +class page_action extends tform_actions { + + + // Customisations for the page actions will be defined here + +} +$page = new page_action; +$page->onDelete(); + +?> diff --git a/interface/ispconfig/interface/admin/remote_user_edit.php b/interface/ispconfig/interface/admin/remote_user_edit.php new file mode 100644 index 0000000..5a3fc70 --- /dev/null +++ b/interface/ispconfig/interface/admin/remote_user_edit.php @@ -0,0 +1,43 @@ +<?php + +// Set the path to the form definition file. +$tform_def_file = 'form/remote_user.tform.php'; + +// include the core configuration and application classes +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Check the module permissions and redirect if not allowed. +if(!stristr($_SESSION['s']['user']['modules'],'admin')) { + header('Location: ../index.php'); + die; +} + +// Load the templating and form classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +// Create a class page_action that extends the tform_actions base class +class page_action extends tform_actions { + + //* Customisations for the page actions will be defined here + function onShow() { + global $app; + + // Translate the items, very bad trick... :( because the language file is not loaded yet when the form file gets parsed + foreach($app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'] as $key => $val) { + $app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'][$key] = $app->tform->lng($val).'<br>'; + } + + parent::onShow(); + } + +} + +// Create the new page object +$page = new page_action(); + +// Start the page rendering and action handling +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/admin/remote_user_list.php b/interface/ispconfig/interface/admin/remote_user_list.php new file mode 100644 index 0000000..6976112 --- /dev/null +++ b/interface/ispconfig/interface/admin/remote_user_list.php @@ -0,0 +1,24 @@ +<?php + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Path to the list definition file +$list_def_file = 'list/remote_user.list.php'; + +// Check the module permissions +if(!stristr($_SESSION['s']['user']['modules'],'admin')) { + header('Location: ../index.php'); + die(); +} + +// Loading the class +$app->uses('listform_actions'); + +// Optional limit +// $app->listform_actions->SQLExtWhere = 'type = 'alias''; + +// Start the form rendering and action ahndling +$app->listform_actions->onLoad(); + +?> diff --git a/interface/ispconfig/interface/admin/server_config_del.php b/interface/ispconfig/interface/admin/server_config_del.php new file mode 100644 index 0000000..8c0d0ab --- /dev/null +++ b/interface/ispconfig/interface/admin/server_config_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server_config.list.php"; +$tform_def_file = "form/server_config.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_config_edit.php b/interface/ispconfig/interface/admin/server_config_edit.php new file mode 100644 index 0000000..bb853b5 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_config_edit.php @@ -0,0 +1,95 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/server_config.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowEdit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + + if($app->tform->errorMessage == '') { + $app->uses('ini_parser,getconf'); + + $section = $this->active_tab; + $server_id = $this->id; + + $this->dataRecord = $app->getconf->get_server_config($server_id,$section); + } + + $record = $app->tform->getHTML($this->dataRecord, $this->active_tab,'EDIT'); + + $record['id'] = $this->id; + $app->tpl->setVar($record); + } + + function onUpdateSave($sql) { + global $app; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + $app->uses('ini_parser,getconf'); + + $section = $app->tform->getCurrentTab(); + $server_id = $this->id; + + $server_config_array = $app->getconf->get_server_config($server_id); + $server_config_array[$section] = $app->tform->encode($this->dataRecord,$section); + $server_config_str = $app->ini_parser->get_ini_string($server_config_array); + + $app->db->datalogUpdate('server', "config = '".$app->db->quote($server_config_str)."'", 'server_id', $server_id); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_config_list.php b/interface/ispconfig/interface/admin/server_config_list.php new file mode 100644 index 0000000..5edfba4 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_config_list.php @@ -0,0 +1,53 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server_config.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); +//$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_del.php b/interface/ispconfig/interface/admin/server_del.php new file mode 100644 index 0000000..373bb7d --- /dev/null +++ b/interface/ispconfig/interface/admin/server_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server.list.php"; +$tform_def_file = "form/server.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_edit.php b/interface/ispconfig/interface/admin/server_edit.php new file mode 100644 index 0000000..376b0f0 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_edit.php @@ -0,0 +1,86 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/server.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowEnd() { + global $app, $conf; + + // Getting Servers + $sql = "SELECT server_id,server_name FROM server WHERE 1 ORDER BY server_name"; + $mirror_servers = $app->db->queryAllRecords($sql); + $mirror_server_select = '<option value="0">'.$app->tform->lng('- None -').'</option>'; + if(is_array($mirror_servers)) { + foreach( $mirror_servers as $mirror_server) { + $selected = ($mirror_server["server_id"] == $this->dataRecord['mirror_server_id'])?'SELECTED':''; + $mirror_server_select .= "<option value='$mirror_server[server_id]' $selected>$mirror_server[server_name]</option>\r\n"; + } + } + $app->tpl->setVar("mirror_server_id",$mirror_server_select); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app; + + //* We do not want to mirror the the server itself + if($this->id == $this->dataRecord['mirror_server_id']) $this->dataRecord['mirror_server_id'] = 0; + + parent::onSubmit(); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_ip_del.php b/interface/ispconfig/interface/admin/server_ip_del.php new file mode 100644 index 0000000..38da170 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_ip_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server_ip.list.php"; +$tform_def_file = "form/server_ip.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_ip_edit.php b/interface/ispconfig/interface/admin/server_ip_edit.php new file mode 100644 index 0000000..eee5b35 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_ip_edit.php @@ -0,0 +1,73 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/server_ip.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from server_ip WHERE server_ip_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_ip_list.php b/interface/ispconfig/interface/admin/server_ip_list.php new file mode 100644 index 0000000..28c3f85 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_ip_list.php @@ -0,0 +1,54 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server_ip.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); + +$app->listform_actions->SQLOrderBy = "ORDER BY server_id, ip_address"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/server_list.php b/interface/ispconfig/interface/admin/server_list.php new file mode 100644 index 0000000..458aee0 --- /dev/null +++ b/interface/ispconfig/interface/admin/server_list.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/server.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/software_package_list.php b/interface/ispconfig/interface/admin/software_package_list.php new file mode 100644 index 0000000..a44463d --- /dev/null +++ b/interface/ispconfig/interface/admin/software_package_list.php @@ -0,0 +1,169 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +//* Get the latest packages from the repositorys and insert them in the local database +$packages_added = 0; +$repos = $app->db->queryAllRecords("SELECT software_repo_id, repo_url, repo_username, repo_password FROM software_repo WHERE active = 'y'"); +if(is_array($repos)) { + foreach($repos as $repo) { + $client = new SoapClient(null, array('location' => $repo['repo_url'], + 'uri' => $repo['repo_url'])); + + $packages = $client->get_packages($repo['repo_username'], $repo['repo_password']); + if(is_array($packages)) { + foreach($packages as $p) { + $package_name = $app->db->quote($p['name']); + $tmp = $app->db->queryOneRecord("SELECT package_id FROM software_package WHERE package_name = '$package_name'"); + if(empty($tmp['package_id'])) { + + $package_title = $app->db->quote($p['title']); + $package_description = $app->db->quote($p['description']); + $software_repo_id = intval($repo['software_repo_id']); + $package_type = $app->db->quote($p['type']); + + $sql = "INSERT INTO software_package (software_repo_id, package_name, package_title, package_description,package_type) VALUES ($software_repo_id, '$package_name', '$package_title', '$package_description','$package_type')"; + $app->db->query($sql); + $packages_added++; + } + } + } + + $packages = $app->db->queryAllRecords("SELECT software_package.package_name, v1, v2, v3, v4 FROM software_package LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) GROUP BY package_name ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC"); + if(is_array($packages)) { + foreach($packages as $p) { + + $version = $p['v1'].'.'.$p['v2'].'.'.$p['v3'].'.'.$p['v4']; + $updates = $client->get_updates($p['package_name'], $version,$repo['repo_username'], $repo['repo_password']); + + if(is_array($updates)) { + foreach($updates as $u) { + + $version_array = explode('.',$u['version']); + $v1 = intval($version_array[0]); + $v2 = intval($version_array[1]); + $v3 = intval($version_array[2]); + $v4 = intval($version_array[3]); + + $package_name = $app->db->quote($u['package_name']); + $software_repo_id = intval($repo['software_repo_id']); + $update_url = $app->db->quote($u['url']); + $update_md5 = $app->db->quote($u['md5']); + $update_dependencies = (isset($u['dependencies']))?$app->db->quote($u['dependencies']):''; + $update_title = $app->db->quote($u['title']); + $type = $app->db->quote($u['type']); + + // Check that we do not have this update in the database yet + $sql = "SELECT * FROM software_update WHERE package_name = '$package_name' and v1 = '$v1' and v2 = '$v2' and v3 = '$v3' and v4 = '$v4'"; + $tmp = $app->db->queryOneRecord($sql); + if(!isset($tmp['software_update_id'])) { + // Insert the update in the datbase + $sql = "INSERT INTO software_update (software_repo_id, package_name, update_url, update_md5, update_dependencies, update_title, v1, v2, v3, v4, type) + VALUES ($software_repo_id, '$package_name', '$update_url', '$update_md5', '$update_dependencies', '$update_title', '$v1', '$v2', '$v3', '$v4', '$type')"; + //die($sql); + $app->db->query($sql); + } + + } + } + } + } + } +} + +//* Install packages, if GET Request +if(isset($_GET['action']) && $_GET['action'] == 'install' && $_GET['package'] != '' && $_GET['server_id'] > 0) { + $package_name = $app->db->quote($_GET['package']); + $server_id = intval($_GET['server_id']); + $sql = "SELECT software_update_id, package_name, update_title FROM software_update WHERE type = 'full' AND package_name = '$package_name' ORDER BY v1 DESC, v2 DESC, v3 DESC, v4 DESC LIMIT 0,1"; + $tmp = $app->db->queryOneRecord($sql); + $software_update_id = $tmp['software_update_id']; + + $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installing')"; + // $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installed')"; + $app->db->datalogInsert('software_update_inst', $insert_data, 'software_update_inst_id'); + +} + + + +// Show the list in the interface +// Loading the template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/software_package_list.htm'); + + +$servers = $app->db->queryAllRecords('SELECT server_id, server_name FROM server ORDER BY server_name'); +$packages = $app->db->queryAllRecords('SELECT * FROM software_package'); +if(is_array($packages)) { + foreach($packages as $key => $p) { + $installed_txt = ''; + foreach($servers as $s) { + $inst = $app->db->queryOneRecord("SELECT * FROM software_update, software_update_inst WHERE software_update_inst.software_update_id = software_update.software_update_id AND software_update_inst.package_name = '".addslashes($p["package_name"])."' AND server_id = '".$s["server_id"]."'"); + $version = $inst['v1'].'.'.$inst['v2'].'.'.$inst['v3'].'.'.$inst['v4']; + + if($inst['status'] == 'installed') { + $installed_txt .= $s['server_name'].": Installed version $version<br />"; + } elseif ($inst['status'] == 'installing') { + $installed_txt .= $s['server_name'].": Installation in progress<br />"; + } elseif ($inst['status'] == 'failed') { + $installed_txt .= $s['server_name'].": Installation failed<br />"; + } elseif ($inst['status'] == 'deleting') { + $installed_txt .= $s['server_name'].": Deletion in progress<br />"; + } else { + $installed_txt .= $s['server_name'].": <a href=\"#\" onClick=\"loadContent('admin/software_package_list.php?action=install&package=".$p["package_name"]."&server_id=".$s["server_id"]."');\">Install now</a><br />"; + } + } + $packages[$key]['installed'] = $installed_txt; + } +} + + + +$app->tpl->setLoop('records',$packages); + +include_once('lib/lang/en_software_package_list.lng'); +$app->tpl->setVar($wb); + + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/software_repo_del.php b/interface/ispconfig/interface/admin/software_repo_del.php new file mode 100644 index 0000000..6ee0e9d --- /dev/null +++ b/interface/ispconfig/interface/admin/software_repo_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/software_repo.list.php"; +$tform_def_file = "form/software_repo.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/software_repo_edit.php b/interface/ispconfig/interface/admin/software_repo_edit.php new file mode 100644 index 0000000..4839812 --- /dev/null +++ b/interface/ispconfig/interface/admin/software_repo_edit.php @@ -0,0 +1,58 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/software_repo.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/software_repo_list.php b/interface/ispconfig/interface/admin/software_repo_list.php new file mode 100644 index 0000000..0f7bd8a --- /dev/null +++ b/interface/ispconfig/interface/admin/software_repo_list.php @@ -0,0 +1,52 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/software_repo.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/software_update_list.php b/interface/ispconfig/interface/admin/software_update_list.php new file mode 100644 index 0000000..4c7da37 --- /dev/null +++ b/interface/ispconfig/interface/admin/software_update_list.php @@ -0,0 +1,222 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +//* This is only allowed for administrators +if(!$app->auth->is_admin()) die('only allowed for administrators.'); + +//* Get the latest updates from the repositorys and insert them in the local database +$updates_added = 0; +$repos = $app->db->queryAllRecords("SELECT software_repo_id, repo_url, repo_username, repo_password FROM software_repo WHERE active = 'y'"); +if(is_array($repos)) { + foreach($repos as $repo) { + + /* + SELECT software_package.package_name, v1, v2, v3, v4 + FROM software_package + LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) + LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id ) + GROUP BY package_name + ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC + */ + + $client = new SoapClient(null, array('location' => $repo['repo_url'], + 'uri' => $repo['repo_url'])); + + $packages = $app->db->queryAllRecords("SELECT software_package.package_name, v1, v2, v3, v4 FROM software_package LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) GROUP BY package_name ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC"); + if(is_array($packages)) { + foreach($packages as $p) { + + $version = $p['v1'].'.'.$p['v2'].'.'.$p['v3'].'.'.$p['v4']; + $updates = $client->get_updates($p['package_name'], $version,$repo['repo_username'], $repo['repo_password']); + + if(is_array($updates)) { + foreach($updates as $u) { + + $version_array = explode('.',$u['version']); + $v1 = intval($version_array[0]); + $v2 = intval($version_array[1]); + $v3 = intval($version_array[2]); + $v4 = intval($version_array[3]); + + $package_name = $app->db->quote($u['package_name']); + $software_repo_id = intval($repo['software_repo_id']); + $update_url = $app->db->quote($u['url']); + $update_md5 = $app->db->quote($u['md5']); + $update_dependencies = (isset($u['dependencies']))?$app->db->quote($u['dependencies']):''; + $update_title = $app->db->quote($u['title']); + $type = $app->db->quote($u['type']); + + // Check that we do not have this update in the database yet + $sql = "SELECT * FROM software_update WHERE package_name = '$package_name' and v1 = '$v1' and v2 = '$v2' and v3 = '$v3' and v4 = '$v4'"; + $tmp = $app->db->queryOneRecord($sql); + if(!isset($tmp['software_update_id'])) { + // Insert the update in the datbase + $sql = "INSERT INTO software_update (software_repo_id, package_name, update_url, update_md5, update_dependencies, update_title, v1, v2, v3, v4, type) + VALUES ($software_repo_id, '$package_name', '$update_url', '$update_md5', '$update_dependencies', '$update_title', '$v1', '$v2', '$v3', '$v4', '$type')"; + //die($sql); + $app->db->query($sql); + } + + } + } + } + } + } +} + + +//* Install packages, if GET Request +if(isset($_GET['action']) && $_GET['action'] == 'install' && $_GET['package'] != '' && $_GET['server_id'] > 0) { + $package_name = $app->db->quote($_GET['package']); + $server_id = intval($_GET['server_id']); + $software_update_id = intval($_GET['id']); + + $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installing')"; + // $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installed')"; + $app->db->datalogInsert('software_update_inst', $insert_data, 'software_update_inst_id'); + +} + + + +// Show the list in the interface +// Loading the template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/software_update_list.htm'); + +/* +SELECT software_package.package_name, software_package.package_title, software_update.update_title, v1, v2, v3, v4, software_update_inst.status + FROM software_package + LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) + LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id ) +GROUP BY software_update.software_update_id + ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC +*/ + + + +if(isset($_POST["server_id"]) && $_POST["server_id"] > 0) { + $server_id = intval($_POST["server_id"]); +} else { + $server_id = 1; +} + +$servers = $app->db->queryAllRecords('SELECT server_id, server_name FROM server ORDER BY server_name'); +foreach($servers as $key => $server) { + if($server['server_id'] == $server_id) { + $servers[$key]['selected'] = 'selected'; + } else { + $servers[$key]['selected'] = ''; + } +} + +$app->tpl->setLoop('servers',$servers); + +$sql = "SELECT v1, v2, v3, v4, software_update.update_title, software_update.software_update_id, software_update.package_name, v1, v2, v3, v4, software_update_inst.status + FROM software_update LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id ) + WHERE server_id = $server_id + GROUP BY software_update.package_name + ORDER BY software_update.package_name ASC, v1 DESC , v2 DESC , v3 DESC , v4 DESC"; + +$installed_packages = $app->db->queryAllRecords($sql); + + +$records_out = array(); + +if(is_array($installed_packages)) { + foreach($installed_packages as $ip) { + + // Get version number of the latest installed version + $sql = "SELECT v1, v2, v3, v4 FROM software_update, software_update_inst WHERE software_update.software_update_id = software_update_inst.software_update_id AND server_id = 1 ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC LIMIT 0,1"; + $lu = $app->db->queryOneRecord($sql); + + // Get all installable updates + $sql = "SELECT * FROM software_update WHERE v1 >= $lu[v1] AND v2 >= $lu[v2] AND v3 >= $lu[v3] AND v4 >= $lu[v4] AND package_name = '$ip[package_name]' ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC"; + $updates = $app->db->queryAllRecords($sql); + //die($sql); + + if(is_array($updates)) { + // Delete the last record as it is already installed + unset($updates[count($updates)-1]); + + foreach($updates as $key => $u) { + $version = $u['v1'].'.'.$u['v2'].'.'.$u['v3'].'.'.$u['v4']; + $installed_txt = "<a href=\"#\" onClick=\"loadContent('admin/software_update_list.php?action=install&package=".$u["package_name"]."&id=".$u["software_update_id"]."&server_id=".$server_id."');\">Install Update</a><br />"; + $records_out[] = array('version' => $version, 'update_title' => $u["update_title"], 'installed' => $installed_txt); + + } + } + } +} + +/* +$updates = $app->db->queryAllRecords('SELECT software_update.update_title, software_update.software_update_id, software_update.package_name, v1, v2, v3, v4, software_update_inst.status + FROM software_update LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id ) + WHERE server_id = '.$server_id.' + GROUP BY software_update.package_name + ORDER BY software_update.package_name ASC, v1 DESC , v2 DESC , v3 DESC , v4 DESC'); + +if(is_array($updates)) { + foreach($updates as $key => $u) { + $installed_txt = ''; + + $version = $u['v1'].'.'.$u['v2'].'.'.$u['v3'].'.'.$u['v4']; + $updates[$key]['version'] = $version; + if($u['status'] == 'installed' || $u['status'] == 'installing' || $u['status'] == 'deleting') { + $installed_txt .= "Installed version $version<br />"; + } else { + $installed_txt .= "<a href=\"#\" onClick=\"loadContent('admin/software_update_list.php?action=install&package=".$u["package_name"]."&id=".$u["software_update_id"]."&server_id=".$server_id."');\">Install now</a><br />"; + } + $updates[$key]['installed'] = $installed_txt; + + } +} +*/ + + + +$app->tpl->setLoop('records',$records_out); + +include_once('lib/lang/en_software_update_list.lng'); +$app->tpl->setVar($wb); + + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/system_config_edit.php b/interface/ispconfig/interface/admin/system_config_edit.php new file mode 100644 index 0000000..14b7fcb --- /dev/null +++ b/interface/ispconfig/interface/admin/system_config_edit.php @@ -0,0 +1,97 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/system_config.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowEdit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + + if($app->tform->errorMessage == '') { + $app->uses('ini_parser,getconf'); + + $section = $this->active_tab; + $server_id = $this->id; + + $this->dataRecord = $app->getconf->get_global_config($section); + + } + + $record = $app->tform->getHTML($this->dataRecord, $this->active_tab,'EDIT'); + + $record['warning'] = $app->tform->lng('warning'); + $record['id'] = $this->id; + $app->tpl->setVar($record); + } + + function onUpdateSave($sql) { + global $app; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + $app->uses('ini_parser,getconf'); + + $section = $app->tform->getCurrentTab(); + + $server_config_array = $app->getconf->get_global_config(); + $server_config_array[$section] = $app->tform->encode($this->dataRecord,$section); + $server_config_str = $app->ini_parser->get_ini_string($server_config_array); + + $sql = "UPDATE sys_ini SET config = '".$app->db->quote($server_config_str)."' WHERE sysini_id = 1"; + $app->db->query($sql); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/templates/firewall_edit.htm b/interface/ispconfig/interface/admin/templates/firewall_edit.htm new file mode 100644 index 0000000..554f7d0 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/firewall_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_firewall"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="tcp_port">{tmpl_var name='tcp_port_txt'}</label> + <input name="tcp_port" id="tcp_port" value="{tmpl_var name='tcp_port'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="udp_port">{tmpl_var name='udp_port_txt'}</label> + <input name="udp_port" id="udp_port" value="{tmpl_var name='udp_port'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/firewall_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/firewall_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/firewall_list.htm b/interface/ispconfig/interface/admin/templates/firewall_list.htm new file mode 100644 index 0000000..53228c8 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/firewall_list.htm @@ -0,0 +1,60 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_firewall"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/firewall_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_tcp_port" scope="col"><tmpl_var name="tcp_port_txt"></th> + <th class="tbl_col_udp_port" scope="col"><tmpl_var name="udp_port_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','admin/firewall_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','admin/firewall_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_tcp_port"><input type="text" name="search_tcp_port" value="{tmpl_var name='search_tcp_port'}" /></td> + <td class="tbl_col_udp_port"><input type="text" name="search_udp_port" value="{tmpl_var name='search_udp_port'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/firewall_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('admin/firewall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('admin/firewall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_tcp_port"><a href="#" onClick="loadContent('admin/firewall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="tcp_port"}</a></td> + <td class="tbl_col_udp_port"><a href="#" onClick="loadContent('admin/firewall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="udp_port"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/firewall_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/groups_edit.htm b/interface/ispconfig/interface/admin/templates/groups_edit.htm new file mode 100644 index 0000000..6a34347 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/groups_edit.htm @@ -0,0 +1,26 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_groups"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="description">{tmpl_var name='description_txt'}</label> + <textarea name="description" id="description" rows='5' cols='30'>{tmpl_var name='description'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/groups_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/groups_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/groups_list.htm b/interface/ispconfig/interface/admin/templates/groups_list.htm new file mode 100644 index 0000000..0ae6ccb --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/groups_list.htm @@ -0,0 +1,55 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_groups"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/groups_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + <p><tmpl_var name="warning_txt"></p> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th> + <th class="tbl_col_description" scope="col"><tmpl_var name="description_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td> + <td class="tbl_col_description"><input type="text" name="search_description" value="{tmpl_var name='search_description'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/groups_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_name"><a href="#" onClick="loadContent('admin/groups_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td> + <td class="tbl_col_description"><a href="#" onClick="loadContent('admin/groups_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="description"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/groups_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_add.htm b/interface/ispconfig/interface/admin/templates/language_add.htm new file mode 100644 index 0000000..d2254c2 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_add.htm @@ -0,0 +1,29 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_add"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Language Add</legend> + <div class="ctrlHolder"> + <label for="lng_select">{tmpl_var name='language_select_txt'}</label> + <select name="lng_select" id="language" class="selectInput withicons"> + {tmpl_var name='language_option'} + </select> + </div> + <div class="ctrlHolder"> + <label for="lng_new">{tmpl_var name='language_new_txt'}</label> + <input name="lng_new" id="lng_new" value="" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + <p class="formHint">{tmpl_var name='language_new_hint_txt'}</p> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/language_add.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/language_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_complete.htm b/interface/ispconfig/interface/admin/templates/language_complete.htm new file mode 100644 index 0000000..f3492bb --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_complete.htm @@ -0,0 +1,29 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_complete"> + + <tmpl_if name="msg"> + <div id="OKMsg"><tmpl_var name="msg"></div> + </tmpl_if> + <tmpl_if name="error"> + <div id="errorMsg"><tmpl_var name="error"></div> + </tmpl_if> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Language Complete</legend> + <div class="ctrlHolder"> + <label for="lng_select">{tmpl_var name='language_select_txt'}</label> + <select name="lng_select" id="language" class="selectInput withicons"> + {tmpl_var name='language_option'} + </select> + </div> + </fieldset> + + <div class="buttonHolder buttons" style="margin-top: -100px;"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/language_complete.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/language_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_edit.htm b/interface/ispconfig/interface/admin/templates/language_edit.htm new file mode 100644 index 0000000..a0ef32e --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_edit.htm @@ -0,0 +1,29 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_edit"> + + <div class="pnl_formsarea"> + <fieldset id="wf_area_language_edit"><legend>Language File Edit: {tmpl_var name="file_path"}</legend> + <span class="wf_oneField"> + <tmpl_loop name="records"> + <span class="wf_oneField"> + <label for="records[{tmpl_var name="key"}]" class="wf_preField">{tmpl_var name="key"}</label> + <input type="text" id="records[{tmpl_var name="key"}]" name="records[{tmpl_var name="key"}]" value="{tmpl_var name='val'}" size="50" maxlength="255"> + </span> + </tmpl_loop> + </span> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="lang" value="{tmpl_var name='lang'}"> + <input type="hidden" name="lang_file" value="{tmpl_var name='lang_file'}"> + <input type="hidden" name="module" value="{tmpl_var name='module'}"> + + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/language_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/language_list.php?lng_select={tmpl_var name='lang'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_export.htm b/interface/ispconfig/interface/admin/templates/language_export.htm new file mode 100644 index 0000000..95c0520 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_export.htm @@ -0,0 +1,28 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_export"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Language Export</legend> + <div class="ctrlHolder"> + <label for="lng_select">{tmpl_var name='language_select_txt'}</label> + <select name="lng_select" id="lng_select" class="selectInput withicons"> + {tmpl_var name='language_option'} + </select> + </div> + </fieldset> + + <tmpl_if name="msg"> + <div id="OKMsg"><p><tmpl_var name="msg"></p></div> + </tmpl_if> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/language_export.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/language_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_import.htm b/interface/ispconfig/interface/admin/templates/language_import.htm new file mode 100644 index 0000000..70f44ce --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_import.htm @@ -0,0 +1,41 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_import"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Language Import</legend> + <div class="ctrlHolder"> + <label for="lng_select"><em>*</em> {tmpl_var name='language_import_txt'}</label> + <input name="file" id="file" size="30" type="file" class="fileUpload" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='language_overwrite_txt'}</p> + <div class="multiField"> + <input id="overwrite" type="checkbox" value="1" name="overwrite"/> + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='ignore_version_txt'}</p> + <div class="multiField"> + <input id="ignore_version" type="checkbox" value="1" name="ignore_version"/> + </div> + </div> + </fieldset> + + <tmpl_if name="msg"> + <div id="OKMsg"><p><tmpl_var name="msg"></p></div> + </tmpl_if> + <tmpl_if name="error"> + <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div> + </tmpl_if> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitUploadForm('pageForm','admin/language_import.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/language_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/language_list.htm b/interface/ispconfig/interface/admin/templates/language_list.htm new file mode 100644 index 0000000..9568bef --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/language_list.htm @@ -0,0 +1,47 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_language_groups"> + + <div class="pnl_toolsarea"> + <fieldset class="inlineLabels"><legend>Tools</legend> + <div class="buttons"> + <div class="ctrlHolder"> + <label for="lng_select">{tmpl_var name='language_select_txt'}</label> + <select name="lng_select" id="language" class="selectInput withicons" onChange="submitForm('pageForm','admin/language_list.php');"> + {tmpl_var name='language_option'} + </select> + </div> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_module" scope="col"><tmpl_var name="module_txt"></th> + <th class="tbl_col_lang_file" scope="col"><tmpl_var name="lang_file_txt"></th> + <th scope="col"><tmpl_var name="lang_file_date_txt"></th> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_module"><a href="#" onClick="loadContent('admin/language_edit.php?module={tmpl_var name="module"}&lang_file={tmpl_var name="lang_file"}&lang={tmpl_var name="lang"}');">{tmpl_var name="module"}</a></td> + <td class="tbl_col_lang_file"><a href="#" onClick="loadContent('admin/language_edit.php?module={tmpl_var name="module"}&lang_file={tmpl_var name="lang_file"}&lang={tmpl_var name="lang"}');">{tmpl_var name="lang_file"}</a></td> + <td><a href="#" onClick="loadContent('admin/language_edit.php?module={tmpl_var name="module"}&lang_file={tmpl_var name="lang_file"}&lang={tmpl_var name="lang"}');">{tmpl_var name="lang_file_date"}</a></td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/remote_user_edit.htm b/interface/ispconfig/interface/admin/templates/remote_user_edit.htm new file mode 100644 index 0000000..5d2c478 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/remote_user_edit.htm @@ -0,0 +1,41 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_ftp_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="remote_username">{tmpl_var name='username_txt'}</label> + <div style="float: left;">{tmpl_var name='username_prefix'} </div> + <input name="remote_username" id="username" value="{tmpl_var name='remote_username'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + + <div class="ctrlHolder"> + <label for="remote_password">{tmpl_var name='password_txt'}</label> + <input name="remote_password" id="password" value="{tmpl_var name='remote_password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='function_txt'}</p> + <div class="multiField"> + {tmpl_var name='remote_functions'} + </div> + </div> + + </fieldset> + + <input type="hidden" name="remote_userid" value="{tmpl_var name='id'}"> + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/remote_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/remote_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/remote_user_list.htm b/interface/ispconfig/interface/admin/templates/remote_user_list.htm new file mode 100644 index 0000000..972581f --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/remote_user_list.htm @@ -0,0 +1,54 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> +<br> +<div class="panel panel_list_ftp_user"> + + <div class="pnl_toolsarea"> + + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/remote_user_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + + </div> +<br> + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_remote_userid" scope="col"><tmpl_var name="parent_remote_userid_txt"></th> + <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_remote_userid"></td> + <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/remote_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_remote_userid"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_userid"}</a></td> + <td class="tbl_col_username"><a href="#" onClick="loadContent('admin/remote_user_edit.php?id={tmpl_var name='remote_userid'}');">{tmpl_var name="remote_username"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/remote_user_del.php?id={tmpl_var name='remote_userid'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> + diff --git a/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm new file mode 100644 index 0000000..066693e --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm @@ -0,0 +1,30 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="init_script">{tmpl_var name='init_script_txt'}</label> + <input name="init_script" id="init_script" value="{tmpl_var name='init_script'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="crontab_dir">{tmpl_var name='crontab_dir_txt'}</label> + <input name="crontab_dir" id="crontab_dir" value="{tmpl_var name='crontab_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="wget">{tmpl_var name='wget_txt'}</label> + <input name="wget" id="wget" value="{tmpl_var name='wget'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm new file mode 100644 index 0000000..63fae8a --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="bind_user">{tmpl_var name='bind_user_txt'}</label> + <input name="bind_user" id="bind_user" value="{tmpl_var name='bind_user'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="bind_group">{tmpl_var name='bind_group_txt'}</label> + <input name="bind_group" id="bind_group" value="{tmpl_var name='bind_group'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="bind_zonefiles_dir">{tmpl_var name='bind_zonefiles_dir_txt'}</label> + <input name="bind_zonefiles_dir" id="bind_zonefiles_dir" value="{tmpl_var name='bind_zonefiles_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="named_conf_path">{tmpl_var name='named_conf_path_txt'}</label> + <input name="named_conf_path" id="named_conf_path" value="{tmpl_var name='named_conf_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="named_conf_local_path">{tmpl_var name='named_conf_local_path_txt'}</label> + <input name="named_conf_local_path" id="named_conf_local_path" value="{tmpl_var name='named_conf_local_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm new file mode 100644 index 0000000..8551d87 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm @@ -0,0 +1,46 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="fastcgi_starter_path">{tmpl_var name='fastcgi_starter_path_txt'}</label> + <input name="fastcgi_starter_path" id="fastcgi_starter_path" value="{tmpl_var name='fastcgi_starter_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_starter_script">{tmpl_var name='fastcgi_starter_script_txt'}</label> + <input name="fastcgi_starter_script" id="fastcgi_starter_script" value="{tmpl_var name='fastcgi_starter_script'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_alias">{tmpl_var name='fastcgi_alias_txt'}</label> + <input name="fastcgi_alias" id="fastcgi_alias" value="{tmpl_var name='fastcgi_alias'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_phpini_path">{tmpl_var name='fastcgi_phpini_path_txt'}</label> + <input name="fastcgi_phpini_path" id="fastcgi_phpini_path" value="{tmpl_var name='fastcgi_phpini_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_children">{tmpl_var name='fastcgi_children_txt'}</label> + <input name="fastcgi_children" id="fastcgi_children" value="{tmpl_var name='fastcgi_children'}" size="40" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_max_requests">{tmpl_var name='fastcgi_max_requests_txt'}</label> + <input name="fastcgi_max_requests" id="fastcgi_max_requests" value="{tmpl_var name='fastcgi_max_requests'}" size="40" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="fastcgi_bin">{tmpl_var name='fastcgi_bin_txt'}</label> + <input name="fastcgi_bin" id="fastcgi_bin" value="{tmpl_var name='fastcgi_bin'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm new file mode 100644 index 0000000..fc86eb4 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="getmail_config_dir">{tmpl_var name='getmail_config_dir_txt'}</label> + <input name="getmail_config_dir" id="getmail_config_dir" value="{tmpl_var name='getmail_config_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm new file mode 100644 index 0000000..320fb87 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm @@ -0,0 +1,34 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="jailkit_chroot_home">{tmpl_var name='jailkit_chroot_home_txt'}</label> + <input name="jailkit_chroot_home" id="jailkit_chroot_home" value="{tmpl_var name='jailkit_chroot_home'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="jailkit_chroot_app_sections">{tmpl_var name='jailkit_chroot_app_sections_txt'}</label> + <input name="jailkit_chroot_app_sections" id="jailkit_chroot_app_sections" value="{tmpl_var name='jailkit_chroot_app_sections'}" size="40" maxlength="1000" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="jailkit_chroot_app_programs">{tmpl_var name='jailkit_chroot_app_programs_txt'}</label> + <input name="jailkit_chroot_app_programs" id="jailkit_chroot_app_programs" value="{tmpl_var name='jailkit_chroot_app_programs'}" size="40" maxlength="1000" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="jailkit_chroot_cron_programs">{tmpl_var name='jailkit_chroot_cron_programs_txt'}</label> + <input name="jailkit_chroot_cron_programs" id="jailkit_chroot_cron_programs" value="{tmpl_var name='jailkit_chroot_cron_programs'}" size="40" maxlength="1000" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_list.htm b/interface/ispconfig/interface/admin/templates/server_config_list.htm new file mode 100644 index 0000000..487a397 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_list.htm @@ -0,0 +1,40 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_server_config"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_server_name" scope="col"><tmpl_var name="server_name_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_server_name"><input type="text" name="search_server_name" value="{tmpl_var name='search_server_name'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/server_config_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_server_name"><a href="#" onClick="loadContent('admin/server_config_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_name"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/server_config_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="2"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm new file mode 100644 index 0000000..4f35abc --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm @@ -0,0 +1,84 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="module">{tmpl_var name='module_txt'}</label> + <select name="module" id="module" class="selectInput formLengthHalf"> + {tmpl_var name='module'} + </select> + </div> + <div class="ctrlHolder"> + <label for="maildir_path">{tmpl_var name='maildir_path_txt'}</label> + <input name="maildir_path" id="maildir_path" value="{tmpl_var name='maildir_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="homedir_path">{tmpl_var name='homedir_path_txt'}</label> + <input name="homedir_path" id="homedir_path" value="{tmpl_var name='homedir_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='pop3_imap_daemon_txt'}</p> + <div class="multiField"> + <select name="pop3_imap_daemon" id="pop3_imap_daemon" class="selectInput"> + {tmpl_var name='pop3_imap_daemon'} + </select> + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='mail_filter_syntax_txt'}</p> + <div class="multiField"> + <select name="mail_filter_syntax" id="mail_filter_syntax" class="selectInput"> + {tmpl_var name='mail_filter_syntax'} + </select> + </div> + </div> + <div class="ctrlHolder"> + <label for="mailuser_uid">{tmpl_var name='mailuser_uid_txt'}</label> + <input name="mailuser_uid" id="mailuser_uid" value="{tmpl_var name='mailuser_uid'}" size="10" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="mailuser_gid">{tmpl_var name='mailuser_gid_txt'}</label> + <input name="mailuser_gid" id="mailuser_gid" value="{tmpl_var name='mailuser_gid'}" size="10" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="mailuser_name">{tmpl_var name='mailuser_name_txt'}</label> + <input name="mailuser_name" id="mailuser_name" value="{tmpl_var name='mailuser_name'}" size="10" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="mailuser_group">{tmpl_var name='mailuser_group_txt'}</label> + <input name="mailuser_group" id="mailuser_group" value="{tmpl_var name='mailuser_group'}" size="10" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="relayhost">{tmpl_var name='relayhost_txt'}</label> + <input name="relayhost" id="relayhost" value="{tmpl_var name='relayhost'}" size="40" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="relayhost_user">{tmpl_var name='relayhost_user_txt'}</label> + <input name="relayhost_user" id="relayhost_user" value="{tmpl_var name='relayhost_user'}" size="40" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="relayhost_password">{tmpl_var name='relayhost_password_txt'}</label> + <input name="relayhost_password" id="relayhost_password" value="{tmpl_var name='relayhost_password'}" size="40" maxlength="255" type="password" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="mailbox_size_limit">{tmpl_var name='mailbox_size_limit_txt'}</label> + <input name="mailbox_size_limit" id="mailbox_size_limit" value="{tmpl_var name='mailbox_size_limit'}" size="10" maxlength="15" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="message_size_limit">{tmpl_var name='message_size_limit_txt'}</label> + <input name="message_size_limit" id="message_size_limit" value="{tmpl_var name='message_size_limit'}" size="10" maxlength="15" type="text" class="textInput formLengthLimit" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm new file mode 100644 index 0000000..361b2c7 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm @@ -0,0 +1,51 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='auto_network_configuration_txt'}</p> + <div class="multiField"> + {tmpl_var name='auto_network_configuration'} + </div> + </div> + <div class="ctrlHolder"> + <label for="ip_address">{tmpl_var name='ip_address_txt'}</label> + <input name="ip_address" id="ip_address" value="{tmpl_var name='ip_address'}" size="15" maxlength="255" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <label for="netmask">{tmpl_var name='netmask_txt'}</label> + <input name="netmask" id="netmask" value="{tmpl_var name='netmask'}" size="15" maxlength="255" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <label for="gateway">{tmpl_var name='gateway_txt'}</label> + <input name="gateway" id="gateway" value="{tmpl_var name='gateway'}" size="15" maxlength="255" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <label for="hostname">{tmpl_var name='hostname_txt'}</label> + <input name="hostname" id="hostname" value="{tmpl_var name='hostname'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="nameservers">{tmpl_var name='nameservers_txt'}</label> + <input name="nameservers" id="nameservers" value="{tmpl_var name='nameservers'}" size="40" maxlength="255" type="text" class="textInput" /> + <p class="formHint">{tmpl_var name='nameservers_hint_txt'}</p> + </div> + <div class="ctrlHolder"> + <label for="loglevel">{tmpl_var name='loglevel_txt'}</label> + <select name="loglevel" id="loglevel" class="selectInput"> + {tmpl_var name='loglevel'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm new file mode 100644 index 0000000..bf6a82a --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="config_dir">{tmpl_var name='config_dir_txt'}</label> + <input name="config_dir" id="config_dir" value="{tmpl_var name='config_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm new file mode 100644 index 0000000..6ab287b --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm @@ -0,0 +1,74 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="website_basedir">{tmpl_var name='website_basedir_txt'}</label> + <input name="website_basedir" id="website_basedir" value="{tmpl_var name='website_basedir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="website_path">{tmpl_var name='website_path_txt'}</label> + <input name="website_path" id="website_path" value="{tmpl_var name='website_path'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="website_symlinks">{tmpl_var name='website_symlinks_txt'}</label> + <input name="website_symlinks" id="website_symlinks" value="{tmpl_var name='website_symlinks'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="vhost_conf_dir">{tmpl_var name='vhost_conf_dir_txt'}</label> + <input name="vhost_conf_dir" id="vhost_conf_dir" value="{tmpl_var name='vhost_conf_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="vhost_conf_enabled_dir">{tmpl_var name='vhost_conf_enabled_dir_txt'}</label> + <input name="vhost_conf_enabled_dir" id="vhost_conf_enabled_dir" value="{tmpl_var name='vhost_conf_enabled_dir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='security_level_txt'}</p> + <div class="multiField"> + <select name="security_level" id="security_level" class="selectInput"> + {tmpl_var name='security_level'} + </select> + </div> + </div> + <div class="ctrlHolder"> + <label for="user">{tmpl_var name='web_user_txt'}</label> + <input name="user" id="user" value="{tmpl_var name='user'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="group">{tmpl_var name='web_group_txt'}</label> + <input name="group" id="group" value="{tmpl_var name='group'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label> + <input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="htaccess_allow_override">{tmpl_var name='htaccess_allow_override_txt'}</label> + <input name="htaccess_allow_override" id="htaccess_allow_override" value="{tmpl_var name='htaccess_allow_override'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="apps_vhost_port">{tmpl_var name='apps_vhost_port_txt'}</label> + <input name="apps_vhost_port" id="apps_vhost_port" value="{tmpl_var name='apps_vhost_port'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="apps_vhost_ip">{tmpl_var name='apps_vhost_ip_txt'}</label> + <input name="apps_vhost_ip" id="apps_vhost_ip" value="{tmpl_var name='apps_vhost_ip'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="apps_vhost_servername">{tmpl_var name='apps_vhost_servername_txt'}</label> + <input name="apps_vhost_servername" id="apps_vhost_servername" value="{tmpl_var name='apps_vhost_servername'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_edit_config.htm b/interface/ispconfig/interface/admin/templates/server_edit_config.htm new file mode 100644 index 0000000..02f6ef3 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_edit_config.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="config">{tmpl_var name='config_txt'}</label> + <textarea name="config" id="config" rows='20' cols='40'>{tmpl_var name='config'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_edit_services.htm b/interface/ispconfig/interface/admin/templates/server_edit_services.htm new file mode 100644 index 0000000..470a10e --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_edit_services.htm @@ -0,0 +1,70 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_name">{tmpl_var name='server_name_txt'}</label> + <input name="server_name" id="server_name" value="{tmpl_var name='server_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='mail_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='mail_server'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='web_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='web_server'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='dns_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='dns_server'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='file_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='file_server'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='db_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='db_server'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='vserver_server_txt'}</p> + <div class="multiField"> + {tmpl_var name='vserver_server'} + </div> + </div> + <div class="ctrlHolder"> + <label for="mirror_server_id">{tmpl_var name='mirror_server_id_txt'}</label> + <select name="mirror_server_id" id="server_id" class="selectInput"> + {tmpl_var name='mirror_server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="active">{tmpl_var name='active_txt'}</label> + <select name="active" id="active" class="selectInput formLengthBool"> + {tmpl_var name='active'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_ip_edit.htm b/interface/ispconfig/interface/admin/templates/server_ip_edit.htm new file mode 100644 index 0000000..1ebe8bd --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_ip_edit.htm @@ -0,0 +1,34 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_server_ip"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="ip_address">{tmpl_var name='ip_address_txt'}</label> + <input name="ip_address" id="ip_address" value="{tmpl_var name='ip_address'}" size="15" maxlength="15" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='virtualhost_txt'}</p> + <div class="multiField"> + {tmpl_var name='virtualhost'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/server_ip_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/server_ip_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_ip_list.htm b/interface/ispconfig/interface/admin/templates/server_ip_list.htm new file mode 100644 index 0000000..f35e84a --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_ip_list.htm @@ -0,0 +1,53 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_server_ip"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/server_ip_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_ip_address" scope="col"><tmpl_var name="ip_address_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','admin/server_ip_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_ip_address"><input type="text" name="search_ip_address" value="{tmpl_var name='search_ip_address'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/server_ip_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_ip_address"><a href="#" onClick="loadContent('admin/server_ip_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ip_address"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/server_ip_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/server_list.htm b/interface/ispconfig/interface/admin/templates/server_list.htm new file mode 100644 index 0000000..acfa541 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/server_list.htm @@ -0,0 +1,58 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_server"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_server_name" scope="col"><tmpl_var name="server_name_txt"></th> + <th class="tbl_col_mail_server" scope="col"><tmpl_var name="mail_server_txt"></th> + <th class="tbl_col_web_server" scope="col"><tmpl_var name="web_server_txt"></th> + <th class="tbl_col_dns_server" scope="col"><tmpl_var name="dns_server_txt"></th> + <th class="tbl_col_file_server" scope="col"><tmpl_var name="file_server_txt"></th> + <th class="tbl_col_db_server" scope="col"><tmpl_var name="db_server_txt"></th> + <th class="tbl_col_vserver_server" scope="col"><tmpl_var name="vserver_server_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_server_name"><input type="text" name="search_server_name" value="{tmpl_var name='search_server_name'}" /></td> + <td class="tbl_col_mail_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_mail_server'}</select></td> + <td class="tbl_col_web_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_web_server'}</select></td> + <td class="tbl_col_dns_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_dns_server'}</select></td> + <td class="tbl_col_file_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_file_server'}</select></td> + <td class="tbl_col_db_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_db_server'}</select></td> + <td class="tbl_col_vserver_server"><select name="search_active" onChange="submitForm('pageForm','admin/server_list.php');">{tmpl_var name='search_vserver_server'}</select></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/server_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_server_name"><a href="#" onClick="loadContent('admin/server_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_name"}</a></td> + <td class="tbl_col_mail_server">{tmpl_var name="mail_server"}</td> + <td class="tbl_col_web_server">{tmpl_var name="web_server"}</td> + <td class="tbl_col_dns_server">{tmpl_var name="dns_server"}</td> + <td class="tbl_col_file_server">{tmpl_var name="file_server"}</td> + <td class="tbl_col_db_server">{tmpl_var name="db_server"}</td> + <td class="tbl_col_vserver_server">{tmpl_var name="vserver_server"}</td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/server_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="8"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/software_package_list.htm b/interface/ispconfig/interface/admin/templates/software_package_list.htm new file mode 100644 index 0000000..dd465ac --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/software_package_list.htm @@ -0,0 +1,34 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_package"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_installed" scope="col"><tmpl_var name="installed_txt"></th> + <th class="tbl_col_package_title" scope="col"><tmpl_var name="package_title_txt"></th> + <th class="tbl_col_package_description" scope="col"><tmpl_var name="package_description_txt"></th> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_installed">{tmpl_var name="installed"}</td> + <td class="tbl_col_package_title">{tmpl_var name="package_title"}</td> + <td class="tbl_col_package_description">{tmpl_var name="package_description"}</td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/software_repo_edit.htm b/interface/ispconfig/interface/admin/templates/software_repo_edit.htm new file mode 100644 index 0000000..af335ec --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/software_repo_edit.htm @@ -0,0 +1,40 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_software_repo"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="repo_name">{tmpl_var name='repo_name_txt'}</label> + <input name="repo_name" id="repo_name" value="{tmpl_var name='repo_name'}" size="40" maxlength="40" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="repo_url">{tmpl_var name='repo_url_txt'}</label> + <input name="repo_url" id="repo_url" value="{tmpl_var name='repo_url'}" size="40" maxlength="40" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="repo_username">{tmpl_var name='repo_username_txt'}</label> + <input name="repo_username" id="repo_username" value="{tmpl_var name='repo_username'}" size="30" maxlength="30" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="repo_password">{tmpl_var name='repo_password_txt'}</label> + <input name="repo_password" id="repo_password" value="{tmpl_var name='repo_password'}" size="30" maxlength="30" type="password" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/software_repo_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/software_repo_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/software_repo_list.htm b/interface/ispconfig/interface/admin/templates/software_repo_list.htm new file mode 100644 index 0000000..05adca9 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/software_repo_list.htm @@ -0,0 +1,56 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_software_repo"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/software_repo_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_repo_name" scope="col"><tmpl_var name="repo_name_txt"></th> + <th class="tbl_col_repo_url" scope="col"><tmpl_var name="repo_url_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','admin/software_repo_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_repo_name"><input type="text" name="search_repo_name" value="{tmpl_var name='search_repo_name'}" /></td> + <td class="tbl_col_repo_url"><input type="text" name="search_repo_url" value="{tmpl_var name='search_repo_url'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/software_repo_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('admin/software_repo_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_repo_name"><a href="#" onClick="loadContent('admin/software_repo_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="repo_name"}</a></td> + <td class="tbl_col_repo_url"><a href="#" onClick="loadContent('admin/software_repo_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="repo_url"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('admin/software_repo_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/software_update_list.htm b/interface/ispconfig/interface/admin/templates/software_update_list.htm new file mode 100644 index 0000000..10a0acf --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/software_update_list.htm @@ -0,0 +1,49 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_software_update"> + + <div class="pnl_toolsarea"> + <fieldset class="inlineLabels"><legend>Tools</legend> + <div class="buttons"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_select_txt'}</label> + <select name="server_id" id="server_id" class="selectInput" onChange="submitForm('pageForm','admin/software_update_list.php');"> + <tmpl_loop name="servers"> + <option value="{tmpl_var name='server_id'}" {tmpl_var name='selected'}>{tmpl_var name='server_name'}</option> + </tmpl_loop> + </select> + </div> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_installed" scope="col"><tmpl_var name="installed_txt"></th> + <th class="tbl_col_update_title" scope="col"><tmpl_var name="update_title_txt"></th> + <th class="tbl_col_version" scope="col"><tmpl_var name="version_txt"></th> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_installed">{tmpl_var name="installed"}</td> + <td class="tbl_col_update_title">{tmpl_var name="update_title"}</td> + <td class="tbl_col_version">{tmpl_var name="version"}</td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm b/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm new file mode 100644 index 0000000..b905e2d --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm @@ -0,0 +1,28 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_system_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='mailboxlist_webmail_link_txt'}</p> + <div class="multiField"> + {tmpl_var name='mailboxlist_webmail_link'} + </div> + </div> + <div class="ctrlHolder"> + <label for="webmail_url">{tmpl_var name='webmail_url_txt'}</label> + <input name="webmail_url" id="webmail_url" value="{tmpl_var name='webmail_url'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/system_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/users_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm b/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm new file mode 100644 index 0000000..c819776 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm @@ -0,0 +1,44 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_system_config"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="dbname_prefix">{tmpl_var name='dbname_prefix_txt'}</label> + <input name="dbname_prefix" id="dbname_prefix" value="{tmpl_var name='dbname_prefix'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="dbuser_prefix">{tmpl_var name='dbuser_prefix_txt'}</label> + <input name="dbuser_prefix" id="dbuser_prefix" value="{tmpl_var name='dbuser_prefix'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="ftpuser_prefix">{tmpl_var name='ftpuser_prefix_txt'}</label> + <input name="ftpuser_prefix" id="ftpuser_prefix" value="{tmpl_var name='ftpuser_prefix'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="shelluser_prefix">{tmpl_var name='shelluser_prefix_txt'}</label> + <input name="shelluser_prefix" id="shelluser_prefix" value="{tmpl_var name='shelluser_prefix'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='dblist_phpmyadmin_link_txt'}</p> + <div class="multiField"> + {tmpl_var name='dblist_phpmyadmin_link'} + </div> + </div> + <div class="ctrlHolder"> + <label for="phpmyadmin_url">{tmpl_var name='phpmyadmin_url_txt'}</label> + <input name="phpmyadmin_url" id="phpmyadmin_url" value="{tmpl_var name='phpmyadmin_url'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/system_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/users_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/users_groups_edit.htm b/interface/ispconfig/interface/admin/templates/users_groups_edit.htm new file mode 100644 index 0000000..004c7db --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/users_groups_edit.htm @@ -0,0 +1,30 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_users"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="default_group">{tmpl_var name='default_group_txt'}</label> + <select name="default_group" id="default_group" class="selectInput"> + {tmpl_var name='default_group'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='groups_txt'}</p> + <div class="multiField"> + {tmpl_var name='groups'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/users_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/users_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/users_list.htm b/interface/ispconfig/interface/admin/templates/users_list.htm new file mode 100644 index 0000000..6634201 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/users_list.htm @@ -0,0 +1,61 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_users"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('admin/users_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + <p><tmpl_var name="warning_txt"></p> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th> + <th class="tbl_col_vorname" scope="col"><tmpl_var name="vorname_txt"></th> + <th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th> + <th class="tbl_col_ort" scope="col"><tmpl_var name="ort_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td> + <td class="tbl_col_vorname"><input type="text" name="search_vorname" value="{tmpl_var name='search_vorname'}" /></td> + <td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td> + <td class="tbl_col_ort"><input type="text" name="search_ort" value="{tmpl_var name='search_ort'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','admin/users_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_username"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td> + <td class="tbl_col_vorname"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="vorname"}</a></td> + <td class="tbl_col_name"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td> + <td class="tbl_col_ort"><a href="#" onClick="loadContent('admin/users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ort"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <tmpl_if name="username" op="!=" value="admin"><a class="icons16 icoLoginAs" href="#" onclick="loadContent('admin/login_as.php?id={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a> + <a class="icons16 icoDelete" href="javascript: del_record('admin/users_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a></tmpl_if> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/templates/users_user_edit.htm b/interface/ispconfig/interface/admin/templates/users_user_edit.htm new file mode 100644 index 0000000..ce00178 --- /dev/null +++ b/interface/ispconfig/interface/admin/templates/users_user_edit.htm @@ -0,0 +1,67 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_users"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <input name="username" id="username" value="{tmpl_var name='username'}" size="15" maxlength="30" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="passwort">{tmpl_var name='passwort_txt'}</label> + <input name="passwort" id="passwort" value="{tmpl_var name='passwort'}" size="15" maxlength="100" type="password" class="textInput" onkeyup="pass_check(this.value)"/> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='modules_txt'}</p> + <div class="multiField"> + {tmpl_var name='modules'} + </div> + </div> + <div class="ctrlHolder"> + <label for="startmodule">{tmpl_var name='startmodule_txt'}</label> + <select name="startmodule" id="startmodule" class="selectInput formLengthHalf"> + {tmpl_var name='startmodule'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='app_theme_txt'}</p> + <div class="multiField"> + {tmpl_var name='app_theme'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='typ_txt'}</p> + <div class="multiField"> + {tmpl_var name='typ'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + <div class="ctrlHolder"> + <label for="language">{tmpl_var name='language_txt'}</label> + <select name="language" id="language" class="selectInput withicons"> + {tmpl_var name='language'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','admin/users_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('admin/users_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/admin/users_del.php b/interface/ispconfig/interface/admin/users_del.php new file mode 100644 index 0000000..97c3154 --- /dev/null +++ b/interface/ispconfig/interface/admin/users_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/users.list.php"; +$tform_def_file = "form/users.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/users_edit.php b/interface/ispconfig/interface/admin/users_edit.php new file mode 100644 index 0000000..4344e3c --- /dev/null +++ b/interface/ispconfig/interface/admin/users_edit.php @@ -0,0 +1,74 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/users.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeInsert() { + global $app, $conf; + + if(!in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) { + $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err']; + } + } + + function onBeforeUpdate() { + global $app, $conf; + + if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) { + $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err']; + } + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/admin/users_list.php b/interface/ispconfig/interface/admin/users_list.php new file mode 100644 index 0000000..d2e2c86 --- /dev/null +++ b/interface/ispconfig/interface/admin/users_list.php @@ -0,0 +1,52 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/users.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLOrderBy = 'ORDER BY username'; +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/capp.php b/interface/ispconfig/interface/capp.php new file mode 100644 index 0000000..354652c --- /dev/null +++ b/interface/ispconfig/interface/capp.php @@ -0,0 +1,56 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../lib/config.inc.php'); +require_once('../lib/app.inc.php'); + +// importiere Modul +$mod = $_REQUEST["mod"]; + +// Checke ob User eingeloggt +if($_SESSION["s"]["user"]['active'] != 1) { + header("Location: index.php?phpsessid=".$_SESSION["s"]["id"]); + die(); +} + +// checke ob User Modul verwenden darf +$user_modules = explode(",",$_SESSION["s"]["user"]["modules"]); + +if(!in_array($mod,$user_modules)) $app->error($app->lng(301)); + +// lade Moduldaten in Session +if(is_file($mod."/lib/module.conf.php")) { + include_once($mod."/lib/module.conf.php"); + $_SESSION["s"]["module"] = $module; + echo "HEADER_REDIRECT:".$_SESSION["s"]["module"]["startpage"]; +} else { + $app->error($app->lng(302)); +} +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/client_del.php b/interface/ispconfig/interface/client/client_del.php new file mode 100644 index 0000000..db1790c --- /dev/null +++ b/interface/ispconfig/interface/client/client_del.php @@ -0,0 +1,166 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/client.list.php"; +$tform_def_file = "form/client.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +$app->uses('tpl,tform'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onDelete() { + global $app, $conf,$list_def_file,$tform_def_file; + + if($_POST["confirm"] == 'yes') { + parent::onDelete(); + } else { + + $app->uses('tpl'); + $app->tpl->newTemplate("form.tpl.htm"); + $app->tpl->setInclude('content_tpl', 'templates/client_del.htm'); + + include_once($list_def_file); + + // Loading tform framework + if(!is_object($app->tform)) $app->uses('tform'); + + // Load table definition from file + $app->tform->loadFormDef($tform_def_file); + + $this->id = intval($_REQUEST["id"]); + + $this->dataRecord = $app->tform->getDataRecord($this->id); + $client_id = intval($this->dataRecord['client_id']); + //$parent_client_id = intval($this->dataRecord['parent_client_id']); + //$parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id"); + $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id"); + + // Get all records (sub-clients, mail, web, etc....) of this client. + $tables = 'client,dns_rr,dns_soa,ftp_user,mail_access,mail_content_filter,mail_domain,mail_forwarding,mail_get,mail_user,mail_user_filter,shell_user,spamfilter_users,support_message,web_database,web_domain,web_traffic'; + $tables_array = explode(',',$tables); + $client_group_id = intval($client_group['groupid']); + $table_list = array(); + if($client_group_id > 1) { + foreach($tables_array as $table) { + if($table != '') { + $records = $app->db->queryAllRecords("SELECT * FROM $table WHERE sys_groupid = ".$client_group_id); + $number = count($records); + if($number > 0) $table_list[] = array('table' => $table."(".$number.")"); + } + } + } + + $app->tpl->setVar('id',$this->id); + $app->tpl->setLoop('records', $table_list); + + //* load language file + $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_client_del.lng'; + include($lng_file); + $app->tpl->setVar($wb); + + $app->tpl_defaults(); + $app->tpl->pparse(); + } + } + + + + + function onAfterDelete() { + global $app, $conf; + + $client_id = intval($this->dataRecord['client_id']); + + if($client_id > 0) { + // remove the group of the client from the resellers group + $parent_client_id = intval($this->dataRecord['parent_client_id']); + $parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id"); + $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id"); + $app->auth->remove_group_from_user($parent_user['userid'],$client_group['groupid']); + + // delete the group of the client + $app->db->query("DELETE FROM sys_group WHERE client_id = $client_id"); + + // delete the sys user(s) of the client + $app->db->query("DELETE FROM sys_user WHERE client_id = $client_id"); + + // Delete all records (sub-clients, mail, web, etc....) of this client. + $tables = 'client,dns_rr,dns_soa,ftp_user,mail_access,mail_content_filter,mail_domain,mail_forwarding,mail_get,mail_user,mail_user_filter,shell_user,spamfilter_users,support_message,web_database,web_domain,web_traffic'; + $tables_array = explode(',',$tables); + $client_group_id = intval($client_group['groupid']); + if($client_group_id > 1) { + foreach($tables_array as $table) { + if($table != '') { + $records = $app->db->queryAllRecords("SELECT * FROM $table WHERE sys_groupid = ".$client_group_id); + // find the primary ID of the table + $table_info = $app->db->tableInfo($table); + $index_field = ''; + foreach($table_info as $tmp) { + if($tmp['option'] == 'primary') $index_field = $tmp['name']; + } + // Delete the records + if($index_field != '') { + if(is_array($records)) { + foreach($records as $rec) { + $app->db->datalogDelete($table, $index_field, $rec[$index_field]); + } + } + } + + } + } + } + + + + } + + } +} + +$page = new page_action; +$page->onDelete() + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/client_edit.php b/interface/ispconfig/interface/client/client_edit.php new file mode 100644 index 0000000..9073ec9 --- /dev/null +++ b/interface/ispconfig/interface/client/client_edit.php @@ -0,0 +1,228 @@ +<?php +/* +Copyright (c) 2005 - 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/client.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another website. + if($client["limit_client"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_client"]) { + $app->error($app->tform->wordbook["limit_client_txt"]); + } + } + } + + parent::onShowNew(); + } + + + function onSubmit() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user' && $this->id == 0) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another website. + if($client["limit_client"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_client"]) { + $app->error($app->tform->wordbook["limit_client_txt"]); + } + } + } + + parent::onSubmit(); + } + + + function onShowEnd() { + + global $app; + + $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'"; + $tpls = $app->db->queryAllRecords($sql); + $option = ''; + $tpl = array(); + foreach($tpls as $item){ + $option .= '<option value="' . $item['template_id'] . '|' . $item['template_name'] . '">' . $item['template_name'] . '</option>'; + $tpl[$item['template_id']] = $item['template_name']; + } + $app->tpl->setVar('tpl_add_select',$option); + + $sql = "SELECT template_additional FROM client WHERE client_id = " . $this->id; + $result = $app->db->queryOneRecord($sql); + $tplAdd = explode("/", $result['template_additional']); + $text = ''; + foreach($tplAdd as $item){ + if (trim($item) != ''){ + if ($text != '') $text .= '<br />'; + $text .= $tpl[$item]; + } + } + + $app->tpl->setVar('template_additional_list', $text); + + parent::onShowEnd(); + + } + + /* + This function is called automatically right after + the data was successful inserted in the database. + */ + function onAfterInsert() { + global $app; + // Create the group for the client + $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid'); + $groups = $groupid; + + $username = $app->db->quote($this->dataRecord["username"]); + $password = $app->db->quote($this->dataRecord["password"]); + $modules = ISPC_INTERFACE_MODULES_ENABLED; + if($this->dataRecord["limit_client"] > 0) $modules .= ',client'; + $startmodule = 'mail'; + $usertheme = $app->db->quote($this->dataRecord["usertheme"]); + $type = 'user'; + $active = 1; + $language = $app->db->quote($this->dataRecord["language"]); + + // Create the controlpaneluser for the client + $sql = "INSERT INTO sys_user (username,passwort,modules,startmodule,app_theme,typ,active,language,groups,default_group,client_id) + VALUES ('$username',md5('$password'),'$modules','$startmodule','$usertheme','$type','$active','$language',$groups,$groupid,".$this->id.")"; + $app->db->query($sql); + + //* If the user who inserted the client is a reseller (not admin), we will have to add this new client group + //* to his groups, so he can administrate the records of this client. + if($_SESSION['s']['user']['typ'] == 'user') { + $app->auth->add_group_to_user($_SESSION['s']['user']['userid'],$groupid); + $app->db->query("UPDATE client SET parent_client_id = ".intval($_SESSION['s']['user']['client_id'])." WHERE client_id = ".$this->id); + } + + $app->db->query("UPDATE client SET created_at = ".time()." WHERE client_id = ".$this->id); + + /* If there is a client-template, process it */ + applyClientTemplates($this->id); + + parent::onAfterInsert(); + } + + + /* + This function is called automatically right after + the data was successful updated in the database. + */ + function onAfterUpdate() { + global $app; + + // username changed + if(isset($this->dataRecord['username']) && $this->dataRecord['username'] != '' && $this->oldDataRecord['username'] != $this->dataRecord['username']) { + $username = $app->db->quote($this->dataRecord["username"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id"; + $app->db->query($sql); + + $tmp = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE client_id = $client_id"); + $app->db->datalogUpdate("sys_group", "name = '$username'", 'groupid', $tmp['groupid']); + unset($tmp); + } + + // password changed + if(isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') { + $password = $app->db->quote($this->dataRecord["password"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id"; + $app->db->query($sql); + } + + // language changed + if(isset($this->dataRecord['language']) && $this->dataRecord['language'] != '' && $this->oldDataRecord['language'] != $this->dataRecord['language']) { + $language = $app->db->quote($this->dataRecord["language"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET language = '$language' WHERE client_id = $client_id"; + $app->db->query($sql); + } + + // reseller status changed + if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) { + $modules = ISPC_INTERFACE_MODULES_ENABLED; + if($this->dataRecord["limit_client"] > 0) $modules .= ',client'; + $modules = $app->db->quote($modules); + $client_id = $this->id; + $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id"; + $app->db->query($sql); + } + /* + * If there is a client-template, process it */ + applyClientTemplates($this->id); + + parent::onAfterUpdate(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/client_list.php b/interface/ispconfig/interface/client/client_list.php new file mode 100644 index 0000000..dd98e29 --- /dev/null +++ b/interface/ispconfig/interface/client/client_list.php @@ -0,0 +1,25 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/client.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +$app->uses('listform_actions'); + +$app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id'; +$app->listform_actions->SQLExtWhere = "limit_client = 0"; +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/client_template_del.php b/interface/ispconfig/interface/client/client_template_del.php new file mode 100644 index 0000000..6d8e834 --- /dev/null +++ b/interface/ispconfig/interface/client/client_template_del.php @@ -0,0 +1,67 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/client_template.list.php"; +$tform_def_file = "form/client_template.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); +if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are for Admins only.'); + +$app->uses('tpl,tform'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onBeforeDelete() { + global $app; + + $rec = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE template_master = ".$this->id." OR template_additional like '%/".$this->id."/%'"); + if($rec['number'] > 0) { + $app->error($app->tform->lng('template_del_aborted_txt')); + } + + } +} + +$page = new page_action; +$page->onDelete() + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/client_template_edit.php b/interface/ispconfig/interface/client/client_template_edit.php new file mode 100644 index 0000000..f032ded --- /dev/null +++ b/interface/ispconfig/interface/client/client_template_edit.php @@ -0,0 +1,97 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/client_template.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); +if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeUpdate() { + global $app; + + if(isset($this->dataRecord['template_type'])) { + //* Check if the template_type has been changed + $rec = $app->db->queryOneRecord("SELECT template_type from client_template WHERE template_id = ".$this->id); + if($rec['template_type'] != $this->dataRecord['template_type']) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The template type can not be changed.'); + $this->dataRecord['template_type'] = $rec['template_type']; + } + unset($rec); + } + } + + + /* + This function is called automatically right after + the data was successful updated in the database. + */ + function onAfterUpdate() { + global $app; + + /* + * the template has changed. apply the new data to all clients + */ + if ($this->dataRecord["template_type"] == 'm'){ + $sql = "SELECT client_id FROM client WHERE template_master = " . $this->id; + } else { + $sql = "SELECT client_id FROM client WHERE template_additional LIKE '%/" . $this->id . '/%"'; + } + $clients = $app->db->queryAllRecords($sql); + if (is_array($clients)){ + foreach ($clients as $client){ + applyClientTemplates($client['client_id']); + } + } + } +} + +$page = new page_action; +$page->onLoad(); +?> diff --git a/interface/ispconfig/interface/client/client_template_list.php b/interface/ispconfig/interface/client/client_template_list.php new file mode 100644 index 0000000..d9a9163 --- /dev/null +++ b/interface/ispconfig/interface/client/client_template_list.php @@ -0,0 +1,21 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/client_template.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('client'); +if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.'); + +$app->uses('listform_actions'); +$app->listform_actions->onLoad(); +?> diff --git a/interface/ispconfig/interface/client/form/client.tform.php b/interface/ispconfig/interface/client/form/client.tform.php new file mode 100644 index 0000000..01f616e --- /dev/null +++ b/interface/ispconfig/interface/client/form/client.tform.php @@ -0,0 +1,785 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Client"; +$form["description"] = ""; +$form["name"] = "client"; +$form["action"] = "client_edit.php"; +$form["db_table"] = "client"; +$form["db_table_idx"] = "client_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "address"; +$form["list_default"] = "client_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +//* Languages +$language_list = array(); +$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang'); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') { + $tmp = substr($file, 0, 2); + $language_list[$tmp] = $tmp; + } + } +} + +//* Load themes +$themes_list = array(); +$handle = @opendir(ISPC_THEMES_PATH); +while ($file = @readdir ($handle)) { + if (substr($file, 0, 1) != '.') { + if(@is_dir(ISPC_THEMES_PATH."/$file")) { + $themes_list[$file] = $file; + } + } +} + +$form["tabs"]['address'] = array ( + 'title' => "Address", + 'width' => 100, + 'template' => "templates/client_edit_address.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'company_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'contact_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'contact_error_empty'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'username_error_empty'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_client', + 'function' => 'username_unique', + 'errmsg'=> 'username_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\_]{0,64}$/', + 'errmsg'=> 'username_error_regex'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'language' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => $conf["language"], + 'value' => $language_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'usertheme' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'default', + 'value' => $themes_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'street' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'zip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'city' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'state' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'country' => array ( + 'datatype' => 'VARCHAR', + + 'formtype' => 'SELECT', + 'default' => 'DE', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', + 'keyfield'=> 'iso', + 'valuefield'=> 'printable_name' + ), + 'value' => '' + ), + 'telephone' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'mobile' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'fax' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'internet' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'http://', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'icq' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'notes' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '', + 'maxlength' => '', + 'rows' => '10', + 'cols' => '30' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +$form["tabs"]['limits'] = array ( + 'title' => "Limits", + 'width' => 80, + 'template' => "templates/client_edit_limits.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'template_master' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'master_templates' + ), + 'value' => '' + ), + 'template_additional' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + ), + 'default_mailserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'client_servers' + ), + 'value' => '', + 'name' => 'default_mailserver' + ), + 'limit_maildomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_maildomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailbox' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailbox_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailalias' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailalias_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailaliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailaliasdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailforward' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailforward_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailcatchall' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailcatchall_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailrouting' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailrouting_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailfilter' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfilter_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_fetchmail' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfetchmail_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailquota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailquota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_wblist' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_wblist_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_policy' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_policy_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'default_webserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'client_servers' + ), + 'value' => '', + 'name' => 'default_webserver' + ), + 'limit_web_domain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_domain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'web_php_options' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'separator' => ',', + 'valuelimit' => 'client:web_php_options', + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + ), + 'limit_web_aliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_aliasdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_subdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_subdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_ftp_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_ftp_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_shell_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_shell_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'ssh_chroot' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'separator' => ',', + 'valuelimit' => 'client:ssh_chroot', + 'value' => array('no' => 'None', 'jailkit' => 'Jailkit') + ), + 'default_dnsserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'client_servers' + ), + 'value' => '', + 'name' => 'default_dnsserver' + ), + 'limit_dns_zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_zone_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_dns_record' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_record_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_client' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_client_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'default_dbserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'client_servers' + ), + 'value' => '', + 'name' => 'default_dbserver' + ), + 'limit_database' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_database_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron') + ), + 'limit_cron_frequency' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_frequency'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_traffic_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_traffic_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +/* +$form["tabs"]['ipaddress'] = array ( + 'title' => "IP Addresses", + 'width' => 100, + 'template' => "templates/client_edit_ipaddress.htm", + 'fields' => array ( + ################################## + # Beginn Datatable fields + ################################## + 'ip_address' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'value' => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'), + 'separator' => ';' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); +*/ + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/form/client_template.tform.php b/interface/ispconfig/interface/client/form/client_template.tform.php new file mode 100644 index 0000000..d1db4ba --- /dev/null +++ b/interface/ispconfig/interface/client/form/client_template.tform.php @@ -0,0 +1,482 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Client-Templates"; +$form["description"] = ""; +$form["name"] = "client_template"; +$form["action"] = "client_template_edit.php"; +$form["db_table"] = "client_template"; +$form["db_table_idx"] = "template_id"; +$form["db_history"] = "no"; +$form["tab_default"] = "template"; +$form["list_default"] = "client_template_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +//* Languages +$language_list = array(); +$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang'); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') { + $tmp = substr($file, 0, 2); + $language_list[$tmp] = $tmp; + } + } +} + +$form["tabs"]['template'] = array ( + 'title' => "Template", + 'width' => 80, + 'template' => "templates/client_template_edit_template.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'template_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'm', + 'value' => array('m' => "Main Template",'a' => "Additional Template"), + ), + 'template_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'error_template_name_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +$form["tabs"]['limits'] = array ( + 'title' => "Limits", + 'width' => 80, + 'template' => "templates/client_template_edit_limits.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'limit_maildomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_maildomain_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailbox' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailbox_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailalias' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailalias_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailaliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailaliasdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailforward' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailforward_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailcatchall' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailcatchall_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailrouting' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailrouting_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailfilter' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfilter_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_fetchmail' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfetchmail_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailquota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailquota_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_wblist' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_wblist_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_user_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_policy' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_policy_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_domain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_domain_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_aliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_aliasdomain_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_subdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_subdomain_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_ftp_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_ftp_user_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_shell_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_shell_user_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_dns_zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_zone_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_dns_record' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_record_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + /* + 'limit_client' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_client_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + */ + 'limit_database' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_database_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron') + ), + 'limit_cron_frequency' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_frequency'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_traffic_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_traffic_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +?> diff --git a/interface/ispconfig/interface/client/form/reseller.tform.php b/interface/ispconfig/interface/client/form/reseller.tform.php new file mode 100644 index 0000000..a987a9f --- /dev/null +++ b/interface/ispconfig/interface/client/form/reseller.tform.php @@ -0,0 +1,761 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Reseller"; +$form["description"] = ""; +$form["name"] = "reseller"; +$form["action"] = "reseller_edit.php"; +$form["db_table"] = "client"; +$form["db_table_idx"] = "client_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "address"; +$form["list_default"] = "reseller_list.php"; +$form["auth"] = 'yes'; + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +//* Languages +$language_list = array(); +$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang'); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') { + $tmp = substr($file, 0, 2); + $language_list[$tmp] = $tmp; + } + } +} + +$form["tabs"]['address'] = array ( + 'title' => "Address", + 'width' => 100, + 'template' => "templates/reseller_edit_address.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'company_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'contact_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'contact_error_empty'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'username_error_empty'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_client', + 'function' => 'username_unique', + 'errmsg'=> 'username_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\_]{0,64}$/', + 'errmsg'=> 'username_error_regex'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'language' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => $conf["language"], + 'value' => $language_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'usertheme' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'default', + 'value' => array('default' => 'default'), + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'street' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'zip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'city' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'state' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'country' => array ( + 'datatype' => 'VARCHAR', + + 'formtype' => 'SELECT', + 'default' => 'DE', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', + 'keyfield'=> 'iso', + 'valuefield'=> 'printable_name' + ), + 'value' => '' + ), + 'telephone' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'mobile' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'fax' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'internet' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'http://', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'icq' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '30', + 'maxlength' => '255', + 'rows' => '', + 'cols' => '' + ), + 'notes' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '', + 'maxlength' => '', + 'rows' => '10', + 'cols' => '30' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +$form["tabs"]['limits'] = array ( + 'title' => "Limits", + 'width' => 80, + 'template' => "templates/reseller_edit_limits.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'template_master' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'master_templates' + ), + 'value' => '' + ), + 'template_additional' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + ), + 'default_mailserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mail_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'limit_maildomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_maildomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailbox' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailbox_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailalias' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailalias_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailforward' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailforward_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailcatchall' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailcatchall_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailrouting' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailrouting_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailfilter' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfilter_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_fetchmail' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailfetchmail_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_mailquota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_mailquota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_wblist' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_wblist_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_spamfilter_policy' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_spamfilter_policy_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'default_webserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE web_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'limit_web_domain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_domain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'web_php_options' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'separator' => ',', + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + ), + 'limit_web_aliasdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_aliasdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_web_subdomain' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_web_subdomain_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_ftp_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_ftp_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_shell_user' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_shell_user_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'ssh_chroot' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'separator' => ',', + 'value' => array('no' => 'None', 'jailkit' => 'Jailkit') + ), + 'default_dnsserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE dns_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'limit_dns_zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_zone_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_dns_record' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_dns_record_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_client' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_client_error_notint'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_reseller', + 'function' => 'limit_client'), + ), + 'default' => '1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'default_dbserver' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '1', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE db_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'limit_database' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_database_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_notint'), + ), + 'default' => '0', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_cron_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron') + ), + 'limit_cron_frequency' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_cron_error_frequency'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + 'limit_traffic_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'limit_traffic_quota_error_notint'), + ), + 'default' => '-1', + 'value' => '', + 'separator' => '', + 'width' => '10', + 'maxlength' => '10', + 'rows' => '', + 'cols' => '' + ), + ################################## + # END Datatable fields + ################################## + ) +); + +/* +$form["tabs"]['ipaddress'] = array ( + 'title' => "IP Addresses", + 'width' => 100, + 'template' => "templates/client_edit_ipaddress.htm", + 'fields' => array ( + ################################## + # Beginn Datatable fields + ################################## + 'ip_address' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'value' => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'), + 'separator' => ';' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); +*/ + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/admin.conf.php b/interface/ispconfig/interface/client/lib/admin.conf.php new file mode 100644 index 0000000..a45d440 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/admin.conf.php @@ -0,0 +1,2 @@ +<?php +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/bg.lng b/interface/ispconfig/interface/client/lib/lang/bg.lng new file mode 100644 index 0000000..f835dfd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Клиент'; +$wb['Address'] = 'Адрес'; +$wb['Limits'] = 'Ограничения'; +$wb['Add Client'] = 'Добавяне на клиент'; +$wb['Edit Client'] = 'Редактиране на клиент'; +$wb['Clients'] = 'Клиенти'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client.lng b/interface/ispconfig/interface/client/lib/lang/bg_client.lng new file mode 100644 index 0000000..35b3519 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Макс. брой email домейни'; +$wb['limit_mailbox_txt'] = 'Макс. брой пощенски кутии'; +$wb['limit_mailalias_txt'] = 'Макс. брой email aliases'; +$wb['limit_mailforward_txt'] = 'Макс. брой email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Макс. брой email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Макс. брой email routes'; +$wb['limit_mailfilter_txt'] = 'Макс. брой email filters'; +$wb['limit_fetchmail_txt'] = 'Макс. брой fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Размер на пощенските кутии'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс. брой spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Макс. брой spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Макс. брой spamfilter policys'; +$wb['default_mailserver_txt'] = 'Пощенски сървър по подразбиране'; +$wb['company_name_txt'] = 'Компания'; +$wb['contact_name_txt'] = 'Лице за контакт'; +$wb['username_txt'] = 'Потребителско име'; +$wb['password_txt'] = 'Парола'; +$wb['password_strength_txt'] = 'Сила на паролата'; +$wb['language_txt'] = 'Език'; +$wb['usertheme_txt'] = 'Тема'; +$wb['street_txt'] = 'Улица'; +$wb['zip_txt'] = 'Пощенски код'; +$wb['city_txt'] = 'Град'; +$wb['state_txt'] = 'Област'; +$wb['country_txt'] = 'Държава'; +$wb['telephone_txt'] = 'Телефон'; +$wb['mobile_txt'] = 'Мобилен телефон'; +$wb['fax_txt'] = 'Факс'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Сайт'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Бележки'; +$wb['company_txt'] = 'Компания'; +$wb['title_txt'] = 'Обръщение'; +$wb['firstname_txt'] = 'Име'; +$wb['surname_txt'] = 'Фамилия'; +$wb['limit_client_txt'] = 'Макс. брой клиенти'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Макс. брой бази данни'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Не е попълнено име.'; +$wb['contact_error_empty'] = 'Не е попълнено лице за контакт.'; +$wb['default_webserver_txt'] = 'Уеб сървър по подразбиране.'; +$wb['limit_web_domain_txt'] = 'Макс. брой домейни.'; +$wb['limit_web_aliasdomain_txt'] = 'Макс. брой web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Макс. брой поддомейни'; +$wb['limit_ftp_user_txt'] = 'Макс. брой FTP потребители'; +$wb['default_dnsserver_txt'] = 'DNS сървър по подразбиране'; +$wb['limit_dns_zone_txt'] = 'Макс. брой DNS зони'; +$wb['limit_dns_record_txt'] = 'Макс. брой DNS записи'; +$wb['limit_shell_user_txt'] = 'Макс. брой Shell потребители'; +$wb['username_error_empty'] = 'Не е попълнено потребителско име.'; +$wb['username_error_unique'] = 'Избраното потребителско име е вече заето.'; +$wb['limit_maildomain_error_notint'] = 'Макс. брой email домейни трябва да е число.'; +$wb['limit_mailbox_error_notint'] = 'Макс. брой пощенски кутии трябва да е число.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'Размерът на пощенските кутии трябва да е число.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'Макс. брой домейни трябва да е число.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'Макс. брой поддомейни трябва да е число.'; +$wb['limit_ftp_user_error_notint'] = 'Макс. брой FTP потребители трябва да е число.'; +$wb['limit_shell_user_error_notint'] = 'Макс. брой shell потребители трябва да е число.'; +$wb['limit_dns_zone_error_notint'] = 'Макс. брой DNS записи трябва да е число.'; +$wb['default_dbserver_txt'] = 'DB сървър по подразбиране'; +$wb['limit_database_error_notint'] = 'Макс. брой бази данни трябва да е число.'; +$wb['username_error_regex'] = 'Потребителското име съдържа невалидни символи.'; +$wb['template_master_txt'] = 'Master'; +$wb['template_additional_txt'] = 'Addon'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng new file mode 100644 index 0000000..2f6e9ba --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['error_template_name_empty'] = 'Please enter a Template name'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng new file mode 100644 index 0000000..b93a5f9 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Client-Templates'; +$wb['template_type_txt'] = 'Type'; +$wb['template_name_txt'] = 'Template name'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng new file mode 100644 index 0000000..f412b78 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Клиенти'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Компания'; +$wb['contact_name_txt'] = 'Лице за контакт'; +$wb['city_txt'] = 'Град'; +$wb['country_txt'] = 'Държава'; +$wb['add_new_record_txt'] = 'Add new client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng b/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng new file mode 100644 index 0000000..34d0896 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br.lng b/interface/ispconfig/interface/client/lib/lang/br.lng new file mode 100644 index 0000000..3dcb5e3 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Cliente'; +$wb['Address'] = 'Endereço'; +$wb['Limits'] = 'Limites'; +$wb['Add Client'] = 'Adcionar Cliente'; +$wb['Edit Client'] = 'Editar Cliente'; +$wb['Clients'] = 'Clientes'; +$wb['Edit Client-Templates'] = 'Editar Gabaritos de Clientes'; +$wb['Add Reseller'] = 'Adcionar Revendedor'; +$wb['Edit Reseller'] = 'Editar Revendedor'; +$wb['Resellers'] = 'Revendedores'; +$wb['error_has_clients'] = 'Este revendedor possui clientes. Você deve remover os clientes primeiro.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_client.lng b/interface/ispconfig/interface/client/lib/lang/br_client.lng new file mode 100644 index 0000000..6e2b67c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Número máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Número máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailforward_txt'] = 'Número máximo de redirecionamento de correio'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de catchall de correio'; +$wb['limit_mailrouting_txt'] = 'Número máximo de rotas de correio'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correio'; +$wb['limit_fetchmail_txt'] = 'Número máximo de fetchmail de correio'; +$wb['limit_mailquota_txt'] = 'Quota de Correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros spam lista branca / negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de usuários de filtros spam'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de filtros spam'; +$wb['default_mailserver_txt'] = 'Servidor de Correio Padrão'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['username_txt'] = 'Nome de Usuário'; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança da senha'; +$wb['language_txt'] = 'Idioma'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Rua'; +$wb['zip_txt'] = 'CEP'; +$wb['city_txt'] = 'Cidade'; +$wb['state_txt'] = 'Estado'; +$wb['country_txt'] = 'País'; +$wb['telephone_txt'] = 'Telefone'; +$wb['mobile_txt'] = 'Celular'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notas'; +$wb['company_txt'] = 'Empresa'; +$wb['title_txt'] = 'Título'; +$wb['firstname_txt'] = 'Nome'; +$wb['surname_txt'] = 'Sobrenome'; +$wb['limit_domain_txt'] = 'limite_dominio'; +$wb['limit_subdomain_txt'] = 'limit_subdominio'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Número máximo de banco de dados'; +$wb['ip_address_txt'] = 'endereco_ip'; +$wb['limit_client_error_notint'] = 'O limite de um sub-cliente deve ser um número'; +$wb['firstname_error_empty'] = 'Nome está em branco.'; +$wb['contact_error_empty'] = 'Contato está em branco.'; +$wb['default_webserver_txt'] = 'Servidor Web Padrão'; +$wb['limit_web_domain_txt'] = 'Número máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de domínios alias'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de sub-domínios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de usuários FTP'; +$wb['default_dnsserver_txt'] = 'Servidor de Nomes Padrão'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registros DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de usuários de shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['username_error_empty'] = 'Nome do usuário está em branco'; +$wb['username_error_unique'] = 'O nome do usuário deve ser único'; +$wb['limit_maildomain_error_notint'] = 'O limite de caixas de correio no domínio deve ser um número.'; +$wb['limit_mailbox_error_notint'] = 'Limite da caixa de correio deve ser um número.'; +$wb['limit_mailalias_error_notint'] = 'Limite do aliase de correio deve ser um número.'; +$wb['limit_mailforward_error_notint'] = 'Limite de redirecionamento de correio deve ser um número'; +$wb['limit_mailcatchall_error_notint'] = 'Limite de catchall deve ser um número.'; +$wb['limit_mailrouting_error_notint'] = 'Limite de rotas de correio deve ser um número.'; +$wb['limit_mailfilter_error_notint'] = 'Limite de filtros de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limite de fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'A quota de correio deve ser um número'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de filtros spam lista branca / negra deve ser um número.'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite de filtros spam do usuário deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite de políticas de filtros spam deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de sites deve ser um número.'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de alias de domínios de sites deve ser um número.'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de sub-domínios de sites deve ser um número'; +$wb['limit_ftp_user_error_notint'] = 'O limite de usuários de FTP deve ser um número.'; +$wb['limit_shell_user_error_notint'] = 'O limite de usuários de Shell deve ser um número.'; +$wb['limit_dns_zone_error_notint'] = 'O limite de registros de DNS deve ser um número'; +$wb['default_dbserver_txt'] = 'Servidor de Banco de Dados Padrão'; +$wb['limit_database_error_notint'] = 'O limite de banco de dados deve ser um número'; +$wb['username_error_regex'] = 'O nome de usuário contem caracteres inválidos.'; +$wb['template_master_txt'] = 'Gabarito Principal'; +$wb['template_additional_txt'] = 'Template Adcional'; +$wb['ssh_chroot_txt'] = 'Opções de SSH Chroot'; +$wb['web_php_options_txt'] = 'Opções do PHP'; +$wb['limit_client_error'] = 'O número máximo de clientes foi atingido.'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron.'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Intervalo mínimo entre as execuções'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência do cron deve ser um número.'; +$wb['limit_mailaliasdomain_txt'] = 'Número máximo de domínios aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'O domínio aliases de correio precisa ser um número.'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'A cota de tráfego precisa ser um número..'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_del.lng b/interface/ispconfig/interface/client/lib/lang/br_client_del.lng new file mode 100644 index 0000000..57788b0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirmar ação'; +$wb['delete_explanation'] = 'Atenção: está ação ira remover todos os objetos associados ao cliente!'; +$wb['btn_save_txt'] = 'Remover o cliente'; +$wb['btn_cancel_txt'] = 'Cancelar sem remover o cliente'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_template.lng b/interface/ispconfig/interface/client/lib/lang/br_client_template.lng new file mode 100644 index 0000000..b3b15e2 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'O limite do cliente não é um número.'; +$wb['limit_maildomain_txt'] = 'Limite Máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Limite Máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Limite Máximo de alias de correio'; +$wb['limit_mailforward_txt'] = 'Limite Máximo de redirecionamentos de correio'; +$wb['limit_mailcatchall_txt'] = 'Limite máximo de contas catchall'; +$wb['limit_mailrouting_txt'] = 'Limite máximo de rotas de Correio'; +$wb['limit_mailfilter_txt'] = 'Número Máximo de Filtros de Correio'; +$wb['limit_fetchmail_txt'] = 'Número Máximo de Contas fetchmail'; +$wb['limit_mailquota_txt'] = 'Espaço de Caixa de Correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de spamfilter permitidos /lista negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máx de usuários spamfilter'; +$wb['limit_spamfilter_policy_txt'] = 'Número máx de políticas spamfilter'; +$wb['limit_domain_txt'] = 'limite_dominio'; +$wb['limit_subdomain_txt'] = 'limite_subdominio'; +$wb['limit_webquota_txt'] = 'limite_webquota'; +$wb['limit_database_txt'] = 'Número máximo de banco de dados'; +$wb['limit_web_domain_txt'] = 'Número máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número maximo de apelidos web'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de sub-domínios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de usuários de FTP'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registros DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de usuários de Shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['limit_maildomain_error_notint'] = 'O limite de correio de domínio deve ser numérico'; +$wb['limit_mailbox_error_notint'] = 'O limite da caixa de correio deve ser numérico'; +$wb['limit_mailalias_error_notint'] = 'O limite do apelido de correio deve ser númerico'; +$wb['limit_mailforward_error_notint'] = 'O limite de direcionamento de correio deve ser um número'; +$wb['limit_mailcatchall_error_notint'] = 'O limite de catchall do domínio deve ser um número'; +$wb['limit_mailrouting_error_notint'] = 'Limite de rota de correio deve ser um número'; +$wb['limit_mailfilter_error_notint'] = 'O limite de filtro de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limite fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'Cota de correio deve ser um número.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de spamfilter permitido / lista negra deve ser um número'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite do spamfilter deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite da política do spamfilter deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de websites deve ser um número'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de apelidos de domínio deve ser um número'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de sub-domínios deve ser um número'; +$wb['limit_ftp_user_error_notint'] = 'O limite de contas FTP deve ser um número'; +$wb['limit_shell_user_error_notint'] = 'O limite de contas shell DNS deve ser um número'; +$wb['limit_dns_zone_error_notint'] = 'O limite de zonas DNS deve ser um número'; +$wb['limit_database_error_notint'] = 'O limite dos bancos de dados deve ser um número'; +$wb['error_template_name_empty'] = 'Por favor insira o nome do gabarito'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Intervalo mínimo entre as execuções'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência do cron deve ser um número.'; +$wb['limit_mailaliasdomain_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailaliasdomain_error_notint'] = 'A alias de domínio de correio deve ser um número.'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'A cota de tráfego precisa ser um número.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng new file mode 100644 index 0000000..231f7fd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Gabarito de Cliente '; +$wb['template_type_txt'] = 'Tipo'; +$wb['template_name_txt'] = 'Nome do Gabarito'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng new file mode 100644 index 0000000..a6d54ec --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clientes'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Nome do contato'; +$wb['city_txt'] = 'Cidade'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Adcionar novo cliente'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_reseller.lng b/interface/ispconfig/interface/client/lib/lang/br_reseller.lng new file mode 100644 index 0000000..a9724bf --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Número máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Número máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailforward_txt'] = 'Número máximo de encaminhamentos de correio'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de contas catchall'; +$wb['limit_mailrouting_txt'] = 'Número máximo de rotas de correio'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correio'; +$wb['limit_fetchmail_txt'] = 'Número máximo de contas fetchmail '; +$wb['limit_mailquota_txt'] = 'Quota de correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros do spamfilter lista branca / negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de usuários de spamfilter'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de spamfilter'; +$wb['default_mailserver_txt'] = 'Servidor de Correio Padrão'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['username_txt'] = 'Usuário'; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança de senha'; +$wb['language_txt'] = 'Idioma'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Rua'; +$wb['zip_txt'] = 'CEP'; +$wb['city_txt'] = 'Cidade'; +$wb['state_txt'] = 'Estado'; +$wb['country_txt'] = 'País'; +$wb['telephone_txt'] = 'Telefone'; +$wb['mobile_txt'] = 'Celular'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'MSN ou ICQ'; +$wb['notes_txt'] = 'Notas'; +$wb['company_txt'] = 'Empresa'; +$wb['title_txt'] = 'Título'; +$wb['firstname_txt'] = 'Nome'; +$wb['surname_txt'] = 'Sobrenome'; +$wb['limit_domain_txt'] = 'limite_domínio'; +$wb['limit_subdomain_txt'] = 'limite_subdomínio'; +$wb['limit_webquota_txt'] = 'limite_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bancos de dados'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Mínimo de tempo entre as execuções'; +$wb['ip_address_txt'] = 'endereço_ip'; +$wb['limit_client_error_notint'] = 'O limite de clientes para revenda deve ser um número.'; +$wb['firstname_error_empty'] = 'O nome está em branco.'; +$wb['contact_error_empty'] = 'Nome do contato está em branco.'; +$wb['default_webserver_txt'] = 'Servidor web padrão'; +$wb['limit_web_domain_txt'] = 'Máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de alias web'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de subdomínios'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Servidor DNS Padrão'; +$wb['limit_dns_zone_txt'] = 'Máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Máximo de registros DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de usuários de shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['username_error_empty'] = 'O nome do usuário está em branco.'; +$wb['username_error_unique'] = 'O nome de usuário deve ser único.'; +$wb['limit_maildomain_error_notint'] = 'O limite de domínios de correio deve ser um número.'; +$wb['limit_mailbox_error_notint'] = 'O limite de caixas de correio deve ser um número.'; +$wb['limit_mailalias_error_notint'] = 'O limite de aliases de correio deve ser um número.'; +$wb['limit_mailforward_error_notint'] = 'O limite de encaminhamentos de correio deve ser um número.'; +$wb['limit_mailcatchall_error_notint'] = 'O limite de contas catchall deve ser um número.'; +$wb['limit_mailrouting_error_notint'] = 'O limite de rotas de correio deve ser um número.'; +$wb['limit_mailfilter_error_notint'] = 'O filtro de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'O limite de fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'O limite de quota de correio deve ser um número.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de lista branca / negra do spamfilter deve ser um número.'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite de usuários de spamfilter deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite de políticas de spamfilter deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de web sites deve ser um número.'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de usuários de aliases de domínio deve ser um número.'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de usuários de subdomínios web deve ser um número.'; +$wb['limit_ftp_user_error_notint'] = 'O limite de usuários de ftp deve ser um número.'; +$wb['limit_shell_user_error_notint'] = 'O limite de usuários de shell deve ser um número.'; +$wb['limit_dns_zone_error_notint'] = 'O limite de registros de dns deve ser um número.'; +$wb['default_dbserver_txt'] = 'Servidor de Banco de Dados Padrão'; +$wb['limit_database_error_notint'] = 'O limite de banco de dados deve ser um número.'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência no cron deve ser um número.'; +$wb['username_error_regex'] = 'O nome do usuário contém caracteres inválidos.'; +$wb['template_master_txt'] = 'Gabarito Mestre'; +$wb['template_additional_txt'] = 'Gabarito de Addon'; +$wb['ssh_chroot_txt'] = 'Opções do Chroot-SSH'; +$wb['web_php_options_txt'] = 'Opções do PHP'; +$wb['limit_client_error'] = 'O número máximo de clientes foi atingido.'; +$wb['limit_client_error_positive'] = 'O número de clientes precisa ser > 0'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng new file mode 100644 index 0000000..053d722 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Revendedores'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['city_txt'] = 'Cidade'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Adcionar um novo revendedor'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de.lng b/interface/ispconfig/interface/client/lib/lang/de.lng new file mode 100644 index 0000000..2ab45de --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Kunden'; +$wb['Address'] = 'Adresse'; +$wb['Limits'] = 'Limits'; +$wb['Add Client'] = 'Kunde hinzufügen'; +$wb['Edit Client'] = 'Kunde bearbeiten'; +$wb['Clients'] = 'Kunden'; +$wb['Edit Client-Templates'] = 'Kundenvorlagen bearbeiten'; +$wb['Add Reseller'] = 'Reseller hinzufügen'; +$wb['Edit Reseller'] = 'Reseller bearbeiten'; +$wb['Resellers'] = 'Reseller'; +$wb['error_has_clients'] = 'Dieser Reseller besitzt Kunden. Bitte zuerst die Kunden löschen.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_client.lng b/interface/ispconfig/interface/client/lib/lang/de_client.lng new file mode 100644 index 0000000..6237798 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. Anzahl an Email Domains'; +$wb['limit_mailbox_txt'] = 'Max. Anzahl an Mailboxen'; +$wb['limit_mailalias_txt'] = 'Max. Anzahl an Emailaliase'; +$wb['limit_mailforward_txt'] = 'Max. Anzahl an Email Weiterleitungen'; +$wb['limit_mailcatchall_txt'] = 'Max. Anzahl an Email Catchall Konten'; +$wb['limit_mailrouting_txt'] = 'Max. Anzahl an Email Routen'; +$wb['limit_mailfilter_txt'] = 'Max. Anzahl an Email Filter'; +$wb['limit_fetchmail_txt'] = 'Max. Anzahl an Fetchmail Konten'; +$wb['limit_mailquota_txt'] = 'Mailbox Quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. Anzahl an Spamfilter White- / Blacklist Filter'; +$wb['limit_spamfilter_user_txt'] = 'Max. Anzahl an Spamfilter Benutzer'; +$wb['limit_spamfilter_policy_txt'] = 'Max. Anzahl an Spamfilter Richtlinien'; +$wb['default_mailserver_txt'] = 'Standardmailserver'; +$wb['company_name_txt'] = 'Firmenname'; +$wb['contact_name_txt'] = 'Kontakt'; +$wb['username_txt'] = 'Benutzername'; +$wb['password_txt'] = 'Passwort'; +$wb['language_txt'] = 'Sprache'; +$wb['usertheme_txt'] = 'Thema'; +$wb['street_txt'] = 'Straße'; +$wb['zip_txt'] = 'PLZ'; +$wb['city_txt'] = 'Ort'; +$wb['state_txt'] = 'Bundesland'; +$wb['country_txt'] = 'Staat'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Handy'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notizen'; +$wb['company_txt'] = 'Firma'; +$wb['title_txt'] = 'Titel'; +$wb['firstname_txt'] = 'Vorname'; +$wb['surname_txt'] = 'Nachname'; +$wb['limit_client_txt'] = 'Max. Anzahl an Kunden'; +$wb['limit_domain_txt'] = 'Max. Anzahl an Domains'; +$wb['limit_subdomain_txt'] = 'Max. Anzahl an Subdomains'; +$wb['limit_webquota_txt'] = 'Max. Webquota'; +$wb['limit_database_txt'] = 'Max. Anzahl an Datenbanken'; +$wb['limit_cron_txt'] = 'Max. Anzahl an Cron Jobs'; +$wb['limit_cron_type_txt'] = 'Max. erlaubter Cron Job Typ (chrooted und full erlauben auch url)'; +$wb['limit_cron_frequency_txt'] = 'Min. Abstand zwischen Ausführungen'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['limit_client_error_notint'] = 'Das Subkunden Limit muss eine Zahl sein.'; +$wb['firstname_error_empty'] = 'Vorname ist leer.'; +$wb['contact_error_empty'] = 'Kontakt ist leer.'; +$wb['default_webserver_txt'] = 'Standardwebserver'; +$wb['limit_web_domain_txt'] = 'Max. Anzahl an Webdomains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. Anzahl an Webaliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. Anzahl an Websubdomains'; +$wb['limit_ftp_user_txt'] = 'Max. Anzahl an FTP Benutzer'; +$wb['default_dnsserver_txt'] = 'Standard DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. Anzahl an DNS Zonen'; +$wb['limit_dns_record_txt'] = 'Max. Anzahl an DNS Einträge'; +$wb['limit_shell_user_txt'] = 'Max. Anzahl an Shell Benutzer'; +$wb['username_error_empty'] = 'Benutzername ist leer.'; +$wb['username_error_unique'] = 'Der Benutzername muss einzigartig sein.'; +$wb['limit_maildomain_error_notint'] = 'Das Email Domain Limit muss eine Nummer sein.'; +$wb['limit_mailbox_error_notint'] = 'Das Mailbox Limit muss eine Nummer sein.'; +$wb['limit_mailalias_error_notint'] = 'Das Emailalias Limit muss eine Nummer sein.'; +$wb['limit_mailforward_error_notint'] = 'Das Emailweiterleitung Limit muss eine Nummer sein.'; +$wb['limit_mailcatchall_error_notint'] = 'Das Email Catchall Limit muss eine Nummer sein.'; +$wb['limit_mailrouting_error_notint'] = 'Das Email Routing Limit muss eine Nummer sein.'; +$wb['limit_mailfilter_error_notint'] = 'Das Emailfilter Limit muss eine Nummer sein.'; +$wb['limit_mailfetchmail_error_notint'] = 'Das Fetchmail Limit muss eine Nummer sein.'; +$wb['limit_mailquota_error_notint'] = 'Das Emailquota Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Das Spamfilter White- / Blacklist Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_user_error_notint'] = 'Das Spamfilter Benutzer Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Das Spamfilter Richtlinien Limit muss eine Nummer sein.'; +$wb['limit_web_domain_error_notint'] = 'Das Webseiten Limit muss eine Nummer sein.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Das Webseite Aliasdomain Limit muss eine Nummer sein.'; +$wb['limit_web_subdomain_error_notint'] = 'Das Webseite Subdomain Limit muss eine Nummer sein.'; +$wb['limit_ftp_user_error_notint'] = 'Das FTP Benutzer Limit muss eine Nummer sein.'; +$wb['limit_shell_user_error_notint'] = 'Das Shell Benutzer Limit muss eine Nummer sein.'; +$wb['limit_dns_zone_error_notint'] = 'Das DNS Einträge Limit muss eine Nummer sein.'; +$wb['default_dbserver_txt'] = 'Standarddatenbankserver'; +$wb['limit_database_error_notint'] = 'Das Datenbank Limit muss eine Nummer sein.'; +$wb['limit_cron_error_notint'] = 'Das Cron Job Limit muss eine Nummer sein.'; +$wb['limit_cron_error_frequency'] = 'Das Cron Job Intervall-Limit muss eine Nummer sein.'; +$wb['username_error_regex'] = 'Der Benutzername enthält ungültige Zeichen.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['template_master_txt'] = 'Mastervorlage'; +$wb['template_additional_txt'] = 'Addons'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Optionen'; +$wb['web_php_options_txt'] = 'PHP Optionen'; +$wb['limit_client_error'] = 'Die maximale Anzahl an Kunden wurde erreicht.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. Anzahl an Domainaliase'; +$wb['limit_mailaliasdomain_error_notint'] = 'Das Email Domainalias Limit muss eine Nummer sein.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota muss eine Nummer sein.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_del.lng b/interface/ispconfig/interface/client/lib/lang/de_client_del.lng new file mode 100644 index 0000000..4fb2aac --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Aktion bestätigen'; +$wb['delete_explanation'] = 'Diese Aktion wird folgende Anzahl an Datensätzen des Kunden löschen'; +$wb['btn_save_txt'] = 'Kunden löschen'; +$wb['btn_cancel_txt'] = 'Abbrechen ohne den Kunden zu löschen'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_template.lng b/interface/ispconfig/interface/client/lib/lang/de_client_template.lng new file mode 100644 index 0000000..1fcce00 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Das Subkunden Limit muss eine Zahl sein.'; +$wb['limit_maildomain_txt'] = 'Max. Anzahl an Emaildomains'; +$wb['limit_mailbox_txt'] = 'Max. Anzahl an Mailboxen'; +$wb['limit_mailalias_txt'] = 'Max. Anzahl an Emailaliasen'; +$wb['limit_mailforward_txt'] = 'Max. Anzahl an Emailweiterleitungen'; +$wb['limit_mailcatchall_txt'] = 'Max. Anzahl an Email Catchall Kontos'; +$wb['limit_mailrouting_txt'] = 'Max. Anzahl Email Routen'; +$wb['limit_mailfilter_txt'] = 'Max. Anzahl an Emailfilter'; +$wb['limit_fetchmail_txt'] = 'Max. Anzahl an Fetchmail Kontos'; +$wb['limit_mailquota_txt'] = 'Mailbox Quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. Anzahl an Spamfilter White- / Blacklist Filter'; +$wb['limit_spamfilter_user_txt'] = 'Max. Anzahl Spamfilter Benutzer'; +$wb['limit_spamfilter_policy_txt'] = 'Max. Anzahl an Spamfilter Richtlinien'; +$wb['limit_client_txt'] = 'Max. Anzahl an Kunden'; +$wb['limit_domain_txt'] = 'Max. Anzahl an Domains'; +$wb['limit_subdomain_txt'] = 'Max. Anzahl an Subdomains'; +$wb['limit_webquota_txt'] = 'Max. Webquota'; +$wb['limit_database_txt'] = 'Max. Anzahl an Datenbanken'; +$wb['limit_cron_txt'] = 'Max. Anzahl an Cron Jobs'; +$wb['limit_cron_type_txt'] = 'Max. erlaubter Typ von Cron Jobs (chrooted und full erlauben auch url)'; +$wb['limit_cron_frequency_txt'] = 'Min. Abstand zwischen Ausführungen'; +$wb['limit_web_domain_txt'] = 'Max. Anzahl an Web Domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. Anzahl an Web Aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. Anzahl an Web Subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. Anzahl an FTP Benutzer'; +$wb['limit_dns_zone_txt'] = 'Max. Anzahl an DNS Zonen'; +$wb['limit_dns_record_txt'] = 'Max. Anzahl an DNS Einträgen'; +$wb['limit_shell_user_txt'] = 'Max. Anzahl an Shellbenutzer'; +$wb['limit_maildomain_error_notint'] = 'Das Emaildomain Limit muss eine Nummer sein.'; +$wb['limit_mailbox_error_notint'] = 'Das Mailbox Limit muss eine Nummer sein.'; +$wb['limit_mailalias_error_notint'] = 'Das Emailalias Limit muss eine Nummer sein.'; +$wb['limit_mailforward_error_notint'] = 'Das Emailweiterleitung Limit muss eine Nummer sein.'; +$wb['limit_mailcatchall_error_notint'] = 'Das Email Catchall Limit muss eine Nummer sein.'; +$wb['limit_mailrouting_error_notint'] = 'Das Email Routing Limit muss eine Nummer sein.'; +$wb['limit_mailfilter_error_notint'] = 'Das Emailfilter Limit muss eine Nummer sein.'; +$wb['limit_mailfetchmail_error_notint'] = 'Das Fetchmail Limit muss eine Nummer sein.'; +$wb['limit_mailquota_error_notint'] = 'Das Emailquota Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Das Spamfilter White- / Blacklist Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_user_error_notint'] = 'Das Spamfilter Benutzer Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Das Spamfilter Richtlinien Limit muss eine Nummer sein.'; +$wb['limit_web_domain_error_notint'] = 'Das Webseiten Limit muss eine Nummer sein.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Das Webseiten Aliasdomain Limit muss eine Nummer sein.'; +$wb['limit_web_subdomain_error_notint'] = 'Das Webseiten Subdomain Limit muss eine Nummer sein.'; +$wb['limit_ftp_user_error_notint'] = 'Das FTP Benutzer Limit muss eine Nummer sein.'; +$wb['limit_shell_user_error_notint'] = 'Das Shell Benutzer Limit muss eine Nummer sein.'; +$wb['limit_dns_zone_error_notint'] = 'Das DNS Einträge Limit muss eine Nummer sein.'; +$wb['limit_database_error_notint'] = 'Das Datenbanken Limit muss eine Nummer sein.'; +$wb['limit_cron_error_notint'] = 'Das Cron Job Limit muss eine Nummer sein.'; +$wb['limit_cron_error_frequency'] = 'Das Cron Job Intervall-Limit muss eine Nummer sein.'; +$wb['error_template_name_empty'] = 'Bitte geben sie einen Vorlagenamen ein'; +$wb['limit_mailaliasdomain_txt'] = 'Max. Anzahl an Domain Aliasen'; +$wb['limit_mailaliasdomain_error_notint'] = 'Das Email Domainalias Limit muss eine Nummer sein.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota muss eine Nummer sein.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng new file mode 100644 index 0000000..98195fe --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Kundenvorlagen'; +$wb['template_type_txt'] = 'Typ'; +$wb['template_name_txt'] = 'Vorlagenname'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng new file mode 100644 index 0000000..515d7db --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Kunden'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Firmenname'; +$wb['contact_name_txt'] = 'Kontaktname'; +$wb['city_txt'] = 'Ort'; +$wb['country_txt'] = 'Land'; +$wb['add_new_record_txt'] = 'Kunden Eintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_reseller.lng b/interface/ispconfig/interface/client/lib/lang/de_reseller.lng new file mode 100644 index 0000000..f3a3ec8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. Anzahl an Email Domains'; +$wb['limit_mailbox_txt'] = 'Max. Anzahl an Mailboxen'; +$wb['limit_mailalias_txt'] = 'Max. Anzahl an Emailaliase'; +$wb['limit_mailforward_txt'] = 'Max. Anzahl an Email Weiterleitungen'; +$wb['limit_mailcatchall_txt'] = 'Max. Anzahl an Email Catchall Konten'; +$wb['limit_mailrouting_txt'] = 'Max. Anzahl an Email Routen'; +$wb['limit_mailfilter_txt'] = 'Max. Anzahl an Email Filter'; +$wb['limit_fetchmail_txt'] = 'Max. Anzahl an Fetchmail Konten'; +$wb['limit_mailquota_txt'] = 'Mailbox Quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. Anzahl an Spamfilter White- / Blacklist Filter'; +$wb['limit_spamfilter_user_txt'] = 'Max. Anzahl an Spamfilter Benutzer'; +$wb['limit_spamfilter_policy_txt'] = 'Max. Anzahl an Spamfilter Richtlinien'; +$wb['default_mailserver_txt'] = 'Standardmailserver'; +$wb['company_name_txt'] = 'Firmenname'; +$wb['contact_name_txt'] = 'Kontakt'; +$wb['username_txt'] = 'Benutzername'; +$wb['password_txt'] = 'Passwort'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['language_txt'] = 'Sprache'; +$wb['usertheme_txt'] = 'Thema'; +$wb['street_txt'] = 'Straße'; +$wb['zip_txt'] = 'PLZ'; +$wb['city_txt'] = 'Ort'; +$wb['state_txt'] = 'Bundesland'; +$wb['country_txt'] = 'Staat'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Handy'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notizen'; +$wb['company_txt'] = 'Firma'; +$wb['title_txt'] = 'Titel'; +$wb['firstname_txt'] = 'Vorname'; +$wb['surname_txt'] = 'Nachname'; +$wb['limit_domain_txt'] = 'Max. Anzahl an Domains'; +$wb['limit_subdomain_txt'] = 'Max. Anzahl an Subdomains'; +$wb['limit_webquota_txt'] = 'Max. Webquota'; +$wb['limit_database_txt'] = 'Max. Anzahl an Datenbanken'; +$wb['limit_cron_txt'] = 'Max. Anzahl an Cron Jobs'; +$wb['limit_cron_type_txt'] = 'Max. erlaubter Cron Job Typ (chrooted und full erlauben auch url)'; +$wb['limit_cron_frequency_txt'] = 'Min. Abstand zwischen Ausführungen'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['limit_client_error_notint'] = 'Das Subkunden Limit muss eine Zahl sein.'; +$wb['firstname_error_empty'] = 'Vorname ist leer.'; +$wb['contact_error_empty'] = 'Kontakt ist leer.'; +$wb['default_webserver_txt'] = 'Standardwebserver'; +$wb['limit_web_domain_txt'] = 'Max. Anzahl an Webdomains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. Anzahl an Webaliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. Anzahl an Websubdomains'; +$wb['limit_ftp_user_txt'] = 'Max. Anzahl an FTP Benutzer'; +$wb['default_dnsserver_txt'] = 'Standard DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. Anzahl an DNS Zonen'; +$wb['limit_dns_record_txt'] = 'Max. Anzahl an DNS Einträge'; +$wb['limit_shell_user_txt'] = 'Max. Anzahl an Shell Benutzer'; +$wb['limit_client_txt'] = 'Max. Anzahl an Kunden'; +$wb['username_error_empty'] = 'Benutzername ist leer.'; +$wb['username_error_unique'] = 'Der Benutzername muss einzigartig sein.'; +$wb['limit_maildomain_error_notint'] = 'Das Email Domain Limit muss eine Nummer sein.'; +$wb['limit_mailbox_error_notint'] = 'Das Mailbox Limit muss eine Nummer sein.'; +$wb['limit_mailalias_error_notint'] = 'Das Emailalias Limit muss eine Nummer sein.'; +$wb['limit_mailforward_error_notint'] = 'Das Emailweiterleitung Limit muss eine Nummer sein.'; +$wb['limit_mailcatchall_error_notint'] = 'Das Email Catchall Limit muss eine Nummer sein.'; +$wb['limit_mailrouting_error_notint'] = 'Das Email Routing Limit muss eine Nummer sein.'; +$wb['limit_mailfilter_error_notint'] = 'Das Emailfilter Limit muss eine Nummer sein.'; +$wb['limit_mailfetchmail_error_notint'] = 'Das Fetchmail Limit muss eine Nummer sein.'; +$wb['limit_mailquota_error_notint'] = 'Das Emailquota Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Das Spamfilter White- / Blacklist Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_user_error_notint'] = 'Das Spamfilter Benutzer Limit muss eine Nummer sein.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Das Spamfilter Richtlinien Limit muss eine Nummer sein.'; +$wb['limit_web_domain_error_notint'] = 'Das Webseiten Limit muss eine Nummer sein.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Das Webseite Aliasdomain Limit muss eine Nummer sein.'; +$wb['limit_web_subdomain_error_notint'] = 'Das Webseite Subdomain Limit muss eine Nummer sein.'; +$wb['limit_ftp_user_error_notint'] = 'Das FTP Benutzer Limit muss eine Nummer sein.'; +$wb['limit_shell_user_error_notint'] = 'Das Shell Benutzer Limit muss eine Nummer sein.'; +$wb['limit_dns_zone_error_notint'] = 'Das DNS Einträge Limit muss eine Nummer sein.'; +$wb['default_dbserver_txt'] = 'Standarddatenbankserver'; +$wb['limit_database_error_notint'] = 'Das Datenbank Limit muss eine Nummer sein.'; +$wb['limit_cron_error_notint'] = 'Das Cron Job Limit muss eine Zahl sein.'; +$wb['limit_cron_error_frequency'] = 'Das Cron Job Intervall-Limit muss eine Zahl sein.'; +$wb['username_error_regex'] = 'Der Benutzername enthält ungültige Zeichen.'; +$wb['template_master_txt'] = 'Mastervorlage'; +$wb['template_additional_txt'] = 'Addons'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Optionen'; +$wb['web_php_options_txt'] = 'PHP Optionen'; +$wb['limit_client_error'] = 'Die maximale Anzahl an Kunden wurde erreicht.'; +$wb['limit_client_error_positive'] = 'Die Anzahl an Kunden muss > 0 sein'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota muss eine Zahl sein.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng new file mode 100644 index 0000000..f6f736c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Reseller'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Firmenname'; +$wb['contact_name_txt'] = 'Kontakt'; +$wb['city_txt'] = 'Ort'; +$wb['country_txt'] = 'Staat'; +$wb['add_new_record_txt'] = 'Neuen Reseller hinzufügen'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/en.lng b/interface/ispconfig/interface/client/lib/lang/en.lng new file mode 100644 index 0000000..2c598f3 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en.lng @@ -0,0 +1,14 @@ +<?php +$wb['Client'] = 'Client'; +$wb['Address'] = 'Address'; +$wb['Limits'] = 'Limits'; +$wb['Add Client'] = 'Add Client'; +$wb['Edit Client'] = 'Edit Client'; +$wb['Clients'] = 'Clients'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb["error_has_clients"] = 'This reseller has clients. Delete the clients of the reseller first.'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/en_client.lng b/interface/ispconfig/interface/client/lib/lang/en_client.lng new file mode 100644 index 0000000..e87ba45 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_client.lng @@ -0,0 +1,97 @@ +<?php +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailaliasdomain_txt"] = 'Max. number of domain aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["default_mailserver_txt"] = 'Default Mailserver'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["usertheme_txt"] = 'Theme'; +$wb["street_txt"] = 'Street'; +$wb["zip_txt"] = 'ZIP'; +$wb["city_txt"] = 'City'; +$wb["state_txt"] = 'State'; +$wb["country_txt"] = 'Country'; +$wb["telephone_txt"] = 'Telephone'; +$wb["mobile_txt"] = 'Mobile'; +$wb["fax_txt"] = 'Fax'; +$wb["email_txt"] = 'Email'; +$wb["internet_txt"] = 'Internet'; +$wb["icq_txt"] = 'ICQ'; +$wb["notes_txt"] = 'Notes'; +$wb["company_txt"] = 'Company'; +$wb["title_txt"] = 'Title'; +$wb["firstname_txt"] = 'Firstname'; +$wb["surname_txt"] = 'Surname'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["ip_address_txt"] = 'ip_address'; +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["firstname_error_empty"] = 'Firstname is empty.'; +$wb["contact_error_empty"] = 'Contact name is empty.'; +$wb["default_webserver_txt"] = 'Default Webserver'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["default_dnsserver_txt"] = 'Default DNS Server'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailaliasdomain_error_notint"] = 'The email domain alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_client_error_notint"] = 'The sub client limit must be a number.'; +$wb["default_dbserver_txt"] = 'Default Database Server'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["username_error_regex"] = 'The Username contains invalid chracaters.'; +$wb["template_master_txt"] = 'Master template'; +$wb["template_additional_txt"] = 'Addon template'; +$wb["ssh_chroot_txt"] = 'SSH-Chroot Options'; +$wb["web_php_options_txt"] = 'PHP Options'; +$wb["limit_client_error"] = 'The max. number of clients is reached.'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +$wb["limit_traffic_quota_txt"] = 'Traffic Quota'; +$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_del.lng b/interface/ispconfig/interface/client/lib/lang/en_client_del.lng new file mode 100644 index 0000000..4d16af6 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb["confirm_action_txt"] = 'Confirm action'; +$wb["delete_explanation"] = 'This action will delete the following number of records associated with this client'; +$wb["btn_save_txt"] = 'Delete the client'; +$wb["btn_cancel_txt"] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_template.lng b/interface/ispconfig/interface/client/lib/lang/en_client_template.lng new file mode 100644 index 0000000..3972663 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_client_template.lng @@ -0,0 +1,61 @@ +<?php + +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailaliasdomain_txt"] = 'Max. number of domain aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailaliasdomain_error_notint"] = 'The email domain alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["error_template_name_empty"] = 'Please enter a Template name'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +$wb["limit_traffic_quota_txt"] = 'Traffic Quota'; +$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.'; +$wb["template_del_aborted_txt"] = 'Delete aborted. There is still a client which has this template selected.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng new file mode 100644 index 0000000..ac52186 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb["list_head_txt"] = 'Client-Templates'; +$wb["template_type_txt"] = 'Type'; +$wb["template_name_txt"] = 'Template name'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng new file mode 100644 index 0000000..86671ae --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Clients'; +$wb["client_id_txt"] = 'ID'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["city_txt"] = 'City'; +$wb["country_txt"] = 'Country'; +$wb["add_new_record_txt"] = 'Add new client'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/en_reseller.lng b/interface/ispconfig/interface/client/lib/lang/en_reseller.lng new file mode 100644 index 0000000..2b06c33 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_reseller.lng @@ -0,0 +1,96 @@ +<?php +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["default_mailserver_txt"] = 'Default Mailserver'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["usertheme_txt"] = 'Theme'; +$wb["street_txt"] = 'Street'; +$wb["zip_txt"] = 'ZIP'; +$wb["city_txt"] = 'City'; +$wb["state_txt"] = 'State'; +$wb["country_txt"] = 'Country'; +$wb["telephone_txt"] = 'Telephone'; +$wb["mobile_txt"] = 'Mobile'; +$wb["fax_txt"] = 'Fax'; +$wb["email_txt"] = 'Email'; +$wb["internet_txt"] = 'Internet'; +$wb["icq_txt"] = 'ICQ'; +$wb["notes_txt"] = 'Notes'; +$wb["company_txt"] = 'Company'; +$wb["title_txt"] = 'Title'; +$wb["firstname_txt"] = 'Firstname'; +$wb["surname_txt"] = 'Surname'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["ip_address_txt"] = 'ip_address'; +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["firstname_error_empty"] = 'Firstname is empty.'; +$wb["contact_error_empty"] = 'Contact name is empty.'; +$wb["default_webserver_txt"] = 'Default Webserver'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["default_dnsserver_txt"] = 'Default DNS Server'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_client_error_notint"] = 'The sub client limit must be a number.'; +$wb["default_dbserver_txt"] = 'Default Database Server'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["username_error_regex"] = 'The Username contains invalid chracaters.'; +$wb["template_master_txt"] = 'Master template'; +$wb["template_additional_txt"] = 'Addon template'; +$wb["ssh_chroot_txt"] = 'SSH-Chroot Options'; +$wb["web_php_options_txt"] = 'PHP Options'; +$wb["limit_client_error"] = 'The max. number of clients is reached.'; +$wb["limit_client_error_positive"] = 'The number of clients must be > 0'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +$wb["limit_traffic_quota_txt"] = 'Traffic Quota'; +$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng new file mode 100644 index 0000000..523a467 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Resellers'; +$wb["client_id_txt"] = 'ID'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["city_txt"] = 'City'; +$wb["country_txt"] = 'Country'; +$wb["add_new_record_txt"] = 'Add new reseller'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/es.lng b/interface/ispconfig/interface/client/lib/lang/es.lng new file mode 100644 index 0000000..f1b1d75 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Cliente'; +$wb['Address'] = 'Dirección'; +$wb['Limits'] = 'Límites'; +$wb['Add Client'] = 'Añadir cliente'; +$wb['Edit Client'] = 'Editar cliente'; +$wb['Clients'] = 'Clientes'; +$wb['Edit Client-Templates'] = 'Editar plantillas de clientes'; +$wb['Add Reseller'] = 'Añadir revendedor'; +$wb['Edit Reseller'] = 'Editar revendedor'; +$wb['Resellers'] = 'Revendedores'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_client.lng b/interface/ispconfig/interface/client/lib/lang/es_client.lng new file mode 100644 index 0000000..e42a548 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Número máximo de dominios de correo'; +$wb['limit_mailbox_txt'] = 'Número máximo de buzones de correo'; +$wb['limit_mailalias_txt'] = 'Número máximo de alias de correo'; +$wb['limit_mailforward_txt'] = 'Número máximo de reenvíos de correo'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de cuentas recoge-todo'; +$wb['limit_mailrouting_txt'] = 'Número máximo de enrutadores de correo'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correo'; +$wb['limit_fetchmail_txt'] = 'Número máximo de cuentas Fetchmail'; +$wb['limit_mailquota_txt'] = 'Cuota del buzón de correo'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros de listas blancas y negras de spam'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de usuarios de filtros de spam'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de filtro de spam'; +$wb['default_mailserver_txt'] = 'Servidor de correo por defecto'; +$wb['company_name_txt'] = 'Nombre de la empresa'; +$wb['contact_name_txt'] = 'Nombre de contacto'; +$wb['username_txt'] = 'Usuario'; +$wb['password_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['language_txt'] = 'Idioma'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Calle'; +$wb['zip_txt'] = 'CP'; +$wb['city_txt'] = 'Localidad'; +$wb['state_txt'] = 'Estado o provincia'; +$wb['country_txt'] = 'País'; +$wb['telephone_txt'] = 'Teléfono fijo'; +$wb['mobile_txt'] = 'Móvil o celular'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Correo'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notas'; +$wb['company_txt'] = 'Empresa'; +$wb['title_txt'] = 'Título'; +$wb['firstname_txt'] = 'Nombre'; +$wb['surname_txt'] = 'Apellidos'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bases de datos'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'El límite de subclientes debe ser un número.'; +$wb['firstname_error_empty'] = 'El nombre está vacío'; +$wb['contact_error_empty'] = 'El nombre de contacto está vacío'; +$wb['default_webserver_txt'] = 'Servidor web por defecto'; +$wb['limit_web_domain_txt'] = 'Número máximo de dominios'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de alias de dominios'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de subdominios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de usuarios FTP'; +$wb['default_dnsserver_txt'] = 'Servidor DNS por defecto'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registros DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de usuarios de consola'; +$wb['username_error_empty'] = 'El nombre de usuario está vacío.'; +$wb['username_error_unique'] = 'El nombre de usuario debe ser único.'; +$wb['limit_maildomain_error_notint'] = 'El límite de dominios de correo debe ser un número'; +$wb['limit_mailbox_error_notint'] = 'El límite de buzones de correo debe ser un número'; +$wb['limit_mailalias_error_notint'] = 'El límite de alias de correo debe ser un número'; +$wb['limit_mailforward_error_notint'] = 'El límite de reenvíos de correo debe ser un número'; +$wb['limit_mailcatchall_error_notint'] = 'El límite de cuentas de correo recoge-todo debe ser un número'; +$wb['limit_mailrouting_error_notint'] = 'El límite de enrutadores de correo debe ser un número'; +$wb['limit_mailfilter_error_notint'] = 'El límite de filtros de correo debe ser un número'; +$wb['limit_mailfetchmail_error_notint'] = 'El límite de cuentas Fetchmail debe ser un número'; +$wb['limit_mailquota_error_notint'] = 'El límite de cuota de correo debe ser un número'; +$wb['limit_spamfilter_wblist_error_notint'] = 'El límite de filtros de spam debe ser un número'; +$wb['limit_spamfilter_user_error_notint'] = 'El límite de usuarios de filtros de spam debe ser un número'; +$wb['limit_spamfilter_policy_error_notint'] = 'El límite de políticas de spam debe ser un número'; +$wb['limit_web_domain_error_notint'] = 'El límite de sitios web debe ser un número'; +$wb['limit_web_aliasdomain_error_notint'] = 'El límite de alias de dominios debe ser un número'; +$wb['limit_web_subdomain_error_notint'] = 'El límite de subdominios debe ser un número'; +$wb['limit_ftp_user_error_notint'] = 'El límite de usuarios FTP debe ser un número'; +$wb['limit_shell_user_error_notint'] = 'El límite de usuarios de consola debe ser un número'; +$wb['limit_dns_zone_error_notint'] = 'El límite de zonas DNS debe ser un número'; +$wb['default_dbserver_txt'] = 'Servidor de bases de datos por defecto'; +$wb['limit_database_error_notint'] = 'El límite de bases de datos debe ser un número'; +$wb['username_error_regex'] = 'El usuario contiene carácteres no válidos'; +$wb['template_master_txt'] = 'Principal'; +$wb['template_additional_txt'] = 'Adicional'; +$wb['ssh_chroot_txt'] = 'Opciones SSH-Chroot'; +$wb['web_php_options_txt'] = 'Opciones PHP'; +$wb['limit_cron_txt'] = 'Número máximo de tareas cron'; +$wb['limit_cron_type_txt'] = 'Tipo máximo de tareas cron (chrooted y full implican URL)'; +$wb['limit_cron_frequency_txt'] = 'Espera mínima entre ejecuciones'; +$wb['limit_cron_error_notint'] = 'El límite de tareas cron debe ser un número.'; +$wb['limit_cron_error_frequency'] = 'El límite de la frecuencia de cron debe ser un número.'; +$wb['limit_client_error'] = 'Se ha alcanzado el número máximo de clientes.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_del.lng b/interface/ispconfig/interface/client/lib/lang/es_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_template.lng b/interface/ispconfig/interface/client/lib/lang/es_client_template.lng new file mode 100644 index 0000000..3e51956 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'El límite de subclientes debe ser un número.'; +$wb['limit_maildomain_txt'] = 'Número máximo de dominios de correo'; +$wb['limit_mailbox_txt'] = 'Número máximo de buzones de correo'; +$wb['limit_mailalias_txt'] = 'Número máximo de alias de correo'; +$wb['limit_mailforward_txt'] = 'Número máximo de reenvíos de correo'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de cuentas de correo recoge-todo'; +$wb['limit_mailrouting_txt'] = 'Número máximo de enrutadores de correo'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correo'; +$wb['limit_fetchmail_txt'] = 'Número máximo de cuentas Fetchmail'; +$wb['limit_mailquota_txt'] = 'Cuota del buzón de correo'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros de listas blancas y negras de spam'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de usuarios de filtros de spam'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de filtros de spam'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bases de datos'; +$wb['limit_web_domain_txt'] = 'Número máximo de dominios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de alias de dominio'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de subdominios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de usuarios FTP'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registros DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de usuarios de consola'; +$wb['limit_maildomain_error_notint'] = 'El límite de dominios de correo debe ser un número.'; +$wb['limit_mailbox_error_notint'] = 'El límite de buzones de correo debe ser un número.'; +$wb['limit_mailalias_error_notint'] = 'El límite de alias de correo debe ser un número.'; +$wb['limit_mailforward_error_notint'] = 'El límite de reenvíos de correo debe ser un número.'; +$wb['limit_mailcatchall_error_notint'] = 'El límite de cuentas de correo recoge-todo debe ser un número.'; +$wb['limit_mailrouting_error_notint'] = 'El límite de enrutadores de correo debe ser un número.'; +$wb['limit_mailfilter_error_notint'] = 'El límite de filtros de correo debe ser un número.'; +$wb['limit_mailfetchmail_error_notint'] = 'El límite de cuentas Fetchmail debe ser un número.'; +$wb['limit_mailquota_error_notint'] = 'El límite de la cuota de correo debe ser un número.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'El límite de listas blancas y negras de filtro de spam debe ser un número.'; +$wb['limit_spamfilter_user_error_notint'] = 'El límite de usuarios de filtro de spam debe ser un número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'El límite de políticas de filtro de spam debe ser un número.'; +$wb['limit_web_domain_error_notint'] = 'El límite de sitios web debe ser un número.'; +$wb['limit_web_aliasdomain_error_notint'] = 'El límite de alias de dominio debe ser un número.'; +$wb['limit_web_subdomain_error_notint'] = 'El límite de subdominios debe ser un número.'; +$wb['limit_ftp_user_error_notint'] = 'El límite de usuarios FTP debe ser un número.'; +$wb['limit_shell_user_error_notint'] = 'El límite de usuarios de consola debe ser un número.'; +$wb['limit_dns_zone_error_notint'] = 'El límite de registros DNS debe ser un número.'; +$wb['limit_database_error_notint'] = 'El límite de bases de datos debe ser un número.'; +$wb['error_template_name_empty'] = 'Por favor, introduzca un nombre de plantilla'; +$wb['limit_cron_txt'] = 'Número máximo de tareas cron'; +$wb['limit_cron_type_txt'] = 'Tipo máximo de tareas cron (chrooted y full implican URL)'; +$wb['limit_cron_frequency_txt'] = 'Espera mínima entre ejecuciones'; +$wb['limit_cron_error_notint'] = 'El límite de tareas cron debe ser un número.'; +$wb['limit_cron_error_frequency'] = 'El límite de la frecuencia de cron debe ser un número.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng new file mode 100644 index 0000000..9bbe98d --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Plantillas de clientes'; +$wb['template_type_txt'] = 'Tipo'; +$wb['template_name_txt'] = 'Nombre'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng new file mode 100644 index 0000000..1b39993 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clientes'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nombre de la empresa'; +$wb['contact_name_txt'] = 'Nombre de contacto'; +$wb['city_txt'] = 'Localidad'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Añadir un nuevo cliente'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_reseller.lng b/interface/ispconfig/interface/client/lib/lang/es_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng new file mode 100644 index 0000000..797d9d0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Revendedores'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nombre de la empresa'; +$wb['contact_name_txt'] = 'Nombre de contacto'; +$wb['city_txt'] = 'Localidad'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Añadir un nuevo revendedor'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi.lng b/interface/ispconfig/interface/client/lib/lang/fi.lng new file mode 100644 index 0000000..9b7a982 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Asiakas'; +$wb['Address'] = 'Osoite'; +$wb['Limits'] = 'Rajoitukset'; +$wb['Add Client'] = 'Lisää asiakas'; +$wb['Edit Client'] = 'Muokkaa asiakkaan tietoja'; +$wb['Clients'] = 'Asiakkaat'; +$wb['Edit Client-Templates'] = 'Muokkaa asiakasmalleja'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client.lng b/interface/ispconfig/interface/client/lib/lang/fi_client.lng new file mode 100644 index 0000000..87842b1 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Postiverkkotunnuksien määrä'; +$wb['limit_mailbox_txt'] = 'Postilaatikoiden määrä'; +$wb['limit_mailalias_txt'] = 'Postisoitteiden aliastunnuksien määrä'; +$wb['limit_mailforward_txt'] = 'Edelleenlähetysosoitteiden määrä'; +$wb['limit_mailcatchall_txt'] = 'Postiverkkotunnuksien Catchall-tilien määrä'; +$wb['limit_mailrouting_txt'] = 'Postireititysten määrä'; +$wb['limit_mailfilter_txt'] = 'Roskapostisuodattimien määrä'; +$wb['limit_fetchmail_txt'] = 'Noudettavien postilaatikoiden määrä'; +$wb['limit_mailquota_txt'] = 'Postilaatikon enimmäiskoko'; +$wb['limit_spamfilter_wblist_txt'] = 'Roskapostisuodattimien määrä'; +$wb['limit_spamfilter_user_txt'] = 'Roskapostisuodattimen käyttäjien määrä'; +$wb['limit_spamfilter_policy_txt'] = 'Roskapostisuodattimen kohtelutapojen määrä'; +$wb['default_mailserver_txt'] = 'Oletuspostipalvelin'; +$wb['company_name_txt'] = 'Yrityksen nimi'; +$wb['contact_name_txt'] = 'Yhteyshekilö'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['password_txt'] = 'Salasana'; +$wb['language_txt'] = 'Hallintapaneelin kieli'; +$wb['usertheme_txt'] = 'Hallintapaneelin teema'; +$wb['street_txt'] = 'Katuosoite'; +$wb['zip_txt'] = 'Postinumero'; +$wb['city_txt'] = 'Kaupunki'; +$wb['state_txt'] = 'Kunta'; +$wb['country_txt'] = 'Maa'; +$wb['telephone_txt'] = 'Puhelin'; +$wb['mobile_txt'] = 'Matkapuhelin'; +$wb['fax_txt'] = 'Faxi'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['internet_txt'] = 'Internet-osoite'; +$wb['icq_txt'] = 'Pikaviestintunnus'; +$wb['notes_txt'] = 'Muistiinpanot'; +$wb['company_txt'] = 'Yritys'; +$wb['title_txt'] = 'Otsikko'; +$wb['firstname_txt'] = 'Etunimi'; +$wb['surname_txt'] = 'Sukunimi'; +$wb['limit_client_txt'] = 'Asiakkaiden määrä'; +$wb['limit_domain_txt'] = 'Verkkotunnuksien määrä'; +$wb['limit_subdomain_txt'] = 'Aliverkkotunnuksien määrä'; +$wb['limit_webquota_txt'] = 'Kotisivutila'; +$wb['limit_database_txt'] = 'Tietokantojen määrä'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['limit_client_error_notint'] = 'Alikäyttäjien raja-arvon pitää olla numero.'; +$wb['firstname_error_empty'] = 'Etunimi on tyhjä.'; +$wb['contact_error_empty'] = 'Yhteyshenkilön nimi on tyhjä.'; +$wb['default_webserver_txt'] = 'Oletuspalvelin'; +$wb['limit_web_domain_txt'] = 'Verkkotunnuksien määrä'; +$wb['limit_web_aliasdomain_txt'] = 'Aliasverkkotunnuksien määrä'; +$wb['limit_web_subdomain_txt'] = 'Aliverkkotunnuksien määrä'; +$wb['limit_ftp_user_txt'] = 'FTP-käyttäjätunnuksien määrä'; +$wb['default_dnsserver_txt'] = 'Oletusnimipavelin'; +$wb['limit_dns_zone_txt'] = 'DNS-alueiden määrä'; +$wb['limit_dns_record_txt'] = 'DNS-tietuieden määrä'; +$wb['limit_shell_user_txt'] = 'Shell-käyttäjien määrä'; +$wb['username_error_empty'] = 'Käyttäjätunnus on tyhjä'; +$wb['username_error_unique'] = 'Käyttäjätunnus on jo olemassa'; +$wb['limit_maildomain_error_notint'] = 'Postiverkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_mailbox_error_notint'] = 'Postilaatikoiden raja-arvon pitää olla numero.'; +$wb['limit_mailalias_error_notint'] = 'Postin aliastunnuksien raja-arvon pitää olla numero.'; +$wb['limit_mailforward_error_notint'] = 'Postin edelleenlähetysten raja-arvon pitää olla numero.'; +$wb['limit_mailcatchall_error_notint'] = 'Postiverkkotunnuksien catchall-tunnuksien raja-arvon pitää olla numero.'; +$wb['limit_mailrouting_error_notint'] = 'Postireititysten raja-arvon pitää olla numero.'; +$wb['limit_mailfilter_error_notint'] = 'Roskapostisuodattimien raja-arvon pitää olla numero.'; +$wb['limit_mailfetchmail_error_notint'] = 'Noudettavien postilaatikoiden raja-arvon pitää olla numero.'; +$wb['limit_mailquota_error_notint'] = 'Postilaatikon koon raja-arvon pitää olla numero.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Roskapostin sallittu/estetty-suodattimien raja-arvon pitää olla numero..'; +$wb['limit_spamfilter_user_error_notint'] = 'Roskapostisuodattimen käyttäjien raja-arvon pitää olla numero..'; +$wb['limit_spamfilter_policy_error_notint'] = 'Roskapostisuodattimen kohtelutapojen raja-arvon pitää olla numero.'; +$wb['limit_web_domain_error_notint'] = 'Verkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Aliasverkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_web_subdomain_error_notint'] = 'Aliverkkotunnuksien raja-arvon pitää olla numero..'; +$wb['limit_ftp_user_error_notint'] = 'Ftp-käyttäjätunnuksien raja-arvon pitää olla numero.'; +$wb['limit_shell_user_error_notint'] = 'Shell-käyttäjätunnuksien raja-arvon pitää olla numero.'; +$wb['limit_dns_zone_error_notint'] = 'DNS-tietueiden raja-arvon pitää olla numero.'; +$wb['default_dbserver_txt'] = 'Oletustietokantapalvelin'; +$wb['limit_database_error_notint'] = 'Tietokantojen raja-arvon pitää olla numero.'; +$wb['username_error_regex'] = 'Käyttäjätunnus sisältää virheellisiä merkkejä.'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['template_master_txt'] = 'Perusmalli'; +$wb['template_additional_txt'] = 'Lisämalli'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng new file mode 100644 index 0000000..e3b55dd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Aliasiakkaiden raja-arvon pitää olla numero.'; +$wb['limit_maildomain_txt'] = 'Postiverkkotunnuksien määrä'; +$wb['limit_mailbox_txt'] = 'Postilaatikoiden määrä'; +$wb['limit_mailalias_txt'] = 'Postialiaksien määrä'; +$wb['limit_mailforward_txt'] = 'Edelleenlähetysosoitteiden määrä'; +$wb['limit_mailcatchall_txt'] = 'Postiverkkotunnuksien Catchall-tilien määrä'; +$wb['limit_mailrouting_txt'] = 'Postireititysten määrä'; +$wb['limit_mailfilter_txt'] = 'Roskapostisuodattimien määrä'; +$wb['limit_fetchmail_txt'] = 'Noudettavien postilaatikoiden määrä'; +$wb['limit_mailquota_txt'] = 'Postilaatikon koko'; +$wb['limit_spamfilter_wblist_txt'] = 'Roskapostisuodattimen estolistojen määrä'; +$wb['limit_spamfilter_user_txt'] = 'Roskapostisuodattimen käyttäjien määrä'; +$wb['limit_spamfilter_policy_txt'] = 'Roskapostisuodattimen kohtelutapojen määrä'; +$wb['limit_client_txt'] = 'Asiakkaiden määrä'; +$wb['limit_domain_txt'] = 'Verkkotunnuksien raja'; +$wb['limit_subdomain_txt'] = 'Aliverkkotunnuksien raja'; +$wb['limit_webquota_txt'] = 'Kotisivutilan raja'; +$wb['limit_database_txt'] = 'Tietokantojen määrä'; +$wb['limit_web_domain_txt'] = 'Verkkotunnuksien määrä'; +$wb['limit_web_aliasdomain_txt'] = 'Aliasverkkotunnuksien määrä'; +$wb['limit_web_subdomain_txt'] = 'Aliverkkotunnuksien määrä'; +$wb['limit_ftp_user_txt'] = 'FTP-käyttäjätunnuksien määrä'; +$wb['limit_dns_zone_txt'] = 'DNS-alueiden määrä'; +$wb['limit_dns_record_txt'] = 'DNS-tietueiden määrä'; +$wb['limit_shell_user_txt'] = 'Shell-käyttäjien määrä'; +$wb['limit_maildomain_error_notint'] = 'Postiverkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_mailbox_error_notint'] = 'Postilaatikoiden raja-arvon pitää olla numero.'; +$wb['limit_mailalias_error_notint'] = 'Postialiaksien raja-arvon pitää olla numero.'; +$wb['limit_mailforward_error_notint'] = 'Edelleenlähetysosoitteiden raja-arvon pitää olla numero.'; +$wb['limit_mailcatchall_error_notint'] = 'Catchall-tunnuksien raja-arvon pitää olla numero.'; +$wb['limit_mailrouting_error_notint'] = 'Postireitityksien raja-arvon pitää olla numero.'; +$wb['limit_mailfilter_error_notint'] = 'Roskapostisuodattimien raja-arvon pitää olla numero.'; +$wb['limit_mailfetchmail_error_notint'] = 'Noudettavien postilaatikoiden raja-arvon pitää olla numero.'; +$wb['limit_mailquota_error_notint'] = 'Postilaatikon koon raja-arvon pitää olla numero.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Roskapostisuodattimen salli/estä raja-arvon pitää olla numero.'; +$wb['limit_spamfilter_user_error_notint'] = 'Roskapostisuodattimen käyttäjien raja-arvon pitää olla numero.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Roskapostisuodattimen kohtelutapojen raja-arvon pitää olla numero.'; +$wb['limit_web_domain_error_notint'] = 'Verkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Aliasverkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_web_subdomain_error_notint'] = 'Aliverkkotunnuksien raja-arvon pitää olla numero.'; +$wb['limit_ftp_user_error_notint'] = 'FTP-käyttäjätunnuksien raja-arvon pitää olla numero.'; +$wb['limit_shell_user_error_notint'] = 'Shell-käyttäjätunnuksien raja-arvon pitää olla numero.'; +$wb['limit_dns_zone_error_notint'] = 'DNS-tietueiden raja-arvon pitää olla numero.'; +$wb['limit_database_error_notint'] = 'Tietokantojen raja-arvon pitää olla numero.'; +$wb['error_template_name_empty'] = 'Anna mallilomakkeen nimi'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng new file mode 100644 index 0000000..094c3c7 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Asiakasmallit'; +$wb['template_type_txt'] = 'Tyyppi'; +$wb['template_name_txt'] = 'Asiakasmallin nimi'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng new file mode 100644 index 0000000..8b20cc4 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Asiakkaat'; +$wb['company_name_txt'] = 'Yrityksen nimi'; +$wb['contact_name_txt'] = 'Yhteyshenkilön nimi'; +$wb['city_txt'] = 'Kaupunki'; +$wb['country_txt'] = 'Maa'; +$wb['client_id_txt'] = 'Tunnus'; +$wb['add_new_record_txt'] = 'Add new client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng b/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng new file mode 100644 index 0000000..34d0896 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr.lng b/interface/ispconfig/interface/client/lib/lang/fr.lng new file mode 100644 index 0000000..b8f4d8f --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Client'; +$wb['Address'] = 'Adresse'; +$wb['Limits'] = 'Limites'; +$wb['Add Client'] = 'Ajouter un Client'; +$wb['Edit Client'] = 'Editer Client'; +$wb['Clients'] = 'Clients'; +$wb['Edit Client-Templates'] = 'Editer les modèles de Clients'; +$wb['Add Reseller'] = 'Ajouter un Revendeur'; +$wb['Edit Reseller'] = 'Editer Revendeur'; +$wb['Resellers'] = 'Revendeurs'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client.lng b/interface/ispconfig/interface/client/lib/lang/fr_client.lng new file mode 100644 index 0000000..7afb6e0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Nombre max. de domaines de-mails'; +$wb['limit_mailbox_txt'] = 'Nombre max. de boites e-mail'; +$wb['limit_mailalias_txt'] = 'Nombre max. dalias de-mail'; +$wb['limit_mailforward_txt'] = 'Nombre max. de routeurs de-mail'; +$wb['limit_mailcatchall_txt'] = 'Nombre max. de comptes catchall'; +$wb['limit_mailrouting_txt'] = 'Nombre max. de routes de-mails'; +$wb['limit_mailfilter_txt'] = 'Nombre max. de filtres de-mails'; +$wb['limit_fetchmail_txt'] = 'Nombre max. de comptes fetchmail'; +$wb['limit_mailquota_txt'] = 'Quota des boites e-mail'; +$wb['limit_spamfilter_wblist_txt'] = 'Nombre max. de liste blanches/noires de-mails'; +$wb['limit_spamfilter_user_txt'] = 'Nombre max. dutilisateurs du filtre à spam'; +$wb['limit_spamfilter_policy_txt'] = 'Nombre max. de règles du filtre à spam'; +$wb['default_mailserver_txt'] = 'Serveur mail par défaut'; +$wb['company_name_txt'] = 'Nom de lentreprise'; +$wb['contact_name_txt'] = 'Nom de contact'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['password_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['language_txt'] = 'Langage'; +$wb['usertheme_txt'] = 'Thème'; +$wb['street_txt'] = 'Rue'; +$wb['zip_txt'] = 'Code Postal'; +$wb['city_txt'] = 'Ville'; +$wb['state_txt'] = 'Etat'; +$wb['country_txt'] = 'Pays'; +$wb['telephone_txt'] = 'Num. de téléphone'; +$wb['mobile_txt'] = 'Num. Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Adresse Web'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Entreprise'; +$wb['title_txt'] = 'Titre'; +$wb['firstname_txt'] = 'Prénom'; +$wb['surname_txt'] = 'Nom'; +$wb['limit_client_txt'] = 'Nombre max. de clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Nombre max. de bases de données'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'La limite de sous-clients doit être un nombre'; +$wb['firstname_error_empty'] = 'Le prénom est vide.'; +$wb['contact_error_empty'] = 'Le nom de contact est vide.'; +$wb['default_webserver_txt'] = 'Serveur Web par défaut'; +$wb['limit_web_domain_txt'] = 'Nombre max. de domaines Web'; +$wb['limit_web_aliasdomain_txt'] = 'Nombre max. dalias de domaines'; +$wb['limit_web_subdomain_txt'] = 'Nombre max. de sous-domaines'; +$wb['limit_ftp_user_txt'] = 'Nombre max. dutilisateurs FTP'; +$wb['default_dnsserver_txt'] = 'Serveur DNS par défaut'; +$wb['limit_dns_zone_txt'] = 'Nombre max. de zones DNS'; +$wb['limit_dns_record_txt'] = 'Nombre max. denregistrements DNS'; +$wb['limit_shell_user_txt'] = 'Nombre max. dutilisateurs Shell'; +$wb['username_error_empty'] = 'Le nom dutilisateur est vide.'; +$wb['username_error_unique'] = 'Le nom dutilisateur éxiste déja.'; +$wb['limit_maildomain_error_notint'] = 'La limite de domaines de-mail doit être un nombre.'; +$wb['limit_mailbox_error_notint'] = 'La limite de boites de-mail doit être un nombre.'; +$wb['limit_mailalias_error_notint'] = 'La limite dalias de-mail doit être un nombre.'; +$wb['limit_mailforward_error_notint'] = 'La limite de routeurs de-mail doit être un nombre.'; +$wb['limit_mailcatchall_error_notint'] = 'La limite de comptes catchall doit être un nombre.'; +$wb['limit_mailrouting_error_notint'] = 'La limite de routes de-mail doit être un nombre.'; +$wb['limit_mailfilter_error_notint'] = 'La limite de filtres de-mail doit être un nombre.'; +$wb['limit_mailfetchmail_error_notint'] = 'La limite de comptes fetchall doit être un nombre.'; +$wb['limit_mailquota_error_notint'] = 'La limite du quota des boites de-mail doit être un nombre.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'La limite de listes blanches/noires du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_user_error_notint'] = 'La limite dutilisateurs du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_policy_error_notint'] = 'La limite de règles du filtre à spam doit être un nombre.'; +$wb['limit_web_domain_error_notint'] = 'La limite de sites web doit être un nombre.'; +$wb['limit_web_aliasdomain_error_notint'] = 'La limite dalias de domaines doit être un nombre.'; +$wb['limit_web_subdomain_error_notint'] = 'La limite de sous-domaines doit être un nombre.'; +$wb['limit_ftp_user_error_notint'] = 'La limite dutilisateurs FTP doit être un nombre.'; +$wb['limit_shell_user_error_notint'] = 'La limite dutilisateurs Shell doit être un nombre.'; +$wb['limit_dns_zone_error_notint'] = 'La limite denregistrements DNS doit être un nombre.'; +$wb['default_dbserver_txt'] = 'Serveur de bases de données par défaut'; +$wb['limit_database_error_notint'] = 'La limite de bases de données doit être un nombre.'; +$wb['username_error_regex'] = 'Le nom dutilisateur contient des caractères invalides.'; +$wb['template_master_txt'] = 'Maître'; +$wb['template_additional_txt'] = 'Ajout'; +$wb['ssh_chroot_txt'] = 'Options Chroot SSH'; +$wb['web_php_options_txt'] = 'Options PHP'; +$wb['limit_cron_txt'] = 'Nombre max. de tâches Cron'; +$wb['limit_cron_type_txt'] = 'Types des tâches Cron'; +$wb['limit_cron_frequency_txt'] = 'Délai minimum entre deux éxécutions'; +$wb['limit_cron_error_notint'] = 'La limite de tâches Cron doit être un nombre.'; +$wb['limit_cron_error_frequency'] = 'La fréquence des tâches Cron doit être un nombre.'; +$wb['limit_client_error'] = 'Le nombre maximum de client a été atteint.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng new file mode 100644 index 0000000..d984acc --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['limit_maildomain_txt'] = 'Nombre max. de domaines de-mails'; +$wb['limit_mailbox_txt'] = 'Nombre max. de boites e-mail'; +$wb['limit_mailalias_txt'] = 'Nombre max. dalias de-mail'; +$wb['limit_mailforward_txt'] = 'Nombre max. de routeurs de-mail'; +$wb['limit_mailcatchall_txt'] = 'Nombre max. de comptes catchall'; +$wb['limit_mailrouting_txt'] = 'Nombre max. de routes de-mails'; +$wb['limit_mailfilter_txt'] = 'Nombre max. de filtres de-mails'; +$wb['limit_fetchmail_txt'] = 'Nombre max. de comptes fetchmail'; +$wb['limit_mailquota_txt'] = 'Quota des boites e-mail'; +$wb['limit_spamfilter_wblist_txt'] = 'Nombre max. de liste blanches/noires de-mails'; +$wb['limit_spamfilter_user_txt'] = 'Nombre max. dutilisateurs du filtre à spam'; +$wb['limit_spamfilter_policy_txt'] = 'Nombre max. de règles du filtre à spam'; +$wb['limit_client_txt'] = 'Nombre max. de clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Nombre max. de bases de données.'; +$wb['limit_web_domain_txt'] = 'Nombre max. de domaines Web'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Nombre max. de sous-domaines'; +$wb['limit_ftp_user_txt'] = 'Nombre max. dutilisateurs FTP'; +$wb['limit_dns_zone_txt'] = 'Nombre max. de zones DNS'; +$wb['limit_dns_record_txt'] = 'Nombre max. denregistrements DNS'; +$wb['limit_shell_user_txt'] = 'Nombre max. dutilisateurs Shell'; +$wb['limit_maildomain_error_notint'] = 'La limite de domaines de-mail doit être un nombre.'; +$wb['limit_mailbox_error_notint'] = 'La limite de boites de-mail doit être un nombre.'; +$wb['limit_mailalias_error_notint'] = 'La limite dalias de-mail doit être un nombre.'; +$wb['limit_mailforward_error_notint'] = 'La limite de routeurs de-mail doit être un nombre.'; +$wb['limit_mailcatchall_error_notint'] = 'La limite de comptes catchall doit être un nombre.'; +$wb['limit_mailrouting_error_notint'] = 'La limite de routes de-mail doit être un nombre.'; +$wb['limit_mailfilter_error_notint'] = 'La limite de filtres de-mail doit être un nombre.'; +$wb['limit_mailfetchmail_error_notint'] = 'La limite de comptes fetchall doit être un nombre.'; +$wb['limit_mailquota_error_notint'] = 'La limite du quota des boites de-mail doit être un nombre.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'La limite de listes blanches/noires du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_user_error_notint'] = 'La limite dutilisateurs du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_policy_error_notint'] = 'La limite de règles du filtre à spam doit être un nombre.'; +$wb['limit_web_domain_error_notint'] = 'La limite de sites web doit être un nombre.'; +$wb['limit_web_aliasdomain_error_notint'] = 'La limite dalias de domaines doit être un nombre.'; +$wb['limit_web_subdomain_error_notint'] = 'La limite de sous-domaines doit être un nombre.'; +$wb['limit_ftp_user_error_notint'] = 'La limite dutilisateurs FTP doit être un nombre.'; +$wb['limit_shell_user_error_notint'] = 'La limite dutilisateurs Shell doit être un nombre.'; +$wb['limit_dns_zone_error_notint'] = 'La limite denregistrements DNS doit être un nombre.'; +$wb['limit_database_error_notint'] = 'La limite de bases de données doit être un nombre.'; +$wb['error_template_name_empty'] = 'Entrez le nom du modèle.'; +$wb['limit_cron_txt'] = 'Nombre max. de tâches Cron'; +$wb['limit_cron_type_txt'] = 'Types des tâches Cron'; +$wb['limit_cron_frequency_txt'] = 'Délai minimum entre deux éxécutions'; +$wb['limit_cron_error_notint'] = 'La limite de tâches Cron doit être un nombre.'; +$wb['limit_cron_error_frequency'] = 'La fréquence des tâches Cron doit être un nombre.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng new file mode 100644 index 0000000..3405427 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Modèles de clients'; +$wb['template_type_txt'] = 'Type'; +$wb['template_name_txt'] = 'Nom du modèle'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng new file mode 100644 index 0000000..e5a0c17 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clients'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nom de lentreprise'; +$wb['contact_name_txt'] = 'Nom de contact'; +$wb['city_txt'] = 'VIlle'; +$wb['country_txt'] = 'Pays'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng b/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng new file mode 100644 index 0000000..24926d4 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Nombre max. de domaines de-mails'; +$wb['limit_mailbox_txt'] = 'Nombre max. de boites e-mail'; +$wb['limit_mailalias_txt'] = 'Nombre max. dalias de-mail'; +$wb['limit_mailforward_txt'] = 'Nombre max. de routeurs de-mail'; +$wb['limit_mailcatchall_txt'] = 'Nombre max. de comptes catchall'; +$wb['limit_mailrouting_txt'] = 'Nombre max. de routes de-mails'; +$wb['limit_mailfilter_txt'] = 'Nombre max. de filtres de-mails'; +$wb['limit_fetchmail_txt'] = 'Nombre max. de comptes fetchmail'; +$wb['limit_mailquota_txt'] = 'Quota des boites e-mail'; +$wb['limit_spamfilter_wblist_txt'] = 'Nombre max. de liste blanches/noires de-mails'; +$wb['limit_spamfilter_user_txt'] = 'Nombre max. dutilisateurs du filtre à spam'; +$wb['limit_spamfilter_policy_txt'] = 'Nombre max. de règles du filtre à spam'; +$wb['default_mailserver_txt'] = 'Serveur mail par défaut'; +$wb['company_name_txt'] = 'Nom de lentreprise'; +$wb['contact_name_txt'] = 'Nom de contact'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['password_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['language_txt'] = 'Langage'; +$wb['usertheme_txt'] = 'Thème'; +$wb['street_txt'] = 'Rue'; +$wb['zip_txt'] = 'Code Postal'; +$wb['city_txt'] = 'Ville'; +$wb['state_txt'] = 'Etat'; +$wb['country_txt'] = 'Pays'; +$wb['telephone_txt'] = 'Num. de téléphone'; +$wb['mobile_txt'] = 'Num. Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Adresse Web'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Entreprise'; +$wb['title_txt'] = 'Titre'; +$wb['firstname_txt'] = 'Prénom'; +$wb['surname_txt'] = 'Nom'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Nombre max. de bases de données'; +$wb['limit_cron_txt'] = 'Nombre max. de tâches Cron'; +$wb['limit_cron_type_txt'] = 'Types des tâches Cron'; +$wb['limit_cron_frequency_txt'] = 'Délai minimum entre deux éxécutions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'La limite de sous-clients doit être un nombre.'; +$wb['firstname_error_empty'] = 'Le prénom est vide.'; +$wb['contact_error_empty'] = 'Le nom de contact est vide.'; +$wb['default_webserver_txt'] = 'Serveur Web par défaut'; +$wb['limit_web_domain_txt'] = 'Nombre max. de domaines Web'; +$wb['limit_web_aliasdomain_txt'] = 'Nombre max. dalias de domaines'; +$wb['limit_web_subdomain_txt'] = 'Nombre max. de sous-domaines'; +$wb['limit_ftp_user_txt'] = 'Nombre max. dutilisateurs FTP'; +$wb['default_dnsserver_txt'] = 'Serveur DNS par défaut'; +$wb['limit_dns_zone_txt'] = 'Nombre max. de zones DNS'; +$wb['limit_dns_record_txt'] = 'Nombre max. denregistrements DNS'; +$wb['limit_shell_user_txt'] = 'Nombre max. dutilisateurs Shell'; +$wb['limit_client_txt'] = 'Nombre max. de clients'; +$wb['username_error_empty'] = 'Le nom dutilisateur est vide.'; +$wb['username_error_unique'] = 'Le nom dutilisateur éxiste déja.'; +$wb['limit_maildomain_error_notint'] = 'La limite de domaines de-mail doit être un nombre.'; +$wb['limit_mailbox_error_notint'] = 'La limite de boites de-mail doit être un nombre.'; +$wb['limit_mailalias_error_notint'] = 'La limite dalias de-mail doit être un nombre.'; +$wb['limit_mailforward_error_notint'] = 'La limite de routeurs de-mail doit être un nombre.'; +$wb['limit_mailcatchall_error_notint'] = 'La limite de comptes catchall doit être un nombre.'; +$wb['limit_mailrouting_error_notint'] = 'La limite de routes de-mail doit être un nombre.'; +$wb['limit_mailfilter_error_notint'] = 'La limite de filtres de-mail doit être un nombre.'; +$wb['limit_mailfetchmail_error_notint'] = 'La limite de comptes fetchall doit être un nombre.'; +$wb['limit_mailquota_error_notint'] = 'La limite du quota des boites de-mail doit être un nombre.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'La limite de listes blanches/noires du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_user_error_notint'] = 'La limite dutilisateurs du filtre à spam doit être un nombre.'; +$wb['limit_spamfilter_policy_error_notint'] = 'La limite de règles du filtre à spam doit être un nombre.'; +$wb['limit_web_domain_error_notint'] = 'La limite de sites web doit être un nombre.'; +$wb['limit_web_aliasdomain_error_notint'] = 'La limite dalias de domaines doit être un nombre.'; +$wb['limit_web_subdomain_error_notint'] = 'La limite de sous-domaines doit être un nombre.'; +$wb['limit_ftp_user_error_notint'] = 'La limite dutilisateurs FTP doit être un nombre.'; +$wb['limit_shell_user_error_notint'] = 'La limite dutilisateurs Shell doit être un nombre.'; +$wb['limit_dns_zone_error_notint'] = 'La limite denregistrements DNS doit être un nombre.'; +$wb['default_dbserver_txt'] = 'Serveur de bases de données par défaut'; +$wb['limit_database_error_notint'] = 'La limite de bases de données doit être un nombre.'; +$wb['limit_cron_error_notint'] = 'La limite de tâches Cron doit être un nombre.'; +$wb['limit_cron_error_frequency'] = 'La fréquence des tâches Cron doit être un nombre.'; +$wb['username_error_regex'] = 'Le nom dutilisateur contient des caractères invalides.'; +$wb['template_master_txt'] = 'Modèle Maître'; +$wb['template_additional_txt'] = 'Modèle additionnel'; +$wb['ssh_chroot_txt'] = 'Options Chroot SSH'; +$wb['web_php_options_txt'] = 'Options PHP'; +$wb['limit_client_error'] = 'Le nombre maximum de client a été atteint.'; +$wb['limit_client_error_positive'] = 'Le nombre de clients doit être plus grande que 0.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng new file mode 100644 index 0000000..e5a0c17 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clients'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nom de lentreprise'; +$wb['contact_name_txt'] = 'Nom de contact'; +$wb['city_txt'] = 'VIlle'; +$wb['country_txt'] = 'Pays'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu.lng b/interface/ispconfig/interface/client/lib/lang/hu.lng new file mode 100644 index 0000000..74a7c72 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Ügyfél'; +$wb['Address'] = 'Cím'; +$wb['Limits'] = 'Korlátok'; +$wb['Add Client'] = 'Ügyfél hozzáadása'; +$wb['Edit Client'] = 'Ügyfél adatok szerkesztése'; +$wb['Clients'] = 'Ügyfelek'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client.lng b/interface/ispconfig/interface/client/lib/lang/hu_client.lng new file mode 100644 index 0000000..35be91f --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Maximálisan létrehozható email domainek száma'; +$wb['limit_mailbox_txt'] = 'Maximálisan létrehozható email fiókok száma'; +$wb['limit_mailalias_txt'] = 'Maximálisan létrehozható email alias-ok száma'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox korlát'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Alap levelező szerver'; +$wb['company_name_txt'] = 'Szervezet neve'; +$wb['contact_name_txt'] = 'Kapcsolat tartó neve'; +$wb['username_txt'] = 'Felhasználói név'; +$wb['password_txt'] = 'Jelszó'; +$wb['language_txt'] = 'Nyelv'; +$wb['usertheme_txt'] = 'Kinézet'; +$wb['street_txt'] = 'Utca'; +$wb['zip_txt'] = 'Irányító szám'; +$wb['city_txt'] = 'Város'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Ország'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Mobil telefon'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Megjegyzés'; +$wb['company_txt'] = 'Szervezet'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng new file mode 100644 index 0000000..45930a0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Client Limit is not a number.'; +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['error_template_name_empty'] = 'Please enter a Template name'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng new file mode 100644 index 0000000..b93a5f9 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Client-Templates'; +$wb['template_type_txt'] = 'Type'; +$wb['template_name_txt'] = 'Template name'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng new file mode 100644 index 0000000..09105a0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Ügyfelek'; +$wb['client_id_txt'] = 'Azonosító'; +$wb['company_name_txt'] = 'Szervezet neve'; +$wb['contact_name_txt'] = 'Kapcsolattartó neve'; +$wb['city_txt'] = 'Város'; +$wb['country_txt'] = 'Ország'; +$wb['add_new_record_txt'] = 'Új ügyfél hozzáadása'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng b/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng new file mode 100644 index 0000000..34d0896 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it.lng b/interface/ispconfig/interface/client/lib/lang/it.lng new file mode 100644 index 0000000..1755256 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Cliente'; +$wb['Address'] = 'Indirizzo'; +$wb['Limits'] = 'Limiti'; +$wb['Add Client'] = 'Aggiungi cliente'; +$wb['Edit Client'] = 'Modifica cliente'; +$wb['Clients'] = 'Clienti'; +$wb['Edit Client-Templates'] = 'Modifica modelli cliente'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_client.lng b/interface/ispconfig/interface/client/lib/lang/it_client.lng new file mode 100644 index 0000000..7dbc06c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Numero massimo di email domains'; +$wb['limit_mailbox_txt'] = 'Numero massimo di mailboxes'; +$wb['limit_mailalias_txt'] = 'Numero massimo di email aliases'; +$wb['limit_mailforward_txt'] = 'Numero massimo di email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Numero massimo di email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Numero massimo di email routes'; +$wb['limit_mailfilter_txt'] = 'Numero massimo di email filters'; +$wb['limit_fetchmail_txt'] = 'Numero massimo di fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Limite quota mailbox'; +$wb['limit_spamfilter_wblist_txt'] = 'Numero massimo di spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Numero massimo di spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Numero massimo di spamfilter policys'; +$wb['default_mailserver_txt'] = 'Mailserver predefinito'; +$wb['company_name_txt'] = 'Nome compagnia'; +$wb['contact_name_txt'] = 'Nome contatto'; +$wb['username_txt'] = 'Nome utente'; +$wb['password_txt'] = 'Password'; +$wb['language_txt'] = 'Lingua'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Via'; +$wb['zip_txt'] = 'C.a.p.'; +$wb['city_txt'] = 'Città'; +$wb['state_txt'] = 'Provincia'; +$wb['country_txt'] = 'Stato'; +$wb['telephone_txt'] = 'Telefono'; +$wb['mobile_txt'] = 'Cellulare'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Note'; +$wb['company_txt'] = 'Compagnia'; +$wb['title_txt'] = 'Titolo'; +$wb['firstname_txt'] = 'Nome'; +$wb['surname_txt'] = 'Cognome'; +$wb['limit_client_txt'] = 'Numero massimo clienti'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Numero massimo database'; +$wb['ip_address_txt'] = 'Indirizzi ip'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Nome è vuoto.'; +$wb['contact_error_empty'] = 'Nome compagnia è vuoto.'; +$wb['default_webserver_txt'] = 'Webserver predefinito'; +$wb['limit_web_domain_txt'] = 'Numero massimo di domini'; +$wb['limit_web_aliasdomain_txt'] = 'Numero massimo di dominialias'; +$wb['limit_web_subdomain_txt'] = 'Numero massimo di sottodomini'; +$wb['limit_ftp_user_txt'] = 'Numero massimo di utenti FTP'; +$wb['default_dnsserver_txt'] = 'DNS Server predefinito'; +$wb['limit_dns_zone_txt'] = 'Numero massimo di zone DNS'; +$wb['limit_dns_record_txt'] = 'Numero massimo di record DNS'; +$wb['limit_shell_user_txt'] = 'Numero massimo di utenti Shell'; +$wb['username_error_empty'] = 'Nome utente è vuoto.'; +$wb['username_error_unique'] = 'Il nome utente deve essere unico.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'Il limite degli utenti ftp deve essere un numero.'; +$wb['limit_shell_user_error_notint'] = 'Il limite degli utenti shell deve essere un numero.'; +$wb['limit_dns_zone_error_notint'] = 'Il limite dei record dns deve essere un numero.'; +$wb['default_dbserver_txt'] = 'Server Database predefinito'; +$wb['limit_database_error_notint'] = 'Il limite dei database deve essere un numero.'; +$wb['username_error_regex'] = 'Il nome utente contiene caratteri non validi.'; +$wb['password_strength_txt'] = 'Sicurezza della Password'; +$wb['template_master_txt'] = 'Principale'; +$wb['template_additional_txt'] = 'Aggiuntivo'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_del.lng b/interface/ispconfig/interface/client/lib/lang/it_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_template.lng b/interface/ispconfig/interface/client/lib/lang/it_client_template.lng new file mode 100644 index 0000000..abc74f4 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['error_template_name_empty'] = 'Devi inserire il nome del modello'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng new file mode 100644 index 0000000..03aa10e --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Modelli cliente'; +$wb['template_type_txt'] = 'Tipo'; +$wb['template_name_txt'] = 'Nome modello'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng new file mode 100644 index 0000000..d3bd8cd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clienti'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nome compagnia'; +$wb['contact_name_txt'] = 'Nome contatto'; +$wb['city_txt'] = 'Città'; +$wb['country_txt'] = 'Stato'; +$wb['add_new_record_txt'] = 'Add new client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_reseller.lng b/interface/ispconfig/interface/client/lib/lang/it_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng new file mode 100644 index 0000000..34d0896 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja.lng b/interface/ispconfig/interface/client/lib/lang/ja.lng new file mode 100644 index 0000000..a6edbc1 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'クライアント'; +$wb['Address'] = '住所'; +$wb['Limits'] = '制限'; +$wb['Add Client'] = 'クライアントを追加する'; +$wb['Edit Client'] = 'クライアントを編集する'; +$wb['Clients'] = 'クライアント'; +$wb['Edit Client-Templates'] = 'クライアントテンプレートを編集する'; +$wb['Add Reseller'] = 'リセラーを追加する'; +$wb['Edit Reseller'] = 'リセラーを編集する'; +$wb['Resellers'] = 'リセラー'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client.lng b/interface/ispconfig/interface/client/lib/lang/ja_client.lng new file mode 100644 index 0000000..2289f94 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'メールドメインの最大数'; +$wb['limit_mailbox_txt'] = 'メールボックスの最大数'; +$wb['limit_mailalias_txt'] = 'メールエイリアスの最大数'; +$wb['limit_mailforward_txt'] = 'メールフォワードの最大数'; +$wb['limit_mailcatchall_txt'] = 'キャッチオール・メールアカウントの最大数'; +$wb['limit_mailrouting_txt'] = 'メール配送経路の最大数'; +$wb['limit_mailfilter_txt'] = 'メールフィルターの最大数'; +$wb['limit_fetchmail_txt'] = 'fetchmailアカウントの最大数'; +$wb['limit_mailquota_txt'] = 'メールボックスの容量'; +$wb['limit_spamfilter_wblist_txt'] = '迷惑メールのホワイトリスト、ブラックリストフィルターの最大数'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = '迷惑メールフィルタのポリシーの最大数'; +$wb['default_mailserver_txt'] = 'デフォルトのメールサーバー'; +$wb['company_name_txt'] = '社名'; +$wb['contact_name_txt'] = '担当者名'; +$wb['username_txt'] = 'ユーザー名'; +$wb['password_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['language_txt'] = '言語'; +$wb['usertheme_txt'] = 'テーマ'; +$wb['street_txt'] = '丁目・番地・号'; +$wb['zip_txt'] = '郵便番号'; +$wb['city_txt'] = '市区町村'; +$wb['state_txt'] = '都道府県'; +$wb['country_txt'] = '国'; +$wb['telephone_txt'] = '固定電話番号'; +$wb['mobile_txt'] = '携帯電話番号'; +$wb['fax_txt'] = 'FAX番号'; +$wb['email_txt'] = 'メールアドレス'; +$wb['internet_txt'] = 'ホームページ'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = '備考'; +$wb['company_txt'] = '社名'; +$wb['title_txt'] = '役職'; +$wb['firstname_txt'] = '名'; +$wb['surname_txt'] = '姓'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'データベース数の最大値'; +$wb['limit_cron_txt'] = 'cronジョブの最大数'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = '名を入力してください。'; +$wb['contact_error_empty'] = '担当者名を入力してください。'; +$wb['default_webserver_txt'] = 'デフォルトのウェブサーバー'; +$wb['limit_web_domain_txt'] = 'ウェブドメインの最大数'; +$wb['limit_web_aliasdomain_txt'] = 'ウェブエイリアスドメインの最大数'; +$wb['limit_web_subdomain_txt'] = 'ウェブサブドメインの最大数'; +$wb['limit_ftp_user_txt'] = 'FTPユーザーの最大数'; +$wb['default_dnsserver_txt'] = 'デフォルトのDNSサーバー'; +$wb['limit_dns_zone_txt'] = 'DNSゾーンの最大数'; +$wb['limit_dns_record_txt'] = 'DNSレコードの最大数'; +$wb['limit_shell_user_txt'] = 'Shellユーザーの最大数'; +$wb['limit_client_txt'] = 'クライアントの最大値'; +$wb['username_error_empty'] = 'ユーザー名を指定してください'; +$wb['username_error_unique'] = '既に登録済みのユーザー名です。別の名前に変更してください。'; +$wb['limit_maildomain_error_notint'] = 'メールドメインの最大数は数字で指定してください。'; +$wb['limit_mailbox_error_notint'] = 'メールボックスの最大数は数字で指定してください。'; +$wb['limit_mailalias_error_notint'] = 'メールエイリアスの最大数は数字で指定してください。'; +$wb['limit_mailforward_error_notint'] = 'メールフォワードの最大数は数字で指定してください。'; +$wb['limit_mailcatchall_error_notint'] = 'キャッチオール・メールアドレスの最大数は数字で指定してください。'; +$wb['limit_mailrouting_error_notint'] = 'メールの配送経路の最大数は数字で指定してください。'; +$wb['limit_mailfilter_error_notint'] = 'メールフィルターの最大数は数字で指定してください。'; +$wb['limit_mailfetchmail_error_notint'] = 'fetchmailアカウントの最大数は数字で指定してください。'; +$wb['limit_mailquota_error_notint'] = 'メールボックスの最大容量は数字で指定してください。'; +$wb['limit_spamfilter_wblist_error_notint'] = 'スパムフィルターのホワイトリスト、ブラックリストの最大数は数字で指定してください。'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'スパムフィルターのポリシーの最大数は数字で指定してください。'; +$wb['limit_web_domain_error_notint'] = 'ウェブサイトの最大数は数字で指定してください。'; +$wb['limit_web_aliasdomain_error_notint'] = 'ウェブサイトのエイリアスドメインの最大数は数字で指定してください。'; +$wb['limit_web_subdomain_error_notint'] = 'ウェブサイトのサブドメインの最大値は数字で指定してください。'; +$wb['limit_ftp_user_error_notint'] = 'FTPユーザーの最大数は数字で指定してください。'; +$wb['limit_shell_user_error_notint'] = 'Shellユーザーの最大数は数字で指定してください。'; +$wb['limit_dns_zone_error_notint'] = 'DNSレコードの最大数は数字で指定してください。'; +$wb['default_dbserver_txt'] = 'デフォルトのデータベースサーバー'; +$wb['limit_database_error_notint'] = 'データベースの最大数は数字で指定してください。'; +$wb['limit_cron_error_notint'] = 'cronジョブの最大数は数字で指定してください。'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'ユーザー名に不正な文字が含まれています。'; +$wb['template_master_txt'] = 'マスターテンプレート'; +$wb['template_additional_txt'] = 'アドオンテンプレート'; +$wb['ssh_chroot_txt'] = 'SSH-Chrootオプション'; +$wb['web_php_options_txt'] = 'PHPオプション'; +$wb['limit_client_error'] = 'クライアントの最大数に達しました。'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng new file mode 100644 index 0000000..0291b2e --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'クライアントの最大数は数字で指定してください。'; +$wb['limit_maildomain_txt'] = 'メールドメインの最大数'; +$wb['limit_mailbox_txt'] = 'メールボックスの最大数'; +$wb['limit_mailalias_txt'] = 'メールエイリアスの最大数'; +$wb['limit_mailforward_txt'] = 'メールフォワードの最大数'; +$wb['limit_mailcatchall_txt'] = 'キャッチオール・メールアカウントの最大数'; +$wb['limit_mailrouting_txt'] = 'メール配送経路の最大数'; +$wb['limit_mailfilter_txt'] = 'メールフィルターの最大数'; +$wb['limit_fetchmail_txt'] = 'fetchmailアカウントの最大数'; +$wb['limit_mailquota_txt'] = 'メールボックスの容量'; +$wb['limit_spamfilter_wblist_txt'] = '迷惑メールのホワイトリスト、ブラックリストフィルターの最大数'; +$wb['limit_spamfilter_user_txt'] = 'スパムフィルターユーザーの最大数'; +$wb['limit_spamfilter_policy_txt'] = '迷惑メールフィルタのポリシーの最大数'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'データベース数の最大値'; +$wb['limit_cron_txt'] = 'cronジョブの最大数'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_web_domain_txt'] = 'ウェブドメインの最大数'; +$wb['limit_web_aliasdomain_txt'] = 'ウェブエイリアスドメインの最大数'; +$wb['limit_web_subdomain_txt'] = 'ウェブサブドメインの最大数'; +$wb['limit_ftp_user_txt'] = 'FTPユーザーの最大数'; +$wb['limit_dns_zone_txt'] = 'DNSゾーンの最大数'; +$wb['limit_dns_record_txt'] = 'DNSレコードの最大数'; +$wb['limit_shell_user_txt'] = 'Shellユーザーの最大数'; +$wb['limit_client_txt'] = 'クライアントの最大値'; +$wb['limit_maildomain_error_notint'] = 'メールドメインの最大数は数字で指定してください。'; +$wb['limit_mailbox_error_notint'] = 'メールボックスの最大数は数字で指定してください。'; +$wb['limit_mailalias_error_notint'] = 'メールエイリアスの最大数は数字で指定してください。'; +$wb['limit_mailforward_error_notint'] = 'メールフォワードの最大数は数字で指定してください。'; +$wb['limit_mailcatchall_error_notint'] = 'キャッチオール・メールアドレスの最大数は数字で指定してください。'; +$wb['limit_mailrouting_error_notint'] = 'メールの配送経路の最大数は数字で指定してください。'; +$wb['limit_mailfilter_error_notint'] = 'メールフィルターの最大数は数字で指定してください。'; +$wb['limit_mailfetchmail_error_notint'] = 'fetchmailアカウントの最大数は数字で指定してください。'; +$wb['limit_mailquota_error_notint'] = 'メールボックスの最大容量は数字で指定してください。'; +$wb['limit_spamfilter_wblist_error_notint'] = 'スパムフィルターのホワイトリスト、ブラックリストの最大数は数字で指定してください。'; +$wb['limit_spamfilter_user_error_notint'] = 'スパムフィルターユーザーの最大数は数字で指定してください。'; +$wb['limit_spamfilter_policy_error_notint'] = 'スパムフィルターのポリシーの最大数は数字で指定してください。'; +$wb['limit_web_domain_error_notint'] = 'ウェブサイトの最大数は数字で指定してください。'; +$wb['limit_web_aliasdomain_error_notint'] = 'ウェブサイトのエイリアスドメインの最大数は数字で指定してください。'; +$wb['limit_web_subdomain_error_notint'] = 'ウェブサイトのサブドメインの最大値は数字で指定してください。'; +$wb['limit_ftp_user_error_notint'] = 'FTPユーザーの最大数は数字で指定してください。'; +$wb['limit_shell_user_error_notint'] = 'Shellユーザーの最大数は数字で指定してください。'; +$wb['limit_dns_zone_error_notint'] = 'DNSレコードの最大数は数字で指定してください。'; +$wb['limit_database_error_notint'] = 'データベースの最大数は数字で指定してください。'; +$wb['limit_cron_error_notint'] = 'cronジョブの最大数は数字で指定してください。'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['error_template_name_empty'] = 'テンプレート名を入力してください。'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng new file mode 100644 index 0000000..05d3358 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'クライアントテンプレート'; +$wb['template_type_txt'] = '種別'; +$wb['template_name_txt'] = 'テンプレート名'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng new file mode 100644 index 0000000..f5b39e1 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'クライアント'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = '社名'; +$wb['contact_name_txt'] = '担当者名'; +$wb['city_txt'] = '市区町村'; +$wb['country_txt'] = '国'; +$wb['add_new_record_txt'] = 'クライアントを追加する'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng new file mode 100644 index 0000000..fbb4380 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'メールドメインの最大数'; +$wb['limit_mailbox_txt'] = 'メールボックスの最大数'; +$wb['limit_mailalias_txt'] = 'メールエイリアスの最大数'; +$wb['limit_mailforward_txt'] = 'メールフォワードの最大数'; +$wb['limit_mailcatchall_txt'] = 'キャッチオール・メールアカウントの最大数'; +$wb['limit_mailrouting_txt'] = 'メール配送経路の最大数'; +$wb['limit_mailfilter_txt'] = 'メールフィルターの最大数'; +$wb['limit_fetchmail_txt'] = 'Fetchmail アカウントの最大数'; +$wb['limit_mailquota_txt'] = 'メールボックスの容量'; +$wb['limit_spamfilter_wblist_txt'] = 'スパムメールのホワイトリスト、ブラックリストフィルターの最大数'; +$wb['limit_spamfilter_user_txt'] = 'スパムフィルターユーザーの最大数'; +$wb['limit_spamfilter_policy_txt'] = 'スパムフィルターポリシーの最大数'; +$wb['default_mailserver_txt'] = 'デフォルトのメールサーバー'; +$wb['company_name_txt'] = '社名'; +$wb['contact_name_txt'] = '担当者名'; +$wb['username_txt'] = 'ユーザー名'; +$wb['password_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['language_txt'] = '言語'; +$wb['usertheme_txt'] = 'テーマ'; +$wb['street_txt'] = '丁目・番地・号'; +$wb['zip_txt'] = '郵便番号'; +$wb['city_txt'] = '市区町村'; +$wb['state_txt'] = '都道府県'; +$wb['country_txt'] = '国'; +$wb['telephone_txt'] = '固定電話番号'; +$wb['mobile_txt'] = '携帯電話番号'; +$wb['fax_txt'] = 'FAX番号'; +$wb['email_txt'] = 'メールアドレス'; +$wb['internet_txt'] = 'ホームページ'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = '備考'; +$wb['company_txt'] = '社名'; +$wb['title_txt'] = '役職'; +$wb['firstname_txt'] = '名'; +$wb['surname_txt'] = '姓'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'データベース数の最大値'; +$wb['limit_cron_txt'] = 'cronジョブの最大数'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = '名を入力してください。'; +$wb['contact_error_empty'] = '担当者名を入力してください。'; +$wb['default_webserver_txt'] = 'デフォルトのウェブサーバー'; +$wb['limit_web_domain_txt'] = 'ウェブドメインの最大数'; +$wb['limit_web_aliasdomain_txt'] = 'ウェブエイリアスドメインの最大数'; +$wb['limit_web_subdomain_txt'] = 'ウェブサブドメインの最大数'; +$wb['limit_ftp_user_txt'] = 'FTPユーザーの最大数'; +$wb['default_dnsserver_txt'] = 'デフォルトのDNSサーバー'; +$wb['limit_dns_zone_txt'] = 'DNSゾーンの最大数'; +$wb['limit_dns_record_txt'] = 'DNSレコードの最大数'; +$wb['limit_shell_user_txt'] = 'Shellユーザーの最大数'; +$wb['limit_client_txt'] = 'クライアントの最大値'; +$wb['username_error_empty'] = 'ユーザー名を指定してください'; +$wb['username_error_unique'] = '既に登録済みのユーザー名です。別の名前に変更してください。'; +$wb['limit_maildomain_error_notint'] = 'メールドメインの最大数は数字で指定してください。'; +$wb['limit_mailbox_error_notint'] = 'メールボックスの最大数は数字で指定してください。'; +$wb['limit_mailalias_error_notint'] = 'メールエイリアスの最大数は数字で指定してください。'; +$wb['limit_mailforward_error_notint'] = 'メールフォワードの最大数は数字で指定してください。'; +$wb['limit_mailcatchall_error_notint'] = 'キャッチオール・メールアドレスの最大数は数字で指定してください。'; +$wb['limit_mailrouting_error_notint'] = 'メールの配送経路の最大数は数字で指定してください。'; +$wb['limit_mailfilter_error_notint'] = 'メールフィルターの最大数は数字で指定してください。'; +$wb['limit_mailfetchmail_error_notint'] = 'fetchmailアカウントの最大数は数字で指定してください。'; +$wb['limit_mailquota_error_notint'] = 'メールボックスの最大容量は数字で指定してください。'; +$wb['limit_spamfilter_wblist_error_notint'] = 'スパムフィルターのホワイトリスト、ブラックリストの最大数は数字で指定してください。'; +$wb['limit_spamfilter_user_error_notint'] = 'スパムフィルターユーザーの最大数は数字で指定してください。'; +$wb['limit_spamfilter_policy_error_notint'] = 'スパムフィルターのポリシーの最大数は数字で指定してください。'; +$wb['limit_web_domain_error_notint'] = 'ウェブサイトの最大数は数字で指定してください。'; +$wb['limit_web_aliasdomain_error_notint'] = 'ウェブサイトのエイリアスドメインの最大数は数字で指定してください。'; +$wb['limit_web_subdomain_error_notint'] = 'ウェブサイトのサブドメインの最大値は数字で指定してください。'; +$wb['limit_ftp_user_error_notint'] = 'FTPユーザーの最大数は数字で指定してください。'; +$wb['limit_shell_user_error_notint'] = 'Shellユーザーの最大数は数字で指定してください。'; +$wb['limit_dns_zone_error_notint'] = 'DNSレコードの最大数は数字で指定してください。'; +$wb['default_dbserver_txt'] = 'デフォルトのデータベースサーバー'; +$wb['limit_database_error_notint'] = 'データベースの最大数は数字で指定してください。'; +$wb['limit_cron_error_notint'] = 'cronジョブの最大数は数字で指定してください。'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'ユーザー名に不正な文字が含まれています。'; +$wb['template_master_txt'] = 'マスターテンプレート'; +$wb['template_additional_txt'] = 'アドオンテンプレート'; +$wb['ssh_chroot_txt'] = 'SSH-Chrootオプション'; +$wb['web_php_options_txt'] = 'PHPオプション'; +$wb['limit_client_error'] = 'クライアントの最大数に達しました。'; +$wb['limit_client_error_positive'] = 'クライアント数は1以上で指定してください。'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng new file mode 100644 index 0000000..2f6e6ec --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'リセラー'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = '社名'; +$wb['contact_name_txt'] = '担当者名'; +$wb['city_txt'] = '市区町村'; +$wb['country_txt'] = '国'; +$wb['add_new_record_txt'] = 'リセラーを追加する'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl.lng b/interface/ispconfig/interface/client/lib/lang/nl.lng new file mode 100644 index 0000000..0071fa2 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Klant'; +$wb['Address'] = 'Adresgegevens'; +$wb['Limits'] = 'Limieten'; +$wb['Add Client'] = 'Nieuwe klant'; +$wb['Edit Client'] = 'Wijzig klant'; +$wb['Clients'] = 'Klanten'; +$wb['Edit Client-Templates'] = 'Wijzig klant-template'; +$wb['Add Reseller'] = 'Nieuwe reseller'; +$wb['Edit Reseller'] = 'Wijzig reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'Deze reseller heeft klanten. Verwijder de klanten eerst voordat u de reseller verwijderd.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client.lng b/interface/ispconfig/interface/client/lib/lang/nl_client.lng new file mode 100644 index 0000000..a50da45 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = '# E-mail domeinen'; +$wb['limit_mailbox_txt'] = '# E-mailaccounts'; +$wb['limit_mailalias_txt'] = '# E-mail aliassen'; +$wb['limit_mailforward_txt'] = '# E-mail forwarders'; +$wb['limit_mailcatchall_txt'] = '# E-mail catch-all accounts'; +$wb['limit_mailrouting_txt'] = '# E-mail routes'; +$wb['limit_mailfilter_txt'] = '# E-mail filters'; +$wb['limit_fetchmail_txt'] = '# Fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Schijfruimte limiet e-mail'; +$wb['limit_spamfilter_wblist_txt'] = '# Spamfilter white-/blacklist filters'; +$wb['limit_spamfilter_user_txt'] = '# Spamfilter gebruikers'; +$wb['limit_spamfilter_policy_txt'] = '# Spamfilter policies'; +$wb['default_mailserver_txt'] = 'Standaard mailserver'; +$wb['company_name_txt'] = 'Bedrijfsnaam'; +$wb['contact_name_txt'] = 'Contactpersoon'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['language_txt'] = 'Taal'; +$wb['usertheme_txt'] = 'ISPConfig Thema'; +$wb['street_txt'] = 'Adres'; +$wb['zip_txt'] = 'Postcode'; +$wb['city_txt'] = 'Plaats'; +$wb['state_txt'] = 'Provincie'; +$wb['country_txt'] = 'Land'; +$wb['telephone_txt'] = 'Telefoon'; +$wb['mobile_txt'] = 'Mobiele telefoon'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'E-mail'; +$wb['internet_txt'] = 'Website'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Opmerkingen'; +$wb['company_txt'] = 'Bedrijf'; +$wb['title_txt'] = 'Titel'; +$wb['firstname_txt'] = 'Voornaam'; +$wb['surname_txt'] = 'Achternaam'; +$wb['limit_client_txt'] = '# Klanten (als reseller)'; +$wb['limit_domain_txt'] = 'Limiet domein'; +$wb['limit_subdomain_txt'] = 'Limiet subdomein'; +$wb['limit_webquota_txt'] = 'Limiet webruimte'; +$wb['limit_database_txt'] = '# Databases'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['limit_client_error_notint'] = 'Het aantal aan te maken klanten moet een numerieke waarde zijn.'; +$wb['firstname_error_empty'] = 'Voornaam is leeg.'; +$wb['contact_error_empty'] = 'Contactpersoon is leeg.'; +$wb['default_webserver_txt'] = 'Standaard webserver'; +$wb['limit_web_domain_txt'] = '# Websites'; +$wb['limit_web_aliasdomain_txt'] = '# Website domeinaliassen'; +$wb['limit_web_subdomain_txt'] = '# Website subdomeinen'; +$wb['limit_ftp_user_txt'] = '# FTP gebruikers'; +$wb['default_dnsserver_txt'] = 'Standaard DNS server'; +$wb['limit_dns_zone_txt'] = '# DNS zones'; +$wb['limit_dns_record_txt'] = '# DNS records'; +$wb['limit_shell_user_txt'] = '# Shell gebruikers'; +$wb['username_error_empty'] = 'Gebruikersnaam is leeg.'; +$wb['username_error_unique'] = 'De gebruikersnaam moet uniek zijn.'; +$wb['limit_maildomain_error_notint'] = 'De e-mail domein limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailbox_error_notint'] = 'De e-mailaccounts limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailalias_error_notint'] = 'De e-mailalias limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailforward_error_notint'] = 'De e-mail forward limit moet een nummerieke waarde zijn.'; +$wb['limit_mailcatchall_error_notint'] = 'De e-mail catch-all limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailrouting_error_notint'] = 'De e-mail routing limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailfilter_error_notint'] = 'De e-mail filter limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailfetchmail_error_notint'] = 'De fetchmail limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailquota_error_notint'] = 'De e-mail quota limiet moet een nummerieke waarde zijn.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'De spamfilter white / blacklist limiet moet een nummerieke waarde zijn.'; +$wb['limit_spamfilter_user_error_notint'] = 'De spamfilter gebruiker limiet moet een nummerieke waarde zijn.'; +$wb['limit_spamfilter_policy_error_notint'] = 'De spamfilter policy limiet moet een nummerieke waarde zijn.'; +$wb['limit_web_domain_error_notint'] = 'De website limiet moet een nummerieke waarde zijn.'; +$wb['limit_web_aliasdomain_error_notint'] = 'De website alias domein limiet moet een nummerieke waarde zijn.'; +$wb['limit_web_subdomain_error_notint'] = 'De website subdomein limiet moet een nummerieke waarde zijn.'; +$wb['limit_ftp_user_error_notint'] = 'De FTP gebruiker limiet moet een nummerieke waarde zijn.'; +$wb['limit_shell_user_error_notint'] = 'De Shell gebruiker limit moet een nummerieke waarde zijn.'; +$wb['limit_dns_zone_error_notint'] = 'De DNS record limit moet een nummerieke waarde zijn.'; +$wb['default_dbserver_txt'] = 'Standaard database server'; +$wb['limit_database_error_notint'] = 'De database limiet moet een nummerieke waarde zijn.'; +$wb['username_error_regex'] = 'De gebruikersnaam bevat ongeldige karakters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Uitbreidende templates'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP opties'; +$wb['limit_client_error'] = 'Het max. aantal aan te maken klanten is bereikt.'; +$wb['limit_cron_txt'] = '# Cron taken'; +$wb['limit_cron_type_txt'] = '# Typen cron taken (chrooted en full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Minimale tijd tussen uitvoeringen'; +$wb['limit_cron_error_notint'] = 'Het max. aantal cron taken moet een nummerieke waarde zijn.'; +$wb['limit_cron_error_frequency'] = 'De cron uitvoeringen limiet moet een nummerieke waarde zijn.'; +$wb['limit_mailaliasdomain_txt'] = '# E-Mail domeinaliassen'; +$wb['limit_mailaliasdomain_error_notint'] = 'Het aantal e-mail domeinaliassen moet nummeriek zijn.'; +$wb['limit_web_quota_txt'] = 'Website schijfruimte'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng new file mode 100644 index 0000000..a896cbd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Bevestig uw aanvraag'; +$wb['delete_explanation'] = 'Door deze actie te bevestigen worden de volgende records van deze klant verwijderd:'; +$wb['btn_save_txt'] = 'Verwijder deze klant'; +$wb['btn_cancel_txt'] = 'Annuleren'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng new file mode 100644 index 0000000..2abcc0c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'De sub-klant limiet moet een numerieke waarde zijn.'; +$wb['limit_maildomain_txt'] = '# E-mail domeinen'; +$wb['limit_mailbox_txt'] = '# E-mailaccounts'; +$wb['limit_mailalias_txt'] = '# E-mail aliases'; +$wb['limit_mailforward_txt'] = '# E-mail forwarders'; +$wb['limit_mailcatchall_txt'] = '# E-mail catch-all accounts'; +$wb['limit_mailrouting_txt'] = '# E-mail routes'; +$wb['limit_mailfilter_txt'] = '# E-mail filters'; +$wb['limit_fetchmail_txt'] = '# Fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Limiet schijfruimte e-mailaccounts'; +$wb['limit_spamfilter_wblist_txt'] = '# Spamfilter white-/blacklist filters'; +$wb['limit_spamfilter_user_txt'] = '# Spamfilter gebruikers'; +$wb['limit_spamfilter_policy_txt'] = '# Spamfilter policies'; +$wb['limit_client_txt'] = '# Sub-klanten'; +$wb['limit_domain_txt'] = '# Domeinnamen'; +$wb['limit_subdomain_txt'] = '# Subdomeinen'; +$wb['limit_webquota_txt'] = 'Limiet schijfruimte websites'; +$wb['limit_database_txt'] = '# Databases'; +$wb['limit_web_domain_txt'] = '# Website domeinen'; +$wb['limit_web_aliasdomain_txt'] = '# Website aliasdomeinen'; +$wb['limit_web_subdomain_txt'] = '# Website subdomeinen'; +$wb['limit_ftp_user_txt'] = '# FTP gebruikers'; +$wb['limit_dns_zone_txt'] = '# DNS zones'; +$wb['limit_dns_record_txt'] = '# DNS records'; +$wb['limit_shell_user_txt'] = '# Shell gebruikers'; +$wb['limit_maildomain_error_notint'] = 'De e-mail domein limiet moet een numerieke waarde zijn.'; +$wb['limit_mailbox_error_notint'] = 'De e-mailaccounts limiet moet een numerieke waarde zijn.'; +$wb['limit_mailalias_error_notint'] = 'De e-mail alias limiet moet een numerieke waarde zijn.'; +$wb['limit_mailforward_error_notint'] = 'De e-mail forward limiet moet een numerieke waarde zijn.'; +$wb['limit_mailcatchall_error_notint'] = 'De e-mail catchall limiet moet een numerieke waarde zijn.'; +$wb['limit_mailrouting_error_notint'] = 'De e-mail routing limiet moet een numerieke waarde zijn.'; +$wb['limit_mailfilter_error_notint'] = 'De e-mail filter limiet moet een numerieke waarde zijn.'; +$wb['limit_mailfetchmail_error_notint'] = 'De fetchmail limiet moet een numerieke waarde zijn.'; +$wb['limit_mailquota_error_notint'] = 'De e-mail schijfruimte limiet moet een numerieke waarde zijn.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'De spamfilter white-/blacklist limiet moet een numerieke waarde zijn.'; +$wb['limit_spamfilter_user_error_notint'] = 'De spamfilter user limiet moet een numerieke waarde zijn.'; +$wb['limit_spamfilter_policy_error_notint'] = 'De spamfilter policy limiet moet een numerieke waarde zijn.'; +$wb['limit_web_domain_error_notint'] = 'De website limiet moet een numerieke waarde zijn.'; +$wb['limit_web_aliasdomain_error_notint'] = 'De website alias domain limiet moet een numerieke waarde zijn.'; +$wb['limit_web_subdomain_error_notint'] = 'De website subdomain limiet moet een numerieke waarde zijn.'; +$wb['limit_ftp_user_error_notint'] = 'De ftp user limiet moet een numerieke waarde zijn.'; +$wb['limit_shell_user_error_notint'] = 'De shell user limiet moet een numerieke waarde zijn.'; +$wb['limit_dns_zone_error_notint'] = 'De DNS record limiet moet een numerieke waarde zijn.'; +$wb['limit_database_error_notint'] = 'De database limiet moet een numerieke waarde zijn.'; +$wb['error_template_name_empty'] = 'Voer a.u.b. de template naam in.'; +$wb['limit_cron_txt'] = '# Cron taken'; +$wb['limit_cron_type_txt'] = 'Toestaan van uit te voeren typen Cron taken'; +$wb['limit_cron_frequency_txt'] = 'Minimale tijd tussen uitvoeringen'; +$wb['limit_cron_error_notint'] = 'Cron limiet moet een geldig getal zijn.'; +$wb['limit_cron_error_frequency'] = 'Cron frequentie limiet moet een geldig getal zijn.'; +$wb['limit_mailaliasdomain_txt'] = '# E-mail domeinaliassen'; +$wb['limit_mailaliasdomain_error_notint'] = 'Het aantal e-mail domeinaliassen moet een geldig getal zijn.'; +$wb['limit_web_quota_txt'] = 'Website schijfruimte'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng new file mode 100644 index 0000000..333aeb5 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Klant-templates'; +$wb['template_type_txt'] = 'Type'; +$wb['template_name_txt'] = 'Template naam'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng new file mode 100644 index 0000000..0309a47 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Klanten'; +$wb['company_name_txt'] = 'Bedrijfsnaam'; +$wb['contact_name_txt'] = 'Contactpersoon'; +$wb['city_txt'] = 'Plaats'; +$wb['country_txt'] = 'Nederland'; +$wb['client_id_txt'] = 'ID'; +$wb['add_new_record_txt'] = 'Nieuwe klant toevoegen'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng b/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng new file mode 100644 index 0000000..4fa2bdc --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = '# E-mail domeinnamen'; +$wb['limit_mailbox_txt'] = '# E-mail accounts'; +$wb['limit_mailalias_txt'] = '# E-mail aliassen'; +$wb['limit_mailforward_txt'] = '# E-mail doorstuur records'; +$wb['limit_mailcatchall_txt'] = '# E-mail catch-all records'; +$wb['limit_mailrouting_txt'] = '# E-mail routes'; +$wb['limit_mailfilter_txt'] = '# E-mail filters'; +$wb['limit_fetchmail_txt'] = '# E-mail fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'E-mail schijfruimte-limiet'; +$wb['limit_spamfilter_wblist_txt'] = '# Spamfilter white-/blacklist filters'; +$wb['limit_spamfilter_user_txt'] = '# Spamfilter gebruikers'; +$wb['limit_spamfilter_policy_txt'] = '# Spamfilter policies'; +$wb['default_mailserver_txt'] = 'Standaard mailserver'; +$wb['company_name_txt'] = 'Bedrijfsnaam'; +$wb['contact_name_txt'] = 'Contactpersoon'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['language_txt'] = 'Taal'; +$wb['usertheme_txt'] = 'ISPConfig Thema'; +$wb['street_txt'] = 'Adres'; +$wb['zip_txt'] = 'Postcode'; +$wb['city_txt'] = 'Plaats'; +$wb['state_txt'] = 'Provincie'; +$wb['country_txt'] = 'Land'; +$wb['telephone_txt'] = 'Telefoon'; +$wb['mobile_txt'] = 'Mobiele telefoon'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'E-mail'; +$wb['internet_txt'] = 'Website'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Opmerkingen'; +$wb['company_txt'] = 'Bedrijfsnaam'; +$wb['title_txt'] = 'Titel'; +$wb['firstname_txt'] = 'Voornaam'; +$wb['surname_txt'] = 'Achternaam'; +$wb['limit_domain_txt'] = 'Limiet domeinnamen'; +$wb['limit_subdomain_txt'] = 'Limiet subdomeinen'; +$wb['limit_webquota_txt'] = 'Website-schijfruimte limiet'; +$wb['limit_database_txt'] = '# Databases'; +$wb['limit_cron_txt'] = '# Cron taken'; +$wb['limit_cron_type_txt'] = 'Toestaan van uit te voeren typen Cron taken'; +$wb['limit_cron_frequency_txt'] = 'Minimale tijd tussen verwerkingen'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['limit_client_error_notint'] = 'De sub-klant waarde moet nummeriek zijn.'; +$wb['firstname_error_empty'] = 'Voornaam is leeg.'; +$wb['contact_error_empty'] = 'Contactpersoon is leeg.'; +$wb['default_webserver_txt'] = 'Standaard webserver'; +$wb['limit_web_domain_txt'] = '# Websites'; +$wb['limit_web_aliasdomain_txt'] = '# Website domeinaliassen'; +$wb['limit_web_subdomain_txt'] = '# Website subdomeinen'; +$wb['limit_ftp_user_txt'] = '# FTP-gebruikers'; +$wb['default_dnsserver_txt'] = 'Standaard DNS server'; +$wb['limit_dns_zone_txt'] = '# DNS zones'; +$wb['limit_dns_record_txt'] = '# DNS records'; +$wb['limit_shell_user_txt'] = '# Shell gebruikers'; +$wb['limit_client_txt'] = '# Klanten'; +$wb['username_error_empty'] = 'Gebruikersnaam is leeg.'; +$wb['username_error_unique'] = 'De gebruikersnaam moet uniek zijn.'; +$wb['limit_maildomain_error_notint'] = 'De e-mail domeinnamen limiet moet nummeriek zijn.'; +$wb['limit_mailbox_error_notint'] = 'E-mailaccounts limiet moet nummeriek zijn.'; +$wb['limit_mailalias_error_notint'] = 'E-mailaliassen limiet moet nummeriek zijn.'; +$wb['limit_mailforward_error_notint'] = 'E-mail forward limiet moet nummeriek zijn.'; +$wb['limit_mailcatchall_error_notint'] = 'E-mail catch-all limiet moet nummeriek zijn.'; +$wb['limit_mailrouting_error_notint'] = 'E-mail routing limiet moet nummeriek zijn.'; +$wb['limit_mailfilter_error_notint'] = 'E-mail filters limiet moet nummeriek zijn.'; +$wb['limit_mailfetchmail_error_notint'] = 'E-mail fetchmail account limiet moet nummeriek zijn.'; +$wb['limit_mailquota_error_notint'] = 'E-mail schijfruimte-limiet moet nummeriek zijn.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Spamfilter white-/blacklist limiet moet nummeriek zijn.'; +$wb['limit_spamfilter_user_error_notint'] = 'Spamfilter gebruikers limiet moet nummeriek zijn.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Spamfilter policy limiet moet nummeriek zijn.'; +$wb['limit_web_domain_error_notint'] = 'Websites limiet moet nummeriek zijn.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Website domeinaliassen limiet moet nummeriek zijn.'; +$wb['limit_web_subdomain_error_notint'] = 'Website subdomein limiet moet nummeriek zijn.'; +$wb['limit_ftp_user_error_notint'] = 'FTP gebruikers limiet moet nummeriek zijn.'; +$wb['limit_shell_user_error_notint'] = 'Shell gebruikers limiet moet nummeriek zijn.'; +$wb['limit_dns_zone_error_notint'] = 'DNS zones limiet moet nummeriek zijn.'; +$wb['default_dbserver_txt'] = 'Standaard database server'; +$wb['limit_database_error_notint'] = 'Databases limiet moet nummeriek zijn.'; +$wb['limit_cron_error_notint'] = 'Cron limiet moet nummeriek zijn.'; +$wb['limit_cron_error_frequency'] = 'Cron frequentie limiet moet nummeriek zijn.'; +$wb['username_error_regex'] = 'Gebruikersnaam bevat ongeldige tekens.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Uitbreiding template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot opties'; +$wb['web_php_options_txt'] = 'PHP opties'; +$wb['limit_client_error'] = 'Maximum aantal klanten is bereikt.'; +$wb['limit_client_error_positive'] = 'Het aantal klanten moet groter zijn dan 0.'; +$wb['limit_web_quota_txt'] = 'Website schijfruimte'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng new file mode 100644 index 0000000..dd5fd53 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Bedrijfsnaam'; +$wb['contact_name_txt'] = 'Contactpersoon'; +$wb['city_txt'] = 'Plaats'; +$wb['country_txt'] = 'Land'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl.lng b/interface/ispconfig/interface/client/lib/lang/pl.lng new file mode 100644 index 0000000..771c3b2 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Klient'; +$wb['Address'] = 'Adres'; +$wb['Limits'] = 'Limity'; +$wb['Add Client'] = 'Dodaj klienta'; +$wb['Edit Client'] = 'Edytuj klienta'; +$wb['Clients'] = 'Klienci'; +$wb['Edit Client-Templates'] = 'Edytuj szablony klientów'; +$wb['Add Reseller'] = 'Dodaj Reseller'; +$wb['Edit Reseller'] = 'Edytuj Reseller'; +$wb['Resellers'] = 'Resellery'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client.lng b/interface/ispconfig/interface/client/lib/lang/pl_client.lng new file mode 100644 index 0000000..42f73b8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Maksymalna ilość domen email'; +$wb['limit_mailbox_txt'] = 'Maksymalna ilość skrzynek pocztowych'; +$wb['limit_mailalias_txt'] = 'Maxymalna ilość aliasów e-mail'; +$wb['limit_mailforward_txt'] = 'Maksymalna ilość przekierowań e-mail'; +$wb['limit_mailcatchall_txt'] = 'Maksymalna ilość kont e-mail catchall'; +$wb['limit_mailrouting_txt'] = 'Maksymalna ilość ścieżek e-mail'; +$wb['limit_mailfilter_txt'] = 'Maksymalna ilość filtrów e-mail'; +$wb['limit_fetchmail_txt'] = 'Maksymalna ilość kont z fetchmail'; +$wb['limit_mailquota_txt'] = 'Pojemność skrzynki'; +$wb['limit_spamfilter_wblist_txt'] = 'Maksymalna ilość filtrów spamu białej / czarnej listy'; +$wb['limit_spamfilter_user_txt'] = 'Maksymalna ilość filtrów spamu użytkowników'; +$wb['limit_spamfilter_policy_txt'] = 'Maksymalna ilość polityk filtrów spamu'; +$wb['default_mailserver_txt'] = 'Domyślny serwer e-mail'; +$wb['company_name_txt'] = 'Nazwa firmy'; +$wb['contact_name_txt'] = 'Nazwa kontaktu'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['password_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['language_txt'] = 'Język'; +$wb['usertheme_txt'] = 'Styl'; +$wb['street_txt'] = 'Ulica'; +$wb['zip_txt'] = 'Kod pocztowy'; +$wb['city_txt'] = 'Miasto'; +$wb['state_txt'] = 'Województwo'; +$wb['country_txt'] = 'Państwo'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Komórka'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'E-mail'; +$wb['internet_txt'] = 'Strona www'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notatki'; +$wb['company_txt'] = 'Firma'; +$wb['title_txt'] = 'Tytuł'; +$wb['firstname_txt'] = 'Imię'; +$wb['surname_txt'] = 'Nazwisko'; +$wb['limit_domain_txt'] = 'limit_domen'; +$wb['limit_subdomain_txt'] = 'limit_subdomen'; +$wb['limit_webquota_txt'] = 'limit_pojemnosci_www'; +$wb['limit_database_txt'] = 'Maksymalna ilość bazy danych'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'adres_ip'; +$wb['limit_client_error_notint'] = 'Limit subklientów musi być liczbą.'; +$wb['firstname_error_empty'] = 'Imię jest puste.'; +$wb['contact_error_empty'] = 'Nazwa konatku jest pusta.'; +$wb['default_webserver_txt'] = 'Domyślny serwer WWW'; +$wb['limit_web_domain_txt'] = 'Maksymalna ilość domen WWW'; +$wb['limit_web_aliasdomain_txt'] = 'Maksymalna ilość aliasów domen'; +$wb['limit_web_subdomain_txt'] = 'Maksymalna ilość subdomen'; +$wb['limit_ftp_user_txt'] = 'Maksymalna ilość użytkowników FTP'; +$wb['default_dnsserver_txt'] = 'Domyślny serwer DNS'; +$wb['limit_dns_zone_txt'] = 'Maksymalna ilość stref DNS'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS'; +$wb['limit_shell_user_txt'] = 'Maksymalna ilość użytkowników shell'; +$wb['limit_client_txt'] = 'Maksymalna ilość klientów'; +$wb['username_error_empty'] = 'Nazwa uużytkownika jest pusta.'; +$wb['username_error_unique'] = 'Nazwa użytkownika musi być unikatowa.'; +$wb['limit_maildomain_error_notint'] = 'Limit domen musi być liczbą.'; +$wb['limit_mailbox_error_notint'] = 'Limit skrzynek pocztowych musi być liczbą.'; +$wb['limit_mailalias_error_notint'] = 'Limit aliasów e-mail musi być liczbą.'; +$wb['limit_mailforward_error_notint'] = 'Limit przekierowań musi być liczbą.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit e-mail catchall musi być liczbą.'; +$wb['limit_mailrouting_error_notint'] = 'Limit ścieżek e-mail musi być liczbą.'; +$wb['limit_mailfilter_error_notint'] = 'Limit filtrów e-mail musi być liczbą.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit fetchmail musi być liczbą.'; +$wb['limit_mailquota_error_notint'] = 'Limit pojemności skrzynki musi być liczbą.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit filtrów spamu biała / czarna lista musi być liczbą.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit filtrów spamu użytkownika musi być liczbą.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit polityk filtrów spamu musi być liczbą.'; +$wb['limit_web_domain_error_notint'] = 'Limit stron www musi być liczbą.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit aliasów strony www musi być liczbą.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit subdomen strony www musi być liczbą.'; +$wb['limit_ftp_user_error_notint'] = 'Limit użytkowników FTP musi być liczbą.'; +$wb['limit_shell_user_error_notint'] = 'Limit użytkowników shell musi być liczbą.'; +$wb['limit_dns_zone_error_notint'] = 'Limit wpisów DNS musi być liczbą.'; +$wb['default_dbserver_txt'] = 'Domyślny serwer bazy danych'; +$wb['limit_database_error_notint'] = 'Limit baz danych musi być liczbą.'; +$wb['limit_cron_error_notint'] = 'Limit zadań cron musi być liczbą.'; +$wb['limit_cron_error_frequency'] = 'Limit częstości zadań cron musi być liczbą.'; +$wb['username_error_regex'] = 'Nazwa użytkownika zawiera niedozwolone znaki.'; +$wb['template_master_txt'] = 'Główny szablon'; +$wb['template_additional_txt'] = 'Dodatkowy szablon'; +$wb['ssh_chroot_txt'] = 'Opcje SSH-root'; +$wb['web_php_options_txt'] = 'Opcje PHP'; +$wb['limit_client_error'] = 'Maksymalna liczba kientów została już osiągnięta.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng new file mode 100644 index 0000000..5c7c0f8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Limit klientów musi być liczbą.'; +$wb['limit_maildomain_txt'] = 'Maksymalna ilość domen e-mail'; +$wb['limit_mailbox_txt'] = 'Maksymalna ilość skrzynek pocztowych'; +$wb['limit_mailalias_txt'] = 'Maksymalna ilość aliasów e-mail'; +$wb['limit_mailforward_txt'] = 'Maksymalna ilość przekierowań e-mail'; +$wb['limit_mailcatchall_txt'] = 'Maksymalna ilość kont e-mail catchall'; +$wb['limit_mailrouting_txt'] = 'Maksymalna ilość ścieżek e-mail'; +$wb['limit_mailfilter_txt'] = 'Maksymalna ilość filtrów e-mail'; +$wb['limit_fetchmail_txt'] = 'Maksymalna ilość kont z fetchmail'; +$wb['limit_mailquota_txt'] = 'Pojemność skrzynki'; +$wb['limit_spamfilter_wblist_txt'] = 'Maksymalna ilość filtrów spamu białej / czarnej listy'; +$wb['limit_spamfilter_user_txt'] = 'Maksymalna ilość filtrów spamu użytkowników'; +$wb['limit_spamfilter_policy_txt'] = 'Maksymalna ilość polityk filtrów spamu'; +$wb['limit_domain_txt'] = 'limit_domen'; +$wb['limit_subdomain_txt'] = 'limit_subdomen'; +$wb['limit_webquota_txt'] = 'limit_pojemnosci_www'; +$wb['limit_database_txt'] = 'Maksymalna ilość baz danych'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_web_domain_txt'] = 'Maksymalna ilość domen'; +$wb['limit_web_aliasdomain_txt'] = 'Maksymalna ilość domen'; +$wb['limit_web_subdomain_txt'] = 'Maksymalna ilość subdomen'; +$wb['limit_ftp_user_txt'] = 'Maksymalna ilość uzytkowników FTP'; +$wb['limit_dns_zone_txt'] = 'Maksymalna ilość stref DNS'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS'; +$wb['limit_shell_user_txt'] = 'Maksymalna ilość użytkowników shell'; +$wb['limit_client_txt'] = 'Maksymalna ilość klientów'; +$wb['limit_maildomain_error_notint'] = 'Limit domen musi być liczbą.'; +$wb['limit_mailbox_error_notint'] = 'Limit skrzynek pocztowych musi być liczbą.'; +$wb['limit_mailalias_error_notint'] = 'Limit aliasów musi być liczbą.'; +$wb['limit_mailforward_error_notint'] = 'Limit przekierowań e-mail musi być liczbą.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit e-mail catchall musi być liczbą.'; +$wb['limit_mailrouting_error_notint'] = 'Limit ścieżek e-mail musi być liczbą.'; +$wb['limit_mailfilter_error_notint'] = 'Limit filtrów e-mail musi być liczbą.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit fetchmail musi być liczbą.'; +$wb['limit_mailquota_error_notint'] = 'Limit pojemności skrzynki musi być liczbą.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit filtrów spamu biała / czarna lista musi być liczbą.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit filtrów spamu użytkownika musi być liczbą.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit polityk filtrów spamu musi być liczbą.'; +$wb['limit_web_domain_error_notint'] = 'Limit stron www musi być liczbą.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit aliasów strony www musi być liczbą.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit subdomen strony www musi być liczbą.'; +$wb['limit_ftp_user_error_notint'] = 'Limit użytkowników FTP musi być liczbą.'; +$wb['limit_shell_user_error_notint'] = 'Limit użytkowników shell musi być liczbą.'; +$wb['limit_dns_zone_error_notint'] = 'Limit wpisów DNS musi być liczbą.'; +$wb['limit_database_error_notint'] = 'Limit baz danych musi być liczbą.'; +$wb['limit_cron_error_notint'] = 'Limit zadań cron musi być liczbą.'; +$wb['limit_cron_error_frequency'] = 'Limit częstości zadań corn musi być liczbą.'; +$wb['error_template_name_empty'] = 'Proszę wpisać nazwę szablonu'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng new file mode 100644 index 0000000..06a3976 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Szablon klienta'; +$wb['template_type_txt'] = 'Typ'; +$wb['template_name_txt'] = 'Nazwa szablonu'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng new file mode 100644 index 0000000..81f0bd8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clients'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng b/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng new file mode 100644 index 0000000..f08ca1c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Maksymalna ilość domen e-mail'; +$wb['limit_mailbox_txt'] = 'Maksymalna ilość skrzynek pocztowych'; +$wb['limit_mailalias_txt'] = 'Maksymalna ilość aliasów e-mail'; +$wb['limit_mailforward_txt'] = 'Maksymalna ilość przekierowań e-mail'; +$wb['limit_mailcatchall_txt'] = 'Maksymalna ilość kont e-mail catchall'; +$wb['limit_mailrouting_txt'] = 'Maksymalna ilość ścieżek e-mail'; +$wb['limit_mailfilter_txt'] = 'Maksymalna ilość filtrów e-mail'; +$wb['limit_fetchmail_txt'] = 'Maksymalna ilość kont fetchmail'; +$wb['limit_mailquota_txt'] = 'Limit skrzynki pocztowej'; +$wb['limit_spamfilter_wblist_txt'] = 'Maksymalna ilość filtrów spamu białej / czarnej listy'; +$wb['limit_spamfilter_user_txt'] = 'Maksymalna ilość użytkowników z filtrem spamu'; +$wb['limit_spamfilter_policy_txt'] = 'Maksymalna ilość polityk filtrów spamu'; +$wb['default_mailserver_txt'] = 'Domyślny serwer poczty'; +$wb['company_name_txt'] = 'Nazwa firmy'; +$wb['contact_name_txt'] = 'Nazwa kontaktu'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['password_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['language_txt'] = 'Język'; +$wb['usertheme_txt'] = 'Szablon'; +$wb['street_txt'] = 'Ulica'; +$wb['zip_txt'] = 'Kod pocztowy'; +$wb['city_txt'] = 'Miasto'; +$wb['state_txt'] = 'Województwo'; +$wb['country_txt'] = 'Państwo'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Komórka'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'E-mail'; +$wb['internet_txt'] = 'Strona www'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notatki'; +$wb['company_txt'] = 'Firma'; +$wb['title_txt'] = 'Tytuł'; +$wb['firstname_txt'] = 'Imię'; +$wb['surname_txt'] = 'Nazwisko'; +$wb['limit_domain_txt'] = 'limit_domen'; +$wb['limit_subdomain_txt'] = 'limit_subdomen'; +$wb['limit_webquota_txt'] = 'limit_pojemnosci_www'; +$wb['limit_database_txt'] = 'Maksymalna ilość bazy danych'; +$wb['limit_cron_txt'] = 'Maksymalna ilość zadań crone'; +$wb['limit_cron_type_txt'] = 'Maksymalna ilość typów zadań corne (zadania admina oraz sugerowane url)'; +$wb['limit_cron_frequency_txt'] = 'Minimalne odstępy między zadaniami'; +$wb['ip_address_txt'] = 'adres_ip'; +$wb['limit_client_error_notint'] = 'Ilość klientów musi być liczbą.'; +$wb['firstname_error_empty'] = 'Imię jest puste.'; +$wb['contact_error_empty'] = 'Nazwa kontaktu jest pusta.'; +$wb['default_webserver_txt'] = 'Domyślny serwer www'; +$wb['limit_web_domain_txt'] = 'Maksymalna ilość domen www'; +$wb['limit_web_aliasdomain_txt'] = 'Maksymalna ilość aliasów'; +$wb['limit_web_subdomain_txt'] = 'Maksymalna ilość subdomen'; +$wb['limit_ftp_user_txt'] = 'Maksymalna ilość użytkowników FTP'; +$wb['default_dnsserver_txt'] = 'Domyślny serwer DNS'; +$wb['limit_dns_zone_txt'] = 'Maksymalna ilość stref DNS'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS'; +$wb['limit_shell_user_txt'] = 'Maksymalna ilość użytkowników Shell'; +$wb['limit_client_txt'] = 'Maksymalna ilość klientów'; +$wb['username_error_empty'] = 'Nazwa użytkownika jest pusta.'; +$wb['username_error_unique'] = 'Nazwa użytkownika musi być unikatowa.'; +$wb['limit_maildomain_error_notint'] = 'Limit domen e-mail musi być liczbą.'; +$wb['limit_mailbox_error_notint'] = 'Limit skrzynek pocztowych musi być liczbą.'; +$wb['limit_mailalias_error_notint'] = 'Limit aliasów e-mail musi być liczbą.'; +$wb['limit_mailforward_error_notint'] = 'Limit przekierowań e-mail musi być liczbą.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit kont e-mail catchall musi być liczbą.'; +$wb['limit_mailrouting_error_notint'] = 'Limit ścieżek e-mail musi być liczbą.'; +$wb['limit_mailfilter_error_notint'] = 'Limit filtrów e-mail musi być liczbą.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit kont fetchmail musi być liczbą.'; +$wb['limit_mailquota_error_notint'] = 'Limit pojemności konta e-mail musi być liczbą.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit filtrów spamu białej / czarnej listy musi być liczbą.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit filtrów spamu użytkownika musi być liczbą'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit polityk filtrów spamu musi być liczbą.'; +$wb['limit_web_domain_error_notint'] = 'Limit stron www musi być liczbą.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit aliasów musi być liczbą.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit subdomen musi być liczbą.'; +$wb['limit_ftp_user_error_notint'] = 'Limit użytkowników ftp musi być liczbą.'; +$wb['limit_shell_user_error_notint'] = 'Limit użytkowników shell musi być liczbą.'; +$wb['limit_dns_zone_error_notint'] = 'Limit wpisów DNS musi być liczbą.'; +$wb['default_dbserver_txt'] = 'Domyślny serwer bazy danych'; +$wb['limit_database_error_notint'] = 'Limit baz danych musi być liczbą.'; +$wb['limit_cron_error_notint'] = 'Limit zadań crone musi być liczbą.'; +$wb['limit_cron_error_frequency'] = 'TLimit częstości zadań crone musi być liczbą.'; +$wb['username_error_regex'] = 'Nazwa użytkownika zawiera niedozwolone znaki.'; +$wb['template_master_txt'] = 'Głowny szablon'; +$wb['template_additional_txt'] = 'Dodatkowy szablon'; +$wb['ssh_chroot_txt'] = 'Opcje root-a SSH'; +$wb['web_php_options_txt'] = 'Opcje PHP'; +$wb['limit_client_error'] = 'Maksymalna ilość klientów została przekroczona.'; +$wb['limit_client_error_positive'] = 'Liczba klientów musi być > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng new file mode 100644 index 0000000..51abc41 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Reseller-y'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nazwa firmy'; +$wb['contact_name_txt'] = 'Nazwa kontaktu'; +$wb['city_txt'] = 'Miasty'; +$wb['country_txt'] = 'Państwo'; +$wb['add_new_record_txt'] = 'Dodaj nowy reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/pt.lng b/interface/ispconfig/interface/client/lib/lang/pt.lng new file mode 100644 index 0000000..e831372 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt.lng @@ -0,0 +1,14 @@ +<?php +$wb['Client'] = 'Cliente'; +$wb['Address'] = 'Endereço'; +$wb['Limits'] = 'Limites'; +$wb['Add Client'] = 'Adicionar Cliente'; +$wb['Edit Client'] = 'Editar Cliente'; +$wb['Clients'] = 'Clientes'; +$wb['Edit Client-Templates'] = 'Editar Templates de Clientes'; +$wb['Add Reseller'] = 'Adicionar Revendedor'; +$wb['Edit Reseller'] = 'Editar Revendedor'; +$wb['Resellers'] = 'Revendedores'; +$wb['error_has_clients'] = 'Este revendedor possui clientes. Deve remover os clientes primeiro.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client.lng b/interface/ispconfig/interface/client/lib/lang/pt_client.lng new file mode 100644 index 0000000..0f7d32a --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_client.lng @@ -0,0 +1,95 @@ +<?php +$wb['limit_maildomain_txt'] = 'Número máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Número máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailforward_txt'] = 'Número máximo de redireccionamento de correio'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de catchall de correio'; +$wb['limit_mailrouting_txt'] = 'Número máximo de rotas de correio'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correio'; +$wb['limit_fetchmail_txt'] = 'Número máximo de fetchmail de correio'; +$wb['limit_mailquota_txt'] = 'Quota de Correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros spam lista branca / negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de utilizadors de filtros spam'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de filtros spam'; +$wb['default_mailserver_txt'] = 'Servidor de Correio Padrão'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['username_txt'] = 'Nome de Utilizador '; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança da senha'; +$wb['language_txt'] = 'Idioma'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Rua'; +$wb['zip_txt'] = 'CEP'; +$wb['city_txt'] = 'Cidade'; +$wb['state_txt'] = 'Estado'; +$wb['country_txt'] = 'País'; +$wb['telephone_txt'] = 'Telefone'; +$wb['mobile_txt'] = 'Celular'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notas'; +$wb['company_txt'] = 'Empresa'; +$wb['title_txt'] = 'Título'; +$wb['firstname_txt'] = 'Nome'; +$wb['surname_txt'] = 'Sobrenome'; +$wb['limit_domain_txt'] = 'limite_dominio'; +$wb['limit_subdomain_txt'] = 'limit_subdominio'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bases de dados'; +$wb['ip_address_txt'] = 'endereco_ip'; +$wb['limit_client_error_notint'] = 'O limite de um sub-cliente deve ser um número'; +$wb['firstname_error_empty'] = 'Nome está em branco.'; +$wb['contact_error_empty'] = 'Contato está em branco.'; +$wb['default_webserver_txt'] = 'Servidor Web Padrão'; +$wb['limit_web_domain_txt'] = 'Número máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de domínios alias'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de sub-domínios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de utilizadors FTP'; +$wb['default_dnsserver_txt'] = 'Servidor de Nomes Padrão'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registos DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de utilizadors de shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['username_error_empty'] = 'Nome do utilizador está em branco'; +$wb['username_error_unique'] = 'O nome do utilizador deve ser único'; +$wb['limit_maildomain_error_notint'] = 'O limite de caixas de correio no domínio deve ser um número.'; +$wb['limit_mailbox_error_notint'] = 'Limite da caixa de correio deve ser um número.'; +$wb['limit_mailalias_error_notint'] = 'Limite do alias de correio deve ser um número.'; +$wb['limit_mailforward_error_notint'] = 'Limite de redireccionamento de correio deve ser um número'; +$wb['limit_mailcatchall_error_notint'] = 'Limite de catchall deve ser um número.'; +$wb['limit_mailrouting_error_notint'] = 'Limite de rotas de correio deve ser um número.'; +$wb['limit_mailfilter_error_notint'] = 'Limite de filtros de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limite de fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'A quota de correio deve ser um número'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de filtros spam lista branca / negra deve ser um número.'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite de filtros spam do utilizador deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite de políticas de filtros spam deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de sites deve ser um número.'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de alias de domínios de sites deve ser um número.'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de sub-domínios de sites deve ser um número'; +$wb['limit_ftp_user_error_notint'] = 'O limite de utilizadors de FTP deve ser um número.'; +$wb['limit_shell_user_error_notint'] = 'O limite de utilizadors de Shell deve ser um número.'; +$wb['limit_dns_zone_error_notint'] = 'O limite de registos de DNS deve ser um número'; +$wb['default_dbserver_txt'] = 'Servidor de Base de Dados Padrão'; +$wb['limit_database_error_notint'] = 'O limite de bases de dados deve ser um número'; +$wb['username_error_regex'] = 'O nome de utilizador contem caracteres inválidos.'; +$wb['template_master_txt'] = 'Template Principal'; +$wb['template_additional_txt'] = 'Template Adicional'; +$wb['ssh_chroot_txt'] = 'Opções de SSH Chroot'; +$wb['web_php_options_txt'] = 'Opções do PHP'; +$wb['limit_client_error'] = 'O número máximo de clientes foi atingido.'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron.'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Intervalo mínimo entre as execuções'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência do cron deve ser um número.'; +$wb['limit_mailaliasdomain_txt'] = 'Número máximo de domínios aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'O domínio aliases de correio precisa ser um número.'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'A cota de tráfego precisa ser um número..'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng new file mode 100644 index 0000000..7699752 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng @@ -0,0 +1,7 @@ +<?php +$wb['confirm_action_txt'] = 'Confirmar acção'; +$wb['delete_explanation'] = 'Atenção: está acção ira remover todos os objectos associados ao cliente!'; +$wb['btn_save_txt'] = 'Remover o cliente'; +$wb['btn_cancel_txt'] = 'Cancelar sem remover o cliente'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng new file mode 100644 index 0000000..153cc5b --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng @@ -0,0 +1,58 @@ +<?php +$wb['limit_client_error_notint'] = 'O limite do cliente não é um número.'; +$wb['limit_maildomain_txt'] = 'Limite Máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Limite Máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Limite Máximo de alias de correio'; +$wb['limit_mailforward_txt'] = 'Limite Máximo de redireccionamentos de correio'; +$wb['limit_mailcatchall_txt'] = 'Limite máximo de contas catchall'; +$wb['limit_mailrouting_txt'] = 'Limite máximo de rotas de Correio'; +$wb['limit_mailfilter_txt'] = 'Número Máximo de Filtros de Correio'; +$wb['limit_fetchmail_txt'] = 'Número Máximo de Contas fetchmail'; +$wb['limit_mailquota_txt'] = 'Espaço de Caixa de Correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de spamfilter permitidos /lista negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máx de utilizadors spamfilter'; +$wb['limit_spamfilter_policy_txt'] = 'Número máx de políticas spamfilter'; +$wb['limit_domain_txt'] = 'limite_dominio'; +$wb['limit_subdomain_txt'] = 'limite_subdominio'; +$wb['limit_webquota_txt'] = 'limite_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bases de dados'; +$wb['limit_web_domain_txt'] = 'Número máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número maximo de apelidos web'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de sub-domínios'; +$wb['limit_ftp_user_txt'] = 'Número máximo de utilizadors de FTP'; +$wb['limit_dns_zone_txt'] = 'Número máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Número máximo de registos DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de utilizadors de Shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['limit_maildomain_error_notint'] = 'O limite de correio de domínio deve ser numérico'; +$wb['limit_mailbox_error_notint'] = 'O limite da caixa de correio deve ser numérico'; +$wb['limit_mailalias_error_notint'] = 'O limite do apelido de correio deve ser númerico'; +$wb['limit_mailforward_error_notint'] = 'O limite de direccionamento de correio deve ser um número'; +$wb['limit_mailcatchall_error_notint'] = 'O limite de catchall do domínio deve ser um número'; +$wb['limit_mailrouting_error_notint'] = 'Limite de rota de correio deve ser um número'; +$wb['limit_mailfilter_error_notint'] = 'O limite de filtro de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limite fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'Cota de correio deve ser um número.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de spamfilter permitido / lista negra deve ser um número'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite do spamfilter deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite da política do spamfilter deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de websites deve ser um número'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de apelidos de domínio deve ser um número'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de sub-domínios deve ser um número'; +$wb['limit_ftp_user_error_notint'] = 'O limite de contas FTP deve ser um número'; +$wb['limit_shell_user_error_notint'] = 'O limite de contas shell DNS deve ser um número'; +$wb['limit_dns_zone_error_notint'] = 'O limite de zonas DNS deve ser um número'; +$wb['limit_database_error_notint'] = 'O limite de bases de dados deve ser um número'; +$wb['error_template_name_empty'] = 'Por favor insira o nome da template'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Intervalo mínimo entre as execuções'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência do cron deve ser um número.'; +$wb['limit_mailaliasdomain_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailaliasdomain_error_notint'] = 'A alias de domínio de correio deve ser um número.'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'A cota de tráfego precisa ser um número.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng new file mode 100644 index 0000000..0587b04 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Templates de Cliente '; +$wb['template_type_txt'] = 'Tipo'; +$wb['template_name_txt'] = 'Nome da template'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng new file mode 100644 index 0000000..53ceab0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Clientes'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Nome do contato'; +$wb['city_txt'] = 'Cidade'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Adicionar Cliente'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng b/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng new file mode 100644 index 0000000..9aa64e0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Número máximo de domínios de correio'; +$wb['limit_mailbox_txt'] = 'Número máximo de caixas de correio'; +$wb['limit_mailalias_txt'] = 'Número máximo de aliases de correio'; +$wb['limit_mailforward_txt'] = 'Número máximo de encaminhamentos de correio'; +$wb['limit_mailcatchall_txt'] = 'Número máximo de contas catchall'; +$wb['limit_mailrouting_txt'] = 'Número máximo de rotas de correio'; +$wb['limit_mailfilter_txt'] = 'Número máximo de filtros de correio'; +$wb['limit_fetchmail_txt'] = 'Número máximo de contas fetchmail '; +$wb['limit_mailquota_txt'] = 'Quota de correio'; +$wb['limit_spamfilter_wblist_txt'] = 'Número máximo de filtros do spamfilter lista branca / negra'; +$wb['limit_spamfilter_user_txt'] = 'Número máximo de utilizadors de spamfilter'; +$wb['limit_spamfilter_policy_txt'] = 'Número máximo de políticas de spamfilter'; +$wb['default_mailserver_txt'] = 'Servidor de Correio Padrão'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['username_txt'] = 'Utilizador '; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança de senha'; +$wb['language_txt'] = 'Idioma'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Rua'; +$wb['zip_txt'] = 'CEP'; +$wb['city_txt'] = 'Cidade'; +$wb['state_txt'] = 'Estado'; +$wb['country_txt'] = 'País'; +$wb['telephone_txt'] = 'Telefone'; +$wb['mobile_txt'] = 'Celular'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'MSN ou ICQ'; +$wb['notes_txt'] = 'Notas'; +$wb['company_txt'] = 'Empresa'; +$wb['title_txt'] = 'Título'; +$wb['firstname_txt'] = 'Nome'; +$wb['surname_txt'] = 'Sobrenome'; +$wb['limit_domain_txt'] = 'limite_domínio'; +$wb['limit_subdomain_txt'] = 'limite_subdomínio'; +$wb['limit_webquota_txt'] = 'limite_webquota'; +$wb['limit_database_txt'] = 'Número máximo de bases de dados'; +$wb['limit_cron_txt'] = 'Número máximo de tarefas no cron'; +$wb['limit_cron_type_txt'] = 'Máximo de tipos de tarefas no cron (em chroot e url completas)'; +$wb['limit_cron_frequency_txt'] = 'Mínimo de tempo entre as execuções'; +$wb['ip_address_txt'] = 'endereço_ip'; +$wb['limit_client_error_notint'] = 'O limite de clientes para revenda deve ser um número.'; +$wb['firstname_error_empty'] = 'O nome está em branco.'; +$wb['contact_error_empty'] = 'Nome do contato está em branco.'; +$wb['default_webserver_txt'] = 'Servidor web padrão'; +$wb['limit_web_domain_txt'] = 'Máximo de domínios web'; +$wb['limit_web_aliasdomain_txt'] = 'Número máximo de alias web'; +$wb['limit_web_subdomain_txt'] = 'Número máximo de subdomínios'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Servidor DNS Padrão'; +$wb['limit_dns_zone_txt'] = 'Máximo de zonas DNS'; +$wb['limit_dns_record_txt'] = 'Máximo de registos DNS'; +$wb['limit_shell_user_txt'] = 'Número máximo de utilizadors de shell'; +$wb['limit_client_txt'] = 'Número máximo de clientes'; +$wb['username_error_empty'] = 'O nome do utilizador está em branco.'; +$wb['username_error_unique'] = 'O nome de utilizador deve ser único.'; +$wb['limit_maildomain_error_notint'] = 'O limite de domínios de correio deve ser um número.'; +$wb['limit_mailbox_error_notint'] = 'O limite de caixas de correio deve ser um número.'; +$wb['limit_mailalias_error_notint'] = 'O limite de aliases de correio deve ser um número.'; +$wb['limit_mailforward_error_notint'] = 'O limite de encaminhamentos de correio deve ser um número.'; +$wb['limit_mailcatchall_error_notint'] = 'O limite de contas catchall deve ser um número.'; +$wb['limit_mailrouting_error_notint'] = 'O limite de rotas de correio deve ser um número.'; +$wb['limit_mailfilter_error_notint'] = 'O filtro de correio deve ser um número.'; +$wb['limit_mailfetchmail_error_notint'] = 'O limite de fetchmail deve ser um número.'; +$wb['limit_mailquota_error_notint'] = 'O limite de quota de correio deve ser um número.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'O limite de lista branca / negra do spamfilter deve ser um número.'; +$wb['limit_spamfilter_user_error_notint'] = 'O limite de utilizadors de spamfilter deve ser um número.'; +$wb['limit_spamfilter_policy_error_notint'] = 'O limite de políticas de spamfilter deve ser um número.'; +$wb['limit_web_domain_error_notint'] = 'O limite de web sites deve ser um número.'; +$wb['limit_web_aliasdomain_error_notint'] = 'O limite de utilizadors de aliases de domínio deve ser um número.'; +$wb['limit_web_subdomain_error_notint'] = 'O limite de utilizadors de subdomínios web deve ser um número.'; +$wb['limit_ftp_user_error_notint'] = 'O limite de utilizadors de ftp deve ser um número.'; +$wb['limit_shell_user_error_notint'] = 'O limite de utilizadors de shell deve ser um número.'; +$wb['limit_dns_zone_error_notint'] = 'O limite de registos de dns deve ser um número.'; +$wb['default_dbserver_txt'] = 'Servidor de Base de Dados Padrão'; +$wb['limit_database_error_notint'] = 'O limite de bases de dados deve ser um número.'; +$wb['limit_cron_error_notint'] = 'O limite do cron deve ser um número.'; +$wb['limit_cron_error_frequency'] = 'O limite de frequência no cron deve ser um número.'; +$wb['username_error_regex'] = 'O nome do utilizador contém caracteres inválidos.'; +$wb['template_master_txt'] = 'Template Mestre'; +$wb['template_additional_txt'] = 'Template de Addon'; +$wb['ssh_chroot_txt'] = 'Opções do Chroot-SSH'; +$wb['web_php_options_txt'] = 'Opções do PHP'; +$wb['limit_client_error'] = 'O número máximo de clientes foi atingido.'; +$wb['limit_client_error_positive'] = 'O número de clientes precisa ser > 0'; +$wb['limit_web_quota_txt'] = 'Cota Web'; +$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng new file mode 100644 index 0000000..8df917d --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Revendedores'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Empresa'; +$wb['contact_name_txt'] = 'Contato'; +$wb['city_txt'] = 'Cidade'; +$wb['country_txt'] = 'País'; +$wb['add_new_record_txt'] = 'Adicionar um novo revendedor'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ro.lng b/interface/ispconfig/interface/client/lib/lang/ro.lng new file mode 100644 index 0000000..38bbbb5 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Client'; +$wb['Address'] = 'Address'; +$wb['Limits'] = 'Limits'; +$wb['Add Client'] = 'Add Client'; +$wb['Edit Client'] = 'Edit Client'; +$wb['Clients'] = 'Clients'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client.lng b/interface/ispconfig/interface/client/lib/lang/ro_client.lng new file mode 100644 index 0000000..6dbfadb --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Numar maxim de domenii de email'; +$wb['limit_mailbox_txt'] = 'Numar maxim de mailbox'; +$wb['limit_mailalias_txt'] = 'Numar maxim de email alias-uri'; +$wb['limit_mailforward_txt'] = 'Numar maxim de mail forward'; +$wb['limit_mailcatchall_txt'] = 'numar maxim de mail catch all'; +$wb['limit_mailrouting_txt'] = 'Numar maxim de mail rute'; +$wb['limit_mailfilter_txt'] = 'Numar maxim de filtre mail'; +$wb['limit_fetchmail_txt'] = 'Numar maxim de conturi fetchmail'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Numar maxim de filtre spam whitelist /blacklist'; +$wb['limit_spamfilter_user_txt'] = 'Numar maxim de filtre spam'; +$wb['limit_spamfilter_policy_txt'] = 'Numar maxim de reguli filtre spam '; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Nume companie'; +$wb['contact_name_txt'] = 'Nume Contact '; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Parola'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Limba'; +$wb['usertheme_txt'] = 'Teme'; +$wb['street_txt'] = 'Strada'; +$wb['zip_txt'] = 'ZIP (cod postal)'; +$wb['city_txt'] = 'Oras'; +$wb['state_txt'] = 'Judet'; +$wb['country_txt'] = 'Tara'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Mobil'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Note'; +$wb['company_txt'] = 'Companie'; +$wb['title_txt'] = 'Titlu'; +$wb['firstname_txt'] = 'Prenume'; +$wb['surname_txt'] = 'Nume'; +$wb['limit_domain_txt'] = 'limita_domeniu'; +$wb['limit_subdomain_txt'] = 'limita_subdomeniu'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Numar maxim de Database'; +$wb['ip_address_txt'] = 'adresa_ip'; +$wb['limit_client_error_notint'] = 'Limita sub clientilor trebuie sa fie un numar'; +$wb['firstname_error_empty'] = 'Nume e necompletat'; +$wb['contact_error_empty'] = 'Nume contact e necompletat'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Numar maxim de domenii web'; +$wb['limit_web_aliasdomain_txt'] = 'Numar maxim de web alias-uri'; +$wb['limit_web_subdomain_txt'] = 'Numar maxim de web subdomenii'; +$wb['limit_ftp_user_txt'] = 'Numar maxim de useri FTP'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Numar maxim de zone DNS '; +$wb['limit_dns_record_txt'] = 'Numar maxim de inregistrari DNS '; +$wb['limit_shell_user_txt'] = 'Numar maxim de useri Shell '; +$wb['limit_client_txt'] = 'Numarul maxim de clienti a fost atins'; +$wb['username_error_empty'] = 'Username este necompletat'; +$wb['username_error_unique'] = 'username trebuie sa fie unic'; +$wb['limit_maildomain_error_notint'] = 'Limita Numarului domeniilor de email trebuie sa fie un numar intreg'; +$wb['limit_mailbox_error_notint'] = 'Limita numarului de mailbox-uri trebuie sa fie un numar intreg'; +$wb['limit_mailalias_error_notint'] = 'Numarul maxim de alias-uri email trebuie sa fie un numar intreg'; +$wb['limit_mailforward_error_notint'] = 'Numarul limta de forward-uri email trebuie sa fie un numar intreg'; +$wb['limit_mailcatchall_error_notint'] = 'numarul limta de email catch all trebuie sa fie un numar intreg'; +$wb['limit_mailrouting_error_notint'] = 'numarul maxim de rute email trebuie sa fie un numar intreg'; +$wb['limit_mailfilter_error_notint'] = 'numarul maxim de filtre email trebuie sa fie un numar intreg'; +$wb['limit_mailfetchmail_error_notint'] = 'numarul maxim de fetchmail trebuie sa fie un numar intreg'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng new file mode 100644 index 0000000..4d16af6 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb["confirm_action_txt"] = 'Confirm action'; +$wb["delete_explanation"] = 'This action will delete the following number of records associated with this client'; +$wb["btn_save_txt"] = 'Delete the client'; +$wb["btn_cancel_txt"] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng new file mode 100644 index 0000000..276e081 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Client Limit is not a number.'; +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['error_template_name_empty'] = 'Please enter a Template name'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng new file mode 100644 index 0000000..b19f5d4 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Template client'; +$wb['template_type_txt'] = 'Tp'; +$wb['template_name_txt'] = 'Nume Template'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng new file mode 100644 index 0000000..33bde68 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clienti'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Nume companie'; +$wb['contact_name_txt'] = 'Contact nume'; +$wb['city_txt'] = 'Oras'; +$wb['country_txt'] = 'Tara'; +$wb['add_new_record_txt'] = 'Adauga client nou'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng new file mode 100644 index 0000000..2b06c33 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng @@ -0,0 +1,96 @@ +<?php +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["default_mailserver_txt"] = 'Default Mailserver'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["usertheme_txt"] = 'Theme'; +$wb["street_txt"] = 'Street'; +$wb["zip_txt"] = 'ZIP'; +$wb["city_txt"] = 'City'; +$wb["state_txt"] = 'State'; +$wb["country_txt"] = 'Country'; +$wb["telephone_txt"] = 'Telephone'; +$wb["mobile_txt"] = 'Mobile'; +$wb["fax_txt"] = 'Fax'; +$wb["email_txt"] = 'Email'; +$wb["internet_txt"] = 'Internet'; +$wb["icq_txt"] = 'ICQ'; +$wb["notes_txt"] = 'Notes'; +$wb["company_txt"] = 'Company'; +$wb["title_txt"] = 'Title'; +$wb["firstname_txt"] = 'Firstname'; +$wb["surname_txt"] = 'Surname'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["ip_address_txt"] = 'ip_address'; +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["firstname_error_empty"] = 'Firstname is empty.'; +$wb["contact_error_empty"] = 'Contact name is empty.'; +$wb["default_webserver_txt"] = 'Default Webserver'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["default_dnsserver_txt"] = 'Default DNS Server'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_client_error_notint"] = 'The sub client limit must be a number.'; +$wb["default_dbserver_txt"] = 'Default Database Server'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["username_error_regex"] = 'The Username contains invalid chracaters.'; +$wb["template_master_txt"] = 'Master template'; +$wb["template_additional_txt"] = 'Addon template'; +$wb["ssh_chroot_txt"] = 'SSH-Chroot Options'; +$wb["web_php_options_txt"] = 'PHP Options'; +$wb["limit_client_error"] = 'The max. number of clients is reached.'; +$wb["limit_client_error_positive"] = 'The number of clients must be > 0'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +$wb["limit_traffic_quota_txt"] = 'Traffic Quota'; +$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng new file mode 100644 index 0000000..523a467 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Resellers'; +$wb["client_id_txt"] = 'ID'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["city_txt"] = 'City'; +$wb["country_txt"] = 'Country'; +$wb["add_new_record_txt"] = 'Add new reseller'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/lib/lang/ru.lng b/interface/ispconfig/interface/client/lib/lang/ru.lng new file mode 100644 index 0000000..a2679b2 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru.lng @@ -0,0 +1,14 @@ +<?php +$wb['Client'] = 'Клиент'; +$wb['Address'] = 'Адрес'; +$wb['Limits'] = 'Лимиты'; +$wb['Add Client'] = 'Добавить клиента'; +$wb['Edit Client'] = 'Изменить клиента'; +$wb['Clients'] = 'Клиенты'; +$wb['Edit Client-Templates'] = 'Изменить шаблон клиента'; +$wb['Add Reseller'] = 'Добавить реселлера'; +$wb['Edit Reseller'] = 'Изменить реселлера'; +$wb['Resellers'] = 'Реселлеры'; +$wb['error_has_clients'] = 'У реселлера есть клиенты. Вначале удалите их.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client.lng b/interface/ispconfig/interface/client/lib/lang/ru_client.lng new file mode 100644 index 0000000..e1a38d4 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_client.lng @@ -0,0 +1,95 @@ +<?php +$wb['limit_maildomain_txt'] = 'Макс.число почтовых доменов'; +$wb['limit_mailbox_txt'] = 'Макс.число почтовых ящиков'; +$wb['limit_mailalias_txt'] = 'Макс.число почтовых алиасов'; +$wb['limit_mailforward_txt'] = 'Макс.чисо почтовых пересылок'; +$wb['limit_mailcatchall_txt'] = 'Макс.число почтовых аккаунтов catchall'; +$wb['limit_mailrouting_txt'] = 'Макс.число почтовых маршрутов'; +$wb['limit_mailfilter_txt'] = 'Макс.число почтовых фильтров'; +$wb['limit_fetchmail_txt'] = 'Макс.число fetchmail аккаунтов'; +$wb['limit_mailquota_txt'] = 'Квота ящика'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс.число фильтров белого/черного списка'; +$wb['limit_spamfilter_user_txt'] = 'Макс.число пользователей спам-фильтра'; +$wb['limit_spamfilter_policy_txt'] = 'Макс.число правил спам-фильтра'; +$wb['default_mailserver_txt'] = 'Почтовый сервер по-умолчанию'; +$wb['company_name_txt'] = 'Название компании'; +$wb['contact_name_txt'] = 'Контактное лицо'; +$wb['username_txt'] = 'Логин'; +$wb['password_txt'] = 'Пароль'; +$wb['language_txt'] = 'Язык'; +$wb['usertheme_txt'] = 'Тема'; +$wb['street_txt'] = 'Улица'; +$wb['zip_txt'] = 'Индекс'; +$wb['city_txt'] = 'Город'; +$wb['state_txt'] = 'Облать/край'; +$wb['country_txt'] = 'Страна'; +$wb['telephone_txt'] = 'Телефон'; +$wb['mobile_txt'] = 'Мобильный'; +$wb['fax_txt'] = 'Факс'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Web-сайт'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Заметки'; +$wb['company_txt'] = 'Компания'; +$wb['title_txt'] = 'Заголовок'; +$wb['firstname_txt'] = 'Имя'; +$wb['surname_txt'] = 'Фамилия'; +$wb['limit_client_txt'] = 'Макс.число клиентов'; +$wb['limit_domain_txt'] = 'ограничения доменов'; +$wb['limit_subdomain_txt'] = 'ограничение субдоменов'; +$wb['limit_webquota_txt'] = 'границы web-квоты'; +$wb['limit_database_txt'] = 'Макс.число БД'; +$wb['ip_address_txt'] = 'ip-адрес'; +$wb['limit_client_error_notint'] = 'Лимит субклиентов должен быть числом.'; +$wb['firstname_error_empty'] = 'Пустое имя.'; +$wb['contact_error_empty'] = 'Пустое контактное лицо.'; +$wb['default_webserver_txt'] = 'Web-сервер по-умолчанию'; +$wb['limit_web_domain_txt'] = 'Макс.число веб-доменов'; +$wb['limit_web_aliasdomain_txt'] = 'Макс.число web-алиасов'; +$wb['limit_web_subdomain_txt'] = 'Макс.число web-субдоменов'; +$wb['limit_ftp_user_txt'] = 'макс.число пользователей FTP'; +$wb['default_dnsserver_txt'] = 'DNS сервер по-умолчанию'; +$wb['limit_dns_zone_txt'] = 'Макс.число DNS-зон'; +$wb['limit_dns_record_txt'] = 'Макс.число записей DNS'; +$wb['limit_shell_user_txt'] = 'Макс.число пользователей Shell'; +$wb['username_error_empty'] = 'Логин пустой.'; +$wb['username_error_unique'] = 'Логин должен быть уникальным.'; +$wb['limit_maildomain_error_notint'] = 'Лимит почтовых доменов дожлжен быть числом.'; +$wb['limit_mailbox_error_notint'] = 'Лимит почтовых ящиков должен быть числом.'; +$wb['limit_mailalias_error_notint'] = 'Лимит почтовых алиасов должен быть числом.'; +$wb['limit_mailforward_error_notint'] = 'Лимит почтовых пересылок должен быть числом.'; +$wb['limit_mailcatchall_error_notint'] = 'Лимит catchall должен быть числом.'; +$wb['limit_mailrouting_error_notint'] = 'Лимит почтовых маршрутов должен быть числом.'; +$wb['limit_mailfilter_error_notint'] = 'Лимит почтовых фильтров должен быть числом.'; +$wb['limit_mailfetchmail_error_notint'] = 'Лимит fetchmail должен быть числом.'; +$wb['limit_mailquota_error_notint'] = 'Лимит почтовой квоты должен быть числом.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Лимит черных/белых списков спам-фильтра должен быть числом.'; +$wb['limit_spamfilter_user_error_notint'] = 'Лимит пользователей спам-фильтра должен быть числом.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Лимит правил спам-фильтра должен быть числом.'; +$wb['limit_web_domain_error_notint'] = 'Лимит web-сайтов должен быть числом.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Лимит web-алиасов должен быть числом.'; +$wb['limit_web_subdomain_error_notint'] = 'Лимит субдоменов должен быть числом.'; +$wb['limit_ftp_user_error_notint'] = 'Лимит пользователей ftp должен быть числом.'; +$wb['limit_shell_user_error_notint'] = 'Лимит пользователей shell должен быть числом.'; +$wb['limit_dns_zone_error_notint'] = 'Лимит DNS-записей должен быть числом.'; +$wb['default_dbserver_txt'] = 'Сервер БД по-умолчанию'; +$wb['limit_database_error_notint'] = 'Лимит БД должен быть числом.'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['username_error_regex'] = 'Логин содержит неверные символыs.'; +$wb['template_master_txt'] = 'Мастер'; +$wb['template_additional_txt'] = 'Дополнение'; +$wb['ssh_chroot_txt'] = 'Опции SSH-Chroot'; +$wb['web_php_options_txt'] = 'Опции PHP'; +$wb['limit_cron_txt'] = 'Макс.число задач cron'; +$wb['limit_cron_type_txt'] = 'Макс.число типов задач cron (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Мин.задержка между запусками'; +$wb['limit_cron_error_notint'] = 'Лимит задач cron должен быть числом.'; +$wb['limit_cron_error_frequency'] = 'Лимит частоты cron должен быть числом.'; +$wb['limit_client_error'] = 'Достигнуто макс.число клиентов.'; +$wb['limit_mailaliasdomain_txt'] = 'Макс.число алиасов'; +$wb['limit_mailaliasdomain_error_notint'] = 'Лимит почтовых доменов должен быть числом.'; +$wb['limit_web_quota_txt'] = 'Квота Web'; +$wb['limit_traffic_quota_txt'] = 'Квота трафика'; +$wb['limit_trafficquota_error_notint'] = 'Квота трафика должна быть числом.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng new file mode 100644 index 0000000..d792617 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng @@ -0,0 +1,7 @@ +<?php +$wb['confirm_action_txt'] = 'Подтверждение выполнения'; +$wb['delete_explanation'] = 'Это действие удалит следующее число записей сопоставленных с этим клиентом'; +$wb['btn_save_txt'] = 'Удалить клиента'; +$wb['btn_cancel_txt'] = 'Отменить без удаления'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng new file mode 100644 index 0000000..d630f34 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng @@ -0,0 +1,58 @@ +<?php +$wb['limit_client_error_notint'] = 'Лимит суб-клиентов должен быть числом.'; +$wb['limit_maildomain_txt'] = 'Макс.число почтовых доменов'; +$wb['limit_mailbox_txt'] = 'Макс.число почтовых ящиков'; +$wb['limit_mailalias_txt'] = 'Макс.число почтовых алиасов'; +$wb['limit_mailforward_txt'] = 'Макс.число почтовых пересылок'; +$wb['limit_mailcatchall_txt'] = 'Макс.число почтовых catchall аккаунтов'; +$wb['limit_mailrouting_txt'] = 'Макс.число почтовых маршрутов'; +$wb['limit_mailfilter_txt'] = 'Макс.число почтовых фильтров'; +$wb['limit_fetchmail_txt'] = 'Макс.число fetchmail аккаунтов'; +$wb['limit_mailquota_txt'] = 'Квота почтового ящика'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс.число правил белых/черных спам-фильтра'; +$wb['limit_spamfilter_user_txt'] = 'Макс.число пользователей спам-фильтра'; +$wb['limit_spamfilter_policy_txt'] = 'Макс.число правил спам-фильтра'; +$wb['limit_client_txt'] = 'Макс.число клиентов'; +$wb['limit_domain_txt'] = 'Макс.число доменов'; +$wb['limit_subdomain_txt'] = 'Макс.число субдоменов'; +$wb['limit_webquota_txt'] = 'Лимит web-квоты'; +$wb['limit_database_txt'] = 'Макс.число БД'; +$wb['limit_web_domain_txt'] = 'Макс.число web-доменов'; +$wb['limit_web_aliasdomain_txt'] = 'Макс.число web-алиасов'; +$wb['limit_web_subdomain_txt'] = 'Макс.число web субдоменов'; +$wb['limit_ftp_user_txt'] = 'Макс.число FTP пользователей'; +$wb['limit_dns_zone_txt'] = 'Макс.число DNS зон'; +$wb['limit_dns_record_txt'] = 'Макс.число DNS записей'; +$wb['limit_shell_user_txt'] = 'Макс.число Shell-пользователей'; +$wb['limit_maildomain_error_notint'] = 'Лимит почтовых сервером должен быть числом.'; +$wb['limit_mailbox_error_notint'] = 'Лимит почтовых ящиков должен быть числом.'; +$wb['limit_mailalias_error_notint'] = 'Лимит почтовых алиасов должен быть числом.'; +$wb['limit_mailforward_error_notint'] = 'Лимит почтовых пересылок должен быть числом.'; +$wb['limit_mailcatchall_error_notint'] = 'Лимит почтовых catchall должен быть числом.'; +$wb['limit_mailrouting_error_notint'] = 'Лимт почтовых маршрутов должен быть числом.'; +$wb['limit_mailfilter_error_notint'] = 'Лимит почтовых фильтроф должен быть числом.'; +$wb['limit_mailfetchmail_error_notint'] = 'Лимит fetchmail должен быть числом.'; +$wb['limit_mailquota_error_notint'] = 'Лимит почтовой квоты должен быть числом.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Лимит правил белых/черных списков спам-фильтра должен быть числом..'; +$wb['limit_spamfilter_user_error_notint'] = 'Лимит пользователей спам-фильтра должен быть числом.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Лимит правил спам-фильтра должен быть числом.'; +$wb['limit_web_domain_error_notint'] = 'Лимит web-сайтов должен быть числом.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Лимит алиасов web-сайтов должен быть числом.'; +$wb['limit_web_subdomain_error_notint'] = 'Лимит субдоменов должен быть числом.'; +$wb['limit_ftp_user_error_notint'] = 'Лимит пользователей ftp должен быть числом.'; +$wb['limit_shell_user_error_notint'] = 'Лимит пользователей shell должен быть числом.'; +$wb['limit_dns_zone_error_notint'] = 'Лимит DNS записей должен быть числом.'; +$wb['limit_database_error_notint'] = 'Лимит БД должен быть числом.'; +$wb['error_template_name_empty'] = 'Введите имя шаблона'; +$wb['limit_cron_txt'] = 'Макс.число задач cron'; +$wb['limit_cron_type_txt'] = 'Макс.типов задач для cron (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Мин.время между запусками cron'; +$wb['limit_cron_error_notint'] = 'Лимит задач cron должен быть числом.'; +$wb['limit_cron_error_frequency'] = 'Мин.время между запусками cron должно быть числом..'; +$wb['limit_mailaliasdomain_txt'] = 'Макс.число алиасов почтовых доменов'; +$wb['limit_mailaliasdomain_error_notint'] = 'Лимит алиасов почтовых доменов должен быть числом.'; +$wb['limit_web_quota_txt'] = 'Квота Web'; +$wb['limit_traffic_quota_txt'] = 'Квота трафика'; +$wb['limit_trafficquota_error_notint'] = 'Квота трафика должа быть числом.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng new file mode 100644 index 0000000..9aab2f5 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Шаблоны клиентов'; +$wb['template_type_txt'] = 'Тип'; +$wb['template_name_txt'] = 'Имя шаблона'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng new file mode 100644 index 0000000..3621300 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Клиенты'; +$wb['company_name_txt'] = 'Компания'; +$wb['contact_name_txt'] = 'Контактное лицо'; +$wb['city_txt'] = 'Город'; +$wb['country_txt'] = 'Страна'; +$wb['client_id_txt'] = 'ID'; +$wb['add_new_record_txt'] = 'Добавить клиента'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng new file mode 100644 index 0000000..0976344 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Макс. количество почтовых доменов'; +$wb['limit_mailbox_txt'] = 'Макс. количество почтовых ящиков'; +$wb['limit_mailalias_txt'] = 'Макс. количество почтовых алиасов'; +$wb['limit_mailforward_txt'] = 'Макс. количество почтовых forwarders'; +$wb['limit_mailcatchall_txt'] = 'Макс. количество почтовых catchall аккаунтов'; +$wb['limit_mailrouting_txt'] = 'Максимальное количество почтовых маршрутов'; +$wb['limit_mailfilter_txt'] = 'Макс. количество почтовых фильтров'; +$wb['limit_fetchmail_txt'] = 'Макс. количство fetchmail аккаунтов'; +$wb['limit_mailquota_txt'] = 'Квота ящика'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс. количество белых/черных списков спам-фильтра'; +$wb['limit_spamfilter_user_txt'] = 'Макс. количество пользователей спам-фильтра'; +$wb['limit_spamfilter_policy_txt'] = 'Макс. количество правил спам-фильтра'; +$wb['default_mailserver_txt'] = 'Mail-сервер по-умолчанию'; +$wb['company_name_txt'] = 'Компания'; +$wb['contact_name_txt'] = 'Контактное лицо'; +$wb['username_txt'] = 'Логин'; +$wb['password_txt'] = 'Пароль'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['language_txt'] = 'Язык'; +$wb['usertheme_txt'] = 'Оформление'; +$wb['street_txt'] = 'Улица'; +$wb['zip_txt'] = 'Индекс'; +$wb['city_txt'] = 'Город'; +$wb['state_txt'] = 'Область/край'; +$wb['country_txt'] = 'Страна'; +$wb['telephone_txt'] = 'Телефон'; +$wb['mobile_txt'] = 'Мобильный'; +$wb['fax_txt'] = 'Факс'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Web-сайт'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Заметки'; +$wb['company_txt'] = 'Компания'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Имя'; +$wb['surname_txt'] = 'Фамилия'; +$wb['limit_domain_txt'] = 'Лимит доменов'; +$wb['limit_subdomain_txt'] = 'Лимит субдоменов'; +$wb['limit_webquota_txt'] = 'лимит web-квоты'; +$wb['limit_database_txt'] = 'Макс. количество БД'; +$wb['limit_cron_txt'] = 'Макс. количество задач cron'; +$wb['limit_cron_type_txt'] = 'Макс. типов задач cron (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Мин. задержка между запусками'; +$wb['ip_address_txt'] = 'IP-адрес'; +$wb['limit_client_error_notint'] = 'Ограничение суб-клиентов должно быть числом.'; +$wb['firstname_error_empty'] = 'Пустое имя.'; +$wb['contact_error_empty'] = 'Пустое контактное лицо.'; +$wb['default_webserver_txt'] = 'Web-сервер по-умолчанию'; +$wb['limit_web_domain_txt'] = 'Макс. число web-доменов'; +$wb['limit_web_aliasdomain_txt'] = 'Макс. число web-алиасов домена'; +$wb['limit_web_subdomain_txt'] = 'Макс. число web-субдоменов'; +$wb['limit_ftp_user_txt'] = 'Макс. число FTP пользователей'; +$wb['default_dnsserver_txt'] = 'DNS сервер по-умолчанию'; +$wb['limit_dns_zone_txt'] = 'Макс. число DNS зон'; +$wb['limit_dns_record_txt'] = 'Макс. число DNS записей'; +$wb['limit_shell_user_txt'] = 'Макс. число of Shell-пользователей'; +$wb['limit_client_txt'] = 'Макс. число клиентов'; +$wb['username_error_empty'] = 'Логин пустой.'; +$wb['username_error_unique'] = 'Логин должен быть уникальным.'; +$wb['limit_maildomain_error_notint'] = 'Лимит почтовых доменов должен быть числом.'; +$wb['limit_mailbox_error_notint'] = 'Лимит почтовых ящиков должен быть числом.'; +$wb['limit_mailalias_error_notint'] = 'Лимит почтовых алиасов должен быть числом.'; +$wb['limit_mailforward_error_notint'] = 'Лимит почтовых пересылок должен быть числом.'; +$wb['limit_mailcatchall_error_notint'] = 'Лимит почтовых catchall должен быть числом.'; +$wb['limit_mailrouting_error_notint'] = 'Лимит почтовых маршрутов должен быть числом.'; +$wb['limit_mailfilter_error_notint'] = 'Лимит почтовых фильтров должен быть числом.'; +$wb['limit_mailfetchmail_error_notint'] = 'Лимит fetchmail должен быть числом.'; +$wb['limit_mailquota_error_notint'] = 'Лимит почтовой квоты должен быть числом.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Лимит черных/белых списокв спам-фильтра должен быть числом.'; +$wb['limit_spamfilter_user_error_notint'] = 'Лимит пользователей спам-фильтра должен быть числом.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Лими правил спам-фильтра должен быть числом.'; +$wb['limit_web_domain_error_notint'] = 'Лимит Web-сайтов должен быть числом.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Лимит алиасов должен быть числом.'; +$wb['limit_web_subdomain_error_notint'] = 'Лимит субдоменов должен быть числом.'; +$wb['limit_ftp_user_error_notint'] = 'Лимит пользователей FTP должен быть числом.'; +$wb['limit_shell_user_error_notint'] = 'Лимит пользователей Shell должен быть числом.'; +$wb['limit_dns_zone_error_notint'] = 'Лимит записей DNS должен быть числом.'; +$wb['default_dbserver_txt'] = 'Сервер БД по-умолчанию'; +$wb['limit_database_error_notint'] = 'Лимит БД должен быть числом.'; +$wb['limit_cron_error_notint'] = 'Лимит задач cron должен быть числом.'; +$wb['limit_cron_error_frequency'] = 'Лимит частоты запуска cron должен быть числом.'; +$wb['username_error_regex'] = 'Логин содержит неверные символы.'; +$wb['template_master_txt'] = 'Мастер-шаблон'; +$wb['template_additional_txt'] = 'Доп. шаблон'; +$wb['ssh_chroot_txt'] = 'Опции SSH-Chroot'; +$wb['web_php_options_txt'] = 'Опции PHP'; +$wb['limit_client_error'] = 'Достигнуто макс. число клиентов.'; +$wb['limit_client_error_positive'] = 'Число клиентов должно быть > 0'; +$wb['limit_web_quota_txt'] = 'Квота Web'; +$wb['limit_traffic_quota_txt'] = 'Квота трафика'; +$wb['limit_trafficquota_error_notint'] = 'Квота трафика должна быть числом.'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng new file mode 100644 index 0000000..3d89767 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Реселлеры'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Компания'; +$wb['contact_name_txt'] = 'Контактное лицо'; +$wb['city_txt'] = 'Город'; +$wb['country_txt'] = 'Страна'; +$wb['add_new_record_txt'] = 'Добавить реселлера'; +?> + diff --git a/interface/ispconfig/interface/client/lib/lang/se.lng b/interface/ispconfig/interface/client/lib/lang/se.lng new file mode 100644 index 0000000..38bbbb5 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Client'; +$wb['Address'] = 'Address'; +$wb['Limits'] = 'Limits'; +$wb['Add Client'] = 'Add Client'; +$wb['Edit Client'] = 'Edit Client'; +$wb['Clients'] = 'Clients'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_client.lng b/interface/ispconfig/interface/client/lib/lang/se_client.lng new file mode 100644 index 0000000..2bcea5c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master'; +$wb['template_additional_txt'] = 'Addon'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_del.lng b/interface/ispconfig/interface/client/lib/lang/se_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_template.lng b/interface/ispconfig/interface/client/lib/lang/se_client_template.lng new file mode 100644 index 0000000..2f6e9ba --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['error_template_name_empty'] = 'Please enter a Template name'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng new file mode 100644 index 0000000..b93a5f9 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Client-Templates'; +$wb['template_type_txt'] = 'Type'; +$wb['template_name_txt'] = 'Template name'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng new file mode 100644 index 0000000..81f0bd8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Clients'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_reseller.lng b/interface/ispconfig/interface/client/lib/lang/se_reseller.lng new file mode 100644 index 0000000..f0dc7ca --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. number of email domains'; +$wb['limit_mailbox_txt'] = 'Max. number of mailboxes'; +$wb['limit_mailalias_txt'] = 'Max. number of email aliases'; +$wb['limit_mailforward_txt'] = 'Max. number of email forwarders'; +$wb['limit_mailcatchall_txt'] = 'Max. number of email catchall accounts'; +$wb['limit_mailrouting_txt'] = 'Max. number of email routes'; +$wb['limit_mailfilter_txt'] = 'Max. number of email filters'; +$wb['limit_fetchmail_txt'] = 'Max. number of fetchmail accounts'; +$wb['limit_mailquota_txt'] = 'Mailbox quota'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. number of spamfilter white / blacklist filters'; +$wb['limit_spamfilter_user_txt'] = 'Max. number of spamfilter users'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['default_mailserver_txt'] = 'Default Mailserver'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['usertheme_txt'] = 'Theme'; +$wb['street_txt'] = 'Street'; +$wb['zip_txt'] = 'ZIP'; +$wb['city_txt'] = 'City'; +$wb['state_txt'] = 'State'; +$wb['country_txt'] = 'Country'; +$wb['telephone_txt'] = 'Telephone'; +$wb['mobile_txt'] = 'Mobile'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notes'; +$wb['company_txt'] = 'Company'; +$wb['title_txt'] = 'Title'; +$wb['firstname_txt'] = 'Firstname'; +$wb['surname_txt'] = 'Surname'; +$wb['limit_domain_txt'] = 'limit_domain'; +$wb['limit_subdomain_txt'] = 'limit_subdomain'; +$wb['limit_webquota_txt'] = 'limit_webquota'; +$wb['limit_database_txt'] = 'Max. number of Databases'; +$wb['limit_cron_txt'] = 'Max. number of cron jobs'; +$wb['limit_cron_type_txt'] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Min. delay between executions'; +$wb['ip_address_txt'] = 'ip_address'; +$wb['limit_client_error_notint'] = 'The sub client limit must be a number.'; +$wb['firstname_error_empty'] = 'Firstname is empty.'; +$wb['contact_error_empty'] = 'Contact name is empty.'; +$wb['default_webserver_txt'] = 'Default Webserver'; +$wb['limit_web_domain_txt'] = 'Max. number of web domains'; +$wb['limit_web_aliasdomain_txt'] = 'Max. number of web aliasdomains'; +$wb['limit_web_subdomain_txt'] = 'Max. number of web subdomains'; +$wb['limit_ftp_user_txt'] = 'Max. number of FTP users'; +$wb['default_dnsserver_txt'] = 'Default DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. number of DNS zones'; +$wb['limit_dns_record_txt'] = 'Max. number DNS records'; +$wb['limit_shell_user_txt'] = 'Max. number of Shell users'; +$wb['limit_client_txt'] = 'Max. number of Clients'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['limit_maildomain_error_notint'] = 'The email domain limit must be a number.'; +$wb['limit_mailbox_error_notint'] = 'The mailbox limit must be a number.'; +$wb['limit_mailalias_error_notint'] = 'The email alias limit must be a number.'; +$wb['limit_mailforward_error_notint'] = 'The email forward limit must be a number.'; +$wb['limit_mailcatchall_error_notint'] = 'The email catchall limit must be a number.'; +$wb['limit_mailrouting_error_notint'] = 'The email routing limit must be a number.'; +$wb['limit_mailfilter_error_notint'] = 'The email filter limit must be a number.'; +$wb['limit_mailfetchmail_error_notint'] = 'The fetchmail limit must be a number.'; +$wb['limit_mailquota_error_notint'] = 'The email quota limit must be a number.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'The spamfilter white / blacklist limit must be a number.'; +$wb['limit_spamfilter_user_error_notint'] = 'The spamfilter user limit must be a number.'; +$wb['limit_spamfilter_policy_error_notint'] = 'The spamfilter policy limit must be a number.'; +$wb['limit_web_domain_error_notint'] = 'The website limit must be a number.'; +$wb['limit_web_aliasdomain_error_notint'] = 'The website alias domain limit must be a number.'; +$wb['limit_web_subdomain_error_notint'] = 'The website subdomain limit must be a number.'; +$wb['limit_ftp_user_error_notint'] = 'The ftp user limit must be a number.'; +$wb['limit_shell_user_error_notint'] = 'The shell user limit must be a number.'; +$wb['limit_dns_zone_error_notint'] = 'The dns record limit must be a number.'; +$wb['default_dbserver_txt'] = 'Default Database Server'; +$wb['limit_database_error_notint'] = 'The database limit must be a number.'; +$wb['limit_cron_error_notint'] = 'The cron limit must be a number.'; +$wb['limit_cron_error_frequency'] = 'The cron frequency limit must be a number.'; +$wb['username_error_regex'] = 'The Username contains invalid chracaters.'; +$wb['template_master_txt'] = 'Master template'; +$wb['template_additional_txt'] = 'Addon template'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Options'; +$wb['web_php_options_txt'] = 'PHP Options'; +$wb['limit_client_error'] = 'The max. number of clients is reached.'; +$wb['limit_client_error_positive'] = 'The number of clients must be > 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng new file mode 100644 index 0000000..34d0896 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellers'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Company name'; +$wb['contact_name_txt'] = 'Contact name'; +$wb['city_txt'] = 'City'; +$wb['country_txt'] = 'Country'; +$wb['add_new_record_txt'] = 'Add new reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk.lng b/interface/ispconfig/interface/client/lib/lang/sk.lng new file mode 100644 index 0000000..fea3858 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Klient'; +$wb['Address'] = 'Adresa'; +$wb['Limits'] = 'Limity'; +$wb['Add Client'] = 'Prida? klienta'; +$wb['Edit Client'] = 'Upravi? klienta'; +$wb['Clients'] = 'Klienti'; +$wb['Edit Client-Templates'] = 'Upravi? klient-�abl�nu'; +$wb['Add Reseller'] = 'Prida? nov�ho predajcu'; +$wb['Edit Reseller'] = 'Upravi? predajcu'; +$wb['Resellers'] = 'Predajcovia'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client.lng b/interface/ispconfig/interface/client/lib/lang/sk_client.lng new file mode 100644 index 0000000..6daf576 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. po?et e-mailov�ch dom�n'; +$wb['limit_mailbox_txt'] = 'Max. po?et po�tov�ch schr�nok'; +$wb['limit_mailalias_txt'] = 'Max. po?et e-mailov�ch aliasov'; +$wb['limit_mailforward_txt'] = 'Max. po?et e-mailov�ch preposielan�'; +$wb['limit_mailcatchall_txt'] = 'Max. po?et e-mailov�ch dom�nov�ch ko�ov'; +$wb['limit_mailrouting_txt'] = 'Max. po?et e-mailov�ch smerovan�'; +$wb['limit_mailfilter_txt'] = 'Max. po?et e-mailov�ch filtrov'; +$wb['limit_fetchmail_txt'] = 'Max. po?et �?tov fetchmail'; +$wb['limit_mailquota_txt'] = 'Kv�ta schr�nky'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. po?et Spamfilter biele / ?ierne listiny filtre'; +$wb['limit_spamfilter_user_txt'] = 'Max. po?et pou��vate?ov Spamfilter'; +$wb['limit_spamfilter_policy_txt'] = 'Max. po?et Spamfilter polit�k'; +$wb['default_mailserver_txt'] = 'Predvolen� Mailserver'; +$wb['company_name_txt'] = 'N�zov firmy'; +$wb['contact_name_txt'] = 'Meno kontaktnej osoby'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['password_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['language_txt'] = 'Jazyk'; +$wb['usertheme_txt'] = 'T�ma'; +$wb['street_txt'] = 'Ulica'; +$wb['zip_txt'] = 'PS?'; +$wb['city_txt'] = 'Mesto'; +$wb['state_txt'] = '�t�t'; +$wb['country_txt'] = 'Krajina'; +$wb['telephone_txt'] = 'Telef�n'; +$wb['mobile_txt'] = 'Mobil'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Pozn�mky'; +$wb['company_txt'] = 'Spolo?nos?'; +$wb['title_txt'] = 'N�zov'; +$wb['firstname_txt'] = 'Krstn� meno'; +$wb['surname_txt'] = 'Priezvisko'; +$wb['limit_domain_txt'] = 'limit_dom�n'; +$wb['limit_subdomain_txt'] = 'limit_subdom�n'; +$wb['limit_webquota_txt'] = 'limit_webkv�ta'; +$wb['limit_database_txt'] = 'Max. po?et datab�z'; +$wb['limit_cron_txt'] = 'Max. po?et pracovn�ch jobov'; +$wb['limit_cron_type_txt'] = 'Max. typ cron joby (chroot a pln� znamen�, url)'; +$wb['limit_cron_frequency_txt'] = 'Min. oneskorenie medzi vykon�van�m'; +$wb['ip_address_txt'] = 'ip_adresa'; +$wb['limit_client_error_notint'] = 'Sub klient limit mus� by? ?�slo.'; +$wb['firstname_error_empty'] = 'Meno je pr�zdne.'; +$wb['contact_error_empty'] = 'Kontaktn� meno je pr�zdne.'; +$wb['default_webserver_txt'] = 'Predvolen� Webserver'; +$wb['limit_web_domain_txt'] = 'Max. po?et web dom�n'; +$wb['limit_web_aliasdomain_txt'] = 'Max. po?et webov�ch alias dom�n'; +$wb['limit_web_subdomain_txt'] = 'Max. po?et webov�ch sub dom�n'; +$wb['limit_ftp_user_txt'] = 'Max. po?et pou��vate?ov FTP'; +$wb['default_dnsserver_txt'] = 'Predvolen� DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. po?et z�n DNS'; +$wb['limit_dns_record_txt'] = 'Max. po?et DNS z�znamov'; +$wb['limit_shell_user_txt'] = 'Max. po?et Shell u�ivate?ov'; +$wb['limit_client_txt'] = 'Max. po?et klientov'; +$wb['username_error_empty'] = 'U��vate?sk� meno je pr�zdny.'; +$wb['username_error_unique'] = 'U��vate?sk� meno mus� by? jedine?n�.'; +$wb['limit_maildomain_error_notint'] = 'E-mailov� dom�nov� limit mus� by? ?�slo.'; +$wb['limit_mailbox_error_notint'] = 'Limit schr�nok mus� by? ?�slo.'; +$wb['limit_mailalias_error_notint'] = 'Limit email alias mus� by? ?�slo.'; +$wb['limit_mailforward_error_notint'] = 'Limit email preposielan� mus� by? ?�slo.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit dom�nov�ch ko�ov mus� by? ?�slo.'; +$wb['limit_mailrouting_error_notint'] = 'Limit email smerovan� mus� by? ?�slo.'; +$wb['limit_mailfilter_error_notint'] = 'Limit email filter mus� by? ?�slo.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit fetchmail mus� by? ?�slo.'; +$wb['limit_mailquota_error_notint'] = 'Limit email kv�t mus� by? ?�slo.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit spamfilter bielych / ?ietnych listin mus� by? ?�slo.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit u�ivate?sk�ch spamfilterov mus� by? ?�slo.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit spamfilter polit�k mus� by? ?�slo.'; +$wb['limit_web_domain_error_notint'] = 'Limit website mus� by? ?�slo.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit website alias dom�n mus� by? ?�slo.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit website subdom�n mus� by? ?�slo.'; +$wb['limit_ftp_user_error_notint'] = 'Limit ftp u�ivate?ov mus� by? ?�slo.'; +$wb['limit_shell_user_error_notint'] = 'Limit shell u�ivate?ov mus� by? ?�slo.'; +$wb['limit_dns_zone_error_notint'] = 'Limit dns z�znamov mus� by? ?�slo.'; +$wb['default_dbserver_txt'] = 'Predvolen� Databazov� Server'; +$wb['limit_database_error_notint'] = 'Limit datab�z mus� by? ?�slo.'; +$wb['limit_cron_error_notint'] = 'Limit cron mus� by? ?�slo.'; +$wb['limit_cron_error_frequency'] = 'Limit cron frekvencia mus� by? ?�slo.'; +$wb['username_error_regex'] = 'Prihlasovacie meno obsahuje neplatn� znaky.'; +$wb['template_master_txt'] = 'Master �abl�na'; +$wb['template_additional_txt'] = 'Pr�davn� �abl�na'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Mo�nosti'; +$wb['web_php_options_txt'] = 'PHP Mo�nosti'; +$wb['limit_client_error'] = 'Max. po?et klientov je dosiahnu?.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng new file mode 100644 index 0000000..938c436 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Limit klient nie je ?�slo.'; +$wb['limit_maildomain_txt'] = 'Max. po?et e-mailov�ch dom�n'; +$wb['limit_mailbox_txt'] = 'Max. po?et po�tov�ch schr�nok'; +$wb['limit_mailalias_txt'] = 'Max. po?et e-mailov�ch aliasov'; +$wb['limit_mailforward_txt'] = 'Max. po?et e-mailov�ch prenose'; +$wb['limit_mailcatchall_txt'] = 'Max. po?et e-mailov�ch dom�nov� ko�ov'; +$wb['limit_mailrouting_txt'] = 'Max. po?et e-mailov�ch smerovan�'; +$wb['limit_mailfilter_txt'] = 'Max. po?et e-mailov�ch filtrov'; +$wb['limit_fetchmail_txt'] = 'Max. po?et �?tov fetchmail'; +$wb['limit_mailquota_txt'] = 'Kv�ta schr�nky'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. po?et Spamfilter bielych / ?iernych list�n filtrov'; +$wb['limit_spamfilter_user_txt'] = 'Max. po?et pou��vate?sk�ch Spamfilterov'; +$wb['limit_spamfilter_policy_txt'] = 'Max. number of spamfilter policys'; +$wb['limit_domain_txt'] = 'limit_dom�n'; +$wb['limit_subdomain_txt'] = 'limit_subdom�n'; +$wb['limit_webquota_txt'] = 'limit_webkv�t'; +$wb['limit_database_txt'] = 'Max. po?et datab�z'; +$wb['limit_cron_txt'] = 'Max. po?et cron jobov'; +$wb['limit_cron_type_txt'] = 'Max. typ cron job (chroot a pln� znamen� url)'; +$wb['limit_cron_frequency_txt'] = 'Min oneskorenie medzi vykonan�m'; +$wb['limit_web_domain_txt'] = 'Max. po?et web dom�n'; +$wb['limit_web_aliasdomain_txt'] = 'Max. po?et web aliasdom�n'; +$wb['limit_web_subdomain_txt'] = 'Max. po?et web subdom�n'; +$wb['limit_ftp_user_txt'] = 'Max. po?et FTP u�ivate?ov'; +$wb['limit_dns_zone_txt'] = 'Max. po?et DNS z�n'; +$wb['limit_dns_record_txt'] = 'Max. po?et DNS z�znamov'; +$wb['limit_shell_user_txt'] = 'Max. po?et Shell u�ivate?ov'; +$wb['limit_client_txt'] = 'Max. po?et Klientov'; +$wb['limit_maildomain_error_notint'] = 'Limit E-mailov�ch dom�n mus� by? ?�slo.'; +$wb['limit_mailbox_error_notint'] = 'Limit schr�nok mus� by? ?�slo.'; +$wb['limit_mailalias_error_notint'] = 'Limit email aliasov mus� by? ?�slo.'; +$wb['limit_mailforward_error_notint'] = 'Limit emailpreposielan� mus� by? ?�slo.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit email dom�nov�ch ko�ov mus� by? ?�slo.'; +$wb['limit_mailrouting_error_notint'] = 'Limit email smerovan� mus� by? ?�slo.'; +$wb['limit_mailfilter_error_notint'] = 'Limit email filter mus� by? ?�slo.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit fetchmail mus� by? ?�slo.'; +$wb['limit_mailquota_error_notint'] = 'Limit email kv�ta mus� by? ?�slo.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit spamfilter bielych / ?iernych list�n mus� by? ?�slo.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit u�iva?e?sk�ch spamfilterov mus� by? ?�slo.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit spamfilter polit�k mus� by? ?�slo.'; +$wb['limit_web_domain_error_notint'] = 'Limit webstr�nok mus� by? ?�slo.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit website alias dom�n mus� by? ?�slo.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit website subdom�n mus� by? ?�slo.'; +$wb['limit_ftp_user_error_notint'] = 'Limit ftp u�ivatelov mus� by? ?�slo.'; +$wb['limit_shell_user_error_notint'] = 'Limit shell u�iva?e?ov mus� by? ?�slo.'; +$wb['limit_dns_zone_error_notint'] = 'Limit dns z�znamov mus� by? ?�slo.'; +$wb['limit_database_error_notint'] = 'Limit datab�z mus� by? ?�slo.'; +$wb['limit_cron_error_notint'] = 'Limit cron mus� by? ?�slo.'; +$wb['limit_cron_error_frequency'] = 'Cron frekvencia limit mus� by? ?�slo.'; +$wb['error_template_name_empty'] = 'Pros�m, zadajte n�zov �abl�ny'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng new file mode 100644 index 0000000..6160cc8 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Klient-�abl�ny'; +$wb['template_type_txt'] = 'Typ'; +$wb['template_name_txt'] = 'Meno �abl�ny'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng new file mode 100644 index 0000000..780be1c --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Klienti'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'N�zov firmy'; +$wb['contact_name_txt'] = 'Meno kontaktnej osoby'; +$wb['city_txt'] = 'Mesto'; +$wb['country_txt'] = 'Krajina'; +$wb['add_new_record_txt'] = 'Prida? nov�ho klienta'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng b/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng new file mode 100644 index 0000000..5b17a80 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. po?et e-mailov�ch dom�n'; +$wb['limit_mailbox_txt'] = 'Max. po?et po�tov�ch schr�nok'; +$wb['limit_mailalias_txt'] = 'Max. po?et e-mailov�ch aliasov'; +$wb['limit_mailforward_txt'] = 'Max. po?et e-mailov�ch preposielan�'; +$wb['limit_mailcatchall_txt'] = 'Max. po?et e-mailov�ch dom�nov�ch ko�ov'; +$wb['limit_mailrouting_txt'] = 'Max. po?et e-mailov�ch smerovan�'; +$wb['limit_mailfilter_txt'] = 'Max. po?et e-mailov�ch filtrov'; +$wb['limit_fetchmail_txt'] = 'Max. po?et �?tov fetchmail'; +$wb['limit_mailquota_txt'] = 'Kv�ta schr�nky'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. po?et Spamfilter biele / ?ierne filtre'; +$wb['limit_spamfilter_user_txt'] = 'Max. po?et pou��vate?ov Spamfiltrov'; +$wb['limit_spamfilter_policy_txt'] = 'Max. po?et Spamfilter polit�k'; +$wb['default_mailserver_txt'] = 'Predvolen� Mailserver'; +$wb['company_name_txt'] = 'N�zov firmy'; +$wb['contact_name_txt'] = 'Meno kontaktnej osoby'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['password_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['language_txt'] = 'Jazyk'; +$wb['usertheme_txt'] = 'T�ma'; +$wb['street_txt'] = 'Ulica'; +$wb['zip_txt'] = 'PS?'; +$wb['city_txt'] = 'Mesto'; +$wb['state_txt'] = '�t�t'; +$wb['country_txt'] = 'Krajina'; +$wb['telephone_txt'] = 'Telef�n'; +$wb['mobile_txt'] = 'Mobil'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Pozn�mky'; +$wb['company_txt'] = 'Spolo?nos?'; +$wb['title_txt'] = 'Nadpis'; +$wb['firstname_txt'] = 'Krstn� meno'; +$wb['surname_txt'] = 'Priezvisko'; +$wb['limit_domain_txt'] = 'limit_dom�n'; +$wb['limit_subdomain_txt'] = 'limit_subdom�n'; +$wb['limit_webquota_txt'] = 'limit_webkv�ta'; +$wb['limit_database_txt'] = 'Max. po?et datab�z'; +$wb['limit_cron_txt'] = 'Max. po?et cron joby'; +$wb['limit_cron_type_txt'] = 'Max. typ cron jobov (chroot a pln� znamen�, url)'; +$wb['limit_cron_frequency_txt'] = 'Min. oneskorenie medzi vykonan�m'; +$wb['ip_address_txt'] = 'ip_adresa'; +$wb['limit_client_error_notint'] = 'Sub klient limit mus� by? ?�slo.'; +$wb['firstname_error_empty'] = 'Meno je pr�zdne.'; +$wb['contact_error_empty'] = 'Kontaktn� meno je pr�zdne.'; +$wb['default_webserver_txt'] = 'Predvolen� Webserver'; +$wb['limit_web_domain_txt'] = 'Max. po?et web dom�n'; +$wb['limit_web_aliasdomain_txt'] = 'Max. po?et webov�ch alias dom�n'; +$wb['limit_web_subdomain_txt'] = 'Max. po?et webov�ch sub dom�n'; +$wb['limit_ftp_user_txt'] = 'Max. po?et FTP u�ivate?ov'; +$wb['default_dnsserver_txt'] = 'Predvolen� DNS Server'; +$wb['limit_dns_zone_txt'] = 'Max. po?et DNS z�n'; +$wb['limit_dns_record_txt'] = 'Max. po?et DNS z�znamov'; +$wb['limit_shell_user_txt'] = 'Max. po?et of Shell users'; +$wb['limit_client_txt'] = 'Max. po?et Klientov'; +$wb['username_error_empty'] = 'U��vate?sk� meno je pr�zdne.'; +$wb['username_error_unique'] = 'U��vate?sk� meno mus� by? jedine?n�.'; +$wb['limit_maildomain_error_notint'] = 'Limit E-mailov�ch dom�n mus� by? ?�slo.'; +$wb['limit_mailbox_error_notint'] = 'Limit schr�nky mus� by? ?�slo.'; +$wb['limit_mailalias_error_notint'] = 'Limit Email alias mus� by? ?�slo.'; +$wb['limit_mailforward_error_notint'] = 'Limit E-mail preposielanie mus� by? ?�slo.'; +$wb['limit_mailcatchall_error_notint'] = 'Limit E-mail dom�nov� k�� mus� by? ?�slo.'; +$wb['limit_mailrouting_error_notint'] = 'Limit E-mail smerovania mus� by? ?�slo.'; +$wb['limit_mailfilter_error_notint'] = 'Limit email filter mus� by? ?�slo.'; +$wb['limit_mailfetchmail_error_notint'] = 'Limit fetchmail mus� by? ?�slo.'; +$wb['limit_mailquota_error_notint'] = 'Limit email kv�ta mus� by? ?�slo.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Limit spamfilter white / blacklist mus� by? ?�slo.'; +$wb['limit_spamfilter_user_error_notint'] = 'Limit spamfilter u�ivate?a mus� by? ?�slo.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Limit spamfilter polit�k mus� by? ?�slo.'; +$wb['limit_web_domain_error_notint'] = 'Limit webstr�nok mus� by? ?�slo.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Limit webstr�nok alias dom�n mus� by? ?�slo.'; +$wb['limit_web_subdomain_error_notint'] = 'Limit webstr�nok subdom�n mus� by? ?�slo.'; +$wb['limit_ftp_user_error_notint'] = 'Limit ftp u�ivate? mus� by? ?�slo.'; +$wb['limit_shell_user_error_notint'] = 'Limit shell u�ivate? mus� by? ?�slo.'; +$wb['limit_dns_zone_error_notint'] = 'Limit dns z�znamov mus� by? ?�slo.'; +$wb['default_dbserver_txt'] = 'Predvolen� datab�zov� server'; +$wb['limit_database_error_notint'] = 'Datab�zov� limit mus� by? ?�slo.'; +$wb['limit_cron_error_notint'] = 'Cron limit mus� by? ?�slo.'; +$wb['limit_cron_error_frequency'] = 'Cron frekvencia mus� by? ?�slo.'; +$wb['username_error_regex'] = 'Prihlasovacie meno obsahuje neplatn� znaky.'; +$wb['template_master_txt'] = 'Master �abl�ny'; +$wb['template_additional_txt'] = 'Pr�davn� �abl�ny'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Mo�nosti'; +$wb['web_php_options_txt'] = 'PHP Mo�nosti'; +$wb['limit_client_error'] = 'Max. po?et klientov je dosiahnut�.'; +$wb['limit_client_error_positive'] = 'Po?et klientov, mus� by?> 0'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng new file mode 100644 index 0000000..2fbaecd --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Predajcovia'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'N�zov firmy'; +$wb['contact_name_txt'] = 'Meno kontaktnej osoby'; +$wb['city_txt'] = 'Mesto'; +$wb['country_txt'] = 'Krajina'; +$wb['add_new_record_txt'] = 'Prida? nov�ho predajcu'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr.lng b/interface/ispconfig/interface/client/lib/lang/tr.lng new file mode 100644 index 0000000..f8f1e50 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr.lng @@ -0,0 +1,13 @@ +<?php +$wb['Client'] = 'Müşteri'; +$wb['Address'] = 'Addres'; +$wb['Limits'] = 'Limitler'; +$wb['Add Client'] = 'Müşteri Ekle'; +$wb['Edit Client'] = 'Müşteri Düzenle'; +$wb['Clients'] = 'Müşteriler'; +$wb['Edit Client-Templates'] = 'Müşteri-Şablon Düzenle'; +$wb['Add Reseller'] = 'Reseller Ekle'; +$wb['Edit Reseller'] = 'Reseller Düzenle'; +$wb['Resellers'] = 'Resellerlar'; +$wb['error_has_clients'] = 'This reseller has clients. Delete the clients of the reseller first.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client.lng b/interface/ispconfig/interface/client/lib/lang/tr_client.lng new file mode 100644 index 0000000..35e6cd5 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_client.lng @@ -0,0 +1,94 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. email domain sayısı'; +$wb['limit_mailbox_txt'] = 'Max. mail kutusu sayısı'; +$wb['limit_mailalias_txt'] = 'Max. email alias sayısı'; +$wb['limit_mailforward_txt'] = 'Max. email forwarder sayısı'; +$wb['limit_mailcatchall_txt'] = 'Max. email catchall hesapları'; +$wb['limit_mailrouting_txt'] = 'Max. email route sayısı'; +$wb['limit_mailfilter_txt'] = 'Max. email filter sayısı'; +$wb['limit_fetchmail_txt'] = 'Max. fetchmail hesapları'; +$wb['limit_mailquota_txt'] = 'Mail kutusu kotası'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. spam filtre ak / kara listesi filtesi sayısı'; +$wb['limit_spamfilter_user_txt'] = 'Max. spam filtre kullanıcıları sayısı'; +$wb['limit_spamfilter_policy_txt'] = 'Max. spam filtre kuralı sayısı'; +$wb['default_mailserver_txt'] = 'Varsayılan Mail Sunucusu'; +$wb['company_name_txt'] = 'Şirket adı'; +$wb['contact_name_txt'] = 'Kontak adı'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['password_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['language_txt'] = 'Dil'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Cadde'; +$wb['zip_txt'] = 'Posta Kodu'; +$wb['city_txt'] = 'Şehir'; +$wb['state_txt'] = 'Mevki'; +$wb['country_txt'] = 'Ülke'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Cep Tel'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notlar'; +$wb['company_txt'] = 'Şirket'; +$wb['title_txt'] = 'Başlık'; +$wb['firstname_txt'] = 'Adı'; +$wb['surname_txt'] = 'Soyadı'; +$wb['limit_domain_txt'] = 'Domain limiti'; +$wb['limit_subdomain_txt'] = 'Subdomain limiti'; +$wb['limit_webquota_txt'] = 'Web kotası limiti'; +$wb['limit_database_txt'] = 'Max. Veritabanı sayısı'; +$wb['limit_cron_txt'] = 'Max. zamanlanmış görev sayısı'; +$wb['limit_cron_type_txt'] = 'Max. zamanlanmış görev çeşidi (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Çalıştırma arasındaki min. gecikme'; +$wb['ip_address_txt'] = 'IP adresleri'; +$wb['limit_client_error_notint'] = 'Alt müşteri limiti sayı olmak zorunda.'; +$wb['firstname_error_empty'] = 'Adı boş.'; +$wb['contact_error_empty'] = 'Kontak adı boş.'; +$wb['default_webserver_txt'] = 'Varsayılan Web Sunucusu'; +$wb['limit_web_domain_txt'] = 'Max. web domain sayısı'; +$wb['limit_web_aliasdomain_txt'] = 'Max. web alias domain sayısı'; +$wb['limit_web_subdomain_txt'] = 'Max. sub domain sayısı'; +$wb['limit_ftp_user_txt'] = 'Max. FTP kullanıcı sayısı'; +$wb['default_dnsserver_txt'] = 'Varsayılan DNS Sunucusu'; +$wb['limit_dns_zone_txt'] = 'Max. DNS zone sayısı'; +$wb['limit_dns_record_txt'] = 'Max. DNS kaydı sayısı'; +$wb['limit_shell_user_txt'] = 'Max. Shell kullanıcısı sayısı'; +$wb['limit_client_txt'] = 'Max. Müşteri sayısı'; +$wb['username_error_empty'] = 'Kullanıcı adı boş.'; +$wb['username_error_unique'] = 'Bu kullanıcı adı zaten var.'; +$wb['limit_maildomain_error_notint'] = 'Email domain limiti sayı olmak zorunda.'; +$wb['limit_mailbox_error_notint'] = 'Mail kutusu limiti sayı olmak zorunda.'; +$wb['limit_mailalias_error_notint'] = 'Email alias limiti sayı olmak zorunda.'; +$wb['limit_mailforward_error_notint'] = 'Email forward limiti sayı olmak zorunda.'; +$wb['limit_mailcatchall_error_notint'] = 'Email catchall limiti sayı olmak zorunda.'; +$wb['limit_mailrouting_error_notint'] = 'Email routing limiti sayı olmak zorunda.'; +$wb['limit_mailfilter_error_notint'] = 'Email filtresi limiti sayı olmak zorunda.'; +$wb['limit_mailfetchmail_error_notint'] = 'Fetchmail limiti sayı olmak zorunda.'; +$wb['limit_mailquota_error_notint'] = 'Email quota limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Spamfilter white / blacklist limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_user_error_notint'] = 'Spam filtre kullanıcısı limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Spam filtresi kuralı limiti sayı olmak zorunda.'; +$wb['limit_web_domain_error_notint'] = 'Websitesi limiti sayı olmak zorunda.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Website alias domain limiti sayı olmak zorunda.'; +$wb['limit_web_subdomain_error_notint'] = 'Website subdomain limiti sayı olmak zorunda.'; +$wb['limit_ftp_user_error_notint'] = 'Ftp kullanıcısı limiti sayı olmak zorunda.'; +$wb['limit_shell_user_error_notint'] = 'Shell kullanıcısı limiti sayı olmak zorunda.'; +$wb['limit_dns_zone_error_notint'] = 'Dns record limiti sayı olmak zorunda.'; +$wb['default_dbserver_txt'] = 'Varsayılan Veritabanı Sunucusu'; +$wb['limit_database_error_notint'] = 'Veritabanı limiti sayı olmak zorunda.'; +$wb['limit_cron_error_notint'] = 'Zamanlanmış Görev limiti sayı olmak zorunda.'; +$wb['limit_cron_error_frequency'] = 'Zamanlanmış Görev sıklığı limiti sayı olmak zorunda.'; +$wb['username_error_regex'] = 'Kullanıcı adı geçersiz karaterler içermekte.'; +$wb['template_master_txt'] = 'Ana şablon'; +$wb['template_additional_txt'] = 'Ek şablon'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Seçenekleri'; +$wb['web_php_options_txt'] = 'PHP Seçenekleri'; +$wb['limit_client_error'] = 'Max. Müşteri limitine ulaşıldı.'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng new file mode 100644 index 0000000..a826d64 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng @@ -0,0 +1,6 @@ +<?php +$wb['confirm_action_txt'] = 'Confirm action'; +$wb['delete_explanation'] = 'This action will delete the following number of records associated with this client'; +$wb['btn_save_txt'] = 'Delete the client'; +$wb['btn_cancel_txt'] = 'Cancel without deleting the client'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng new file mode 100644 index 0000000..2d038e0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng @@ -0,0 +1,57 @@ +<?php +$wb['limit_client_error_notint'] = 'Müşteri Limiti sayı değil.'; +$wb['limit_maildomain_txt'] = 'Max. email domain sayısı'; +$wb['limit_mailbox_txt'] = 'Max. mail kutusu sayısı'; +$wb['limit_mailalias_txt'] = 'Max. email alias sayısı'; +$wb['limit_mailforward_txt'] = 'Max. email forwarder sayısı'; +$wb['limit_mailcatchall_txt'] = 'Max. catchall hesabı sayısı'; +$wb['limit_mailrouting_txt'] = 'Max. email route sayısı'; +$wb['limit_mailfilter_txt'] = 'Max. email filter sayısı'; +$wb['limit_fetchmail_txt'] = 'Max. fetchmail hesabı sayısı'; +$wb['limit_mailquota_txt'] = 'Mail kutusu kotası'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. spam filtre ak / kara listesi filtresi sayısı'; +$wb['limit_spamfilter_user_txt'] = 'Max. spam filtresi kullanıcı sayısı'; +$wb['limit_spamfilter_policy_txt'] = 'Max. spam filtresi kuralı sayısı'; +$wb['limit_domain_txt'] = 'Domain limiti'; +$wb['limit_subdomain_txt'] = 'Subdomain limiti'; +$wb['limit_webquota_txt'] = 'Web kotası limiti'; +$wb['limit_database_txt'] = 'Max. Veritabanı sayısı'; +$wb['limit_cron_txt'] = 'Max. zamanlanmış görev sayısı'; +$wb['limit_cron_type_txt'] = 'Max. zamanlanmış görev çeşidi (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Çalıştırma arasındaki min. gecikme'; +$wb['limit_web_domain_txt'] = 'Max. web domain sayısı'; +$wb['limit_web_aliasdomain_txt'] = 'Max. web alias domain sayısı'; +$wb['limit_web_subdomain_txt'] = 'Max. sub domain sayısı'; +$wb['limit_ftp_user_txt'] = 'Max. FTP kullanıcı sayısı'; +$wb['limit_dns_zone_txt'] = 'Max. DNS zone sayısı'; +$wb['limit_dns_record_txt'] = 'Max. DNS kaydı sayısı'; +$wb['limit_shell_user_txt'] = 'Max. Shell kullanıcısı sayısı'; +$wb['limit_client_txt'] = 'Max. Müşteri sayısı'; +$wb['limit_maildomain_error_notint'] = 'Email domain limiti sayı olmak zorunda.'; +$wb['limit_mailbox_error_notint'] = 'Mail kutusu limiti sayı olmak zorunda.'; +$wb['limit_mailalias_error_notint'] = 'Email alias limiti sayı olmak zorunda.'; +$wb['limit_mailforward_error_notint'] = 'Email forward limiti sayı olmak zorunda.'; +$wb['limit_mailcatchall_error_notint'] = 'Email catchall limiti sayı olmak zorunda.'; +$wb['limit_mailrouting_error_notint'] = 'Email routing limiti sayı olmak zorunda.'; +$wb['limit_mailfilter_error_notint'] = 'Email filter limiti sayı olmak zorunda.'; +$wb['limit_mailfetchmail_error_notint'] = 'Fetchmail limiti sayı olmak zorunda.'; +$wb['limit_mailquota_error_notint'] = 'Email kotası limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Spam filtre ak / kara listesi limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_user_error_notint'] = 'Spam filtresi kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Spam filtresi kural limiti sayı olmak zorunda.'; +$wb['limit_web_domain_error_notint'] = 'Websitesi limiti sayı olmak zorunda.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Website alias domain limiti sayı olmak zorunda.'; +$wb['limit_web_subdomain_error_notint'] = 'Website subdomain limiti sayı olmak zorunda.'; +$wb['limit_ftp_user_error_notint'] = 'Ftp kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_shell_user_error_notint'] = 'Shell kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_dns_zone_error_notint'] = 'Dns kaydı limiti sayı olmak zorunda.'; +$wb['limit_database_error_notint'] = 'The database limiti sayı olmak zorunda.'; +$wb['limit_cron_error_notint'] = 'Zamanlanmış Görev limiti sayı olmak zorunda.'; +$wb['limit_cron_error_frequency'] = 'Zamanlanmış Görev sıklığı limiti sayı olmak zorunda.'; +$wb['error_template_name_empty'] = 'Lütfen bir şablon ismi giriniz'; +$wb['limit_mailaliasdomain_txt'] = 'Max. number of domain aliases'; +$wb['limit_mailaliasdomain_error_notint'] = 'The email domain alias limit must be a number.'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng new file mode 100644 index 0000000..af5c1c7 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Müşteri-Şablon'; +$wb['template_type_txt'] = 'Çeşit'; +$wb['template_name_txt'] = 'Şablon adı'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng new file mode 100644 index 0000000..9c0215a --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Müşteriler'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Şirket adı'; +$wb['contact_name_txt'] = 'Kontak adı'; +$wb['city_txt'] = 'Şehir'; +$wb['country_txt'] = 'Ülke'; +$wb['add_new_record_txt'] = 'Yeni Müşteri'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng b/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng new file mode 100644 index 0000000..63077c0 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng @@ -0,0 +1,93 @@ +<?php +$wb['limit_maildomain_txt'] = 'Max. email domain sayısı'; +$wb['limit_mailbox_txt'] = 'Max. mail kutusu sayısı'; +$wb['limit_mailalias_txt'] = 'Max. email alias sayısı'; +$wb['limit_mailforward_txt'] = 'Max. email forwarder sayısı'; +$wb['limit_mailcatchall_txt'] = 'Max. email catchall account sayısı'; +$wb['limit_mailrouting_txt'] = 'Max. email route sayısı'; +$wb['limit_mailfilter_txt'] = 'Max. email filter sayısı'; +$wb['limit_fetchmail_txt'] = 'Max. fetchmail account sayısı'; +$wb['limit_mailquota_txt'] = 'Mail kutusu kotası'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. spamfilter white / blacklist filtresi sayısı'; +$wb['limit_spamfilter_user_txt'] = 'Max. spamfilter kullanıcıları'; +$wb['limit_spamfilter_policy_txt'] = 'Max. spamfilter policy sayısı'; +$wb['default_mailserver_txt'] = 'Varsayılan Mail Sunucusu'; +$wb['company_name_txt'] = 'Şirket adı'; +$wb['contact_name_txt'] = 'Kontak adı'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['password_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['language_txt'] = 'Dil'; +$wb['usertheme_txt'] = 'Tema'; +$wb['street_txt'] = 'Cadde'; +$wb['zip_txt'] = 'Posta kodu'; +$wb['city_txt'] = 'Şehir'; +$wb['state_txt'] = 'Mevki'; +$wb['country_txt'] = 'Ülke'; +$wb['telephone_txt'] = 'Telefon'; +$wb['mobile_txt'] = 'Cep Tel'; +$wb['fax_txt'] = 'Fax'; +$wb['email_txt'] = 'Email'; +$wb['internet_txt'] = 'Internet'; +$wb['icq_txt'] = 'ICQ'; +$wb['notes_txt'] = 'Notlar'; +$wb['company_txt'] = 'Şirket'; +$wb['title_txt'] = 'Başlık'; +$wb['firstname_txt'] = 'Adı'; +$wb['surname_txt'] = 'Soyadı'; +$wb['limit_domain_txt'] = 'Domain limiti'; +$wb['limit_subdomain_txt'] = 'Subdomain limiti'; +$wb['limit_webquota_txt'] = 'Web kotası limiti'; +$wb['limit_database_txt'] = 'Max. Veritabanı sayısı'; +$wb['limit_cron_txt'] = 'Max. zamanlanmış görev sayısı'; +$wb['limit_cron_type_txt'] = 'Max. zamanlanmış görev çeşidi (chrooted and full implies url)'; +$wb['limit_cron_frequency_txt'] = 'Çalıştırma arasındaki min. gecikme'; +$wb['ip_address_txt'] = 'IP adresleri'; +$wb['limit_client_error_notint'] = 'Alt müşteri limiti sayı olmak zorunda.'; +$wb['firstname_error_empty'] = 'Adı boş.'; +$wb['contact_error_empty'] = 'Kontak adı boş.'; +$wb['default_webserver_txt'] = 'Varsayılan web sunucusu'; +$wb['limit_web_domain_txt'] = 'Max. web domain sayısı'; +$wb['limit_web_aliasdomain_txt'] = 'Max. web aliasdomain sayısı'; +$wb['limit_web_subdomain_txt'] = 'Max. web subdomain sayısı'; +$wb['limit_ftp_user_txt'] = 'Max. FTP kullanıcı sayısı'; +$wb['default_dnsserver_txt'] = 'Varsayılan DNS Sunucusu'; +$wb['limit_dns_zone_txt'] = 'Max. DNS zone sayısı'; +$wb['limit_dns_record_txt'] = 'Max. DNS record sayısı'; +$wb['limit_shell_user_txt'] = 'Max. Shell kullanıcı sayısı'; +$wb['limit_client_txt'] = 'Max. Müşteri sayısı'; +$wb['username_error_empty'] = 'Kullanıcı adı boş.'; +$wb['username_error_unique'] = 'Bu kullanıcı adı zaten var.'; +$wb['limit_maildomain_error_notint'] = 'Email domain limiti sayı olmak zorunda.'; +$wb['limit_mailbox_error_notint'] = 'Mail kutusu limiti sayı olmak zorunda.'; +$wb['limit_mailalias_error_notint'] = 'Email alias limiti sayı olmak zorunda.'; +$wb['limit_mailforward_error_notint'] = 'Email forward limiti sayı olmak zorunda.'; +$wb['limit_mailcatchall_error_notint'] = 'Email catchall limiti sayı olmak zorunda.'; +$wb['limit_mailrouting_error_notint'] = 'Email routing limiti sayı olmak zorunda.'; +$wb['limit_mailfilter_error_notint'] = 'Email filter limiti sayı olmak zorunda.'; +$wb['limit_mailfetchmail_error_notint'] = 'Fetchmail limiti sayı olmak zorunda.'; +$wb['limit_mailquota_error_notint'] = 'Email kota limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_wblist_error_notint'] = 'Spam filtre ak / kara listesi limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_user_error_notint'] = 'Spam filtresi kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_spamfilter_policy_error_notint'] = 'Spam filtresi kuralı limiti sayı olmak zorunda.'; +$wb['limit_web_domain_error_notint'] = 'Website limiti sayı olmak zorunda.'; +$wb['limit_web_aliasdomain_error_notint'] = 'Website alias domain limiti sayı olmak zorunda.'; +$wb['limit_web_subdomain_error_notint'] = 'Website subdomain limiti sayı olmak zorunda.'; +$wb['limit_ftp_user_error_notint'] = 'FTP kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_shell_user_error_notint'] = 'Shell kullanıcı limiti sayı olmak zorunda.'; +$wb['limit_dns_zone_error_notint'] = 'Dns record limiti sayı olmak zorunda.'; +$wb['default_dbserver_txt'] = 'Varsayılan Veritabanı Sunucusu'; +$wb['limit_database_error_notint'] = 'Veritabanı limiti sayı olmak zorunda.'; +$wb['limit_cron_error_notint'] = 'Zamanlanmış Görev limiti sayı olmak zorunda.'; +$wb['limit_cron_error_frequency'] = 'Zamanlanmış Görev sıklığı limiti sayı olmak zorunda.'; +$wb['username_error_regex'] = 'Kullanıcı adı geçersiz karakterler içerimekte.'; +$wb['template_master_txt'] = 'Ana Şablon'; +$wb['template_additional_txt'] = 'Ek Şablon'; +$wb['ssh_chroot_txt'] = 'SSH-Chroot Seçenekleri'; +$wb['web_php_options_txt'] = 'PHP Seçenekleri'; +$wb['limit_client_error'] = 'Max. müşteri limitine ulaşıldı.'; +$wb['limit_client_error_positive'] = 'Müşteri sayısı sıfırdan büyük olmalı'; +$wb['limit_web_quota_txt'] = 'Web Quota'; +$wb['limit_traffic_quota_txt'] = 'Traffic Quota'; +$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.'; +?> diff --git a/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng new file mode 100644 index 0000000..ccb8fd1 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Resellerlar'; +$wb['client_id_txt'] = 'ID'; +$wb['company_name_txt'] = 'Şirket adı'; +$wb['contact_name_txt'] = 'Kontak adı'; +$wb['city_txt'] = 'Şehir'; +$wb['country_txt'] = 'Ülke'; +$wb['add_new_record_txt'] = 'Yeni Reseller'; +?> diff --git a/interface/ispconfig/interface/client/lib/module.conf.php b/interface/ispconfig/interface/client/lib/module.conf.php new file mode 100644 index 0000000..543fc89 --- /dev/null +++ b/interface/ispconfig/interface/client/lib/module.conf.php @@ -0,0 +1,63 @@ +<?php + +$module["name"] = "client"; +$module["title"] = "top_menu_client"; +$module["template"] = "module.tpl.htm"; +$module["startpage"] = "client/client_list.php"; +$module["tab_width"] = ''; + +/* + Email accounts menu +*/ + + +$items[] = array( 'title' => "Add Client", + 'target' => 'content', + 'link' => 'client/client_edit.php'); + +$items[] = array( 'title' => "Edit Client", + 'target' => 'content', + 'link' => 'client/client_list.php'); + +if($_SESSION["s"]["user"]["typ"] == 'admin'){ + $items[] = array( 'title' => "Edit Client-Templates", + 'target' => 'content', + 'link' => 'client/client_template_list.php'); +} + +$module["nav"][] = array( 'title' => 'Clients', + 'open' => 1, + 'items' => $items); + +unset($items); + + +if($_SESSION["s"]["user"]["typ"] == 'admin'){ + +$items[] = array( 'title' => "Add Reseller", + 'target' => 'content', + 'link' => 'client/reseller_edit.php'); + +$items[] = array( 'title' => "Edit Reseller", + 'target' => 'content', + 'link' => 'client/reseller_list.php'); + +$module["nav"][] = array( 'title' => 'Resellers', + 'open' => 1, + 'items' => $items); +} + + + + + + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/list/client.list.php b/interface/ispconfig/interface/client/list/client.list.php new file mode 100644 index 0000000..3ace4fb --- /dev/null +++ b/interface/ispconfig/interface/client/list/client.list.php @@ -0,0 +1,87 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "clients"; + +// Database table +$liste["table"] = "client"; + +// Index index field of the database table +$liste["table_idx"] = "client_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "client_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "client_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "client_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable authe +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "company_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "contact_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "city", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "country", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/list/client_template.list.php b/interface/ispconfig/interface/client/list/client_template.list.php new file mode 100644 index 0000000..679759e --- /dev/null +++ b/interface/ispconfig/interface/client/list/client_template.list.php @@ -0,0 +1,65 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +// Name of the list +$liste["name"] = "client_template"; + +// Database table +$liste["table"] = "client_template"; + +// Index index field of the database table +$liste["table_idx"] = "template_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "client_template_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "client_template_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "client_template_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "template_type", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('m' => "Main Template",'a' => "Additional Template")); + +$liste["item"][] = array( 'field' => "template_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); +?> diff --git a/interface/ispconfig/interface/client/list/reseller.list.php b/interface/ispconfig/interface/client/list/reseller.list.php new file mode 100644 index 0000000..6d08cc8 --- /dev/null +++ b/interface/ispconfig/interface/client/list/reseller.list.php @@ -0,0 +1,87 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "resellers"; + +// Database table +$liste["table"] = "client"; + +// Index index field of the database table +$liste["table_idx"] = "client_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "reseller_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "reseller_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "reseller_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable authe +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "company_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "contact_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "city", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "country", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/reseller_del.php b/interface/ispconfig/interface/client/reseller_del.php new file mode 100644 index 0000000..855652a --- /dev/null +++ b/interface/ispconfig/interface/client/reseller_del.php @@ -0,0 +1,92 @@ +<?php + +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/reseller.list.php"; +$tform_def_file = "form/reseller.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.'); + +$app->uses('tpl,tform'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app, $conf; + + $client_id = intval($this->dataRecord['client_id']); + + $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE parent_client_id = ".$client_id); + if($tmp["number"] > 0) $app->error($app->lng('error_has_clients')); + + } + + function onAfterDelete() { + global $app, $conf; + + $client_id = intval($this->dataRecord['client_id']); + + if($client_id > 0) { + // TODO: Delete all records (sub-clients, mail, web, etc....) of this client. + + // remove the group of the client from the resellers group + $parent_client_id = intval($this->dataRecord['parent_client_id']); + $parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id"); + $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id"); + $app->auth->remove_group_from_user($parent_user['userid'],$client_group['groupid']); + + // delete the group of the client + $app->db->query("DELETE FROM sys_group WHERE client_id = $client_id"); + + // delete the sys user(s) of the client + $app->db->query("DELETE FROM sys_user WHERE client_id = $client_id"); + } + + } +} + +$page = new page_action; +$page->onDelete() + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/reseller_edit.php b/interface/ispconfig/interface/client/reseller_edit.php new file mode 100644 index 0000000..949baae --- /dev/null +++ b/interface/ispconfig/interface/client/reseller_edit.php @@ -0,0 +1,222 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/reseller.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another website. + if($client["limit_client"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_client"]) { + $app->error($app->tform->wordbook["limit_client_txt"]); + } + } + } + + parent::onShowNew(); + } + + + function onSubmit() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user' && $this->id == 0) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another website. + if($client["limit_client"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_client"]) { + $app->error($app->tform->wordbook["limit_client_txt"]); + } + } + } + + parent::onSubmit(); + } + + + function onShowEnd() { + + global $app; + + $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'"; + $tpls = $app->db->queryAllRecords($sql); + $option = ''; + $tpl = array(); + foreach($tpls as $item){ + $option .= '<option value="' . $item['template_id'] . '|' . $item['template_name'] . '">' . $item['template_name'] . '</option>'; + $tpl[$item['template_id']] = $item['template_name']; + } + $app->tpl->setVar('tpl_add_select',$option); + + $sql = "SELECT template_additional FROM client WHERE client_id = " . $this->id; + $result = $app->db->queryOneRecord($sql); + $tplAdd = explode("/", $result['template_additional']); + $text = ''; + foreach($tplAdd as $item){ + if (trim($item) != ''){ + if ($text != '') $text .= '<br />'; + $text .= $tpl[$item]; + } + } + + $app->tpl->setVar('template_additional_list', $text); + + parent::onShowEnd(); + + } + + /* + This function is called automatically right after + the data was successful inserted in the database. + */ + function onAfterInsert() { + global $app; + // Create the group for the reseller + $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid'); + $groups = $groupid; + + $username = $app->db->quote($this->dataRecord["username"]); + $password = $app->db->quote($this->dataRecord["password"]); + $modules = ISPC_INTERFACE_MODULES_ENABLED.',client'; + $startmodule = 'client'; + $usertheme = $app->db->quote($this->dataRecord["usertheme"]); + $type = 'user'; + $active = 1; + $language = $app->db->quote($this->dataRecord["language"]); + + // Create the controlpaneluser for the reseller + $sql = "INSERT INTO sys_user (username,passwort,modules,startmodule,app_theme,typ,active,language,groups,default_group,client_id) + VALUES ('$username',md5('$password'),'$modules','$startmodule','$usertheme','$type','$active','$language',$groups,$groupid,".$this->id.")"; + $app->db->query($sql); + + //* set the number of clients to 1 + $app->db->query("UPDATE client SET limit_client = 1 WHERE client_id = ".$this->id); + + /* If there is a client-template, process it */ + applyClientTemplates($this->id); + + parent::onAfterInsert(); + } + + + /* + This function is called automatically right after + the data was successful updated in the database. + */ + function onAfterUpdate() { + global $app; + + // username changed + if(isset($this->dataRecord['username']) && $this->dataRecord['username'] != '' && $this->oldDataRecord['username'] != $this->dataRecord['username']) { + $username = $app->db->quote($this->dataRecord["username"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id"; + $app->db->query($sql); + + $tmp = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE client_id = $client_id"); + $app->db->datalogUpdate("sys_group", "name = '$username'", 'groupid', $tmp['groupid']); + unset($tmp); + } + + // password changed + if(isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') { + $password = $app->db->quote($this->dataRecord["password"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id"; + $app->db->query($sql); + } + + // language changed + if(isset($this->dataRecord['language']) && $this->dataRecord['language'] != '' && $this->oldDataRecord['language'] != $this->dataRecord['language']) { + $language = $app->db->quote($this->dataRecord["language"]); + $client_id = $this->id; + $sql = "UPDATE sys_user SET language = '$language' WHERE client_id = $client_id"; + $app->db->query($sql); + } + + // reseller status changed + if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) { + $modules = ISPC_INTERFACE_MODULES_ENABLED.',client'; + $modules = $app->db->quote($modules); + $client_id = $this->id; + $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id"; + $app->db->query($sql); + } + /* + * If there is a client-template, process it */ + applyClientTemplates($this->id); + + parent::onAfterUpdate(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/reseller_list.php b/interface/ispconfig/interface/client/reseller_list.php new file mode 100644 index 0000000..49a8c85 --- /dev/null +++ b/interface/ispconfig/interface/client/reseller_list.php @@ -0,0 +1,55 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/reseller.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('client'); + +if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.'); + +$app->uses('listform_actions'); + +$app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id'; +$app->listform_actions->SQLExtWhere = "(limit_client > 0 or limit_client = -1)"; +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/templates/client_del.htm b/interface/ispconfig/interface/client/templates/client_del.htm new file mode 100644 index 0000000..1167b30 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_del.htm @@ -0,0 +1,25 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client_del"> + + <div class="pnl_formsarea"> + + <div id="OKMsg"> + <tmpl_var name="delete_explanation">:<br /><br /> + <tmpl_loop name="records"> + <tmpl_var name="table">, + </tmpl_loop> + </div> + + <input type="checkbox" name="confirm" value="yes" /> <b><tmpl_var name="confirm_action_txt"></b> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_del.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/client_edit_address.htm b/interface/ispconfig/interface/client/templates/client_edit_address.htm new file mode 100644 index 0000000..6d26250 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_edit_address.htm @@ -0,0 +1,101 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Address</legend> + <div class="ctrlHolder"> + <label for="company_name">{tmpl_var name='company_name_txt'}</label> + <input name="company_name" id="company_name" value="{tmpl_var name='company_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="contact_name">{tmpl_var name='contact_name_txt'}</label> + <input name="contact_name" id="contact_name" value="{tmpl_var name='contact_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <input name="username" id="username" value="{tmpl_var name='username'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="password">{tmpl_var name='password_txt'}</label> + <input name="password" id="password" value="{tmpl_var name='password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="language">{tmpl_var name='language_txt'}</label> + <select name="language" id="language" class="selectInput withicons"> + {tmpl_var name='language'} + </select> + </div> + <div class="ctrlHolder"> + <label for="usertheme">{tmpl_var name='usertheme_txt'}</label> + <select name="usertheme" id="usertheme" class="selectInput"> + {tmpl_var name='usertheme'} + </select> + </div> + <div class="ctrlHolder"> + <label for="street">{tmpl_var name='street_txt'}</label> + <input name="street" id="street" value="{tmpl_var name='street'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="zip">{tmpl_var name='zip_txt'}</label> + <input name="zip" id="zip" value="{tmpl_var name='zip'}" size="10" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="city">{tmpl_var name='city_txt'}</label> + <input name="city" id="city" value="{tmpl_var name='city'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="state">{tmpl_var name='state_txt'}</label> + <input name="state" id="state" value="{tmpl_var name='state'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="country">{tmpl_var name='country_txt'}</label> + <select name="country" id="country" class="selectInput withicons"> + {tmpl_var name='country'} + </select> + </div> + <div class="ctrlHolder"> + <label for="telephone">{tmpl_var name='telephone_txt'}</label> + <input name="telephone" id="telephone" value="{tmpl_var name='telephone'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="mobile">{tmpl_var name='mobile_txt'}</label> + <input name="mobile" id="mobile" value="{tmpl_var name='mobile'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fax">{tmpl_var name='fax_txt'}</label> + <input name="fax" id="fax" value="{tmpl_var name='fax'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="internet">{tmpl_var name='internet_txt'}</label> + <input name="internet" id="internet" value="{tmpl_var name='internet'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="icq">{tmpl_var name='icq_txt'}</label> + <input name="icq" id="icq" value="{tmpl_var name='icq'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="notes">{tmpl_var name='notes_txt'}</label> + <textarea name="notes" id="notes" rows='10' cols='30'>{tmpl_var name='notes'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/client_edit_limits.htm b/interface/ispconfig/interface/client/templates/client_edit_limits.htm new file mode 100644 index 0000000..200629e --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_edit_limits.htm @@ -0,0 +1,190 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client"> + +<tmpl_if name="is_admin"> + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="positive iconstxt icoAdd" type="button" value="Add additional template" onClick="addAdditionalTemplate();"><span>Add additional template</span></button> + <button class="negative iconstxt icoDelete" type="button" value="Delete additional template" onClick="delAdditionalTemplate();"><span>Delete additional template</span></button> + </div> + </fieldset> + </div> +</tmpl_if> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Limits</legend> +<tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <label for="template_master">{tmpl_var name='template_master_txt'}</label> + <select name="template_master" id="template_master" class="selectInput"> + {tmpl_var name='template_master'} + </select> + </div> + <div class="ctrlHolder"> + <label for="template_additional">{tmpl_var name='template_additional_txt'}</label> + <select name="tpl_add_select" id="tpl_add_select" class="selectInput"> + {tmpl_var name='tpl_add_select'} + </select> + <div id="template_additional_list"><br /><br />{tmpl_var name='template_additional_list'}</div> + <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}"> + </div> + <div class="ctrlHolder"> + + </div> +</tmpl_if> + <div class="ctrlHolder"> + <label for="default_mailserver">{tmpl_var name='default_mailserver_txt'}</label> + <select name="default_mailserver" id="default_mailserver" class="selectInput"> + {tmpl_var name='default_mailserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_maildomain">{tmpl_var name='limit_maildomain_txt'}</label> + <input name="limit_maildomain" id="limit_maildomain" value="{tmpl_var name='limit_maildomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailbox">{tmpl_var name='limit_mailbox_txt'}</label> + <input name="limit_mailbox" id="limit_mailbox" value="{tmpl_var name='limit_mailbox'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailalias">{tmpl_var name='limit_mailalias_txt'}</label> + <input name="limit_mailalias" id="limit_mailalias" value="{tmpl_var name='limit_mailalias'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailaliasdomain">{tmpl_var name='limit_mailaliasdomain_txt'}</label> + <input name="limit_mailaliasdomain" id="limit_mailaliasdomain" value="{tmpl_var name='limit_mailaliasdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailforward">{tmpl_var name='limit_mailforward_txt'}</label> + <input name="limit_mailforward" id="limit_mailforward" value="{tmpl_var name='limit_mailforward'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailcatchall">{tmpl_var name='limit_mailcatchall_txt'}</label> + <input name="limit_mailcatchall" id="limit_mailcatchall" value="{tmpl_var name='limit_mailcatchall'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailrouting">{tmpl_var name='limit_mailrouting_txt'}</label> + <input name="limit_mailrouting" id="limit_mailrouting" value="{tmpl_var name='limit_mailrouting'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailfilter">{tmpl_var name='limit_mailfilter_txt'}</label> + <input name="limit_mailfilter" id="limit_mailfilter" value="{tmpl_var name='limit_mailfilter'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_fetchmail">{tmpl_var name='limit_fetchmail_txt'}</label> + <input name="limit_fetchmail" id="limit_fetchmail" value="{tmpl_var name='limit_fetchmail'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailquota">{tmpl_var name='limit_mailquota_txt'}</label> + <input name="limit_mailquota" id="limit_mailquota" value="{tmpl_var name='limit_mailquota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_wblist">{tmpl_var name='limit_spamfilter_wblist_txt'}</label> + <input name="limit_spamfilter_wblist" id="limit_spamfilter_wblist" value="{tmpl_var name='limit_spamfilter_wblist'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_user">{tmpl_var name='limit_spamfilter_user_txt'}</label> + <input name="limit_spamfilter_user" id="limit_spamfilter_user" value="{tmpl_var name='limit_spamfilter_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_policy">{tmpl_var name='limit_spamfilter_policy_txt'}</label> + <input name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="default_webserver">{tmpl_var name='default_webserver_txt'}</label> + <select name="default_webserver" id="default_webserver" class="selectInput"> + {tmpl_var name='default_webserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_web_domain">{tmpl_var name='limit_web_domain_txt'}</label> + <input name="limit_web_domain" id="limit_web_domain" value="{tmpl_var name='limit_web_domain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_quota">{tmpl_var name='limit_web_quota_txt'}</label> + <input name="limit_web_quota" id="limit_web_quota" value="{tmpl_var name='limit_web_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='web_php_options_txt'}</p> + <div class="multiField"> + {tmpl_var name='web_php_options'} + </div> + </div> + <div class="ctrlHolder"> + <label for="limit_web_aliasdomain">{tmpl_var name='limit_web_aliasdomain_txt'}</label> + <input name="limit_web_aliasdomain" id="limit_web_aliasdomain" value="{tmpl_var name='limit_web_aliasdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_subdomain">{tmpl_var name='limit_web_subdomain_txt'}</label> + <input name="limit_web_subdomain" id="limit_web_subdomain" value="{tmpl_var name='limit_web_subdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_ftp_user">{tmpl_var name='limit_ftp_user_txt'}</label> + <input name="limit_ftp_user" id="limit_ftp_user" value="{tmpl_var name='limit_ftp_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_shell_user">{tmpl_var name='limit_shell_user_txt'}</label> + <input name="limit_shell_user" id="limit_shell_user" value="{tmpl_var name='limit_shell_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='ssh_chroot_txt'}</p> + <div class="multiField"> + {tmpl_var name='ssh_chroot'} + </div> + </div> + <div class="ctrlHolder"> + <label for="default_dnsserver">{tmpl_var name='default_dnsserver_txt'}</label> + <select name="default_dnsserver" id="default_dnsserver" class="selectInput"> + {tmpl_var name='default_dnsserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_zone">{tmpl_var name='limit_dns_zone_txt'}</label> + <input name="limit_dns_zone" id="limit_dns_zone" value="{tmpl_var name='limit_dns_zone'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_record">{tmpl_var name='limit_dns_record_txt'}</label> + <input name="limit_dns_record" id="limit_dns_record" value="{tmpl_var name='limit_dns_record'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="default_dbserver">{tmpl_var name='default_dbserver_txt'}</label> + <select name="default_dbserver" id="default_dbserver" class="selectInput"> + {tmpl_var name='default_dbserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_database">{tmpl_var name='limit_database_txt'}</label> + <input name="limit_database" id="limit_database" value="{tmpl_var name='limit_database'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron">{tmpl_var name='limit_cron_txt'}</label> + <input name="limit_cron" id="limit_cron" value="{tmpl_var name='limit_cron'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_type">{tmpl_var name='limit_cron_type_txt'}</label> + <select name="limit_cron_type" id="limit_cron_type" class="selectInput formLengthHalf"> + {tmpl_var name='limit_cron_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_frequency">{tmpl_var name='limit_cron_frequency_txt'}</label> + <input name="limit_cron_frequency" id="limit_cron_frequency" value="{tmpl_var name='limit_cron_frequency'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_traffic_quota">{tmpl_var name='limit_traffic_quota_txt'}</label> + <input name="limit_traffic_quota" id="limit_traffic_quota" value="{tmpl_var name='limit_traffic_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm b/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm new file mode 100644 index 0000000..390f1f5 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm @@ -0,0 +1,124 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client_template"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Limits</legend> + <div class="ctrlHolder"> + <label for="limit_maildomain">{tmpl_var name='limit_maildomain_txt'}</label> + <input name="limit_maildomain" id="limit_maildomain" value="{tmpl_var name='limit_maildomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailbox">{tmpl_var name='limit_mailbox_txt'}</label> + <input name="limit_mailbox" id="limit_mailbox" value="{tmpl_var name='limit_mailbox'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailalias">{tmpl_var name='limit_mailalias_txt'}</label> + <input name="limit_mailalias" id="limit_mailalias" value="{tmpl_var name='limit_mailalias'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailaliasdomain">{tmpl_var name='limit_mailaliasdomain_txt'}</label> + <input name="limit_mailaliasdomain" id="limit_mailaliasdomain" value="{tmpl_var name='limit_mailaliasdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailforward">{tmpl_var name='limit_mailforward_txt'}</label> + <input name="limit_mailforward" id="limit_mailforward" value="{tmpl_var name='limit_mailforward'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailcatchall">{tmpl_var name='limit_mailcatchall_txt'}</label> + <input name="limit_mailcatchall" id="limit_mailcatchall" value="{tmpl_var name='limit_mailcatchall'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailrouting">{tmpl_var name='limit_mailrouting_txt'}</label> + <input name="limit_mailrouting" id="limit_mailrouting" value="{tmpl_var name='limit_mailrouting'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailfilter">{tmpl_var name='limit_mailfilter_txt'}</label> + <input name="limit_mailfilter" id="limit_mailfilter" value="{tmpl_var name='limit_mailfilter'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_fetchmail">{tmpl_var name='limit_fetchmail_txt'}</label> + <input name="limit_fetchmail" id="limit_fetchmail" value="{tmpl_var name='limit_fetchmail'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailquota">{tmpl_var name='limit_mailquota_txt'}</label> + <input name="limit_mailquota" id="limit_mailquota" value="{tmpl_var name='limit_mailquota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_wblist">{tmpl_var name='limit_spamfilter_wblist_txt'}</label> + <input name="limit_spamfilter_wblist" id="limit_spamfilter_wblist" value="{tmpl_var name='limit_spamfilter_wblist'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_user">{tmpl_var name='limit_spamfilter_user_txt'}</label> + <input name="limit_spamfilter_user" id="limit_spamfilter_user" value="{tmpl_var name='limit_spamfilter_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_policy">{tmpl_var name='limit_spamfilter_policy_txt'}</label> + <input name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_domain">{tmpl_var name='limit_web_domain_txt'}</label> + <input name="limit_web_domain" id="limit_web_domain" value="{tmpl_var name='limit_web_domain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_quota">{tmpl_var name='limit_web_quota_txt'}</label> + <input name="limit_web_quota" id="limit_web_quota" value="{tmpl_var name='limit_web_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <label for="limit_web_aliasdomain">{tmpl_var name='limit_web_aliasdomain_txt'}</label> + <input name="limit_web_aliasdomain" id="limit_web_aliasdomain" value="{tmpl_var name='limit_web_aliasdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_subdomain">{tmpl_var name='limit_web_subdomain_txt'}</label> + <input name="limit_web_subdomain" id="limit_web_subdomain" value="{tmpl_var name='limit_web_subdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_ftp_user">{tmpl_var name='limit_ftp_user_txt'}</label> + <input name="limit_ftp_user" id="limit_ftp_user" value="{tmpl_var name='limit_ftp_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_shell_user">{tmpl_var name='limit_shell_user_txt'}</label> + <input name="limit_shell_user" id="limit_shell_user" value="{tmpl_var name='limit_shell_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_zone">{tmpl_var name='limit_dns_zone_txt'}</label> + <input name="limit_dns_zone" id="limit_dns_zone" value="{tmpl_var name='limit_dns_zone'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_record">{tmpl_var name='limit_dns_record_txt'}</label> + <input name="limit_dns_record" id="limit_dns_record" value="{tmpl_var name='limit_dns_record'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_database">{tmpl_var name='limit_database_txt'}</label> + <input name="limit_database" id="limit_database" value="{tmpl_var name='limit_database'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron">{tmpl_var name='limit_cron_txt'}</label> + <input name="limit_cron" id="limit_cron" value="{tmpl_var name='limit_cron'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_type">{tmpl_var name='limit_cron_type_txt'}</label> + <select name="limit_cron_type" id="limit_cron_type" class="selectInput formLengthHalf"> + {tmpl_var name='limit_cron_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_frequency">{tmpl_var name='limit_cron_frequency_txt'}</label> + <input name="limit_cron_frequency" id="limit_cron_frequency" value="{tmpl_var name='limit_cron_frequency'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_traffic_quota">{tmpl_var name='limit_traffic_quota_txt'}</label> + <input name="limit_traffic_quota" id="limit_traffic_quota" value="{tmpl_var name='limit_traffic_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_template_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_template_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/client_template_edit_template.htm b/interface/ispconfig/interface/client/templates/client_template_edit_template.htm new file mode 100644 index 0000000..6c9d905 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_template_edit_template.htm @@ -0,0 +1,28 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client_template"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Template</legend> + <div class="ctrlHolder"> + <label for="template_type">{tmpl_var name='template_type_txt'}</label> + <select name="template_type" id="template_type" class="selectInput"> + {tmpl_var name='template_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="template_name">{tmpl_var name='template_name_txt'}</label> + <input name="template_name" id="template_name" value="{tmpl_var name='template_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/client_template_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/client_template_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/client_template_list.htm b/interface/ispconfig/interface/client/templates/client_template_list.htm new file mode 100644 index 0000000..5892a96 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/client_template_list.htm @@ -0,0 +1,53 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_limit_template"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('client/client_template_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_template_type" scope="col"><tmpl_var name="template_type_txt"></th> + <th class="tbl_col_template_name" scope="col"><tmpl_var name="template_name_txt"></th> + <th class="tbl_col_last" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_template_type"><select name="search_template_type" onChange="submitForm('pageForm','client/client_template_list.php');">{tmpl_var name='search_template_type'}</select></td> + <td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/client_template_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_template_type"><a href="#" onClick="loadContent('client/client_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_type"}</a></td> + <td class="tbl_col_template_name"><a href="#" onClick="loadContent('client/client_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_name"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('client/client_template_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> \ No newline at end of file diff --git a/interface/ispconfig/interface/client/templates/clients_list.htm b/interface/ispconfig/interface/client/templates/clients_list.htm new file mode 100644 index 0000000..f844771 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/clients_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_clients"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('client/client_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th> + <th class="tbl_col_company_name" scope="col"><tmpl_var name="company_name_txt"></th> + <th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th> + <th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th> + <th class="tbl_col_country" scope="col"><tmpl_var name="country_txt"></th> + <th class="tbl_col_country" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td> + <td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" /></td> + <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" /></td> + <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td> + <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/client_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_client_id"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td> + <td class="tbl_col_company_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="company_name"}</a></td> + <td class="tbl_col_contact_name"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="contact_name"}</a></td> + <td class="tbl_col_city"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="city"}</a></td> + <td class="tbl_col_country"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="country"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16" style="width:60px;"> + <tmpl_if name="is_admin"><a class="icons16 icoLoginAs" href="#" onclick="loadContent('admin/login_as.php?cid={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a> </tmpl_if> + <a class="icons16 icoDelete" href="javascript: del_record('client/client_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/reseller_edit_address.htm b/interface/ispconfig/interface/client/templates/reseller_edit_address.htm new file mode 100644 index 0000000..798fdf9 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/reseller_edit_address.htm @@ -0,0 +1,101 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Address</legend> + <div class="ctrlHolder"> + <label for="company_name">{tmpl_var name='company_name_txt'}</label> + <input name="company_name" id="company_name" value="{tmpl_var name='company_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="contact_name">{tmpl_var name='contact_name_txt'}</label> + <input name="contact_name" id="contact_name" value="{tmpl_var name='contact_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <input name="username" id="username" value="{tmpl_var name='username'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="password">{tmpl_var name='password_txt'}</label> + <input name="password" id="password" value="{tmpl_var name='password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="language">{tmpl_var name='language_txt'}</label> + <select name="language" id="language" class="selectInput withicons"> + {tmpl_var name='language'} + </select> + </div> + <div class="ctrlHolder"> + <label for="usertheme">{tmpl_var name='usertheme_txt'}</label> + <select name="usertheme" id="usertheme" class="selectInput"> + {tmpl_var name='usertheme'} + </select> + </div> + <div class="ctrlHolder"> + <label for="street">{tmpl_var name='street_txt'}</label> + <input name="street" id="street" value="{tmpl_var name='street'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="zip">{tmpl_var name='zip_txt'}</label> + <input name="zip" id="zip" value="{tmpl_var name='zip'}" size="10" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="city">{tmpl_var name='city_txt'}</label> + <input name="city" id="city" value="{tmpl_var name='city'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="state">{tmpl_var name='state_txt'}</label> + <input name="state" id="state" value="{tmpl_var name='state'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="country">{tmpl_var name='country_txt'}</label> + <select name="country" id="country" class="selectInput withicons"> + {tmpl_var name='country'} + </select> + </div> + <div class="ctrlHolder"> + <label for="telephone">{tmpl_var name='telephone_txt'}</label> + <input name="telephone" id="telephone" value="{tmpl_var name='telephone'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="mobile">{tmpl_var name='mobile_txt'}</label> + <input name="mobile" id="mobile" value="{tmpl_var name='mobile'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fax">{tmpl_var name='fax_txt'}</label> + <input name="fax" id="fax" value="{tmpl_var name='fax'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="internet">{tmpl_var name='internet_txt'}</label> + <input name="internet" id="internet" value="{tmpl_var name='internet'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="icq">{tmpl_var name='icq_txt'}</label> + <input name="icq" id="icq" value="{tmpl_var name='icq'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="notes">{tmpl_var name='notes_txt'}</label> + <textarea name="notes" id="notes" rows='10' cols='30'>{tmpl_var name='notes'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/reseller_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/reseller_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm b/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm new file mode 100644 index 0000000..8acaf4b --- /dev/null +++ b/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm @@ -0,0 +1,179 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_client"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Limits</legend> +<tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <label for="template_master">{tmpl_var name='template_master_txt'}</label> + <select name="template_master" id="template_master" class="selectInput"> + {tmpl_var name='template_master'} + </select> + </div> + <div class="ctrlHolder"> + <label for="template_additional">{tmpl_var name='template_additional_txt'}</label> + <select name="tpl_add_select" id="tpl_add_select" class="selectInput"> + {tmpl_var name='tpl_add_select'} + </select> + <span id="template_additional_list">{tmpl_var name='template_additional_list'}</span> + <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}"> + </div> + <div class="ctrlHolder"> + + </div> +</tmpl_if> + <div class="ctrlHolder"> + <label for="default_mailserver">{tmpl_var name='default_mailserver_txt'}</label> + <select name="default_mailserver" id="default_mailserver" class="selectInput"> + {tmpl_var name='default_mailserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_maildomain">{tmpl_var name='limit_maildomain_txt'}</label> + <input name="limit_maildomain" id="limit_maildomain" value="{tmpl_var name='limit_maildomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailbox">{tmpl_var name='limit_mailbox_txt'}</label> + <input name="limit_mailbox" id="limit_mailbox" value="{tmpl_var name='limit_mailbox'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailalias">{tmpl_var name='limit_mailalias_txt'}</label> + <input name="limit_mailalias" id="limit_mailalias" value="{tmpl_var name='limit_mailalias'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailforward">{tmpl_var name='limit_mailforward_txt'}</label> + <input name="limit_mailforward" id="limit_mailforward" value="{tmpl_var name='limit_mailforward'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailcatchall">{tmpl_var name='limit_mailcatchall_txt'}</label> + <input name="limit_mailcatchall" id="limit_mailcatchall" value="{tmpl_var name='limit_mailcatchall'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailrouting">{tmpl_var name='limit_mailrouting_txt'}</label> + <input name="limit_mailrouting" id="limit_mailrouting" value="{tmpl_var name='limit_mailrouting'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailfilter">{tmpl_var name='limit_mailfilter_txt'}</label> + <input name="limit_mailfilter" id="limit_mailfilter" value="{tmpl_var name='limit_mailfilter'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_fetchmail">{tmpl_var name='limit_fetchmail_txt'}</label> + <input name="limit_fetchmail" id="limit_fetchmail" value="{tmpl_var name='limit_fetchmail'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_mailquota">{tmpl_var name='limit_mailquota_txt'}</label> + <input name="limit_mailquota" id="limit_mailquota" value="{tmpl_var name='limit_mailquota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_wblist">{tmpl_var name='limit_spamfilter_wblist_txt'}</label> + <input name="limit_spamfilter_wblist" id="limit_spamfilter_wblist" value="{tmpl_var name='limit_spamfilter_wblist'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_user">{tmpl_var name='limit_spamfilter_user_txt'}</label> + <input name="limit_spamfilter_user" id="limit_spamfilter_user" value="{tmpl_var name='limit_spamfilter_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_spamfilter_policy">{tmpl_var name='limit_spamfilter_policy_txt'}</label> + <input name="limit_spamfilter_policy" id="limit_spamfilter_policy" value="{tmpl_var name='limit_spamfilter_policy'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="default_webserver">{tmpl_var name='default_webserver_txt'}</label> + <select name="default_webserver" id="default_webserver" class="selectInput"> + {tmpl_var name='default_webserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_web_domain">{tmpl_var name='limit_web_domain_txt'}</label> + <input name="limit_web_domain" id="limit_web_domain" value="{tmpl_var name='limit_web_domain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_quota">{tmpl_var name='limit_web_quota_txt'}</label> + <input name="limit_web_quota" id="limit_web_quota" value="{tmpl_var name='limit_web_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='web_php_options_txt'}</p> + <div class="multiField"> + {tmpl_var name='web_php_options'} + </div> + </div> + <div class="ctrlHolder"> + <label for="limit_web_aliasdomain">{tmpl_var name='limit_web_aliasdomain_txt'}</label> + <input name="limit_web_aliasdomain" id="limit_web_aliasdomain" value="{tmpl_var name='limit_web_aliasdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_web_subdomain">{tmpl_var name='limit_web_subdomain_txt'}</label> + <input name="limit_web_subdomain" id="limit_web_subdomain" value="{tmpl_var name='limit_web_subdomain'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_ftp_user">{tmpl_var name='limit_ftp_user_txt'}</label> + <input name="limit_ftp_user" id="limit_ftp_user" value="{tmpl_var name='limit_ftp_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_shell_user">{tmpl_var name='limit_shell_user_txt'}</label> + <input name="limit_shell_user" id="limit_shell_user" value="{tmpl_var name='limit_shell_user'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='ssh_chroot_txt'}</p> + <div class="multiField"> + {tmpl_var name='ssh_chroot'} + </div> + </div> + <div class="ctrlHolder"> + <label for="default_dnsserver">{tmpl_var name='default_dnsserver_txt'}</label> + <select name="default_dnsserver" id="default_dnsserver" class="selectInput"> + {tmpl_var name='default_dnsserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_zone">{tmpl_var name='limit_dns_zone_txt'}</label> + <input name="limit_dns_zone" id="limit_dns_zone" value="{tmpl_var name='limit_dns_zone'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_dns_record">{tmpl_var name='limit_dns_record_txt'}</label> + <input name="limit_dns_record" id="limit_dns_record" value="{tmpl_var name='limit_dns_record'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_client">{tmpl_var name='limit_client_txt'}</label> + <input name="limit_client" id="limit_client" value="{tmpl_var name='limit_client'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="default_dbserver">{tmpl_var name='default_dbserver_txt'}</label> + <select name="default_dbserver" id="default_dbserver" class="selectInput"> + {tmpl_var name='default_dbserver'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_database">{tmpl_var name='limit_database_txt'}</label> + <input name="limit_database" id="limit_database" value="{tmpl_var name='limit_database'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron">{tmpl_var name='limit_cron_txt'}</label> + <input name="limit_cron" id="limit_cron" value="{tmpl_var name='limit_cron'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_type">{tmpl_var name='limit_cron_type_txt'}</label> + <select name="limit_cron_type" id="limit_cron_type" class="selectInput formLengthHalf"> + {tmpl_var name='limit_cron_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="limit_cron_frequency">{tmpl_var name='limit_cron_frequency_txt'}</label> + <input name="limit_cron_frequency" id="limit_cron_frequency" value="{tmpl_var name='limit_cron_frequency'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="limit_traffic_quota">{tmpl_var name='limit_traffic_quota_txt'}</label> + <input name="limit_traffic_quota" id="limit_traffic_quota" value="{tmpl_var name='limit_traffic_quota'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> MB + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','client/reseller_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('client/reseller_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/templates/resellers_list.htm b/interface/ispconfig/interface/client/templates/resellers_list.htm new file mode 100644 index 0000000..fbe90a6 --- /dev/null +++ b/interface/ispconfig/interface/client/templates/resellers_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_clients"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('client/reseller_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_client_id" scope="col"><tmpl_var name="client_id_txt"></th> + <th class="tbl_col_company_name" scope="col"><tmpl_var name="company_name_txt"></th> + <th class="tbl_col_contact_name" scope="col"><tmpl_var name="contact_name_txt"></th> + <th class="tbl_col_city" scope="col"><tmpl_var name="city_txt"></th> + <th class="tbl_col_country" scope="col"><tmpl_var name="country_txt"></th> + <th class="tbl_col_country" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_client_id"><input type="text" name="search_client_id" value="{tmpl_var name='search_client_id'}" /></td> + <td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" /></td> + <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" /></td> + <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" /></td> + <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/reseller_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_client_id"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="client_id"}</a></td> + <td class="tbl_col_company_name"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="company_name"}</a></td> + <td class="tbl_col_contact_name"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="contact_name"}</a></td> + <td class="tbl_col_city"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="city"}</a></td> + <td class="tbl_col_country"><a href="#" onClick="loadContent('client/reseller_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="country"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16" style="width:60px;"> + <a class="icons16 icoLoginAs" href="#" onclick="loadContent('admin/login_as.php?cid={tmpl_var name='id'}');"><span>{tmpl_var name='login_as_txt'}</span></a> + <a class="icons16 icoDelete" href="javascript: del_record('client/reseller_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/client/tools.inc.php b/interface/ispconfig/interface/client/tools.inc.php new file mode 100644 index 0000000..c9bfdea --- /dev/null +++ b/interface/ispconfig/interface/client/tools.inc.php @@ -0,0 +1,88 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +function applyClientTemplates($clientId){ + global $app,$page; + /* + * Get the master-template for the client + */ + $sql = "SELECT template_master, template_additional FROM client WHERE client_id = " . intval($clientId); + $record = $app->db->queryOneRecord($sql); + $masterTemplateId = $record['template_master']; + $additionalTemplateStr = $record['template_additional']; + + /* + * if the master-Template is custom there is NO changing + */ + if ($masterTemplateId > 0){ + $sql = "SELECT * FROM client_template WHERE template_id = " . intval($masterTemplateId); + $limits = $app->db->queryOneRecord($sql); + } else { + $limits = $page->dataRecord; + } + + /* + * Process the additional tempaltes here (add them to the limits + * if != -1) + */ + $addTpl = explode('/', $additionalTemplateStr); + foreach ($addTpl as $item){ + if (trim($item) != ''){ + $sql = "SELECT * FROM client_template WHERE template_id = " . intval($item); + $addLimits = $app->db->queryOneRecord($sql); + /* maybe the template is deleted in the meantime */ + if (is_array($addLimits)){ + foreach($addLimits as $k => $v){ + if ($limits[$k] > -1){ + if ($v == -1) { + $limits[$k] = -1; + } + else { + $limits[$k] += $v; + } + } + } + } + } + } + + /* + * Write all back to the database + */ + $update = ''; + foreach($limits as $k => $v){ + if (strpos($k, 'limit') !== false && !is_array($v)){ + if ($update != '') $update .= ', '; + $update .= '`' . $k . "`='" . $v . "'"; + } + } + $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId); + $app->db->query($sql); +} +?> diff --git a/interface/ispconfig/interface/content.php b/interface/ispconfig/interface/content.php new file mode 100644 index 0000000..bcc4525 --- /dev/null +++ b/interface/ispconfig/interface/content.php @@ -0,0 +1,83 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../lib/config.inc.php'); +require_once('../lib/app.inc.php'); + +/* +$module = $_REQUEST["s_mod"]; +$page = $_REQUEST["s_pg"]; +*/ + +$module = 'login'; +$page = 'index'; + +if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('module name contains unallowed chars.'); +if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('page name contains unallowed chars.'); + +if(is_file(ISPC_WEB_PATH."/$module/$page.php")) { + + include_once(ISPC_WEB_PATH."/$module/$page.php"); + + $classname = $module.'_'.$page; + $page = new $classname(); + + $content = $page->render(); + if($page->status == 'OK') { + echo $content; + } elseif($page->status == 'REDIRECT') { + $target_parts = explode(':',$page->target); + $module = $target_parts[0]; + $page = $target_parts[1]; + if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('target module name contains unallowed chars.'); + if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('target page name contains unallowed chars.'); + + if(is_file(ISPC_WEB_PATH."/$module/$page.php")) { + include_once(ISPC_WEB_PATH."/$module/$page.php"); + + $classname = $module.'_'.$page; + $page = new $classname(); + + $content = $page->render(); + if($page->status == 'OK') { + echo $content; + } + } + + } + +} elseif (is_array($_SESSION["s"]['user']) or is_array($_SESSION["s"]["module"])) { + // If the user is logged in, we try to load the default page of the module + die('- error -'); +} else { + die('Page does not exist.'); +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/form_edit.php b/interface/ispconfig/interface/designer/form_edit.php new file mode 100644 index 0000000..ad89ae3 --- /dev/null +++ b/interface/ispconfig/interface/designer/form_edit.php @@ -0,0 +1,152 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/form_edit.htm'); + +// Importing variables +$module_name = $_REQUEST["module_name"]; +$form_name = $_REQUEST["form_name"]; + +// Checking imported variables +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$form_name)) die("form_name contains invalid chars."); + +$id = $form_name; + +if(count($_POST) > 1) { + // Bestimme aktion + if($id != '') { + $action = 'UPDATE'; + } else { + $action = 'INSERT'; + } + + + if($error == '') { + + $filename = "../".$module_name."/form/".$form_name.".tform.php"; + $form_new = $_POST["form"]; + + if(@is_file($filename)) { + include_once($filename); + $tabs = $form["tabs"]; + unset($form["tabs"]); + $form_new["tabs"] = $tabs; + } + + $file_content = "<?php\r\n".'$form = '.var_export($form_new,true)."\r\n?>"; + + die($file_content); + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + + if (!fwrite($handle, $file_content)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + // zu Liste springen + header("Location: form_list.php"); + exit; + + } else { + $app->tpl->setVar("error","<b>Fehler:</b><br>".$error); + $app->tpl->setVar($_POST); + } +} + +if($id != '') { +// Datensatz besteht bereits + // bestehenden Datensatz anzeigen + if($error == '') { + // es liegt ein Fehler vor + include_once("../".$module_name."/form/".$form_name.".tform.php"); + //$tabs = $form["tabs"]; + unset($form["tabs"]); + $record = $form; + $record["form_name"] = $form_name; + $record["module_name"] = $module_name; + $record["auth_preset_userid"] = $form["auth_preset"]["userid"]; + $record["auth_preset_groupid"] = $form["auth_preset"]["groupid"]; + $record["auth_preset_perm_user"] = $form["auth_preset"]["perm_user"]; + $record["auth_preset_perm_group"] = $form["auth_preset"]["perm_group"]; + $record["auth_preset_perm_other"] = $form["auth_preset"]["perm_other"]; + } else { + // ein Fehler + $record = $_POST; + //$navi = $_POST["nav"]; + unset($_POST["tabs"]); + } + $record["readonly"] = 'style="background-color: #EEEEEE;" readonly'; +} else { +// neuer datensatz + if($error == '') { + // es liegt kein Fehler vor + // Pewsets + $record["template"] = "module.tpl.htm"; + } else { + // ein Fehler + $record = $_POST; + unset($_POST["tabs"]); + + } + $record["readonly"] = ''; +} + +$record["id"] = $form_name; + +$app->tpl->setVar($record); + +include_once("lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng"); +$app->tpl->setVar($wb); + +// Defaultwerte setzen +$app->tpl_defaults(); + +// Template parsen +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/form_list.php b/interface/ispconfig/interface/designer/form_list.php new file mode 100644 index 0000000..c0d0a3d --- /dev/null +++ b/interface/ispconfig/interface/designer/form_list.php @@ -0,0 +1,89 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/form_list.htm'); + +function getinfo($file, $form_file, $bgcolor) { + $module_name = $file; + include(ISPC_WEB_PATH."/$file/form/$form_file"); + return array( 'name' => $form['name'], + 'title' => $form['title'], + 'description' => $form['description'], + 'module_name' => $module_name, + 'bgcolor' => $bgcolor + ); +} + +// lese Module aus +$bgcolor = '#FFFFFF'; +$modules_list = array(); +$handle = @opendir(ISPC_WEB_PATH); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH."/$file")) { + if(is_file(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') { + if(@is_dir(ISPC_WEB_PATH."/$file/form")) { + $handle2 = opendir(ISPC_WEB_PATH."/$file/form"); + while ($form_file = @readdir ($handle2)) { + if (substr($form_file,0,1) != ".") { + //echo ISPC_ROOT_PATH."/web/".$file."/form/$form_file<br>"; + //include_once(ISPC_ROOT_PATH."/web/".$file."/form/$form_file"); + // Farbwechsel + $bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; + $modules_list[] = getinfo($file, $form_file, $bgcolor); + + } + } + } + } + } + } +} + +$app->tpl->setLoop('records', $modules_list); + +//* load language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_form_list.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/form_show.php b/interface/ispconfig/interface/designer/form_show.php new file mode 100644 index 0000000..c90178b --- /dev/null +++ b/interface/ispconfig/interface/designer/form_show.php @@ -0,0 +1,119 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +$app->uses('tpl'); + +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/form_show.htm'); + + +// TODO: Check ID for malicius chars +$module_name = $_REQUEST["module_name"]; +$form_name = $_REQUEST["form_name"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$form_name)) die("form_name contains invalid chars."); + +include_once("../".$module_name."/form/".$form_name.".tform.php"); +$tabs = $form["tabs"]; +unset($form["tabs"]); +$record = $form; +$record["form_name"] = $form_name; +$record["module_name"] = $module_name; + +// loading language file +$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_form_show.lng"; +include($lng_file); +$app->tpl->setVar($wb); + +// baue Tabs navi +$content = ""; +$n1 = 0; +$n2 = 0; +if(is_array($tabs)) { +foreach($tabs as $tab_id => $tab) { + $content .= "<tr> + <td colspan='2' class='frmText11'> + <table width='100%'> + <tr> + <td class='tblHead'>$tab[title]</td> + <td class='tblHead' width='220' align='right'> + <input type=\"button\" name=\"bt1$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_tab_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" /> + <input type=\"button\" name=\"bt2$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menu('form_tab_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id');\" class=\"button\" /> + <input type=\"button\" name=\"bt3$n2\" value=\"$wb[new_txt]\" onClick=\"location.href='form_tab_item_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" /> + <input type=\"button\" name=\"bt4$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=up'\" class=\"button\" /> + <input type=\"button\" name=\"bt5$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=down'\" class=\"button\" /> + </td> + </tr>"; + //$content .= "<tr><td bgcolor='#EEEEEE' class='frmText11'>Bereich:</td><td class='frmText11' bgcolor='#EEEEEE'><input name=\"module[nav][$n1][title]\" type=\"text\" class=\"text\" value=\"$section[title]\" size=\"30\" maxlength=\"255\"><input name=\"module[nav][$n1][open]\" type=\"hidden\" value=\"$section[open]\"></td></tr>\r\n"; + foreach($tab["fields"] as $field_id => $field) { + //$content .= "<tr><td class='frmText11'>Titel:</td><td class='frmText11'><input name=\"module[nav][$n1][items][$n2][title]\" type=\"text\" class=\"text\" value=\"$item[title]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + //$content .= "<tr><td class='frmText11'>Ziel:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][target]\" type=\"text\" class=\"text\" value=\"$item[target]\" size=\"10\" maxlength=\"255\"></td></tr>\r\n"; + //$content .= "<tr><td class='frmText11'>Link:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][link]\" type=\"text\" class=\"text\" value=\"$item[link]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + $content .= "<tr> + <td class='frmText11'>$field_id</td> + <td class='frmText11' width='220' align='right'> + <input type=\"button\" name=\"bt6$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_field_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id'\" class=\"button\" /> + <input type=\"button\" name=\"bt7$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menuitem('form_field_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id');\" class=\"button\" /> + <input type=\"button\" name=\"bt8$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=up'\" class=\"button\" /> + <input type=\"button\" name=\"bt9$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=down'\" class=\"button\" /> + </td> + </tr>"; + $n2++; + } + $content .= "<tr><td colspan='2' class='tblFooter'> </td></tr> + </table> + </td> + </tr>"; + $n1++; +} +} + +$record["nav"] = $content; + + +$app->tpl->setVar($record); + + +$app->tpl->setLoop('records',$modules_list); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/index.php b/interface/ispconfig/interface/designer/index.php new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/interface/ispconfig/interface/designer/index.php diff --git a/interface/ispconfig/interface/designer/lib/admin.conf.php b/interface/ispconfig/interface/designer/lib/admin.conf.php new file mode 100644 index 0000000..8dce5a5 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/admin.conf.php @@ -0,0 +1,4 @@ +<?php + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/bg.lng b/interface/ispconfig/interface/designer/lib/lang/bg.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng new file mode 100644 index 0000000..2138e04 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Име'; +$wb['title_txt'] = 'Заглавие'; +$wb['template_txt'] = 'Темплейт'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Начална страница'; +$wb['tab_width_txt'] = 'Широчина на таб-а'; +$wb['save_txt'] = 'Запис'; +$wb['cancel_txt'] = 'Отказ'; +$wb['header_txt'] = 'Характеристики на формата'; +$wb['description_txt'] = 'Описание'; +$wb['action_txt'] = 'Action (script)'; +$wb['db_table_txt'] = 'DB Table'; +$wb['db_table_idx_txt'] = 'DB Table Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Default Tab'; +$wb['list_default_txt'] = 'Default Liste'; +$wb['auth_txt'] = 'Permissions'; +$wb['auth_preset_userid_txt'] = 'UserID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. User'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Other'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng new file mode 100644 index 0000000..4a053a3 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Форми'; +$wb['form_txt'] = 'Форма'; +$wb['module_txt'] = 'Модул'; +$wb['title_txt'] = 'Име'; +$wb['description_txt'] = 'Описание'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng new file mode 100644 index 0000000..78cf0ed --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Редактор на форми'; +$wb['title_txt'] = 'Заглавие'; +$wb['name_txt'] = 'Име'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Характеристики'; +$wb['new_tab_txt'] = 'Нов таб'; +$wb['edit_txt'] = 'Редактиране'; +$wb['new_txt'] = 'Нов'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Модул'; +$wb['form_txt'] = 'Форма'; +$wb['description_txt'] = 'Описание'; +$wb['module_del_txt'] = 'Наистина ли желаете да изтриете модула и всички намиращи се в него файлове и поддиректории?'; +$wb['menu_del_txt'] = 'Наистина ли желаете да изтриете това меню и неговите елементи?'; +$wb['item_del_txt'] = 'Наистина ли желаете да изтриете този елемент?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng new file mode 100644 index 0000000..50f0309 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng @@ -0,0 +1,12 @@ +<?php +$wb['name_txt'] = 'Име на модула'; +$wb['title_txt'] = 'Заглавие на модула'; +$wb['template_txt'] = 'Template file'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Страница по подразбиране'; +$wb['tab_width_txt'] = 'Широчина на таб-а'; +$wb['save_txt'] = 'Запис'; +$wb['cancel_txt'] = 'Отказ'; +$wb['header_txt'] = 'Характеристики'; +$wb['description_txt'] = '<b>Description</b> <br><br> <b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> <b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> <b>Template file:</b> Template file of the module. Currently'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng new file mode 100644 index 0000000..31209a0 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Модули'; +$wb['module_txt'] = 'Модул'; +$wb['title_txt'] = 'Име'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng new file mode 100644 index 0000000..7698aac --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Запис'; +$wb['cancel_txt'] = 'Отказ'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng new file mode 100644 index 0000000..9a928f5 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Линк'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Запис'; +$wb['cancel_txt'] = 'Отказ'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng new file mode 100644 index 0000000..3cbe963 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Редактор на менютата'; +$wb['title_txt'] = 'Име'; +$wb['name_txt'] = 'Модул'; +$wb['delete_txt'] = 'Изтриване'; +$wb['properties_txt'] = 'Характеристики'; +$wb['new_menu_txt'] = 'Ново меню'; +$wb['edit_txt'] = 'Редакция'; +$wb['new_txt'] = 'Ново'; +$wb['up_txt'] = 'Нагоре'; +$wb['down_txt'] = 'Надолу'; +$wb['module_txt'] = 'Модул'; +$wb['module_del_txt'] = 'Наистина ли желаете да изтриете модула и всички намиращи се в него файлове и поддиректории?'; +$wb['menu_del_txt'] = 'Наистина ли желаете да изтриете това меню и неговите елементи?'; +$wb['item_del_txt'] = 'Наистина ли желаете да изтриете този елемент?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br.lng b/interface/ispconfig/interface/designer/lib/lang/br.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng new file mode 100644 index 0000000..7d7534a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Nome do Formulário'; +$wb['title_txt'] = 'Título do Formulário'; +$wb['template_txt'] = 'Gabarito'; +$wb['navframe_txt'] = 'Frame de Navegação'; +$wb['startpage_txt'] = 'Página Inicial'; +$wb['tab_width_txt'] = 'Tamanho da aba'; +$wb['save_txt'] = 'Salvar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propriedades do Formulário'; +$wb['description_txt'] = 'Descrição'; +$wb['action_txt'] = 'Ação (script)'; +$wb['db_table_txt'] = 'Tabela do DB'; +$wb['db_table_idx_txt'] = 'Indíce da tabela do DB'; +$wb['db_history_txt'] = 'Desfazer Log'; +$wb['tab_default_txt'] = 'Aba Padrão'; +$wb['list_default_txt'] = 'Exibir Padrão'; +$wb['auth_txt'] = 'Permissões'; +$wb['auth_preset_userid_txt'] = 'Usuário(ID)'; +$wb['auth_preset_groupid_txt'] = 'Grupo(ID)'; +$wb['auth_preset_perm_user_txt'] = 'Perm. Usuário'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Grupo'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Outros'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng new file mode 100644 index 0000000..b16ce55 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Formulário de Backend'; +$wb['form_txt'] = 'Formulário'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +$wb['description_txt'] = 'Descrição'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng new file mode 100644 index 0000000..5b68a31 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Editor de Formulários'; +$wb['title_txt'] = 'Título do Formulário'; +$wb['name_txt'] = 'Nome do Formulário'; +$wb['delete_txt'] = 'Remover'; +$wb['properties_txt'] = 'Propriedades'; +$wb['new_tab_txt'] = 'Nova Aba'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Novo'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Módulo'; +$wb['form_txt'] = 'Formulário'; +$wb['description_txt'] = 'Descrição'; +$wb['module_del_txt'] = 'Remover o módulo e todos seus sub-diretórios?'; +$wb['menu_del_txt'] = 'Remover o menu e todos os seus itens?'; +$wb['item_del_txt'] = 'Remover o item de menu?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng new file mode 100644 index 0000000..34471ac --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Nome do Módulo'; +$wb['title_txt'] = 'Título do Módulo'; +$wb['template_txt'] = 'Arquivo de Gabarito'; +$wb['navframe_txt'] = 'Frame de Navegação'; +$wb['startpage_txt'] = 'Página Padrão'; +$wb['tab_width_txt'] = 'Tamanho da Aba'; +$wb['save_txt'] = 'Salvar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propriedades do Módulo'; +$wb['description_txt'] = ' +<b>Descrição</b> +<br><br> +<b>Nome do Módulo:</b> Nome do diretório do módulo. Somente números, letras e underscores são permitidos.<br> +<b>Título do Módulo:</b> Será exibido em caixa alta no menu de navegação.<br> +<b>Arquivo de Gabarito:</b> Arquivo de Gabarito do Módulo Disponível: modulo.tpl.htm e modulo_tree.tpl.htm. O padrão é modulo.tpl.htm.<br> +<b>Frame de Navegação:</b> Se modulo_tree.tpl.htm foi selecionado como arquivo de gabarito, insira aqui o caminho do script para o frame a esquerda.<br> +<b>Página Padrão:</b> Esta página será exibida quando o módulo for aberto.<br> +<b>Tamanho da Aba:</b> Tamanho das abas na navegação principal. Este campo fica em branco por padrão. Você pode informar valores absolutos em pixels (ex.: 20) ou valores relativos (ex.: 20%).<br> +<b>Dica:</b> Todos os caminhos são relativos ao diretório web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng new file mode 100644 index 0000000..822263a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Módulo do Backend'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng new file mode 100644 index 0000000..c5e3266 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['header_txt'] = 'Propriedades de Navegação'; +$wb['save_txt'] = 'Salvar'; +$wb['cancel_txt'] = 'Cancelar'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng new file mode 100644 index 0000000..5eafa77 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Propriedades de Navegação'; +$wb['save_txt'] = 'Salvar'; +$wb['cancel_txt'] = 'Cancelar'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng new file mode 100644 index 0000000..1fb1800 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Editor de Menu'; +$wb['title_txt'] = 'Título'; +$wb['name_txt'] = 'Módulo'; +$wb['delete_txt'] = 'Remover'; +$wb['properties_txt'] = 'Propriedades'; +$wb['new_menu_txt'] = 'Novo Menu'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Novo'; +$wb['up_txt'] = 'Subir'; +$wb['down_txt'] = 'Descer'; +$wb['module_txt'] = 'Módulo'; +$wb['module_del_txt'] = 'Deseja eliminar este módulo e todos os arquivos contidos no diretório?'; +$wb['menu_del_txt'] = 'Deseja apagar este menu e todos seus elementos?'; +$wb['item_del_txt'] = 'Deseja apagar este elemento do menu?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de.lng b/interface/ispconfig/interface/designer/lib/lang/de.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng new file mode 100644 index 0000000..74bf458 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formularname'; +$wb['title_txt'] = 'Formulartitel'; +$wb['template_txt'] = 'Vorlage'; +$wb['navframe_txt'] = 'Navigationsframe'; +$wb['startpage_txt'] = 'Startseite'; +$wb['tab_width_txt'] = 'Tab Breite'; +$wb['save_txt'] = 'Speichern'; +$wb['cancel_txt'] = 'Abbrechen'; +$wb['header_txt'] = 'Formular Eigenschaften'; +$wb['description_txt'] = 'Beschreibung'; +$wb['action_txt'] = 'Aktion (Skript)'; +$wb['db_table_txt'] = 'DB Tabelle'; +$wb['db_table_idx_txt'] = 'DB Tabellenindex'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Standard Tab'; +$wb['list_default_txt'] = 'Standard Liste'; +$wb['auth_txt'] = 'Berechtigungen'; +$wb['auth_preset_userid_txt'] = 'Benutzer ID'; +$wb['auth_preset_groupid_txt'] = 'Gruppen ID'; +$wb['auth_preset_perm_user_txt'] = 'Benutzerberechtigungen'; +$wb['auth_preset_perm_group_txt'] = 'Gruppenberechtigungen'; +$wb['auth_preset_perm_other_txt'] = 'andere Berechtigungen'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng new file mode 100644 index 0000000..998a64f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Formulare'; +$wb['form_txt'] = 'Formular'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'Bezeichnung'; +$wb['description_txt'] = 'Beschreibung'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng new file mode 100644 index 0000000..b19fd34 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formulareditor'; +$wb['title_txt'] = 'Formulartitel'; +$wb['name_txt'] = 'Formularname'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Eigenschaften'; +$wb['new_tab_txt'] = 'neuer Reiter'; +$wb['edit_txt'] = 'Bearbeiten'; +$wb['new_txt'] = 'Neu'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Modul'; +$wb['form_txt'] = 'Formular'; +$wb['description_txt'] = 'Beschreibung'; +$wb['module_del_txt'] = 'Modul und alle Unterverzeichnisse löschen?'; +$wb['menu_del_txt'] = 'Menü samt Menüeinträgen löschen?'; +$wb['item_del_txt'] = 'Menüeintrag löschen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng new file mode 100644 index 0000000..6eacd64 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng @@ -0,0 +1,12 @@ +<?php +$wb['name_txt'] = 'Modulname'; +$wb['title_txt'] = 'Modulbezeichnung'; +$wb['template_txt'] = 'Vorlage'; +$wb['navframe_txt'] = 'Navigationsframe'; +$wb['startpage_txt'] = 'Startseite'; +$wb['tab_width_txt'] = 'Reiterkartenbreite'; +$wb['save_txt'] = 'Speichern'; +$wb['cancel_txt'] = 'Abbrechen'; +$wb['header_txt'] = 'Moduleigenschaften'; +$wb['description_txt'] = 'Beschreibung'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng new file mode 100644 index 0000000..6040630 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Backend Module'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'Bezeichnung'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng new file mode 100644 index 0000000..d5142f0 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Überschrift'; +$wb['header_txt'] = 'Navigation Eigenschaften'; +$wb['save_txt'] = 'Speichern'; +$wb['cancel_txt'] = 'Abbrechen'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng new file mode 100644 index 0000000..8c0c33c --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Überschrift'; +$wb['target_txt'] = 'Ziel'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navigation Eigenschaften'; +$wb['save_txt'] = 'Speichern'; +$wb['cancel_txt'] = 'Abbrechen'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng new file mode 100644 index 0000000..f4b2ad1 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menüeditor'; +$wb['title_txt'] = 'Titel'; +$wb['name_txt'] = 'Modul'; +$wb['delete_txt'] = 'Löschen'; +$wb['properties_txt'] = 'Eigenschaften'; +$wb['new_menu_txt'] = 'Menü hinzufügen'; +$wb['edit_txt'] = 'Bearbeiten'; +$wb['new_txt'] = 'Neu'; +$wb['up_txt'] = 'nach oben'; +$wb['down_txt'] = 'nach unten'; +$wb['module_txt'] = 'Modul'; +$wb['module_del_txt'] = 'Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse löschen?'; +$wb['menu_del_txt'] = 'Wollen Sie das Menü mit allen Untereinträgen löschen?'; +$wb['item_del_txt'] = 'Wollen Sie den Menüeintrag löschen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/en.lng b/interface/ispconfig/interface/designer/lib/lang/en.lng new file mode 100644 index 0000000..15c5adc --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en.lng @@ -0,0 +1,3 @@ +<?php + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng new file mode 100644 index 0000000..f55e0f4 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng @@ -0,0 +1,26 @@ +<?php +$wb["name_txt"] = 'Formname'; +$wb["title_txt"] = 'Formutitle'; +$wb["template_txt"] = 'Template'; +$wb["navframe_txt"] = 'NaviFrame'; +$wb["startpage_txt"] = 'Startpage'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +$wb["header_txt"] = 'Form properties'; +$wb["description_txt"] = 'Description'; +$wb["action_txt"] = 'Action (script)'; +$wb["db_table_txt"] = 'DB Table'; +$wb["db_table_idx_txt"] = 'DB Table Index'; +$wb["db_history_txt"] = 'Undo Log'; +$wb["tab_default_txt"] = 'Default Tab'; +$wb["list_default_txt"] = 'Default Liste'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["auth_txt"] = 'Permissions'; +$wb["auth_preset_userid_txt"] = 'UserID'; +$wb["auth_preset_groupid_txt"] = 'GroupID'; +$wb["auth_preset_perm_user_txt"] = 'Perm. User'; +$wb["auth_preset_perm_group_txt"] = 'Perm. Group'; +$wb["auth_preset_perm_other_txt"] = 'Perm. Other'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng new file mode 100644 index 0000000..21a7687 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Backend Form'; +$wb["form_txt"] = 'Form'; +$wb["module_txt"] = 'Module'; +$wb["title_txt"] = 'Title'; +$wb["description_txt"] = 'Description'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng new file mode 100644 index 0000000..54b14f6 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb["header_txt"] = 'Formeditor'; +$wb["title_txt"] = 'Formtitle'; +$wb["name_txt"] = 'Formname'; +$wb["delete_txt"] = 'Delete'; +$wb["properties_txt"] = 'Properties'; +$wb["new_tab_txt"] = 'Tab new'; +$wb["edit_txt"] = 'Edit'; +$wb["new_txt"] = 'Neu'; +$wb["up_txt"] = '^'; +$wb["down_txt"] = 'v'; +$wb["module_txt"] = 'Module'; +$wb["form_txt"] = 'Form'; +$wb["description_txt"] = 'Description'; +$wb["module_del_txt"] = "Delete the module and all subdirectories?"; +$wb["menu_del_txt"] = "Delete menu with all menuitems?"; +$wb["item_del_txt"] = "Delete menuitem?"; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng new file mode 100644 index 0000000..285a363 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng @@ -0,0 +1,23 @@ +<?php +$wb["name_txt"] = 'Modulename'; +$wb["title_txt"] = 'Moduletitle'; +$wb["template_txt"] = 'Template file'; +$wb["navframe_txt"] = 'NaviFrame'; +$wb["startpage_txt"] = 'Default page'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +$wb["header_txt"] = 'Module properties'; +$wb["description_txt"] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> +<b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> +<b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> +<b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> +<b>Default page:</b> These page will be shown when the module is opened.<br> +<b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> +<b>Hint:</b> All paths are relative to the directory "web". +'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng new file mode 100644 index 0000000..45260fd --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb["list_head_txt"] = 'Backend Module'; +$wb["module_txt"] = 'Module'; +$wb["title_txt"] = 'Title'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng new file mode 100644 index 0000000..3600238 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb["title_txt"] = 'Title'; +$wb["header_txt"] = 'Navi properties'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng new file mode 100644 index 0000000..56eee32 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb["title_txt"] = 'Title'; +$wb["target_txt"] = 'Target'; +$wb["link_txt"] = 'Link'; +$wb["header_txt"] = 'Navi properties'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng new file mode 100644 index 0000000..e76f5f3 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng @@ -0,0 +1,17 @@ +<?php +$wb["header_txt"] = 'Menu editor'; +$wb["title_txt"] = 'Title'; +$wb["name_txt"] = 'Module'; +$wb["delete_txt"] = 'Delete'; +$wb["properties_txt"] = 'Properties'; +$wb["new_menu_txt"] = 'Menu new'; +$wb["edit_txt"] = 'Edit'; +$wb["delete_txt"] = 'Delete'; +$wb["new_txt"] = 'New'; +$wb["up_txt"] = 'Up'; +$wb["down_txt"] = 'Down'; +$wb["module_txt"] = 'Module'; +$wb["module_del_txt"] = "Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse l�schen?"; +$wb["menu_del_txt"] = "Wollen Sie das Men� mit allen Untereintr�gen l�schen?"; +$wb["item_del_txt"] = "Wollen Sie den Men�eintrag l�schen?"; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/lib/lang/es.lng b/interface/ispconfig/interface/designer/lib/lang/es.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng new file mode 100644 index 0000000..c531255 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Nombre del formulario'; +$wb['title_txt'] = 'Título del formulario'; +$wb['template_txt'] = 'Plantilla'; +$wb['navframe_txt'] = 'Marco de navegación'; +$wb['startpage_txt'] = 'Página inicial'; +$wb['tab_width_txt'] = 'Ancho de pestaña'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propiedades del formulario'; +$wb['description_txt'] = 'Descripción'; +$wb['action_txt'] = 'Acción (script)'; +$wb['db_table_txt'] = 'Tabla de BD'; +$wb['db_table_idx_txt'] = 'Indice de tabla de BD'; +$wb['db_history_txt'] = 'Anular registro'; +$wb['tab_default_txt'] = 'Pestaña por defecto'; +$wb['list_default_txt'] = 'Lista por defecto'; +$wb['auth_txt'] = 'Permisos'; +$wb['auth_preset_userid_txt'] = 'ID usuario'; +$wb['auth_preset_groupid_txt'] = 'ID grupo'; +$wb['auth_preset_perm_user_txt'] = 'Permisos del usuario'; +$wb['auth_preset_perm_group_txt'] = 'Permisos del grupo'; +$wb['auth_preset_perm_other_txt'] = 'Permisos de otros'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng new file mode 100644 index 0000000..3334d0b --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Formulario de respaldo'; +$wb['form_txt'] = 'Formulario'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +$wb['description_txt'] = 'Descripción'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng new file mode 100644 index 0000000..4cac145 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Editor de formularios'; +$wb['title_txt'] = 'Título del formulario'; +$wb['name_txt'] = 'Nombre del formulario'; +$wb['delete_txt'] = 'Eliminar'; +$wb['properties_txt'] = 'Propiedades'; +$wb['new_tab_txt'] = 'Nueva pestaña'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Nuevo'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Módulo'; +$wb['form_txt'] = 'Formulario'; +$wb['description_txt'] = 'Descripción'; +$wb['module_del_txt'] = '¿Eliminar el módulo y los subdirectorios?'; +$wb['menu_del_txt'] = '¿Eliminar el menú y todos sus elementos?'; +$wb['item_del_txt'] = '¿Eliminar el elemento del menú?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng new file mode 100644 index 0000000..c126365 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng @@ -0,0 +1,12 @@ +<?php +$wb['name_txt'] = 'Nombre del módulo'; +$wb['title_txt'] = 'Título del módulo'; +$wb['template_txt'] = 'Fichero de plantilla'; +$wb['navframe_txt'] = 'Marco de navegación'; +$wb['startpage_txt'] = 'Página por defecto'; +$wb['tab_width_txt'] = 'Ancho de pestaña'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propiedades del modulo'; +$wb['description_txt'] = '<b>Descripción</b><br><br><b>Nombre del módulo:</b> Nombre del directorio del módulo. Sólo se permiten números, carácteres y subrayados.<br><b>Título del módulo:</b> Se mostrará en la barra de navegación principal.<br><b>Fichero de plantilla:</b> Fichero de la plantilla del módulo. Disponibles actualmente: module.tpl.htm y module_tree.tpl.htm. Por defecto: module.tpl.htm.<br><b>Marco de navegación:</b> Si el fichero de plantilla module_tree.tpl.htm está seleccionado, introduzca aquí la ruta al fichero del script del marco de la izquierda.<br><b>Página por defecto:</b> Esta página se mostrará cuando el módulo se abra.<br><b>Ancho de pestaña:</b> Ancho de las pestañas en la barra de navegación. El campo está vacío por defecto. Puede introducir valores absolutos en píxeles (p.ej. 20) o relativos (p.ej. 20%).<br><b>Pista:</b> Todas las rutas son relativas al directorio.'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng new file mode 100644 index 0000000..2805a07 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Módulo de respaldo'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng new file mode 100644 index 0000000..22688b6 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['header_txt'] = 'Propiedades de navegación'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng new file mode 100644 index 0000000..ec39e5f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['target_txt'] = 'Objetivo'; +$wb['link_txt'] = 'Enlace'; +$wb['header_txt'] = 'Propiedades de navegación'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng new file mode 100644 index 0000000..1f1199d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Editor de menú'; +$wb['title_txt'] = 'Título'; +$wb['name_txt'] = 'Módulo'; +$wb['delete_txt'] = 'Eliminar'; +$wb['properties_txt'] = 'Propiedades'; +$wb['new_menu_txt'] = 'Nuevo menú'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Nuevo'; +$wb['up_txt'] = 'Arriba'; +$wb['down_txt'] = 'Abajo'; +$wb['module_txt'] = 'Módulo'; +$wb['module_del_txt'] = '¿Quiere eliminar el módulo y eliminar todos los ficheros creados dentro de él?'; +$wb['menu_del_txt'] = '¿Quiere eliminar el menú con todo sus elementos?'; +$wb['item_del_txt'] = '¿Quiere eliminar el elemento del menú?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi.lng b/interface/ispconfig/interface/designer/lib/lang/fi.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng new file mode 100644 index 0000000..c9a1303 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Lomakkeen nimi'; +$wb['title_txt'] = 'Lomakkeen otsikko'; +$wb['template_txt'] = 'Mallilomake'; +$wb['navframe_txt'] = 'Valikon kehys'; +$wb['startpage_txt'] = 'Aloitussivu'; +$wb['tab_width_txt'] = 'Painikkeen leveys'; +$wb['save_txt'] = 'Tallenna'; +$wb['cancel_txt'] = 'Keskeytä'; +$wb['header_txt'] = 'Lomakkeen ominaisuudet'; +$wb['description_txt'] = 'Kuvaus'; +$wb['action_txt'] = 'Toiminto (skripti)'; +$wb['db_table_txt'] = 'Tietokannan taulu'; +$wb['db_table_idx_txt'] = 'Tietokannan taulun indeksi'; +$wb['db_history_txt'] = 'Kumoamisloki'; +$wb['tab_default_txt'] = 'Oletuspainike'; +$wb['list_default_txt'] = 'Oletuslista'; +$wb['auth_txt'] = 'Oikeudet'; +$wb['auth_preset_userid_txt'] = 'Käyttäjätunnus'; +$wb['auth_preset_groupid_txt'] = 'Käyttäjäryhmä'; +$wb['auth_preset_perm_user_txt'] = 'Käyttäjän oikeudet'; +$wb['auth_preset_perm_group_txt'] = 'Ryhmän oikeudet'; +$wb['auth_preset_perm_other_txt'] = 'Muiden käyttäjien oikeudet'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng new file mode 100644 index 0000000..9052c8f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Peruslomake'; +$wb['form_txt'] = 'Lomake'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['title_txt'] = 'Otsikko'; +$wb['description_txt'] = 'Kuvaus'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng new file mode 100644 index 0000000..247a95b --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Lomakemuokkain'; +$wb['title_txt'] = 'Lomakkeen otsikko'; +$wb['name_txt'] = 'Lomakkeen nimi'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Ominaisuudet'; +$wb['new_tab_txt'] = 'Uusi painike'; +$wb['edit_txt'] = 'Muokkaa'; +$wb['new_txt'] = 'Uusi'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['form_txt'] = 'Lomake'; +$wb['description_txt'] = 'Kuvaus'; +$wb['module_del_txt'] = 'Poista ohjelmaosion kansio ja kaikki sen alikansiot?'; +$wb['menu_del_txt'] = 'Poista valikko ja kaikki sen osat?'; +$wb['item_del_txt'] = 'Poista valikon osa?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng new file mode 100644 index 0000000..8bb4a5c --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Ohjelmaosion nimi'; +$wb['title_txt'] = 'Ohjelmaosion otsikko'; +$wb['template_txt'] = 'Mallitiedosto'; +$wb['navframe_txt'] = 'Valikkokehys'; +$wb['startpage_txt'] = 'Oletussivu'; +$wb['tab_width_txt'] = 'Välilehden leveys'; +$wb['save_txt'] = 'Tallenna'; +$wb['cancel_txt'] = 'Keskeytä'; +$wb['header_txt'] = 'Ohjelmaosion ominaisuudet'; +$wb['description_txt'] = ' +<b>Kuvaus</b> +<br><br> +<b>Modulename:</b> Ohjelmaosion kansion nimi. Vain numerot,kirjaimet ja alaviiva on sallittu.<br> +<b>Moduletitle:</b> Tulee näkymään ylemmässä päävalikossa.<br> +<b>Template file:</b> Ohjelmaosion mallitiedosto. Käytettävissä tällä hetkellä: module.tpl.htm ja module_tree.tpl.htm. Oletus on module.tpl.htm.<br> +<b>NaviFrame:</b> Jos module_tree.tpl.htm valittiin mallitiedostoksi, kirjoita tähän vasemman kehyksen skriptitiedoston polku.<br> +<b>Default page:</b> Tämä sivu näytetetään kun ohjelmaosio avataan.<br> +<b>Tab width:</b> Päälikon painikkeiden leveys. Kenttä on oletuksenä tyhjä. Voit antaa arvon pikseleinää tai prosentteina. (esim. 20 tai 20%).<br> +<b>Vihje:</b> Kaikki polut ovat suhteellisia web-kansioon, eivät absoluuttisia. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng new file mode 100644 index 0000000..f07c9a3 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Perusohjelmaosio'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['title_txt'] = 'Otsikko'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng new file mode 100644 index 0000000..b7c03ea --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Otsikko'; +$wb['header_txt'] = 'Valikon ominaisuudet'; +$wb['save_txt'] = 'Tallenna'; +$wb['cancel_txt'] = 'Keskeytä'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng new file mode 100644 index 0000000..5f32d58 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Otsikko'; +$wb['target_txt'] = 'Kohde'; +$wb['link_txt'] = 'Linkki'; +$wb['header_txt'] = 'Valikon ominaisuudet'; +$wb['save_txt'] = 'Tallenna'; +$wb['cancel_txt'] = 'Keskeytä'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng new file mode 100644 index 0000000..066d92f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Valikko-muokkain'; +$wb['title_txt'] = 'Otsikko'; +$wb['name_txt'] = 'Ohjelmaosio'; +$wb['delete_txt'] = 'Poista'; +$wb['properties_txt'] = 'Ominaisuudet'; +$wb['new_menu_txt'] = 'Uusi valikko'; +$wb['edit_txt'] = 'Muokkaa'; +$wb['new_txt'] = 'Uusi'; +$wb['up_txt'] = 'Ylös'; +$wb['down_txt'] = 'Alas'; +$wb['module_txt'] = 'Ohjelmaosio'; +$wb['module_del_txt'] = 'Haluatko poistaa tämän ohjelmaosion ja kaikki siihen kuuluvat valikot ja osat?'; +$wb['menu_del_txt'] = 'Haluatko poistaa tämän valikon?'; +$wb['item_del_txt'] = 'Haluatko poistaa tämän osan?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr.lng b/interface/ispconfig/interface/designer/lib/lang/fr.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng new file mode 100644 index 0000000..4ef20b0 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Nom du Formulaire'; +$wb['title_txt'] = 'Titre du formulaire'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'FrameNavigation'; +$wb['startpage_txt'] = 'Pge de dmarrage'; +$wb['tab_width_txt'] = 'Largeur Tableau'; +$wb['save_txt'] = 'Sauver'; +$wb['cancel_txt'] = 'Annuler'; +$wb['header_txt'] = 'Proprits du Formulaire'; +$wb['description_txt'] = 'Description'; +$wb['action_txt'] = 'Action (script)'; +$wb['db_table_txt'] = 'Table BDD'; +$wb['db_table_idx_txt'] = 'Table Index BDD'; +$wb['db_history_txt'] = 'Effacer Log'; +$wb['tab_default_txt'] = 'Onglet par dfaut'; +$wb['list_default_txt'] = 'Liste par dfaut'; +$wb['auth_txt'] = 'Permissions'; +$wb['auth_preset_userid_txt'] = 'ID Utilisateur'; +$wb['auth_preset_groupid_txt'] = 'ID Groupe'; +$wb['auth_preset_perm_user_txt'] = 'Perm. Utilisateur'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Groupe'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Autre'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng new file mode 100644 index 0000000..b20b847 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Formulaire Backend'; +$wb['form_txt'] = 'Formulaire'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titre'; +$wb['description_txt'] = 'Description'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng new file mode 100644 index 0000000..9c9580c --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Editeur de Formulaire'; +$wb['title_txt'] = 'Titre du Formulaire'; +$wb['name_txt'] = 'Nom du Fromulaire'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Proprits'; +$wb['new_tab_txt'] = 'Nouvel Onglet'; +$wb['edit_txt'] = 'Editer'; +$wb['new_txt'] = 'Nouveau'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Formulaire'; +$wb['description_txt'] = 'Description'; +$wb['module_del_txt'] = 'Effacer le module et tout ses sous-rpertoires'; +$wb['menu_del_txt'] = 'Effacer le menu et tout ses items'; +$wb['item_del_txt'] = 'Effacer litem'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng new file mode 100644 index 0000000..c2eab94 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng @@ -0,0 +1,14 @@ +<?php +$wb['name_txt'] = 'Nom du Module'; +$wb['title_txt'] = 'Titre du Module'; +$wb['template_txt'] = 'Fichier Template'; +$wb['navframe_txt'] = 'Frame de Navigation'; +$wb['startpage_txt'] = 'Page par Dfaut'; +$wb['tab_width_txt'] = 'Largeur tableau'; +$wb['save_txt'] = 'Sauver'; +$wb['cancel_txt'] = 'Annuler'; +$wb['header_txt'] = 'Proprits du Module'; +$wb['description_txt'] = ' +<b>Description</b?><br><br?><b>Nom du Module:</b> Nom du rpertoire du module. Seulement nombres, lettres et underscore sont autoriss.<br?><b>Titre du Module:</b> Seras affich dans le menu de navigation (suprieur).<br?><b>Fichier Template:</b> Fichier Template du module. Disponible actuellement: module.tpl.htm et module_tree.tpl.htm. Par dfaut module.tpl.htm.<br?><b>Frame de Navigation:</b> Si module_tree.tpl.htm est choisi comme fichier template, entrer ici le chemin vers le script de la frame de gauche.<br?><b>Page par Dfaut:</b> Cette page seras affiche quand le module seras ouvert.<br?><b>Largeur tableau:</b> Largeur des tableau dans la frame principale. Le champ est vide par defaut. Vous pouvez entrer une valeur absolue en pixel (e.g 20) ou relative (e.g 20%).<br?><b>Note:</b> Tous les paths sont relatifs par rapport au dossier web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng new file mode 100644 index 0000000..5389ac9 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Module Backend'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titre'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng new file mode 100644 index 0000000..423588c --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Titre'; +$wb['header_txt'] = 'Proprits Navig'; +$wb['save_txt'] = 'Sauver'; +$wb['cancel_txt'] = 'Annuler'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng new file mode 100644 index 0000000..ada5f4e --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Titre'; +$wb['target_txt'] = 'Cible'; +$wb['link_txt'] = 'Lien'; +$wb['header_txt'] = 'Proprits Navig.'; +$wb['save_txt'] = 'Sauver'; +$wb['cancel_txt'] = 'Annuler'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng new file mode 100644 index 0000000..da09511 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Editeur de Menu'; +$wb['title_txt'] = 'Titre'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Effacer'; +$wb['properties_txt'] = 'Propriets'; +$wb['new_menu_txt'] = 'Nouveau Menu'; +$wb['edit_txt'] = 'Editer'; +$wb['new_txt'] = 'Noueau'; +$wb['up_txt'] = 'Monter'; +$wb['down_txt'] = 'Descendre'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Voulez-vous supprimer le module et tous les fichiers et sous-dossier du module '; +$wb['menu_del_txt'] = 'Voulez-vous supprimer le menu avec tous ses sous-menu '; +$wb['item_del_txt'] = 'Voulez-vous supprimer lentre de menu '; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu.lng b/interface/ispconfig/interface/designer/lib/lang/hu.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng new file mode 100644 index 0000000..54fe173 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formname'; +$wb['title_txt'] = 'Formutitle'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Startpage'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Form properties'; +$wb['description_txt'] = 'Description'; +$wb['action_txt'] = 'Action (script)'; +$wb['db_table_txt'] = 'DB Table'; +$wb['db_table_idx_txt'] = 'DB Table Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Default Tab'; +$wb['list_default_txt'] = 'Default Liste'; +$wb['auth_txt'] = 'Permissions'; +$wb['auth_preset_userid_txt'] = 'UserID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. User'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Other'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng new file mode 100644 index 0000000..4743225 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Form'; +$wb['form_txt'] = 'Form'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +$wb['description_txt'] = 'Description'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng new file mode 100644 index 0000000..12be609 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formeditor'; +$wb['title_txt'] = 'Formtitle'; +$wb['name_txt'] = 'Formname'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Properties'; +$wb['new_tab_txt'] = 'Tab new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'Neu'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Form'; +$wb['description_txt'] = 'Description'; +$wb['module_del_txt'] = 'Delete the module and all subdirectories?'; +$wb['menu_del_txt'] = 'Delete menu with all menuitems?'; +$wb['item_del_txt'] = 'Delete menuitem?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng new file mode 100644 index 0000000..592ccd7 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modulename'; +$wb['title_txt'] = 'Moduletitle'; +$wb['template_txt'] = 'Template file'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Default page'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Module properties'; +$wb['description_txt'] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> +<b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> +<b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> +<b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> +<b>Default page:</b> These page will be shown when the module is opened.<br> +<b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> +<b>Hint:</b> All paths are relative to the directory web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng new file mode 100644 index 0000000..bc9ebed --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Backend Module'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng new file mode 100644 index 0000000..fa5f15a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng new file mode 100644 index 0000000..23f7d15 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng new file mode 100644 index 0000000..357fca1 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menu editor'; +$wb['title_txt'] = 'Title'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Delete'; +$wb['properties_txt'] = 'Properties'; +$wb['new_menu_txt'] = 'Menu new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'New'; +$wb['up_txt'] = 'Up'; +$wb['down_txt'] = 'Down'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse l�schen?'; +$wb['menu_del_txt'] = 'Wollen Sie das Men� mit allen Untereintr�gen l�schen?'; +$wb['item_del_txt'] = 'Wollen Sie den Men�eintrag l�schen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it.lng b/interface/ispconfig/interface/designer/lib/lang/it.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng new file mode 100644 index 0000000..54fe173 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formname'; +$wb['title_txt'] = 'Formutitle'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Startpage'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Form properties'; +$wb['description_txt'] = 'Description'; +$wb['action_txt'] = 'Action (script)'; +$wb['db_table_txt'] = 'DB Table'; +$wb['db_table_idx_txt'] = 'DB Table Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Default Tab'; +$wb['list_default_txt'] = 'Default Liste'; +$wb['auth_txt'] = 'Permissions'; +$wb['auth_preset_userid_txt'] = 'UserID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. User'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Other'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng new file mode 100644 index 0000000..4743225 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Form'; +$wb['form_txt'] = 'Form'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +$wb['description_txt'] = 'Description'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng new file mode 100644 index 0000000..12be609 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formeditor'; +$wb['title_txt'] = 'Formtitle'; +$wb['name_txt'] = 'Formname'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Properties'; +$wb['new_tab_txt'] = 'Tab new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'Neu'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Form'; +$wb['description_txt'] = 'Description'; +$wb['module_del_txt'] = 'Delete the module and all subdirectories?'; +$wb['menu_del_txt'] = 'Delete menu with all menuitems?'; +$wb['item_del_txt'] = 'Delete menuitem?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng new file mode 100644 index 0000000..592ccd7 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modulename'; +$wb['title_txt'] = 'Moduletitle'; +$wb['template_txt'] = 'Template file'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Default page'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Module properties'; +$wb['description_txt'] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> +<b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> +<b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> +<b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> +<b>Default page:</b> These page will be shown when the module is opened.<br> +<b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> +<b>Hint:</b> All paths are relative to the directory web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng new file mode 100644 index 0000000..bc9ebed --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Backend Module'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng new file mode 100644 index 0000000..fa5f15a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng new file mode 100644 index 0000000..23f7d15 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng new file mode 100644 index 0000000..e295047 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menu editor'; +$wb['title_txt'] = 'Title'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Delete'; +$wb['properties_txt'] = 'Properties'; +$wb['new_menu_txt'] = 'Menu new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'New'; +$wb['up_txt'] = 'Up'; +$wb['down_txt'] = 'Down'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse l�schen?'; +$wb['menu_del_txt'] = 'Wollen Sie das Men� mit allen Untereintr�gen l�schen?'; +$wb['item_del_txt'] = 'Wollen Sie den Men�eintrag l�schen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja.lng b/interface/ispconfig/interface/designer/lib/lang/ja.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng new file mode 100644 index 0000000..130ca07 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formname'; +$wb['title_txt'] = 'Formutitle'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Startpage'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = '保存する'; +$wb['cancel_txt'] = 'キャンセル'; +$wb['header_txt'] = 'Form properties'; +$wb['description_txt'] = '説明'; +$wb['action_txt'] = 'Action (script)'; +$wb['db_table_txt'] = 'DB Table'; +$wb['db_table_idx_txt'] = 'DB Table Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Default Tab'; +$wb['list_default_txt'] = 'Default Liste'; +$wb['auth_txt'] = 'Permissions'; +$wb['auth_preset_userid_txt'] = 'UserID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm.User'; +$wb['auth_preset_perm_group_txt'] = 'Perm.Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm.Other'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng new file mode 100644 index 0000000..4743225 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Form'; +$wb['form_txt'] = 'Form'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +$wb['description_txt'] = 'Description'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng new file mode 100644 index 0000000..37017fa --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formeditor'; +$wb['title_txt'] = 'Formtitle'; +$wb['name_txt'] = 'Formname'; +$wb['delete_txt'] = 'Delete'; +$wb['properties_txt'] = 'Properties'; +$wb['new_tab_txt'] = 'Tab new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'Neu'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Form'; +$wb['description_txt'] = 'Description'; +$wb['module_del_txt'] = 'Delete the module and all subdirectories?'; +$wb['menu_del_txt'] = 'Delete menu with all menuitems?'; +$wb['item_del_txt'] = 'Delete menuitem?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng new file mode 100644 index 0000000..592ccd7 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modulename'; +$wb['title_txt'] = 'Moduletitle'; +$wb['template_txt'] = 'Template file'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Default page'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Module properties'; +$wb['description_txt'] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> +<b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> +<b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> +<b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> +<b>Default page:</b> These page will be shown when the module is opened.<br> +<b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> +<b>Hint:</b> All paths are relative to the directory web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng new file mode 100644 index 0000000..bc9ebed --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Backend Module'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Title'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng new file mode 100644 index 0000000..fa5f15a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng new file mode 100644 index 0000000..23f7d15 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng new file mode 100644 index 0000000..6fe8d45 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = '言語エディタ'; +$wb['title_txt'] = 'Title'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Delete'; +$wb['properties_txt'] = 'Properties'; +$wb['new_menu_txt'] = 'Menu new'; +$wb['edit_txt'] = 'Edit'; +$wb['new_txt'] = 'New'; +$wb['up_txt'] = 'Up'; +$wb['down_txt'] = 'Down'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse loschen?'; +$wb['menu_del_txt'] = 'Wollen Sie das Menu mit allen Untereintragen loschen?'; +$wb['item_del_txt'] = 'Wollen Sie den Menueintrag loschen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl.lng b/interface/ispconfig/interface/designer/lib/lang/nl.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng new file mode 100644 index 0000000..bdc7642 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formuliernaam'; +$wb['title_txt'] = 'Formuliertitel'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Startpagina'; +$wb['tab_width_txt'] = 'Tabbreedte'; +$wb['save_txt'] = 'Opslaan'; +$wb['cancel_txt'] = 'Annuleren'; +$wb['header_txt'] = 'Formuliereigenschappen'; +$wb['description_txt'] = 'Omschrijving'; +$wb['action_txt'] = 'Actie (script)'; +$wb['db_table_txt'] = 'DB tabel'; +$wb['db_table_idx_txt'] = 'DB tabel index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Standaard tab'; +$wb['list_default_txt'] = 'Standaard lijst'; +$wb['auth_txt'] = 'Permissies'; +$wb['auth_preset_userid_txt'] = 'GebruikerID'; +$wb['auth_preset_groupid_txt'] = 'GroepID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. Gebruiker'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Groep'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Overige'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng new file mode 100644 index 0000000..2da9725 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Formulier'; +$wb['form_txt'] = 'Formulier'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titel'; +$wb['description_txt'] = 'Omschrijving'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng new file mode 100644 index 0000000..1c82ea1 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formuliereditor'; +$wb['title_txt'] = 'Formuliertitel'; +$wb['name_txt'] = 'Formuliernaam'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Eigenschappen'; +$wb['new_tab_txt'] = 'Tab nieuw'; +$wb['edit_txt'] = 'Muteren'; +$wb['new_txt'] = 'Nieuw'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Formulier'; +$wb['description_txt'] = 'Omschrijving'; +$wb['module_del_txt'] = 'Verwijder de module en alle subdirectories?'; +$wb['menu_del_txt'] = 'Verwijder menu met alle menuitems?'; +$wb['item_del_txt'] = 'Verwijder menuitem?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng new file mode 100644 index 0000000..f4234dc --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modulenaam'; +$wb['title_txt'] = 'Moduletitel'; +$wb['template_txt'] = 'Template bestand'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Standaard pagina'; +$wb['tab_width_txt'] = 'Tab breedte'; +$wb['save_txt'] = 'Opslaan'; +$wb['cancel_txt'] = 'Annuleren'; +$wb['header_txt'] = 'Module eigenschappen'; +$wb['description_txt'] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Naam van de module directory. Alleen cijfers, letters en underscore zijn toegestaan.<br> +<b>Moduletitle:</b> Zal worden getoond in de hoofdnavigatie (bovenaan).<br> +<b>Template file:</b> Template bestand van de module. Momenteel beschikbaar: module.tpl.htm en module_tree.tpl.htm. Standaard is de module.tpl.htm.<br> +<b>NaviFrame:</b> Als de module_tree.tpl.htm geselecteerd is als template bestand, geef het pad op dat verwijst naar het scriptbestand voor het linker frame.<br> +<b>Default page:</b> Deze pagina wordt getoont wanneer de module is geopend.<br> +<b>Tab width:</b> Tabbreedte in de hoofdnavigatie. Het veld is standaard leeg. U kunt absolute waarden opgeven in pixels (bijv. 20) of relatieve (bijv. 20%).<br> +<b>Hint:</b> Alle paden zijn relatief aan de directorie web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng new file mode 100644 index 0000000..19ea5e9 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Verwerkingsmodule'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng new file mode 100644 index 0000000..504b7f7 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Titel'; +$wb['header_txt'] = 'Navi eigenschappen'; +$wb['save_txt'] = 'Opslaan'; +$wb['cancel_txt'] = 'Annuleren'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng new file mode 100644 index 0000000..4c2bddd --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Titel'; +$wb['target_txt'] = 'Doel'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi eigenschappen'; +$wb['save_txt'] = 'Opslaan'; +$wb['cancel_txt'] = 'Annuleren'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng new file mode 100644 index 0000000..8f605e4 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menu editor'; +$wb['title_txt'] = 'Titel'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Verwijderen'; +$wb['properties_txt'] = 'Eigenschappen'; +$wb['new_menu_txt'] = 'Nieuw menu'; +$wb['edit_txt'] = 'Muteren'; +$wb['new_txt'] = 'Nieuw'; +$wb['up_txt'] = 'Boven'; +$wb['down_txt'] = 'Beneden'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Wilt u de module en alle data en sublijsten die in deze module zijn aangemaakt verwijderen?'; +$wb['menu_del_txt'] = 'Wilt u het menu en alle subitems verwijderen?'; +$wb['item_del_txt'] = 'Wilt u de menuitems verwijderen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl.lng b/interface/ispconfig/interface/designer/lib/lang/pl.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng new file mode 100644 index 0000000..ee4f4c4 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Nazwa formularza'; +$wb['title_txt'] = 'Tytuł formularza'; +$wb['template_txt'] = 'Szablon'; +$wb['navframe_txt'] = 'Ramka nawigacyjna'; +$wb['startpage_txt'] = 'Strona startowa'; +$wb['tab_width_txt'] = 'Szerokość zakładki'; +$wb['save_txt'] = 'Zapisz'; +$wb['cancel_txt'] = 'Anuluj'; +$wb['header_txt'] = 'Parametry formularza'; +$wb['description_txt'] = 'Opis'; +$wb['action_txt'] = 'Akcja (skrypt)'; +$wb['db_table_txt'] = 'DB Tabela'; +$wb['db_table_idx_txt'] = 'DB Indeks tabeli'; +$wb['db_history_txt'] = 'Cofnij Log'; +$wb['tab_default_txt'] = 'Domyślna zakładka'; +$wb['list_default_txt'] = 'Domyślna lista'; +$wb['auth_txt'] = 'Dostęp'; +$wb['auth_preset_userid_txt'] = 'ID Użytkownika'; +$wb['auth_preset_groupid_txt'] = 'ID Grupy'; +$wb['auth_preset_perm_user_txt'] = 'Stały użytkownik'; +$wb['auth_preset_perm_group_txt'] = 'Stała grupa'; +$wb['auth_preset_perm_other_txt'] = 'Stała inna'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng new file mode 100644 index 0000000..ac85722 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Tylny formularz'; +$wb['form_txt'] = 'Formularz'; +$wb['module_txt'] = 'Moduł'; +$wb['title_txt'] = 'Tytuł'; +$wb['description_txt'] = 'Opis'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng new file mode 100644 index 0000000..db62af1 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Edytor formularza'; +$wb['title_txt'] = 'Tytuł formularza'; +$wb['name_txt'] = 'Nazwa formularza'; +$wb['delete_txt'] = 'Usuń'; +$wb['properties_txt'] = 'Preferencje'; +$wb['new_tab_txt'] = 'Nowa zakładka'; +$wb['edit_txt'] = 'Edytuj'; +$wb['new_txt'] = 'Nowy'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Moduł'; +$wb['form_txt'] = 'Formularz'; +$wb['description_txt'] = 'Opis'; +$wb['module_del_txt'] = 'Usunąć moduł i wszystkie podkatalogi?'; +$wb['menu_del_txt'] = 'Usunąć menu i wszystkie jego elementy?'; +$wb['item_del_txt'] = 'Usunąc element menu?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng new file mode 100644 index 0000000..691e550 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Nazwa modułu'; +$wb['title_txt'] = 'Tytuł modułu'; +$wb['template_txt'] = 'Plik szablonu'; +$wb['navframe_txt'] = 'Ramka nawigacyjna'; +$wb['startpage_txt'] = 'Strona domyślna'; +$wb['tab_width_txt'] = 'Szerokość zakładki'; +$wb['save_txt'] = 'Zapisz'; +$wb['cancel_txt'] = 'Anuluj'; +$wb['header_txt'] = 'Parametry modułu'; +$wb['description_txt'] = ' +<b>Opis</b> +<br><br> +<b>Nazwa modułu:</b> Nazwa katalogu z modułem. Tylko liczby, litery (bez polskich) i podkreślenie są dozwolone.<br> +<b>Tytuł modułu:</b> Będzie wyświetlaby w głównym menu nawigacyjnym.<br> +<b>Plik szablonu:</b> Plik szablonu modułu. Aktualnie dostępne: module.tpl.htm oraz module_tree.tpl.htm. Domyślnie jest module.tpl.htm.<br> +<b>Ramka nawigacyjna:</b> Jeśli module_tree.tpl.htm wybrano jako plik szablonu, wpisz tutaj ścieżkę do pliku ze skryptem dla lewej ramki.<br> +<b>Strona domyślna:</b> Ta strona będzie otwierana na początku podczas otwarcia modułu.<br> +<b>Szerokość zakładki:</b> Szerokość zakładek w głownym menu nawigacyjnym. To pole jest domyślnie puste. Możesz podać wartość w pikselach (np.: 20) lub procentach (np.: 20%).<br> +<b>Podpowiedź:</b> Wszystkie ścieżki są względne według strony www.. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng new file mode 100644 index 0000000..308d1c6 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Nazwa modułu'; +$wb['module_txt'] = 'Moduł'; +$wb['title_txt'] = 'Tytuł'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng new file mode 100644 index 0000000..5ace229 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Tytuł'; +$wb['header_txt'] = 'Paramtery nawigacyjne'; +$wb['save_txt'] = 'Zapisz'; +$wb['cancel_txt'] = 'Usuń'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng new file mode 100644 index 0000000..779b3b4 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Tytuł'; +$wb['target_txt'] = 'Cel'; +$wb['link_txt'] = 'Adres'; +$wb['header_txt'] = 'Parametry nawigacyjne'; +$wb['save_txt'] = 'Zapisz'; +$wb['cancel_txt'] = 'Usuń'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng new file mode 100644 index 0000000..9b98c49 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Edytor menu'; +$wb['title_txt'] = 'Tytuł'; +$wb['name_txt'] = 'Moduł'; +$wb['delete_txt'] = 'Usuń'; +$wb['properties_txt'] = 'Parametry'; +$wb['new_menu_txt'] = 'Nowe menu'; +$wb['edit_txt'] = 'Edytuj'; +$wb['new_txt'] = 'Nowy'; +$wb['up_txt'] = 'W górę'; +$wb['down_txt'] = 'W dół'; +$wb['module_txt'] = 'Moduł'; +$wb['module_del_txt'] = 'Czy na pewno chcesz usunąć moduł wraz z wszystkimi plikami i wpisami w bazie danych?'; +$wb['menu_del_txt'] = 'Czy na pewno chcesz usunąć menu z wszystkimi wpisami?'; +$wb['item_del_txt'] = 'Czy na pewno chcesz usunąć wpis w menu?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/pt.lng b/interface/ispconfig/interface/designer/lib/lang/pt.lng new file mode 100644 index 0000000..29f4a51 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt.lng @@ -0,0 +1,3 @@ +<?php +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng new file mode 100644 index 0000000..75869ca --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng @@ -0,0 +1,25 @@ +<?php +$wb['name_txt'] = 'Nome do Formulário'; +$wb['title_txt'] = 'Título do Formulário'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'Frame de Navegação'; +$wb['startpage_txt'] = 'Página Inicial'; +$wb['tab_width_txt'] = 'Tamanho da aba'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propriedades do Formulário'; +$wb['description_txt'] = 'Descrição'; +$wb['action_txt'] = 'Acção (script)'; +$wb['db_table_txt'] = 'Tabela do DB'; +$wb['db_table_idx_txt'] = 'Indíce da tabela do DB'; +$wb['db_history_txt'] = 'Desfazer Log'; +$wb['tab_default_txt'] = 'Aba Padrão'; +$wb['list_default_txt'] = 'Exibir Padrão'; +$wb['auth_txt'] = 'Permissões'; +$wb['auth_preset_userid_txt'] = 'Utilizador (ID)'; +$wb['auth_preset_groupid_txt'] = 'Grupo(ID)'; +$wb['auth_preset_perm_user_txt'] = 'Perm. Utilizador '; +$wb['auth_preset_perm_group_txt'] = 'Perm. Grupo'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Outros'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng new file mode 100644 index 0000000..01d0f28 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Formulário de Backend'; +$wb['form_txt'] = 'Formulário'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +$wb['description_txt'] = 'Descrição'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng new file mode 100644 index 0000000..76e7487 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng @@ -0,0 +1,19 @@ +<?php +$wb['header_txt'] = 'Editor de Formulários'; +$wb['title_txt'] = 'Título do Formulário'; +$wb['name_txt'] = 'Nome do Formulário'; +$wb['delete_txt'] = 'Remover'; +$wb['properties_txt'] = 'Propriedades'; +$wb['new_tab_txt'] = 'Nova Aba'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Novo'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Módulo'; +$wb['form_txt'] = 'Formulário'; +$wb['description_txt'] = 'Descrição'; +$wb['module_del_txt'] = 'Remover o módulo e todas as suas sub-pastas?'; +$wb['menu_del_txt'] = 'Remover o menu e todos os seus itens?'; +$wb['item_del_txt'] = 'Remover o item de menu?'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng new file mode 100644 index 0000000..b04975d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng @@ -0,0 +1,23 @@ +<?php +$wb['name_txt'] = 'Nome do Módulo'; +$wb['title_txt'] = 'Título do Módulo'; +$wb['template_txt'] = 'Ficheiro de Template'; +$wb['navframe_txt'] = 'Frame de Navegação'; +$wb['startpage_txt'] = 'Página Padrão'; +$wb['tab_width_txt'] = 'Tamanho da Aba'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +$wb['header_txt'] = 'Propriedades do Módulo'; +$wb['description_txt'] = ' +<b>Descrição</b> +<br><br> +<b>Nome do Módulo:</b> Nome da pasta do módulo. Apenas números, letras e underscores são permitidos.<br> +<b>Título do Módulo:</b> Será exibido em caixa alta no menu de navegação.<br> +<b>Ficheiro de Template:</b> Ficheiros de Template do Módulo Disponível: modulo.tpl.htm e modulo_tree.tpl.htm. O padrão é modulo.tpl.htm.<br> +<b>Frame de Navegação:</b> Se modulo_tree.tpl.htm foi seleccionado como ficheiro de template, insira aqui a pasta do script para o frame a esquerda.<br> +<b>Página Padrão:</b> Esta página será exibida quando o módulo for aberto.<br> +<b>Tamanho da Aba:</b> Tamanho das abas na navegação principal. Este campo fica em branco por padrão. Pode fornecer valores absolutos em pixels (ex.: 20) ou valores relativos (ex.: 20%).<br> +<b>Dica:</b> Todos as pastas são relativas à pasta web. +'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng new file mode 100644 index 0000000..8b8f247 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Módulo do Backend'; +$wb['module_txt'] = 'Módulo'; +$wb['title_txt'] = 'Título'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng new file mode 100644 index 0000000..3a98235 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng @@ -0,0 +1,7 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['header_txt'] = 'Propriedades de Navegação'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng new file mode 100644 index 0000000..4cb7df1 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng @@ -0,0 +1,9 @@ +<?php +$wb['title_txt'] = 'Título'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Propriedades de Navegação'; +$wb['save_txt'] = 'Guardar'; +$wb['cancel_txt'] = 'Cancelar'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng new file mode 100644 index 0000000..606181d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng @@ -0,0 +1,17 @@ +<?php +$wb['header_txt'] = 'Editor de Menu'; +$wb['title_txt'] = 'Título'; +$wb['name_txt'] = 'Módulo'; +$wb['delete_txt'] = 'Remover'; +$wb['properties_txt'] = 'Propriedades'; +$wb['new_menu_txt'] = 'Novo Menu'; +$wb['edit_txt'] = 'Editar'; +$wb['new_txt'] = 'Novo'; +$wb['up_txt'] = 'Subir'; +$wb['down_txt'] = 'Descer'; +$wb['module_txt'] = 'Módulo'; +$wb['module_del_txt'] = 'Deseja eliminar este módulo e todos os ficheiros contidos na pasta?'; +$wb['menu_del_txt'] = 'Deseja apagar este menu e todos seus elementos?'; +$wb['item_del_txt'] = 'Deseja apagar este elemento do menu?'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ro.lng b/interface/ispconfig/interface/designer/lib/lang/ro.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng new file mode 100644 index 0000000..a99b975 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formname'; +$wb['title_txt'] = 'Formutitle'; +$wb['template_txt'] = 'Template'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Startpagina'; +$wb['tab_width_txt'] = 'Tab latime'; +$wb['save_txt'] = 'Salveaza'; +$wb['cancel_txt'] = 'Cancel'; +$wb['header_txt'] = 'Form proprietati'; +$wb['description_txt'] = 'Descriere'; +$wb['action_txt'] = 'Actiune (script)'; +$wb['db_table_txt'] = 'DB Table'; +$wb['db_table_idx_txt'] = 'DB Table Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Default Tab'; +$wb['list_default_txt'] = 'Default Liste'; +$wb['auth_txt'] = 'Permisiuni'; +$wb['auth_preset_userid_txt'] = 'UserID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. User'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Altele'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng new file mode 100644 index 0000000..49b9d5e --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Form'; +$wb['form_txt'] = 'Form'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titlu'; +$wb['description_txt'] = 'Descriere'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng new file mode 100644 index 0000000..9cc5e71 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'editor de formular'; +$wb['title_txt'] = 'Titlu formular'; +$wb['name_txt'] = 'nume formular'; +$wb['delete_txt'] = 'sterge'; +$wb['properties_txt'] = 'Proprietati'; +$wb['new_tab_txt'] = 'Un nou Tab '; +$wb['edit_txt'] = 'Editeaza'; +$wb['new_txt'] = 'Nou'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Module'; +$wb['form_txt'] = 'Formular'; +$wb['description_txt'] = 'Descriere'; +$wb['module_del_txt'] = 'Sterge module si toate subdirectoarele ?'; +$wb['menu_del_txt'] = 'Sterge menu si obiectele din menu ?'; +$wb['item_del_txt'] = 'sterge obiectele din menu ?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng new file mode 100644 index 0000000..327550f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng @@ -0,0 +1,12 @@ +<?php +$wb['name_txt'] = 'Modulename'; +$wb['title_txt'] = 'Moduletitle'; +$wb['template_txt'] = 'Template file'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Default page'; +$wb['tab_width_txt'] = 'Tab width'; +$wb['save_txt'] = 'Salveaza'; +$wb['cancel_txt'] = 'Anuleaza'; +$wb['header_txt'] = 'Module proprietati'; +$wb['description_txt'] = '<b>Description</b> <br><br> <b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> <b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> <b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> <b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> <b>Default page:</b> These page will be shown when the module is opened.<br> <b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> <b>Hint:</b> All paths are relative to the directory '; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng new file mode 100644 index 0000000..c53b556 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Backend Module'; +$wb['module_txt'] = 'Module'; +$wb['title_txt'] = 'Titlu'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng new file mode 100644 index 0000000..ee6bf54 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Titlu'; +$wb['header_txt'] = 'Proprietati Navi '; +$wb['save_txt'] = 'Salveaza'; +$wb['cancel_txt'] = 'Anuleaza'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng new file mode 100644 index 0000000..9b7d60d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Titlu'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi Proprietati'; +$wb['save_txt'] = 'Salveaza'; +$wb['cancel_txt'] = 'Anuleaza'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng new file mode 100644 index 0000000..2fb748c --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menu editor'; +$wb['title_txt'] = 'Titlu'; +$wb['name_txt'] = 'Module'; +$wb['delete_txt'] = 'Sterge'; +$wb['properties_txt'] = 'Proprietati'; +$wb['new_menu_txt'] = 'Menu nou'; +$wb['edit_txt'] = 'Editare'; +$wb['new_txt'] = 'Nou'; +$wb['up_txt'] = 'SUS'; +$wb['down_txt'] = 'JOS'; +$wb['module_txt'] = 'Module'; +$wb['module_del_txt'] = 'Doriti sa stergeti modul ?'; +$wb['menu_del_txt'] = 'Doriti sa stergeti menu cu toate item-urile ?'; +$wb['item_del_txt'] = 'Doriti sa stergeti item-ul din menu ?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/ru.lng b/interface/ispconfig/interface/designer/lib/lang/ru.lng new file mode 100644 index 0000000..29f4a51 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru.lng @@ -0,0 +1,3 @@ +<?php +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng new file mode 100644 index 0000000..f1f6768 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng @@ -0,0 +1,25 @@ +<?php +$wb['name_txt'] = 'Название формы'; +$wb['title_txt'] = 'Заголовок формы'; +$wb['template_txt'] = 'Шаблон'; +$wb['navframe_txt'] = 'Навигация'; +$wb['startpage_txt'] = 'Стартовая страница'; +$wb['tab_width_txt'] = 'Ширина таба'; +$wb['save_txt'] = 'Сохранить'; +$wb['cancel_txt'] = 'Закончить'; +$wb['header_txt'] = 'Свойства формы'; +$wb['description_txt'] = 'Описание'; +$wb['action_txt'] = 'Действие (скрипт)'; +$wb['db_table_txt'] = 'Таблица БД'; +$wb['db_table_idx_txt'] = 'Индекс таблицы БД'; +$wb['db_history_txt'] = 'Undo-лог'; +$wb['tab_default_txt'] = 'Таб по-умолчанию'; +$wb['list_default_txt'] = 'Список по-умолчанию'; +$wb['auth_txt'] = 'Права'; +$wb['auth_preset_userid_txt'] = 'ПользовательID'; +$wb['auth_preset_groupid_txt'] = 'GroupID'; +$wb['auth_preset_perm_user_txt'] = 'Perm. User'; +$wb['auth_preset_perm_group_txt'] = 'Perm. Group'; +$wb['auth_preset_perm_other_txt'] = 'Perm. Other'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng new file mode 100644 index 0000000..d29fdbe --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Backend форма'; +$wb['form_txt'] = 'Форма'; +$wb['module_txt'] = 'Модуль'; +$wb['title_txt'] = 'Заголовок'; +$wb['description_txt'] = 'Описание'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng new file mode 100644 index 0000000..204f866 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng @@ -0,0 +1,19 @@ +<?php +$wb['header_txt'] = 'Редактор форм'; +$wb['title_txt'] = 'Заголовок форм'; +$wb['name_txt'] = 'Имя формы'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Свойства'; +$wb['new_tab_txt'] = 'Новый таб'; +$wb['edit_txt'] = 'Изменить'; +$wb['new_txt'] = 'Новый'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Модуль'; +$wb['form_txt'] = 'Форма'; +$wb['description_txt'] = 'Описание'; +$wb['module_del_txt'] = 'Удалить модули и подкаталоги?'; +$wb['menu_del_txt'] = 'Удалить меню и подменю?'; +$wb['item_del_txt'] = 'Удалить menuitem?'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng new file mode 100644 index 0000000..0b60784 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng @@ -0,0 +1,23 @@ +<?php +$wb['name_txt'] = 'Название модуля'; +$wb['title_txt'] = 'Заголовок модуля'; +$wb['template_txt'] = 'Файл шаблона'; +$wb['navframe_txt'] = 'Навигационный фрейм'; +$wb['startpage_txt'] = 'Страница по-умолчанию'; +$wb['tab_width_txt'] = 'Ширина таба'; +$wb['save_txt'] = 'Сохранить'; +$wb['cancel_txt'] = 'Закончить'; +$wb['header_txt'] = 'Свойства модуля'; +$wb['description_txt'] = ' +<b>Описание</b> +<br><br> +<b>Имя модуля:</b> Имя директории модуля. Допустимо использовать латинские символы, числа и подчеркивание.<br> +<b>Заголовок модуля:</b> Будет отображаться вверху радом с навигацией.<br> +<b>Файл шаблона:</b> Файл шаблона для модуля. Сейчас доступны: module.tpl.htm и module_tree.tpl.htm. По-умолчанию стоит module.tpl.htm.<br> +<b>Навигационный фрейм:</b> Если module_tree.tpl.htm выбран как шаблон, введите здесь путь до скрипта для левого фрейма.<br> +<b>Страница по-умолчанию:</b> Эта страница будет показана, когда открывается модуль.<br> +<b>Ширина таба:</b> Ширина таба в главной навигации. По-умолчанию поле пустое. Вы можете ввести значение в пикселях или в процентах.<br> +<b>Подсказка:</b> Все пути в директории web относительные. +'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng new file mode 100644 index 0000000..e305b40 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Backend модуль'; +$wb['module_txt'] = 'Модуль'; +$wb['title_txt'] = 'Заголовок'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng new file mode 100644 index 0000000..ad02af8 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng @@ -0,0 +1,7 @@ +<?php +$wb['title_txt'] = 'Заголовок'; +$wb['header_txt'] = 'Свойства навигации'; +$wb['save_txt'] = 'Сохранить'; +$wb['cancel_txt'] = 'Отмена'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng new file mode 100644 index 0000000..f42aafd --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng @@ -0,0 +1,9 @@ +<?php +$wb['title_txt'] = 'Заголовок'; +$wb['target_txt'] = 'Цель'; +$wb['link_txt'] = 'Линк'; +$wb['header_txt'] = 'Navi свойства'; +$wb['save_txt'] = 'Сохранить'; +$wb['cancel_txt'] = 'Закончить'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng new file mode 100644 index 0000000..ddb1a5f --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng @@ -0,0 +1,17 @@ +<?php +$wb['header_txt'] = 'Редактор меню'; +$wb['title_txt'] = 'Заголовок'; +$wb['name_txt'] = 'Модуль'; +$wb['delete_txt'] = 'Удалить'; +$wb['properties_txt'] = 'Свойства'; +$wb['new_menu_txt'] = 'Новое меню'; +$wb['edit_txt'] = 'Изменить'; +$wb['new_txt'] = 'Новый'; +$wb['up_txt'] = 'Вверх'; +$wb['down_txt'] = 'Вниз'; +$wb['module_txt'] = 'Модуль'; +$wb['module_del_txt'] = 'Хотите удалить модуль и все, что относится к нему?'; +$wb['menu_del_txt'] = 'Хотите удалить меню вместе с пунктами?'; +$wb['item_del_txt'] = 'Хотите удалить пункт меню?'; +?> + diff --git a/interface/ispconfig/interface/designer/lib/lang/se.lng b/interface/ispconfig/interface/designer/lib/lang/se.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng new file mode 100644 index 0000000..d047ad3 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Formul�rnamn'; +$wb['title_txt'] = 'Formul�rtitel'; +$wb['template_txt'] = 'Mall'; +$wb['navframe_txt'] = 'Nav.Ram'; +$wb['startpage_txt'] = 'Startsida'; +$wb['tab_width_txt'] = 'Flik bredd'; +$wb['save_txt'] = 'Spara'; +$wb['cancel_txt'] = 'Avbryt'; +$wb['header_txt'] = 'Form inst�llningar'; +$wb['description_txt'] = 'Beskrivning'; +$wb['action_txt'] = 'Action (skript)'; +$wb['db_table_txt'] = 'DB Tabell'; +$wb['db_table_idx_txt'] = 'DB Tabell Index'; +$wb['db_history_txt'] = '�ngra Logg'; +$wb['tab_default_txt'] = 'Standard Flik'; +$wb['list_default_txt'] = 'Standard Lista'; +$wb['auth_txt'] = 'Beh�righet'; +$wb['auth_preset_userid_txt'] = 'Anv�ndarID'; +$wb['auth_preset_groupid_txt'] = 'GruppID'; +$wb['auth_preset_perm_user_txt'] = 'Beh. Anv�ndare'; +$wb['auth_preset_perm_group_txt'] = 'Beh. Grupp'; +$wb['auth_preset_perm_other_txt'] = 'Beh. Andra'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng new file mode 100644 index 0000000..8e9268e --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Huvud Formul�r'; +$wb['form_txt'] = 'Formul�r'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'Titel'; +$wb['description_txt'] = 'Beskrivning'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng new file mode 100644 index 0000000..ebd3dd9 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formul�r redigerare'; +$wb['title_txt'] = 'Formul�rtitel'; +$wb['name_txt'] = 'Formul�rnamn'; +$wb['delete_txt'] = 'X'; +$wb['properties_txt'] = 'Inst�llningar'; +$wb['new_tab_txt'] = 'Ny flik'; +$wb['edit_txt'] = 'Editera'; +$wb['new_txt'] = 'Ny'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Modul'; +$wb['form_txt'] = 'Formul�r'; +$wb['description_txt'] = 'Beskrivning'; +$wb['module_del_txt'] = 'Ta bort modulen och alla undermappar?'; +$wb['menu_del_txt'] = 'Ta bort meny och allt menyinneh�ll?'; +$wb['item_del_txt'] = 'Ta bort menyinneh�ll?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng new file mode 100644 index 0000000..ee8361d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modulnamn'; +$wb['title_txt'] = 'Modultitel'; +$wb['template_txt'] = 'Mall fil'; +$wb['navframe_txt'] = 'Nav.Ram'; +$wb['startpage_txt'] = 'Standard sida'; +$wb['tab_width_txt'] = 'Flik bredd'; +$wb['save_txt'] = 'Spara'; +$wb['cancel_txt'] = 'Avbryt'; +$wb['header_txt'] = 'Modul inst�llningar'; +$wb['description_txt'] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Namn p� modul mappen. Endast siffror, bokst�ver och understreck �r till�tna.<br> +<b>Moduletitle:</b> Kommer att visas i (�vre) huvud navigerigsramen.<br> +<b>Template file:</b> Mall fil f�r modulen. Just nu finns: module.tpl.htm och module_tree.tpl.htm. Standard �r module.tpl.htm.<br> +<b>NaviFrame:</b> Om module module_tree.tpl.htm v�ljs som mall file, skriv h�r s�kv�gen till skriptfilen f�r den v�nstra ramen.<br> +<b>Default page:</b> Dessa sidor kommer att visas n�r modulen �ppnas.<br> +<b>Tab width:</b> Bredd p� Flikarna i huvud navigerings ramen. Detta f�lt �r tomt som standard. Du kan skriva in ett absolutv�rde i pixlar (ex. 20) eller relativt v�rde (ex. 20%).<br> +<b>Hint:</b> Alla s�kv�gar �r relativa till mappen web. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng new file mode 100644 index 0000000..0fe0187 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Huvud Modul'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'Titel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng new file mode 100644 index 0000000..17e1563 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Titel'; +$wb['header_txt'] = 'Nav egenskaper'; +$wb['save_txt'] = 'Spara'; +$wb['cancel_txt'] = 'Avbryt'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng new file mode 100644 index 0000000..3bbbfbd --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Titel'; +$wb['target_txt'] = 'M�l'; +$wb['link_txt'] = 'L�nk'; +$wb['header_txt'] = 'Nav egenskaper'; +$wb['save_txt'] = 'Spara'; +$wb['cancel_txt'] = 'Avbryt'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng new file mode 100644 index 0000000..c58df7a --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Meny redigerare'; +$wb['title_txt'] = 'Titel'; +$wb['name_txt'] = 'Modul'; +$wb['delete_txt'] = 'Ta bort'; +$wb['properties_txt'] = 'Egenskaper'; +$wb['new_menu_txt'] = 'Ny Meny'; +$wb['edit_txt'] = 'Editera'; +$wb['new_txt'] = 'Ny'; +$wb['up_txt'] = 'Upp'; +$wb['down_txt'] = 'Ner'; +$wb['module_txt'] = 'Modul'; +$wb['module_del_txt'] = 'Ta bort modulen och alla undermappar?'; +$wb['menu_del_txt'] = 'Ta bort meny och allt menyinneh�ll?'; +$wb['item_del_txt'] = 'Ta bort menyinneh�ll?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk.lng b/interface/ispconfig/interface/designer/lib/lang/sk.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng new file mode 100644 index 0000000..3c72e88 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'N�zov formul�ra'; +$wb['title_txt'] = 'N�zov formul�ra'; +$wb['template_txt'] = '�abl�ny'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = '�vodn� str�nka'; +$wb['tab_width_txt'] = 'Tab ��rka'; +$wb['save_txt'] = 'Ulo�i?'; +$wb['cancel_txt'] = 'Zru�i?'; +$wb['header_txt'] = 'Vlastnosti formul�ra'; +$wb['description_txt'] = 'Popis'; +$wb['action_txt'] = 'Akcie (skript)'; +$wb['db_table_txt'] = 'DB Tabulky'; +$wb['db_table_idx_txt'] = 'DB Tabulky Index'; +$wb['db_history_txt'] = 'Undo Log'; +$wb['tab_default_txt'] = 'Predvolen� Tab'; +$wb['list_default_txt'] = 'Predvolen� List'; +$wb['auth_txt'] = 'Pr�va'; +$wb['auth_preset_userid_txt'] = 'u�iva?e? ID'; +$wb['auth_preset_groupid_txt'] = 'skupina ID'; +$wb['auth_preset_perm_user_txt'] = 'Pr�va u�iva?e?'; +$wb['auth_preset_perm_group_txt'] = 'Pr�va skupina'; +$wb['auth_preset_perm_other_txt'] = 'Pr�va ostatn�'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng new file mode 100644 index 0000000..0e0c2cb --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Backend Formul�r'; +$wb['form_txt'] = 'Formul�r'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'Nadpis'; +$wb['description_txt'] = 'Popis'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng new file mode 100644 index 0000000..042e106 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Formul�r editor'; +$wb['title_txt'] = 'Formul�r str�nok'; +$wb['name_txt'] = 'N�zov formul�ra'; +$wb['delete_txt'] = 'Odstr�ni?'; +$wb['properties_txt'] = 'Vlastnosti'; +$wb['new_tab_txt'] = 'Tab nov�'; +$wb['edit_txt'] = 'Upravi?'; +$wb['new_txt'] = 'Nov�'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Modul'; +$wb['form_txt'] = 'Formul�r'; +$wb['description_txt'] = 'Popis'; +$wb['module_del_txt'] = 'Odstr�ni? modul a vo v�etky podadres�re?'; +$wb['menu_del_txt'] = 'Zmaza? z ponuky polo�ky menu?'; +$wb['item_del_txt'] = 'Zmaza? polo�ky z menu?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng new file mode 100644 index 0000000..320bd14 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng @@ -0,0 +1,12 @@ +<?php +$wb['name_txt'] = 'Meno modulu'; +$wb['title_txt'] = 'N�zov modulu'; +$wb['template_txt'] = '�abl�na s�bor'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'V�chozia str�nka'; +$wb['tab_width_txt'] = 'Tab ��rka'; +$wb['save_txt'] = 'Ulo�i?'; +$wb['cancel_txt'] = 'Zru�i?'; +$wb['header_txt'] = 'Modul vlastnosti'; +$wb['description_txt'] = '<b> Popis </ b> <br> <br> <b> Modulename: </ b> N�zov modulu adres�r. Len ?�sla, znaky a podtr��tko povolen�. <br> <b> Moduletitle: </ b> sa objav� v (hornej) navig�ciu. <br> <b> �abl�na s�boru: </ b> �abl�na s�boru modulu. V s�?asnej dobe s� k dispoz�cii'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng new file mode 100644 index 0000000..4d9cd1e --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Modul backend'; +$wb['module_txt'] = 'Modul'; +$wb['title_txt'] = 'N�zov'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng new file mode 100644 index 0000000..69d4d16 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'N�zov'; +$wb['header_txt'] = 'Navi vlastnosti'; +$wb['save_txt'] = 'Ulo�i?'; +$wb['cancel_txt'] = 'Zru�i?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng new file mode 100644 index 0000000..23f7d15 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Title'; +$wb['target_txt'] = 'Target'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi properties'; +$wb['save_txt'] = 'Save'; +$wb['cancel_txt'] = 'Cancel'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng new file mode 100644 index 0000000..3d62509 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menu editor'; +$wb['title_txt'] = 'N�zov'; +$wb['name_txt'] = 'Modul'; +$wb['delete_txt'] = 'Zmaza?'; +$wb['properties_txt'] = 'Vlastnosti'; +$wb['new_menu_txt'] = 'Menu nov�'; +$wb['edit_txt'] = 'Upravi?'; +$wb['new_txt'] = 'Nov�'; +$wb['up_txt'] = 'Hore'; +$wb['down_txt'] = 'Dolu'; +$wb['module_txt'] = 'Modul'; +$wb['module_del_txt'] = 'Chcete zmazat modul?'; +$wb['menu_del_txt'] = 'Chcete zmazat menu?'; +$wb['item_del_txt'] = 'Chcete zmazat polo�ku?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr.lng b/interface/ispconfig/interface/designer/lib/lang/tr.lng new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr.lng @@ -0,0 +1,2 @@ +<?php +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng new file mode 100644 index 0000000..8288ce8 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng @@ -0,0 +1,24 @@ +<?php +$wb['name_txt'] = 'Form adı'; +$wb['title_txt'] = 'Form başlığı'; +$wb['template_txt'] = 'Şablon'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'İlk sayfa'; +$wb['tab_width_txt'] = 'Sekme genişliği'; +$wb['save_txt'] = 'Kaydet'; +$wb['cancel_txt'] = 'İptal'; +$wb['header_txt'] = 'Form Özellikleri'; +$wb['description_txt'] = 'Açıklama'; +$wb['action_txt'] = 'İşlem (betik)'; +$wb['db_table_txt'] = 'DB Tablo'; +$wb['db_table_idx_txt'] = 'DB Tablo Indeks'; +$wb['db_history_txt'] = 'Logu Geri al'; +$wb['tab_default_txt'] = 'Varsayılan Sekme'; +$wb['list_default_txt'] = 'Varsayılan Liste'; +$wb['auth_txt'] = 'Yetkiler'; +$wb['auth_preset_userid_txt'] = 'KullanıcıID'; +$wb['auth_preset_groupid_txt'] = 'GrupID'; +$wb['auth_preset_perm_user_txt'] = 'Yetkili Kullanıcı'; +$wb['auth_preset_perm_group_txt'] = 'Yetkili Grup'; +$wb['auth_preset_perm_other_txt'] = 'Diğer Yetkililer'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng new file mode 100644 index 0000000..54aa1f4 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Arkaplan Formu'; +$wb['form_txt'] = 'Form'; +$wb['module_txt'] = 'Modül'; +$wb['title_txt'] = 'Başlık'; +$wb['description_txt'] = 'Açıklama'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng new file mode 100644 index 0000000..8efa1df --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng @@ -0,0 +1,18 @@ +<?php +$wb['header_txt'] = 'Form editörü'; +$wb['title_txt'] = 'Form başlığı'; +$wb['name_txt'] = 'Form ismi'; +$wb['delete_txt'] = 'Sil'; +$wb['properties_txt'] = 'Özellikler'; +$wb['new_tab_txt'] = 'Yeni sekme'; +$wb['edit_txt'] = 'Düzenle'; +$wb['new_txt'] = 'Yeni'; +$wb['up_txt'] = '^'; +$wb['down_txt'] = 'v'; +$wb['module_txt'] = 'Modül'; +$wb['form_txt'] = 'Form'; +$wb['description_txt'] = 'Açıklama'; +$wb['module_del_txt'] = 'Bu modülü ve tüm alt dizinlerini silmek istiyor musunuz?'; +$wb['menu_del_txt'] = 'Bu menüyü tüm alt menüleriyle birlikte silmek istiyor musunuz?'; +$wb['item_del_txt'] = 'Bu menü elemanını silmek istiyor musunuz?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng new file mode 100644 index 0000000..92bf93d --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng @@ -0,0 +1,22 @@ +<?php +$wb['name_txt'] = 'Modül adı'; +$wb['title_txt'] = 'Modül başlığı'; +$wb['template_txt'] = 'Şablon dosyası'; +$wb['navframe_txt'] = 'NaviFrame'; +$wb['startpage_txt'] = 'Varsayılan sayfa'; +$wb['tab_width_txt'] = 'Sekme genişliği'; +$wb['save_txt'] = 'Kaydet'; +$wb['cancel_txt'] = 'İptal'; +$wb['header_txt'] = 'Modül özellikleri'; +$wb['description_txt'] = ' +<b>Açıklama</b> +<br><br> +<b>Modül adı:</b> Modül klasörünün adı. Sadece sayı, rakam ve alttan çizgi kullanabilirsiniz.<br> +<b>Modül başlığı:</b> Üst ana menüde gösterilecek olan isim.<br> +<b>Şablon dosyası:</b> Şablon dosyası veya modülü. Şu anda geçerli olan dosyalar: module.tpl.htm ve module_tree.tpl.htm. Varsayılan dosya: module.tpl.htm.<br> +<b>NaviFrame:</b> Eğer module_tree.tpl.htm dosyası şablon dosyası olarak seçilirse, buraya sol frame için betik dosyası yolu girebilirsiniz.<br> +<b>Varsayılan sayfa:</b> Modül açıldığı zaman görünecek sayfa.<br> +<b>Sekme Genişliği:</b> Temel navigasyonun genişliği. Bu alan varsayılan olarak boştur. Siz bir piksel değeri(20 gibi) veya bir oran(20%) değeri girebilirsiniz.<br> +<b>İşaret:</b> Tüm yollar web klasörüyle ilişkilidir.. +'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng new file mode 100644 index 0000000..08c5787 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Arkaplan Modülü'; +$wb['module_txt'] = 'Modül'; +$wb['title_txt'] = 'Başlık'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng new file mode 100644 index 0000000..fd10993 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng @@ -0,0 +1,6 @@ +<?php +$wb['title_txt'] = 'Başlık'; +$wb['header_txt'] = 'Navi özellikleri'; +$wb['save_txt'] = 'Kaydet'; +$wb['cancel_txt'] = 'İptal'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng new file mode 100644 index 0000000..06fe57e --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng @@ -0,0 +1,8 @@ +<?php +$wb['title_txt'] = 'Başlık'; +$wb['target_txt'] = 'Hedef'; +$wb['link_txt'] = 'Link'; +$wb['header_txt'] = 'Navi özellikleri'; +$wb['save_txt'] = 'Kaydet'; +$wb['cancel_txt'] = 'İptal'; +?> diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng new file mode 100644 index 0000000..a40c074 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng @@ -0,0 +1,16 @@ +<?php +$wb['header_txt'] = 'Menü editörü'; +$wb['title_txt'] = 'Başlık'; +$wb['name_txt'] = 'Modül'; +$wb['delete_txt'] = 'Sil'; +$wb['properties_txt'] = 'Özellikler'; +$wb['new_menu_txt'] = 'Yeni Menü'; +$wb['edit_txt'] = 'Düzenle'; +$wb['new_txt'] = 'Yeni'; +$wb['up_txt'] = 'Yukarı'; +$wb['down_txt'] = 'Aşağı'; +$wb['module_txt'] = 'Modül'; +$wb['module_del_txt'] = 'Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse löschen?'; +$wb['menu_del_txt'] = 'Wollen Sie das Menü mit allen Untereinträgen löschen?'; +$wb['item_del_txt'] = 'Wollen Sie den Menüeintrag löschen?'; +?> diff --git a/interface/ispconfig/interface/designer/lib/module.conf.php b/interface/ispconfig/interface/designer/lib/module.conf.php new file mode 100644 index 0000000..16e13c5 --- /dev/null +++ b/interface/ispconfig/interface/designer/lib/module.conf.php @@ -0,0 +1,95 @@ +<?php +$module = array ( + 'name' => 'designer', + 'title' => 'BE Designer', + 'template' => 'module.tpl.htm', + 'navframe_page' => '', + 'startpage' => 'designer/module_list.php', + 'tab_width' => '', + 'nav' => + array ( + 0 => + array ( + 'title' => 'Modules', + 'open' => '1', + 'items' => + array ( + 0 => + array ( + 'title' => 'Add', + 'target' => 'content', + 'link' => 'designer/module_edit.php', + ), + 1 => + array ( + 'title' => 'Edit', + 'target' => 'content', + 'link' => 'designer/module_list.php', + ), + ), + ), + /* + 1 => + array ( + 'title' => 'Formulare', + 'open' => '1', + 'items' => + array ( + 2 => + array ( + 'title' => 'Add', + 'target' => 'content', + 'link' => 'designer/form_edit.php', + ), + 3 => + array ( + 'title' => 'Edit', + 'target' => 'content', + 'link' => 'designer/form_list.php', + ), + ), + ), + 2 => + array ( + 'title' => 'Lists', + 'open' => '1', + 'items' => + array ( + 4 => + array ( + 'title' => 'Add', + 'target' => 'content', + 'link' => 'designer/list_edit.php', + ), + 5 => + array ( + 'title' => 'Edit', + 'target' => 'content', + 'link' => 'designer/list_list.php', + ), + ), + ), + 3 => + array ( + 'title' => 'Languages', + 'open' => '1', + 'items' => + array ( + 6 => + array ( + 'title' => 'Add', + 'target' => 'content', + 'link' => 'designer/lang_edit.php', + ), + 7 => + array ( + 'title' => 'Edit', + 'target' => 'content', + 'link' => 'designer/lang_list.php', + ), + ), + ), + */ + ), +) +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_edit.php b/interface/ispconfig/interface/designer/module_edit.php new file mode 100644 index 0000000..9d0a556 --- /dev/null +++ b/interface/ispconfig/interface/designer/module_edit.php @@ -0,0 +1,183 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_edit.htm'); + +// ID importieren +$id = $_REQUEST["id"]; +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$id)) die("id contains invalid chars."); + +if(count($_POST) > 1) { + // Bestimme aktion + if($id != '') { + $action = 'UPDATE'; + } else { + $action = 'INSERT'; + } + + + if($error == '') { + + $id = $_POST["module"]["name"]; + if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$id)) die("id contains invalid chars."); + + $filename = "../".$id."/lib/module.conf.php"; + $module_new = $_POST["module"]; + + if(@is_file($filename)) { + include_once($filename); + $navi = $module["nav"]; + unset($module); + $module_new["nav"] = $navi; + } + + $m = "<?php\r\n".'$module = '.var_export($module_new,true)."\r\n?>"; + + // creating the module directories + if(!@is_dir("../".$id)) mkdir("../".$id) or die("Cannot make directory: ../".$id); + if(!@is_dir("../".$id."/lib")) mkdir("../".$id."/lib") or die("Cannot make directory: ../".$id."/lib"); + if(!@is_dir("../".$id."/lib/lang")) mkdir("../".$id."/lib/lang") or die("Cannot make directory: ../".$id."/lib/lang"); + if(!@is_dir("../".$id."/form")) mkdir("../".$id."/form") or die("Cannot make directory: ../".$id."/form"); + if(!@is_dir("../".$id."/list")) mkdir("../".$id."/list") or die("Cannot make directory: ../".$id."/list"); + if(!@is_dir("../".$id."/templates")) mkdir("../".$id."/templates") or die("Cannot make directory: ../".$id."/templates"); + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + // writing admin conf + $admin_conf_filename = "../".$id."/lib/admin.conf.php"; + if(!is_file($admin_conf_filename)) { + if (!$handle = fopen($admin_conf_filename, 'w')) { + print "Cannot open file ($admin_conf_filename)"; + exit; + } + + if (!fwrite($handle, "<?php\r\n?>")) { + print "Cannot write to file ($admin_conf_filename)"; + exit; + } + + fclose($handle); + } + + // zu Liste springen + header("Location: module_list.php"); + exit; + + } else { + $app->tpl->setVar("error","<b>Fehler:</b><br>".$error); + $app->tpl->setVar($_POST); + } +} + +if($id != '') { +// Datensatz besteht bereits + // bestehenden Datensatz anzeigen + if($error == '') { + // es liegt ein Fehler vor + include_once("../".$id."/lib/module.conf.php"); + //$navi = $module["nav"]; + unset($module["nav"]); + $record = $module; + } else { + // ein Fehler + $record = $_POST; + //$navi = $_POST["nav"]; + unset($_POST["nav"]); + } + $record["readonly"] = 'style="background-color: #EEEEEE;" readonly'; +} else { +// neuer datensatz + if($error == '') { + // es liegt ein Fehler vor + $record["template"] = "module.tpl.htm"; + } else { + // ein Fehler + $record = $_POST; + //$navi = $_POST["nav"]; + unset($_POST["nav"]); + + } + $record["readonly"] = ''; +} + +$record["id"] = $id; + +/* +// baue Modul navi +$content = ""; +$n1 = 0; +$n2 = 0; +foreach($navi as $section) { + $content .= "<tr><td bgcolor='#EEEEEE' class='frmText11'>Bereich:</td><td class='frmText11' bgcolor='#EEEEEE'><input name=\"module[nav][$n1][title]\" type=\"text\" class=\"text\" value=\"$section[title]\" size=\"30\" maxlength=\"255\"><input name=\"module[nav][$n1][open]\" type=\"hidden\" value=\"$section[open]\"></td></tr>\r\n"; + foreach($section["items"] as $item) { + $content .= "<tr><td class='frmText11'>Titel:</td><td class='frmText11'><input name=\"module[nav][$n1][items][$n2][title]\" type=\"text\" class=\"text\" value=\"$item[title]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + $content .= "<tr><td class='frmText11'>Ziel:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][target]\" type=\"text\" class=\"text\" value=\"$item[target]\" size=\"10\" maxlength=\"255\"></td></tr>\r\n"; + $content .= "<tr><td class='frmText11'>Link:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][link]\" type=\"text\" class=\"text\" value=\"$item[link]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + $n2++; + } + $n1++; +} + +$record["nav"] = $content; +*/ + +$app->tpl->setVar($record); + +include_once("lib/lang/".$_SESSION["s"]["language"]."_module_edit.lng"); +$app->tpl->setVar($wb); + +// Defaultwerte setzen +$app->tpl_defaults(); + +// Template parsen +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_list.php b/interface/ispconfig/interface/designer/module_list.php new file mode 100644 index 0000000..4806f07 --- /dev/null +++ b/interface/ispconfig/interface/designer/module_list.php @@ -0,0 +1,69 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +$app->uses('tpl'); + +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl','templates/module_list.htm'); + +//* Pick out modules +$bgcolor = '#FFFFFF'; +$modules_list = array(); +$handle = @opendir(ISPC_WEB_PATH); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_dir(ISPC_WEB_PATH."/$file")) { + if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') { + include_once(ISPC_WEB_PATH."/$file/lib/module.conf.php"); + $modules_list[] = array( 'module' => $module['name'], + 'title' => $module['title'], + 'bgcolor' => ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF' + ); + } + } + } +} + +$app->tpl->setLoop('records', $modules_list); + +//* loading language file +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_module_list.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_del.php b/interface/ispconfig/interface/designer/module_nav_del.php new file mode 100644 index 0000000..dfbe761 --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_del.php @@ -0,0 +1,80 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm'); + +// ID importieren +$module_name = $_REQUEST["module_name"]; +$nav_id = $_REQUEST["nav_id"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$nav_id)) die("nav_id contains invalid chars."); + +if(empty($module_name)) die("module is empty."); + +if($nav_id != '') { + + $filename = "../".$module_name."/lib/module.conf.php"; + + if(!@is_file($filename)) die("File not found: $filename"); + include_once($filename); + + unset($module["nav"][$nav_id]); + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + + // zu Liste springen + header("Location: module_show.php?id=$module_name"); + exit; +} +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_edit.php b/interface/ispconfig/interface/designer/module_nav_edit.php new file mode 100644 index 0000000..d97cd5e --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_edit.php @@ -0,0 +1,146 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Security checkpoint +if($_SESSION['s']['user']['typ'] != 'admin'){ + die('Admin permissions required.'); +} + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +//* Load template +$app->uses('tpl'); +$app->tpl->newTemplate('form.tpl.htm'); +$app->tpl->setInclude('content_tpl', 'templates/module_nav_edit.htm'); + +// TODO: Check module and nav_id for malicius chars, nav_id can be empty or any number, even 0 +$module_name = $_REQUEST['module_name']; +$nav_id = $_REQUEST['nav_id']; + +//** Sanity checks of module +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/', $module_name)){ + die('module_name contains invalid chars.'); +} +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/', $nav_id)){ + die('nav_id contains invalid chars.'); +} +if(empty($module_name)){ + die('module is empty.'); +} + +if(count($_POST) > 0) { + //* Determine Action + $action = ($nav_id != '') ? 'UPDATE' : 'INSERT'; + $error = ''; + + // TODO: Check variables + + if($error == '') { + + $filename = '../'.$module_name.'/lib/module.conf.php'; + + if(!@is_file($filename)){ + die("File not found: $filename"); + } + include_once($filename); + + $items = ($action == 'UPDATE') ? $module['nav'][$nav_id]['items'] : array(); + + $tmp = array('title' => $_POST['nav']['title'], + 'open' => 1, + 'items' => $items); + + if($action == 'UPDATE') { + $module['nav'][$nav_id] = $tmp; + } else { + $module['nav'][] = $tmp; + } + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + //* writing module.conf + if (!$handle = fopen($filename, 'w')) { + die("Cannot open file ($filename)"); + } + + if (!fwrite($handle, $m)) { + die("Cannot write to file ($filename)"); + } + + fclose($handle); + + + //* Jump to list + header('Location: module_show.php?id='.urlencode($module_name)); + exit; + + } else { + $app->tpl->setVar('error', '<b>Fehler:</b><br>'.$error); + $app->tpl->setVar($_POST); + } +} + +if($nav_id != '') { + //* Data record exists + if($error == '') { + include_once('../'.$module_name.'/lib/module.conf.php'); + $record = $module['nav'][$nav_id]; + } else { + //* error + $record = $_POST; + } + //$record["readonly"] = 'style="background-color: #EEEEEE;" readonly'; +} else { + //* New data record + if($error == '') { + //* es liegt kein Fehler vor + } else { + //* error + $record = $_POST; + + } + //$record["readonly"] = ''; +} + +$record['nav_id'] = $nav_id; +$record['module_name'] = $module_name; + +$app->tpl->setVar($record); + +include_once('lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng'); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_flip.php b/interface/ispconfig/interface/designer/module_nav_flip.php new file mode 100644 index 0000000..f20dd63 --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_flip.php @@ -0,0 +1,91 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm'); + +// ID importieren +$module_name = $_REQUEST["module_name"]; +$nav_id = $_REQUEST["nav_id"]; +$dir = $_REQUEST["dir"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$nav_id)) die("nav_id contains invalid chars."); + +if(empty($module_name)) die("module is empty."); + +if($nav_id != '') { + + $filename = "../".$module_name."/lib/module.conf.php"; + + if(!@is_file($filename)) die("File not found: $filename"); + include_once($filename); + + if($dir == 'up' and $nav_id > 0) { + $tmp = $module["nav"][$nav_id - 1]; + $module["nav"][$nav_id - 1] = $module["nav"][$nav_id]; + $module["nav"][$nav_id] = $tmp; + } + + if($dir == 'down' and $nav_id < count($module["nav"]) -1) { + $tmp = $module["nav"][$nav_id + 1]; + $module["nav"][$nav_id + 1] = $module["nav"][$nav_id]; + $module["nav"][$nav_id] = $tmp; + } + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + + // zu Liste springen + echo "HEADER_REDIRECT:designer/module_show.php?id=$module_name"; + exit; +} +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_item_del.php b/interface/ispconfig/interface/designer/module_nav_item_del.php new file mode 100644 index 0000000..d941f5b --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_item_del.php @@ -0,0 +1,82 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm'); + +// ID importieren +$module_name = $_REQUEST["module_name"]; +$nav_id = $_REQUEST["nav_id"]; +$item_id = $_REQUEST["item_id"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars."); + +if(empty($module_name)) die("module is empty."); + +if($nav_id != '') { + + $filename = "../".$module_name."/lib/module.conf.php"; + + if(!@is_file($filename)) die("File not found: $filename"); + include_once($filename); + + unset($module["nav"][$nav_id]["items"][$item_id]); + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + + // zu Liste springen + header("Location: module_show.php?id=$module_name"); + exit; +} +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_item_edit.php b/interface/ispconfig/interface/designer/module_nav_item_edit.php new file mode 100644 index 0000000..d270d99 --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_item_edit.php @@ -0,0 +1,150 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_nav_item_edit.htm'); + +// ID importieren +$module_name = $_REQUEST["module_name"]; +$nav_id = $_REQUEST["nav_id"]; +$item_id = $_REQUEST["item_id"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars."); + +if(empty($module_name)) die("module is empty."); + +if(count($_POST) > 0) { + // Bestimme aktion + if($item_id != '') { + $action = 'UPDATE'; + } else { + $action = 'INSERT'; + } + + $error = ''; + + // TODO: Check variables + + + if($error == '') { + + $filename = "../".$module_name."/lib/module.conf.php"; + + if(!@is_file($filename)) die("File not found: $filename"); + include_once($filename); + + $tmp = array('title' =>$_POST["title"], + 'target' => $_POST["target"], + 'link' => $_POST["link"]); + + if($action == 'UPDATE') { + $module["nav"][$nav_id]["items"][$item_id] = $tmp; + } else { + $module["nav"][$nav_id]["items"][] = $tmp; + } + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + + // zu Liste springen + header("Location: module_show.php?id=$module_name"); + exit; + + } else { + $app->tpl->setVar("error","<b>Fehler:</b><br>".$error); + $app->tpl->setVar($_POST); + } +} + +if($item_id != '') { +// Datensatz besteht bereits + // bestehenden Datensatz anzeigen + if($error == '') { + // es liegt ein Fehler vor + include_once("../".$module_name."/lib/module.conf.php"); + $record = $module["nav"][$nav_id]["items"][$item_id]; + } else { + // ein Fehler + $record = $_POST; + } + //$record["readonly"] = 'style="background-color: #EEEEEE;" readonly'; +} else { +// neuer datensatz + if($error == '') { + // es liegt kein Fehler vor + $record["target"] = "content"; + } else { + // ein Fehler + $record = $_POST; + + } + //$record["readonly"] = ''; +} + +$record["item_id"] = $item_id; +$record["nav_id"] = $nav_id; +$record["module_name"] = $module_name; + +$app->tpl->setVar($record); + +include_once("lib/lang/".$_SESSION["s"]["language"]."_module_nav_item_edit.lng"); +$app->tpl->setVar($wb); + +// Defaultwerte setzen +$app->tpl_defaults(); + +// Template parsen +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_nav_item_flip.php b/interface/ispconfig/interface/designer/module_nav_item_flip.php new file mode 100644 index 0000000..21bc68c --- /dev/null +++ b/interface/ispconfig/interface/designer/module_nav_item_flip.php @@ -0,0 +1,93 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +// Lade Template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm'); + +// ID importieren +$module_name = $_REQUEST["module_name"]; +$nav_id = $_REQUEST["nav_id"]; +$item_id = $_REQUEST["item_id"]; +$dir = $_REQUEST["dir"]; + +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars."); +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars."); + +if(empty($module_name)) die("module is empty."); + +if($nav_id != '') { + + $filename = "../".$module_name."/lib/module.conf.php"; + + if(!@is_file($filename)) die("File not found: $filename"); + include_once($filename); + + if($dir == 'up' and $item_id > 0) { + $tmp = $module["nav"][$nav_id]["items"][$item_id - 1]; + $module["nav"][$nav_id]["items"][$item_id -1] = $module["nav"][$nav_id]["items"][$item_id]; + $module["nav"][$nav_id]["items"][$item_id] = $tmp; + } + + if($dir == 'down' and $item_id < count($module["nav"][$nav_id]["items"]) -1) { + $tmp = $module["nav"][$nav_id]["items"][$item_id + 1]; + $module["nav"][$nav_id]["items"][$item_id + 1] = $module["nav"][$nav_id]["items"][$item_id]; + $module["nav"][$nav_id]["items"][$item_id] = $tmp; + } + + $m = "<?php\r\n".'$module = '.var_export($module,true)."\r\n?>"; + + // writing module.conf + if (!$handle = fopen($filename, 'w')) { + print "Cannot open file ($filename)"; + exit; + } + if (!fwrite($handle, $m)) { + print "Cannot write to file ($filename)"; + exit; + } + + fclose($handle); + + + // zu Liste springen + header("Location: module_show.php?id=$module_name"); + exit; +} +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/module_show.php b/interface/ispconfig/interface/designer/module_show.php new file mode 100644 index 0000000..a8a3b3e --- /dev/null +++ b/interface/ispconfig/interface/designer/module_show.php @@ -0,0 +1,113 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('designer'); + +if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); + +$app->uses('tpl'); + +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/module_show.htm'); + + +$module_name = $_REQUEST["id"]; +if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$module_name)) die("id contains invalid chars."); + +include_once("../".$module_name."/lib/module.conf.php"); +$navi = $module["nav"]; +unset($module["nav"]); +$record = $module; + +// loading language file +$lng_file = "lib/lang/".$_SESSION["s"]["user"]["language"]."_module_show.lng"; +include($lng_file); +$app->tpl->setVar($wb); + +// baue Modul navi +$content = ""; +$n1 = 0; +$n2 = 0; +if(is_array($navi)) { +foreach($navi as $nav_id => $section) { + $content .= "<tr> + <td colspan='2' class='frmText11'> + <table width='100%'> + <tr> + <td class='tblHead'>$section[title]</td> + <td class='tblHead' width='280' align='right'> + <input type=\"button\" name=\"bt1$n2\" value=\"$wb[edit_txt]\" onClick=\"loadContent('designer/module_nav_edit.php?module_name=$module_name&nav_id=$nav_id');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt2$n2\" value=\"$wb[delete_txt]\" onClick=\"del_record('designer/module_nav_del.php?module_name=$module_name&nav_id=$nav_id');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt3$n2\" value=\"$wb[new_txt]\" onClick=\"loadContent('designer/module_nav_item_edit.php?module_name=$module_name&nav_id=$nav_id');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt4$n2\" value=\"$wb[up_txt]\" onClick=\"loadContent('designer/module_nav_flip.php?module_name=$module_name&nav_id=$nav_id&dir=up');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt5$n2\" value=\"$wb[down_txt]\" onClick=\"loadContent('designer/module_nav_flip.php?module_name=$module_name&nav_id=$nav_id&dir=down');\" class=\"button\" /><div class=\"buttonEnding\"></div> + </td> + </tr>"; + //$content .= "<tr><td bgcolor='#EEEEEE' class='frmText11'>Bereich:</td><td class='frmText11' bgcolor='#EEEEEE'><input name=\"module[nav][$n1][title]\" type=\"text\" class=\"text\" value=\"$section[title]\" size=\"30\" maxlength=\"255\"><input name=\"module[nav][$n1][open]\" type=\"hidden\" value=\"$section[open]\"></td></tr>\r\n"; + foreach($section["items"] as $item_id => $item) { + //$content .= "<tr><td class='frmText11'>Titel:</td><td class='frmText11'><input name=\"module[nav][$n1][items][$n2][title]\" type=\"text\" class=\"text\" value=\"$item[title]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + //$content .= "<tr><td class='frmText11'>Ziel:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][target]\" type=\"text\" class=\"text\" value=\"$item[target]\" size=\"10\" maxlength=\"255\"></td></tr>\r\n"; + //$content .= "<tr><td class='frmText11'>Link:</td><td class='frmText11'> <input name=\"module[nav][$n1][items][$n2][link]\" type=\"text\" class=\"text\" value=\"$item[link]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n"; + $content .= "<tr> + <td class='frmText11'>$item[title]</td> + <td class='frmText11' width='280' align='right'> + <input type=\"button\" name=\"bt6$n2\" value=\"$wb[edit_txt]\" onClick=\"loadContent('designer/module_nav_item_edit.php?module_name=$module_name&nav_id=$nav_id&item_id=$item_id');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt7$n2\" value=\"$wb[delete_txt]\" onClick=\"del_record('designer/module_nav_item_del.php?module_name=$module_name&nav_id=$nav_id&item_id=$item_id');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt8$n2\" value=\"$wb[up_txt]\" onClick=\"loadContent('designer/module_nav_item_flip.php?module_name=$module_name&nav_id=$nav_id&item_id=$item_id&dir=up');\" class=\"button\" /><div class=\"buttonEnding\"></div> + <input type=\"button\" name=\"bt9$n2\" value=\"$wb[down_txt]\" onClick=\"loadContent('designer/module_nav_item_flip.php?module_name=$module_name&nav_id=$nav_id&item_id=$item_id&dir=down');\" class=\"button\" /><div class=\"buttonEnding\"></div> + </td> + </tr>"; + $n2++; + } + $content .= "<tr><td colspan='2' class='tblFooter'> </td></tr> + </table> + </td> + </tr>"; + $n1++; +} +} + +$record["nav"] = $content; + + +$app->tpl->setVar($record); + + +$app->tpl->setLoop('records',$modules_list); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/form_edit.htm b/interface/ispconfig/interface/designer/templates/form_edit.htm new file mode 100644 index 0000000..4d1c991 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/form_edit.htm @@ -0,0 +1,79 @@ +<form method="POST" action="form_edit.php"> +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<table width="500" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td> + <td width="366" class="frmText11"><input name="form[name]" type="text" class="text" value="{tmpl_var name='name'}" size="20" maxlength="50" {tmpl_var name='readonly'}></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11"><input name="form[title]" type="text" class="text" value="{tmpl_var name='title'}" size="20" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="description_txt">:</td> + <td width="366" class="frmText11"><input name="form[description]" type="text" class="text" value="{tmpl_var name='description'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="action_txt">:</td> + <td width="366" class="frmText11"><input name="form[action]" type="text" class="text" value="{tmpl_var name='action'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="db_table_txt">:</td> + <td width="366" class="frmText11"><input name="form[db_table]" type="text" class="text" value="{tmpl_var name='db_table'}" size="10" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="db_table_idx_txt">:</td> + <td width="366" class="frmText11"><input name="form[db_table_idx]" type="text" class="text" value="{tmpl_var name='db_table_idx'}" size="10" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="db_history_txt">:</td> + <td width="366" class="frmText11"><input name="form[db_history]" type="text" class="text" value="{tmpl_var name='db_history'}" size="3" maxlength="3"> yes / no</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="tab_default_txt">:</td> + <td width="366" class="frmText11"><input name="form[tab_default]" type="text" class="text" value="{tmpl_var name='tab_default'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="list_default_txt">:</td> + <td width="366" class="frmText11"><input name="form[list_default]" type="text" class="text" value="{tmpl_var name='list_default'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth]" type="text" class="text" value="{tmpl_var name='auth'}" size="3" maxlength="3"> yes / no</td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_preset_userid_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth_preset][userid]" type="text" class="text" value="{tmpl_var name='auth_preset_userid'}" size="4" maxlength="4"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_preset_groupid_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth_preset][groupid]" type="text" class="text" value="{tmpl_var name='auth_preset_groupid'}" size="4" maxlength="4"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_preset_perm_user_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth_preset][perm_user]" type="text" class="text" value="{tmpl_var name='auth_preset_perm_user'}" size="4" maxlength="4"> r = read, i = insert, u = update, d = delete</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_preset_perm_group_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth_preset][perm_group]" type="text" class="text" value="{tmpl_var name='auth_preset_perm_group'}" size="4" maxlength="4"> r = read, i = insert, u = update, d = delete</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="auth_preset_perm_other_txt">:</td> + <td width="366" class="frmText11"><input name="form[auth_preset][perm_other]" type="text" class="text" value="{tmpl_var name='auth_preset_perm_other'}" size="4" maxlength="4"> r = read, i = insert, u = update, d = delete</td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tr> + <td> </td> + <td><input name="Speichern" type="submit" class="button" value="{tmpl_var name='save_txt'}"> + <input name="Abbrechen" type="button" class="button" value="{tmpl_var name='cancel_txt'}" onClick="self.location.href='form_list.php';"> + </td> + </tr> +</table> +<input type="hidden" name="module_name" value="{tmpl_var name='module_name'}"> +<input type="hidden" name="form_name" value="{tmpl_var name='form_name'}"> +</form> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/form_list.htm b/interface/ispconfig/interface/designer/templates/form_list.htm new file mode 100644 index 0000000..57506e8 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/form_list.htm @@ -0,0 +1,24 @@ +<form name="myform" action="form_list.php" method="POST"> +<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br /> +<table width="100%" border="0" cellspacing="0" cellpadding="4"> + <tr> + <td class="tblHead"><tmpl_var name="form_txt"></td> + <td class="tblHead"><tmpl_var name="title_txt"></td> + <td class="tblHead"><tmpl_var name="module_txt"></td> + <td class="tblHead"><tmpl_var name="description_txt"></td> + <td class="tblHead"> </td> + </tr> + <tmpl_loop name="records"> + <tr bgcolor="{tmpl_var name="bgcolor"}"> + <td class="frmText11"><a href="form_show.php?form_name={tmpl_var name='name'}&module_name={tmpl_var name='module_name'}" class="frmText11">{tmpl_var name="name"}</a></td> + <td class="frmText11"><a href="form_show.php?form_name={tmpl_var name='name'}&module_name={tmpl_var name='module_name'}" class="frmText11">{tmpl_var name="title"}</a></td> + <td class="frmText11"><a href="form_show.php?form_name={tmpl_var name='name'}&module_name={tmpl_var name='module_name'}" class="frmText11">{tmpl_var name="module_name"}</a></td> + <td class="frmText11"><a href="form_show.php?form_name={tmpl_var name='name'}&module_name={tmpl_var name='module_name'}" class="frmText11">{tmpl_var name="description"}</a></td> + <td class="frmText11" align="right">[<a href="javascript: del_record('form_del.php?form_name={tmpl_var name='module'}&module_name={tmpl_var name='module_name'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">Delete</a>]</td> + </tr> + </tmpl_loop> + <tr> + <td colspan="7" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td> + </tr> +</table> +</form> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/form_show.htm b/interface/ispconfig/interface/designer/templates/form_show.htm new file mode 100644 index 0000000..b104070 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/form_show.htm @@ -0,0 +1,61 @@ +<script language="JavaScript"> +<!-- +function del_module(link) { + if(window.confirm("{tmpl_var name='module_del_txt'}")) { + location.href = link; + } +} +function del_menu(link) { + if(window.confirm("{tmpl_var name='menu_del_txt'}")) { + location.href = link; + } +} +function del_menuitem(link) { + if(window.confirm("{tmpl_var name='item_del_txt'}")) { + location.href = link; + } +} + +//--> +</script> +<form name="myform" action="module_show.php" method="POST"> +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<fieldset style="width:320px;"><legend class="frmText11"><b>{tmpl_var name='form_txt'}</b></legend> +<table border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11">{tmpl_var name='title'}</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td> + <td width="366" class="frmText11">{tmpl_var name='form_name'}</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="module_txt">:</td> + <td width="366" class="frmText11">{tmpl_var name='module_name'}</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="description_txt">:</td> + <td width="366" class="frmText11" valign="top">{tmpl_var name='description'}</td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tr> + <td colspan="2" class="frmText11"> + <input type="button" name="ed1" value="{tmpl_var name='properties_txt'}" onClick="location.href='form_edit.php?form_name={tmpl_var name='form_name'}&module_name={tmpl_var name='module_name'}'" class="button" /> + <input type="button" name="ed2" value="{tmpl_var name='delete_txt'}" onClick="del_module('form_del.php?form_name={tmpl_var name='form_name'}&module_name={tmpl_var name='module_name'}');" class="button" /> + <input type="button" name="ed3" value="{tmpl_var name='new_tab_txt'}" onClick="location.href='form_tab_edit.php?form_name={tmpl_var name='form_name'}&module_name={tmpl_var name='module_name'}'" class="button" /></td> + </tr> +</table> +</fieldset> +<table width="350" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tmpl_var name="nav"> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> +</table> +</form> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/module_edit.htm b/interface/ispconfig/interface/designer/templates/module_edit.htm new file mode 100644 index 0000000..2464f5f --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/module_edit.htm @@ -0,0 +1,43 @@ +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<table width="500" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td> + <td width="366" class="frmText11"><input name="module[name]" type="text" class="text" value="{tmpl_var name='name'}" size="30" maxlength="50" {tmpl_var name='readonly'}></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11"><input name="module[title]" type="text" class="text" value="{tmpl_var name='title'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="template_txt">:</td> + <td width="366" class="frmText11"><input name="module[template]" type="text" class="text" value="{tmpl_var name='template'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="navframe_txt">:</td> + <td width="366" class="frmText11"><input name="module[navframe_page]" type="text" class="text" value="{tmpl_var name='navframe_page'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="startpage_txt">:</td> + <td width="366" class="frmText11"><input name="module[startpage]" type="text" class="text" value="{tmpl_var name='startpage'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="tab_width_txt">:</td> + <td width="366" class="frmText11"><input name="module[tab_width]" type="text" class="text" value="{tmpl_var name='tab_width'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> <inp</td> + </tr> + <tr> + <td> </td> + <td><input name="Speichern" type="button" class="button" value="{tmpl_var name='save_txt'}" onClick="submitForm('pageForm','designer/module_edit.php');"><div class="buttonEnding"></div> + <input name="Abbrechen" type="button" class="button" value="{tmpl_var name='cancel_txt'}" onClick="loadContent('designer/module_list.php');"><div class="buttonEnding"></div> + </td> + </tr> + <tr> + <td colspan="2" class="frmText11"><tmpl_var name="description_txt"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> +</table> +<input type="hidden" name="id" value="{tmpl_var name='id'}"> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/module_list.htm b/interface/ispconfig/interface/designer/templates/module_list.htm new file mode 100644 index 0000000..1198d1c --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/module_list.htm @@ -0,0 +1,18 @@ +<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br /> +<table width="100%" border="0" cellspacing="0" cellpadding="4"> + <tr> + <td class="tblHead"><tmpl_var name="module_txt"></td> + <td class="tblHead"><tmpl_var name="title_txt"></td> + <td class="tblHead"> </td> + </tr> + <tmpl_loop name="records"> + <tr bgcolor="{tmpl_var name="bgcolor"}"> + <td class="frmText11"><a href="javascript:loadContent('designer/module_show.php?id={tmpl_var name='module'}');" class="frmText11">{tmpl_var name="module"}</a></td> + <td class="frmText11"><a href="javascript:loadContent('designer/module_show.php?id={tmpl_var name='module'}');" class="frmText11">{tmpl_var name="title"}</a></td> + <td class="frmText11" align="right">[<a href="javascript: del_record('module_del.php?id={tmpl_var name='module'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">Delete</a>]</td> + </tr> + </tmpl_loop> + <tr> + <td colspan="5" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td> + </tr> +</table> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/module_nav_edit.htm b/interface/ispconfig/interface/designer/templates/module_nav_edit.htm new file mode 100644 index 0000000..5c46350 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/module_nav_edit.htm @@ -0,0 +1,24 @@ +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<table width="500" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11"><input name="nav[title]" type="text" class="text" value="{tmpl_var name='title'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> <inp</td> + </tr> + <tr> + <td> </td> + <td><input name="Speichern" type="button" class="button" value="{tmpl_var name='save_txt'}" onClick="submitForm('pageForm','designer/module_nav_edit.php');"><div class="buttonEnding"></div> + <input name="Abbrechen" type="button" class="button" value="{tmpl_var name='cancel_txt'}" onClick="loadContent('designer/module_list.php');"><div class="buttonEnding"></div> + </td> + </tr> + <tr> + <td colspan="2" class="frmText11"><tmpl_var name="description_txt"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> +</table> +<input type="hidden" name="nav_id" value="{tmpl_var name='nav_id'}"> +<input type="hidden" name="module_name" value="{tmpl_var name='module_name'}"> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm b/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm new file mode 100644 index 0000000..7ddcd19 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm @@ -0,0 +1,33 @@ +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<table width="500" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11"><input name="title" type="text" class="text" value="{tmpl_var name='title'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="target_txt">:</td> + <td width="366" class="frmText11"><input name="target" type="text" class="text" value="{tmpl_var name='target'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="link_txt">:</td> + <td width="366" class="frmText11"><input name="link" type="text" class="text" value="{tmpl_var name='link'}" size="30" maxlength="255"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> <inp</td> + </tr> + <tr> + <td> </td> + <td><input name="Speichern" type="button" class="button" value="{tmpl_var name='save_txt'}" onClick="submitForm('pageForm','designer/module_nav_item_edit.php');"><div class="buttonEnding"></div> + <input name="Abbrechen" type="button" class="button" value="{tmpl_var name='cancel_txt'}" onClick="loadContent('designer/module_list.php');"><div class="buttonEnding"></div> + </td> + </tr> + <tr> + <td colspan="2" class="frmText11"><tmpl_var name="description_txt"></td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> +</table> +<input type="hidden" name="item_id" value="{tmpl_var name='item_id'}"> +<input type="hidden" name="nav_id" value="{tmpl_var name='nav_id'}"> +<input type="hidden" name="module_name" value="{tmpl_var name='module_name'}"> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/module_show.htm b/interface/ispconfig/interface/designer/templates/module_show.htm new file mode 100644 index 0000000..8b26172 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/module_show.htm @@ -0,0 +1,31 @@ +<div class="frmTextHead"><tmpl_var name="header_txt"></div><br /> +<fieldset style="width:250px;"><legend class="frmText11"><b>{tmpl_var name='module_txt'}</b></legend> +<table border="0" cellspacing="0" cellpadding="2"> + <tr> + <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td> + <td width="366" class="frmText11">{tmpl_var name='title'}</td> + </tr> + <tr> + <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td> + <td width="366" class="frmText11">{tmpl_var name='name'}</td> + </tr> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tr> + <td colspan="2" class="frmText11"> + <input type="button" name="ed1" value="{tmpl_var name='properties_txt'}" onClick="loadContent('designer/module_edit.php?id={tmpl_var name='name'}')" class="button" /><div class="buttonEnding"></div> + <input type="button" name="ed2" value="{tmpl_var name='delete_txt'}" onClick="del_record('designer/module_del.php?id={tmpl_var name='name'}');" class="button" /><div class="buttonEnding"></div> + <input type="button" name="ed3" value="{tmpl_var name='new_menu_txt'}" onClick="loadContent('designer/module_nav_edit.php?module_name={tmpl_var name='name'}')" class="button" /><div class="buttonEnding"></div></td> + </tr> +</table> +</fieldset> +<table width="500" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> + <tmpl_var name="nav"> + <tr> + <td colspan="2" class="frmText11"> </td> + </tr> +</table> \ No newline at end of file diff --git a/interface/ispconfig/interface/designer/templates/paging.tpl.htm b/interface/ispconfig/interface/designer/templates/paging.tpl.htm new file mode 100644 index 0000000..cb82704 --- /dev/null +++ b/interface/ispconfig/interface/designer/templates/paging.tpl.htm @@ -0,0 +1,9 @@ +[ <a href='{tmpl_var name="list_file"}?page=0'>|<< </a>] +<tmpl_if name="show_page_back"> + [<< <a href='{tmpl_var name="list_file"}?page={tmpl_var name="last_page"}'>Zur�ck</a>] +</tmpl_if> + Seite {tmpl_var name="next_page"} von {tmpl_var name="max_pages"} +<tmpl_if name="show_page_next"> + [<a href='{tmpl_var name="list_file"}?page={tmpl_var name="next_page"}'>Weiter >></a>] +</tmpl_if> + [<a href='{tmpl_var name="list_file"}?page={tmpl_var name="pages"}'> >>| </a>] \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_a_edit.php b/interface/ispconfig/interface/dns/dns_a_edit.php new file mode 100644 index 0000000..3bd8dec --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_a_edit.php @@ -0,0 +1,144 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_a.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + //* Check for duplicates where IP and hostname are the same + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE type = 'A' AND name = '".$this->dataRecord["name"]."' AND zone = '".$this->dataRecord["zone"]."' and data = '".$this->dataRecord["data"]."' and id != ".$this->id); + if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>"; + unset($tmp); + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_a_list.php b/interface/ispconfig/interface/dns/dns_a_list.php new file mode 100644 index 0000000..681e158 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_a_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_a.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "type = 'A'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_aaaa_edit.php b/interface/ispconfig/interface/dns/dns_aaaa_edit.php new file mode 100644 index 0000000..97a3565 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_aaaa_edit.php @@ -0,0 +1,139 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_aaaa.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_alias_edit.php b/interface/ispconfig/interface/dns/dns_alias_edit.php new file mode 100644 index 0000000..676d439 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_alias_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_alias.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_cname_edit.php b/interface/ispconfig/interface/dns/dns_cname_edit.php new file mode 100644 index 0000000..96e6453 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_cname_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_cname.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_hinfo_edit.php b/interface/ispconfig/interface/dns/dns_hinfo_edit.php new file mode 100644 index 0000000..cafbede --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_hinfo_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_hinfo.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_mx_edit.php b/interface/ispconfig/interface/dns/dns_mx_edit.php new file mode 100644 index 0000000..889d795 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_mx_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_mx.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_ns_edit.php b/interface/ispconfig/interface/dns/dns_ns_edit.php new file mode 100644 index 0000000..5fa65c9 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_ns_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_ns.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_ptr_edit.php b/interface/ispconfig/interface/dns/dns_ptr_edit.php new file mode 100644 index 0000000..04f1b2e --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_ptr_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_ptr.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_rp_edit.php b/interface/ispconfig/interface/dns/dns_rp_edit.php new file mode 100644 index 0000000..10c6112 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_rp_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_rp.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_rr_del.php b/interface/ispconfig/interface/dns/dns_rr_del.php new file mode 100644 index 0000000..7a0b92d --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_rr_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_a.list.php"; +$tform_def_file = "form/dns_a.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_soa_del.php b/interface/ispconfig/interface/dns/dns_soa_del.php new file mode 100644 index 0000000..38e35bd --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_soa_del.php @@ -0,0 +1,69 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_soa.list.php"; +$tform_def_file = "form/dns_soa.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission')); + + // Delete all records that belog to this zone. + $records = $app->db->queryAllRecords("SELECT id FROM dns_rr WHERE zone = '".intval($this->id)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('dns_rr','id',$rec['id']); + } + } +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_soa_edit.php b/interface/ispconfig/interface/dns/dns_soa_edit.php new file mode 100644 index 0000000..6bfad69 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_soa_edit.php @@ -0,0 +1,222 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_soa.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_dns_zone')) { + $app->error($app->tform->wordbook["limit_dns_zone_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_dns_zone')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_dns_zone_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + // If user is admin, we will allow him to select to whom this record belongs + if($_SESSION["s"]["user"]["typ"] == 'admin') { + // Getting Domains of the user + $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER by name"; + $clients = $app->db->queryAllRecords($sql); + $client_select = ''; + if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= "<option value='0'></option>"; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = ($client["groupid"] == @$tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + } else if($app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client.client_id, client.contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name"; + $clients = $app->db->queryAllRecords($sql); + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_zone, default_dnsserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // When the record is updated + if($this->id > 0) { + // restore the server ID if the user is not admin and record is edited + $tmp = $app->db->queryOneRecord("SELECT server_id FROM dns_soa WHERE id = ".intval($this->id)); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + // When the record is inserted + } else { + // set the server ID to the default dnsserver of the client + $this->dataRecord["server_id"] = $client["default_dnsserver"]; + + // Check if the user may add another maildomain. + if($client["limit_dns_zone"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_soa WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_zone"]) { + $app->error($app->tform->wordbook["limit_dns_zone_txt"]); + } + } + } + } + + /* + // Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + */ + + + //* Check if soa, ns and mbox have a dot at the end + if(strlen($this->dataRecord["origin"]) > 0 && substr($this->dataRecord["origin"],-1,1) != '.') $this->dataRecord["origin"] .= '.'; + if(strlen($this->dataRecord["ns"]) > 0 && substr($this->dataRecord["ns"],-1,1) != '.') $this->dataRecord["ns"] .= '.'; + if(strlen($this->dataRecord["mbox"]) > 0 && substr($this->dataRecord["mbox"],-1,1) != '.') $this->dataRecord["mbox"] .= '.'; + + //* Replace @ in mbox + if(stristr($this->dataRecord["mbox"],'@')) { + $this->dataRecord["mbox"] = str_replace('@','.',$this->dataRecord["mbox"]); + } + + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + // make sure that the record belongs to the client group and not the admin group when a dmin inserts it + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id); + // And we want to update all rr records too, that belong to this record + $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id); + // And we want to update all rr records too, that belong to this record + $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id); + } + + } + + function onAfterUpdate() { + global $app, $conf; + + $tmp = $app->db->diffrec($this->oldDataRecord,$app->tform->getDataRecord($this->id)); + if($tmp['diff_num'] > 0) { + // Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = ".$this->id); + $app->db->query("UPDATE dns_soa SET serial = '".$app->validate_dns->increase_serial($soa["serial"])."' WHERE id = ".$this->id); + } + + // make sure that the record belongs to the client group and not the admin group when a dmin inserts it + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id); + // And we want to update all rr records too, that belong to this record + $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id); + // And we want to update all rr records too, that belong to this record + $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id); + } + + //** When the client group has changed, change also the owner of the record if the owner is not the admin user + if($this->oldDataRecord["client_group_id"] != $this->dataRecord["client_group_id"] && $this->dataRecord["sys_userid"] != 1) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $tmp = $app->db->queryOneREcord("SELECT userid FROM sys_user WHERE default_group = ".$client_group_id); + if($tmp["userid"] > 0) { + $app->db->query("UPDATE dns_soa SET sys_userid = ".$tmp["userid"]." WHERE id = ".$this->id); + $app->db->query("UPDATE dns_rr SET sys_userid = ".$tmp["userid"]." WHERE zone = ".$this->id); + } + } + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_soa_list.php b/interface/ispconfig/interface/dns/dns_soa_list.php new file mode 100644 index 0000000..7b2981a --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_soa_list.php @@ -0,0 +1,25 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_soa.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses('listform_actions'); +// $app->listform_actions->SQLExtWhere = "access = 'REJECT'"; + +$app->listform_actions->SQLOrderBy = 'ORDER BY origin'; +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_srv_edit.php b/interface/ispconfig/interface/dns/dns_srv_edit.php new file mode 100644 index 0000000..15af1e2 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_srv_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_srv.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_template_del.php b/interface/ispconfig/interface/dns/dns_template_del.php new file mode 100644 index 0000000..5aa1ff7 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_template_del.php @@ -0,0 +1,58 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_template.list.php"; +$tform_def_file = "form/dns_template.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_template_edit.php b/interface/ispconfig/interface/dns/dns_template_edit.php new file mode 100644 index 0000000..7d84d5c --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_template_edit.php @@ -0,0 +1,60 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_template.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access denied for non admin users.'); + +class page_action extends tform_actions { + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_template_list.php b/interface/ispconfig/interface/dns/dns_template_list.php new file mode 100644 index 0000000..4cde9a0 --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_template_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/dns_template.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +$app->uses('listform_actions'); +// $app->listform_actions->SQLExtWhere = "access = 'REJECT'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/dns_txt_edit.php b/interface/ispconfig/interface/dns/dns_txt_edit.php new file mode 100644 index 0000000..2d5cecd --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_txt_edit.php @@ -0,0 +1,138 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/dns_txt.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_dns'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_dns_record"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_dns_record"]) { + $app->error($app->tform->wordbook["limit_dns_record_txt"]); + } + } + } // end if user is not admin + + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + // Update the serial number and timestamp of the RR record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id); + $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]); + $this->dataRecord["stamp"] = date('Y-m-d H:i:s'); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id); + + //* Update the serial number of the SOA record + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } + + function onAfterUpdate() { + global $app, $conf; + + //* Update the serial number of the SOA record + $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $soa_id = intval($_POST["zone"]); + $serial = $app->validate_dns->increase_serial($soa["serial"]); + $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); + } +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/interface/dns/dns_wizard.php b/interface/ispconfig/interface/dns/dns_wizard.php new file mode 100644 index 0000000..2c985eb --- /dev/null +++ b/interface/ispconfig/interface/dns/dns_wizard.php @@ -0,0 +1,274 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('dns'); + + +// Loading the template +$app->uses('tpl,validate_dns'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/dns_wizard.htm'); +$app->load_language_file('/web/dns/lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng'); + +// import variables +$template_id = (isset($_POST['template_id']))?intval($_POST['template_id']):0; +$sys_groupid = (isset($_POST['client_group_id']))?intval($_POST['client_group_id']):0; + +// get the correct server_id +if($_SESSION['s']['user']['typ'] == 'admin') { + $server_id = (isset($_POST['server_id']))?intval($_POST['server_id']):1; +} else { + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT default_dnsserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + $server_id = $client["default_dnsserver"]; +} + + +// Load the templates +$records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y'"); +$template_id_option = ''; +$n = 0; +foreach($records as $rec){ + $checked = ($rec['template_id'] == $template_id)?' SELECTED':''; + $template_id_option .= '<option value="'.$rec['template_id'].'"'.$checked.'>'.$rec['name'].'</option>'; + if($n == 0 && $template_id == 0) $template_id = $rec['template_id']; + $n++; +} +unset($n); +$app->tpl->setVar("template_id_option",$template_id_option); + +// If the user is administrator +if($_SESSION['s']['user']['typ'] == 'admin') { + + // Load the list of servers + $records = $app->db->queryAllRecords("SELECT server_id, server_name FROM server WHERE dns_server = 1 ORDER BY server_name"); + $server_id_option = ''; + foreach($records as $rec){ + $checked = ($rec['server_id'] == $server_id)?' SELECTED':''; + $server_id_option .= '<option value="'.$rec['server_id'].'"'.$checked.'>'.$rec['server_name'].'</option>'; + } + $app->tpl->setVar("server_id",$server_id_option); + + // load the list of clients + $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name"; + $clients = $app->db->queryAllRecords($sql); + $client_select = ''; + if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= "<option value='0'></option>"; + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = ($client["groupid"] == $sys_groupid)?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + + $app->tpl->setVar("client_group_id",$client_select); +} + +if ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client.client_id, contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + + // load the list of clients + $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']; + $clients = $app->db->queryAllRecords($sql); + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = ($client["groupid"] == $sys_groupid)?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + + $app->tpl->setVar("client_group_id",$client_select); +} + + +$template_record = $app->db->queryOneRecord("SELECT * FROM dns_template WHERE template_id = '$template_id'"); +$fields = explode(',',$template_record['fields']); +if(is_array($fields)) { + foreach($fields as $field) { + $app->tpl->setVar($field."_VISIBLE",1); + $field = strtolower($field); + $app->tpl->setVar($field,$_POST[$field]); + } +} + +if($_POST['create'] == 1) { + + $error = ''; + + if(isset($_POST['domain']) && $_POST['domain'] == '') $error .= $app->lng('error_domain_empty').'<br />'; + if(isset($_POST['ip']) && $_POST['ip'] == '') $error .= $app->lng('error_ip_empty').'<br />'; + if(isset($_POST['ns1']) && $_POST['ns1'] == '') $error .= $app->lng('error_ns1_empty').'<br />'; + if(isset($_POST['ns2']) && $_POST['ns2'] == '') $error .= $app->lng('error_ns2_empty').'<br />'; + if(isset($_POST['email']) && $_POST['email'] == '') $error .= $app->lng('error_email_empty').'<br />'; + + if(isset($_POST['domain']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['domain'])) $error .= $app->lng('error_domain_regex').'<br />'; + if(isset($_POST['ns1']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns1'])) $error .= $app->lng('error_ns1_regex').'<br />'; + if(isset($_POST['ns2']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns2'])) $error .= $app->lng('error_ns2_regex').'<br />'; + if(isset($_POST['email']) && !preg_match('/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i',$_POST['email'])) $error .= $app->lng('error_email_regex').'<br />'; + + // make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($_POST['client_group_id'])) { + $sys_groupid = intval($_POST['client_group_id']); + } elseif($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($_POST['client_group_id'])) { + $sys_groupid = intval($_POST['client_group_id']); + } else { + $sys_groupid = $_SESSION["s"]["user"]["default_group"]; + } + + $tform_def_file = "form/dns_soa.tform.php"; + $app->uses('tform'); + $app->tform->loadFormDef($tform_def_file); + + if($_SESSION['s']['user']['typ'] != 'admin') { + if(!$app->tform->checkClientLimit('limit_dns_zone')) { + $error .= $app->tform->wordbook["limit_dns_zone_txt"]; + } + if(!$app->tform->checkResellerLimit('limit_dns_zone')) { + $error .= $app->tform->wordbook["limit_dns_zone_txt"]; + } + } + + + // replace template placeholders + $tpl_content = $template_record['template']; + if($_POST['domain'] != '') $tpl_content = str_replace('{DOMAIN}',$_POST['domain'],$tpl_content); + if($_POST['ip'] != '') $tpl_content = str_replace('{IP}',$_POST['ip'],$tpl_content); + if($_POST['ns1'] != '') $tpl_content = str_replace('{NS1}',$_POST['ns1'],$tpl_content); + if($_POST['ns2'] != '') $tpl_content = str_replace('{NS2}',$_POST['ns2'],$tpl_content); + if($_POST['email'] != '') $tpl_content = str_replace('{EMAIL}',$_POST['email'],$tpl_content); + + // Parse the template + $tpl_rows = explode("\n",$tpl_content); + $section = ''; + $vars = array(); + $dns_rr = array(); + foreach($tpl_rows as $row) { + $row = trim($row); + if(substr($row,0,1) == '[') { + if($row == '[ZONE]') { + $section = 'zone'; + } elseif($row == '[DNS_RECORDS]') { + $section = 'dns_records'; + } else { + die('Unknown section type'); + } + } else { + if($row != '') { + // Handle zone section + if($section == 'zone') { + $parts = explode('=',$row); + $key = trim($parts[0]); + $val = trim($parts[1]); + if($key != '') $vars[$key] = $val; + } + // Handle DNS Record rows + if($section == 'dns_records') { + $parts = explode('|',$row); + $dns_rr[] = array( + 'name' => $app->db->quote($parts[1]), + 'type' => $app->db->quote($parts[0]), + 'data' => $app->db->quote($parts[2]), + 'aux' => $app->db->quote($parts[3]), + 'ttl' => $app->db->quote($parts[4]) + ); + } + } + } + + } // end foreach + + if($vars['origin'] == '') $error .= $app->lng('error_origin_empty').'<br />'; + if($vars['ns'] == '') $error .= $app->lng('error_ns_empty').'<br />'; + if($vars['mbox'] == '') $error .= $app->lng('error_mbox_empty').'<br />'; + if($vars['refresh'] == '') $error .= $app->lng('error_refresh_empty').'<br />'; + if($vars['retry'] == '') $error .= $app->lng('error_retry_empty').'<br />'; + if($vars['expire'] == '') $error .= $app->lng('error_expire_empty').'<br />'; + if($vars['minimum'] == '') $error .= $app->lng('error_minimum_empty').'<br />'; + if($vars['ttl'] == '') $error .= $app->lng('error_ttl_empty').'<br />'; + + if($error == '') { + // Insert the soa record + $sys_userid = $_SESSION['s']['user']['userid']; + $origin = $app->db->quote($vars['origin']); + $ns = $app->db->quote($vars['ns']); + $mbox = $app->db->quote(str_replace('@','.',$vars['mbox'])); + $refresh = $app->db->quote($vars['refresh']); + $retry = $app->db->quote($vars['retry']); + $expire = $app->db->quote($vars['expire']); + $minimum = $app->db->quote($vars['minimum']); + $ttl = $app->db->quote($vars['ttl']); + $xfer = $app->db->quote($vars['xfer']); + $serial = $app->validate_dns->increase_serial(0); + + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`) VALUES + ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '$serial', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer')"; + $dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id'); + + // Insert the dns_rr records + if(is_array($dns_rr) && $dns_soa_id > 0) { + foreach($dns_rr as $rr) { + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `zone`, `name`, `type`, `data`, `aux`, `ttl`, `active`) VALUES + ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$dns_soa_id', '$rr[name]', '$rr[type]', '$rr[data]', '$rr[aux]', '$rr[ttl]', 'Y')"; + $dns_rr_id = $app->db->datalogInsert('dns_rr', $insert_data, 'id'); + } + } + + header("Location: dns_soa_list.php"); + exit; + + } else { + $app->tpl->setVar("error",$error); + } + +} + + + +$app->tpl->setVar("title",'DNS Wizard'); + +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng'; +include($lng_file); +$app->tpl->setVar($wb); + +$app->tpl_defaults(); +$app->tpl->pparse(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_a.tform.php b/interface/ispconfig/interface/dns/form/dns_a.tform.php new file mode 100644 index 0000000..5cb7475 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_a.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS A"; +$form["description"] = ""; +$form["name"] = "dns_a"; +$form["action"] = "dns_a_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS A", + 'width' => 100, + 'template' => "templates/dns_a_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\*]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^([1-9]{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php b/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php new file mode 100644 index 0000000..0a9e021 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS AAAA"; +$form["description"] = ""; +$form["name"] = "dns_aaaa"; +$form["action"] = "dns_aaaa_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS AAAA", + 'width' => 100, + 'template' => "templates/dns_aaaa_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\*]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'AAAA', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^\s*((([0-9A-Fa-f]{1,4}:){7}(([0-9A-Fa-f]{1,4})|:))|(([0-9A-Fa-f]{1,4}:){6}(:|((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})|(:[0-9A-Fa-f]{1,4})))|(([0-9A-Fa-f]{1,4}:){5}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){4}(:[0-9A-Fa-f]{1,4}){0,1}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){3}(:[0-9A-Fa-f]{1,4}){0,2}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){2}(:[0-9A-Fa-f]{1,4}){0,3}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:)(:[0-9A-Fa-f]{1,4}){0,4}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(:(:[0-9A-Fa-f]{1,4}){0,5}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})))(%.+)?\s*$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_alias.tform.php b/interface/ispconfig/interface/dns/form/dns_alias.tform.php new file mode 100644 index 0000000..37ebc77 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_alias.tform.php @@ -0,0 +1,161 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS ALIAS"; +$form["description"] = ""; +$form["name"] = "dns_alias"; +$form["action"] = "dns_alias_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS ALIAS", + 'width' => 100, + 'template' => "templates/dns_alias_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'ALIAS', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_cname.tform.php b/interface/ispconfig/interface/dns/form/dns_cname.tform.php new file mode 100644 index 0000000..6409b97 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_cname.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS CNAME"; +$form["description"] = ""; +$form["name"] = "dns_cname"; +$form["action"] = "dns_cname_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS CNAME", + 'width' => 100, + 'template' => "templates/dns_cname_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\*]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'CNAME', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php b/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php new file mode 100644 index 0000000..fd8facf --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php @@ -0,0 +1,158 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS hinfo"; +$form["description"] = ""; +$form["name"] = "dns_hinfo"; +$form["action"] = "dns_hinfo_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS HINFO", + 'width' => 100, + 'template' => "templates/dns_hinfo_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'HINFO', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_mx.tform.php b/interface/ispconfig/interface/dns/form/dns_mx.tform.php new file mode 100644 index 0000000..7a30d4e --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_mx.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS mx"; +$form["description"] = ""; +$form["name"] = "dns_mx"; +$form["action"] = "dns_mx_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS mx", + 'width' => 100, + 'template' => "templates/dns_mx_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,255}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'MX', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,255}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '10', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_ns.tform.php b/interface/ispconfig/interface/dns/form/dns_ns.tform.php new file mode 100644 index 0000000..2229bac --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_ns.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS ns"; +$form["description"] = ""; +$form["name"] = "dns_ns"; +$form["action"] = "dns_ns_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS ns", + 'width' => 100, + 'template' => "templates/dns_ns_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'NS', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_ptr.tform.php b/interface/ispconfig/interface/dns/form/dns_ptr.tform.php new file mode 100644 index 0000000..c7521e7 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_ptr.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS ptr"; +$form["description"] = ""; +$form["name"] = "dns_ptr"; +$form["action"] = "dns_ptr_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS ptr", + 'width' => 100, + 'template' => "templates/dns_ptr_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'PTR', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_rp.tform.php b/interface/ispconfig/interface/dns/form/dns_rp.tform.php new file mode 100644 index 0000000..02a4319 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_rp.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS RP"; +$form["description"] = ""; +$form["name"] = "dns_rp"; +$form["action"] = "dns_rp_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS RP", + 'width' => 100, + 'template' => "templates/dns_rp_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'RP', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\s]{1,128}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_soa.tform.php b/interface/ispconfig/interface/dns/form/dns_soa.tform.php new file mode 100644 index 0000000..605679f --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_soa.tform.php @@ -0,0 +1,230 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS Zone"; +$form["description"] = ""; +$form["name"] = "dns_soa"; +$form["action"] = "dns_soa_edit.php"; +$form["db_table"] = "dns_soa"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns_soa"; +$form["list_default"] = "dns_soa_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns_soa'] = array ( + 'title' => "DNS Zone", + 'width' => 100, + 'template' => "templates/dns_soa_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND dns_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'server_id_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'origin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'origin_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'origin_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-\/]{2,255}\.[a-zA-Z]{2,10}[\.]{0,1}$/', + 'errmsg'=> 'origin_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ns' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'ns_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'mbox' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mbox_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[[a-zA-Z0-9\.\-]{0,64}\.$/', + 'errmsg'=> 'mbox_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'refresh' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '28800', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'retry' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '7200', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'expire' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '604800', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'minimum' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'xfer' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'also_notify' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'update_acl' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['dns_records'] = array ( + 'title' => "Records", + 'width' => 100, + 'template' => "templates/dns_records_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + + ################################## + # ENDE Datatable fields + ################################## + ), + 'plugins' => array ( + 'dns_records' => array ( + 'class' => 'plugin_listview', + 'options' => array( + 'listdef' => 'list/dns_a.list.php', + 'sqlextwhere' => "zone = ".@intval(@$_REQUEST['id']), + 'sql_order_by' => "ORDER BY type, name" + ) + ) + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_srv.tform.php b/interface/ispconfig/interface/dns/form/dns_srv.tform.php new file mode 100644 index 0000000..4cc2f55 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_srv.tform.php @@ -0,0 +1,159 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS SRV"; +$form["description"] = ""; +$form["name"] = "dns_srv"; +$form["action"] = "dns_srv_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS SRV", + 'width' => 100, + 'template' => "templates/dns_srv_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'SRV', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}\s[\w\.\-]{0,64}\s[\w\.\-]{0,64}$/', + 'errmsg'=> 'srv_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_template.tform.php b/interface/ispconfig/interface/dns/form/dns_template.tform.php new file mode 100644 index 0000000..a648fd4 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_template.tform.php @@ -0,0 +1,101 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS Wizard template"; +$form["description"] = ""; +$form["name"] = "dns_template"; +$form["action"] = "dns_template_edit.php"; +$form["db_table"] = "dns_template"; +$form["db_table_idx"] = "template_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "template"; +$form["list_default"] = "dns_template_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['template'] = array ( + 'title' => "DNS Template", + 'width' => 100, + 'template' => "templates/dns_template_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'fields' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOXARRAY', + 'default' => '', + 'separator' => ',', + 'value' => array('DOMAIN' => 'Domain','IP' => 'IP Address','NS1' => 'NS 1','NS2' => 'NS 2','EMAIL' => 'Email') + ), + 'template' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '40', + 'rows' => '15' + ), + 'visible' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/form/dns_txt.tform.php b/interface/ispconfig/interface/dns/form/dns_txt.tform.php new file mode 100644 index 0000000..153bcc8 --- /dev/null +++ b/interface/ispconfig/interface/dns/form/dns_txt.tform.php @@ -0,0 +1,156 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "DNS TXT Record"; +$form["description"] = ""; +$form["name"] = "dns_txt"; +$form["action"] = "dns_txt_edit.php"; +$form["db_table"] = "dns_rr"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "dns"; +$form["list_default"] = "dns_a_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS TXT", + 'width' => 100, + 'template' => "templates/dns_txt_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'TXT', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + 'stamp' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/admin.conf.php b/interface/ispconfig/interface/dns/lib/admin.conf.php new file mode 100644 index 0000000..a45d440 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/admin.conf.php @@ -0,0 +1,2 @@ +<?php +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/bg.lng b/interface/ispconfig/interface/dns/lib/lang/bg.lng new file mode 100644 index 0000000..36def8e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng new file mode 100644 index 0000000..8802139 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IP-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +$wb['data_error_duplicate'] = 'Duplicate A-Record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng new file mode 100644 index 0000000..87c9cd8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priority'; +$wb['type_txt'] = 'Type'; +$wb['add_new_record_txt'] = 'Add new DNS A-Record'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng new file mode 100644 index 0000000..31ef0da --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng new file mode 100644 index 0000000..0d90bcf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Host information empty'; +$wb['data_error_regex'] = 'Host Information format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng new file mode 100644 index 0000000..648827f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Priority'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Mailserver hostname empty'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng new file mode 100644 index 0000000..713ec28 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The zone is empty.'; +$wb['name_error_regex'] = 'The zone has the wrong format.'; +$wb['data_error_empty'] = 'Nameserver empty'; +$wb['data_error_regex'] = 'Nameserver format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng new file mode 100644 index 0000000..c026384 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The name is empty.'; +$wb['name_error_regex'] = 'The name has the wrong format.'; +$wb['data_error_empty'] = 'Canonical hostname empty'; +$wb['data_error_regex'] = 'Canonical hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng new file mode 100644 index 0000000..d38efd1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Responsible Person'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Responsible person field empty'; +$wb['data_error_regex'] = 'Responsible person field format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng new file mode 100644 index 0000000..e63ffb7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['server_id_error_empty'] = 'No server selected'; +$wb['origin_error_empty'] = 'Zone empty.'; +$wb['origin_error_unique'] = 'There is already a record for this zone.'; +$wb['origin_error_regex'] = 'Zone has a invalid format.'; +$wb['ns_error_regex'] = 'NS has a invalid format.'; +$wb['mbox_error_empty'] = 'Email is empty.'; +$wb['mbox_error_regex'] = 'Email format invalid.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng new file mode 100644 index 0000000..42bb329 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zones'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new DNS Zone (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng new file mode 100644 index 0000000..d4ea60b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Server Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Server record empty'; +$wb['data_error_regex'] = 'Server record format invalid'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng new file mode 100644 index 0000000..3a09e3b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Name'; +$wb['fields_txt'] = 'Fields'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng new file mode 100644 index 0000000..8d9d730 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Wizard Template'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng new file mode 100644 index 0000000..8e6c417 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Text empty'; +$wb['data_error_regex'] = 'Text format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng new file mode 100644 index 0000000..ffceabb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Create DNS Record'; +$wb['btn_cancel_txt'] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br.lng b/interface/ispconfig/interface/dns/lib/lang/br.lng new file mode 100644 index 0000000..de70fdb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zonas'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'ALIAS DNS'; +$wb['DNS CNAME'] = 'CNAME DNS'; +$wb['DNS hinfo'] = 'hinfo DNS'; +$wb['DNS mx'] = 'mx DNS'; +$wb['DNS ns'] = 'ns DNS'; +$wb['DNS ptr'] = 'ptr DNS'; +$wb['DNS RP'] = 'RP DNS'; +$wb['DNS Zone'] = 'Zona DNS'; +$wb['Records'] = 'Registros'; +$wb['DNS SRV'] = 'SRV DNS'; +$wb['DNS TXT Record'] = 'Registro TXT DNS'; +$wb['DNS TXT'] = 'TXT DNS'; +$wb['DNS Wizard'] = 'Assistente de DNS'; +$wb['Add DNS Zone'] = 'Adcionar Zona DNS'; +$wb['Templates'] = 'Gabaritos'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng new file mode 100644 index 0000000..137af7c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Endereço-IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +$wb['data_error_duplicate'] = 'Registro-A duplicado'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng new file mode 100644 index 0000000..b231c83 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'Registro (A)'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nome'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Prioridade'; +$wb['type_txt'] = 'Tipo'; +$wb['add_new_record_txt'] = 'Adcionar um novo registro DNS (A)'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Tem certeza que deseja remover este registro?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng new file mode 100644 index 0000000..17e77b2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Endereço-IPv6'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP com formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng new file mode 100644 index 0000000..d026ddf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Alvo'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de registros DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname está em branco.'; +$wb['name_error_regex'] = 'O hostname está em um formato inválido.'; +$wb['data_error_empty'] = 'Hostname de destino está em branco'; +$wb['data_error_regex'] = 'O hostname de destino está em um formato inválido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng new file mode 100644 index 0000000..881cb63 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname de Destino'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de registros DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname está em branco.'; +$wb['name_error_regex'] = 'O hostname está em um formato inválido.'; +$wb['data_error_empty'] = 'Hostname de destino está em branco'; +$wb['data_error_regex'] = 'O hostname de destino está em um formato inválido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng new file mode 100644 index 0000000..ac6e13b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Informações do Host'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng new file mode 100644 index 0000000..0dfd536 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname do servidor de correio'; +$wb['aux_txt'] = 'Prioridade'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Hostname do servidor de correio em branco'; +$wb['data_error_regex'] = 'Hostname do servidor de correio formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng new file mode 100644 index 0000000..ef9966f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Zona'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Servidor de Nomes'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'A zona está em branco.'; +$wb['name_error_regex'] = 'A zona está com formato inválido.'; +$wb['data_error_empty'] = 'Servidor de nomes em branco'; +$wb['data_error_regex'] = 'Servidor de nomes com formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng new file mode 100644 index 0000000..728ea07 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nnome'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Canônico'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng new file mode 100644 index 0000000..d185470 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Pessoa Responsável'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Pessoa responsável em branco'; +$wb['data_error_regex'] = 'Pessoa responsável formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng new file mode 100644 index 0000000..486d05a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Correio'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Permitir transferências de zona para <br />estes IPs (lista separada por ponto e vírgula)'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_zone_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['client_txt'] = 'Cliente'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['server_id_error_empty'] = 'Servidor não selecionado'; +$wb['origin_error_empty'] = 'Zona vazia.'; +$wb['origin_error_unique'] = 'Este registro já existe nesta zona.'; +$wb['origin_error_regex'] = 'Formato de zona inválido.'; +$wb['ns_error_regex'] = 'NS tem um formato inválido.'; +$wb['mbox_error_empty'] = 'Correio está em branco.'; +$wb['mbox_error_regex'] = 'Correio com formato inválido.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Atualizar ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng new file mode 100644 index 0000000..ef0c93f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Zonas DNS'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adcionar uma nova zona dns (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng new file mode 100644 index 0000000..8a389f5 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Registro do Servidor'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Registro do Servidor em branco'; +$wb['data_error_regex'] = 'Registro do Servidor com formato inválido'; +$wb['srv_error_regex'] = 'Registro do Servidor com formato inválido. São necessários 3 textos separados por espaços'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng new file mode 100644 index 0000000..9d7331b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nome'; +$wb['fields_txt'] = 'Campos'; +$wb['template_txt'] = 'Gabarito'; +$wb['visible_txt'] = 'Visível'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng new file mode 100644 index 0000000..a4602ae --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Assistente de Gabaritos DNS'; +$wb['visible_txt'] = 'Visível'; +$wb['name_txt'] = 'Nome'; +$wb['add_new_record_txt'] = 'Adcionar novo registro'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng new file mode 100644 index 0000000..f73ada3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.'; +$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng new file mode 100644 index 0000000..6a94ec2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Gabarito'; +$wb['server_id_txt'] = 'Servidor'; +$wb['client_txt'] = 'Cliente'; +$wb['btn_save_txt'] = 'Criar Registro DNS'; +$wb['btn_cancel_txt'] = 'Cancelar'; +$wb['domain_txt'] = 'Domínio'; +$wb['email_txt'] = 'Correio'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'Endereço IP'; +$wb['error_origin_empty'] = 'Origem em branco.'; +$wb['error_ns_empty'] = 'NS vazio.'; +$wb['error_mbox_empty'] = 'Mbox vazia.'; +$wb['error_refresh_empty'] = 'Refresh vazio.'; +$wb['error_retry_empty'] = 'Retry vazio.'; +$wb['error_expire_empty'] = 'Expire vazio.'; +$wb['error_minimum_empty'] = 'Minimum vazio.'; +$wb['error_ttl_empty'] = 'TTL vazio.'; +$wb['error_domain_empty'] = 'Domínio vazio'; +$wb['error_ip_empty'] = 'IP vazio.'; +$wb['error_ns1_empty'] = 'NS1 vazio.'; +$wb['error_ns2_empty'] = 'NS2 vazio.'; +$wb['error_email_empty'] = 'Correio vazio.'; +$wb['error_domain_regex'] = 'Domínio contém caracteres inválidos.'; +$wb['error_ns1_regex'] = 'NS1 contém caracteres inválidos.'; +$wb['error_ns2_regex'] = 'NS2 contém caracteres inválidos.'; +$wb['error_email_regex'] = 'Email não contém um endereço de correio válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de.lng b/interface/ispconfig/interface/dns/lib/lang/de.lng new file mode 100644 index 0000000..319b221 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zonen'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Einträge'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Eintrag'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng new file mode 100644 index 0000000..ea6d021 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'IP Adresse'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'IP Adresse ist leer'; +$wb['data_error_regex'] = 'Format der IP Adresse ist ungültig'; +$wb['data_error_duplicate'] = 'Doppelter A-Eintrag'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng new file mode 100644 index 0000000..0481c2b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Eintrag'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['data_txt'] = 'Daten'; +$wb['aux_txt'] = 'Priorität'; +$wb['type_txt'] = 'Typ'; +$wb['add_new_record_txt'] = 'Neuen DNS A-Eintrag hinzufügen'; +$wb['page_txt'] = 'Seite'; +$wb['page_of_txt'] = 'von'; +$wb['delete_confirmation'] = 'Wollen Sie den Datensatz wirklich löschen?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng new file mode 100644 index 0000000..768e670 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'IPv6-Adresse'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'IP-Adresse leer'; +$wb['data_error_regex'] = 'IP-Adresse Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng new file mode 100644 index 0000000..9475644 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Ziel Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat ein falsches Format.'; +$wb['data_error_empty'] = 'Ziel Hostname leer'; +$wb['data_error_regex'] = 'Ziel Hostname Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng new file mode 100644 index 0000000..4c3d5a0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Ziel Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'Ziel Hostname leer'; +$wb['data_error_regex'] = 'Ziel Hostname Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng new file mode 100644 index 0000000..245480f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat ein falsches Format.'; +$wb['data_error_empty'] = 'Host Information ist leer'; +$wb['data_error_regex'] = 'Host Information Format ist ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng new file mode 100644 index 0000000..ab21cc4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Mailserver Hostname'; +$wb['aux_txt'] = 'Priorität'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'Mailserver Hostname leer'; +$wb['data_error_regex'] = 'Mailserver Hostname Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng new file mode 100644 index 0000000..845da9d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Die Zone ist leer.'; +$wb['name_error_regex'] = 'Die Zone hat ein falsches Format'; +$wb['data_error_empty'] = 'Nameserver ist leer'; +$wb['data_error_regex'] = 'Nameserver Format ist ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng new file mode 100644 index 0000000..aee4155 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Kanonischer Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Name ist leer.'; +$wb['name_error_regex'] = 'Der Name hat das falsche Format.'; +$wb['data_error_empty'] = 'Kanonischer Hostname leer'; +$wb['data_error_regex'] = 'Kanonischer Hostname Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng new file mode 100644 index 0000000..86f3fc0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Kontaktperson'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'Kontaktperson Feld leer'; +$wb['data_error_regex'] = 'Kontaktperson Format ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng new file mode 100644 index 0000000..d619a3c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Seriennummer'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Zonentransfer zu diesen IPs erlauben (mit Beistrich getrennte Liste)'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_zone_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['client_txt'] = 'Kunde'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['server_id_error_empty'] = 'Kein Server ausgewählt'; +$wb['origin_error_empty'] = 'Zone leer.'; +$wb['origin_error_unique'] = 'Es existiert bereits ein Eintrag für diese Zone.'; +$wb['origin_error_regex'] = 'Zone hat ein ungültiges Format.'; +$wb['ns_error_regex'] = 'NS hat ein ungültiges Format.'; +$wb['mbox_error_empty'] = 'Email ist leer.'; +$wb['mbox_error_regex'] = 'Email Format ungültig.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng new file mode 100644 index 0000000..92f098c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zonen'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Neue DNS Zone (SOA) hinzufügen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng new file mode 100644 index 0000000..352e959 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Servereintrag'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'Servereintrag ist leer'; +$wb['data_error_regex'] = 'Servereintrag Format ungültig'; +$wb['srv_error_regex'] = 'Ungültiges Server Record Format. Der Server Record muss 3 Text Strings getrennt durch Leerzeichen beinhalten.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng new file mode 100644 index 0000000..33d1090 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Name'; +$wb['fields_txt'] = 'Felder'; +$wb['template_txt'] = 'Vorlage'; +$wb['visible_txt'] = 'Sichtbar'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng new file mode 100644 index 0000000..45f0c5c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Wizard Vorlage'; +$wb['visible_txt'] = 'Sichtbar'; +$wb['name_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Neuen Eintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng new file mode 100644 index 0000000..182e994 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'Typ'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_dns_record_txt'] = 'Die maximale Anzahl an DNS Einträgen für ihr Konto wurde erreicht.'; +$wb['no_zone_perm'] = 'Sie haben nicht die Berechtigung, einen Eintrag zu dieser DNS Zone hinzuzufügen.'; +$wb['name_error_empty'] = 'Der Hostname ist leer.'; +$wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; +$wb['data_error_empty'] = 'Text ist leer'; +$wb['data_error_regex'] = 'Textformat ungültig'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng new file mode 100644 index 0000000..6f1bfbe --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Vorlage'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Kunde'; +$wb['btn_save_txt'] = 'DNS Eintrag hinzufügen'; +$wb['btn_cancel_txt'] = 'Abbrechen'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Adresse'; +$wb['error_origin_empty'] = 'Origin leer.'; +$wb['error_ns_empty'] = 'NS leer.'; +$wb['error_mbox_empty'] = 'Mbox leer.'; +$wb['error_refresh_empty'] = 'Refresh leer.'; +$wb['error_retry_empty'] = 'Retry leer.'; +$wb['error_expire_empty'] = 'Expire leer.'; +$wb['error_minimum_empty'] = 'Minimum leer.'; +$wb['error_ttl_empty'] = 'TTL leer.'; +$wb['error_domain_empty'] = 'Domain leer'; +$wb['error_ip_empty'] = 'IP leer.'; +$wb['error_ns1_empty'] = 'NS1 leer.'; +$wb['error_ns2_empty'] = 'NS2 leer.'; +$wb['error_email_empty'] = 'EMail leer.'; +$wb['error_domain_regex'] = 'Domain beinhaltet ungültige Zeichen.'; +$wb['error_ns1_regex'] = 'NS1 beinhaltet ungültige Zeichen.'; +$wb['error_ns2_regex'] = 'NS2 beinhaltet ungültige Zeichen.'; +$wb['error_email_regex'] = 'Email beinhaltet keine gültige Email Adresse.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/en.lng b/interface/ispconfig/interface/dns/lib/lang/en.lng new file mode 100644 index 0000000..c4a5bea --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en.lng @@ -0,0 +1,22 @@ +<?php + +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng new file mode 100644 index 0000000..599de5c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'IP-Address'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'IP-Address empty'; +$wb["data_error_regex"] = 'IP-Address format invalid'; +$wb["data_error_duplicate"] = 'Duplicate A-Record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng new file mode 100644 index 0000000..88a2366 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb["list_head_txt"] = 'A-Record'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Name'; +$wb["data_txt"] = 'Data'; +$wb["aux_txt"] = 'Priority'; +$wb["type_txt"] = 'Type'; +$wb["add_new_record_txt"] = 'Add new DNS A-Record'; +$wb["page_txt"] = 'Page'; +$wb["page_of_txt"] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng new file mode 100644 index 0000000..c56d558 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'IPv6-Address'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'IP-Address empty'; +$wb["data_error_regex"] = 'IP-Address format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng new file mode 100644 index 0000000..46f73a3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Target Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Target hostname empty'; +$wb["data_error_regex"] = 'Target hostname format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng new file mode 100644 index 0000000..46f73a3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Target Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Target hostname empty'; +$wb["data_error_regex"] = 'Target hostname format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng new file mode 100644 index 0000000..0fb7f45 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Host Information'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Host information empty'; +$wb["data_error_regex"] = 'Host Information format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng new file mode 100644 index 0000000..d0bee5e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Mailserver hostname'; +$wb["aux_txt"] = 'Priority'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Mailserver hostname empty'; +$wb["data_error_regex"] = 'Mailserver hostname format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng new file mode 100644 index 0000000..9e0e1e1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Zone'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Nameserver Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The zone is empty.'; +$wb["name_error_regex"] = 'The zone has the wrong format.'; +$wb["data_error_empty"] = 'Nameserver empty'; +$wb["data_error_regex"] = 'Nameserver format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng new file mode 100644 index 0000000..1219a96 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Name'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Canonical Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The name is empty.'; +$wb["name_error_regex"] = 'The name has the wrong format.'; +$wb["data_error_empty"] = 'Canonical hostname empty'; +$wb["data_error_regex"] = 'Canonical hostname format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng new file mode 100644 index 0000000..e705d9f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Responsible Person'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Responsible person field empty'; +$wb["data_error_regex"] = 'Responsible person field format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng new file mode 100644 index 0000000..3c9a5b0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["origin_txt"] = 'Zone (SOA)'; +$wb["ns_txt"] = 'NS'; +$wb["mbox_txt"] = 'Email'; +$wb["serial_txt"] = 'Serial'; +$wb["refresh_txt"] = 'Refresh'; +$wb["retry_txt"] = 'Retry'; +$wb["expire_txt"] = 'Expire'; +$wb["minimum_txt"] = 'Minimum'; +$wb["ttl_txt"] = 'TTL'; +$wb["xfer_txt"] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_zone_txt"] = 'The max. number of DNS zones for your account is reached.'; +$wb["client_txt"] = 'Client'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["server_id_error_empty"] = 'No server selected'; +$wb["origin_error_empty"] = 'Zone empty.'; +$wb["origin_error_unique"] = 'There is already a record for this zone.'; +$wb["origin_error_regex"] = 'Zone has a invalid format.'; +$wb["ns_error_regex"] = 'NS has a invalid format.'; +$wb["mbox_error_empty"] = 'Email is empty.'; +$wb["mbox_error_regex"] = 'Email format invalid.'; +$wb["also_notify_txt"] = 'Also Notify'; +$wb["update_acl_txt"] = 'Update ACL'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng new file mode 100644 index 0000000..6213bdb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'DNS Zones'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["origin_txt"] = 'Zone'; +$wb["ns_txt"] = 'NS'; +$wb["mbox_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new DNS Zone (SOA)'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng new file mode 100644 index 0000000..d0dcd1e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Server Record'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Server record empty'; +$wb["data_error_regex"] = 'Server record format invalid'; +$wb["srv_error_regex"] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng new file mode 100644 index 0000000..37643e1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb["name_txt"] = 'Name'; +$wb["fields_txt"] = 'Fields'; +$wb["template_txt"] = 'Template'; +$wb["visible_txt"] = 'Visible'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng new file mode 100644 index 0000000..33460a2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb["list_head_txt"] = 'DNS Wizard Template'; +$wb["visible_txt"] = 'Visible'; +$wb["name_txt"] = 'Name'; +$wb["add_new_record_txt"] = 'Add new record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng new file mode 100644 index 0000000..af43605 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Text'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Text empty'; +$wb["data_error_regex"] = 'Text format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng new file mode 100644 index 0000000..2f9f914 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng @@ -0,0 +1,30 @@ +<?php + +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb["btn_save_txt"] = 'Create DNS Record'; +$wb["btn_cancel_txt"] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/es.lng b/interface/ispconfig/interface/dns/lib/lang/es.lng new file mode 100644 index 0000000..4fd59f4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zonas'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zona'; +$wb['Records'] = 'Registros'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'Registro DNS TXT'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng new file mode 100644 index 0000000..36f318c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Dirección IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de la máquina es incorrecto.'; +$wb['data_error_empty'] = 'La dirección IP está vacía.'; +$wb['data_error_regex'] = 'El formato de la dirección IP no es válido.'; +$wb['data_error_duplicate'] = 'Registro A duplicado.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng new file mode 100644 index 0000000..1cbe6d3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'Registro A'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre'; +$wb['data_txt'] = 'Fecha'; +$wb['aux_txt'] = 'Prioridad'; +$wb['type_txt'] = 'Tipo'; +$wb['add_new_record_txt'] = 'Añadir nuevo registro A'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = '¿Realmente desea eliminar este registro?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng new file mode 100644 index 0000000..15ee1d2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Dirección IPv6'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registros DNS de su cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir un registro a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El nombre de la máquina tiene un formato incorrecto.'; +$wb['data_error_empty'] = 'La dirección IP está vacía.'; +$wb['data_error_regex'] = 'La dirección IP tiene un formato no válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng new file mode 100644 index 0000000..705b5cf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Nombre de la maquina de destino'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de la máquina es incorrecto.'; +$wb['data_error_empty'] = 'El nombre de la maquina de destino está vacío'; +$wb['data_error_regex'] = 'El formato del nombre de la maquina de destino no es válido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng new file mode 100644 index 0000000..7c3f7b7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'Tipo'; +$wb['data_txt'] = 'Nombre de la maquina de destino'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registros de esta zona DNS.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El nombre de la máquina tiene un registro incorrecto.'; +$wb['data_error_empty'] = 'El nombre de la máquina de destino está vacío.'; +$wb['data_error_regex'] = 'El nombre de la máquina de destino tiene un formato no válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng new file mode 100644 index 0000000..d5412ca --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Información del servidor'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registros DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de máquina es incorrecto.'; +$wb['data_error_empty'] = 'La información del servidor está vacía.'; +$wb['data_error_regex'] = 'La información del servidor tiene un formato no válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng new file mode 100644 index 0000000..e7c377d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Nombre del servidor de correo'; +$wb['aux_txt'] = 'Prioridad'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de la máquina es incorrecto.'; +$wb['data_error_empty'] = 'El nombre del servidor de correo está vacío.'; +$wb['data_error_regex'] = 'El nombre del servidor de correo no es válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng new file mode 100644 index 0000000..5687009 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Nombre del servidor de nombres'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'La zona está vacía.'; +$wb['name_error_regex'] = 'El formato de la zona es incorrecto'; +$wb['data_error_empty'] = 'El servidor de nombres está vacío.'; +$wb['data_error_regex'] = 'El formato del servidor de nombres no es válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng new file mode 100644 index 0000000..f8ef426 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Nombre canónico de la máquina (FQDN)'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS'; +$wb['name_error_empty'] = 'El nombre está vacío.'; +$wb['name_error_regex'] = 'El nombre tiene un formato incorrecto.'; +$wb['data_error_empty'] = 'El nombre canónico está vacío.'; +$wb['data_error_regex'] = 'El formato del nombre canónico no es válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng new file mode 100644 index 0000000..fece32a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Persona responsable'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registros DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir un registro a esta zona DNS'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato de nombre de la máquina no es correcto.'; +$wb['data_error_empty'] = 'El nombre de la persona responsable está vacío.'; +$wb['data_error_regex'] = 'El nombre de la persona responsable no es válido.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng new file mode 100644 index 0000000..c4143bc --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'correo'; +$wb['serial_txt'] = 'Nº de serie'; +$wb['refresh_txt'] = 'Refrescar'; +$wb['retry_txt'] = 'Reintentar'; +$wb['expire_txt'] = 'Expirar'; +$wb['minimum_txt'] = 'Mínimo'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Permitir transferencias de zona a <br />estas IPs (lista separada por comas)'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_zone_txt'] = 'Se ha alcanzado el número máximo de zonas DNS para esta cuenta.'; +$wb['client_txt'] = 'Cliente'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.'; +$wb['server_id_error_empty'] = 'No se ha seleccionado el servidor.'; +$wb['origin_error_empty'] = 'Zona vacía.'; +$wb['origin_error_unique'] = 'Ya hay un registro para esta zona.'; +$wb['origin_error_regex'] = 'Formato de zona no válido.'; +$wb['ns_error_regex'] = 'Formato de NS no válido.'; +$wb['mbox_error_empty'] = 'Correo vacío.'; +$wb['mbox_error_regex'] = 'Formato de correo no válido.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng new file mode 100644 index 0000000..ab942dd --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Zonas DNS'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Correo'; +$wb['add_new_record_txt'] = 'Añadir una nueva zona DNS (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng new file mode 100644 index 0000000..8e524ee --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Registro del servidor'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registros DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de la máquina es incorrecto.'; +$wb['data_error_empty'] = 'El registro del servidor está vacío.'; +$wb['data_error_regex'] = 'El registro del servidor no es válido.'; +$wb['srv_error_regex'] = 'El formato del registro del servidor no es válido. El registro del servidor debe contener tres cadenas de texto separadas por espacios.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng new file mode 100644 index 0000000..79ac234 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nombre'; +$wb['fields_txt'] = 'Campos'; +$wb['template_txt'] = 'Plantilla'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng new file mode 100644 index 0000000..388a4c1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Plantilla de asistente DNS'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Nombre'; +$wb['add_new_record_txt'] = 'Añadir un nuevo registro'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng new file mode 100644 index 0000000..55bde14 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nombre de la máquina'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Texto'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activar'; +$wb['limit_dns_record_txt'] = 'Se ha alcanzado el número máximo de registro DNS de esta cuenta.'; +$wb['no_zone_perm'] = 'No tiene permiso para añadir registros a esta zona DNS.'; +$wb['name_error_empty'] = 'El nombre de la máquina está vacío.'; +$wb['name_error_regex'] = 'El formato del nombre de la máquina es incorrecto.'; +$wb['data_error_empty'] = 'Texto vacío.'; +$wb['data_error_regex'] = 'Formato de texto no válido'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng new file mode 100644 index 0000000..0713bcc --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Plantilla'; +$wb['server_id_txt'] = 'Servidor'; +$wb['client_txt'] = 'Cliente'; +$wb['btn_save_txt'] = 'Crear registro DNS'; +$wb['btn_cancel_txt'] = 'Cancelar'; +$wb['domain_txt'] = 'Dominio'; +$wb['email_txt'] = 'Correo'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'Dirección IP'; +$wb['error_origin_empty'] = 'El campo Origen está vacío.'; +$wb['error_ns_empty'] = 'El campo NS está vacío.'; +$wb['error_mbox_empty'] = 'El campo Mbox está vacío.'; +$wb['error_refresh_empty'] = 'El campo Refresco está vacío.'; +$wb['error_retry_empty'] = 'El campo Reintentar está vacío.'; +$wb['error_expire_empty'] = 'El campo Expirar está vacío.'; +$wb['error_minimum_empty'] = 'El campo Mínimo está vacío.'; +$wb['error_ttl_empty'] = 'El campo TTL está vacío.'; +$wb['error_domain_empty'] = 'El campo Dominio está vacío.'; +$wb['error_ip_empty'] = 'El campo IP está vacío.'; +$wb['error_ns1_empty'] = 'El campo NS1 está vacío.'; +$wb['error_ns2_empty'] = 'El campo NS2 está vacío.'; +$wb['error_email_empty'] = 'El campo Correo electrónico está vacío.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi.lng b/interface/ispconfig/interface/dns/lib/lang/fi.lng new file mode 100644 index 0000000..bdca8cd --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'Nimipalvelut'; +$wb['Zones'] = 'Alueet'; +$wb['DNS A'] = 'DNS A-tietue'; +$wb['DNS ALIAS'] = 'DNS ALIAS-tietue'; +$wb['DNS CNAME'] = 'DNS CNAME-tietue'; +$wb['DNS hinfo'] = 'DNS hinfo-tietue'; +$wb['DNS mx'] = 'DNS mx-tietue'; +$wb['DNS ns'] = 'DNS ns-tietue'; +$wb['DNS ptr'] = 'DNS ptr-tietue'; +$wb['DNS RP'] = 'DNS RP-tietue'; +$wb['DNS Zone'] = 'DNS-alue'; +$wb['Records'] = 'Tietueet'; +$wb['DNS SRV'] = 'DNS SRV-tietue'; +$wb['DNS TXT Record'] = 'DNS TXT-tietue'; +$wb['DNS TXT'] = 'DNS TXT-tietue'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng new file mode 100644 index 0000000..3a4af61 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'IP-osoite'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'IP-osoite tyhjä'; +$wb['data_error_regex'] = 'IP-osoite on vääränlainen'; +$wb['data_error_duplicate'] = 'A-tietue on jo olemassa'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng new file mode 100644 index 0000000..0cc8287 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'Nimitietueet'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Nimi'; +$wb['data_txt'] = 'Data'; +$wb['type_txt'] = 'Tyyppi'; +$wb['add_new_record_txt'] = 'Lisää uusi tietue'; +$wb['aux_txt'] = 'Tärkeysjärjestys'; +$wb['page_txt'] = 'Sivu'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = 'Haluatko varmasti poistaa tämän tietueen?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng new file mode 100644 index 0000000..b87d7ac --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'IPv6-Osoite'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on väärän muotoinen.'; +$wb['data_error_empty'] = 'Tekstikenttä on tyhjä'; +$wb['data_error_regex'] = 'Tekstikenttä on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng new file mode 100644 index 0000000..20da599 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Pääverkkotunnus'; +$wb['type_txt'] = 'Edelleenohjauksen tyyppi'; +$wb['data_txt'] = 'Pääverkkotunnus'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Aliasverkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Aliasverkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Pääverkkotunnus on tyhjä'; +$wb['data_error_regex'] = 'Pääverkkotunnus on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng new file mode 100644 index 0000000..a58f0d2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Kohteen verkkotunnus'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Kohteen verkkotunnus on tyhjä'; +$wb['data_error_regex'] = 'Kohteen verkkotunnus on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng new file mode 100644 index 0000000..ea2fb93 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Verkkotunnuksen tiedot'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Verkkotunnuksen tiedot ovat tyhjiä'; +$wb['data_error_regex'] = 'Verkkotunnuksen tiedot ovat vääränlaisia'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng new file mode 100644 index 0000000..e4b4a60 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Postipalvelimen verkkotunnus'; +$wb['aux_txt'] = 'Tärkeysarvo (PRI)'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on väärän muotoinen.'; +$wb['data_error_empty'] = 'Tekstikenttä on tyhjä'; +$wb['data_error_regex'] = 'Tekstikenttä on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng new file mode 100644 index 0000000..8f97c53 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Alueen nimi)'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Nimipalvelimen isäntänimi'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Alue-kenttä on tyhjä.'; +$wb['name_error_regex'] = 'Alue-kenttä on väärän muotoinen.'; +$wb['data_error_empty'] = 'Nimipalvelin-kenttä tyhjä'; +$wb['data_error_regex'] = 'Nimipalvelin-kenttän muoto vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng new file mode 100644 index 0000000..9885c2b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Alueen nimi'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Kohteen isäntänimi'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Alueen nimi-kenttä on tyhjä.'; +$wb['name_error_regex'] = 'Alueen nimi-kenttä on väärän muotoinen.'; +$wb['data_error_empty'] = 'Kohteen isäntänimi tyhjä'; +$wb['data_error_regex'] = 'Kohteen isäntänimi muoto vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng new file mode 100644 index 0000000..d47cdcf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Vastuuhenkilö'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Pääverkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Pääverkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Vastuuhenkilö-kenttä tyhjä'; +$wb['data_error_regex'] = 'Vastuuhenkilö-kenttä on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng new file mode 100644 index 0000000..7e70915 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['origin_txt'] = 'Alue (SOA)'; +$wb['ns_txt'] = 'Nimipalvelin'; +$wb['mbox_txt'] = 'Sähköpostiosoite'; +$wb['serial_txt'] = 'Sarjanumero'; +$wb['refresh_txt'] = 'Päivitysaika'; +$wb['retry_txt'] = 'Uudelleenyritysaika'; +$wb['expire_txt'] = 'Vanhentumisaika'; +$wb['minimum_txt'] = 'Vähimmäisaika'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['xfer_txt'] = 'Salli aluetietojen (axfr) siirto näihin IP-osoitteisiin. (pilkulla erotettu lista)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_zone_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['client_txt'] = 'Asiakas'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['server_id_error_empty'] = 'Ei palvelimia valittuna'; +$wb['origin_error_empty'] = 'Alue (SOA)-kenttä on tyhjä.'; +$wb['origin_error_unique'] = 'Tällä alueella on jo tietue.'; +$wb['origin_error_regex'] = 'Alue (SOA)-kenttä on vääränlainen.'; +$wb['ns_error_regex'] = 'Nimipalvelin-kenttä on tyhjä.'; +$wb['mbox_error_empty'] = 'Sähköpostiosoite on tyhjä.'; +$wb['mbox_error_regex'] = 'Sähköpostiosoite on vääränlainen'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng new file mode 100644 index 0000000..95d1044 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS-alueet (SOA)'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['origin_txt'] = 'Alue (Zone)'; +$wb['ns_txt'] = 'nimipalvelin (NS)'; +$wb['mbox_txt'] = 'Yhteyshenkilön sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää uusi DNS-alue (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng new file mode 100644 index 0000000..68f4c85 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Palvelintietue'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Palvelintietue on tyhjä.'; +$wb['data_error_regex'] = 'Palvelintietue on vääränlainen.'; +$wb['srv_error_regex'] = 'Vääränlainen tietueen muoto. Tietueen pitää sisältää 3 tekstimuotoista tietoa välilyönnein eroteltuna.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng new file mode 100644 index 0000000..b34a92d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nimi'; +$wb['fields_txt'] = 'Kentät'; +$wb['template_txt'] = 'Malli'; +$wb['visible_txt'] = 'Näkyvissä'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng new file mode 100644 index 0000000..47c8924 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS-velhon malli'; +$wb['visible_txt'] = 'Näkyvissä'; +$wb['name_txt'] = 'Mallin nimi'; +$wb['add_new_record_txt'] = 'Lisää uusi mallitietue'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng new file mode 100644 index 0000000..d1235ba --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['zone_txt'] = 'Alue (Zone)'; +$wb['name_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['data_txt'] = 'Teksti'; +$wb['ttl_txt'] = 'Elinaika (TTL)'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_dns_record_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä DNS-tietueita.'; +$wb['no_zone_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia lisätä tietueita tälle DNS-alueelle.'; +$wb['name_error_empty'] = 'Verkkotunnus on tyhjä.'; +$wb['name_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['data_error_empty'] = 'Tekstikenttä on tyhjä'; +$wb['data_error_regex'] = 'Tekstikenttä on vääränlainen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng new file mode 100644 index 0000000..dba6306 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'DNS-malli'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['client_txt'] = 'Asiakas'; +$wb['btn_save_txt'] = 'Luo uusi DNS-tietue'; +$wb['btn_cancel_txt'] = 'Keskeytä'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['email_txt'] = 'Vastuuhenkilön sähköpostiosoite'; +$wb['ns1_txt'] = '1. nimipalvelin'; +$wb['ns2_txt'] = '2. nimipalvelin'; +$wb['ip_txt'] = 'IP-osoite'; +$wb['error_origin_empty'] = 'Verkkotunnusta ei ole annettu.'; +$wb['error_ns_empty'] = 'NS-kenttä tyhjä.'; +$wb['error_mbox_empty'] = 'Mbox-kenttä tyhjä.'; +$wb['error_refresh_empty'] = 'Refresh-kenttä tyhjä.'; +$wb['error_retry_empty'] = 'Retry-kenttä tyhjä.'; +$wb['error_expire_empty'] = 'Expire-kenttä tyhjä.'; +$wb['error_minimum_empty'] = 'Minimum-kenttä tyhjä.'; +$wb['error_ttl_empty'] = 'TTL-kenttä tyhjä.'; +$wb['error_domain_empty'] = 'Domain-kenttä tyhjä'; +$wb['error_ip_empty'] = 'IP-kenttä tyhjä.'; +$wb['error_ns1_empty'] = 'NS1-kenttä tyhjä.'; +$wb['error_ns2_empty'] = 'NS2-kenttä tyhjä.'; +$wb['error_email_empty'] = 'EMail-kenttä tyhjä.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr.lng b/interface/ispconfig/interface/dns/lib/lang/fr.lng new file mode 100644 index 0000000..fe6ece5 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'Zone DNS'; +$wb['Records'] = 'Enregistrements'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'Enregistrement DNS TXT'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng new file mode 100644 index 0000000..731c3e4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Adresse IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a t atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhte est vide.'; +$wb['name_error_regex'] = 'Lhte est dun format invalide.'; +$wb['data_error_empty'] = 'Ladresse IP est vide.'; +$wb['data_error_regex'] = 'Ladresse IP est dun format invalide.'; +$wb['data_error_duplicate'] = 'Dupliquer lenregistrement A'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng new file mode 100644 index 0000000..0817826 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'Enregistrement A'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Nom'; +$wb['data_txt'] = 'Donnes'; +$wb['aux_txt'] = 'Priorité'; +$wb['type_txt'] = 'Type'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel enregistrement A'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Voulez-vous vraiment supprimer cet enregistrement'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng new file mode 100644 index 0000000..503795f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Adresse IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a t atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhte est vide.'; +$wb['name_error_regex'] = 'Lhte est dun format invalide.'; +$wb['data_error_empty'] = 'Ladresse IP est vide.'; +$wb['data_error_regex'] = 'Ladresse IP est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng new file mode 100644 index 0000000..1ae97ae --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Adresse IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Ladresse IP est vide.'; +$wb['data_error_regex'] = 'Ladresse IP est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng new file mode 100644 index 0000000..87fc49e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Addresse IP cible'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Ladresse IP cible est vide.'; +$wb['data_error_regex'] = 'Ladresse IP cible est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng new file mode 100644 index 0000000..f26ed7d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Informations Hôte'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Les informations Hôte sont vides.'; +$wb['data_error_regex'] = 'Les informations Hôte sont dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng new file mode 100644 index 0000000..e390420 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Hôte du serveur mail'; +$wb['aux_txt'] = 'Priorité'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Le serveur mail est vide.'; +$wb['data_error_regex'] = 'Le serveur mail est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng new file mode 100644 index 0000000..a6edc6e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Hôte du serveur de nom'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'La zone est vide.'; +$wb['name_error_regex'] = 'La zone est dun format invalide.'; +$wb['data_error_empty'] = 'Lhôte du serveur de nom est vide.'; +$wb['data_error_regex'] = 'Lhôte du serveur de nom est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng new file mode 100644 index 0000000..4318e00 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Nom'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Hôte canonique'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a t atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Le nom est vide.'; +$wb['name_error_regex'] = 'Le nom est dun format invalide.'; +$wb['data_error_empty'] = 'Lhôte canonique est vide.'; +$wb['data_error_regex'] = 'Lhôte canonique est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng new file mode 100644 index 0000000..fe37f3e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Personne responsable'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'La personne responsable est vide.'; +$wb['data_error_regex'] = 'La personne responsable est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng new file mode 100644 index 0000000..28c81c4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Série'; +$wb['refresh_txt'] = 'Rafraichissement'; +$wb['retry_txt'] = 'Rééssai'; +$wb['expire_txt'] = 'Expiration'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Autoriser les transfers de zones à <br />ces IP (liste séparée par des virgules)'; +$wb['active_txt'] = 'Actif'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['server_id_error_empty'] = 'Pas de serveur sélectionné'; +$wb['origin_error_empty'] = 'Zone vide.'; +$wb['origin_error_unique'] = 'Il y a déja un enregistrement pour cette zone.'; +$wb['origin_error_regex'] = 'La zone est dun format invalide.'; +$wb['ns_error_regex'] = 'Le serveur de nom est dun format invalide.'; +$wb['mbox_error_empty'] = 'Ladresse e-mail est vide.'; +$wb['mbox_error_regex'] = 'Ladresse e-mail est dun format invalide.'; +$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng new file mode 100644 index 0000000..a828044 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Zones DNS'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Ajouter une nouvelle zone DNS(SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng new file mode 100644 index 0000000..de87763 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Enregistrement serveur'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Lenregistrement serveur est vide.'; +$wb['data_error_regex'] = 'Lenregistrement serveur est dun format invalide.'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng new file mode 100644 index 0000000..1202cfd --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nom'; +$wb['fields_txt'] = 'Champs'; +$wb['template_txt'] = 'Modèle'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng new file mode 100644 index 0000000..52455b2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Modèle dassistant DNS'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Nom'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel enregistrement'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng new file mode 100644 index 0000000..2126a3f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hôte'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Texte'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actif'; +$wb['limit_dns_record_txt'] = 'Le nombre maximum denregistrements DNS pour votre compte a été atteint.'; +$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.'; +$wb['name_error_empty'] = 'Lhôte est vide.'; +$wb['name_error_regex'] = 'Lhôte est dun format invalide.'; +$wb['data_error_empty'] = 'Le texte est vide.'; +$wb['data_error_regex'] = 'Le texte est dun format invalide.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng new file mode 100644 index 0000000..b828acd --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Modèle'; +$wb['server_id_txt'] = 'Serveur'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Créer lenregistrement DNS'; +$wb['btn_cancel_txt'] = 'Annuler'; +$wb['domain_txt'] = 'Domaine'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'Adresse IP'; +$wb['error_origin_empty'] = 'Origine vide.'; +$wb['error_ns_empty'] = 'Serveur de nom vide.'; +$wb['error_mbox_empty'] = 'MBox vide.'; +$wb['error_refresh_empty'] = 'Rafraichissement vide.'; +$wb['error_retry_empty'] = 'Réésai vide.'; +$wb['error_expire_empty'] = 'Expiration vide.'; +$wb['error_minimum_empty'] = 'Minimum vide.'; +$wb['error_ttl_empty'] = 'TTL vide.'; +$wb['error_domain_empty'] = 'Domaine evide'; +$wb['error_ip_empty'] = 'IP vide.'; +$wb['error_ns1_empty'] = 'NS1 vide.'; +$wb['error_ns2_empty'] = 'NS2 vide.'; +$wb['error_email_empty'] = 'Email vide.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu.lng b/interface/ispconfig/interface/dns/lib/lang/hu.lng new file mode 100644 index 0000000..36def8e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng new file mode 100644 index 0000000..8802139 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IP-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +$wb['data_error_duplicate'] = 'Duplicate A-Record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng new file mode 100644 index 0000000..acab150 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priority'; +$wb['type_txt'] = 'Type'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['add_new_record_txt'] = 'Add new DNS A-Record'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng new file mode 100644 index 0000000..31ef0da --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng new file mode 100644 index 0000000..0d90bcf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Host information empty'; +$wb['data_error_regex'] = 'Host Information format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng new file mode 100644 index 0000000..648827f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Priority'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Mailserver hostname empty'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng new file mode 100644 index 0000000..713ec28 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The zone is empty.'; +$wb['name_error_regex'] = 'The zone has the wrong format.'; +$wb['data_error_empty'] = 'Nameserver empty'; +$wb['data_error_regex'] = 'Nameserver format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng new file mode 100644 index 0000000..c026384 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The name is empty.'; +$wb['name_error_regex'] = 'The name has the wrong format.'; +$wb['data_error_empty'] = 'Canonical hostname empty'; +$wb['data_error_regex'] = 'Canonical hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng new file mode 100644 index 0000000..d38efd1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Responsible Person'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Responsible person field empty'; +$wb['data_error_regex'] = 'Responsible person field format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng new file mode 100644 index 0000000..e63ffb7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['server_id_error_empty'] = 'No server selected'; +$wb['origin_error_empty'] = 'Zone empty.'; +$wb['origin_error_unique'] = 'There is already a record for this zone.'; +$wb['origin_error_regex'] = 'Zone has a invalid format.'; +$wb['ns_error_regex'] = 'NS has a invalid format.'; +$wb['mbox_error_empty'] = 'Email is empty.'; +$wb['mbox_error_regex'] = 'Email format invalid.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng new file mode 100644 index 0000000..42bb329 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zones'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new DNS Zone (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng new file mode 100644 index 0000000..d4ea60b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Server Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Server record empty'; +$wb['data_error_regex'] = 'Server record format invalid'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng new file mode 100644 index 0000000..3a09e3b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Name'; +$wb['fields_txt'] = 'Fields'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng new file mode 100644 index 0000000..8d9d730 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Wizard Template'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng new file mode 100644 index 0000000..8e6c417 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Text empty'; +$wb['data_error_regex'] = 'Text format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng new file mode 100644 index 0000000..ffceabb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Create DNS Record'; +$wb['btn_cancel_txt'] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it.lng b/interface/ispconfig/interface/dns/lib/lang/it.lng new file mode 100644 index 0000000..36def8e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng new file mode 100644 index 0000000..8802139 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IP-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +$wb['data_error_duplicate'] = 'Duplicate A-Record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng new file mode 100644 index 0000000..87c9cd8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priority'; +$wb['type_txt'] = 'Type'; +$wb['add_new_record_txt'] = 'Add new DNS A-Record'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng new file mode 100644 index 0000000..31ef0da --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng new file mode 100644 index 0000000..0d90bcf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Host information empty'; +$wb['data_error_regex'] = 'Host Information format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng new file mode 100644 index 0000000..648827f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Priority'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Mailserver hostname empty'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng new file mode 100644 index 0000000..713ec28 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The zone is empty.'; +$wb['name_error_regex'] = 'The zone has the wrong format.'; +$wb['data_error_empty'] = 'Nameserver empty'; +$wb['data_error_regex'] = 'Nameserver format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng new file mode 100644 index 0000000..c026384 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The name is empty.'; +$wb['name_error_regex'] = 'The name has the wrong format.'; +$wb['data_error_empty'] = 'Canonical hostname empty'; +$wb['data_error_regex'] = 'Canonical hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng new file mode 100644 index 0000000..d38efd1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Responsible Person'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Responsible person field empty'; +$wb['data_error_regex'] = 'Responsible person field format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng new file mode 100644 index 0000000..e63ffb7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['server_id_error_empty'] = 'No server selected'; +$wb['origin_error_empty'] = 'Zone empty.'; +$wb['origin_error_unique'] = 'There is already a record for this zone.'; +$wb['origin_error_regex'] = 'Zone has a invalid format.'; +$wb['ns_error_regex'] = 'NS has a invalid format.'; +$wb['mbox_error_empty'] = 'Email is empty.'; +$wb['mbox_error_regex'] = 'Email format invalid.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng new file mode 100644 index 0000000..42bb329 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zones'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new DNS Zone (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng new file mode 100644 index 0000000..d4ea60b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Server Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Server record empty'; +$wb['data_error_regex'] = 'Server record format invalid'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng new file mode 100644 index 0000000..3a09e3b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Name'; +$wb['fields_txt'] = 'Fields'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng new file mode 100644 index 0000000..8d9d730 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Wizard Template'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng new file mode 100644 index 0000000..8e6c417 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Text empty'; +$wb['data_error_regex'] = 'Text format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng new file mode 100644 index 0000000..ffceabb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Create DNS Record'; +$wb['btn_cancel_txt'] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja.lng b/interface/ispconfig/interface/dns/lib/lang/ja.lng new file mode 100644 index 0000000..f96696b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'ゾーン'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'レコード'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT レコード'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng new file mode 100644 index 0000000..50f5516 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'IPアドレス'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'IPアドレスを入力してください。'; +$wb['data_error_regex'] = 'IPアドレスの形式が不正です。'; +$wb['data_error_duplicate'] = 'Aレコードが重複しています。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng new file mode 100644 index 0000000..e2297bb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'Aレコード'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = '名前'; +$wb['data_txt'] = '値'; +$wb['aux_txt'] = '優先度'; +$wb['type_txt'] = '種別'; +$wb['add_new_record_txt'] = 'Aレコードを追加する'; +$wb['page_txt'] = 'ページ'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = '本当にこのレコードを削除してもいいですか?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng new file mode 100644 index 0000000..2ca0650 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'IPv6アドレス'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'IPアドレスを入力してください。'; +$wb['data_error_regex'] = 'IPアドレスの形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng new file mode 100644 index 0000000..4e469a1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'ターゲットホスト名'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'ターゲットのホスト名を入力してください。'; +$wb['data_error_regex'] = 'ターゲットのホスト名の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng new file mode 100644 index 0000000..4e469a1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'ターゲットホスト名'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'ターゲットのホスト名を入力してください。'; +$wb['data_error_regex'] = 'ターゲットのホスト名の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng new file mode 100644 index 0000000..a0df197 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'HINFO(ホスト情報)'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'HINFO を入力してください。'; +$wb['data_error_regex'] = 'HINFO の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng new file mode 100644 index 0000000..648827f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Priority'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Mailserver hostname empty'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng new file mode 100644 index 0000000..b9070d8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ゾーン'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'ネームサーバー名'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ゾーンを入力してください。'; +$wb['name_error_regex'] = 'ゾーンの形式が不正です。'; +$wb['data_error_empty'] = 'ネームサーバー名を入力してください。'; +$wb['data_error_regex'] = 'ネームサーバーの形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng new file mode 100644 index 0000000..8f5f3da --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = '名前'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'CNAME(正規名)'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = '名前を入力してください。'; +$wb['name_error_regex'] = '名前の形式が不正です。'; +$wb['data_error_empty'] = 'CNAME を入力してください。'; +$wb['data_error_regex'] = 'CNAME の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng new file mode 100644 index 0000000..c43a721 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'RP(責任者)'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'RP を入力してください。'; +$wb['data_error_regex'] = 'RP の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng new file mode 100644 index 0000000..d00e8af --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'メールアドレス'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'ゾーン転送を許可するIPアドレス<br />(, で区切ってください)'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_zone_txt'] = 'DNSゾーンが最大数に達しました。'; +$wb['client_txt'] = 'クライアント'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['server_id_error_empty'] = 'サーバーを選択してください。'; +$wb['origin_error_empty'] = 'Zone を指定してください。'; +$wb['origin_error_unique'] = '同名の Zone が既に存在します。'; +$wb['origin_error_regex'] = 'Zone名が不正な文字を含んでいます。'; +$wb['ns_error_regex'] = 'NS が不正な文字を含んでいます。'; +$wb['mbox_error_empty'] = 'メールアドレスを指定してください'; +$wb['mbox_error_regex'] = 'メールアドレスの形式が不正です。'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng new file mode 100644 index 0000000..d6660d9 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zone'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['origin_txt'] = 'ゾーン'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'メールアドレス'; +$wb['add_new_record_txt'] = 'DNSゾーン(SOA)を追加する'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng new file mode 100644 index 0000000..94a7f37 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'SRV(サービス)レコード'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'SRVレコードを入力してください。'; +$wb['data_error_regex'] = 'SRVレコードの形式が不正です。'; +$wb['srv_error_regex'] = 'SRVレコードの形式が不正です。SRVレコードはスペースで区切られた3つの文字列で記述してください。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng new file mode 100644 index 0000000..7c05ae1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = '名前'; +$wb['fields_txt'] = 'フィールド'; +$wb['template_txt'] = 'テンプレート'; +$wb['visible_txt'] = '公開する'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng new file mode 100644 index 0000000..2ed5746 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNSウィザードテンプレート'; +$wb['visible_txt'] = '公開する'; +$wb['name_txt'] = 'サーバー名'; +$wb['add_new_record_txt'] = 'レコードを追加する'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng new file mode 100644 index 0000000..3af17ab --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['zone_txt'] = 'ゾーン'; +$wb['name_txt'] = 'ホスト名'; +$wb['type_txt'] = '種別'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = '有効'; +$wb['limit_dns_record_txt'] = 'DNSレコードが最大数に達しました。'; +$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。'; +$wb['name_error_empty'] = 'ホスト名を入力してください。'; +$wb['name_error_regex'] = 'ホスト名の形式が不正です。'; +$wb['data_error_empty'] = 'TXT を入力してください。'; +$wb['data_error_regex'] = 'TXT の形式が不正です。'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng new file mode 100644 index 0000000..508911d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'テンプレート'; +$wb['server_id_txt'] = 'サーバー'; +$wb['client_txt'] = 'クライアント'; +$wb['btn_save_txt'] = 'DNSレコードを追加する'; +$wb['btn_cancel_txt'] = 'キャンセル'; +$wb['domain_txt'] = 'ドメイン'; +$wb['email_txt'] = 'メールアドレス'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IPアドレス'; +$wb['error_origin_empty'] = 'origin を指定してください。'; +$wb['error_ns_empty'] = 'NS を指定してください。'; +$wb['error_mbox_empty'] = 'mbox を指定してください。'; +$wb['error_refresh_empty'] = 'refresh を指定してください。'; +$wb['error_retry_empty'] = 'retry を指定してください。'; +$wb['error_expire_empty'] = 'expire を指定してください。'; +$wb['error_minimum_empty'] = 'minimum を指定してください。'; +$wb['error_ttl_empty'] = 'ttl を指定してください。'; +$wb['error_domain_empty'] = 'ドメインを指定してください。'; +$wb['error_ip_empty'] = 'IP を指定してください。'; +$wb['error_ns1_empty'] = 'NS1 を指定してください。'; +$wb['error_ns2_empty'] = 'NS2 を指定してください。'; +$wb['error_email_empty'] = 'メールアドレスを指定してください'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl.lng b/interface/ispconfig/interface/dns/lib/lang/nl.lng new file mode 100644 index 0000000..56e5386 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS zones'; +$wb['DNS Wizard'] = 'DNS wizard'; +$wb['Add DNS Zone'] = 'DNS zone toevoegen'; +$wb['Templates'] = 'Templates'; +$wb['Zones'] = 'Overzicht'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT record'; +$wb['DNS TXT'] = 'DNS TXT'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng new file mode 100644 index 0000000..32bab74 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv4 adres'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een onjuiste indeling.'; +$wb['data_error_empty'] = 'IP-adres is leeg.'; +$wb['data_error_regex'] = 'IP-adres indeling ongeldig.'; +$wb['data_error_duplicate'] = 'Dit A-record bestaat al.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng new file mode 100644 index 0000000..9ffacd2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Naam'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Prioriteit'; +$wb['type_txt'] = 'Type'; +$wb['add_new_record_txt'] = 'Nieuw DNS A-Record toevoegen'; +$wb['page_txt'] = 'Pagina'; +$wb['page_of_txt'] = 'van'; +$wb['delete_confirmation'] = 'Weet u zeker dat u dit record wilt verwijderen?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng new file mode 100644 index 0000000..c40ae84 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6 adres'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'Max. aantal DNS records is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toegang om DNS records aan deze zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een verkeerde indeling.'; +$wb['data_error_empty'] = 'IP-adres is leeg.'; +$wb['data_error_regex'] = 'IP-adres heeft geen juiste indeling.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng new file mode 100644 index 0000000..2f9cccf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Doel Hostnaam'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toegang om een record in deze zone aan te maken.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een verkeerde indeling.'; +$wb['data_error_empty'] = 'Doel hostnaam is leeg'; +$wb['data_error_regex'] = 'Doel hostnaam indeling is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng new file mode 100644 index 0000000..c5891e4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Doel hostnaam'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft het verkeerde formaat.'; +$wb['data_error_empty'] = 'Doel hostnaam is leeg.'; +$wb['data_error_regex'] = 'Doel hostnaam formaat ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng new file mode 100644 index 0000000..a7287c4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Host Informatie'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft het verkeerde indeling.'; +$wb['data_error_empty'] = 'Host informatie is leeg.'; +$wb['data_error_regex'] = 'Host Informatie indeling is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng new file mode 100644 index 0000000..f93195c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostnaam'; +$wb['aux_txt'] = 'Prioriteit'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een ongeldige indeling.'; +$wb['data_error_empty'] = 'Mailserver hostnaam is leeg.'; +$wb['data_error_regex'] = 'Mailserver hostnaam indeling is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng new file mode 100644 index 0000000..75a91b4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Nameserver Hostnaam'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De zone is leeg.'; +$wb['name_error_regex'] = 'De zone heeft het verkeerde formaat.'; +$wb['data_error_empty'] = 'Nameserver is leeg.'; +$wb['data_error_regex'] = 'Nameserver formaat ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng new file mode 100644 index 0000000..4bd1563 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Naam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Canonical Hostnaam'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'The naam is leeg.'; +$wb['name_error_regex'] = 'The naam heeft het verkeerde formaat.'; +$wb['data_error_empty'] = 'Canonical hostnaam is leeg.'; +$wb['data_error_regex'] = 'Canonical hostnaam formaat ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng new file mode 100644 index 0000000..1195406 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Verantwoordelijke persoon'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een ongeldige indeling.'; +$wb['data_error_empty'] = 'Verantwoordelijke persoon veld is leeg.'; +$wb['data_error_regex'] = 'Verantwoordelijke persoon veld indeling is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng new file mode 100644 index 0000000..e1d149a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'DNS zone'; +$wb['ns_txt'] = 'Primaire nameserver'; +$wb['mbox_txt'] = 'E-mailadres zone-verantwoordelijke'; +$wb['serial_txt'] = 'Versienummer zonefile'; +$wb['refresh_txt'] = 'Sl. NS: Vernieuw zone na'; +$wb['retry_txt'] = 'Pr. NS: Bij fout, refresh na'; +$wb['expire_txt'] = 'Slave NS: Zone verloopt na'; +$wb['minimum_txt'] = 'TTL minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Toegestane IP-adressen voor zone-transfer'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_zone_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['client_txt'] = 'Klant'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['server_id_error_empty'] = 'Geen server geselecteerd.'; +$wb['origin_error_empty'] = 'DNS zone is leeg.'; +$wb['origin_error_unique'] = 'Er bestaat al een record voor deze zone.'; +$wb['origin_error_regex'] = 'DNS zone heeft een ongeldige indeling.'; +$wb['ns_error_regex'] = 'Nameserver heeft een ongeldige indeling.'; +$wb['mbox_error_empty'] = 'E-mailadres is leeg.'; +$wb['mbox_error_regex'] = 'De indeling van het e-mailadres is ongeldig.'; +$wb['also_notify_txt'] = 'Updates melden aan extra slaves (also-notify)'; +$wb['update_acl_txt'] = 'Update Access Control List'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng new file mode 100644 index 0000000..e6474cb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS zones'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'DNS zone'; +$wb['ns_txt'] = 'Primaire nameserver'; +$wb['mbox_txt'] = 'E-mailadres zone-verantwoordelijke'; +$wb['add_new_record_txt'] = 'Nieuwe DNS zone toevoegen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng new file mode 100644 index 0000000..202d62d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Server Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'The hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een verkeerde indeling.'; +$wb['data_error_empty'] = 'Server record is leeg.'; +$wb['data_error_regex'] = 'Server record indeling is ongeldig.'; +$wb['srv_error_regex'] = 'Ongeldig SRV record-format. Het record bestaat uit 3 tekenreeksen gescheiden door spaties.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng new file mode 100644 index 0000000..a6f8e0e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Naam template'; +$wb['fields_txt'] = 'Toon invoervelden tijdens DNS wizard'; +$wb['template_txt'] = 'Template-data<br /><br /><a href=http://www.howtoforge.com/forums/showthread.php?p=215031 target=_blank style=font-weight:bold;>Voorbeeld (in nieuw venster)</a>'; +$wb['visible_txt'] = 'Geactiveerd voor DNS wizard?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng new file mode 100644 index 0000000..6ca214c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS template overzicht'; +$wb['visible_txt'] = 'Geactiveerd voor DNS Wizard?'; +$wb['name_txt'] = 'Template naam'; +$wb['add_new_record_txt'] = 'Nieuw DNS template toevoegen'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng new file mode 100644 index 0000000..94dbb3f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostnaam'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_dns_record_txt'] = 'Het max. aantal aan DNS records voor uw account is bereikt.'; +$wb['no_zone_perm'] = 'U heeft geen toestemming om een record aan deze DNS zone toe te voegen.'; +$wb['name_error_empty'] = 'De hostnaam is leeg.'; +$wb['name_error_regex'] = 'De hostnaam heeft een ongeldige indeling.'; +$wb['data_error_empty'] = 'Tekst is leeg.'; +$wb['data_error_regex'] = 'Tekst indeling is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng new file mode 100644 index 0000000..e7093f0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Klant'; +$wb['btn_save_txt'] = 'DNS zone toevoegen'; +$wb['btn_cancel_txt'] = 'Annuleren'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['email_txt'] = 'E-mail'; +$wb['ns1_txt'] = 'Nameserver 1'; +$wb['ns2_txt'] = 'Nameserver 2'; +$wb['ip_txt'] = 'IP-adres'; +$wb['error_origin_empty'] = 'Afkomst leeg.'; +$wb['error_ns_empty'] = 'Primaire nameserver is leeg.'; +$wb['error_mbox_empty'] = 'E-mailadres zone-verantwoordelijke is leeg.'; +$wb['error_refresh_empty'] = 'Vernieuw-tijd is leeg.'; +$wb['error_retry_empty'] = 'Refresh-tijd is leeg.'; +$wb['error_expire_empty'] = 'Verloop-tijd is leeg.'; +$wb['error_minimum_empty'] = 'TTL Minimum is leeg.'; +$wb['error_ttl_empty'] = 'TTL is leeg.'; +$wb['error_domain_empty'] = 'Domeinnaam is leeg.'; +$wb['error_ip_empty'] = 'IP-adres is leeg.'; +$wb['error_ns1_empty'] = 'Nameserver 1 is leeg.'; +$wb['error_ns2_empty'] = 'Nameserver 2 is leeg.'; +$wb['error_email_empty'] = 'E-mail is leeg.'; +$wb['error_domain_regex'] = 'Domeinnaam bevat ongeldige tekens.'; +$wb['error_ns1_regex'] = 'Nameserver 1 bevat ongeldige tekens.'; +$wb['error_ns2_regex'] = 'Nameserver 2 bevat ongeldige tekens.'; +$wb['error_email_regex'] = 'E-mail bevat een ongeldig e-mailadres.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl.lng b/interface/ispconfig/interface/dns/lib/lang/pl.lng new file mode 100644 index 0000000..0a3f1a9 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Strefy'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'Alias DNS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'Strefa DNS'; +$wb['Records'] = 'Wpisy'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'Wpis DNS TXT'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng new file mode 100644 index 0000000..4ad0a7c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Adres - IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis DNS dla tej strefy.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma niepoprawny format.'; +$wb['data_error_empty'] = 'Adres IP jest pusty'; +$wb['data_error_regex'] = 'Adres IP ma niepoprawny format'; +$wb['data_error_duplicate'] = 'Duplikat wpisu A'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng new file mode 100644 index 0000000..3d0db05 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Wpis'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priorytet'; +$wb['type_txt'] = 'Typ'; +$wb['add_new_record_txt'] = 'Dodaj nowy A-Wpis DNS'; +$wb['page_txt'] = 'Strona'; +$wb['page_of_txt'] = 'z'; +$wb['delete_confirmation'] = 'Jesteś pewny, że chcesz usunąć ten wpis?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng new file mode 100644 index 0000000..983fae1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Adres IPv6'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis w tej strefie DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma niepoprawny format.'; +$wb['data_error_empty'] = 'Adres IP jest pusty'; +$wb['data_error_regex'] = 'Adres IP ma niepoprawny format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng new file mode 100644 index 0000000..a950805 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Docelowa nazwa serwera'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywne'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis dla tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma zły format.'; +$wb['data_error_empty'] = 'Docelowa nazwa serwera jest pusta.'; +$wb['data_error_regex'] = 'Docelowa nazwa serwera ma niepoprawny format.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng new file mode 100644 index 0000000..92cb4ac --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Docelowa nazwa serwera'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywne'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis w tej strefie DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma niepoprawny format.'; +$wb['data_error_empty'] = 'Docelowa nazwa serwera jest pusta'; +$wb['data_error_regex'] = 'Docelowa nazwa serwera ma niepoprawny format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng new file mode 100644 index 0000000..53b6da2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Informacje o serwerze'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis do tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma niepoprawny format.'; +$wb['data_error_empty'] = 'Informacje o serwerze są puste'; +$wb['data_error_regex'] = 'Informacje o serwerze mają niepoprawny format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng new file mode 100644 index 0000000..4a3936a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Nazwa serwera poczty e-mail'; +$wb['aux_txt'] = 'Priorytet'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis do tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma zły format.'; +$wb['data_error_empty'] = 'Nazwa serwera poczty e-mail jest pusta.'; +$wb['data_error_regex'] = 'Nazwa serwera poczty e-mail ma niepoprawny format.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng new file mode 100644 index 0000000..18d7efd --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Strefa'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Nazwa serwera'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywne'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis do tej strefy DNS.'; +$wb['name_error_empty'] = 'Strefa jest pusta.'; +$wb['name_error_regex'] = 'Strefa ma zły format.'; +$wb['data_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['data_error_regex'] = 'Nazwa serwera ma zły format.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng new file mode 100644 index 0000000..eae3981 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Standardowa nazwa serwera'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis do tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa jest pusta.'; +$wb['name_error_regex'] = 'Nazwa ma zły format.'; +$wb['data_error_empty'] = 'Standardowa nazwa serwera jest pusta'; +$wb['data_error_regex'] = 'Standardowa nazwa serwera ma zły format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng new file mode 100644 index 0000000..ece9346 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Osoba odpowiedzialna'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis do tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma zły format.'; +$wb['data_error_empty'] = 'Musisz podać osobę odpowiedzialna'; +$wb['data_error_regex'] = 'Nazwa osoby odpowiedzialnej ma niepoprawny format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng new file mode 100644 index 0000000..868615e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['origin_txt'] = 'Strefa (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'E-mail'; +$wb['serial_txt'] = 'Klucz'; +$wb['refresh_txt'] = 'Odśwież'; +$wb['retry_txt'] = 'Ponów'; +$wb['expire_txt'] = 'Wygasł'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Zezwól na przeniesienie stref do <br />tych adresów IP (adresy rozdzielaj przecinkiem)'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_zone_txt'] = 'Maksymalna ilość stref DNS dla Twojego konta została przekroczona.'; +$wb['client_txt'] = 'Klient'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis dla tej strefy DNS.'; +$wb['server_id_error_empty'] = 'Nie wybrano serwera'; +$wb['origin_error_empty'] = 'Strefa jest pusta.'; +$wb['origin_error_unique'] = 'Istnieje już wpis dla tej strefy.'; +$wb['origin_error_regex'] = 'Strefa ma niepoprawny format.'; +$wb['ns_error_regex'] = 'NS ma niepoprawny format.'; +$wb['mbox_error_empty'] = 'E-mail jest pusty.'; +$wb['mbox_error_regex'] = 'E-mail ma niepoprawny format.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng new file mode 100644 index 0000000..126209e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Strefy DNS'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['origin_txt'] = 'Strefa'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Dodaj nową stefę DNS (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng new file mode 100644 index 0000000..6339621 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Wpis serwera'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis dla tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma zły format.'; +$wb['data_error_empty'] = 'Wpis serwera jest pusty'; +$wb['data_error_regex'] = 'Wpis serwera ma niepoprawny format'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng new file mode 100644 index 0000000..f3e7563 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nazwa'; +$wb['fields_txt'] = 'Pola'; +$wb['template_txt'] = 'Szablon'; +$wb['visible_txt'] = 'Widoczność'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng new file mode 100644 index 0000000..7deac3b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Instalator szablonów DNS'; +$wb['visible_txt'] = 'Widoczność'; +$wb['name_txt'] = 'Nazwa'; +$wb['add_new_record_txt'] = 'Dodaj nowy wpis'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng new file mode 100644 index 0000000..628d5c0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['zone_txt'] = 'Strefa'; +$wb['name_txt'] = 'Nazwa serwera'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Tekst'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_dns_record_txt'] = 'Maksymalna ilość wpisów DNS dla Twojego konta została przekroczona.'; +$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis dla tej strefy DNS.'; +$wb['name_error_empty'] = 'Nazwa serwera jest pusta.'; +$wb['name_error_regex'] = 'Nazwa serwera ma zły format.'; +$wb['data_error_empty'] = 'Tekst jest pusty'; +$wb['data_error_regex'] = 'Tekst ma zły format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng new file mode 100644 index 0000000..a5d6a90 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Szablon'; +$wb['server_id_txt'] = 'Serwer'; +$wb['client_txt'] = 'Klient'; +$wb['btn_save_txt'] = 'Stwórz wpid DNS'; +$wb['btn_cancel_txt'] = 'Anuluj'; +$wb['domain_txt'] = 'Domena'; +$wb['email_txt'] = 'E-mail'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'Adres IP'; +$wb['error_origin_empty'] = 'Źródło jest puste.'; +$wb['error_ns_empty'] = 'NS jest pusty.'; +$wb['error_mbox_empty'] = 'Mbox jest pusty.'; +$wb['error_refresh_empty'] = 'Odśwież jest puste.'; +$wb['error_retry_empty'] = 'Ponów jest puste.'; +$wb['error_expire_empty'] = 'Wygasł jest puste.'; +$wb['error_minimum_empty'] = 'Minimum jest puste.'; +$wb['error_ttl_empty'] = 'TTL jest puste.'; +$wb['error_domain_empty'] = 'Domena jest pusta'; +$wb['error_ip_empty'] = 'IP jest puste.'; +$wb['error_ns1_empty'] = 'NS1 jest puste.'; +$wb['error_ns2_empty'] = 'NS2 jest puste.'; +$wb['error_email_empty'] = 'E-mail jest pusty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/pt.lng b/interface/ispconfig/interface/dns/lib/lang/pt.lng new file mode 100644 index 0000000..9f1ccff --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt.lng @@ -0,0 +1,21 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zonas'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'ALIAS DNS'; +$wb['DNS CNAME'] = 'CNAME DNS'; +$wb['DNS hinfo'] = 'hinfo DNS'; +$wb['DNS mx'] = 'mx DNS'; +$wb['DNS ns'] = 'ns DNS'; +$wb['DNS ptr'] = 'ptr DNS'; +$wb['DNS RP'] = 'RP DNS'; +$wb['DNS Zone'] = 'Zona DNS'; +$wb['Records'] = 'Registos'; +$wb['DNS SRV'] = 'SRV DNS'; +$wb['DNS TXT Record'] = 'Registo TXT DNS'; +$wb['DNS TXT'] = 'TXT DNS'; +$wb['DNS Wizard'] = 'Assistente de DNS'; +$wb['Add DNS Zone'] = 'Adicionar Zona DNS'; +$wb['Templates'] = 'Templates'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng new file mode 100644 index 0000000..3774b1a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Endereço-IP'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +$wb['data_error_duplicate'] = 'Registo-A duplicado'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng new file mode 100644 index 0000000..d7d55f2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng @@ -0,0 +1,15 @@ +<?php +$wb['list_head_txt'] = 'Registo (A)'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nome'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Prioridade'; +$wb['type_txt'] = 'Tipo'; +$wb['add_new_record_txt'] = 'Adicionar um novo registo DNS (A)'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Tem certeza que deseja remover este registo?'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng new file mode 100644 index 0000000..4b4524b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Endereço-IPv6'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP com formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng new file mode 100644 index 0000000..d7e91e6 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Alvo'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de registos DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname está em branco.'; +$wb['name_error_regex'] = 'O hostname está em um formato inválido.'; +$wb['data_error_empty'] = 'Hostname de destino está em branco'; +$wb['data_error_regex'] = 'O hostname de destino está em um formato inválido.'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng new file mode 100644 index 0000000..bb75bcc --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname de Destino'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de registos DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname está em branco.'; +$wb['name_error_regex'] = 'O hostname está em um formato inválido.'; +$wb['data_error_empty'] = 'Hostname de destino está em branco'; +$wb['data_error_regex'] = 'O hostname de destino está em um formato inválido.'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng new file mode 100644 index 0000000..6682917 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Informações do Host'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a esta zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng new file mode 100644 index 0000000..d8b59a7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname do servidor de correio'; +$wb['aux_txt'] = 'Prioridade'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Hostname do servidor de correio em branco'; +$wb['data_error_regex'] = 'Hostname do servidor de correio formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng new file mode 100644 index 0000000..2e16d94 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Zona'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Servidor de Nomes'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'A zona está em branco.'; +$wb['name_error_regex'] = 'A zona está com formato inválido.'; +$wb['data_error_empty'] = 'Servidor de nomes em branco'; +$wb['data_error_regex'] = 'Servidor de nomes com formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng new file mode 100644 index 0000000..298872a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Nnome'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Hostname Canônico'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng new file mode 100644 index 0000000..ba45e85 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Pessoa Responsável'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Pessoa responsável em branco'; +$wb['data_error_regex'] = 'Pessoa responsável formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng new file mode 100644 index 0000000..5d10de2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng @@ -0,0 +1,27 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Correio'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Permitir transferências de zona para <br />estes IPs (lista separada por ponto e vírgula)'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_zone_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['client_txt'] = 'Cliente'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['server_id_error_empty'] = 'Servidor não seleccionado'; +$wb['origin_error_empty'] = 'Zona vazia.'; +$wb['origin_error_unique'] = 'Este registo já existe nesta zona.'; +$wb['origin_error_regex'] = 'Formato de zona inválido.'; +$wb['ns_error_regex'] = 'NS tem um formato inválido.'; +$wb['mbox_error_empty'] = 'Correio está em branco.'; +$wb['mbox_error_regex'] = 'Correio com formato inválido.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Actualizar ACL'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng new file mode 100644 index 0000000..1345faf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Zonas DNS'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['origin_txt'] = 'Zona'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adicionar uma nova zona dns (SOA)'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng new file mode 100644 index 0000000..853bcf5 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Registo do Servidor'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'O Hostname está em branco.'; +$wb['name_error_regex'] = 'O Hostname está com formato inválido.'; +$wb['data_error_empty'] = 'Registo do Servidor em branco'; +$wb['data_error_regex'] = 'Registo do Servidor com formato inválido'; +$wb['srv_error_regex'] = 'Registo do Servidor com formato inválido. São necessários 3 textos separados por espaços'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng new file mode 100644 index 0000000..9ee4e72 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng @@ -0,0 +1,7 @@ +<?php +$wb['name_txt'] = 'Nome'; +$wb['fields_txt'] = 'Campos'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Visível'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng new file mode 100644 index 0000000..1c89fd5 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Assistente de Templates DNS'; +$wb['visible_txt'] = 'Visível'; +$wb['name_txt'] = 'Nome'; +$wb['add_new_record_txt'] = 'Adicionar novo registo'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng new file mode 100644 index 0000000..8e73107 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tipo'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activo'; +$wb['limit_dns_record_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.'; +$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.'; +$wb['name_error_empty'] = 'Hostname em branco.'; +$wb['name_error_regex'] = 'Hostname tem um formato inválido.'; +$wb['data_error_empty'] = 'Endereço-IP em branco'; +$wb['data_error_regex'] = 'Endereço-IP formato inválido'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng new file mode 100644 index 0000000..8e1663c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng @@ -0,0 +1,30 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Servidor'; +$wb['client_txt'] = 'Cliente'; +$wb['btn_save_txt'] = 'Criar Registo DNS'; +$wb['btn_cancel_txt'] = 'Cancelar'; +$wb['domain_txt'] = 'Domínio'; +$wb['email_txt'] = 'Correio'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'Endereço IP'; +$wb['error_origin_empty'] = 'Origem em branco.'; +$wb['error_ns_empty'] = 'NS vazio.'; +$wb['error_mbox_empty'] = 'Mbox vazia.'; +$wb['error_refresh_empty'] = 'Refresh vazio.'; +$wb['error_retry_empty'] = 'Retry vazio.'; +$wb['error_expire_empty'] = 'Expire vazio.'; +$wb['error_minimum_empty'] = 'Minimum vazio.'; +$wb['error_ttl_empty'] = 'TTL vazio.'; +$wb['error_domain_empty'] = 'Domínio vazio'; +$wb['error_ip_empty'] = 'IP vazio.'; +$wb['error_ns1_empty'] = 'NS1 vazio.'; +$wb['error_ns2_empty'] = 'NS2 vazio.'; +$wb['error_email_empty'] = 'Correio vazio.'; +$wb['error_domain_regex'] = 'Domínio contém caracteres inválidos.'; +$wb['error_ns1_regex'] = 'NS1 contém caracteres inválidos.'; +$wb['error_ns2_regex'] = 'NS2 contém caracteres inválidos.'; +$wb['error_email_regex'] = 'Email não contém um endereço de correio válido.'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ro.lng b/interface/ispconfig/interface/dns/lib/lang/ro.lng new file mode 100644 index 0000000..908f2aa --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zone'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng new file mode 100644 index 0000000..617c9d6 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'IP-Adresa'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de DNS -uri pe contul dumneavoastra a fost atins.'; +$wb['no_zone_perm'] = 'Nu aveti dreptul de a adauga inregistrari in aceasta zona DNS .'; +$wb['name_error_empty'] = 'Hostname necompletat'; +$wb['name_error_regex'] = 'Hostname format gresit'; +$wb['data_error_empty'] = 'IP-Adresa vid'; +$wb['data_error_regex'] = 'IP-Adresa format invalid'; +$wb['data_error_duplicate'] = 'Duplicate A-Record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng new file mode 100644 index 0000000..a17f698 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Activ'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Nume'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Prioritate'; +$wb['type_txt'] = 'Tip'; +$wb['add_new_record_txt'] = 'Adauga o noua inregistrare DNS de tip A '; +$wb['page_txt'] = 'Pagina'; +$wb['page_of_txt'] = 'din'; +$wb['delete_confirmation'] = 'Chiar vreti sa stergeti inregistrarea ?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng new file mode 100644 index 0000000..c56d558 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'IPv6-Address'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'IP-Address empty'; +$wb["data_error_regex"] = 'IP-Address format invalid'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng new file mode 100644 index 0000000..defa63a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Hostname tinta'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Ati atins numarul maxim de DNS -uri '; +$wb['no_zone_perm'] = 'NU aveti drept de adaugare pe aceasta zona DNS'; +$wb['name_error_empty'] = 'Hostname tinta este vid'; +$wb['name_error_regex'] = 'Hostname in format gresit'; +$wb['data_error_empty'] = 'Hostname tinta este vid'; +$wb['data_error_regex'] = 'Hostname tinta format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng new file mode 100644 index 0000000..199d1f4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Hostname Tinta'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de inregistrari DNS a fost atins pe contul dumneavoastra .'; +$wb['no_zone_perm'] = 'NU aveti permisiunea de a adauga inregistrari la aceasta zona DNS '; +$wb['name_error_empty'] = 'Rubrica hostname necompletata'; +$wb['name_error_regex'] = 'Hostname cu format gresit'; +$wb['data_error_empty'] = 'Hostname tinta necompletat'; +$wb['data_error_regex'] = 'Hostname tinta cu format gresit'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng new file mode 100644 index 0000000..598f7ab --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Host Informatii'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de inregistrari DNS pe contul dumneavostra a fost atins.'; +$wb['no_zone_perm'] = 'NU aveti permisiunea de a adauga inregistrari DNS la aceasta zona .'; +$wb['name_error_empty'] = 'Hostname e necompletat'; +$wb['name_error_regex'] = 'Hostname cu format invalid'; +$wb['data_error_empty'] = 'Informatie HOST invalida'; +$wb['data_error_regex'] = 'Informatie HOST cu format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng new file mode 100644 index 0000000..3c5b548 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Prioritate'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de DNS-uri pentru contul dumneavoastra a fost atins.'; +$wb['no_zone_perm'] = 'NU aveti drept de adaugare DNS pentru acest cont.'; +$wb['name_error_empty'] = 'Hostname este vid'; +$wb['name_error_regex'] = 'Hostname format gresit.'; +$wb['data_error_empty'] = 'Mailserver hostname necompletat.'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng new file mode 100644 index 0000000..0bf8e7e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de inregistrari DNS pe contul dumneavoastra a ajuns la limita'; +$wb['no_zone_perm'] = 'Nu aveti permisiunea e a adauga inregistrari la aceasta zona DNS'; +$wb['name_error_empty'] = 'Zona e necompletata'; +$wb['name_error_regex'] = 'Zona are format gresit'; +$wb['data_error_empty'] = 'Nameserver necompletat'; +$wb['data_error_regex'] = 'Nameserver format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng new file mode 100644 index 0000000..cda046d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Nume'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'Numarul de inregistrari DNS pe contul dumneavoastra a ajuns la limita '; +$wb['no_zone_perm'] = 'Nu aveti permisiunea de a adauga inregistrari la aceasta zona DNS'; +$wb['name_error_empty'] = 'Numele nu e completat'; +$wb['name_error_regex'] = 'Numele are format gresit'; +$wb['data_error_empty'] = 'Canonical hostname necompletat'; +$wb['data_error_regex'] = 'Canonical hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng new file mode 100644 index 0000000..b77bab2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zona'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'tip'; +$wb['data_txt'] = 'Persoana responsabila'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Activ'; +$wb['limit_dns_record_txt'] = 'Numarul de inregistrari DNS pe contul dumneavoastra a fost atins'; +$wb['no_zone_perm'] = 'NU aveti permisiunea de a adauga inregistrari DNS la aceasta zona..'; +$wb['name_error_empty'] = 'Hostname necompletat'; +$wb['name_error_regex'] = 'Hostname cu format gresit'; +$wb['data_error_empty'] = 'Rubrica Persoana responsabila necompletata'; +$wb['data_error_regex'] = 'rubrica persoana responsabila cu format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng new file mode 100644 index 0000000..a70d730 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Reincarca'; +$wb['retry_txt'] = 'Reincearca'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Accepta transfer zone catre <br />aceste IP-uri (comma separated list)'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_zone_txt'] = 'numar max DNS zone pentru contul dumnevoastra a fost atins.'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'Nu aveti permisiunea de a adauga aceasta inregistrare in zona DNS .'; +$wb['server_id_error_empty'] = 'Nu a fost ales serverul'; +$wb['origin_error_empty'] = 'Zone goale'; +$wb['origin_error_unique'] = 'Exista deja o inregistrare pentru aceasta zona'; +$wb['origin_error_regex'] = 'Zona are un format invalid'; +$wb['ns_error_regex'] = 'NS are un format invalid'; +$wb['mbox_error_empty'] = 'Email-ul este gol'; +$wb['mbox_error_regex'] = 'Format email invalid.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng new file mode 100644 index 0000000..e170456 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zone'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Adauga o noua zona DNS (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng new file mode 100644 index 0000000..a8b5011 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Inregistrare Server '; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de inregistrari DNS pentru contul dumneavoastra a fost atins'; +$wb['no_zone_perm'] = 'Nu aveti permisiunea sa adaugati inregistrari pe aceasta zona DNS'; +$wb['name_error_empty'] = 'Hostname e necompletat'; +$wb['name_error_regex'] = 'Hostname in format gresit'; +$wb['data_error_empty'] = 'Inregistrare Server necompletata'; +$wb['data_error_regex'] = 'Inregistrare Server format invalid'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng new file mode 100644 index 0000000..f097bb3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Nume'; +$wb['fields_txt'] = 'Campuri'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Vizibil'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng new file mode 100644 index 0000000..0a14156 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Template in Wizard'; +$wb['visible_txt'] = 'Vizibile'; +$wb['name_txt'] = 'Nume'; +$wb['add_new_record_txt'] = 'Adauga inregistrare'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng new file mode 100644 index 0000000..b3f781d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'Numarul maxim de inregistrari DNS pentru contul dumneavoastra a fost atins'; +$wb['no_zone_perm'] = 'Nu aveti dreptul de a adauga inregistrari la aceasta zona DNS'; +$wb['name_error_empty'] = 'Hostname este necompletat'; +$wb['name_error_regex'] = 'Hostname in format gresit'; +$wb['data_error_empty'] = 'Text necompletat'; +$wb['data_error_regex'] = 'Format text invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng new file mode 100644 index 0000000..71d3497 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Creeaza inregistrare DNS '; +$wb['btn_cancel_txt'] = 'Anuleaza'; +$wb['domain_txt'] = 'Domeniu'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origine nula'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/ru.lng b/interface/ispconfig/interface/dns/lib/lang/ru.lng new file mode 100644 index 0000000..b47936e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru.lng @@ -0,0 +1,21 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Зоны'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'Помощник DNS'; +$wb['Add DNS Zone'] = 'Добавить зону DNS'; +$wb['Templates'] = 'Шаблоны'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng new file mode 100644 index 0000000..81647b9 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'IP-адрес'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей для вашего аккаунта, достигнуто.'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'IP-адрес пустой'; +$wb['data_error_regex'] = 'Формат IP-адреса неправилен'; +$wb['data_error_duplicate'] = 'Дубль A-записи'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng new file mode 100644 index 0000000..803d4d6 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng @@ -0,0 +1,15 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Активна?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя'; +$wb['data_txt'] = 'Дата'; +$wb['type_txt'] = 'Тип'; +$wb['add_new_record_txt'] = 'Добавить DNS A-Record'; +$wb['aux_txt'] = 'Приоритет'; +$wb['page_txt'] = 'Страница'; +$wb['page_of_txt'] = 'из'; +$wb['delete_confirmation'] = 'Вы действительно хотите удалить эту запись?'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng new file mode 100644 index 0000000..8692069 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Макс.число DNS записей для вашего аккаунта достигнуто.'; +$wb['no_zone_perm'] = 'Нет прав добавлять записи в эту зону.'; +$wb['name_error_empty'] = 'Пустое имя хоста.'; +$wb['name_error_regex'] = 'Неправильный формат имени хоста.'; +$wb['data_error_empty'] = 'Пустой IP-адрес'; +$wb['data_error_regex'] = 'Неверный формат IP-адреса'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng new file mode 100644 index 0000000..784f99e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Целевое имя узла'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Целевое имя узла пустое'; +$wb['data_error_regex'] = 'Целевое имя узла в неправильном формате'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng new file mode 100644 index 0000000..6089373 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей для вашего аккаунта, превышено.'; +$wb['no_zone_perm'] = 'Вы не имеете прав для добавления DNS зоны.'; +$wb['name_error_empty'] = 'Имя узла пустое.'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Целевое имя узла пустое'; +$wb['data_error_regex'] = 'Целевое имя узла имеет неправильный формат'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng new file mode 100644 index 0000000..986891e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Информация об узле отсутсвует'; +$wb['data_error_regex'] = 'Поле Host Information имеет неправильный формат'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng new file mode 100644 index 0000000..d1bcbb2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Имя хоста почтового сервера'; +$wb['aux_txt'] = 'Приоритет'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Mailserver имя узла пустое'; +$wb['data_error_regex'] = 'Mailserver имя узла в неправильном формате'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng new file mode 100644 index 0000000..8e9f7d6 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Зона'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Имя узла Nameserver'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Зона пустая.'; +$wb['name_error_regex'] = 'Зона имеет неправильный формат.'; +$wb['data_error_empty'] = 'Nameserver пустой'; +$wb['data_error_regex'] = 'Nameserver имеет неправильный формат'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng new file mode 100644 index 0000000..2e5e000 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'Type'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей для вашего аккаунта, достигнуто.'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя пустое.'; +$wb['name_error_regex'] = 'Имя имеет неправильный формат.'; +$wb['data_error_empty'] = 'Canonical hostname пустой'; +$wb['data_error_regex'] = 'Canonical hostname имеет неправильный формат'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng new file mode 100644 index 0000000..2201506 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Ответственная особа'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Поле ответственная особа пустое'; +$wb['data_error_regex'] = 'Поле ответственная особа имеет неправильный формат'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng new file mode 100644 index 0000000..03dfdeb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng @@ -0,0 +1,27 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['origin_txt'] = 'Зона (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Xfer (IP)'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_zone_txt'] = 'Максимальное число DNS зон для учетной записи, достигнуто'; +$wb['client_txt'] = 'Клиент'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['server_id_error_empty'] = 'Сервер не выбран'; +$wb['origin_error_empty'] = 'Зона пуста.'; +$wb['origin_error_unique'] = 'Для этой зоны уже есть запись.'; +$wb['origin_error_regex'] = 'Зона имеет неправильный формат.'; +$wb['ns_error_regex'] = 'NS имеет неправильный формат.'; +$wb['mbox_error_empty'] = 'Email пуст.'; +$wb['mbox_error_regex'] = 'Email имеет неправильный формат.'; +$wb['also_notify_txt'] = 'Известить'; +$wb['update_acl_txt'] = 'Обновить ACL'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng new file mode 100644 index 0000000..250f49a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'DNS зоны'; +$wb['active_txt'] = 'Активна?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['origin_txt'] = 'Зона'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Добавить новую DNS Zone (SOA)'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng new file mode 100644 index 0000000..dece24a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'тип'; +$wb['data_txt'] = 'Сервер Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеет прав для добавления записи в DNS зону.'; +$wb['name_error_empty'] = 'Имя узла пустое'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Сервер record пустой'; +$wb['data_error_regex'] = 'Сервер record имеет неправильный формат'; +$wb['srv_error_regex'] = 'Неверный формат сервера record. Сервер record должен содержать 3 текстовые строки разделенные пробелом.'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng new file mode 100644 index 0000000..9b9b0c1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng @@ -0,0 +1,7 @@ +<?php +$wb['name_txt'] = 'Имя'; +$wb['fields_txt'] = 'Поля'; +$wb['template_txt'] = 'Шаблон'; +$wb['visible_txt'] = 'Видимый'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng new file mode 100644 index 0000000..b9c4fc3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Шаблон DNS-помощника'; +$wb['visible_txt'] = 'Видимый'; +$wb['name_txt'] = 'Имя'; +$wb['add_new_record_txt'] = 'Добавить запись'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng new file mode 100644 index 0000000..98e342f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['zone_txt'] = 'Зона'; +$wb['name_txt'] = 'Имя узла'; +$wb['type_txt'] = 'Тип'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Активна?'; +$wb['limit_dns_record_txt'] = 'Максимальное число DNS записей, достигнуто'; +$wb['no_zone_perm'] = 'Вы не имеете прав для добавления DNS зоны.'; +$wb['name_error_empty'] = 'Имя узла пустое.'; +$wb['name_error_regex'] = 'Имя узла имеет неправильный формат.'; +$wb['data_error_empty'] = 'Текст пустой'; +$wb['data_error_regex'] = 'Формат неправилен'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng new file mode 100644 index 0000000..62f2759 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng @@ -0,0 +1,30 @@ +<?php +$wb['template_id_txt'] = 'Шаблон'; +$wb['server_id_txt'] = 'Сервер'; +$wb['client_txt'] = 'Клиент'; +$wb['btn_save_txt'] = 'Создать DNS запись'; +$wb['btn_cancel_txt'] = 'Отмена'; +$wb['domain_txt'] = 'Домен'; +$wb['email_txt'] = 'E-mail'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP-адрес'; +$wb['error_origin_empty'] = 'Пустой Origin.'; +$wb['error_ns_empty'] = 'Пустой NS.'; +$wb['error_mbox_empty'] = 'Пустой Mbox.'; +$wb['error_refresh_empty'] = 'Пустой Refresh.'; +$wb['error_retry_empty'] = 'Пустой Retry.'; +$wb['error_expire_empty'] = 'Пустой Expire.'; +$wb['error_minimum_empty'] = 'Пустой Minimum.'; +$wb['error_ttl_empty'] = 'Пустой TTL.'; +$wb['error_domain_empty'] = 'Пустой Domain'; +$wb['error_ip_empty'] = 'Пустой IP.'; +$wb['error_ns1_empty'] = 'Пустой NS1.'; +$wb['error_ns2_empty'] = 'Пустой NS2.'; +$wb['error_email_empty'] = 'Пустой E-Mail.'; +$wb['error_domain_regex'] = 'Домен содержит неверные символы.'; +$wb['error_ns1_regex'] = 'NS1 содержит неверные символы.'; +$wb['error_ns2_regex'] = 'NS2 содержит неверные символы.'; +$wb['error_email_regex'] = 'E-mail не содержит правильного e-mail адреса.'; +?> + diff --git a/interface/ispconfig/interface/dns/lib/lang/se.lng b/interface/ispconfig/interface/dns/lib/lang/se.lng new file mode 100644 index 0000000..36def8e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng new file mode 100644 index 0000000..8802139 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IP-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +$wb['data_error_duplicate'] = 'Duplicate A-Record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng new file mode 100644 index 0000000..87c9cd8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priority'; +$wb['type_txt'] = 'Type'; +$wb['add_new_record_txt'] = 'Add new DNS A-Record'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng new file mode 100644 index 0000000..31ef0da --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'IPv6-Address'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'IP-Address empty'; +$wb['data_error_regex'] = 'IP-Address format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng new file mode 100644 index 0000000..827e5a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Target Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Target hostname empty'; +$wb['data_error_regex'] = 'Target hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng new file mode 100644 index 0000000..0d90bcf --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Host Information'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Host information empty'; +$wb['data_error_regex'] = 'Host Information format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng new file mode 100644 index 0000000..648827f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Mailserver hostname'; +$wb['aux_txt'] = 'Priority'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Mailserver hostname empty'; +$wb['data_error_regex'] = 'Mailserver hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng new file mode 100644 index 0000000..713ec28 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The zone is empty.'; +$wb['name_error_regex'] = 'The zone has the wrong format.'; +$wb['data_error_empty'] = 'Nameserver empty'; +$wb['data_error_regex'] = 'Nameserver format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng new file mode 100644 index 0000000..c026384 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Name'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The name is empty.'; +$wb['name_error_regex'] = 'The name has the wrong format.'; +$wb['data_error_empty'] = 'Canonical hostname empty'; +$wb['data_error_regex'] = 'Canonical hostname format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng new file mode 100644 index 0000000..d38efd1 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Responsible Person'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Responsible person field empty'; +$wb['data_error_regex'] = 'Responsible person field format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng new file mode 100644 index 0000000..e63ffb7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.'; +$wb['client_txt'] = 'Client'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['server_id_error_empty'] = 'No server selected'; +$wb['origin_error_empty'] = 'Zone empty.'; +$wb['origin_error_unique'] = 'There is already a record for this zone.'; +$wb['origin_error_regex'] = 'Zone has a invalid format.'; +$wb['ns_error_regex'] = 'NS has a invalid format.'; +$wb['mbox_error_empty'] = 'Email is empty.'; +$wb['mbox_error_regex'] = 'Email format invalid.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng new file mode 100644 index 0000000..42bb329 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zones'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new DNS Zone (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng new file mode 100644 index 0000000..d4ea60b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Server Record'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Server record empty'; +$wb['data_error_regex'] = 'Server record format invalid'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng new file mode 100644 index 0000000..3a09e3b --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Name'; +$wb['fields_txt'] = 'Fields'; +$wb['template_txt'] = 'Template'; +$wb['visible_txt'] = 'Visible'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng new file mode 100644 index 0000000..8d9d730 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Wizard Template'; +$wb['visible_txt'] = 'Visible'; +$wb['name_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new record'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng new file mode 100644 index 0000000..8e6c417 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'type'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Active'; +$wb['limit_dns_record_txt'] = 'The max. number of DNS records for your account is reached.'; +$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.'; +$wb['name_error_empty'] = 'The hostname is empty.'; +$wb['name_error_regex'] = 'The hostname has the wrong format.'; +$wb['data_error_empty'] = 'Text empty'; +$wb['data_error_regex'] = 'Text format invalid'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng new file mode 100644 index 0000000..ffceabb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb['btn_save_txt'] = 'Create DNS Record'; +$wb['btn_cancel_txt'] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk.lng b/interface/ispconfig/interface/dns/lib/lang/sk.lng new file mode 100644 index 0000000..a7f9836 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Z�ny'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Z�na'; +$wb['Records'] = 'Z�znamy'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Z�znam'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng new file mode 100644 index 0000000..ce9974d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'IP Adresa'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Akt�vny'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'IP Adresa je pr�zdna'; +$wb['data_error_regex'] = 'IP Adresa m� zl� form�t.'; +$wb['data_error_duplicate'] = 'Duplik�tny A-z�znam'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng new file mode 100644 index 0000000..d1124a9 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Z�znam'; +$wb['active_txt'] = 'Aktivova?'; +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Meno'; +$wb['data_txt'] = 'Data'; +$wb['aux_txt'] = 'Priorita'; +$wb['type_txt'] = 'Typ'; +$wb['add_new_record_txt'] = 'Prida? nov� DNS-Z�znam'; +$wb['page_txt'] = 'Strana'; +$wb['page_of_txt'] = 'z'; +$wb['delete_confirmation'] = 'Naozaj chcete zmaza? tento z�znam?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng new file mode 100644 index 0000000..03dfe3f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'IPv6-Adresa'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'IP-Adresa pr�zdna'; +$wb['data_error_regex'] = 'IP-Adresa m� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng new file mode 100644 index 0000000..a7b4cb2 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Cie?ov� Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Cie?ov� hostname je pr�zdny'; +$wb['data_error_regex'] = 'Cie?ov� hostname m� neplatn� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng new file mode 100644 index 0000000..dc76870 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Cie?ov� Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Cie?ov� hostname je pr�zdny'; +$wb['data_error_regex'] = 'Target hostname m� zl� format'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng new file mode 100644 index 0000000..33b814f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Inform�cie o hoste'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam this DNS zone.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Host inform�cie s� pr�zdne'; +$wb['data_error_regex'] = 'Host inform�cie maj� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng new file mode 100644 index 0000000..d179568 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Hostname mailserveru'; +$wb['aux_txt'] = 'Priorita'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Hostname mailserveru je pr�zdny'; +$wb['data_error_regex'] = 'Hostname mailserveru m� neplatn� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng new file mode 100644 index 0000000..5df4592 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Z�na'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS. Navrhn�? lep�� preklad'; +$wb['name_error_empty'] = 'Z�na je pr�zdna.'; +$wb['name_error_regex'] = 'Z�na m� nespr�vny form�t.'; +$wb['data_error_empty'] = 'Nameserver je pr�zdny'; +$wb['data_error_regex'] = 'Nameserver m� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng new file mode 100644 index 0000000..cac489d --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Meno'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Meno je pr�zdny.'; +$wb['name_error_regex'] = 'Meno m� zl� form�t.'; +$wb['data_error_empty'] = 'Canonical hostname pr�zdny'; +$wb['data_error_regex'] = 'Canonical hostname m� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng new file mode 100644 index 0000000..582b61c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Zodpovedn� osoba'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Pole zodpovedn� osoba je pr�zdne'; +$wb['data_error_regex'] = 'Pole zodpovedn� osoba m� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng new file mode 100644 index 0000000..98de52e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Z�na (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Seriov� ?islo'; +$wb['refresh_txt'] = 'Obnovi?'; +$wb['retry_txt'] = 'Opakova?'; +$wb['expire_txt'] = 'Expirova?'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Povoli? prenosy z�ny na <br />tieto IP (comma separated list)'; +$wb['active_txt'] = 'Act�vova?'; +$wb['limit_dns_zone_txt'] = 'Max. po?et z�n DNS pre v� �?et je dosiahnut�.'; +$wb['client_txt'] = 'Klient'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['server_id_error_empty'] = '�iaden vybran� server'; +$wb['origin_error_empty'] = 'Prazdna z�na.'; +$wb['origin_error_unique'] = 'V s�?asnosti u� existuje z�znam pre t�to z�nu.'; +$wb['origin_error_regex'] = 'Z�na m� neplatn� form�t.'; +$wb['ns_error_regex'] = 'NS m� neplatn� form�t.'; +$wb['mbox_error_empty'] = 'Email je pr�zdny.'; +$wb['mbox_error_regex'] = 'Email m� neplatn� form�t.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng new file mode 100644 index 0000000..91a9788 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Z�ny'; +$wb['active_txt'] = 'Akt�vny'; +$wb['server_id_txt'] = 'Server'; +$wb['origin_txt'] = 'Z�na'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Prida? nov� DNS Z�nu (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng new file mode 100644 index 0000000..7f867d3 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Z�znam o servery'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Server z�znam je pr�zdny'; +$wb['data_error_regex'] = 'Server z�znam m� zl� form�t'; +$wb['srv_error_regex'] = 'Server m� zl� form�t z�znamu. Server z�znam mus� obsahova? 3 textov� re?azcov oddelen�ch medzerami.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng new file mode 100644 index 0000000..4dd637f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'Meno'; +$wb['fields_txt'] = 'Polia'; +$wb['template_txt'] = '�abl�na'; +$wb['visible_txt'] = 'Vidite?n�'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng new file mode 100644 index 0000000..0a7c5d7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS �abl�nov� Sprievodca '; +$wb['visible_txt'] = 'Vidite?n�'; +$wb['name_txt'] = 'Meno'; +$wb['add_new_record_txt'] = 'Prida? nov� z�znam'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng new file mode 100644 index 0000000..e0137c0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['zone_txt'] = 'Z�na'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'typ'; +$wb['data_txt'] = 'Text'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktivova?'; +$wb['limit_dns_record_txt'] = 'Max. po?et z�znamov DNS pre v� �?et je dosiahnut�.'; +$wb['no_zone_perm'] = 'Nem�te opr�vnenie prida? z�znam do tejto z�ny DNS.'; +$wb['name_error_empty'] = 'Hostname je pr�zdny.'; +$wb['name_error_regex'] = 'Hostname m� zl� form�t.'; +$wb['data_error_empty'] = 'Text je pr�zdny'; +$wb['data_error_regex'] = 'Text m� zl� form�t'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng new file mode 100644 index 0000000..7c845c7 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = '�abl�na'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Klient'; +$wb['btn_save_txt'] = 'Vytvori? DNS z�znam'; +$wb['btn_cancel_txt'] = 'Zru�i?'; +$wb['domain_txt'] = 'Dom�na'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Adresa'; +$wb['error_origin_empty'] = 'P�vod pr�zdny.'; +$wb['error_ns_empty'] = 'NS pr�zdny.'; +$wb['error_mbox_empty'] = 'Mbox pr�zdny.'; +$wb['error_refresh_empty'] = 'Obnoovanie pr�zdne.'; +$wb['error_retry_empty'] = 'Opakovanie pr�zdne.'; +$wb['error_expire_empty'] = 'Expir�cia pr�zdna.'; +$wb['error_minimum_empty'] = 'Minimum pr�zdne.'; +$wb['error_ttl_empty'] = 'TTL pr�zdne.'; +$wb['error_domain_empty'] = 'Dom�na pr�zdna.'; +$wb['error_ip_empty'] = 'IP pr�zdna.'; +$wb['error_ns1_empty'] = 'NS1 pr�zdne.'; +$wb['error_ns2_empty'] = 'NS2 pr�zdne.'; +$wb['error_email_empty'] = 'EMail pr�zdny.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr.lng b/interface/ispconfig/interface/dns/lib/lang/tr.lng new file mode 100644 index 0000000..36def8e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr.lng @@ -0,0 +1,20 @@ +<?php +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; +$wb['DNS Wizard'] = 'DNS Wizard'; +$wb['Add DNS Zone'] = 'Add DNS Zone'; +$wb['Templates'] = 'Templates'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng new file mode 100644 index 0000000..097833f --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'IP Adresi'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'IP Adresi boş'; +$wb['data_error_regex'] = 'IP Adresi yanlış formatta'; +$wb['data_error_duplicate'] = 'A-Record Tekrarı'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng new file mode 100644 index 0000000..77dcb83 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng @@ -0,0 +1,14 @@ +<?php +$wb['list_head_txt'] = 'A-Record'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'İsim'; +$wb['data_txt'] = 'Veri'; +$wb['aux_txt'] = 'Öncelik'; +$wb['type_txt'] = 'Çeşit'; +$wb['add_new_record_txt'] = 'Yeni DNS A-Record'; +$wb['page_txt'] = 'Sayfa'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = 'Bu kaydı gerçekten silmek istiyor musunuz?'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng new file mode 100644 index 0000000..3bcf250 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'IPv6 Adresleri'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'IP Adresi boş'; +$wb['data_error_regex'] = 'IP Adresi geçersiz formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng new file mode 100644 index 0000000..da1e6e6 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Hostname Hedefi'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Hostname Hedefi boş'; +$wb['data_error_regex'] = 'Hostname Hedefi yanlış formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng new file mode 100644 index 0000000..d74cfeb --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Hostname Hedefi'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Hostname hedefi boş'; +$wb['data_error_regex'] = 'Hostname hedefi yanlış formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng new file mode 100644 index 0000000..7585d13 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Host Bilgisi'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Host Bilgisi boş'; +$wb['data_error_regex'] = 'Host Bilgisi yanlış formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng new file mode 100644 index 0000000..201f686 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Mail sunucusu hostname'; +$wb['aux_txt'] = 'Öncelik'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Mail sunucusu hostname boş'; +$wb['data_error_regex'] = 'Mail sunucusu hostname geçersiz formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng new file mode 100644 index 0000000..0a5ef93 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Zone'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Nameserver Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'The zone boş.'; +$wb['name_error_regex'] = 'The zone yanlış formatta.'; +$wb['data_error_empty'] = 'Nameserver boş'; +$wb['data_error_regex'] = 'Nameserver yanlış formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng new file mode 100644 index 0000000..e343945 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'İsim'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Canonical Hostname'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'İsim boş.'; +$wb['name_error_regex'] = 'İsim yanlış formatta.'; +$wb['data_error_empty'] = 'Canonical hostname boş'; +$wb['data_error_regex'] = 'Canonical hostname geçersiz formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng new file mode 100644 index 0000000..f444fb0 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Sorumlu Kişi'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Sorumlu kişi alanı boş'; +$wb['data_error_regex'] = 'Sorumlu kişi alanı geçersiz formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng new file mode 100644 index 0000000..756ea05 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['origin_txt'] = 'Zone (SOA)'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['serial_txt'] = 'Serial'; +$wb['refresh_txt'] = 'Refresh'; +$wb['retry_txt'] = 'Retry'; +$wb['expire_txt'] = 'Expire'; +$wb['minimum_txt'] = 'Minimum'; +$wb['ttl_txt'] = 'TTL'; +$wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_zone_txt'] = 'Hesabınızdaki max. DNS zone kaydına ulaşıldı.'; +$wb['client_txt'] = 'Müşteri'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['server_id_error_empty'] = 'Seçili sunucu yok'; +$wb['origin_error_empty'] = 'Zone boş.'; +$wb['origin_error_unique'] = 'Bu zone için bir kayıt zaten var.'; +$wb['origin_error_regex'] = 'Zone geçersiz formatta.'; +$wb['ns_error_regex'] = 'NS geçersiz formatta.'; +$wb['mbox_error_empty'] = 'Email boş.'; +$wb['mbox_error_regex'] = 'Email geçersiz formatta.'; +$wb['also_notify_txt'] = 'Also Notify'; +$wb['update_acl_txt'] = 'Update ACL'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng new file mode 100644 index 0000000..4670b20 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'DNS Zones'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['origin_txt'] = 'Zone'; +$wb['ns_txt'] = 'NS'; +$wb['mbox_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Yeni DNS Zone (SOA)'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng new file mode 100644 index 0000000..c56d06e --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Sunucu Kayıdı'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Sunucu kaydı boş'; +$wb['data_error_regex'] = 'Sunucu kaydı geçersiz formatta'; +$wb['srv_error_regex'] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng new file mode 100644 index 0000000..1c973fa --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng @@ -0,0 +1,6 @@ +<?php +$wb['name_txt'] = 'İsim'; +$wb['fields_txt'] = 'Alanlar'; +$wb['template_txt'] = 'Şablon'; +$wb['visible_txt'] = 'Görünür'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng new file mode 100644 index 0000000..9bc064c --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'DNS Sihirbazı Şablonu'; +$wb['visible_txt'] = 'Görünür'; +$wb['name_txt'] = 'İsim'; +$wb['add_new_record_txt'] = 'Yeni Kayıt'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng new file mode 100644 index 0000000..b247521 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng @@ -0,0 +1,15 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['zone_txt'] = 'Zone'; +$wb['name_txt'] = 'Hostname'; +$wb['type_txt'] = 'çeşit'; +$wb['data_txt'] = 'Metin'; +$wb['ttl_txt'] = 'TTL'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_dns_record_txt'] = 'Hesabınıdaki max. DNS kaydı limitine ulaştınız.'; +$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.'; +$wb['name_error_empty'] = 'Hostname boş.'; +$wb['name_error_regex'] = 'Hostname yanlış formatta.'; +$wb['data_error_empty'] = 'Metin boş'; +$wb['data_error_regex'] = 'Metin geçersiz formatta'; +?> diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng new file mode 100644 index 0000000..dbd4d5a --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng @@ -0,0 +1,29 @@ +<?php +$wb['template_id_txt'] = 'Şablon'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['client_txt'] = 'Müşteri'; +$wb['btn_save_txt'] = 'Yeni DNS Kaydı'; +$wb['btn_cancel_txt'] = 'İptal'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Adresi'; +$wb['error_origin_empty'] = 'Origin boş.'; +$wb['error_ns_empty'] = 'NS boş.'; +$wb['error_mbox_empty'] = 'Mbox boş.'; +$wb['error_refresh_empty'] = 'Refresh boş.'; +$wb['error_retry_empty'] = 'Retry boş.'; +$wb['error_expire_empty'] = 'Expire boş.'; +$wb['error_minimum_empty'] = 'Minimum boş.'; +$wb['error_ttl_empty'] = 'TTL boş.'; +$wb['error_domain_empty'] = 'Domain boş'; +$wb['error_ip_empty'] = 'IP boş.'; +$wb['error_ns1_empty'] = 'NS1 boş.'; +$wb['error_ns2_empty'] = 'NS2 boş.'; +$wb['error_email_empty'] = 'EMail boş.'; +$wb['error_domain_regex'] = 'Domain contains invalid characters.'; +$wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; +$wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; +$wb['error_email_regex'] = 'Email does not contain a valid email address.'; +?> diff --git a/interface/ispconfig/interface/dns/lib/module.conf.php b/interface/ispconfig/interface/dns/lib/module.conf.php new file mode 100644 index 0000000..ae7e8c4 --- /dev/null +++ b/interface/ispconfig/interface/dns/lib/module.conf.php @@ -0,0 +1,57 @@ +<?php + +$module["name"] = "dns"; +$module["title"] = "top_menu_dns"; +$module["template"] = "module.tpl.htm"; +$module["startpage"] = "dns/dns_soa_list.php"; +$module["tab_width"] = ''; + + +$items[] = array( 'title' => "Add DNS Zone", + 'target' => 'content', + 'link' => 'dns/dns_wizard.php'); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + + $items[] = array( 'title' => "Templates", + 'target' => 'content', + 'link' => 'dns/dns_template_list.php'); +} + + +$module["nav"][] = array( 'title' => 'DNS Wizard', + 'open' => 1, + 'items' => $items); + + +unset($items); + +/* + Email accounts menu +*/ + + +$items[] = array( 'title' => "Zones", + 'target' => 'content', + 'link' => 'dns/dns_soa_list.php'); +/* +$items[] = array( 'title' => "A-Records", + 'target' => 'content', + 'link' => 'dns/dns_a_list.php'); +*/ + + +$module["nav"][] = array( 'title' => 'DNS', + 'open' => 1, + 'items' => $items); + +unset($items); + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/list/dns_a.list.php b/interface/ispconfig/interface/dns/list/dns_a.list.php new file mode 100644 index 0000000..54470cf --- /dev/null +++ b/interface/ispconfig/interface/dns/list/dns_a.list.php @@ -0,0 +1,127 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "dns_a"; + +// Database table +$liste["table"] = "dns_rr"; + +// Index index field of the database table +$liste["table_idx"] = "id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "dns_a_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "dns_a_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "dns_a_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "zone", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,origin FROM dns_soa WHERE {AUTHSQL} ORDER BY origin', + 'keyfield'=> 'id', + 'valuefield'=> 'origin' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "data", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "aux", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "type", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('A'=>'A','AAAA' => 'AAAA','ALIAS'=>'ALIAS','CNAME'=>'CNAME','HINFO'=>'HINFO','MX'=>'MX','NS'=>'NS','PTR'=>'PTR','RP'=>'RP','SRV'=>'SRV','TXT'=>'TXT')); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/list/dns_soa.list.php b/interface/ispconfig/interface/dns/list/dns_soa.list.php new file mode 100644 index 0000000..3e5fae6 --- /dev/null +++ b/interface/ispconfig/interface/dns/list/dns_soa.list.php @@ -0,0 +1,111 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "dns_soa"; + +// Database table +$liste["table"] = "dns_soa"; + +// Index index field of the database table +$liste["table_idx"] = "id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "dns_soa_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "dns_soa_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "dns_soa_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'dns_servers' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "origin", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "ns", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "mbox", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/list/dns_template.list.php b/interface/ispconfig/interface/dns/list/dns_template.list.php new file mode 100644 index 0000000..11a1919 --- /dev/null +++ b/interface/ispconfig/interface/dns/list/dns_template.list.php @@ -0,0 +1,80 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "dns_template"; + +// Database table +$liste["table"] = "dns_template"; + +// Index index field of the database table +$liste["table_idx"] = "template_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "dns_template_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "dns_template_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "dns_template_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "visible", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/dns/templates/dns_a_edit.htm b/interface/ispconfig/interface/dns/templates/dns_a_edit.htm new file mode 100644 index 0000000..4bf2bd2 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_a_edit.htm @@ -0,0 +1,39 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_a"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint">{tmpl_var name='name_hint_txt'}</p> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_a_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_a_list.htm b/interface/ispconfig/interface/dns/templates/dns_a_list.htm new file mode 100644 index 0000000..19d35c2 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_a_list.htm @@ -0,0 +1,85 @@ + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_a_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>A</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_aaaa_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>AAAA</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_alias_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>ALIAS</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_cname_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>CNAME</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_hinfo_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>HINFO</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_mx_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>MX</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_ns_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>NS</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_ptr_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>PTR</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_rp_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>RP</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_srv_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>SRV</span> + </button> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_txt_edit.php?zone={tmpl_var name='parent_id'}');"> + <span>TXT</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_type" scope="col"><tmpl_var name="type_txt"></th> + <th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th> + <th class="tbl_col_data" scope="col"><tmpl_var name="data_txt"></th> + <th class="tbl_col_aux" scope="col"><tmpl_var name="aux_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="changeTab('dns_records','dns/dns_soa_edit.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_type"><select name="search_type" onChange="changeTab('dns_records','dns/dns_soa_edit.php');">{tmpl_var name='search_type'}</select></td> + <td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td> + <td class="tbl_col_data"><input type="text" name="search_data" value="{tmpl_var name='search_data'}" /></td> + <td class="tbl_col_aux"><input type="text" name="search_aux" value="{tmpl_var name='search_aux'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="changeTab('dns_records','dns/dns_soa_edit.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('dns/dns_{tmpl_var name='type_lowercase'}_edit.php?id={tmpl_var name='id'}');"><img src="themes/{tmpl_var name='theme'}/icons/{tmpl_var name='_active_'}" border="0" /></a></td> + <td class="tbl_col_type"><a href="#" onClick="loadContent('dns/dns_{tmpl_var name='type_lowercase'}_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="type"}</a></td> + <td class="tbl_col_name"><a href="#" onClick="loadContent('dns/dns_{tmpl_var name='type_lowercase'}_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td> + <td class="tbl_col_data"><a href="#" onClick="loadContent('dns/dns_{tmpl_var name='type_lowercase'}_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="data"}</a></td> + <td class="tbl_col_aux"><a href="#" onClick="loadContent('dns/dns_{tmpl_var name='type_lowercase'}_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="aux"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('dns/dns_rr_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> diff --git a/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm b/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm new file mode 100644 index 0000000..8508532 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm @@ -0,0 +1,39 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_aaaa"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint">{tmpl_var name='name_hint_txt'}</p> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput formLengthIPv4" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_aaaa_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm b/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm new file mode 100644 index 0000000..4300af4 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_alias"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_alias_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm b/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm new file mode 100644 index 0000000..103b743 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_cname"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_cname_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm b/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm new file mode 100644 index 0000000..9029111 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_hinfo"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_hinfo_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm b/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm new file mode 100644 index 0000000..f854724 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm @@ -0,0 +1,42 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_mx"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="aux">{tmpl_var name='aux_txt'}</label> + <input name="aux" id="aux" value="{tmpl_var name='aux'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_mx_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm b/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm new file mode 100644 index 0000000..9141b3b --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_ns"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_ns_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm b/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm new file mode 100644 index 0000000..58901cd --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_ptr"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_ptr_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_records_edit.htm b/interface/ispconfig/interface/dns/templates/dns_records_edit.htm new file mode 100644 index 0000000..1feb3f9 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_records_edit.htm @@ -0,0 +1,12 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_soa"> + + {tmpl_var name='dns_records'} + + <div class="pnl_formsarea"> + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm b/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm new file mode 100644 index 0000000..93f1e89 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_rp"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_rp_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm b/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm new file mode 100644 index 0000000..ef855a8 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm @@ -0,0 +1,95 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_soa"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>DNS Zone</legend> + <tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <tmpl_if name="is_reseller"> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <div class="ctrlHolder"> + <label for="origin">{tmpl_var name='origin_txt'}</label> + <input name="origin" id="origin" value="{tmpl_var name='origin'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. domain.tld.</p> + </div> + <div class="ctrlHolder"> + <label for="ns">{tmpl_var name='ns_txt'}</label> + <input name="ns" id="ns" value="{tmpl_var name='ns'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. ns1.domain.tld.</p> + </div> + <div class="ctrlHolder"> + <label for="mbox">{tmpl_var name='mbox_txt'}</label> + <input name="mbox" id="mbox" value="{tmpl_var name='mbox'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint"> e.g. webmaster.domain.tld.</p> + </div> + <div class="ctrlHolder"> + <label for="refresh">{tmpl_var name='refresh_txt'}</label> + <input name="refresh" id="refresh" value="{tmpl_var name='refresh'}" size="10" maxlength="10" type="text" class="textInput" /> Seconds + </div> + <div class="ctrlHolder"> + <label for="retry">{tmpl_var name='retry_txt'}</label> + <input name="retry" id="retry" value="{tmpl_var name='retry'}" size="10" maxlength="10" type="text" class="textInput" /> Seconds + </div> + <div class="ctrlHolder"> + <label for="expire">{tmpl_var name='expire_txt'}</label> + <input name="expire" id="expire" value="{tmpl_var name='expire'}" size="10" maxlength="10" type="text" class="textInput" /> Seconds + </div> + <div class="ctrlHolder"> + <label for="minimum">{tmpl_var name='minimum_txt'}</label> + <input name="minimum" id="minimum" value="{tmpl_var name='minimum'}" size="10" maxlength="10" type="text" class="textInput" /> Seconds + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> Seconds + </div> + <div class="ctrlHolder"> + <label for="xfer">{tmpl_var name='xfer_txt'}</label> + <input name="xfer" id="xfer" value="{tmpl_var name='xfer'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="also_notify">{tmpl_var name='also_notify_txt'}</label> + <input name="also_notify" id="also_notify" value="{tmpl_var name='also_notify'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="update_acl">{tmpl_var name='update_acl_txt'}</label> + <input name="update_acl" id="update_acl" value="{tmpl_var name='update_acl'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input name="serial" type="hidden" value="{tmpl_var name='serial'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_soa_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_soa_list.htm b/interface/ispconfig/interface/dns/templates/dns_soa_list.htm new file mode 100644 index 0000000..46d0160 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_soa_list.htm @@ -0,0 +1,62 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_dns_soa"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_soa_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_origin" scope="col"><tmpl_var name="origin_txt"></th> + <th class="tbl_col_ns" scope="col"><tmpl_var name="ns_txt"></th> + <th class="tbl_col_mbox" scope="col"><tmpl_var name="mbox_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','dns/dns_soa_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','dns/dns_soa_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_origin"><input type="text" name="search_origin" value="{tmpl_var name='search_origin'}" /></td> + <td class="tbl_col_ns"><input type="text" name="search_ns" value="{tmpl_var name='search_ns'}" /></td> + <td class="tbl_col_mbox"><input type="text" name="search_mbox" value="{tmpl_var name='search_mbox'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','dns/dns_soa_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='id'}');"><img src="themes/{tmpl_var name='theme'}/icons/{tmpl_var name='_active_'}" border="0" /></a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_origin"><a href="#" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="origin"}</a></td> + <td class="tbl_col_ns"><a href="#" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ns"}</a></td> + <td class="tbl_col_mbox"><a href="#" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="mbox"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('dns/dns_soa_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm b/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm new file mode 100644 index 0000000..bfa35fd --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_srv"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_srv_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_template_edit.htm b/interface/ispconfig/interface/dns/templates/dns_template_edit.htm new file mode 100644 index 0000000..34cf3b1 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_template_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_template"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="40" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='fields_txt'}</p> + <div class="multiField"> + {tmpl_var name='fields'} + </div> + </div> + <div class="ctrlHolder"> + <label for="template">{tmpl_var name='template_txt'}</label> + <textarea name="template" id="template" rows='15' cols='40'>{tmpl_var name='template'}</textarea> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='visible_txt'}</p> + <div class="multiField"> + {tmpl_var name='visible'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_template_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_template_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_template_list.htm b/interface/ispconfig/interface/dns/templates/dns_template_list.htm new file mode 100644 index 0000000..a698a97 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_template_list.htm @@ -0,0 +1,53 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_dns_template"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('dns/dns_template_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_visible" scope="col"><tmpl_var name="visible_txt"></th> + <th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_visible"><select name="search_visible" onChange="submitForm('pageForm','dns/dns_template_list.php');">{tmpl_var name='search_visible'}</select></td> + <td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','dns/dns_template_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_visible"><a href="#" onClick="loadContent('dns/dns_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="visible"}</a></td> + <td class="tbl_col_name"><a href="#" onClick="loadContent('dns/dns_template_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('dns/dns_template_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm b/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm new file mode 100644 index 0000000..d1408a9 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_dns_txt"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ttl">{tmpl_var name='ttl_txt'}</label> + <input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="zone" value="{tmpl_var name='zone'}"> + <input type="hidden" name="type" value="{tmpl_var name='type'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','dns/dns_txt_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_edit.php?id={tmpl_var name='zone'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/dns/templates/dns_wizard.htm b/interface/ispconfig/interface/dns/templates/dns_wizard.htm new file mode 100644 index 0000000..f8cd602 --- /dev/null +++ b/interface/ispconfig/interface/dns/templates/dns_wizard.htm @@ -0,0 +1,80 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<tmpl_if name="error"> + <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div> +</tmpl_if> + +<div class="panel panel_dns_wizard"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>DNS Zone</legend> + <div class="ctrlHolder"> + <label for="template_id">{tmpl_var name='template_id_txt'}</label> + <select name="template_id" id="template_id" class="selectInput" onChange="submitForm('pageForm','dns/dns_wizard.php')"> + {tmpl_var name='template_id_option'} + </select> + </div> + <tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <tmpl_if name="is_reseller"> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <tmpl_if name="DOMAIN_VISIBLE"> + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='domain_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </tmpl_if> + <tmpl_if name="IP_VISIBLE"> + <div class="ctrlHolder"> + <label for="ip">{tmpl_var name='ip_txt'}</label> + <input name="ip" id="ip" value="{tmpl_var name='ip'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </tmpl_if> + <tmpl_if name="NS1_VISIBLE"> + <div class="ctrlHolder"> + <label for="ns1">{tmpl_var name='ns1_txt'}</label> + <input name="ns1" id="ns1" value="{tmpl_var name='ns1'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </tmpl_if> + <tmpl_if name="NS2_VISIBLE"> + <div class="ctrlHolder"> + <label for="ns2">{tmpl_var name='ns2_txt'}</label> + <input name="ns2" id="ns2" value="{tmpl_var name='ns2'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </tmpl_if> + <tmpl_if name="EMAIL_VISIBLE"> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </tmpl_if> + </fieldset> + + <input type="hidden" name="create" value="0" /> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" name="btn_create" onClick="document.pageForm.create.value=1; submitForm('pageForm','dns/dns_wizard.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_wizard.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/help/form/support_message.tform.php b/interface/ispconfig/interface/help/form/support_message.tform.php new file mode 100644 index 0000000..b48dce2 --- /dev/null +++ b/interface/ispconfig/interface/help/form/support_message.tform.php @@ -0,0 +1,120 @@ +<?php + +//* Title of the form +$form["title"] = "Support Message"; + +//* Description of the form (optional) +$form["description"] = ""; + +//* Name of the form. The name shall not contain spaces or foreign characters +$form["name"] = "support_message"; + +//* The file that is used to call the form in the browser +$form["action"] = "support_message_edit.php"; + +//* The name of the database table that shall be used to store the data +$form["db_table"] = "support_message"; + +//* The name of the database table index field, this field must be a numeric auto increment column +$form["db_table_idx"] = "support_message_id"; + +//* Shall changes to this table be stored in the database history (sys_datalog) table. +//* This should be set to "yes" for all tables that store configuration information. +$form["db_history"] = "no"; // yes / no + +//* The name of the tab that is shown when the form is opened +$form["tab_default"] = "message"; + +//* The name of the default list file of this form +$form["list_default"] = "support_message_list.php"; + +//* Use the internal authentication system for this table. This should +//* be set to yes in most cases +$form["auth"] = 'yes'; // yes / no + +//* Authentocation presets. The defaults below does not need to be changed in most cases. +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + + +//* Begin of the form definition of the first tab. The name of the tab is called "message". We refer +//* to this name in the $form["tab_default"] setting above. +$form["tabs"]['message'] = array ( + 'title' => "Message", // Title of the Tab + 'width' => 100, // Tab width + 'template' => "templates/support_message_edit.htm", // Template file name + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'recipient_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'recipient_id_is_not_integer'), + ), + 'value' => '' + ), + 'sender_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'recipient_id_is_not_integer'), + ), + 'value' => '' + ), + 'subject' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'subject_is_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'message' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXTAREA', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'message_is_empty'), + ), + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '10', + 'maxlength' => '255' + ), + 'tstamp' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => time(), + 'value' => '', + 'width' => '30', + 'maxlength' => '30' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/index.php b/interface/ispconfig/interface/help/index.php new file mode 100644 index 0000000..36a2315 --- /dev/null +++ b/interface/ispconfig/interface/help/index.php @@ -0,0 +1,16 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML> +<HEAD> +<TITLE>ISPConfig Help</TITLE> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1"> +</HEAD> +<BODY BGCOLOR="#FFFFFF"> +<div align="center"> + <p> </p> + <p> </p> + <p> </p> + <p> </p> + <p> </p> +</div> +</BODY> +</HTML> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/lib/admin.conf.php b/interface/ispconfig/interface/help/lib/admin.conf.php new file mode 100644 index 0000000..58a17b0 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/admin.conf.php @@ -0,0 +1,8 @@ +<?php + +/* + The admin.conf.php file contains menu definitions to be displayed in the administration modile. +*/ + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/lib/lang/bg.lng b/interface/ispconfig/interface/help/lib/lang/bg.lng new file mode 100644 index 0000000..b93106e --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/bg.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Съобщение до поддръжката'; +$wb['Message'] = 'Съобщение'; +$wb['Send message'] = 'Изпращане на съобщение'; +$wb['View messages'] = 'Преглед на съобщенията'; +$wb['Support'] = 'Поддръжка'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng b/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng new file mode 100644 index 0000000..b6d979a --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Получател'; +$wb['sender_id_txt'] = 'Подател'; +$wb['subject_txt'] = 'Тема'; +$wb['message_txt'] = 'Съобщение'; +$wb['tstamp_txt'] = 'Дата'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng new file mode 100644 index 0000000..1a5c21c --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Съобщения до поддръжката'; +$wb['sender_id_txt'] = 'Подател'; +$wb['subject_txt'] = 'Тема'; +$wb['add_new_record_txt'] = 'Ново съобщение'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/br.lng b/interface/ispconfig/interface/help/lib/lang/br.lng new file mode 100644 index 0000000..3f45599 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/br.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Mensagem de Suporte'; +$wb['Message'] = 'Mensagem'; +$wb['Send message'] = 'Enviar Mensagem'; +$wb['View messages'] = 'Ver Mensagem'; +$wb['Support'] = 'Suporte'; +$wb['About ISPConfig'] = 'Sobre o ISPConfig'; +$wb['Version'] = 'Versão'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/br_support_message.lng b/interface/ispconfig/interface/help/lib/lang/br_support_message.lng new file mode 100644 index 0000000..99dcf30 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/br_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Para'; +$wb['sender_id_txt'] = 'De'; +$wb['subject_txt'] = 'Assunto'; +$wb['message_txt'] = 'Mensagem'; +$wb['tstamp_txt'] = 'Data'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng new file mode 100644 index 0000000..d5ba958 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Mensagens de Suporte'; +$wb['sender_id_txt'] = 'De'; +$wb['subject_txt'] = 'Assunto'; +$wb['add_new_record_txt'] = 'Crie uma nova mensagem de suporte'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/de.lng b/interface/ispconfig/interface/help/lib/lang/de.lng new file mode 100644 index 0000000..2627e48 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/de.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Supportnachricht'; +$wb['Message'] = 'Nachricht'; +$wb['Send message'] = 'Nachricht senden'; +$wb['View messages'] = 'Nachricht ansehen'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'Über ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/de_support_message.lng b/interface/ispconfig/interface/help/lib/lang/de_support_message.lng new file mode 100644 index 0000000..b026b17 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/de_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Empfänger ID'; +$wb['sender_id_txt'] = 'Absender ID'; +$wb['subject_txt'] = 'Betreff'; +$wb['message_txt'] = 'Nachricht'; +$wb['tstamp_txt'] = 'Zeitpunkt'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng new file mode 100644 index 0000000..7273475 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Supportnachricht'; +$wb['sender_id_txt'] = 'Absender'; +$wb['subject_txt'] = 'Betreff'; +$wb['add_new_record_txt'] = 'Neue Supportnachricht erstellen'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/en.lng b/interface/ispconfig/interface/help/lib/lang/en.lng new file mode 100644 index 0000000..369cbb9 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/en.lng @@ -0,0 +1,10 @@ +<?php +$wb['Support Message'] = 'Support Message'; +$wb['Message'] = 'Message'; +$wb['Send message'] = 'Send message'; +$wb['View messages'] = 'View messages'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; + +?> diff --git a/interface/ispconfig/interface/help/lib/lang/en_support_message.lng b/interface/ispconfig/interface/help/lib/lang/en_support_message.lng new file mode 100644 index 0000000..25e3221 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/en_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Recipient ID'; +$wb['sender_id_txt'] = 'Sender ID'; +$wb['subject_txt'] = 'Subject'; +$wb['message_txt'] = 'Message'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng new file mode 100644 index 0000000..9f2b3fd --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Support Messages'; +$wb['sender_id_txt'] = 'Sender'; +$wb['subject_txt'] = 'Subject'; +$wb["add_new_record_txt"] = 'Create new support message'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/lib/lang/es.lng b/interface/ispconfig/interface/help/lib/lang/es.lng new file mode 100644 index 0000000..dc4e985 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/es.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Mensaje de soporte'; +$wb['Message'] = 'Mensaje'; +$wb['Send message'] = 'Enviar mensaje'; +$wb['View messages'] = 'Ver mensajes'; +$wb['Support'] = 'Soporte'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/es_support_message.lng b/interface/ispconfig/interface/help/lib/lang/es_support_message.lng new file mode 100644 index 0000000..80a7d97 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/es_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'ID Destinatario'; +$wb['sender_id_txt'] = 'ID Remitente'; +$wb['subject_txt'] = 'Asunto'; +$wb['message_txt'] = 'Mensaje'; +$wb['tstamp_txt'] = 'Marcadetiempo'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng new file mode 100644 index 0000000..0ff8eb9 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Mensajes de soporte'; +$wb['sender_id_txt'] = 'Remitente'; +$wb['subject_txt'] = 'Asunto'; +$wb['add_new_record_txt'] = 'Crear nuevo mensaje de soporte'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fi.lng b/interface/ispconfig/interface/help/lib/lang/fi.lng new file mode 100644 index 0000000..cd13f9c --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fi.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Tukipyyntö'; +$wb['Message'] = 'Tukipyyntö'; +$wb['Send message'] = 'Lähetä tukipyyntö'; +$wb['View messages'] = 'Näytä tukipyynnöt'; +$wb['Support'] = 'Käyttäjätuki'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng b/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng new file mode 100644 index 0000000..1e693bc --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Vastaanottajan tunnus'; +$wb['sender_id_txt'] = 'Lähettäjän tunnus'; +$wb['subject_txt'] = 'Tukipyynnön aihe'; +$wb['message_txt'] = 'Tukipyyntö'; +$wb['tstamp_txt'] = 'Päiväys'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng new file mode 100644 index 0000000..4bbc1de --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Tukipyynnöt'; +$wb['sender_id_txt'] = 'Tukipyynnön lähettäjä'; +$wb['subject_txt'] = 'Tukipyynnön aihe'; +$wb['add_new_record_txt'] = 'Lähetä uusi tukipyyntö'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fr.lng b/interface/ispconfig/interface/help/lib/lang/fr.lng new file mode 100644 index 0000000..1242806 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fr.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Message de support'; +$wb['Message'] = 'Message'; +$wb['Send message'] = 'Envoyer un message'; +$wb['View messages'] = 'Voir les messages'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng b/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng new file mode 100644 index 0000000..690a912 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'ID Destinataire'; +$wb['sender_id_txt'] = 'ID Expéditeur'; +$wb['subject_txt'] = 'Sujet'; +$wb['message_txt'] = 'Message'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng new file mode 100644 index 0000000..ac63d3f --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Messages de support'; +$wb['sender_id_txt'] = 'Expéditeur'; +$wb['subject_txt'] = 'Sujet'; +$wb['add_new_record_txt'] = 'Créer un nouveau message de support'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/hu.lng b/interface/ispconfig/interface/help/lib/lang/hu.lng new file mode 100644 index 0000000..0dc1ac1 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/hu.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Support üzenet'; +$wb['Message'] = 'Üzenet'; +$wb['Send message'] = 'Üzenet küldés'; +$wb['View messages'] = 'Üzeneteket megnéz'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng b/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng new file mode 100644 index 0000000..65a3276 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Címzett azonosító'; +$wb['sender_id_txt'] = 'Küldő azonosító'; +$wb['subject_txt'] = 'Tárgy'; +$wb['message_txt'] = 'Üzenet'; +$wb['tstamp_txt'] = 'Időbélyeg'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng new file mode 100644 index 0000000..7e71ebc --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Szupport Üzenetek'; +$wb['sender_id_txt'] = 'Küldő'; +$wb['subject_txt'] = 'Tárgy'; +$wb['add_new_record_txt'] = 'Új szupport üzenet'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/it.lng b/interface/ispconfig/interface/help/lib/lang/it.lng new file mode 100644 index 0000000..a5da077 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/it.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Messaggi di supporto'; +$wb['Message'] = 'Messaggi'; +$wb['Send message'] = 'Spedisci messaggio'; +$wb['View messages'] = 'Visualizza messaggi'; +$wb['Support'] = 'Supporto'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/it_support_message.lng b/interface/ispconfig/interface/help/lib/lang/it_support_message.lng new file mode 100644 index 0000000..240e6f2 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/it_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'ID del Destinatario'; +$wb['sender_id_txt'] = 'ID del Mittente'; +$wb['subject_txt'] = 'Oggetto'; +$wb['message_txt'] = 'Messaggio'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng new file mode 100644 index 0000000..95f3558 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Messaggi di supporto'; +$wb['sender_id_txt'] = 'Mittente'; +$wb['subject_txt'] = 'Oggetto'; +$wb['add_new_record_txt'] = 'Crea nuovo messaggio di supporto'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ja.lng b/interface/ispconfig/interface/help/lib/lang/ja.lng new file mode 100644 index 0000000..57fa64e --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ja.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'サポートメッセージ'; +$wb['Message'] = 'メッセージ'; +$wb['Send message'] = 'メッセージを送信する'; +$wb['View messages'] = 'メッセージを見る'; +$wb['Support'] = 'サポート'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng new file mode 100644 index 0000000..b4e6e02 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = '宛先ID'; +$wb['sender_id_txt'] = '送信者ID'; +$wb['subject_txt'] = '件名'; +$wb['message_txt'] = '本文'; +$wb['tstamp_txt'] = '送信日時'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng new file mode 100644 index 0000000..0a68de9 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'サポートメッセージ'; +$wb['sender_id_txt'] = '送信者'; +$wb['subject_txt'] = '件名'; +$wb['add_new_record_txt'] = 'サポートメッセージを作成する'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/nl.lng b/interface/ispconfig/interface/help/lib/lang/nl.lng new file mode 100644 index 0000000..170c3d6 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/nl.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Support bericht'; +$wb['Message'] = 'Bericht sturen'; +$wb['Send message'] = 'Verstuur bericht'; +$wb['View messages'] = 'Bekijk berichten'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'Over ISPConfig'; +$wb['Version'] = 'Software versie'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng b/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng new file mode 100644 index 0000000..d2aed4c --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Versturen aan'; +$wb['sender_id_txt'] = 'Afzender'; +$wb['subject_txt'] = 'Onderwerp'; +$wb['message_txt'] = 'Bericht'; +$wb['tstamp_txt'] = 'Datum en tijd'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng new file mode 100644 index 0000000..0d7b2cb --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Support berichten'; +$wb['sender_id_txt'] = 'Afzender'; +$wb['subject_txt'] = 'Onderwerp'; +$wb['add_new_record_txt'] = 'Nieuw support bericht aanmaken'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/pl.lng b/interface/ispconfig/interface/help/lib/lang/pl.lng new file mode 100644 index 0000000..51ca7cc --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pl.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Wyślij wiadomość'; +$wb['Message'] = 'Wiadomość'; +$wb['Send message'] = 'Wyślij wiadomość'; +$wb['View messages'] = 'Pokaż wiadomość'; +$wb['Support'] = 'Pomoc'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng b/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng new file mode 100644 index 0000000..b21539a --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'ID odbiorcy'; +$wb['sender_id_txt'] = 'ID nadawcy'; +$wb['subject_txt'] = 'Temat'; +$wb['message_txt'] = 'Wiadomość'; +$wb['tstamp_txt'] = 'Kalendarz'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng new file mode 100644 index 0000000..bc32856 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Wiadomości'; +$wb['sender_id_txt'] = 'Nadawca'; +$wb['subject_txt'] = 'Temat'; +$wb['add_new_record_txt'] = 'Wyślij wiadomość'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/pt.lng b/interface/ispconfig/interface/help/lib/lang/pt.lng new file mode 100644 index 0000000..adace22 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pt.lng @@ -0,0 +1,10 @@ +<?php +$wb['Support Message'] = 'Mensagem de Suporte'; +$wb['Message'] = 'Mensagem'; +$wb['Send message'] = 'Enviar Mensagem'; +$wb['View messages'] = 'Ver Mensagem'; +$wb['Support'] = 'Suporte'; +$wb['About ISPConfig'] = 'Sobre o ISPConfig'; +$wb['Version'] = 'Versão'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng b/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng new file mode 100644 index 0000000..ce48ca9 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng @@ -0,0 +1,8 @@ +<?php +$wb['recipient_id_txt'] = 'Para'; +$wb['sender_id_txt'] = 'De'; +$wb['subject_txt'] = 'Assunto'; +$wb['message_txt'] = 'Mensagem'; +$wb['tstamp_txt'] = 'Data'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng new file mode 100644 index 0000000..ffd7d85 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mensagens de Suporte'; +$wb['sender_id_txt'] = 'De'; +$wb['subject_txt'] = 'Assunto'; +$wb['add_new_record_txt'] = 'Crie uma nova mensagem de suporte'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/ro.lng b/interface/ispconfig/interface/help/lib/lang/ro.lng new file mode 100644 index 0000000..b97df1d --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ro.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Mesaj catre suport'; +$wb['Message'] = 'Mesaje'; +$wb['Send message'] = 'Trimite mesaje'; +$wb['View messages'] = 'Vezi mesaje'; +$wb['Support'] = 'Suport'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng new file mode 100644 index 0000000..8769c85 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Destinatar ID'; +$wb['sender_id_txt'] = 'Expeditor ID'; +$wb['subject_txt'] = 'Subiect'; +$wb['message_txt'] = 'Mesaj'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng new file mode 100644 index 0000000..34aebb8 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Mesaj catre Support '; +$wb['sender_id_txt'] = 'Expeditor'; +$wb['subject_txt'] = 'Subiect'; +$wb['add_new_record_txt'] = 'Creatie mesaj nou catre support'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/ru.lng b/interface/ispconfig/interface/help/lib/lang/ru.lng new file mode 100644 index 0000000..be5e01d --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ru.lng @@ -0,0 +1,10 @@ +<?php +$wb['Support Message'] = 'Подготовка запроса'; +$wb['Message'] = 'Сообщение'; +$wb['Send message'] = 'Послать сообщение'; +$wb['View messages'] = 'Просмотр сообщений'; +$wb['Support'] = 'Поддержка'; +$wb['About ISPConfig'] = 'Об ISPConfig'; +$wb['Version'] = 'Показать версию'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng new file mode 100644 index 0000000..d59eb1f --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng @@ -0,0 +1,8 @@ +<?php +$wb['recipient_id_txt'] = 'ID получателя'; +$wb['sender_id_txt'] = 'ID отправителя'; +$wb['subject_txt'] = 'Тема'; +$wb['message_txt'] = 'Сообщение'; +$wb['tstamp_txt'] = 'Штамп времени'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng new file mode 100644 index 0000000..679d55c --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Сообщение службы поддержки'; +$wb['sender_id_txt'] = 'От'; +$wb['subject_txt'] = 'Тема'; +$wb['add_new_record_txt'] = 'Создайте новое сообщение службы поддержки'; +?> + diff --git a/interface/ispconfig/interface/help/lib/lang/se.lng b/interface/ispconfig/interface/help/lib/lang/se.lng new file mode 100644 index 0000000..16a245d --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/se.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Support Message'; +$wb['Message'] = 'Message'; +$wb['Send message'] = 'Send message'; +$wb['View messages'] = 'View messages'; +$wb['Support'] = 'Support'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/se_support_message.lng b/interface/ispconfig/interface/help/lib/lang/se_support_message.lng new file mode 100644 index 0000000..25e3221 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/se_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Recipient ID'; +$wb['sender_id_txt'] = 'Sender ID'; +$wb['subject_txt'] = 'Subject'; +$wb['message_txt'] = 'Message'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng new file mode 100644 index 0000000..d6bc2aa --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Support Messages'; +$wb['sender_id_txt'] = 'Sender'; +$wb['subject_txt'] = 'Subject'; +$wb['add_new_record_txt'] = 'Create new support message'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/sk.lng b/interface/ispconfig/interface/help/lib/lang/sk.lng new file mode 100644 index 0000000..f359d0c --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/sk.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Spr�va pre podporu'; +$wb['Message'] = 'Spr�va'; +$wb['Send message'] = 'Odosla? spr�vu'; +$wb['View messages'] = 'Prezrie? spr�vy'; +$wb['Support'] = 'Podpora'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng b/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng new file mode 100644 index 0000000..08d0eae --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Pr�jemca ID'; +$wb['sender_id_txt'] = 'Odosielate? ID'; +$wb['subject_txt'] = 'Predmet'; +$wb['message_txt'] = 'Spr�va'; +$wb['tstamp_txt'] = '?asov� pe?iatka'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng new file mode 100644 index 0000000..9d432bf --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Spr�vy pre podporu'; +$wb['sender_id_txt'] = 'Odosielate?'; +$wb['subject_txt'] = 'Predmet'; +$wb['add_new_record_txt'] = 'Vytvori? nov� spr�vu pre podporu'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/tr.lng b/interface/ispconfig/interface/help/lib/lang/tr.lng new file mode 100644 index 0000000..b38ed5f --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/tr.lng @@ -0,0 +1,9 @@ +<?php +$wb['Support Message'] = 'Destek Mesajı'; +$wb['Message'] = 'Mesaj'; +$wb['Send message'] = 'Mesaj gönder'; +$wb['View messages'] = 'Mesajlara bak'; +$wb['Support'] = 'Destek'; +$wb['About ISPConfig'] = 'About ISPConfig'; +$wb['Version'] = 'Version'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng b/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng new file mode 100644 index 0000000..25e3221 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng @@ -0,0 +1,7 @@ +<?php +$wb['recipient_id_txt'] = 'Recipient ID'; +$wb['sender_id_txt'] = 'Sender ID'; +$wb['subject_txt'] = 'Subject'; +$wb['message_txt'] = 'Message'; +$wb['tstamp_txt'] = 'Timestamp'; +?> diff --git a/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng new file mode 100644 index 0000000..acdb363 --- /dev/null +++ b/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Destek Mesajları'; +$wb['sender_id_txt'] = 'Gönderici'; +$wb['subject_txt'] = 'Konu'; +$wb['add_new_record_txt'] = 'Yeni destek mesajı oluştur'; +?> diff --git a/interface/ispconfig/interface/help/lib/module.conf.php b/interface/ispconfig/interface/help/lib/module.conf.php new file mode 100644 index 0000000..9211aed --- /dev/null +++ b/interface/ispconfig/interface/help/lib/module.conf.php @@ -0,0 +1,60 @@ +<?php + +//* Name of the module. The module name must match the name of the module directory. The module name may not contain spaces. +$module['name'] = 'help'; + +//* Title of the module. The title is dispalayed in the top navigation. +$module['title'] = 'top_menu_help'; + +//* The template file of the module. This is always module.tpl.htm if you do not have any special requirements like a 3 column layout. +$module['template'] = 'module.tpl.htm'; + +//* The page that is displayed when the module is loaded. the path must is relative to the web directory +$module['startpage'] = 'help/index.php'; + +//* The width of the tab. Normally you should leave this empty and let the browser define the width automatically. +$module['tab_width'] = ''; + + +//*** Menu Definition ***************************************** + +//* make sure that the items array is empty +$items = array(); + +//* Add a menu item with the label 'Send message' +$items[] = array( 'title' => 'Send message', + 'target' => 'content', + 'link' => 'help/support_message_edit.php'); + +//* Add a menu item with the label 'View messages' +$items[] = array( 'title' => 'View messages', + 'target' => 'content', + 'link' => 'help/support_message_list.php'); + + +//* Add the menu items defined above to a menu section labeled 'Support' +$module['nav'][] = array( 'title' => 'Support', + 'open' => 1, + 'items' => $items); + + +if($_SESSION['s']['user']['typ'] == 'admin') { +//* make sure that the items array is empty +$items = array(); + +//* Add a menu item with the label 'View messages' +$items[] = array( 'title' => 'Version', + 'target' => 'content', + 'link' => 'help/version.php'); + + +//* Add the menu items defined above to a menu section labeled 'Support' +$module['nav'][] = array( 'title' => 'About ISPConfig', + 'open' => 1, + 'items' => $items); + +} + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/list/support_message.list.php b/interface/ispconfig/interface/help/list/support_message.list.php new file mode 100644 index 0000000..c6975d2 --- /dev/null +++ b/interface/ispconfig/interface/help/list/support_message.list.php @@ -0,0 +1,62 @@ +<?php + +//* Name of the list +$liste['name'] = 'support_message'; + +//* Database table +$liste['table'] = 'support_message'; + +//* Index index field of the database table +$liste['table_idx'] = 'support_message_id'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script File of the list +$liste['file'] = 'support_message_list.php'; + +//* Script file of the edit form +$liste['edit_file'] = 'support_message_edit.php'; + +//* Script File of the delete script +$liste['delete_file'] = 'support_message_del.php'; + +//* Paging Template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'yes'; + + +/***************************************************** +* Search fields +*****************************************************/ + +$liste['item'][] = array( 'field' => 'sender_id', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => '=', + 'prefix' => '', + 'suffix' => '', + 'width' => '', + 'datasource'=> array ( 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'value' => ''); + +$liste['item'][] = array( 'field' => 'subject', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => ''); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/support_message_del.php b/interface/ispconfig/interface/help/support_message_del.php new file mode 100644 index 0000000..16db604 --- /dev/null +++ b/interface/ispconfig/interface/help/support_message_del.php @@ -0,0 +1,48 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + + +//* From and List definition files +$list_def_file = 'list/support_message.list.php'; +$tform_def_file = 'form/support_message.tform.php'; + +//* Include the base libraries +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('help'); + +//* Load the form +$app->uses('tform_actions'); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/support_message_edit.php b/interface/ispconfig/interface/help/support_message_edit.php new file mode 100644 index 0000000..8223a00 --- /dev/null +++ b/interface/ispconfig/interface/help/support_message_edit.php @@ -0,0 +1,71 @@ +<?php + +//* Set the path to the form definition file. +$tform_def_file = 'form/support_message.tform.php'; + +//* include the basic application and configuration files +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('help'); + +//* Loading the templating and form classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +//* Creating a class page_action that extends the tform_actions base class +class page_action extends tform_actions { + + //* Custom onSubmit Event handler + function onSubmit() + { + global $app, $conf; + + //* If the current user is not the admin user + if($_SESSION['s']['user']['typ'] != 'admin') { + //* Set the admin as recipient + $this->dataRecord['recipient_id'] = 1; + } + + //* Set the sender_id field to the ID of the current user + $this->dataRecord['sender_id'] = $_SESSION['s']['user']['userid']; + + //* call the onSubmit function of the parent class + parent::onSubmit(); + } + + //* Custom onShow Event handler + function onShow() + { + global $app, $conf; + + //* We do not want that messages get edited, so we switch to a + //* read only template if a existing message is loaded + if($this->id > 0) { + $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm'; + } + + //* call the onShow function of the parent class + parent::onShow(); + } + + function onAfterInsert() + { + global $app, $conf; + + if($_SESSION['s']['user']['typ'] == 'admin') { + $app->db->query("UPDATE support_message SET sys_userid = ".$this->dataRecord['recipient_id']." WHERE support_message_id = ".$this->id); + } + + } + +} + +//* Create the new page object +$page = new page_action(); + +//* Start the page rendering and action handling +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/support_message_list.php b/interface/ispconfig/interface/help/support_message_list.php new file mode 100644 index 0000000..c03bcde --- /dev/null +++ b/interface/ispconfig/interface/help/support_message_list.php @@ -0,0 +1,20 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Path to the list definition file +$list_def_file = "list/support_message.list.php"; + +//* Check permissions for module +$app->auth->check_module_permissions('help'); + +//* Loading the class +$app->uses('listform_actions'); + +//* Optional limit +$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid']; + +//* Start the form rendering and action ahndling +$app->listform_actions->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/help/templates/support_message_edit.htm b/interface/ispconfig/interface/help/templates/support_message_edit.htm new file mode 100644 index 0000000..305a47a --- /dev/null +++ b/interface/ispconfig/interface/help/templates/support_message_edit.htm @@ -0,0 +1,33 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_support_message"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Message</legend> + <div class="ctrlHolder"> + <label for="recipient_id">{tmpl_var name='recipient_id_txt'}</label> + <select name="recipient_id" id="recipient_id" class="selectInput"> + {tmpl_var name='recipient_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="subject">{tmpl_var name='subject_txt'}</label> + <input name="subject" id="subject" value="{tmpl_var name='subject'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="message">{tmpl_var name='message_txt'}</label> + <textarea name="message" id="message" rows='10' cols='30'>{tmpl_var name='message'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="tstamp" value="{tmpl_var name='tstamp'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','help/support_message_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('help/support_message_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/help/templates/support_message_list.htm b/interface/ispconfig/interface/help/templates/support_message_list.htm new file mode 100644 index 0000000..02662ad --- /dev/null +++ b/interface/ispconfig/interface/help/templates/support_message_list.htm @@ -0,0 +1,53 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_support_message"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('help/support_message_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_sender_id" scope="col"><tmpl_var name="sender_id_txt"></th> + <th class="tbl_col_subject" scope="col"><tmpl_var name="subject_txt"></th> + <th class="tbl_col_subject" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_sender_id"><select name="search_sender_id" onChange="submitForm('pageForm','help/support_message_list.php');">{tmpl_var name='search_sender_id'}</select></td> + <td class="tbl_col_subject"><input type="text" name="search_subject" value="{tmpl_var name='search_subject'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','help/support_message_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_sender_id"><a href="#" onClick="loadContent('help/support_message_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="sender_id"}</a></td> + <td class="tbl_col_subject"><a href="#" onClick="loadContent('help/support_message_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="subject"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('help/support_message_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/help/templates/support_message_view.htm b/interface/ispconfig/interface/help/templates/support_message_view.htm new file mode 100644 index 0000000..37cb1e4 --- /dev/null +++ b/interface/ispconfig/interface/help/templates/support_message_view.htm @@ -0,0 +1,26 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_support_message"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Message</legend> + <div class="ctrlHolder"> + <label for="subject">{tmpl_var name='subject_txt'}</label> + <input name="subject" id="subject" value="{tmpl_var name='subject'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="message">{tmpl_var name='message_txt'}</label> + <textarea name="message" id="message" rows='10' cols='30'>{tmpl_var name='message'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','help/support_message_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('help/support_message_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/help/version.php b/interface/ispconfig/interface/help/version.php new file mode 100644 index 0000000..45120f8 --- /dev/null +++ b/interface/ispconfig/interface/help/version.php @@ -0,0 +1,50 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/user_settings.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('admin'); + +echo '<p> </p><p> </p><p class="frmTextHead" style="text-align:center;">'.$app->lng('ISPConfig Version:').' '.ISPC_APP_VERSION.'</p>'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/index.htm b/interface/ispconfig/interface/index.htm new file mode 100644 index 0000000..39606db --- /dev/null +++ b/interface/ispconfig/interface/index.htm @@ -0,0 +1,8 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html> +<head> + <meta http-equiv="refresh" content="0;URL=web/index.php"> +</head> +<body> +</body> +</html> diff --git a/interface/ispconfig/interface/index.php b/interface/ispconfig/interface/index.php new file mode 100644 index 0000000..9c31282 --- /dev/null +++ b/interface/ispconfig/interface/index.php @@ -0,0 +1,41 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +error_reporting(E_ALL|E_STRICT); + +require_once('../lib/config.inc.php'); +require_once('../lib/app.inc.php'); + +$app->uses('tpl'); +$app->tpl->newTemplate('main.tpl.htm'); + +$app->tpl_defaults(); +$app->tpl->pparse(); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/js/scrigo.js.php b/interface/ispconfig/interface/js/scrigo.js.php new file mode 100644 index 0000000..1d468de --- /dev/null +++ b/interface/ispconfig/interface/js/scrigo.js.php @@ -0,0 +1,503 @@ +<?php + session_start(); + include('../../lib/config.inc.php'); + include_once(ISPC_ROOT_PATH.'/web/strengthmeter/lib/lang/'.$_SESSION['s']['language'].'_strengthmeter.lng'); +?> + +redirect = ''; + +function loadContentfRefresh(pagename) { + var pageContentCallbackRefresh = { + success: function(o) { + document.getElementById('pageContent').innerHTML = o.responseText; + }, + failure: function(o) { + alert('Ajax Request was not successful.'+pagename); + } + } + + if(document.getElementById('refreshinterval').value > 0) { + var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename+"&refresh="+document.getElementById('refreshinterval').value, pageContentCallbackRefresh); + setTimeout( "loadContentRefresh('"+pagename+"&refresh="+document.getElementById('refreshinterval').value+"')", document.getElementById('refreshinterval').value*1000 ); + } +} + +function capp(module) { + var cappCallback = { + success: function(o) { + if(o.responseText != '') { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + loadContent(parts[1]); + } else { + alert(o.responseText); + } + } + loadMenus(); + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + var submitFormObj = YAHOO.util.Connect.asyncRequest('GET', 'capp.php?mod='+module, cappCallback); +} + +function submitLoginForm(formname) { + + var submitFormCallback = { + success: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + //alert(parts[1]); + loadContent(parts[1]); + //redirect = parts[1]; + //window.setTimeout('loadContent(redirect)', 1000); + } else if (o.responseText.indexOf('LOGIN_REDIRECT:') > -1) { + // Go to the login page + document.location.href = 'index.php'; + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + loadMenus(); + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + //* Validate form. TODO: username and password with strip(); + var frm = document.getElementById(formname); + var userNameObj = frm.username; + if(userNameObj.value == ''){ + userNameObj.focus(); + return; + } + var passwordObj = frm.passwort; + if(passwordObj.value == ''){ + passwordObj.focus(); + return; + } + YAHOO.util.Connect.setForm(formname); + var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', 'content.php', submitFormCallback); + /* + if(redirect != '') { + loadContent(redirect); + redirect = ''; + } + document.getElementById('footer').innerHTML = 'Powered by <a href="http://www.ispconfig.org" target="_blank">ISPConfig</a>'; + */ + +} + +function submitForm(formname,target) { + + var submitFormCallback = { + success: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + //alert(parts[1]); + loadContent(parts[1]); + //redirect = parts[1]; + //window.setTimeout('loadContent(redirect)', 1000); + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + }, + failure: function(o) { + var parts = o.responseText.split(':'); + alert('Ajax Request was not successful. '+parts[1]); + } + } + + YAHOO.util.Connect.setForm(formname); + var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', target, submitFormCallback); + /* + if(redirect != '') { + loadContent(redirect); + redirect = ''; + } + */ +} + +function submitUploadForm(formname,target) { + + var submitFormCallback = { + success: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + //alert(parts[1]); + loadContent(parts[1]); + //redirect = parts[1]; + //window.setTimeout('loadContent(redirect)', 1000); + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + }, + upload: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + //alert(parts[1]); + loadContent(parts[1]); + //redirect = parts[1]; + //window.setTimeout('loadContent(redirect)', 1000); + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + }, + failure: function(o) { + alert('Ajax Request was not successful. 1'); + } + } + + YAHOO.util.Connect.setForm(formname,true); + var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', target, submitFormCallback); + /* + if(redirect != '') { + loadContent(redirect); + redirect = ''; + } + */ +} + +function loadContent(pagename) { + var pageContentCallback2 = { + success: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(':'); + loadContent(parts[1]); + } else if (o.responseText.indexOf('URL_REDIRECT:') > -1) { + var newUrl= o.responseText.substr(o.responseText.indexOf('URL_REDIRECT:') + "URL_REDIRECT:".length); + document.location.href = newUrl; + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + + var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, pageContentCallback2); +} + + +function loadInitContent() { + + var pageContentCallback = { + success: function(o) { + if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) { + var parts = o.responseText.split(":"); + loadContent(parts[1]); + } else { + document.getElementById('pageContent').innerHTML = o.responseText; + } + + /* + var items = document.getElementsByTagName('input'); + for(i=0;i<items.length;i++) { + //var oButton = new YAHOO.widget.Button(items[i].id); + if(items[i].type == 'button') { + //alert(items[i].id); + var oButton = new YAHOO.widget.Button(items[i].id); + oButton.addListener("click",submitLoginForm); + } + } + //var oButton = new YAHOO.widget.Button("submit"); + */ + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + var pageContentObject = YAHOO.util.Connect.asyncRequest('GET', 'content.php?s_mod=login&s_pg=index', pageContentCallback); + + loadMenus(); + keepalive(); + setTimeout("setFocus()",1000); + +} + +function setFocus() { +/* + var flag=false; + for(z=0;z<document.forms.length;z++) { + var form = document.forms[z]; + var elements = form.elements; + for (var i=0;i<elements.length;i++) { + var element = elements[i]; + if(element.type == 'text' && + !element.readOnly && + !element.disabled) { + element.focus(); + flag=true; + break; + } + } + if(flag)break; + } +*/ + try { + document.pageForm.username.focus(); + } catch (e) { + } +} + + +function loadMenus() { + + var sideNavCallback = { + success: function(o) { + document.getElementById('sideNav').innerHTML = o.responseText; + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + var sideNavObject = YAHOO.util.Connect.asyncRequest('GET', 'nav.php?nav=side', sideNavCallback); + + var topNavCallback = { + success: function(o) { + document.getElementById('topNav').innerHTML = o.responseText; + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + var topNavObject = YAHOO.util.Connect.asyncRequest('GET', 'nav.php?nav=top', topNavCallback); + +} + +function changeTab(tab,target) { + //document.forms[0].next_tab.value = tab; + document.pageForm.next_tab.value = tab; + submitForm('pageForm',target); +} + + + +function reportError(request) + { + alert('Sorry. There was an error.'); + } + +function del_record(link,confirmation) { + if(window.confirm(confirmation)) { + loadContent(link); + } +} + +function loadContentInto(elementid,pagename) { + var itemContentCallback = { + success: function(o) { + document.getElementById(elementid).innerHTML = o.responseText; + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + + + var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); +} + +function loadOptionInto(elementid,pagename) { + var itemContentCallback = { + success: function(o) { + var teste = o.responseText; + var elemente = teste.split('#'); + el=document.getElementById(elementid); + el.innerHTML=''; + for (var i = 0; i < elemente.length; ++i){ + + var foo2 = document.createElement("option"); + foo2.appendChild(document.createTextNode(elemente[i])); + foo2.value=elemente[i]; + el.appendChild(foo2); + } + }, + failure: function(o) { + alert('Ajax Request was not successful.'); + } + } + var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); +} + +function keepalive() { + var pageContentCallbackKeepalive = { + success: function(o) { + setTimeout( keepalive, 1000000 ); + }, + failure: function(o) { + alert('Sorry. There was an error.'); + } + } + + var pageContentObject3 = YAHOO.util.Connect.asyncRequest('GET', 'keepalive.php', pageContentCallbackKeepalive); + //setTimeout( keepalive, 1000000 ); +} + + + +var pass_minimum_length = 5; +var pass_messages = new Array(); + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_0_txt']?>"; +pass_message['color'] = "#d0d0d0"; +pass_messages[0] = pass_message; + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_1_txt']?>"; +pass_message['color'] = "red"; +pass_messages[1] = pass_message; + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_2_txt']?>"; +pass_message['color'] = "yellow"; +pass_messages[2] = pass_message; + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_3_txt']?>"; +pass_message['color'] = "#00ff00"; +pass_messages[3] = pass_message; + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_4_txt']?>"; +pass_message['color'] = "green"; +pass_messages[4] = pass_message; + +var pass_message = new Array(); +pass_message['text'] = "<?php echo $wb['password_strength_5_txt']?>"; +pass_message['color'] = "green"; +pass_messages[5] = pass_message; + +function pass_check(password) { + var length = password.length; + var points = 0; + if (length < pass_minimum_length) { + pass_result(0); + return; + } + + if (length < 5) { + pass_result(1); + return; + } + + if (pass_contains(password, "ABCDEFGHIJKLNMOPQRSTUVWXYZ")) { + points += 1; + } + + if (pass_contains(password, "0123456789")) { + points += 1; + } + + if (pass_contains(password, "`~!@#$%^&*()_+|\=-[]}{';:/?.>,<\" ")) { + points += 1; + } + + if (points == 0) { + if (length >= 5 && length <=6) { + pass_result(1); + } else if (length >= 7 && length <=8) { + pass_result(2); + } else { + pass_result(3); + } + } else if (points == 1) { + if (length >= 5 && length <=6) { + pass_result(2); + } else if (length >= 7 && length <=10) { + pass_result(3); + } else { + pass_result(4); + } + } else if (points == 2) { + if (length >= 5 && length <=8) { + pass_result(3); + } else if (length >= 9 && length <=10) { + pass_result(4); + } else { + pass_result(5); + } + } else if (points == 3) { + if (length >= 5 && length <=6) { + pass_result(3); + } else if (length >= 7 && length <=8) { + pass_result(4); + } else { + pass_result(5); + } + } else if (points >= 4) { + if (length >= 5 && length <=6) { + pass_result(4); + } else { + pass_result(5); + } + } +} + + + +function pass_result(points, message) { + if (points == 0) { + width = 10; + } else { + width = points*20; + } + document.getElementById("passBar").innerHTML = '<div style="float:left; height: 10px; padding:0px; background-color: ' + pass_messages[points]['color'] + '; width: ' + width + 'px;" />'; + document.getElementById("passText").innerHTML = pass_messages[points]['text']; +} +function pass_contains(pass, check) { + for (i = 0; i < pass.length; i++) { + if (check.indexOf(pass.charAt(i)) > -1) { + return true; + } + } + return false; +} + +function addAdditionalTemplate(){ + var tpl_add = document.getElementById('template_additional').value; + + var tpl_list = document.getElementById('template_additional_list').innerHTML; + var addTemplate = document.getElementById('tpl_add_select').value.split('|',2); + var addTplId = addTemplate[0]; + var addTplText = addTemplate[1]; + if(addTplId > 0) { + var newVal = tpl_add + '/' + addTplId + '/'; + newVal = newVal.replace('//', '/'); + var newList = tpl_list + '<br>' + addTplText; + newList = newList.replace('<br><br>', '<br>'); + document.getElementById('template_additional').value = newVal; + document.getElementById('template_additional_list').innerHTML = newList; + alert('additional template ' + addTplText + ' added to customer'); + } else { + alert('no additional template selcted'); + } +} + +function delAdditionalTemplate(){ + var tpl_add = document.getElementById('template_additional').value; + if(tpl_add != '') { + var tpl_list = document.getElementById('template_additional_list').innerHTML; + var addTemplate = document.getElementById('tpl_add_select').value.split('|',2); + var addTplId = addTemplate[0]; + var addTplText = addTemplate[1]; + var newVal = tpl_add; + newVal = newVal.replace(addTplId, ''); + newVal = newVal.replace('//', '/'); + var newList = tpl_list.replace(addTplText, ''); + newList = newList.replace('<br><br>', '<br>'); + document.getElementById('template_additional').value = newVal; + document.getElementById('template_additional_list').innerHTML = newList; + alert('additional template ' + addTplText + ' deleted from customer'); + } else { + alert('no additional template selcted'); + } + +} diff --git a/interface/ispconfig/interface/js/uni-form/jquery.js b/interface/ispconfig/interface/js/uni-form/jquery.js new file mode 100644 index 0000000..7090c1c --- /dev/null +++ b/interface/ispconfig/interface/js/uni-form/jquery.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7(1C 1w.6=="T"){1w.T=1w.T;B 6=u(a,c){7(1w==q)v 1p 6(a,c);a=a||17;7(6.1t(a))v 1p 6(17)[6.E.27?"27":"2O"](a);7(1C a=="23"){B m=/^[^<]*(<(.|\\s)+>)[^>]*$/.2Q(a);7(m)a=6.3k([m[1]]);J v 1p 6(c).2o(a)}v q.6r(a.1l==2y&&a||(a.3Y||a.I&&a!=1w&&!a.24&&a[0]!=T&&a[0].24)&&6.3M(a)||[a])};7(1C $!="T")6.2S$=$;B $=6;6.E=6.8p={3Y:"1.1.2",8q:u(){v q.I},I:0,2b:u(1T){v 1T==T?6.3M(q):q[1T]},2r:u(a){B L=6(a);L.6p=q;v L},6r:u(a){q.I=0;[].1g.14(q,a);v q},K:u(E,1E){v 6.K(q,E,1E)},2h:u(1c){B 4c=-1;q.K(u(i){7(q==1c)4c=i});v 4c},1I:u(1Y,O,C){B 1c=1Y;7(1Y.1l==3t)7(O==T)v q.I&&6[C||"1I"](q[0],1Y)||T;J{1c={};1c[1Y]=O}v q.K(u(2h){P(B H 1x 1c)6.1I(C?q.1q:q,H,6.H(q,1c[H],C,2h,H))})},1m:u(1Y,O){v q.1I(1Y,O,"30")},2L:u(e){7(1C e=="23")v q.3u().3r(17.8t(e));B t="";6.K(e||q,u(){6.K(q.2I,u(){7(q.24!=8)t+=q.24!=1?q.60:6.E.2L([q])})});v t},2K:u(){B a=6.3k(1A);v q.K(u(){B b=a[0].3l(U);q.11.2X(b,q);22(b.1b)b=b.1b;b.4C(q)})},3r:u(){v q.3j(1A,U,1,u(a){q.4C(a)})},5i:u(){v q.3j(1A,U,-1,u(a){q.2X(a,q.1b)})},5j:u(){v q.3j(1A,12,1,u(a){q.11.2X(a,q)})},5t:u(){v q.3j(1A,12,-1,u(a){q.11.2X(a,q.2e)})},4g:u(){v q.6p||6([])},2o:u(t){v q.2r(6.31(q,u(a){v 6.2o(t,a)}),t)},4Y:u(4N){v q.2r(6.31(q,u(a){B a=a.3l(4N!=T?4N:U);a.$1H=16;v a}))},1D:u(t){v q.2r(6.1t(t)&&6.2q(q,u(2z,2h){v t.14(2z,[2h])})||6.3z(t,q))},2g:u(t){v q.2r(t.1l==3t&&6.3z(t,q,U)||6.2q(q,u(a){v(t.1l==2y||t.3Y)?6.3y(a,t)<0:a!=t}))},1M:u(t){v q.2r(6.2k(q.2b(),t.1l==3t?6(t).2b():t.I!=T&&(!t.1f||t.1f=="8v")?t:[t]))},4l:u(1s){v 1s?6.1D(1s,q).r.I>0:12},1a:u(1a){v 1a==T?(q.I?q[0].O:16):q.1I("O",1a)},4U:u(1a){v 1a==T?(q.I?q[0].2t:16):q.3u().3r(1a)},3j:u(1E,1P,3Z,E){B 4Y=q.I>1;B a=6.3k(1E);7(3Z<0)a.8w();v q.K(u(){B 1c=q;7(1P&&6.1f(q,"1P")&&6.1f(a[0],"3m"))1c=q.5J("20")[0]||q.4C(17.6n("20"));6.K(a,u(){E.14(1c,[4Y?q.3l(U):q])})})}};6.1z=6.E.1z=u(){B 1O=1A[0],a=1;7(1A.I==1){1O=q;a=0}B H;22(H=1A[a++])P(B i 1x H)1O[i]=H[i];v 1O};6.1z({8x:u(){7(6.2S$)$=6.2S$;v 6},1t:u(E){v!!E&&1C E!="23"&&!E.1f&&1C E[0]=="T"&&/u/i.1n(E+"")},4B:u(D){v D.66&&D.5I&&!D.5I.64},1f:u(D,Y){v D.1f&&D.1f.3K()==Y.3K()},K:u(1c,E,1E){7(1c.I==T)P(B i 1x 1c)E.14(1c[i],1E||[i,1c[i]]);J P(B i=0,6q=1c.I;i<6q;i++)7(E.14(1c[i],1E||[i,1c[i]])===12)3O;v 1c},H:u(D,O,C,2h,H){7(6.1t(O))O=O.3n(D,[2h]);B 6s=/z-?2h|7P-?8A|1d|58|8B-?28/i;v O&&O.1l==3Q&&C=="30"&&!6s.1n(H)?O+"4S":O},19:{1M:u(D,c){6.K(c.3o(/\\s+/),u(i,Q){7(!6.19.2V(D.19,Q))D.19+=(D.19?" ":"")+Q})},2f:u(D,c){D.19=c?6.2q(D.19.3o(/\\s+/),u(Q){v!6.19.2V(c,Q)}).6t(" "):""},2V:u(t,c){t=t.19||t;c=c.1R(/([\\.\\\\\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:])/g,"\\\\$1");v t&&1p 4v("(^|\\\\s)"+c+"(\\\\s|$)").1n(t)}},4d:u(e,o,f){P(B i 1x o){e.1q["1N"+i]=e.1q[i];e.1q[i]=o[i]}f.14(e,[]);P(B i 1x o)e.1q[i]=e.1q["1N"+i]},1m:u(e,p){7(p=="28"||p=="3V"){B 1N={},46,3P,d=["7d","8C","8D","8E"];6.K(d,u(){1N["8F"+q]=0;1N["8G"+q+"8H"]=0});6.4d(e,1N,u(){7(6.1m(e,"1h")!="1Z"){46=e.8I;3P=e.8J}J{e=6(e.3l(U)).2o(":4j").5l("2Z").4g().1m({4n:"1G",45:"8K",1h:"2D",7I:"0",8M:"0"}).5z(e.11)[0];B 3d=6.1m(e.11,"45");7(3d==""||3d=="4b")e.11.1q.45="6x";46=e.6y;3P=e.6z;7(3d==""||3d=="4b")e.11.1q.45="4b";e.11.33(e)}});v p=="28"?46:3P}v 6.30(e,p)},30:u(D,H,53){B L;7(H=="1d"&&6.W.1j)v 6.1I(D.1q,"1d");7(H=="4h"||H=="2v")H=6.W.1j?"3T":"2v";7(!53&&D.1q[H])L=D.1q[H];J 7(17.44&&17.44.4W){7(H=="2v"||H=="3T")H="4h";H=H.1R(/([A-Z])/g,"-$1").4m();B Q=17.44.4W(D,16);7(Q)L=Q.55(H);J 7(H=="1h")L="1Z";J 6.4d(D,{1h:"2D"},u(){B c=17.44.4W(q,"");L=c&&c.55(H)||""})}J 7(D.51){B 56=H.1R(/\\-(\\w)/g,u(m,c){v c.3K()});L=D.51[H]||D.51[56]}v L},3k:u(a){B r=[];6.K(a,u(i,1r){7(!1r)v;7(1r.1l==3Q)1r=1r.6C();7(1C 1r=="23"){B s=6.35(1r),1V=17.6n("1V"),2i=[];B 2K=!s.18("<1u")&&[1,"<42>","</42>"]||(!s.18("<6D")||!s.18("<20")||!s.18("<6E"))&&[1,"<1P>","</1P>"]||!s.18("<3m")&&[2,"<1P><20>","</20></1P>"]||(!s.18("<6F")||!s.18("<6G"))&&[3,"<1P><20><3m>","</3m></20></1P>"]||[0,"",""];1V.2t=2K[1]+s+2K[2];22(2K[0]--)1V=1V.1b;7(6.W.1j){7(!s.18("<1P")&&s.18("<20")<0)2i=1V.1b&&1V.1b.2I;J 7(2K[1]=="<1P>"&&s.18("<20")<0)2i=1V.2I;P(B n=2i.I-1;n>=0;--n)7(6.1f(2i[n],"20")&&!2i[n].2I.I)2i[n].11.33(2i[n])}1r=[];P(B i=0,l=1V.2I.I;i<l;i++)1r.1g(1V.2I[i])}7(1r.I===0&&!6.1f(1r,"3w"))v;7(1r[0]==T||6.1f(1r,"3w"))r.1g(1r);J r=6.2k(r,1r)});v r},1I:u(D,Y,O){B 2j=6.4B(D)?{}:{"P":"6J","6L":"19","4h":6.W.1j?"3T":"2v",2v:6.W.1j?"3T":"2v",2t:"2t",19:"19",O:"O",2W:"2W",2Z:"2Z",89:"6N",2Y:"2Y"};7(Y=="1d"&&6.W.1j&&O!=T){D.58=1;v D.1D=D.1D.1R(/4i\\([^\\)]*\\)/6O,"")+(O==1?"":"4i(1d="+O*6g+")")}J 7(Y=="1d"&&6.W.1j)v D.1D?4T(D.1D.6P(/4i\\(1d=(.*)\\)/)[1])/6g:1;7(Y=="1d"&&6.W.3h&&O==1)O=0.6R;7(2j[Y]){7(O!=T)D[2j[Y]]=O;v D[2j[Y]]}J 7(O==T&&6.W.1j&&6.1f(D,"3w")&&(Y=="81"||Y=="80"))v D.6T(Y).60;J 7(D.66){7(O!=T)D.6V(Y,O);7(6.W.1j&&/5E|3e/.1n(Y)&&!6.4B(D))v D.36(Y,2);v D.36(Y)}J{Y=Y.1R(/-([a-z])/6W,u(z,b){v b.3K()});7(O!=T)D[Y]=O;v D[Y]}},35:u(t){v t.1R(/^\\s+|\\s+$/g,"")},3M:u(a){B r=[];7(a.1l!=2y)P(B i=0,2R=a.I;i<2R;i++)r.1g(a[i]);J r=a.3N(0);v r},3y:u(b,a){P(B i=0,2R=a.I;i<2R;i++)7(a[i]==b)v i;v-1},2k:u(2u,3H){B r=[].3N.3n(2u,0);P(B i=0,5b=3H.I;i<5b;i++)7(6.3y(3H[i],r)==-1)2u.1g(3H[i]);v 2u},2q:u(1U,E,4k){7(1C E=="23")E=1p 4w("a","i","v "+E);B 1i=[];P(B i=0,2z=1U.I;i<2z;i++)7(!4k&&E(1U[i],i)||4k&&!E(1U[i],i))1i.1g(1U[i]);v 1i},31:u(1U,E){7(1C E=="23")E=1p 4w("a","v "+E);B 1i=[],r=[];P(B i=0,2z=1U.I;i<2z;i++){B 1a=E(1U[i],i);7(1a!==16&&1a!=T){7(1a.1l!=2y)1a=[1a];1i=1i.6Z(1a)}}B r=1i.I?[1i[0]]:[];5f:P(B i=1,5e=1i.I;i<5e;i++){P(B j=0;j<i;j++)7(1i[i]==r[j])5F 5f;r.1g(1i[i])}v r}});1p u(){B b=7L.71.4m();6.W={2N:/5D/.1n(b),3f:/3f/.1n(b),1j:/1j/.1n(b)&&!/3f/.1n(b),3h:/3h/.1n(b)&&!/(72|5D)/.1n(b)};6.7H=!6.W.1j||17.74=="75"};6.K({5u:"a.11",4z:"6.4z(a)",76:"6.2a(a,2,\'2e\')",7D:"6.2a(a,2,\'5s\')",78:"6.2B(a.11.1b,a)",79:"6.2B(a.1b)"},u(i,n){6.E[i]=u(a){B L=6.31(q,n);7(a&&1C a=="23")L=6.3z(a,L);v q.2r(L)}});6.K({5z:"3r",7b:"5i",2X:"5j",7e:"5t"},u(i,n){6.E[i]=u(){B a=1A;v q.K(u(){P(B j=0,2R=a.I;j<2R;j++)6(a[j])[n](q)})}});6.K({5l:u(1Y){6.1I(q,1Y,"");q.7g(1Y)},7h:u(c){6.19.1M(q,c)},7i:u(c){6.19.2f(q,c)},7k:u(c){6.19[6.19.2V(q,c)?"2f":"1M"](q,c)},2f:u(a){7(!a||6.1D(a,[q]).r.I)q.11.33(q)},3u:u(){22(q.1b)q.33(q.1b)}},u(i,n){6.E[i]=u(){v q.K(n,1A)}});6.K(["5q","5n","5p","5v"],u(i,n){6.E[n]=u(1T,E){v q.1D(":"+n+"("+1T+")",E)}});6.K(["28","3V"],u(i,n){6.E[n]=u(h){v h==T?(q.I?6.1m(q[0],n):16):q.1m(n,h.1l==3t?h:h+"4S")}});6.1z({1s:{"":"m[2]==\'*\'||6.1f(a,m[2])","#":"a.36(\'2J\')==m[2]",":":{5n:"i<m[3]-0",5p:"i>m[3]-0",2a:"m[3]-0==i",5q:"m[3]-0==i",2u:"i==0",2T:"i==r.I-1",5R:"i%2==0",5S:"i%2","2a-3s":"6.2a(a.11.1b,m[3],\'2e\',a)==a","2u-3s":"6.2a(a.11.1b,1,\'2e\')==a","2T-3s":"6.2a(a.11.7n,1,\'5s\')==a","7p-3s":"6.2B(a.11.1b).I==1",5u:"a.1b",3u:"!a.1b",5v:"6.E.2L.14([a]).18(m[3])>=0",3i:\'a.C!="1G"&&6.1m(a,"1h")!="1Z"&&6.1m(a,"4n")!="1G"\',1G:\'a.C=="1G"||6.1m(a,"1h")=="1Z"||6.1m(a,"4n")=="1G"\',7v:"!a.2W",2W:"a.2W",2Z:"a.2Z",2Y:"a.2Y||6.1I(a,\'2Y\')",2L:"a.C==\'2L\'",4j:"a.C==\'4j\'",5x:"a.C==\'5x\'",4G:"a.C==\'4G\'",5y:"a.C==\'5y\'",4R:"a.C==\'4R\'",5A:"a.C==\'5A\'",5B:"a.C==\'5B\'",3x:\'a.C=="3x"||6.1f(a,"3x")\',5C:"/5C|42|7A|3x/i.1n(a.1f)"},".":"6.19.2V(a,m[2])","@":{"=":"z==m[4]","!=":"z!=m[4]","^=":"z&&!z.18(m[4])","$=":"z&&z.2U(z.I - m[4].I,m[4].I)==m[4]","*=":"z&&z.18(m[4])>=0","":"z",4u:u(m){v["",m[1],m[3],m[2],m[5]]},5P:"z=a[m[3]];7(!z||/5E|3e/.1n(m[3]))z=6.1I(a,m[3]);"},"[":"6.2o(m[2],a).I"},5M:[/^\\[ *(@)([a-2m-3C-]*) *([!*$^=]*) *(\'?"?)(.*?)\\4 *\\]/i,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([a-2m-3C-]*)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/i,/^([:.#]*)([a-2m-3C*-]*)/i],1Q:[/^(\\/?\\.\\.)/,"a.11",/^(>|\\/)/,"6.2B(a.1b)",/^(\\+)/,"6.2a(a,2,\'2e\')",/^(~)/,u(a){B s=6.2B(a.11.1b);v s.3N(6.3y(a,s)+1)}],3z:u(1s,1U,2g){B 1N,Q=[];22(1s&&1s!=1N){1N=1s;B f=6.1D(1s,1U,2g);1s=f.t.1R(/^\\s*,\\s*/,"");Q=2g?1U=f.r:6.2k(Q,f.r)}v Q},2o:u(t,1B){7(1C t!="23")v[t];7(1B&&!1B.24)1B=16;1B=1B||17;7(!t.18("//")){1B=1B.4H;t=t.2U(2,t.I)}J 7(!t.18("/")){1B=1B.4H;t=t.2U(1,t.I);7(t.18("/")>=1)t=t.2U(t.18("/"),t.I)}B L=[1B],2c=[],2T=16;22(t&&2T!=t){B r=[];2T=t;t=6.35(t).1R(/^\\/\\//i,"");B 3B=12;B 1J=/^[\\/>]\\s*([a-2m-9*-]+)/i;B m=1J.2Q(t);7(m){6.K(L,u(){P(B c=q.1b;c;c=c.2e)7(c.24==1&&(6.1f(c,m[1])||m[1]=="*"))r.1g(c)});L=r;t=t.1R(1J,"");7(t.18(" ")==0)5F;3B=U}J{P(B i=0;i<6.1Q.I;i+=2){B 1J=6.1Q[i];B m=1J.2Q(t);7(m){r=L=6.31(L,6.1t(6.1Q[i+1])?6.1Q[i+1]:u(a){v 40(6.1Q[i+1])});t=6.35(t.1R(1J,""));3B=U;3O}}}7(t&&!3B){7(!t.18(",")){7(L[0]==1B)L.4L();6.2k(2c,L);r=L=[1B];t=" "+t.2U(1,t.I)}J{B 34=/^([a-2m-3C-]+)(#)([a-2m-9\\\\*2S-]*)/i;B m=34.2Q(t);7(m){m=[0,m[2],m[3],m[1]]}J{34=/^([#.]?)([a-2m-9\\\\*2S-]*)/i;m=34.2Q(t)}7(m[1]=="#"&&L[L.I-1].4X){B 2l=L[L.I-1].4X(m[2]);7(6.W.1j&&2l&&2l.2J!=m[2])2l=6(\'[@2J="\'+m[2]+\'"]\',L[L.I-1])[0];L=r=2l&&(!m[3]||6.1f(2l,m[3]))?[2l]:[]}J{7(m[1]==".")B 4r=1p 4v("(^|\\\\s)"+m[2]+"(\\\\s|$)");6.K(L,u(){B 3E=m[1]!=""||m[0]==""?"*":m[2];7(6.1f(q,"7J")&&3E=="*")3E="3g";6.2k(r,m[1]!=""&&L.I!=1?6.4x(q,[],m[1],m[2],4r):q.5J(3E))});7(m[1]=="."&&L.I==1)r=6.2q(r,u(e){v 4r.1n(e.19)});7(m[1]=="#"&&L.I==1){B 5K=r;r=[];6.K(5K,u(){7(q.36("2J")==m[2]){r=[q];v 12}})}L=r}t=t.1R(34,"")}}7(t){B 1a=6.1D(t,r);L=r=1a.r;t=6.35(1a.t)}}7(L&&L[0]==1B)L.4L();6.2k(2c,L);v 2c},1D:u(t,r,2g){22(t&&/^[a-z[({<*:.#]/i.1n(t)){B p=6.5M,m;6.K(p,u(i,1J){m=1J.2Q(t);7(m){t=t.7M(m[0].I);7(6.1s[m[1]].4u)m=6.1s[m[1]].4u(m);v 12}});7(m[1]==":"&&m[2]=="2g")r=6.1D(m[3],r,U).r;J 7(m[1]=="."){B 1J=1p 4v("(^|\\\\s)"+m[2]+"(\\\\s|$)");r=6.2q(r,u(e){v 1J.1n(e.19||"")},2g)}J{B f=6.1s[m[1]];7(1C f!="23")f=6.1s[m[1]][m[2]];40("f = u(a,i){"+(6.1s[m[1]].5P||"")+"v "+f+"}");r=6.2q(r,f,2g)}}v{r:r,t:t}},4x:u(o,r,1Q,Y,1J){P(B s=o.1b;s;s=s.2e)7(s.24==1){B 1M=U;7(1Q==".")1M=s.19&&1J.1n(s.19);J 7(1Q=="#")1M=s.36("2J")==Y;7(1M)r.1g(s);7(1Q=="#"&&r.I)3O;7(s.1b)6.4x(s,r,1Q,Y,1J)}v r},4z:u(D){B 4A=[];B Q=D.11;22(Q&&Q!=17){4A.1g(Q);Q=Q.11}v 4A},2a:u(Q,1i,3Z,D){1i=1i||1;B 1T=0;P(;Q;Q=Q[3Z]){7(Q.24==1)1T++;7(1T==1i||1i=="5R"&&1T%2==0&&1T>1&&Q==D||1i=="5S"&&1T%2==1&&Q==D)v Q}},2B:u(n,D){B r=[];P(;n;n=n.2e){7(n.24==1&&(!D||n!=D))r.1g(n)}v r}});6.G={1M:u(S,C,1o,F){7(6.W.1j&&S.3L!=T)S=1w;7(F)1o.F=F;7(!1o.2A)1o.2A=q.2A++;7(!S.$1H)S.$1H={};B 38=S.$1H[C];7(!38){38=S.$1H[C]={};7(S["39"+C])38[0]=S["39"+C]}38[1o.2A]=1o;S["39"+C]=q.5Y;7(!q.1k[C])q.1k[C]=[];q.1k[C].1g(S)},2A:1,1k:{},2f:u(S,C,1o){7(S.$1H){B i,j,k;7(C&&C.C){1o=C.1o;C=C.C}7(C&&S.$1H[C])7(1o)5U S.$1H[C][1o.2A];J P(i 1x S.$1H[C])5U S.$1H[C][i];J P(j 1x S.$1H)q.2f(S,j);P(k 1x S.$1H[C])7(k){k=U;3O}7(!k)S["39"+C]=16}},1S:u(C,F,S){F=6.3M(F||[]);7(!S)6.K(q.1k[C]||[],u(){6.G.1S(C,F,q)});J{B 1o=S["39"+C],1a,E=6.1t(S[C]);7(1o){F.61(q.2j({C:C,1O:S}));7((1a=1o.14(S,F))!==12)q.4F=U}7(E&&1a!==12)S[C]();q.4F=12}},5Y:u(G){7(1C 6=="T"||6.G.4F)v;G=6.G.2j(G||1w.G||{});B 3R;B c=q.$1H[G.C];B 1E=[].3N.3n(1A,1);1E.61(G);P(B j 1x c){1E[0].1o=c[j];1E[0].F=c[j].F;7(c[j].14(q,1E)===12){G.2n();G.2H();3R=12}}7(6.W.1j)G.1O=G.2n=G.2H=G.1o=G.F=16;v 3R},2j:u(G){7(!G.1O&&G.63)G.1O=G.63;7(G.65==T&&G.67!=T){B e=17.4H,b=17.64;G.65=G.67+(e.68||b.68);G.7Y=G.7Z+(e.6c||b.6c)}7(6.W.2N&&G.1O.24==3){B 3a=G;G=6.1z({},3a);G.1O=3a.1O.11;G.2n=u(){v 3a.2n()};G.2H=u(){v 3a.2H()}}7(!G.2n)G.2n=u(){q.3R=12};7(!G.2H)G.2H=u(){q.82=U};v G}};6.E.1z({3U:u(C,F,E){v q.K(u(){6.G.1M(q,C,E||F,F)})},6u:u(C,F,E){v q.K(u(){6.G.1M(q,C,u(G){6(q).6f(G);v(E||F).14(q,1A)},F)})},6f:u(C,E){v q.K(u(){6.G.2f(q,C,E)})},1S:u(C,F){v q.K(u(){6.G.1S(C,F,q)})},3X:u(){B a=1A;v q.6j(u(e){q.4M=q.4M==0?1:0;e.2n();v a[q.4M].14(q,[e])||12})},83:u(f,g){u 4O(e){B p=(e.C=="41"?e.84:e.85)||e.86;22(p&&p!=q)2G{p=p.11}2w(e){p=q};7(p==q)v 12;v(e.C=="41"?f:g).14(q,[e])}v q.41(4O).6k(4O)},27:u(f){7(6.3W)f.14(17,[6]);J{6.3c.1g(u(){v f.14(q,[6])})}v q}});6.1z({3W:12,3c:[],27:u(){7(!6.3W){6.3W=U;7(6.3c){6.K(6.3c,u(){q.14(17)});6.3c=16}7(6.W.3h||6.W.3f)17.87("6o",6.27,12)}}});1p u(){6.K(("88,8a,2O,8b,8d,52,6j,8e,"+"8f,8g,8h,41,6k,8j,42,"+"4R,8k,8l,8m,2C").3o(","),u(i,o){6.E[o]=u(f){v f?q.3U(o,f):q.1S(o)}});7(6.W.3h||6.W.3f)17.8n("6o",6.27,12);J 7(6.W.1j){17.8o("<8r"+"8s 2J=62 8u=U "+"3e=//:><\\/2d>");B 2d=17.4X("62");7(2d)2d.37=u(){7(q.3D!="1X")v;q.11.33(q);6.27()};2d=16}J 7(6.W.2N)6.50=3L(u(){7(17.3D=="8y"||17.3D=="1X"){4p(6.50);6.50=16;6.27()}},10);6.G.1M(1w,"2O",6.27)};7(6.W.1j)6(1w).6u("52",u(){B 1k=6.G.1k;P(B C 1x 1k){B 4Z=1k[C],i=4Z.I;7(i&&C!=\'52\')6w 6.G.2f(4Z[i-1],C);22(--i)}});6.E.1z({6A:u(V,21,M){q.2O(V,21,M,1)},2O:u(V,21,M,1W){7(6.1t(V))v q.3U("2O",V);M=M||u(){};B C="5d";7(21)7(6.1t(21)){M=21;21=16}J{21=6.3g(21);C="5V"}B 4e=q;6.3v({V:V,C:C,F:21,1W:1W,1X:u(2P,15){7(15=="2M"||!1W&&15=="5L")4e.1I("2t",2P.3G).4V().K(M,[2P.3G,15,2P]);J M.14(4e,[2P.3G,15,2P])}});v q},6B:u(){v 6.3g(q)},4V:u(){v q.2o("2d").K(u(){7(q.3e)6.59(q.3e);J 6.4a(q.2L||q.6H||q.2t||"")}).4g()}});7(!1w.3p)3p=u(){v 1p 6I("6K.6M")};6.K("5m,5Q,5O,5W,5N,5H".3o(","),u(i,o){6.E[o]=u(f){v q.3U(o,f)}});6.1z({2b:u(V,F,M,C,1W){7(6.1t(F)){M=F;F=16}v 6.3v({V:V,F:F,2M:M,4t:C,1W:1W})},6Q:u(V,F,M,C){v 6.2b(V,F,M,C,1)},59:u(V,M){v 6.2b(V,16,M,"2d")},6S:u(V,F,M){v 6.2b(V,F,M,"6m")},6U:u(V,F,M,C){7(6.1t(F)){M=F;F={}}v 6.3v({C:"5V",V:V,F:F,2M:M,4t:C})},6X:u(29){6.3q.29=29},6Y:u(5c){6.1z(6.3q,5c)},3q:{1k:U,C:"5d",29:0,5r:"70/x-73-3w-77",5h:U,48:U,F:16},3S:{},3v:u(s){s=6.1z({},6.3q,s);7(s.F){7(s.5h&&1C s.F!="23")s.F=6.3g(s.F);7(s.C.4m()=="2b"){s.V+=((s.V.18("?")>-1)?"&":"?")+s.F;s.F=16}}7(s.1k&&!6.4E++)6.G.1S("5m");B 4y=12;B N=1p 3p();N.7j(s.C,s.V,s.48);7(s.F)N.3A("7l-7m",s.5r);7(s.1W)N.3A("7o-4K-7q",6.3S[s.V]||"7s, 7t 7w 7x 4o:4o:4o 7z");N.3A("X-7B-7C","3p");7(N.7E)N.3A("7F","7G");7(s.5G)s.5G(N);7(s.1k)6.G.1S("5H",[N,s]);B 37=u(4s){7(N&&(N.3D==4||4s=="29")){4y=U;7(3I){4p(3I);3I=16}B 15;2G{15=6.5Z(N)&&4s!="29"?s.1W&&6.69(N,s.V)?"5L":"2M":"2C";7(15!="2C"){B 3F;2G{3F=N.4P("6b-4K")}2w(e){}7(s.1W&&3F)6.3S[s.V]=3F;B F=6.6i(N,s.4t);7(s.2M)s.2M(F,15);7(s.1k)6.G.1S("5N",[N,s])}J 6.3J(s,N,15)}2w(e){15="2C";6.3J(s,N,15,e)}7(s.1k)6.G.1S("5O",[N,s]);7(s.1k&&!--6.4E)6.G.1S("5Q");7(s.1X)s.1X(N,15);7(s.48)N=16}};B 3I=3L(37,13);7(s.29>0)57(u(){7(N){N.7N();7(!4y)37("29")}},s.29);2G{N.7Q(s.F)}2w(e){6.3J(s,N,16,e)}7(!s.48)37();v N},3J:u(s,N,15,e){7(s.2C)s.2C(N,15,e);7(s.1k)6.G.1S("5W",[N,s,e])},4E:0,5Z:u(r){2G{v!r.15&&7V.7W=="4G:"||(r.15>=5X&&r.15<7X)||r.15==6d||6.W.2N&&r.15==T}2w(e){}v 12},69:u(N,V){2G{B 6e=N.4P("6b-4K");v N.15==6d||6e==6.3S[V]||6.W.2N&&N.15==T}2w(e){}v 12},6i:u(r,C){B 4Q=r.4P("8c-C");B F=!C&&4Q&&4Q.18("N")>=0;F=C=="N"||F?r.8i:r.3G;7(C=="2d")6.4a(F);7(C=="6m")40("F = "+F);7(C=="4U")6("<1V>").4U(F).4V();v F},3g:u(a){B s=[];7(a.1l==2y||a.3Y)6.K(a,u(){s.1g(2x(q.Y)+"="+2x(q.O))});J P(B j 1x a)7(a[j]&&a[j].1l==2y)6.K(a[j],u(){s.1g(2x(j)+"="+2x(q))});J s.1g(2x(j)+"="+2x(a[j]));v s.6t("&")},4a:u(F){7(1w.54)1w.54(F);J 7(6.W.2N)1w.57(F,0);J 40.3n(1w,F)}});6.E.1z({1L:u(R,M){B 1G=q.1D(":1G");R?1G.26({28:"1L",3V:"1L",1d:"1L"},R,M):1G.K(u(){q.1q.1h=q.2E?q.2E:"";7(6.1m(q,"1h")=="1Z")q.1q.1h="2D"});v q},1K:u(R,M){B 3i=q.1D(":3i");R?3i.26({28:"1K",3V:"1K",1d:"1K"},R,M):3i.K(u(){q.2E=q.2E||6.1m(q,"1h");7(q.2E=="1Z")q.2E="2D";q.1q.1h="1Z"});v q},5g:6.E.3X,3X:u(E,4I){B 1E=1A;v 6.1t(E)&&6.1t(4I)?q.5g(E,4I):q.K(u(){6(q)[6(q).4l(":1G")?"1L":"1K"].14(6(q),1E)})},7a:u(R,M){v q.26({28:"1L"},R,M)},7c:u(R,M){v q.26({28:"1K"},R,M)},7f:u(R,M){v q.K(u(){B 5k=6(q).4l(":1G")?"1L":"1K";6(q).26({28:5k},R,M)})},7r:u(R,M){v q.26({1d:"1L"},R,M)},7u:u(R,M){v q.26({1d:"1K"},R,M)},7y:u(R,43,M){v q.26({1d:43},R,M)},26:u(H,R,1v,M){v q.1F(u(){q.2F=6.1z({},H);B 1u=6.R(R,1v,M);P(B p 1x H){B e=1p 6.3b(q,1u,p);7(H[p].1l==3Q)e.2s(e.Q(),H[p]);J e[H[p]](H)}})},1F:u(C,E){7(!E){E=C;C="3b"}v q.K(u(){7(!q.1F)q.1F={};7(!q.1F[C])q.1F[C]=[];q.1F[C].1g(E);7(q.1F[C].I==1)E.14(q)})}});6.1z({R:u(R,1v,E){B 1u=R&&R.1l==7K?R:{1X:E||!E&&1v||6.1t(R)&&R,25:R,1v:E&&1v||1v&&1v.1l!=4w&&1v};1u.25=(1u.25&&1u.25.1l==3Q?1u.25:{7R:7S,7T:5X}[1u.25])||7U;1u.1N=1u.1X;1u.1X=u(){6.6a(q,"3b");7(6.1t(1u.1N))1u.1N.14(q)};v 1u},1v:{},1F:{},6a:u(D,C){C=C||"3b";7(D.1F&&D.1F[C]){D.1F[C].4L();B f=D.1F[C][0];7(f)f.14(D)}},3b:u(D,1e,H){B z=q;B y=D.1q;B 4D=6.1m(D,"1h");y.5T="1G";z.a=u(){7(1e.49)1e.49.14(D,[z.2p]);7(H=="1d")6.1I(y,"1d",z.2p);J 7(6l(z.2p))y[H]=6l(z.2p)+"4S";y.1h="2D"};z.6v=u(){v 4T(6.1m(D,H))};z.Q=u(){B r=4T(6.30(D,H));v r&&r>-8z?r:z.6v()};z.2s=u(4f,43){z.4J=(1p 5o()).5w();z.2p=4f;z.a();z.4q=3L(u(){z.49(4f,43)},13)};z.1L=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();1e.1L=U;z.2s(0,D.1y[H]);7(H!="1d")y[H]="5a"};z.1K=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();1e.1K=U;z.2s(D.1y[H],0)};z.3X=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();7(4D=="1Z"){1e.1L=U;7(H!="1d")y[H]="5a";z.2s(0,D.1y[H])}J{1e.1K=U;z.2s(D.1y[H],0)}};z.49=u(32,47){B t=(1p 5o()).5w();7(t>1e.25+z.4J){4p(z.4q);z.4q=16;z.2p=47;z.a();7(D.2F)D.2F[H]=U;B 2c=U;P(B i 1x D.2F)7(D.2F[i]!==U)2c=12;7(2c){y.5T="";y.1h=4D;7(6.1m(D,"1h")=="1Z")y.1h="2D";7(1e.1K)y.1h="1Z";7(1e.1K||1e.1L)P(B p 1x D.2F)7(p=="1d")6.1I(y,p,D.1y[p]);J y[p]=""}7(2c&&6.1t(1e.1X))1e.1X.14(D)}J{B n=t-q.4J;B p=n/1e.25;z.2p=1e.1v&&6.1v[1e.1v]?6.1v[1e.1v](p,n,32,(47-32),1e.25):((-6h.7O(p*6h.8L)/2)+0.5)*(47-32)+32;z.a()}}}})}',62,545,'||||||jQuery|if|||||||||||||||||||this||||function|return||||||var|type|elem|fn|data|event|prop|length|else|each|ret|callback|xml|value|for|cur|speed|element|undefined|true|url|browser||name|||parentNode|false||apply|status|null|document|indexOf|className|val|firstChild|obj|opacity|options|nodeName|push|display|result|msie|global|constructor|css|test|handler|new|style|arg|expr|isFunction|opt|easing|window|in|orig|extend|arguments|context|typeof|filter|args|queue|hidden|events|attr|re|hide|show|add|old|target|table|token|replace|trigger|num|elems|div|ifModified|complete|key|none|tbody|params|while|string|nodeType|duration|animate|ready|height|timeout|nth|get|done|script|nextSibling|remove|not|index|tb|fix|merge|oid|z0|preventDefault|find|now|grep|pushStack|custom|innerHTML|first|cssFloat|catch|encodeURIComponent|Array|el|guid|sibling|error|block|oldblock|curAnim|try|stopPropagation|childNodes|id|wrap|text|success|safari|load|res|exec|al|_|last|substr|has|disabled|insertBefore|selected|checked|curCSS|map|firstNum|removeChild|re2|trim|getAttribute|onreadystatechange|handlers|on|originalEvent|fx|readyList|parPos|src|opera|param|mozilla|visible|domManip|clean|cloneNode|tr|call|split|XMLHttpRequest|ajaxSettings|append|child|String|empty|ajax|form|button|inArray|multiFilter|setRequestHeader|foundToken|9_|readyState|tag|modRes|responseText|second|ival|handleError|toUpperCase|setInterval|makeArray|slice|break|oWidth|Number|returnValue|lastModified|styleFloat|bind|width|isReady|toggle|jquery|dir|eval|mouseover|select|to|defaultView|position|oHeight|lastNum|async|step|globalEval|static|pos|swap|self|from|end|float|alpha|radio|inv|is|toLowerCase|visibility|00|clearInterval|timer|rec|isTimeout|dataType|_resort|RegExp|Function|getAll|requestDone|parents|matched|isXMLDoc|appendChild|oldDisplay|active|triggered|file|documentElement|fn2|startTime|Modified|shift|lastToggle|deep|handleHover|getResponseHeader|ct|submit|px|parseFloat|html|evalScripts|getComputedStyle|getElementById|clone|els|safariTimer|currentStyle|unload|force|execScript|getPropertyValue|newProp|setTimeout|zoom|getScript|1px|sl|settings|GET|rl|check|_toggle|processData|prepend|before|state|removeAttr|ajaxStart|lt|Date|gt|eq|contentType|previousSibling|after|parent|contains|getTime|checkbox|password|appendTo|image|reset|input|webkit|href|continue|beforeSend|ajaxSend|ownerDocument|getElementsByTagName|tmp|notmodified|parse|ajaxSuccess|ajaxComplete|_prefix|ajaxStop|even|odd|overflow|delete|POST|ajaxError|200|handle|httpSuccess|nodeValue|unshift|__ie_init|srcElement|body|pageX|tagName|clientX|scrollLeft|httpNotModified|dequeue|Last|scrollTop|304|xmlRes|unbind|100|Math|httpData|click|mouseout|parseInt|json|createElement|DOMContentLoaded|prevObject|ol|setArray|exclude|join|one|max|do|relative|clientHeight|clientWidth|loadIfModified|serialize|toString|thead|tfoot|td|th|textContent|ActiveXObject|htmlFor|Microsoft|class|XMLHTTP|readOnly|gi|match|getIfModified|9999|getJSON|getAttributeNode|post|setAttribute|ig|ajaxTimeout|ajaxSetup|concat|application|userAgent|compatible|www|compatMode|CSS1Compat|next|urlencoded|siblings|children|slideDown|prependTo|slideUp|Top|insertAfter|slideToggle|removeAttribute|addClass|removeClass|open|toggleClass|Content|Type|lastChild|If|only|Since|fadeIn|Thu|01|fadeOut|enabled|Jan|1970|fadeTo|GMT|textarea|Requested|With|prev|overrideMimeType|Connection|close|boxModel|right|object|Object|navigator|substring|abort|cos|font|send|slow|600|fast|400|location|protocol|300|pageY|clientY|method|action|cancelBubble|hover|fromElement|toElement|relatedTarget|removeEventListener|blur|readonly|focus|resize|content|scroll|dblclick|mousedown|mouseup|mousemove|responseXML|change|keydown|keypress|keyup|addEventListener|write|prototype|size|scr|ipt|createTextNode|defer|FORM|reverse|noConflict|loaded|10000|weight|line|Bottom|Right|Left|padding|border|Width|offsetHeight|offsetWidth|absolute|PI|left'.split('|'),0,{})) diff --git a/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js b/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js new file mode 100644 index 0000000..e09e63a --- /dev/null +++ b/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js @@ -0,0 +1,106 @@ +jQuery.fn.uniform = function(settings) { + settings = jQuery.extend({ + valid_class : 'valid', + invalid_class : 'invalid', + focused_class : 'focused', + holder_class : 'ctrlHolder', + field_selector : 'input, select, textarea' + }, settings); + + return this.each(function() { + var form = jQuery(this); + + // Focus specific control holder + var focusControlHolder = function(element) { + var parent = element.parent(); + + while(typeof(parent) == 'object') { + if(parent) { + if(parent[0] && (parent[0].className.indexOf(settings.holder_class) >= 0)) { + parent.addClass(settings.focused_class); + return; + } // if + } // if + parent = jQuery(parent.parent()); + } // while + }; + + // Select form fields and attach them higlighter functionality + form.find(settings.field_selector).focus(function() { + form.find('.' + settings.focused_class).removeClass(settings.focused_class); + focusControlHolder(jQuery(this)); + }).blur(function() { + form.find('.' + settings.focused_class).removeClass(settings.focused_class); + }); + }); +}; + +// Auto set on page load... +$(document).ready(function() { + jQuery('form.uniForm').uniform(); +}); + +function AR_ResetDates() +{ + if ($("#autoresponder:checked").val() == null) { + $("form.uniForm select").each( + function(){ + $(this).val( $("#" + $(this).attr("id") + " option:first").val() ); + } + ); + } +} + +function AR_SetNow() +{ + DateTime_SetValues('autoresponder_start_date'); + + now = new Date(); + end_date = new Date(now.getFullYear(), now.getMonth(), now.getDate()+2, 0, 0); + + DateTime_SetValues('autoresponder_end_date', end_date); +} + +function DateTime_SetValues(datetime_id, date_obj) +{ + var selects = ['day', 'month', 'year', 'hour', 'minute', 'second']; + + if ( (typeof(date_obj) == 'object') && (typeof(date_obj.getDate()) == 'number') ) { + var now = date_obj; + } else { + var now = new Date(); + } + + jQuery.each(selects, function() { + var unit_name = this.toString(); + var unit_value = ''; + + switch(unit_name) + { + case 'day': + unit_value = now.getDate(); + break; + case 'month': + unit_value = now.getMonth() + 1; + if(unit_value < 10) unit_value = '0'+unit_value; + break; + case 'year': + unit_value = now.getFullYear(); + break; + case 'hour': + unit_value = now.getHours(); + break; + case 'minute': + unit_value = Math.round(parseInt(now.getMinutes())/5)*5; + break; + case 'second': + unit_value = now.getSeconds(); + break; + } + + unit_obj = $("#"+ datetime_id + "_" + unit_name); + if (unit_obj.val() !== null) { + unit_obj.val(unit_value); + } + }); +} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/animation/README b/interface/ispconfig/interface/js/yui/animation/README new file mode 100644 index 0000000..a3160f6 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/animation/README @@ -0,0 +1,45 @@ +Animation Release Notes + +*** version 2.2.0 ** + +* Fixed AnimMgr.stop() when called without tween + +*** version 0.12.2 *** + +* raised AnimMgr.fps to 1000 + +*** version 0.12.1 *** +* minified version no longer strips line breaks + +*** version 0.12.0 *** + +* added boolean finish argument to Anim.stop() + +*** version 0.11.3 *** + +* no changes + +*** version 0.11.1 *** + +* changed "prototype" shorthand to "proto" (workaround firefox < 1.5 scoping +bug) + +*** version 0.11.0 *** + +* ColorAnim subclass added +* Motion and Scroll now inherit from ColorAnim +* getDefaultUnit method added +* defaultUnit and defaultUnits deprecated +* getDefault and setDefault methods deprecated + +*** version 0.10.0 *** + +* Scroll now handles relative ("by") animation correctly + +* Now converts "auto" values of "from" to appropriate initial values + +*** version 0.9.0 *** + +* Initial release + + diff --git a/interface/ispconfig/interface/js/yui/animation/animation-debug.js b/interface/ispconfig/interface/js/yui/animation/animation-debug.js new file mode 100644 index 0000000..4306195 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/animation/animation-debug.js @@ -0,0 +1,1361 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +*/ + +/** + * The animation module provides allows effects to be added to HTMLElements. + * @module animation + * @requires yahoo, event, dom + */ + +/** + * + * Base animation class that provides the interface for building animated effects. + * <p>Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);</p> + * @class Anim + * @namespace YAHOO.util + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @constructor + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + +YAHOO.util.Anim = function(el, attributes, duration, method) { + if (el) { + this.init(el, attributes, duration, method); + } +}; + +YAHOO.util.Anim.prototype = { + /** + * Provides a readable name for the Anim instance. + * @method toString + * @return {String} + */ + toString: function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Anim " + id); + }, + + patterns: { // cached for performance + noNegatives: /width|height|opacity|padding/i, // keep at zero or above + offsetAttribute: /^((width|height)|(top|left))$/, // use offsetValue as default + defaultUnit: /width|height|top$|bottom$|left$|right$/i, // use 'px' by default + offsetUnit: /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset + }, + + /** + * Returns the value computed by the animation's "method". + * @method doMethod + * @param {String} attr The name of the attribute. + * @param {Number} start The value this attribute should start from for this animation. + * @param {Number} end The value this attribute should end at for this animation. + * @return {Number} The Value to be applied to the attribute. + */ + doMethod: function(attr, start, end) { + return this.method(this.currentFrame, start, end - start, this.totalFrames); + }, + + /** + * Applies a value to an attribute. + * @method setAttribute + * @param {String} attr The name of the attribute. + * @param {Number} val The value to be applied to the attribute. + * @param {String} unit The unit ('px', '%', etc.) of the value. + */ + setAttribute: function(attr, val, unit) { + if ( this.patterns.noNegatives.test(attr) ) { + val = (val > 0) ? val : 0; + } + + YAHOO.util.Dom.setStyle(this.getEl(), attr, val + unit); + }, + + /** + * Returns current value of the attribute. + * @method getAttribute + * @param {String} attr The name of the attribute. + * @return {Number} val The current value of the attribute. + */ + getAttribute: function(attr) { + var el = this.getEl(); + var val = YAHOO.util.Dom.getStyle(el, attr); + + if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) { + return parseFloat(val); + } + + var a = this.patterns.offsetAttribute.exec(attr) || []; + var pos = !!( a[3] ); // top or left + var box = !!( a[2] ); // width or height + + // use offsets for width/height and abs pos top/left + if ( box || (YAHOO.util.Dom.getStyle(el, 'position') == 'absolute' && pos) ) { + val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)]; + } else { // default to zero for other 'auto' + val = 0; + } + + return val; + }, + + /** + * Returns the unit to use when none is supplied. + * @method getDefaultUnit + * @param {attr} attr The name of the attribute. + * @return {String} The default unit to be used. + */ + getDefaultUnit: function(attr) { + if ( this.patterns.defaultUnit.test(attr) ) { + return 'px'; + } + + return ''; + }, + + /** + * Sets the actual values to be used during the animation. Should only be needed for subclass use. + * @method setRuntimeAttribute + * @param {Object} attr The attribute object + * @private + */ + setRuntimeAttribute: function(attr) { + var start; + var end; + var attributes = this.attributes; + + this.runtimeAttributes[attr] = {}; + + var isset = function(prop) { + return (typeof prop !== 'undefined'); + }; + + if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) { + return false; // note return; nothing to animate to + } + + start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr); + + // To beats by, per SMIL 2.1 spec + if ( isset(attributes[attr]['to']) ) { + end = attributes[attr]['to']; + } else if ( isset(attributes[attr]['by']) ) { + if (start.constructor == Array) { + end = []; + for (var i = 0, len = start.length; i < len; ++i) { + end[i] = start[i] + attributes[attr]['by'][i]; + } + } else { + end = start + attributes[attr]['by']; + } + } + + this.runtimeAttributes[attr].start = start; + this.runtimeAttributes[attr].end = end; + + // set units if needed + this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ? attributes[attr]['unit'] : this.getDefaultUnit(attr); + }, + + /** + * Constructor for Anim instance. + * @method init + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + init: function(el, attributes, duration, method) { + /** + * Whether or not the animation is running. + * @property isAnimated + * @private + * @type Boolean + */ + var isAnimated = false; + + /** + * A Date object that is created when the animation begins. + * @property startTime + * @private + * @type Date + */ + var startTime = null; + + /** + * The number of frames this animation was able to execute. + * @property actualFrames + * @private + * @type Int + */ + var actualFrames = 0; + + /** + * The element to be animated. + * @property el + * @private + * @type HTMLElement + */ + el = YAHOO.util.Dom.get(el); + + /** + * The collection of attributes to be animated. + * Each attribute must have at least a "to" or "by" defined in order to animate. + * If "to" is supplied, the animation will end with the attribute at that value. + * If "by" is supplied, the animation will end at that value plus its starting value. + * If both are supplied, "to" is used, and "by" is ignored. + * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values). + * @property attributes + * @type Object + */ + this.attributes = attributes || {}; + + /** + * The length of the animation. Defaults to "1" (second). + * @property duration + * @type Number + */ + this.duration = duration || 1; + + /** + * The method that will provide values to the attribute(s) during the animation. + * Defaults to "YAHOO.util.Easing.easeNone". + * @property method + * @type Function + */ + this.method = method || YAHOO.util.Easing.easeNone; + + /** + * Whether or not the duration should be treated as seconds. + * Defaults to true. + * @property useSeconds + * @type Boolean + */ + this.useSeconds = true; // default to seconds + + /** + * The location of the current animation on the timeline. + * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time. + * @property currentFrame + * @type Int + */ + this.currentFrame = 0; + + /** + * The total number of frames to be executed. + * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time. + * @property totalFrames + * @type Int + */ + this.totalFrames = YAHOO.util.AnimMgr.fps; + + + /** + * Returns a reference to the animated element. + * @method getEl + * @return {HTMLElement} + */ + this.getEl = function() { return el; }; + + /** + * Checks whether the element is currently animated. + * @method isAnimated + * @return {Boolean} current value of isAnimated. + */ + this.isAnimated = function() { + return isAnimated; + }; + + /** + * Returns the animation start time. + * @method getStartTime + * @return {Date} current value of startTime. + */ + this.getStartTime = function() { + return startTime; + }; + + this.runtimeAttributes = {}; + + var logger = {}; + logger.log = function() {YAHOO.log.apply(window, arguments)}; + + logger.log('creating new instance of ' + this); + + /** + * Starts the animation by registering it with the animation manager. + * @method animate + */ + this.animate = function() { + if ( this.isAnimated() ) { + return false; + } + + this.currentFrame = 0; + + this.totalFrames = ( this.useSeconds ) ? Math.ceil(YAHOO.util.AnimMgr.fps * this.duration) : this.duration; + + YAHOO.util.AnimMgr.registerElement(this); + }; + + /** + * Stops the animation. Normally called by AnimMgr when animation completes. + * @method stop + * @param {Boolean} finish (optional) If true, animation will jump to final frame. + */ + this.stop = function(finish) { + if (finish) { + this.currentFrame = this.totalFrames; + this._onTween.fire(); + } + YAHOO.util.AnimMgr.stop(this); + }; + + var onStart = function() { + this.onStart.fire(); + + this.runtimeAttributes = {}; + for (var attr in this.attributes) { + this.setRuntimeAttribute(attr); + } + + isAnimated = true; + actualFrames = 0; + startTime = new Date(); + }; + + /** + * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s). + * @private + */ + + var onTween = function() { + var data = { + duration: new Date() - this.getStartTime(), + currentFrame: this.currentFrame + }; + + data.toString = function() { + return ( + 'duration: ' + data.duration + + ', currentFrame: ' + data.currentFrame + ); + }; + + this.onTween.fire(data); + + var runtimeAttributes = this.runtimeAttributes; + + for (var attr in runtimeAttributes) { + this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit); + } + + actualFrames += 1; + }; + + var onComplete = function() { + var actual_duration = (new Date() - startTime) / 1000 ; + + var data = { + duration: actual_duration, + frames: actualFrames, + fps: actualFrames / actual_duration + }; + + data.toString = function() { + return ( + 'duration: ' + data.duration + + ', frames: ' + data.frames + + ', fps: ' + data.fps + ); + }; + + isAnimated = false; + actualFrames = 0; + this.onComplete.fire(data); + }; + + /** + * Custom event that fires after onStart, useful in subclassing + * @private + */ + this._onStart = new YAHOO.util.CustomEvent('_start', this, true); + + /** + * Custom event that fires when animation begins + * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction) + * @event onStart + */ + this.onStart = new YAHOO.util.CustomEvent('start', this); + + /** + * Custom event that fires between each frame + * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction) + * @event onTween + */ + this.onTween = new YAHOO.util.CustomEvent('tween', this); + + /** + * Custom event that fires after onTween + * @private + */ + this._onTween = new YAHOO.util.CustomEvent('_tween', this, true); + + /** + * Custom event that fires when animation ends + * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction) + * @event onComplete + */ + this.onComplete = new YAHOO.util.CustomEvent('complete', this); + /** + * Custom event that fires after onComplete + * @private + */ + this._onComplete = new YAHOO.util.CustomEvent('_complete', this, true); + + this._onStart.subscribe(onStart); + this._onTween.subscribe(onTween); + this._onComplete.subscribe(onComplete); + } +}; + +/** + * Handles animation queueing and threading. + * Used by Anim and subclasses. + * @class AnimMgr + * @namespace YAHOO.util + */ +YAHOO.util.AnimMgr = new function() { + /** + * Reference to the animation Interval. + * @property thread + * @private + * @type Int + */ + var thread = null; + + /** + * The current queue of registered animation objects. + * @property queue + * @private + * @type Array + */ + var queue = []; + + /** + * The number of active animations. + * @property tweenCount + * @private + * @type Int + */ + var tweenCount = 0; + + /** + * Base frame rate (frames per second). + * Arbitrarily high for better x-browser calibration (slower browsers drop more frames). + * @property fps + * @type Int + * + */ + this.fps = 1000; + + /** + * Interval delay in milliseconds, defaults to fastest possible. + * @property delay + * @type Int + * + */ + this.delay = 1; + + /** + * Adds an animation instance to the animation queue. + * All animation instances must be registered in order to animate. + * @method registerElement + * @param {object} tween The Anim instance to be be registered + */ + this.registerElement = function(tween) { + queue[queue.length] = tween; + tweenCount += 1; + tween._onStart.fire(); + this.start(); + }; + + /** + * removes an animation instance from the animation queue. + * All animation instances must be registered in order to animate. + * @method unRegister + * @param {object} tween The Anim instance to be be registered + * @param {Int} index The index of the Anim instance + * @private + */ + this.unRegister = function(tween, index) { + tween._onComplete.fire(); + index = index || getIndex(tween); + if (index != -1) { + queue.splice(index, 1); + } + + tweenCount -= 1; + if (tweenCount <= 0) { + this.stop(); + } + }; + + /** + * Starts the animation thread. + * Only one thread can run at a time. + * @method start + */ + this.start = function() { + if (thread === null) { + thread = setInterval(this.run, this.delay); + } + }; + + /** + * Stops the animation thread or a specific animation instance. + * @method stop + * @param {object} tween A specific Anim instance to stop (optional) + * If no instance given, Manager stops thread and all animations. + */ + this.stop = function(tween) { + if (!tween) { + clearInterval(thread); + + for (var i = 0, len = queue.length; i < len; ++i) { + if ( queue[0].isAnimated() ) { + this.unRegister(queue[0], 0); + } + } + + queue = []; + thread = null; + tweenCount = 0; + } + else { + this.unRegister(tween); + } + }; + + /** + * Called per Interval to handle each animation frame. + * @method run + */ + this.run = function() { + for (var i = 0, len = queue.length; i < len; ++i) { + var tween = queue[i]; + if ( !tween || !tween.isAnimated() ) { continue; } + + if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null) + { + tween.currentFrame += 1; + + if (tween.useSeconds) { + correctFrame(tween); + } + tween._onTween.fire(); + } + else { YAHOO.util.AnimMgr.stop(tween, i); } + } + }; + + var getIndex = function(anim) { + for (var i = 0, len = queue.length; i < len; ++i) { + if (queue[i] == anim) { + return i; // note return; + } + } + return -1; + }; + + /** + * On the fly frame correction to keep animation on time. + * @method correctFrame + * @private + * @param {Object} tween The Anim instance being corrected. + */ + var correctFrame = function(tween) { + var frames = tween.totalFrames; + var frame = tween.currentFrame; + var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames); + var elapsed = (new Date() - tween.getStartTime()); + var tweak = 0; + + if (elapsed < tween.duration * 1000) { // check if falling behind + tweak = Math.round((elapsed / expected - 1) * tween.currentFrame); + } else { // went over duration, so jump to end + tweak = frames - (frame + 1); + } + if (tweak > 0 && isFinite(tweak)) { // adjust if needed + if (tween.currentFrame + tweak >= frames) {// dont go past last frame + tweak = frames - (frame + 1); + } + + tween.currentFrame += tweak; + } + }; +}; +/** + * Used to calculate Bezier splines for any number of control points. + * @class Bezier + * @namespace YAHOO.util + * + */ +YAHOO.util.Bezier = new function() { + /** + * Get the current position of the animated element based on t. + * Each point is an array of "x" and "y" values (0 = x, 1 = y) + * At least 2 points are required (start and end). + * First point is start. Last point is end. + * Additional control points are optional. + * @method getPosition + * @param {Array} points An array containing Bezier points + * @param {Number} t A number between 0 and 1 which is the basis for determining current position + * @return {Array} An array containing int x and y member data + */ + this.getPosition = function(points, t) { + var n = points.length; + var tmp = []; + + for (var i = 0; i < n; ++i){ + tmp[i] = [points[i][0], points[i][1]]; // save input + } + + for (var j = 1; j < n; ++j) { + for (i = 0; i < n - j; ++i) { + tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0]; + tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; + } + } + + return [ tmp[0][0], tmp[0][1] ]; + + }; +}; +(function() { +/** + * Anim subclass for color transitions. + * <p>Usage: <code>var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);</code> Color values can be specified with either 112233, #112233, + * [255,255,255], or rgb(255,255,255)</p> + * @class ColorAnim + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @constructor + * @extends YAHOO.util.Anim + * @param {HTMLElement | String} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.ColorAnim = function(el, attributes, duration, method) { + YAHOO.util.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method); + }; + + YAHOO.extend(YAHOO.util.ColorAnim, YAHOO.util.Anim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.ColorAnim.superclass; + var proto = Y.ColorAnim.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("ColorAnim " + id); + }; + + proto.patterns.color = /color$/i; + proto.patterns.rgb = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i; + proto.patterns.hex = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i; + proto.patterns.hex3 = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i; + proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari + + /** + * Attempts to parse the given string and return a 3-tuple. + * @method parseColor + * @param {String} s The string to parse. + * @return {Array} The 3-tuple of rgb values. + */ + proto.parseColor = function(s) { + if (s.length == 3) { return s; } + + var c = this.patterns.hex.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ]; + } + + c = this.patterns.rgb.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ]; + } + + c = this.patterns.hex3.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ]; + } + + return null; + }; + + proto.getAttribute = function(attr) { + var el = this.getEl(); + if ( this.patterns.color.test(attr) ) { + var val = YAHOO.util.Dom.getStyle(el, attr); + + if (this.patterns.transparent.test(val)) { // bgcolor default + var parent = el.parentNode; // try and get from an ancestor + val = Y.Dom.getStyle(parent, attr); + + while (parent && this.patterns.transparent.test(val)) { + parent = parent.parentNode; + val = Y.Dom.getStyle(parent, attr); + if (parent.tagName.toUpperCase() == 'HTML') { + val = '#fff'; + } + } + } + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.doMethod = function(attr, start, end) { + var val; + + if ( this.patterns.color.test(attr) ) { + val = []; + for (var i = 0, len = start.length; i < len; ++i) { + val[i] = superclass.doMethod.call(this, attr, start[i], end[i]); + } + + val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')'; + } + else { + val = superclass.doMethod.call(this, attr, start, end); + } + + return val; + }; + + proto.setRuntimeAttribute = function(attr) { + superclass.setRuntimeAttribute.call(this, attr); + + if ( this.patterns.color.test(attr) ) { + var attributes = this.attributes; + var start = this.parseColor(this.runtimeAttributes[attr].start); + var end = this.parseColor(this.runtimeAttributes[attr].end); + // fix colors if going "by" + if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) { + end = this.parseColor(attributes[attr].by); + + for (var i = 0, len = start.length; i < len; ++i) { + end[i] = start[i] + end[i]; + } + } + + this.runtimeAttributes[attr].start = start; + this.runtimeAttributes[attr].end = end; + } + }; +})(); +/* +TERMS OF USE - EASING EQUATIONS +Open source under the BSD License. +Copyright 2001 Robert Penner All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * Singleton that determines how an animation proceeds from start to end. + * @class Easing + * @namespace YAHOO.util +*/ + +YAHOO.util.Easing = { + + /** + * Uniform speed between points. + * @method easeNone + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeNone: function (t, b, c, d) { + return c*t/d + b; + }, + + /** + * Begins slowly and accelerates towards end. (quadratic) + * @method easeIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeIn: function (t, b, c, d) { + return c*(t/=d)*t + b; + }, + + /** + * Begins quickly and decelerates towards end. (quadratic) + * @method easeOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeOut: function (t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + + /** + * Begins slowly and decelerates towards end. (quadratic) + * @method easeBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeBoth: function (t, b, c, d) { + if ((t/=d/2) < 1) { + return c/2*t*t + b; + } + + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + + /** + * Begins slowly and accelerates towards end. (quartic) + * @method easeInStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeInStrong: function (t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + + /** + * Begins quickly and decelerates towards end. (quartic) + * @method easeOutStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeOutStrong: function (t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + + /** + * Begins slowly and decelerates towards end. (quartic) + * @method easeBothStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeBothStrong: function (t, b, c, d) { + if ((t/=d/2) < 1) { + return c/2*t*t*t*t + b; + } + + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + + /** + * Snap in elastic effect. + * @method elasticIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + + elasticIn: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + if ( (t /= d) == 1 ) { + return b+c; + } + if (!p) { + p=d*.3; + } + + if (!a || a < Math.abs(c)) { + a = c; + var s = p/4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + + /** + * Snap out elastic effect. + * @method elasticOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + elasticOut: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + if ( (t /= d) == 1 ) { + return b+c; + } + if (!p) { + p=d*.3; + } + + if (!a || a < Math.abs(c)) { + a = c; + var s = p / 4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + + /** + * Snap both elastic effect. + * @method elasticBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + elasticBoth: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + + if ( (t /= d/2) == 2 ) { + return b+c; + } + + if (!p) { + p = d*(.3*1.5); + } + + if ( !a || a < Math.abs(c) ) { + a = c; + var s = p/4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + if (t < 1) { + return -.5*(a*Math.pow(2,10*(t-=1)) * + Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + } + return a*Math.pow(2,-10*(t-=1)) * + Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + + + /** + * Backtracks slightly, then reverses direction and moves to end. + * @method backIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backIn: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + + /** + * Overshoots end, then reverses and comes back to end. + * @method backOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backOut: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + + /** + * Backtracks slightly, then reverses direction, overshoots end, + * then reverses and comes back to end. + * @method backBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backBoth: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + + if ((t /= d/2 ) < 1) { + return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + } + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + + /** + * Bounce off of start. + * @method bounceIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceIn: function (t, b, c, d) { + return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; + }, + + /** + * Bounces off end. + * @method bounceOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceOut: function (t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + }, + + /** + * Bounces off start and end. + * @method bounceBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceBoth: function (t, b, c, d) { + if (t < d/2) { + return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b; + } + return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}; + +(function() { +/** + * Anim subclass for moving elements along a path defined by the "points" + * member of "attributes". All "points" are arrays with x, y coordinates. + * <p>Usage: <code>var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p> + * @class Motion + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @constructor + * @extends YAHOO.util.Anim + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.Motion = function(el, attributes, duration, method) { + if (el) { // dont break existing subclasses not using YAHOO.extend + YAHOO.util.Motion.superclass.constructor.call(this, el, attributes, duration, method); + } + }; + + YAHOO.extend(YAHOO.util.Motion, YAHOO.util.ColorAnim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.Motion.superclass; + var proto = Y.Motion.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Motion " + id); + }; + + proto.patterns.points = /^points$/i; + + proto.setAttribute = function(attr, val, unit) { + if ( this.patterns.points.test(attr) ) { + unit = unit || 'px'; + superclass.setAttribute.call(this, 'left', val[0], unit); + superclass.setAttribute.call(this, 'top', val[1], unit); + } else { + superclass.setAttribute.call(this, attr, val, unit); + } + }; + + proto.getAttribute = function(attr) { + if ( this.patterns.points.test(attr) ) { + var val = [ + superclass.getAttribute.call(this, 'left'), + superclass.getAttribute.call(this, 'top') + ]; + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.doMethod = function(attr, start, end) { + var val = null; + + if ( this.patterns.points.test(attr) ) { + var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100; + val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t); + } else { + val = superclass.doMethod.call(this, attr, start, end); + } + return val; + }; + + proto.setRuntimeAttribute = function(attr) { + if ( this.patterns.points.test(attr) ) { + var el = this.getEl(); + var attributes = this.attributes; + var start; + var control = attributes['points']['control'] || []; + var end; + var i, len; + + if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points + control = [control]; + } else { // break reference to attributes.points.control + var tmp = []; + for (i = 0, len = control.length; i< len; ++i) { + tmp[i] = control[i]; + } + control = tmp; + } + + if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative + Y.Dom.setStyle(el, 'position', 'relative'); + } + + if ( isset(attributes['points']['from']) ) { + Y.Dom.setXY(el, attributes['points']['from']); // set position to from point + } + else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position + + start = this.getAttribute('points'); // get actual top & left + + // TO beats BY, per SMIL 2.1 spec + if ( isset(attributes['points']['to']) ) { + end = translateValues.call(this, attributes['points']['to'], start); + + var pageXY = Y.Dom.getXY(this.getEl()); + for (i = 0, len = control.length; i < len; ++i) { + control[i] = translateValues.call(this, control[i], start); + } + + + } else if ( isset(attributes['points']['by']) ) { + end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ]; + + for (i = 0, len = control.length; i < len; ++i) { + control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ]; + } + } + + this.runtimeAttributes[attr] = [start]; + + if (control.length > 0) { + this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control); + } + + this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end; + } + else { + superclass.setRuntimeAttribute.call(this, attr); + } + }; + + var translateValues = function(val, start) { + var pageXY = Y.Dom.getXY(this.getEl()); + val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ]; + + return val; + }; + + var isset = function(prop) { + return (typeof prop !== 'undefined'); + }; +})(); +(function() { +/** + * Anim subclass for scrolling elements to a position defined by the "scroll" + * member of "attributes". All "scroll" members are arrays with x, y scroll positions. + * <p>Usage: <code>var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p> + * @class Scroll + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @extends YAHOO.util.Anim + * @constructor + * @param {String or HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.Scroll = function(el, attributes, duration, method) { + if (el) { // dont break existing subclasses not using YAHOO.extend + YAHOO.util.Scroll.superclass.constructor.call(this, el, attributes, duration, method); + } + }; + + YAHOO.extend(YAHOO.util.Scroll, YAHOO.util.ColorAnim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.Scroll.superclass; + var proto = Y.Scroll.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Scroll " + id); + }; + + proto.doMethod = function(attr, start, end) { + var val = null; + + if (attr == 'scroll') { + val = [ + this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames), + this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames) + ]; + + } else { + val = superclass.doMethod.call(this, attr, start, end); + } + return val; + }; + + proto.getAttribute = function(attr) { + var val = null; + var el = this.getEl(); + + if (attr == 'scroll') { + val = [ el.scrollLeft, el.scrollTop ]; + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.setAttribute = function(attr, val, unit) { + var el = this.getEl(); + + if (attr == 'scroll') { + el.scrollLeft = val[0]; + el.scrollTop = val[1]; + } else { + superclass.setAttribute.call(this, attr, val, unit); + } + }; +})(); +YAHOO.register("animation", YAHOO.util.Anim, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/animation/animation-min.js b/interface/ispconfig/interface/js/yui/animation/animation-min.js new file mode 100644 index 0000000..ba5a9b1 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/animation/animation-min.js @@ -0,0 +1,75 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.Anim=function(el,attributes,duration,method){if(el){this.init(el,attributes,duration,method);}};YAHOO.util.Anim.prototype={toString:function(){var el=this.getEl();var id=el.id||el.tagName;return("Anim "+id);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(attr,start,end){return this.method(this.currentFrame,start,end-start,this.totalFrames);},setAttribute:function(attr,val,unit){if(this.patterns.noNegatives.test(attr)){val=(val>0)?val:0;} +YAHOO.util.Dom.setStyle(this.getEl(),attr,val+unit);},getAttribute:function(attr){var el=this.getEl();var val=YAHOO.util.Dom.getStyle(el,attr);if(val!=='auto'&&!this.patterns.offsetUnit.test(val)){return parseFloat(val);} +var a=this.patterns.offsetAttribute.exec(attr)||[];var pos=!!(a[3]);var box=!!(a[2]);if(box||(YAHOO.util.Dom.getStyle(el,'position')=='absolute'&&pos)){val=el['offset'+a[0].charAt(0).toUpperCase()+a[0].substr(1)];}else{val=0;} +return val;},getDefaultUnit:function(attr){if(this.patterns.defaultUnit.test(attr)){return'px';} +return'';},setRuntimeAttribute:function(attr){var start;var end;var attributes=this.attributes;this.runtimeAttributes[attr]={};var isset=function(prop){return(typeof prop!=='undefined');};if(!isset(attributes[attr]['to'])&&!isset(attributes[attr]['by'])){return false;} +start=(isset(attributes[attr]['from']))?attributes[attr]['from']:this.getAttribute(attr);if(isset(attributes[attr]['to'])){end=attributes[attr]['to'];}else if(isset(attributes[attr]['by'])){if(start.constructor==Array){end=[];for(var i=0,len=start.length;i<len;++i){end[i]=start[i]+attributes[attr]['by'][i];}}else{end=start+attributes[attr]['by'];}} +this.runtimeAttributes[attr].start=start;this.runtimeAttributes[attr].end=end;this.runtimeAttributes[attr].unit=(isset(attributes[attr].unit))?attributes[attr]['unit']:this.getDefaultUnit(attr);},init:function(el,attributes,duration,method){var isAnimated=false;var startTime=null;var actualFrames=0;el=YAHOO.util.Dom.get(el);this.attributes=attributes||{};this.duration=duration||1;this.method=method||YAHOO.util.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=YAHOO.util.AnimMgr.fps;this.getEl=function(){return el;};this.isAnimated=function(){return isAnimated;};this.getStartTime=function(){return startTime;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;} +this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(YAHOO.util.AnimMgr.fps*this.duration):this.duration;YAHOO.util.AnimMgr.registerElement(this);};this.stop=function(finish){if(finish){this.currentFrame=this.totalFrames;this._onTween.fire();} +YAHOO.util.AnimMgr.stop(this);};var onStart=function(){this.onStart.fire();this.runtimeAttributes={};for(var attr in this.attributes){this.setRuntimeAttribute(attr);} +isAnimated=true;actualFrames=0;startTime=new Date();};var onTween=function(){var data={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};data.toString=function(){return('duration: '+data.duration+', currentFrame: '+data.currentFrame);};this.onTween.fire(data);var runtimeAttributes=this.runtimeAttributes;for(var attr in runtimeAttributes){this.setAttribute(attr,this.doMethod(attr,runtimeAttributes[attr].start,runtimeAttributes[attr].end),runtimeAttributes[attr].unit);} +actualFrames+=1;};var onComplete=function(){var actual_duration=(new Date()-startTime)/1000;var data={duration:actual_duration,frames:actualFrames,fps:actualFrames/actual_duration};data.toString=function(){return('duration: '+data.duration+', frames: '+data.frames+', fps: '+data.fps);};isAnimated=false;actualFrames=0;this.onComplete.fire(data);};this._onStart=new YAHOO.util.CustomEvent('_start',this,true);this.onStart=new YAHOO.util.CustomEvent('start',this);this.onTween=new YAHOO.util.CustomEvent('tween',this);this._onTween=new YAHOO.util.CustomEvent('_tween',this,true);this.onComplete=new YAHOO.util.CustomEvent('complete',this);this._onComplete=new YAHOO.util.CustomEvent('_complete',this,true);this._onStart.subscribe(onStart);this._onTween.subscribe(onTween);this._onComplete.subscribe(onComplete);}};YAHOO.util.AnimMgr=new function(){var thread=null;var queue=[];var tweenCount=0;this.fps=1000;this.delay=1;this.registerElement=function(tween){queue[queue.length]=tween;tweenCount+=1;tween._onStart.fire();this.start();};this.unRegister=function(tween,index){tween._onComplete.fire();index=index||getIndex(tween);if(index!=-1){queue.splice(index,1);} +tweenCount-=1;if(tweenCount<=0){this.stop();}};this.start=function(){if(thread===null){thread=setInterval(this.run,this.delay);}};this.stop=function(tween){if(!tween){clearInterval(thread);for(var i=0,len=queue.length;i<len;++i){if(queue[0].isAnimated()){this.unRegister(queue[0],0);}} +queue=[];thread=null;tweenCount=0;} +else{this.unRegister(tween);}};this.run=function(){for(var i=0,len=queue.length;i<len;++i){var tween=queue[i];if(!tween||!tween.isAnimated()){continue;} +if(tween.currentFrame<tween.totalFrames||tween.totalFrames===null) +{tween.currentFrame+=1;if(tween.useSeconds){correctFrame(tween);} +tween._onTween.fire();} +else{YAHOO.util.AnimMgr.stop(tween,i);}}};var getIndex=function(anim){for(var i=0,len=queue.length;i<len;++i){if(queue[i]==anim){return i;}} +return-1;};var correctFrame=function(tween){var frames=tween.totalFrames;var frame=tween.currentFrame;var expected=(tween.currentFrame*tween.duration*1000/tween.totalFrames);var elapsed=(new Date()-tween.getStartTime());var tweak=0;if(elapsed<tween.duration*1000){tweak=Math.round((elapsed/expected-1)*tween.currentFrame);}else{tweak=frames-(frame+1);} +if(tweak>0&&isFinite(tweak)){if(tween.currentFrame+tweak>=frames){tweak=frames-(frame+1);} +tween.currentFrame+=tweak;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(points,t){var n=points.length;var tmp=[];for(var i=0;i<n;++i){tmp[i]=[points[i][0],points[i][1]];} +for(var j=1;j<n;++j){for(i=0;i<n-j;++i){tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}} +return[tmp[0][0],tmp[0][1]];};};(function(){YAHOO.util.ColorAnim=function(el,attributes,duration,method){YAHOO.util.ColorAnim.superclass.constructor.call(this,el,attributes,duration,method);};YAHOO.extend(YAHOO.util.ColorAnim,YAHOO.util.Anim);var Y=YAHOO.util;var superclass=Y.ColorAnim.superclass;var proto=Y.ColorAnim.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("ColorAnim "+id);};proto.patterns.color=/color$/i;proto.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;proto.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;proto.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;proto.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;proto.parseColor=function(s){if(s.length==3){return s;} +var c=this.patterns.hex.exec(s);if(c&&c.length==4){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];} +c=this.patterns.rgb.exec(s);if(c&&c.length==4){return[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)];} +c=this.patterns.hex3.exec(s);if(c&&c.length==4){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];} +return null;};proto.getAttribute=function(attr){var el=this.getEl();if(this.patterns.color.test(attr)){var val=YAHOO.util.Dom.getStyle(el,attr);if(this.patterns.transparent.test(val)){var parent=el.parentNode;val=Y.Dom.getStyle(parent,attr);while(parent&&this.patterns.transparent.test(val)){parent=parent.parentNode;val=Y.Dom.getStyle(parent,attr);if(parent.tagName.toUpperCase()=='HTML'){val='#fff';}}}}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.doMethod=function(attr,start,end){var val;if(this.patterns.color.test(attr)){val=[];for(var i=0,len=start.length;i<len;++i){val[i]=superclass.doMethod.call(this,attr,start[i],end[i]);} +val='rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';} +else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.setRuntimeAttribute=function(attr){superclass.setRuntimeAttribute.call(this,attr);if(this.patterns.color.test(attr)){var attributes=this.attributes;var start=this.parseColor(this.runtimeAttributes[attr].start);var end=this.parseColor(this.runtimeAttributes[attr].end);if(typeof attributes[attr]['to']==='undefined'&&typeof attributes[attr]['by']!=='undefined'){end=this.parseColor(attributes[attr].by);for(var i=0,len=start.length;i<len;++i){end[i]=start[i]+end[i];}} +this.runtimeAttributes[attr].start=start;this.runtimeAttributes[attr].end=end;}};})();YAHOO.util.Easing={easeNone:function(t,b,c,d){return c*t/d+b;},easeIn:function(t,b,c,d){return c*(t/=d)*t+b;},easeOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeBoth:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;} +return-c/2*((--t)*(t-2)-1)+b;},easeInStrong:function(t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutStrong:function(t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeBothStrong:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b;} +return-c/2*((t-=2)*t*t*t-2)+b;},elasticIn:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d)==1){return b+c;} +if(!p){p=d*.3;} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},elasticOut:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d)==1){return b+c;} +if(!p){p=d*.3;} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},elasticBoth:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d/2)==2){return b+c;} +if(!p){p=d*(.3*1.5);} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +if(t<1){return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;} +return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},backIn:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +return c*(t/=d)*t*((s+1)*t-s)+b;},backOut:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},backBoth:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;} +return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},bounceIn:function(t,b,c,d){return c-YAHOO.util.Easing.bounceOut(d-t,0,c,d)+b;},bounceOut:function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;} +return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;},bounceBoth:function(t,b,c,d){if(t<d/2){return YAHOO.util.Easing.bounceIn(t*2,0,c,d)*.5+b;} +return YAHOO.util.Easing.bounceOut(t*2-d,0,c,d)*.5+c*.5+b;}};(function(){YAHOO.util.Motion=function(el,attributes,duration,method){if(el){YAHOO.util.Motion.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Motion,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Motion.superclass;var proto=Y.Motion.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Motion "+id);};proto.patterns.points=/^points$/i;proto.setAttribute=function(attr,val,unit){if(this.patterns.points.test(attr)){unit=unit||'px';superclass.setAttribute.call(this,'left',val[0],unit);superclass.setAttribute.call(this,'top',val[1],unit);}else{superclass.setAttribute.call(this,attr,val,unit);}};proto.getAttribute=function(attr){if(this.patterns.points.test(attr)){var val=[superclass.getAttribute.call(this,'left'),superclass.getAttribute.call(this,'top')];}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.doMethod=function(attr,start,end){var val=null;if(this.patterns.points.test(attr)){var t=this.method(this.currentFrame,0,100,this.totalFrames)/100;val=Y.Bezier.getPosition(this.runtimeAttributes[attr],t);}else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.setRuntimeAttribute=function(attr){if(this.patterns.points.test(attr)){var el=this.getEl();var attributes=this.attributes;var start;var control=attributes['points']['control']||[];var end;var i,len;if(control.length>0&&!(control[0]instanceof Array)){control=[control];}else{var tmp=[];for(i=0,len=control.length;i<len;++i){tmp[i]=control[i];} +control=tmp;} +if(Y.Dom.getStyle(el,'position')=='static'){Y.Dom.setStyle(el,'position','relative');} +if(isset(attributes['points']['from'])){Y.Dom.setXY(el,attributes['points']['from']);} +else{Y.Dom.setXY(el,Y.Dom.getXY(el));} +start=this.getAttribute('points');if(isset(attributes['points']['to'])){end=translateValues.call(this,attributes['points']['to'],start);var pageXY=Y.Dom.getXY(this.getEl());for(i=0,len=control.length;i<len;++i){control[i]=translateValues.call(this,control[i],start);}}else if(isset(attributes['points']['by'])){end=[start[0]+attributes['points']['by'][0],start[1]+attributes['points']['by'][1]];for(i=0,len=control.length;i<len;++i){control[i]=[start[0]+control[i][0],start[1]+control[i][1]];}} +this.runtimeAttributes[attr]=[start];if(control.length>0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(control);} +this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;} +else{superclass.setRuntimeAttribute.call(this,attr);}};var translateValues=function(val,start){var pageXY=Y.Dom.getXY(this.getEl());val=[val[0]-pageXY[0]+start[0],val[1]-pageXY[1]+start[1]];return val;};var isset=function(prop){return(typeof prop!=='undefined');};})();(function(){YAHOO.util.Scroll=function(el,attributes,duration,method){if(el){YAHOO.util.Scroll.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Scroll,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Scroll.superclass;var proto=Y.Scroll.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};proto.doMethod=function(attr,start,end){var val=null;if(attr=='scroll'){val=[this.method(this.currentFrame,start[0],end[0]-start[0],this.totalFrames),this.method(this.currentFrame,start[1],end[1]-start[1],this.totalFrames)];}else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=='scroll'){val=[el.scrollLeft,el.scrollTop];}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=='scroll'){el.scrollLeft=val[0];el.scrollTop=val[1];}else{superclass.setAttribute.call(this,attr,val,unit);}};})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/animation/animation.js b/interface/ispconfig/interface/js/yui/animation/animation.js new file mode 100644 index 0000000..a70b841 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/animation/animation.js @@ -0,0 +1,1358 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +*/ + +/** + * The animation module provides allows effects to be added to HTMLElements. + * @module animation + * @requires yahoo, event, dom + */ + +/** + * + * Base animation class that provides the interface for building animated effects. + * <p>Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);</p> + * @class Anim + * @namespace YAHOO.util + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @constructor + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + +YAHOO.util.Anim = function(el, attributes, duration, method) { + if (el) { + this.init(el, attributes, duration, method); + } +}; + +YAHOO.util.Anim.prototype = { + /** + * Provides a readable name for the Anim instance. + * @method toString + * @return {String} + */ + toString: function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Anim " + id); + }, + + patterns: { // cached for performance + noNegatives: /width|height|opacity|padding/i, // keep at zero or above + offsetAttribute: /^((width|height)|(top|left))$/, // use offsetValue as default + defaultUnit: /width|height|top$|bottom$|left$|right$/i, // use 'px' by default + offsetUnit: /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset + }, + + /** + * Returns the value computed by the animation's "method". + * @method doMethod + * @param {String} attr The name of the attribute. + * @param {Number} start The value this attribute should start from for this animation. + * @param {Number} end The value this attribute should end at for this animation. + * @return {Number} The Value to be applied to the attribute. + */ + doMethod: function(attr, start, end) { + return this.method(this.currentFrame, start, end - start, this.totalFrames); + }, + + /** + * Applies a value to an attribute. + * @method setAttribute + * @param {String} attr The name of the attribute. + * @param {Number} val The value to be applied to the attribute. + * @param {String} unit The unit ('px', '%', etc.) of the value. + */ + setAttribute: function(attr, val, unit) { + if ( this.patterns.noNegatives.test(attr) ) { + val = (val > 0) ? val : 0; + } + + YAHOO.util.Dom.setStyle(this.getEl(), attr, val + unit); + }, + + /** + * Returns current value of the attribute. + * @method getAttribute + * @param {String} attr The name of the attribute. + * @return {Number} val The current value of the attribute. + */ + getAttribute: function(attr) { + var el = this.getEl(); + var val = YAHOO.util.Dom.getStyle(el, attr); + + if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) { + return parseFloat(val); + } + + var a = this.patterns.offsetAttribute.exec(attr) || []; + var pos = !!( a[3] ); // top or left + var box = !!( a[2] ); // width or height + + // use offsets for width/height and abs pos top/left + if ( box || (YAHOO.util.Dom.getStyle(el, 'position') == 'absolute' && pos) ) { + val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)]; + } else { // default to zero for other 'auto' + val = 0; + } + + return val; + }, + + /** + * Returns the unit to use when none is supplied. + * @method getDefaultUnit + * @param {attr} attr The name of the attribute. + * @return {String} The default unit to be used. + */ + getDefaultUnit: function(attr) { + if ( this.patterns.defaultUnit.test(attr) ) { + return 'px'; + } + + return ''; + }, + + /** + * Sets the actual values to be used during the animation. Should only be needed for subclass use. + * @method setRuntimeAttribute + * @param {Object} attr The attribute object + * @private + */ + setRuntimeAttribute: function(attr) { + var start; + var end; + var attributes = this.attributes; + + this.runtimeAttributes[attr] = {}; + + var isset = function(prop) { + return (typeof prop !== 'undefined'); + }; + + if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) { + return false; // note return; nothing to animate to + } + + start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr); + + // To beats by, per SMIL 2.1 spec + if ( isset(attributes[attr]['to']) ) { + end = attributes[attr]['to']; + } else if ( isset(attributes[attr]['by']) ) { + if (start.constructor == Array) { + end = []; + for (var i = 0, len = start.length; i < len; ++i) { + end[i] = start[i] + attributes[attr]['by'][i]; + } + } else { + end = start + attributes[attr]['by']; + } + } + + this.runtimeAttributes[attr].start = start; + this.runtimeAttributes[attr].end = end; + + // set units if needed + this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ? attributes[attr]['unit'] : this.getDefaultUnit(attr); + }, + + /** + * Constructor for Anim instance. + * @method init + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + init: function(el, attributes, duration, method) { + /** + * Whether or not the animation is running. + * @property isAnimated + * @private + * @type Boolean + */ + var isAnimated = false; + + /** + * A Date object that is created when the animation begins. + * @property startTime + * @private + * @type Date + */ + var startTime = null; + + /** + * The number of frames this animation was able to execute. + * @property actualFrames + * @private + * @type Int + */ + var actualFrames = 0; + + /** + * The element to be animated. + * @property el + * @private + * @type HTMLElement + */ + el = YAHOO.util.Dom.get(el); + + /** + * The collection of attributes to be animated. + * Each attribute must have at least a "to" or "by" defined in order to animate. + * If "to" is supplied, the animation will end with the attribute at that value. + * If "by" is supplied, the animation will end at that value plus its starting value. + * If both are supplied, "to" is used, and "by" is ignored. + * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values). + * @property attributes + * @type Object + */ + this.attributes = attributes || {}; + + /** + * The length of the animation. Defaults to "1" (second). + * @property duration + * @type Number + */ + this.duration = duration || 1; + + /** + * The method that will provide values to the attribute(s) during the animation. + * Defaults to "YAHOO.util.Easing.easeNone". + * @property method + * @type Function + */ + this.method = method || YAHOO.util.Easing.easeNone; + + /** + * Whether or not the duration should be treated as seconds. + * Defaults to true. + * @property useSeconds + * @type Boolean + */ + this.useSeconds = true; // default to seconds + + /** + * The location of the current animation on the timeline. + * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time. + * @property currentFrame + * @type Int + */ + this.currentFrame = 0; + + /** + * The total number of frames to be executed. + * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time. + * @property totalFrames + * @type Int + */ + this.totalFrames = YAHOO.util.AnimMgr.fps; + + + /** + * Returns a reference to the animated element. + * @method getEl + * @return {HTMLElement} + */ + this.getEl = function() { return el; }; + + /** + * Checks whether the element is currently animated. + * @method isAnimated + * @return {Boolean} current value of isAnimated. + */ + this.isAnimated = function() { + return isAnimated; + }; + + /** + * Returns the animation start time. + * @method getStartTime + * @return {Date} current value of startTime. + */ + this.getStartTime = function() { + return startTime; + }; + + this.runtimeAttributes = {}; + + + + /** + * Starts the animation by registering it with the animation manager. + * @method animate + */ + this.animate = function() { + if ( this.isAnimated() ) { + return false; + } + + this.currentFrame = 0; + + this.totalFrames = ( this.useSeconds ) ? Math.ceil(YAHOO.util.AnimMgr.fps * this.duration) : this.duration; + + YAHOO.util.AnimMgr.registerElement(this); + }; + + /** + * Stops the animation. Normally called by AnimMgr when animation completes. + * @method stop + * @param {Boolean} finish (optional) If true, animation will jump to final frame. + */ + this.stop = function(finish) { + if (finish) { + this.currentFrame = this.totalFrames; + this._onTween.fire(); + } + YAHOO.util.AnimMgr.stop(this); + }; + + var onStart = function() { + this.onStart.fire(); + + this.runtimeAttributes = {}; + for (var attr in this.attributes) { + this.setRuntimeAttribute(attr); + } + + isAnimated = true; + actualFrames = 0; + startTime = new Date(); + }; + + /** + * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s). + * @private + */ + + var onTween = function() { + var data = { + duration: new Date() - this.getStartTime(), + currentFrame: this.currentFrame + }; + + data.toString = function() { + return ( + 'duration: ' + data.duration + + ', currentFrame: ' + data.currentFrame + ); + }; + + this.onTween.fire(data); + + var runtimeAttributes = this.runtimeAttributes; + + for (var attr in runtimeAttributes) { + this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit); + } + + actualFrames += 1; + }; + + var onComplete = function() { + var actual_duration = (new Date() - startTime) / 1000 ; + + var data = { + duration: actual_duration, + frames: actualFrames, + fps: actualFrames / actual_duration + }; + + data.toString = function() { + return ( + 'duration: ' + data.duration + + ', frames: ' + data.frames + + ', fps: ' + data.fps + ); + }; + + isAnimated = false; + actualFrames = 0; + this.onComplete.fire(data); + }; + + /** + * Custom event that fires after onStart, useful in subclassing + * @private + */ + this._onStart = new YAHOO.util.CustomEvent('_start', this, true); + + /** + * Custom event that fires when animation begins + * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction) + * @event onStart + */ + this.onStart = new YAHOO.util.CustomEvent('start', this); + + /** + * Custom event that fires between each frame + * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction) + * @event onTween + */ + this.onTween = new YAHOO.util.CustomEvent('tween', this); + + /** + * Custom event that fires after onTween + * @private + */ + this._onTween = new YAHOO.util.CustomEvent('_tween', this, true); + + /** + * Custom event that fires when animation ends + * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction) + * @event onComplete + */ + this.onComplete = new YAHOO.util.CustomEvent('complete', this); + /** + * Custom event that fires after onComplete + * @private + */ + this._onComplete = new YAHOO.util.CustomEvent('_complete', this, true); + + this._onStart.subscribe(onStart); + this._onTween.subscribe(onTween); + this._onComplete.subscribe(onComplete); + } +}; + +/** + * Handles animation queueing and threading. + * Used by Anim and subclasses. + * @class AnimMgr + * @namespace YAHOO.util + */ +YAHOO.util.AnimMgr = new function() { + /** + * Reference to the animation Interval. + * @property thread + * @private + * @type Int + */ + var thread = null; + + /** + * The current queue of registered animation objects. + * @property queue + * @private + * @type Array + */ + var queue = []; + + /** + * The number of active animations. + * @property tweenCount + * @private + * @type Int + */ + var tweenCount = 0; + + /** + * Base frame rate (frames per second). + * Arbitrarily high for better x-browser calibration (slower browsers drop more frames). + * @property fps + * @type Int + * + */ + this.fps = 1000; + + /** + * Interval delay in milliseconds, defaults to fastest possible. + * @property delay + * @type Int + * + */ + this.delay = 1; + + /** + * Adds an animation instance to the animation queue. + * All animation instances must be registered in order to animate. + * @method registerElement + * @param {object} tween The Anim instance to be be registered + */ + this.registerElement = function(tween) { + queue[queue.length] = tween; + tweenCount += 1; + tween._onStart.fire(); + this.start(); + }; + + /** + * removes an animation instance from the animation queue. + * All animation instances must be registered in order to animate. + * @method unRegister + * @param {object} tween The Anim instance to be be registered + * @param {Int} index The index of the Anim instance + * @private + */ + this.unRegister = function(tween, index) { + tween._onComplete.fire(); + index = index || getIndex(tween); + if (index != -1) { + queue.splice(index, 1); + } + + tweenCount -= 1; + if (tweenCount <= 0) { + this.stop(); + } + }; + + /** + * Starts the animation thread. + * Only one thread can run at a time. + * @method start + */ + this.start = function() { + if (thread === null) { + thread = setInterval(this.run, this.delay); + } + }; + + /** + * Stops the animation thread or a specific animation instance. + * @method stop + * @param {object} tween A specific Anim instance to stop (optional) + * If no instance given, Manager stops thread and all animations. + */ + this.stop = function(tween) { + if (!tween) { + clearInterval(thread); + + for (var i = 0, len = queue.length; i < len; ++i) { + if ( queue[0].isAnimated() ) { + this.unRegister(queue[0], 0); + } + } + + queue = []; + thread = null; + tweenCount = 0; + } + else { + this.unRegister(tween); + } + }; + + /** + * Called per Interval to handle each animation frame. + * @method run + */ + this.run = function() { + for (var i = 0, len = queue.length; i < len; ++i) { + var tween = queue[i]; + if ( !tween || !tween.isAnimated() ) { continue; } + + if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null) + { + tween.currentFrame += 1; + + if (tween.useSeconds) { + correctFrame(tween); + } + tween._onTween.fire(); + } + else { YAHOO.util.AnimMgr.stop(tween, i); } + } + }; + + var getIndex = function(anim) { + for (var i = 0, len = queue.length; i < len; ++i) { + if (queue[i] == anim) { + return i; // note return; + } + } + return -1; + }; + + /** + * On the fly frame correction to keep animation on time. + * @method correctFrame + * @private + * @param {Object} tween The Anim instance being corrected. + */ + var correctFrame = function(tween) { + var frames = tween.totalFrames; + var frame = tween.currentFrame; + var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames); + var elapsed = (new Date() - tween.getStartTime()); + var tweak = 0; + + if (elapsed < tween.duration * 1000) { // check if falling behind + tweak = Math.round((elapsed / expected - 1) * tween.currentFrame); + } else { // went over duration, so jump to end + tweak = frames - (frame + 1); + } + if (tweak > 0 && isFinite(tweak)) { // adjust if needed + if (tween.currentFrame + tweak >= frames) {// dont go past last frame + tweak = frames - (frame + 1); + } + + tween.currentFrame += tweak; + } + }; +}; +/** + * Used to calculate Bezier splines for any number of control points. + * @class Bezier + * @namespace YAHOO.util + * + */ +YAHOO.util.Bezier = new function() { + /** + * Get the current position of the animated element based on t. + * Each point is an array of "x" and "y" values (0 = x, 1 = y) + * At least 2 points are required (start and end). + * First point is start. Last point is end. + * Additional control points are optional. + * @method getPosition + * @param {Array} points An array containing Bezier points + * @param {Number} t A number between 0 and 1 which is the basis for determining current position + * @return {Array} An array containing int x and y member data + */ + this.getPosition = function(points, t) { + var n = points.length; + var tmp = []; + + for (var i = 0; i < n; ++i){ + tmp[i] = [points[i][0], points[i][1]]; // save input + } + + for (var j = 1; j < n; ++j) { + for (i = 0; i < n - j; ++i) { + tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0]; + tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; + } + } + + return [ tmp[0][0], tmp[0][1] ]; + + }; +}; +(function() { +/** + * Anim subclass for color transitions. + * <p>Usage: <code>var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);</code> Color values can be specified with either 112233, #112233, + * [255,255,255], or rgb(255,255,255)</p> + * @class ColorAnim + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @constructor + * @extends YAHOO.util.Anim + * @param {HTMLElement | String} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.ColorAnim = function(el, attributes, duration, method) { + YAHOO.util.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method); + }; + + YAHOO.extend(YAHOO.util.ColorAnim, YAHOO.util.Anim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.ColorAnim.superclass; + var proto = Y.ColorAnim.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("ColorAnim " + id); + }; + + proto.patterns.color = /color$/i; + proto.patterns.rgb = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i; + proto.patterns.hex = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i; + proto.patterns.hex3 = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i; + proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari + + /** + * Attempts to parse the given string and return a 3-tuple. + * @method parseColor + * @param {String} s The string to parse. + * @return {Array} The 3-tuple of rgb values. + */ + proto.parseColor = function(s) { + if (s.length == 3) { return s; } + + var c = this.patterns.hex.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ]; + } + + c = this.patterns.rgb.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ]; + } + + c = this.patterns.hex3.exec(s); + if (c && c.length == 4) { + return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ]; + } + + return null; + }; + + proto.getAttribute = function(attr) { + var el = this.getEl(); + if ( this.patterns.color.test(attr) ) { + var val = YAHOO.util.Dom.getStyle(el, attr); + + if (this.patterns.transparent.test(val)) { // bgcolor default + var parent = el.parentNode; // try and get from an ancestor + val = Y.Dom.getStyle(parent, attr); + + while (parent && this.patterns.transparent.test(val)) { + parent = parent.parentNode; + val = Y.Dom.getStyle(parent, attr); + if (parent.tagName.toUpperCase() == 'HTML') { + val = '#fff'; + } + } + } + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.doMethod = function(attr, start, end) { + var val; + + if ( this.patterns.color.test(attr) ) { + val = []; + for (var i = 0, len = start.length; i < len; ++i) { + val[i] = superclass.doMethod.call(this, attr, start[i], end[i]); + } + + val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')'; + } + else { + val = superclass.doMethod.call(this, attr, start, end); + } + + return val; + }; + + proto.setRuntimeAttribute = function(attr) { + superclass.setRuntimeAttribute.call(this, attr); + + if ( this.patterns.color.test(attr) ) { + var attributes = this.attributes; + var start = this.parseColor(this.runtimeAttributes[attr].start); + var end = this.parseColor(this.runtimeAttributes[attr].end); + // fix colors if going "by" + if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) { + end = this.parseColor(attributes[attr].by); + + for (var i = 0, len = start.length; i < len; ++i) { + end[i] = start[i] + end[i]; + } + } + + this.runtimeAttributes[attr].start = start; + this.runtimeAttributes[attr].end = end; + } + }; +})(); +/* +TERMS OF USE - EASING EQUATIONS +Open source under the BSD License. +Copyright 2001 Robert Penner All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * Singleton that determines how an animation proceeds from start to end. + * @class Easing + * @namespace YAHOO.util +*/ + +YAHOO.util.Easing = { + + /** + * Uniform speed between points. + * @method easeNone + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeNone: function (t, b, c, d) { + return c*t/d + b; + }, + + /** + * Begins slowly and accelerates towards end. (quadratic) + * @method easeIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeIn: function (t, b, c, d) { + return c*(t/=d)*t + b; + }, + + /** + * Begins quickly and decelerates towards end. (quadratic) + * @method easeOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeOut: function (t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + + /** + * Begins slowly and decelerates towards end. (quadratic) + * @method easeBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeBoth: function (t, b, c, d) { + if ((t/=d/2) < 1) { + return c/2*t*t + b; + } + + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + + /** + * Begins slowly and accelerates towards end. (quartic) + * @method easeInStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeInStrong: function (t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + + /** + * Begins quickly and decelerates towards end. (quartic) + * @method easeOutStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeOutStrong: function (t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + + /** + * Begins slowly and decelerates towards end. (quartic) + * @method easeBothStrong + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + easeBothStrong: function (t, b, c, d) { + if ((t/=d/2) < 1) { + return c/2*t*t*t*t + b; + } + + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + + /** + * Snap in elastic effect. + * @method elasticIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + + elasticIn: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + if ( (t /= d) == 1 ) { + return b+c; + } + if (!p) { + p=d*.3; + } + + if (!a || a < Math.abs(c)) { + a = c; + var s = p/4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + + /** + * Snap out elastic effect. + * @method elasticOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + elasticOut: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + if ( (t /= d) == 1 ) { + return b+c; + } + if (!p) { + p=d*.3; + } + + if (!a || a < Math.abs(c)) { + a = c; + var s = p / 4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + + /** + * Snap both elastic effect. + * @method elasticBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} a Amplitude (optional) + * @param {Number} p Period (optional) + * @return {Number} The computed value for the current animation frame + */ + elasticBoth: function (t, b, c, d, a, p) { + if (t == 0) { + return b; + } + + if ( (t /= d/2) == 2 ) { + return b+c; + } + + if (!p) { + p = d*(.3*1.5); + } + + if ( !a || a < Math.abs(c) ) { + a = c; + var s = p/4; + } + else { + var s = p/(2*Math.PI) * Math.asin (c/a); + } + + if (t < 1) { + return -.5*(a*Math.pow(2,10*(t-=1)) * + Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + } + return a*Math.pow(2,-10*(t-=1)) * + Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + + + /** + * Backtracks slightly, then reverses direction and moves to end. + * @method backIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backIn: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + + /** + * Overshoots end, then reverses and comes back to end. + * @method backOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backOut: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + + /** + * Backtracks slightly, then reverses direction, overshoots end, + * then reverses and comes back to end. + * @method backBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @param {Number} s Overshoot (optional) + * @return {Number} The computed value for the current animation frame + */ + backBoth: function (t, b, c, d, s) { + if (typeof s == 'undefined') { + s = 1.70158; + } + + if ((t /= d/2 ) < 1) { + return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + } + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + + /** + * Bounce off of start. + * @method bounceIn + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceIn: function (t, b, c, d) { + return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; + }, + + /** + * Bounces off end. + * @method bounceOut + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceOut: function (t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + }, + + /** + * Bounces off start and end. + * @method bounceBoth + * @param {Number} t Time value used to compute current value + * @param {Number} b Starting value + * @param {Number} c Delta between start and end values + * @param {Number} d Total length of animation + * @return {Number} The computed value for the current animation frame + */ + bounceBoth: function (t, b, c, d) { + if (t < d/2) { + return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b; + } + return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}; + +(function() { +/** + * Anim subclass for moving elements along a path defined by the "points" + * member of "attributes". All "points" are arrays with x, y coordinates. + * <p>Usage: <code>var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p> + * @class Motion + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @constructor + * @extends YAHOO.util.Anim + * @param {String | HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.Motion = function(el, attributes, duration, method) { + if (el) { // dont break existing subclasses not using YAHOO.extend + YAHOO.util.Motion.superclass.constructor.call(this, el, attributes, duration, method); + } + }; + + YAHOO.extend(YAHOO.util.Motion, YAHOO.util.ColorAnim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.Motion.superclass; + var proto = Y.Motion.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Motion " + id); + }; + + proto.patterns.points = /^points$/i; + + proto.setAttribute = function(attr, val, unit) { + if ( this.patterns.points.test(attr) ) { + unit = unit || 'px'; + superclass.setAttribute.call(this, 'left', val[0], unit); + superclass.setAttribute.call(this, 'top', val[1], unit); + } else { + superclass.setAttribute.call(this, attr, val, unit); + } + }; + + proto.getAttribute = function(attr) { + if ( this.patterns.points.test(attr) ) { + var val = [ + superclass.getAttribute.call(this, 'left'), + superclass.getAttribute.call(this, 'top') + ]; + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.doMethod = function(attr, start, end) { + var val = null; + + if ( this.patterns.points.test(attr) ) { + var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100; + val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t); + } else { + val = superclass.doMethod.call(this, attr, start, end); + } + return val; + }; + + proto.setRuntimeAttribute = function(attr) { + if ( this.patterns.points.test(attr) ) { + var el = this.getEl(); + var attributes = this.attributes; + var start; + var control = attributes['points']['control'] || []; + var end; + var i, len; + + if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points + control = [control]; + } else { // break reference to attributes.points.control + var tmp = []; + for (i = 0, len = control.length; i< len; ++i) { + tmp[i] = control[i]; + } + control = tmp; + } + + if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative + Y.Dom.setStyle(el, 'position', 'relative'); + } + + if ( isset(attributes['points']['from']) ) { + Y.Dom.setXY(el, attributes['points']['from']); // set position to from point + } + else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position + + start = this.getAttribute('points'); // get actual top & left + + // TO beats BY, per SMIL 2.1 spec + if ( isset(attributes['points']['to']) ) { + end = translateValues.call(this, attributes['points']['to'], start); + + var pageXY = Y.Dom.getXY(this.getEl()); + for (i = 0, len = control.length; i < len; ++i) { + control[i] = translateValues.call(this, control[i], start); + } + + + } else if ( isset(attributes['points']['by']) ) { + end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ]; + + for (i = 0, len = control.length; i < len; ++i) { + control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ]; + } + } + + this.runtimeAttributes[attr] = [start]; + + if (control.length > 0) { + this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control); + } + + this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end; + } + else { + superclass.setRuntimeAttribute.call(this, attr); + } + }; + + var translateValues = function(val, start) { + var pageXY = Y.Dom.getXY(this.getEl()); + val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ]; + + return val; + }; + + var isset = function(prop) { + return (typeof prop !== 'undefined'); + }; +})(); +(function() { +/** + * Anim subclass for scrolling elements to a position defined by the "scroll" + * member of "attributes". All "scroll" members are arrays with x, y scroll positions. + * <p>Usage: <code>var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p> + * @class Scroll + * @namespace YAHOO.util + * @requires YAHOO.util.Anim + * @requires YAHOO.util.AnimMgr + * @requires YAHOO.util.Easing + * @requires YAHOO.util.Bezier + * @requires YAHOO.util.Dom + * @requires YAHOO.util.Event + * @requires YAHOO.util.CustomEvent + * @extends YAHOO.util.Anim + * @constructor + * @param {String or HTMLElement} el Reference to the element that will be animated + * @param {Object} attributes The attribute(s) to be animated. + * Each attribute is an object with at minimum a "to" or "by" member defined. + * Additional optional members are "from" (defaults to current value), "units" (defaults to "px"). + * All attribute names use camelCase. + * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based + * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method) + */ + YAHOO.util.Scroll = function(el, attributes, duration, method) { + if (el) { // dont break existing subclasses not using YAHOO.extend + YAHOO.util.Scroll.superclass.constructor.call(this, el, attributes, duration, method); + } + }; + + YAHOO.extend(YAHOO.util.Scroll, YAHOO.util.ColorAnim); + + // shorthand + var Y = YAHOO.util; + var superclass = Y.Scroll.superclass; + var proto = Y.Scroll.prototype; + + proto.toString = function() { + var el = this.getEl(); + var id = el.id || el.tagName; + return ("Scroll " + id); + }; + + proto.doMethod = function(attr, start, end) { + var val = null; + + if (attr == 'scroll') { + val = [ + this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames), + this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames) + ]; + + } else { + val = superclass.doMethod.call(this, attr, start, end); + } + return val; + }; + + proto.getAttribute = function(attr) { + var val = null; + var el = this.getEl(); + + if (attr == 'scroll') { + val = [ el.scrollLeft, el.scrollTop ]; + } else { + val = superclass.getAttribute.call(this, attr); + } + + return val; + }; + + proto.setAttribute = function(attr, val, unit) { + var el = this.getEl(); + + if (attr == 'scroll') { + el.scrollLeft = val[0]; + el.scrollTop = val[1]; + } else { + superclass.setAttribute.call(this, attr, val, unit); + } + }; +})(); +YAHOO.register("animation", YAHOO.util.Anim, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/autocomplete/README b/interface/ispconfig/interface/js/yui/autocomplete/README new file mode 100644 index 0000000..6ab6343 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/autocomplete/README @@ -0,0 +1,77 @@ +AutoComplete Release Notes + +*** version 2.2.0 *** + +* No changes. + + + +*** version 0.12.2 *** + +* No changes. + + + +*** version 0.12.1 *** + +* No longer trigger typeAhead feature when user is backspacing on input text. + + + +*** version 0.12.0 *** + +* The following constants must be defined as static class properties and are no longer +available as instance properties: + +YAHOO.widget.DataSource.ERROR_DATANULL +YAHOO.widget.DataSource.ERROR_DATAPARSE +YAHOO.widget.DS_XHR.TYPE_JSON +YAHOO.widget.DS_XHR.TYPE_XML +YAHOO.widget.DS_XHR.TYPE_FLAT +YAHOO.widget.DS_XHR.ERROR_DATAXHR + +* The property minQueryLength now supports zero and negative number values for +DS_JSFunction and DS_XHR objects, to enable null or empty string queries and to disable +AutoComplete functionality altogether, respectively. + +* Enabling the alwaysShowContainer feature will no longer send containerExpandEvent or +containerCollapseEvent. + + + +**** version 0.11.3 *** + +* The iFrameSrc property has been deprecated. Implementers no longer need to +specify an https URL to avoid IE security warnings when working with sites over +SSL. + + + +*** version 0.11.0 *** + +* The method getListIds() has been deprecated for getListItems(), which returns +an array of DOM references. + +* All classnames have been prefixed with "yui-ac-". + +* Container elements should no longer have CSS property "display" set to "none". + +* The useIFrame property can now be set after instantiation. + +* On some browsers, the unmatchedItemSelectEvent may not be fired properly when +delimiter characters are defined. + +* On some browsers, defining delimiter characters while enabling forceSelection +may result in unexpected behavior. + + + +*** version 0.10.0 *** + +* Initial release + +* In order to enable the useIFrame property, it should be set in the +constructor. + +* On some browsers, defining delimiter characters while enabling forceSelection +may result in unexpected behavior. diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js new file mode 100644 index 0000000..70c0b94 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js @@ -0,0 +1,3100 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + /** + * The AutoComplete control provides the front-end logic for text-entry suggestion and + * completion functionality. + * + * @module autocomplete + * @requires yahoo, dom, event, datasource + * @optional animation, connection + * @namespace YAHOO.widget + * @title AutoComplete Widget + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML + * auto completion widget. Some key features: + * <ul> + * <li>Navigate with up/down arrow keys and/or mouse to pick a selection</li> + * <li>The drop down container can "roll down" or "fly out" via configurable + * animation</li> + * <li>UI look-and-feel customizable through CSS, including container + * attributes, borders, position, fonts, etc</li> + * </ul> + * + * @class AutoComplete + * @constructor + * @param elInput {HTMLElement} DOM element reference of an input field. + * @param elInput {String} String ID of an input field. + * @param elContainer {HTMLElement} DOM element reference of an existing DIV. + * @param elContainer {String} String ID of an existing DIV. + * @param oDataSource {YAHOO.widget.DataSource} DataSource instance. + * @param oConfigs {Object} (optional) Object literal of configuration params. + */ +YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) { + if(elInput && elContainer && oDataSource) { + // Validate DataSource + if (oDataSource && (oDataSource instanceof YAHOO.widget.DataSource)) { + this.dataSource = oDataSource; + } + else { + YAHOO.log("Could not instantiate AutoComplete due to an invalid DataSource", "error", this.toString()); + return; + } + + // Validate input element + if(YAHOO.util.Dom.inDocument(elInput)) { + if(typeof elInput == "string") { + this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput; + this._oTextbox = document.getElementById(elInput); + } + else { + this._sName = (elInput.id) ? + "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id: + "instance" + YAHOO.widget.AutoComplete._nIndex; + this._oTextbox = elInput; + } + } + else { + YAHOO.log("Could not instantiate AutoComplete due to an invalid input element", "error", this.toString()); + return; + } + + // Validate container element + if(YAHOO.util.Dom.inDocument(elContainer)) { + if(typeof elContainer == "string") { + this._oContainer = document.getElementById(elContainer); + } + else { + this._oContainer = elContainer; + } + if(this._oContainer.style.display == "none") { + YAHOO.log("The container may not display properly if display is set to \"none\" in CSS", "warn", this.toString()); + } + } + else { + YAHOO.log("Could not instantiate AutoComplete due to an invalid container element", "error", this.toString()); + return; + } + + // Set any config params passed in to override defaults + if (typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if (sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + // Initialization sequence + this._initContainer(); + this._initProps(); + this._initList(); + this._initContainerHelpers(); + + // Set up events + var oSelf = this; + var oTextbox = this._oTextbox; + // Events are actually for the content module within the container + var oContent = this._oContainer._oContent; + + // Dom events + YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf); + YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf); + YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf); + YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf); + YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf); + YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf); + YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf); + YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf); + if(oTextbox.form) { + YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf); + } + YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf); + + // Custom events + this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this); + this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this); + this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this); + this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this); + this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this); + this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this); + this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this); + this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this); + this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this); + this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this); + this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this); + this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this); + this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this); + this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this); + this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this); + this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this); + + // Finish up + oTextbox.setAttribute("autocomplete","off"); + YAHOO.widget.AutoComplete._nIndex++; + YAHOO.log("AutoComplete initialized","info",this.toString()); + } + // Required arguments were not found + else { + YAHOO.log("Could not instantiate AutoComplete due invalid arguments", "error", this.toString()); + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * The DataSource object that encapsulates the data used for auto completion. + * This object should be an inherited object from YAHOO.widget.DataSource. + * + * @property dataSource + * @type YAHOO.widget.DataSource + */ +YAHOO.widget.AutoComplete.prototype.dataSource = null; + +/** + * Number of characters that must be entered before querying for results. A negative value + * effectively turns off the widget. A value of 0 allows queries of null or empty string + * values. + * + * @property minQueryLength + * @type Number + * @default 1 + */ +YAHOO.widget.AutoComplete.prototype.minQueryLength = 1; + +/** + * Maximum number of results to display in results container. + * + * @property maxResultsDisplayed + * @type Number + * @default 10 + */ +YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10; + +/** + * Number of seconds to delay before submitting a query request. If a query + * request is received before a previous one has completed its delay, the + * previous request is cancelled and the new request is set to the delay. + * + * @property queryDelay + * @type Number + * @default 0.5 + */ +YAHOO.widget.AutoComplete.prototype.queryDelay = 0.5; + +/** + * Class name of a highlighted item within results container. + * + * @property highlightClassName + * @type String + * @default "yui-ac-highlight" + */ +YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight"; + +/** + * Class name of a pre-highlighted item within results container. + * + * @property prehighlightClassName + * @type String + */ +YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null; + +/** + * Query delimiter. A single character separator for multiple delimited + * selections. Multiple delimiter characteres may be defined as an array of + * strings. A null value or empty string indicates that query results cannot + * be delimited. This feature is not recommended if you need forceSelection to + * be true. + * + * @property delimChar + * @type String | String[] + */ +YAHOO.widget.AutoComplete.prototype.delimChar = null; + +/** + * Whether or not the first item in results container should be automatically highlighted + * on expand. + * + * @property autoHighlight + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.autoHighlight = true; + +/** + * Whether or not the input field should be automatically updated + * with the first query result as the user types, auto-selecting the substring + * that the user has not typed. + * + * @property typeAhead + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.typeAhead = false; + +/** + * Whether or not to animate the expansion/collapse of the results container in the + * horizontal direction. + * + * @property animHoriz + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.animHoriz = false; + +/** + * Whether or not to animate the expansion/collapse of the results container in the + * vertical direction. + * + * @property animVert + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.animVert = true; + +/** + * Speed of container expand/collapse animation, in seconds.. + * + * @property animSpeed + * @type Number + * @default 0.3 + */ +YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3; + +/** + * Whether or not to force the user's selection to match one of the query + * results. Enabling this feature essentially transforms the input field into a + * <select> field. This feature is not recommended with delimiter character(s) + * defined. + * + * @property forceSelection + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.forceSelection = false; + +/** + * Whether or not to allow browsers to cache user-typed input in the input + * field. Disabling this feature will prevent the widget from setting the + * autocomplete="off" on the input field. When autocomplete="off" + * and users click the back button after form submission, user-typed input can + * be prefilled by the browser from its cache. This caching of user input may + * not be desired for sensitive data, such as credit card numbers, in which + * case, implementers should consider setting allowBrowserAutocomplete to false. + * + * @property allowBrowserAutocomplete + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true; + +/** + * Whether or not the results container should always be displayed. + * Enabling this feature displays the container when the widget is instantiated + * and prevents the toggling of the container to a collapsed state. + * + * @property alwaysShowContainer + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false; + +/** + * Whether or not to use an iFrame to layer over Windows form elements in + * IE. Set to true only when the results container will be on top of a + * <select> field in IE and thus exposed to the IE z-index bug (i.e., + * 5.5 < IE < 7). + * + * @property useIFrame + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.useIFrame = false; + +/** + * Whether or not the results container should have a shadow. + * + * @property useShadow + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.useShadow = false; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the AutoComplete instance. + * + * @method toString + * @return {String} Unique name of the AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.toString = function() { + return "AutoComplete " + this._sName; +}; + + /** + * Returns true if container is in an expanded state, false otherwise. + * + * @method isContainerOpen + * @return {Boolean} Returns true if container is in an expanded state, false otherwise. + */ +YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() { + return this._bContainerOpen; +}; + +/** + * Public accessor to the internal array of DOM <li> elements that + * display query results within the results container. + * + * @method getListItems + * @return {HTMLElement[]} Array of <li> elements within the results container. + */ +YAHOO.widget.AutoComplete.prototype.getListItems = function() { + return this._aListItems; +}; + +/** + * Public accessor to the data held in an <li> element of the + * results container. + * + * @method getListItemData + * @return {Object | Object[]} Object or array of result data or null + */ +YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) { + if(oListItem._oResultData) { + return oListItem._oResultData; + } + else { + return false; + } +}; + +/** + * Sets HTML markup for the results container header. This markup will be + * inserted within a <div> tag with a class of "yui-ac-hd". + * + * @method setHeader + * @param sHeader {String} HTML markup for results container header. + */ +YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) { + if(sHeader) { + if(this._oContainer._oContent._oHeader) { + this._oContainer._oContent._oHeader.innerHTML = sHeader; + this._oContainer._oContent._oHeader.style.display = "block"; + } + } + else { + this._oContainer._oContent._oHeader.innerHTML = ""; + this._oContainer._oContent._oHeader.style.display = "none"; + } +}; + +/** + * Sets HTML markup for the results container footer. This markup will be + * inserted within a <div> tag with a class of "yui-ac-ft". + * + * @method setFooter + * @param sFooter {String} HTML markup for results container footer. + */ +YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) { + if(sFooter) { + if(this._oContainer._oContent._oFooter) { + this._oContainer._oContent._oFooter.innerHTML = sFooter; + this._oContainer._oContent._oFooter.style.display = "block"; + } + } + else { + this._oContainer._oContent._oFooter.innerHTML = ""; + this._oContainer._oContent._oFooter.style.display = "none"; + } +}; + +/** + * Sets HTML markup for the results container body. This markup will be + * inserted within a <div> tag with a class of "yui-ac-bd". + * + * @method setBody + * @param sBody {String} HTML markup for results container body. + */ +YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) { + if(sBody) { + if(this._oContainer._oContent._oBody) { + this._oContainer._oContent._oBody.innerHTML = sBody; + this._oContainer._oContent._oBody.style.display = "block"; + this._oContainer._oContent.style.display = "block"; + } + } + else { + this._oContainer._oContent._oBody.innerHTML = ""; + this._oContainer._oContent.style.display = "none"; + } + this._maxResultsDisplayed = 0; +}; + +/** + * Overridable method that converts a result item object into HTML markup + * for display. Return data values are accessible via the oResultItem object, + * and the key return value will always be oResultItem[0]. Markup will be + * displayed within <li> element tags in the container. + * + * @method formatResult + * @param oResultItem {Object} Result item representing one query result. Data is held in an array. + * @param sQuery {String} The current query string. + * @return {String} HTML markup of formatted result data. + */ +YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) { + var sResult = oResultItem[0]; + if(sResult) { + return sResult; + } + else { + return ""; + } +}; + +/** + * Overridable method called before container expands allows implementers to access data + * and DOM elements. + * + * @method doBeforeExpandContainer + * @return {Boolean} Return true to continue expanding container, false to cancel the expand. + */ +YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(oResultItem, sQuery) { + return true; +}; + +/** + * Makes query request to the DataSource. + * + * @method sendQuery + * @param sQuery {String} Query string. + */ +YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) { + this._sendQuery(sQuery); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Fired when the input field receives focus. + * + * @event textboxFocusEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null; + +/** + * Fired when the input field receives key input. + * + * @event textboxKeyEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param nKeycode {Number} The keycode number. + */ +YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null; + +/** + * Fired when the AutoComplete instance makes a query to the DataSource. + * + * @event dataRequestEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + */ +YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null; + +/** + * Fired when the AutoComplete instance receives query results from the data + * source. + * + * @event dataReturnEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Results array. + */ +YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null; + +/** + * Fired when the AutoComplete instance does not receive query results from the + * DataSource due to an error. + * + * @event dataErrorEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + */ +YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null; + +/** + * Fired when the results container is expanded. + * + * @event containerExpandEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null; + +/** + * Fired when the input field has been prefilled by the type-ahead + * feature. + * + * @event typeAheadEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + * @param sPrefill {String} The prefill string. + */ +YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null; + +/** + * Fired when result item has been moused over. + * + * @event itemMouseOverEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item moused to. + */ +YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null; + +/** + * Fired when result item has been moused out. + * + * @event itemMouseOutEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item moused from. + */ +YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null; + +/** + * Fired when result item has been arrowed to. + * + * @event itemArrowToEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item arrowed to. + */ +YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null; + +/** + * Fired when result item has been arrowed away from. + * + * @event itemArrowFromEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item arrowed from. + */ +YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null; + +/** + * Fired when an item is selected via mouse click, ENTER key, or TAB key. + * + * @event itemSelectEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The selected <li> element item. + * @param oData {Object} The data returned for the item, either as an object, + * or mapped from the schema into an array. + */ +YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null; + +/** + * Fired when a user selection does not match any of the displayed result items. + * Note that this event may not behave as expected when delimiter characters + * have been defined. + * + * @event unmatchedItemSelectEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The user-typed query string. + */ +YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null; + +/** + * Fired if forceSelection is enabled and the user's input has been cleared + * because it did not match one of the returned query results. + * + * @event selectionEnforceEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null; + +/** + * Fired when the results container is collapsed. + * + * @event containerCollapseEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null; + +/** + * Fired when the input field loses focus. + * + * @event textboxBlurEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple AutoComplete instances. + * + * @property _nIndex + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.AutoComplete._nIndex = 0; + +/** + * Name of AutoComplete instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sName = null; + +/** + * Text input field DOM element. + * + * @property _oTextbox + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oTextbox = null; + +/** + * Whether or not the input field is currently in focus. If query results come back + * but the user has already moved on, do not proceed with auto complete behavior. + * + * @property _bFocused + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bFocused = true; + +/** + * Animation instance for container expand/collapse. + * + * @property _oAnim + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._oAnim = null; + +/** + * Container DOM element. + * + * @property _oContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oContainer = null; + +/** + * Whether or not the results container is currently open. + * + * @property _bContainerOpen + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bContainerOpen = false; + +/** + * Whether or not the mouse is currently over the results + * container. This is necessary in order to prevent clicks on container items + * from being text input field blur events. + * + * @property _bOverContainer + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bOverContainer = false; + +/** + * Array of <li> elements references that contain query results within the + * results container. + * + * @property _aListItems + * @type HTMLElement[] + * @private + */ +YAHOO.widget.AutoComplete.prototype._aListItems = null; + +/** + * Number of <li> elements currently displayed in results container. + * + * @property _nDisplayedItems + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0; + +/** + * Internal count of <li> elements displayed and hidden in results container. + * + * @property _maxResultsDisplayed + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0; + +/** + * Current query string + * + * @property _sCurQuery + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sCurQuery = null; + +/** + * Past queries this session (for saving delimited queries). + * + * @property _sSavedQuery + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sSavedQuery = null; + +/** + * Pointer to the currently highlighted <li> element in the container. + * + * @property _oCurItem + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oCurItem = null; + +/** + * Whether or not an item has been selected since the container was populated + * with results. Reset to false by _populateList, and set to true when item is + * selected. + * + * @property _bItemSelected + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bItemSelected = false; + +/** + * Key code of the last key pressed in textbox. + * + * @property _nKeyCode + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nKeyCode = null; + +/** + * Delay timeout ID. + * + * @property _nDelayID + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nDelayID = -1; + +/** + * Src to iFrame used when useIFrame = true. Supports implementations over SSL + * as well. + * + * @property _iFrameSrc + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;"; + +/** + * For users typing via certain IMEs, queries must be triggered by intervals, + * since key events yet supported across all browsers for all IMEs. + * + * @property _queryInterval + * @type Object + * @private + */ +YAHOO.widget.AutoComplete.prototype._queryInterval = null; + +/** + * Internal tracker to last known textbox value, used to determine whether or not + * to trigger a query via interval for certain IME users. + * + * @event _sLastTextboxValue + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Updates and validates latest public config properties. + * + * @method __initProps + * @private + */ +YAHOO.widget.AutoComplete.prototype._initProps = function() { + // Correct any invalid values + var minQueryLength = this.minQueryLength; + if(isNaN(minQueryLength) || (minQueryLength < 1)) { + minQueryLength = 1; + } + var maxResultsDisplayed = this.maxResultsDisplayed; + if(isNaN(this.maxResultsDisplayed) || (this.maxResultsDisplayed < 1)) { + this.maxResultsDisplayed = 10; + } + var queryDelay = this.queryDelay; + if(isNaN(this.queryDelay) || (this.queryDelay < 0)) { + this.queryDelay = 0.5; + } + var aDelimChar = (this.delimChar) ? this.delimChar : null; + if(aDelimChar) { + if(typeof aDelimChar == "string") { + this.delimChar = [aDelimChar]; + } + else if(aDelimChar.constructor != Array) { + this.delimChar = null; + } + } + var animSpeed = this.animSpeed; + if((this.animHoriz || this.animVert) && YAHOO.util.Anim) { + if(isNaN(animSpeed) || (animSpeed < 0)) { + animSpeed = 0.3; + } + if(!this._oAnim ) { + oAnim = new YAHOO.util.Anim(this._oContainer._oContent, {}, this.animSpeed); + this._oAnim = oAnim; + } + else { + this._oAnim.duration = animSpeed; + } + } + if(this.forceSelection && this.delimChar) { + YAHOO.log("The forceSelection feature has been enabled with delimChar defined.","warn", this.toString()); + } +}; + +/** + * Initializes the results container helpers if they are enabled and do + * not exist + * + * @method _initContainerHelpers + * @private + */ +YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() { + if(this.useShadow && !this._oContainer._oShadow) { + var oShadow = document.createElement("div"); + oShadow.className = "yui-ac-shadow"; + this._oContainer._oShadow = this._oContainer.appendChild(oShadow); + } + if(this.useIFrame && !this._oContainer._oIFrame) { + var oIFrame = document.createElement("iframe"); + oIFrame.src = this._iFrameSrc; + oIFrame.frameBorder = 0; + oIFrame.scrolling = "no"; + oIFrame.style.position = "absolute"; + oIFrame.style.width = "100%"; + oIFrame.style.height = "100%"; + oIFrame.tabIndex = -1; + this._oContainer._oIFrame = this._oContainer.appendChild(oIFrame); + } +}; + +/** + * Initializes the results container once at object creation + * + * @method _initContainer + * @private + */ +YAHOO.widget.AutoComplete.prototype._initContainer = function() { + if(!this._oContainer._oContent) { + // The oContent div helps size the iframe and shadow properly + var oContent = document.createElement("div"); + oContent.className = "yui-ac-content"; + oContent.style.display = "none"; + this._oContainer._oContent = this._oContainer.appendChild(oContent); + + var oHeader = document.createElement("div"); + oHeader.className = "yui-ac-hd"; + oHeader.style.display = "none"; + this._oContainer._oContent._oHeader = this._oContainer._oContent.appendChild(oHeader); + + var oBody = document.createElement("div"); + oBody.className = "yui-ac-bd"; + this._oContainer._oContent._oBody = this._oContainer._oContent.appendChild(oBody); + + var oFooter = document.createElement("div"); + oFooter.className = "yui-ac-ft"; + oFooter.style.display = "none"; + this._oContainer._oContent._oFooter = this._oContainer._oContent.appendChild(oFooter); + } + else { + YAHOO.log("Could not initialize the container","warn",this.toString()); + } +}; + +/** + * Clears out contents of container body and creates up to + * YAHOO.widget.AutoComplete#maxResultsDisplayed <li> elements in an + * <ul> element. + * + * @method _initList + * @private + */ +YAHOO.widget.AutoComplete.prototype._initList = function() { + this._aListItems = []; + while(this._oContainer._oContent._oBody.hasChildNodes()) { + var oldListItems = this.getListItems(); + if(oldListItems) { + for(var oldi = oldListItems.length-1; oldi >= 0; i--) { + oldListItems[oldi] = null; + } + } + this._oContainer._oContent._oBody.innerHTML = ""; + } + + var oList = document.createElement("ul"); + oList = this._oContainer._oContent._oBody.appendChild(oList); + for(var i=0; i<this.maxResultsDisplayed; i++) { + var oItem = document.createElement("li"); + oItem = oList.appendChild(oItem); + this._aListItems[i] = oItem; + this._initListItem(oItem, i); + } + this._maxResultsDisplayed = this.maxResultsDisplayed; +}; + +/** + * Initializes each <li> element in the container list. + * + * @method _initListItem + * @param oItem {HTMLElement} The <li> DOM element. + * @param nItemIndex {Number} The index of the element. + * @private + */ +YAHOO.widget.AutoComplete.prototype._initListItem = function(oItem, nItemIndex) { + var oSelf = this; + oItem.style.display = "none"; + oItem._nItemIndex = nItemIndex; + + oItem.mouseover = oItem.mouseout = oItem.onclick = null; + YAHOO.util.Event.addListener(oItem,"mouseover",oSelf._onItemMouseover,oSelf); + YAHOO.util.Event.addListener(oItem,"mouseout",oSelf._onItemMouseout,oSelf); + YAHOO.util.Event.addListener(oItem,"click",oSelf._onItemMouseclick,oSelf); +}; + +/** + * Enables interval detection for Korean IME support. + * + * @method _onIMEDetected + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onIMEDetected = function(oSelf) { + oSelf._enableIntervalDetection(); +}; + +/** + * Enables query triggers based on text input detection by intervals (rather + * than by key events). + * + * @method _enableIntervalDetection + * @private + */ +YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() { + var currValue = this._oTextbox.value; + var lastValue = this._sLastTextboxValue; + if(currValue != lastValue) { + this._sLastTextboxValue = currValue; + this._sendQuery(currValue); + } +}; + + +/** + * Cancels text input detection by intervals. + * + * @method _cancelIntervalDetection + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection = function(oSelf) { + if(oSelf._queryInterval) { + clearInterval(oSelf._queryInterval); + } +}; + + +/** + * Whether or not key is functional or should be ignored. Note that the right + * arrow key is NOT an ignored key since it triggers queries for certain intl + * charsets. + * + * @method _isIgnoreKey + * @param nKeycode {Number} Code of key pressed. + * @return {Boolean} True if key should be ignored, false otherwise. + * @private + */ +YAHOO.widget.AutoComplete.prototype._isIgnoreKey = function(nKeyCode) { + if ((nKeyCode == 9) || (nKeyCode == 13) || // tab, enter + (nKeyCode == 16) || (nKeyCode == 17) || // shift, ctl + (nKeyCode >= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock + (nKeyCode == 27) || // esc + (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end + (nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up + (nKeyCode == 40) || // down + (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert + return true; + } + return false; +}; + +/** + * Makes query request to the DataSource. + * + * @method _sendQuery + * @param sQuery {String} Query string. + * @private + */ +YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) { + // Widget has been effectively turned off + if(this.minQueryLength == -1) { + this._toggleContainer(false); + return; + } + // Delimiter has been enabled + var aDelimChar = (this.delimChar) ? this.delimChar : null; + if(aDelimChar) { + // Loop through all possible delimiters and find the latest one + // A " " may be a false positive if they are defined as delimiters AND + // are used to separate delimited queries + var nDelimIndex = -1; + for(var i = aDelimChar.length-1; i >= 0; i--) { + var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]); + if(nNewIndex > nDelimIndex) { + nDelimIndex = nNewIndex; + } + } + // If we think the last delimiter is a space (" "), make sure it is NOT + // a false positive by also checking the char directly before it + if(aDelimChar[i] == " ") { + for (var j = aDelimChar.length-1; j >= 0; j--) { + if(sQuery[nDelimIndex - 1] == aDelimChar[j]) { + nDelimIndex--; + break; + } + } + } + // A delimiter has been found so extract the latest query + if (nDelimIndex > -1) { + var nQueryStart = nDelimIndex + 1; + // Trim any white space from the beginning... + while(sQuery.charAt(nQueryStart) == " ") { + nQueryStart += 1; + } + // ...and save the rest of the string for later + this._sSavedQuery = sQuery.substring(0,nQueryStart); + // Here is the query itself + sQuery = sQuery.substr(nQueryStart); + } + else if(sQuery.indexOf(this._sSavedQuery) < 0){ + this._sSavedQuery = null; + } + } + + // Don't search queries that are too short + if (sQuery && (sQuery.length < this.minQueryLength) || (!sQuery && this.minQueryLength > 0)) { + if (this._nDelayID != -1) { + clearTimeout(this._nDelayID); + } + this._toggleContainer(false); + return; + } + + sQuery = encodeURIComponent(sQuery); + this._nDelayID = -1; // Reset timeout ID because request has been made + this.dataRequestEvent.fire(this, sQuery); + this.dataSource.getResults(this._populateList, sQuery, this); +}; + +/** + * Populates the array of <li> elements in the container with query + * results. This method is passed to YAHOO.widget.DataSource#getResults as a + * callback function so results from the DataSource instance are returned to the + * AutoComplete instance. + * + * @method _populateList + * @param sQuery {String} The query string. + * @param aResults {Object[]} An array of query result objects from the DataSource. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) { + if(aResults === null) { + oSelf.dataErrorEvent.fire(oSelf, sQuery); + } + if (!oSelf._bFocused || !aResults) { + return; + } + + var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1); + var contentStyle = oSelf._oContainer._oContent.style; + contentStyle.width = (!isOpera) ? null : ""; + contentStyle.height = (!isOpera) ? null : ""; + + var sCurQuery = decodeURIComponent(sQuery); + oSelf._sCurQuery = sCurQuery; + oSelf._bItemSelected = false; + + if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) { + oSelf._initList(); + } + + var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed); + oSelf._nDisplayedItems = nItems; + if (nItems > 0) { + oSelf._initContainerHelpers(); + var aItems = oSelf._aListItems; + + // Fill items with data + for(var i = nItems-1; i >= 0; i--) { + var oItemi = aItems[i]; + var oResultItemi = aResults[i]; + oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery); + oItemi.style.display = "list-item"; + oItemi._sResultKey = oResultItemi[0]; + oItemi._oResultData = oResultItemi; + + } + + // Empty out remaining items if any + for(var j = aItems.length-1; j >= nItems ; j--) { + var oItemj = aItems[j]; + oItemj.innerHTML = null; + oItemj.style.display = "none"; + oItemj._sResultKey = null; + oItemj._oResultData = null; + } + + if(oSelf.autoHighlight) { + // Go to the first item + var oFirstItem = aItems[0]; + oSelf._toggleHighlight(oFirstItem,"to"); + oSelf.itemArrowToEvent.fire(oSelf, oFirstItem); + oSelf._typeAhead(oFirstItem,sQuery); + } + else { + oSelf._oCurItem = null; + } + + // Expand the container + var ok = oSelf.doBeforeExpandContainer(oSelf._oTextbox, oSelf._oContainer, sQuery, aResults); + oSelf._toggleContainer(ok); + } + else { + oSelf._toggleContainer(false); + } + oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults); +}; + +/** + * When forceSelection is true and the user attempts + * leave the text input box without selecting an item from the query results, + * the user selection is cleared. + * + * @method _clearSelection + * @private + */ +YAHOO.widget.AutoComplete.prototype._clearSelection = function() { + var sValue = this._oTextbox.value; + var sChar = (this.delimChar) ? this.delimChar[0] : null; + var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1; + if(nIndex > -1) { + this._oTextbox.value = sValue.substring(0,nIndex); + } + else { + this._oTextbox.value = ""; + } + this._sSavedQuery = this._oTextbox.value; + + // Fire custom event + this.selectionEnforceEvent.fire(this); +}; + +/** + * Whether or not user-typed value in the text input box matches any of the + * query results. + * + * @method _textMatchesOption + * @return {Boolean} True if user-input text matches a result, false otherwise. + * @private + */ +YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() { + var foundMatch = false; + + for(var i = this._nDisplayedItems-1; i >= 0 ; i--) { + var oItem = this._aListItems[i]; + var sMatch = oItem._sResultKey.toLowerCase(); + if (sMatch == this._sCurQuery.toLowerCase()) { + foundMatch = true; + break; + } + } + return(foundMatch); +}; + +/** + * Updates in the text input box with the first query result as the user types, + * selecting the substring that the user has not typed. + * + * @method _typeAhead + * @param oItem {HTMLElement} The <li> element item whose data populates the input field. + * @param sQuery {String} Query string. + * @private + */ +YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) { + // Don't update if turned off + if (!this.typeAhead || (this._nKeyCode == 8)) { + return; + } + + var oTextbox = this._oTextbox; + var sValue = this._oTextbox.value; // any saved queries plus what user has typed + + // Don't update with type-ahead if text selection is not supported + if(!oTextbox.setSelectionRange && !oTextbox.createTextRange) { + return; + } + + // Select the portion of text that the user has not typed + var nStart = sValue.length; + this._updateValue(oItem); + var nEnd = oTextbox.value.length; + this._selectText(oTextbox,nStart,nEnd); + var sPrefill = oTextbox.value.substr(nStart,nEnd); + this.typeAheadEvent.fire(this,sQuery,sPrefill); +}; + +/** + * Selects text in the input field. + * + * @method _selectText + * @param oTextbox {HTMLElement} Text input box element in which to select text. + * @param nStart {Number} Starting index of text string to select. + * @param nEnd {Number} Ending index of text selection. + * @private + */ +YAHOO.widget.AutoComplete.prototype._selectText = function(oTextbox, nStart, nEnd) { + if (oTextbox.setSelectionRange) { // For Mozilla + oTextbox.setSelectionRange(nStart,nEnd); + } + else if (oTextbox.createTextRange) { // For IE + var oTextRange = oTextbox.createTextRange(); + oTextRange.moveStart("character", nStart); + oTextRange.moveEnd("character", nEnd-oTextbox.value.length); + oTextRange.select(); + } + else { + oTextbox.select(); + } +}; + +/** + * Syncs results container with its helpers. + * + * @method _toggleContainerHelpers + * @param bShow {Boolean} True if container is expanded, false if collapsed + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) { + var bFireEvent = false; + var width = this._oContainer._oContent.offsetWidth + "px"; + var height = this._oContainer._oContent.offsetHeight + "px"; + + if(this.useIFrame && this._oContainer._oIFrame) { + bFireEvent = true; + if(bShow) { + this._oContainer._oIFrame.style.width = width; + this._oContainer._oIFrame.style.height = height; + } + else { + this._oContainer._oIFrame.style.width = 0; + this._oContainer._oIFrame.style.height = 0; + } + } + if(this.useShadow && this._oContainer._oShadow) { + bFireEvent = true; + if(bShow) { + this._oContainer._oShadow.style.width = width; + this._oContainer._oShadow.style.height = height; + } + else { + this._oContainer._oShadow.style.width = 0; + this._oContainer._oShadow.style.height = 0; + } + } +}; + +/** + * Animates expansion or collapse of the container. + * + * @method _toggleContainer + * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) { + var oContainer = this._oContainer; + + // Implementer has container always open so don't mess with it + if(this.alwaysShowContainer && this._bContainerOpen) { + return; + } + + // Clear contents of container + if(!bShow) { + this._oContainer._oContent.scrollTop = 0; + var aItems = this._aListItems; + + if(aItems && (aItems.length > 0)) { + for(var i = aItems.length-1; i >= 0 ; i--) { + aItems[i].style.display = "none"; + } + } + + if (this._oCurItem) { + this._toggleHighlight(this._oCurItem,"from"); + } + + this._oCurItem = null; + this._nDisplayedItems = 0; + this._sCurQuery = null; + } + + // Container is already closed + if (!bShow && !this._bContainerOpen) { + oContainer._oContent.style.display = "none"; + return; + } + + // If animation is enabled... + var oAnim = this._oAnim; + if (oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) { + // If helpers need to be collapsed, do it right away... + // but if helpers need to be expanded, wait until after the container expands + if(!bShow) { + this._toggleContainerHelpers(bShow); + } + + if(oAnim.isAnimated()) { + oAnim.stop(); + } + + // Clone container to grab current size offscreen + var oClone = oContainer._oContent.cloneNode(true); + oContainer.appendChild(oClone); + oClone.style.top = "-9000px"; + oClone.style.display = "block"; + + // Current size of the container is the EXPANDED size + var wExp = oClone.offsetWidth; + var hExp = oClone.offsetHeight; + + // Calculate COLLAPSED sizes based on horiz and vert anim + var wColl = (this.animHoriz) ? 0 : wExp; + var hColl = (this.animVert) ? 0 : hExp; + + // Set animation sizes + oAnim.attributes = (bShow) ? + {width: { to: wExp }, height: { to: hExp }} : + {width: { to: wColl}, height: { to: hColl }}; + + // If opening anew, set to a collapsed size... + if(bShow && !this._bContainerOpen) { + oContainer._oContent.style.width = wColl+"px"; + oContainer._oContent.style.height = hColl+"px"; + } + // Else, set it to its last known size. + else { + oContainer._oContent.style.width = wExp+"px"; + oContainer._oContent.style.height = hExp+"px"; + } + + oContainer.removeChild(oClone); + oClone = null; + + var oSelf = this; + var onAnimComplete = function() { + // Finish the collapse + oAnim.onComplete.unsubscribeAll(); + + if(bShow) { + oSelf.containerExpandEvent.fire(oSelf); + } + else { + oContainer._oContent.style.display = "none"; + oSelf.containerCollapseEvent.fire(oSelf); + } + oSelf._toggleContainerHelpers(bShow); + }; + + // Display container and animate it + oContainer._oContent.style.display = "block"; + oAnim.onComplete.subscribe(onAnimComplete); + oAnim.animate(); + this._bContainerOpen = bShow; + } + // Else don't animate, just show or hide + else { + if(bShow) { + oContainer._oContent.style.display = "block"; + this.containerExpandEvent.fire(this); + } + else { + oContainer._oContent.style.display = "none"; + this.containerCollapseEvent.fire(this); + } + this._toggleContainerHelpers(bShow); + this._bContainerOpen = bShow; + } + +}; + +/** + * Toggles the highlight on or off for an item in the container, and also cleans + * up highlighting of any previous item. + * + * @method _toggleHighlight + * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior. + * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off. + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) { + var sHighlight = this.highlightClassName; + if(this._oCurItem) { + // Remove highlight from old item + YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight); + } + + if((sType == "to") && sHighlight) { + // Apply highlight to new item + YAHOO.util.Dom.addClass(oNewItem, sHighlight); + this._oCurItem = oNewItem; + } +}; + +/** + * Toggles the pre-highlight on or off for an item in the container. + * + * @method _togglePrehighlight + * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior. + * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off. + * @private + */ +YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) { + if(oNewItem == this._oCurItem) { + return; + } + + var sPrehighlight = this.prehighlightClassName; + if((sType == "mouseover") && sPrehighlight) { + // Apply prehighlight to new item + YAHOO.util.Dom.addClass(oNewItem, sPrehighlight); + } + else { + // Remove prehighlight from old item + YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight); + } +}; + +/** + * Updates the text input box value with selected query result. If a delimiter + * has been defined, then the value gets appended with the delimiter. + * + * @method _updateValue + * @param oItem {HTMLElement} The <li> element item with which to update the value. + * @private + */ +YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) { + var oTextbox = this._oTextbox; + var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null; + var sSavedQuery = this._sSavedQuery; + var sResultKey = oItem._sResultKey; + oTextbox.focus(); + + // First clear text field + oTextbox.value = ""; + // Grab data to put into text field + if(sDelimChar) { + if(sSavedQuery) { + oTextbox.value = sSavedQuery; + } + oTextbox.value += sResultKey + sDelimChar; + if(sDelimChar != " ") { + oTextbox.value += " "; + } + } + else { oTextbox.value = sResultKey; } + + // scroll to bottom of textarea if necessary + if(oTextbox.type == "textarea") { + oTextbox.scrollTop = oTextbox.scrollHeight; + } + + // move cursor to end + var end = oTextbox.value.length; + this._selectText(oTextbox,end,end); + + this._oCurItem = oItem; +}; + +/** + * Selects a result item from the container + * + * @method _selectItem + * @param oItem {HTMLElement} The selected <li> element item. + * @private + */ +YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) { + this._bItemSelected = true; + this._updateValue(oItem); + this._cancelIntervalDetection(this); + this.itemSelectEvent.fire(this, oItem, oItem._oResultData); + this._toggleContainer(false); +}; + +/** + * For values updated by type-ahead, the right arrow key jumps to the end + * of the textbox, otherwise the container is closed. + * + * @method _jumpSelection + * @private + */ +YAHOO.widget.AutoComplete.prototype._jumpSelection = function() { + if(!this.typeAhead) { + return; + } + else { + this._toggleContainer(false); + } +}; + +/** + * Triggered by up and down arrow keys, changes the current highlighted + * <li> element item. Scrolls container if necessary. + * + * @method _moveSelection + * @param nKeyCode {Number} Code of key pressed. + * @private + */ +YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) { + if(this._bContainerOpen) { + // Determine current item's id number + var oCurItem = this._oCurItem; + var nCurItemIndex = -1; + + if (oCurItem) { + nCurItemIndex = oCurItem._nItemIndex; + } + + var nNewItemIndex = (nKeyCode == 40) ? + (nCurItemIndex + 1) : (nCurItemIndex - 1); + + // Out of bounds + if (nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) { + return; + } + + if (oCurItem) { + // Unhighlight current item + this._toggleHighlight(oCurItem, "from"); + this.itemArrowFromEvent.fire(this, oCurItem); + } + if (nNewItemIndex == -1) { + // Go back to query (remove type-ahead string) + if(this.delimChar && this._sSavedQuery) { + if (!this._textMatchesOption()) { + this._oTextbox.value = this._sSavedQuery; + } + else { + this._oTextbox.value = this._sSavedQuery + this._sCurQuery; + } + } + else { + this._oTextbox.value = this._sCurQuery; + } + this._oCurItem = null; + return; + } + if (nNewItemIndex == -2) { + // Close container + this._toggleContainer(false); + return; + } + + var oNewItem = this._aListItems[nNewItemIndex]; + + // Scroll the container if necessary + var oContent = this._oContainer._oContent; + var scrollOn = ((YAHOO.util.Dom.getStyle(oContent,"overflow") == "auto") || + (YAHOO.util.Dom.getStyle(oContent,"overflowY") == "auto")); + if(scrollOn && (nNewItemIndex > -1) && + (nNewItemIndex < this._nDisplayedItems)) { + // User is keying down + if(nKeyCode == 40) { + // Bottom of selected item is below scroll area... + if((oNewItem.offsetTop+oNewItem.offsetHeight) > (oContent.scrollTop + oContent.offsetHeight)) { + // Set bottom of scroll area to bottom of selected item + oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight; + } + // Bottom of selected item is above scroll area... + else if((oNewItem.offsetTop+oNewItem.offsetHeight) < oContent.scrollTop) { + // Set top of selected item to top of scroll area + oContent.scrollTop = oNewItem.offsetTop; + + } + } + // User is keying up + else { + // Top of selected item is above scroll area + if(oNewItem.offsetTop < oContent.scrollTop) { + // Set top of scroll area to top of selected item + this._oContainer._oContent.scrollTop = oNewItem.offsetTop; + } + // Top of selected item is below scroll area + else if(oNewItem.offsetTop > (oContent.scrollTop + oContent.offsetHeight)) { + // Set bottom of selected item to bottom of scroll area + this._oContainer._oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight; + } + } + } + + this._toggleHighlight(oNewItem, "to"); + this.itemArrowToEvent.fire(this, oNewItem); + if(this.typeAhead) { + this._updateValue(oNewItem); + } + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles <li> element mouseover events in the container. + * + * @method _onItemMouseover + * @param v {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) { + if(oSelf.prehighlightClassName) { + oSelf._togglePrehighlight(this,"mouseover"); + } + else { + oSelf._toggleHighlight(this,"to"); + } + + oSelf.itemMouseOverEvent.fire(oSelf, this); +}; + +/** + * Handles <li> element mouseout events in the container. + * + * @method _onItemMouseout + * @param v {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) { + if(oSelf.prehighlightClassName) { + oSelf._togglePrehighlight(this,"mouseout"); + } + else { + oSelf._toggleHighlight(this,"from"); + } + + oSelf.itemMouseOutEvent.fire(oSelf, this); +}; + +/** + * Handles <li> element click events in the container. + * + * @method _onItemMouseclick + * @param v {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) { + // In case item has not been moused over + oSelf._toggleHighlight(this,"to"); + oSelf._selectItem(this); +}; + +/** + * Handles container mouseover events. + * + * @method _onContainerMouseover + * @param v {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) { + oSelf._bOverContainer = true; +}; + +/** + * Handles container mouseout events. + * + * @method _onContainerMouseout + * @param v {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) { + oSelf._bOverContainer = false; + // If container is still active + if(oSelf._oCurItem) { + oSelf._toggleHighlight(oSelf._oCurItem,"to"); + } +}; + +/** + * Handles container scroll events. + * + * @method _onContainerScroll + * @param v {HTMLEvent} The scroll event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) { + oSelf._oTextbox.focus(); +}; + +/** + * Handles container resize events. + * + * @method _onContainerResize + * @param v {HTMLEvent} The resize event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) { + oSelf._toggleContainerHelpers(oSelf._bContainerOpen); +}; + + +/** + * Handles textbox keydown events of functional keys, mainly for UI behavior. + * + * @method _onTextboxKeyDown + * @param v {HTMLEvent} The keydown event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) { + var nKeyCode = v.keyCode; + + switch (nKeyCode) { + case 9: // tab + if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + // select an item or clear out + if(oSelf._oCurItem) { + oSelf._selectItem(oSelf._oCurItem); + } + else { + oSelf._toggleContainer(false); + } + break; + case 13: // enter + if(oSelf._nKeyCode != nKeyCode) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + if(oSelf._oCurItem) { + oSelf._selectItem(oSelf._oCurItem); + } + else { + oSelf._toggleContainer(false); + } + break; + case 27: // esc + oSelf._toggleContainer(false); + return; + case 39: // right + oSelf._jumpSelection(); + break; + case 38: // up + YAHOO.util.Event.stopEvent(v); + oSelf._moveSelection(nKeyCode); + break; + case 40: // down + YAHOO.util.Event.stopEvent(v); + oSelf._moveSelection(nKeyCode); + break; + default: + break; + } +}; + +/** + * Handles textbox keypress events. + * @method _onTextboxKeyPress + * @param v {HTMLEvent} The keypress event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) { + var nKeyCode = v.keyCode; + + //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337) + var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1); + if(isMac) { + switch (nKeyCode) { + case 9: // tab + if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + break; + case 13: // enter + if(oSelf._nKeyCode != nKeyCode) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + break; + case 38: // up + case 40: // down + YAHOO.util.Event.stopEvent(v); + break; + default: + break; + } + } + + //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948) + // Korean IME detected + else if(nKeyCode == 229) { + oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500); + } +}; + +/** + * Handles textbox keyup events that trigger queries. + * + * @method _onTextboxKeyUp + * @param v {HTMLEvent} The keyup event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) { + // Check to see if any of the public properties have been updated + oSelf._initProps(); + + var nKeyCode = v.keyCode; + oSelf._nKeyCode = nKeyCode; + var sText = this.value; //string in textbox + + // Filter out chars that don't trigger queries + if (oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) { + return; + } + else { + oSelf.textboxKeyEvent.fire(oSelf, nKeyCode); + } + + // Set timeout on the request + if (oSelf.queryDelay > 0) { + var nDelayID = + setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000)); + + if (oSelf._nDelayID != -1) { + clearTimeout(oSelf._nDelayID); + } + + oSelf._nDelayID = nDelayID; + } + else { + // No delay so send request immediately + oSelf._sendQuery(sText); + } +}; + +/** + * Handles text input box receiving focus. + * + * @method _onTextboxFocus + * @param v {HTMLEvent} The focus event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) { + oSelf._oTextbox.setAttribute("autocomplete","off"); + oSelf._bFocused = true; + oSelf.textboxFocusEvent.fire(oSelf); +}; + +/** + * Handles text input box losing focus. + * + * @method _onTextboxBlur + * @param v {HTMLEvent} The focus event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) { + // Don't treat as a blur if it was a selection via mouse click + if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) { + // Current query needs to be validated + if(!oSelf._bItemSelected) { + if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && !oSelf._textMatchesOption())) { + if(oSelf.forceSelection) { + oSelf._clearSelection(); + } + else { + oSelf.unmatchedItemSelectEvent.fire(oSelf, oSelf._sCurQuery); + } + } + } + + if(oSelf._bContainerOpen) { + oSelf._toggleContainer(false); + } + oSelf._cancelIntervalDetection(oSelf); + oSelf._bFocused = false; + oSelf.textboxBlurEvent.fire(oSelf); + } +}; + +/** + * Handles form submission event. + * + * @method _onFormSubmit + * @param v {HTMLEvent} The submit event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onFormSubmit = function(v,oSelf) { + if(oSelf.allowBrowserAutocomplete) { + oSelf._oTextbox.setAttribute("autocomplete","on"); + } + else { + oSelf._oTextbox.setAttribute("autocomplete","off"); + } +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The DataSource classes manages sending a request and returning response from a live + * database. Supported data include local JavaScript arrays and objects and databases + * accessible via XHR connections. Supported response formats include JavaScript arrays, + * JSON, XML, and flat-file textual data. + * + * @class DataSource + * @constructor + */ +YAHOO.widget.DataSource = function() { + /* abstract class */ +}; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Error message for null data responses. + * + * @property ERROR_DATANULL + * @type String + * @static + * @final + */ +YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null"; + +/** + * Error message for data responses with parsing errors. + * + * @property ERROR_DATAPARSE + * @type String + * @static + * @final + */ +YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed"; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Max size of the local cache. Set to 0 to turn off caching. Caching is + * useful to reduce the number of server connections. Recommended only for data + * sources that return comprehensive results for queries or when stale data is + * not an issue. + * + * @property maxCacheEntries + * @type Number + * @default 15 + */ +YAHOO.widget.DataSource.prototype.maxCacheEntries = 15; + +/** + * Use this to equate cache matching with the type of matching done by your live + * data source. If caching is on and queryMatchContains is true, the cache + * returns results that "contain" the query string. By default, + * queryMatchContains is set to false, meaning the cache only returns results + * that "start with" the query string. + * + * @property queryMatchContains + * @type Boolean + * @default false + */ +YAHOO.widget.DataSource.prototype.queryMatchContains = false; + +/** + * Enables query subset matching. If caching is on and queryMatchSubset is + * true, substrings of queries will return matching cached results. For + * instance, if the first query is for "abc" susequent queries that start with + * "abc", like "abcd", will be queried against the cache, and not the live data + * source. Recommended only for DataSources that return comprehensive results + * for queries with very few characters. + * + * @property queryMatchSubset + * @type Boolean + * @default false + * + */ +YAHOO.widget.DataSource.prototype.queryMatchSubset = false; + +/** + * Enables query case-sensitivity matching. If caching is on and + * queryMatchCase is true, queries will only return results for case-sensitive + * matches. + * + * @property queryMatchCase + * @type Boolean + * @default false + */ +YAHOO.widget.DataSource.prototype.queryMatchCase = false; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance + */ +YAHOO.widget.DataSource.prototype.toString = function() { + return "DataSource " + this._sName; +}; + +/** + * Retrieves query results, first checking the local cache, then making the + * query request to the live data source as defined by the function doQuery. + * + * @method getResults + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) { + + // First look in cache + var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent); + + // Not in cache, so get results from server + if(aResults.length === 0) { + this.queryEvent.fire(this, oParent, sQuery); + this.doQuery(oCallbackFn, sQuery, oParent); + } +}; + +/** + * Abstract method implemented by subclasses to make a query to the live data + * source. Must call the callback function with the response returned from the + * query. Populates cache (if enabled). + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + /* override this */ +}; + +/** + * Flushes cache. + * + * @method flushCache + */ +YAHOO.widget.DataSource.prototype.flushCache = function() { + if(this._aCache) { + this._aCache = []; + } + if(this._aCacheHelper) { + this._aCacheHelper = []; + } + this.cacheFlushEvent.fire(this); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Fired when a query is made to the live data source. + * + * @event queryEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + */ +YAHOO.widget.DataSource.prototype.queryEvent = null; + +/** + * Fired when a query is made to the local cache. + * + * @event cacheQueryEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + */ +YAHOO.widget.DataSource.prototype.cacheQueryEvent = null; + +/** + * Fired when data is retrieved from the live data source. + * + * @event getResultsEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Array of result objects. + */ +YAHOO.widget.DataSource.prototype.getResultsEvent = null; + +/** + * Fired when data is retrieved from the local cache. + * + * @event getCachedResultsEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Array of result objects. + */ +YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null; + +/** + * Fired when an error is encountered with the live data source. + * + * @event dataErrorEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param sMsg {String} Error message string + */ +YAHOO.widget.DataSource.prototype.dataErrorEvent = null; + +/** + * Fired when the local cache is flushed. + * + * @event cacheFlushEvent + * @param oSelf {Object} The DataSource instance + */ +YAHOO.widget.DataSource.prototype.cacheFlushEvent = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataSource instances. + * + * @property _nIndex + * @type Number + * @private + * @static + */ +YAHOO.widget.DataSource._nIndex = 0; + +/** + * Name of DataSource instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.DataSource.prototype._sName = null; + +/** + * Local cache of data result objects indexed chronologically. + * + * @property _aCache + * @type Object[] + * @private + */ +YAHOO.widget.DataSource.prototype._aCache = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Initializes DataSource instance. + * + * @method _init + * @private + */ +YAHOO.widget.DataSource.prototype._init = function() { + // Validate and initialize public configs + var maxCacheEntries = this.maxCacheEntries; + if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) { + maxCacheEntries = 0; + } + // Initialize local cache + if(maxCacheEntries > 0 && !this._aCache) { + this._aCache = []; + } + + this._sName = "instance" + YAHOO.widget.DataSource._nIndex; + YAHOO.widget.DataSource._nIndex++; + + this.queryEvent = new YAHOO.util.CustomEvent("query", this); + this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this); + this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this); + this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this); + this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this); + this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this); +}; + +/** + * Adds a result object to the local cache, evicting the oldest element if the + * cache is full. Newer items will have higher indexes, the oldest item will have + * index of 0. + * + * @method _addCacheElem + * @param oResult {Object} Data result object, including array of results. + * @private + */ +YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) { + var aCache = this._aCache; + // Don't add if anything important is missing. + if(!aCache || !oResult || !oResult.query || !oResult.results) { + return; + } + + // If the cache is full, make room by removing from index=0 + if(aCache.length >= this.maxCacheEntries) { + aCache.shift(); + } + + // Add to cache, at the end of the array + aCache.push(oResult); +}; + +/** + * Queries the local cache for results. If query has been cached, the callback + * function is called with the results, and the cached is refreshed so that it + * is now the newest element. + * + * @method _doQueryCache + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + * @return aResults {Object[]} Array of results from local cache if found, otherwise null. + * @private + */ +YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) { + var aResults = []; + var bMatchFound = false; + var aCache = this._aCache; + var nCacheLength = (aCache) ? aCache.length : 0; + var bMatchContains = this.queryMatchContains; + + // If cache is enabled... + if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) { + this.cacheQueryEvent.fire(this, oParent, sQuery); + // If case is unimportant, normalize query now instead of in loops + if(!this.queryMatchCase) { + var sOrigQuery = sQuery; + sQuery = sQuery.toLowerCase(); + } + + // Loop through each cached element's query property... + for(var i = nCacheLength-1; i >= 0; i--) { + var resultObj = aCache[i]; + var aAllResultItems = resultObj.results; + // If case is unimportant, normalize match key for comparison + var matchKey = (!this.queryMatchCase) ? + encodeURIComponent(resultObj.query).toLowerCase(): + encodeURIComponent(resultObj.query); + + // If a cached match key exactly matches the query... + if(matchKey == sQuery) { + // Stash all result objects into aResult[] and stop looping through the cache. + bMatchFound = true; + aResults = aAllResultItems; + + // The matching cache element was not the most recent, + // so now we need to refresh the cache. + if(i != nCacheLength-1) { + // Remove element from its original location + aCache.splice(i,1); + // Add element as newest + this._addCacheElem(resultObj); + } + break; + } + // Else if this query is not an exact match and subset matching is enabled... + else if(this.queryMatchSubset) { + // Loop through substrings of each cached element's query property... + for(var j = sQuery.length-1; j >= 0 ; j--) { + var subQuery = sQuery.substr(0,j); + + // If a substring of a cached sQuery exactly matches the query... + if(matchKey == subQuery) { + bMatchFound = true; + + // Go through each cached result object to match against the query... + for(var k = aAllResultItems.length-1; k >= 0; k--) { + var aRecord = aAllResultItems[k]; + var sKeyIndex = (this.queryMatchCase) ? + encodeURIComponent(aRecord[0]).indexOf(sQuery): + encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery); + + // A STARTSWITH match is when the query is found at the beginning of the key string... + if((!bMatchContains && (sKeyIndex === 0)) || + // A CONTAINS match is when the query is found anywhere within the key string... + (bMatchContains && (sKeyIndex > -1))) { + // Stash a match into aResults[]. + aResults.unshift(aRecord); + } + } + + // Add the subset match result set object as the newest element to cache, + // and stop looping through the cache. + resultObj = {}; + resultObj.query = sQuery; + resultObj.results = aResults; + this._addCacheElem(resultObj); + break; + } + } + if(bMatchFound) { + break; + } + } + } + + // If there was a match, send along the results. + if(bMatchFound) { + this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults); + oCallbackFn(sOrigQuery, aResults, oParent); + } + } + return aResults; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return + * query results. + * + * @class DS_XHR + * @extends YAHOO.widget.DataSource + * @requires connection + * @constructor + * @param sScriptURI {String} Absolute or relative URI to script that returns query + * results as JSON, XML, or delimited flat-file data. + * @param aSchema {String[]} Data schema definition of results. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!aSchema || (aSchema.constructor != Array)) { + YAHOO.log("Could not instantiate XHR DataSource due to invalid arguments", "error", this.toString()); + return; + } + else { + this.schema = aSchema; + } + this.scriptURI = sScriptURI; + this._init(); + YAHOO.log("XHR DataSource initialized","info",this.toString()); +}; + +YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * JSON data type. + * + * @property TYPE_JSON + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_JSON = 0; + +/** + * XML data type. + * + * @property TYPE_XML + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_XML = 1; + +/** + * Flat-file data type. + * + * @property TYPE_FLAT + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_FLAT = 2; + +/** + * Error message for XHR failure. + * + * @property ERROR_DATAXHR + * @type String + * @static + * @final + */ +YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed"; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Alias to YUI Connection Manager. Allows implementers to specify their own + * subclasses of the YUI Connection Manager utility. + * + * @property connMgr + * @type Object + * @default YAHOO.util.Connect + */ +YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect; + +/** + * Number of milliseconds the XHR connection will wait for a server response. A + * a value of zero indicates the XHR connection will wait forever. Any value + * greater than zero will use the Connection utility's Auto-Abort feature. + * + * @property connTimeout + * @type Number + * @default 0 + */ +YAHOO.widget.DS_XHR.prototype.connTimeout = 0; + +/** + * Absolute or relative URI to script that returns query results. For instance, + * queries will be sent to <scriptURI>?<scriptQueryParam>=userinput + * + * @property scriptURI + * @type String + */ +YAHOO.widget.DS_XHR.prototype.scriptURI = null; + +/** + * Query string parameter name sent to scriptURI. For instance, queries will be + * sent to <scriptURI>?<scriptQueryParam>=userinput + * + * @property scriptQueryParam + * @type String + * @default "query" + */ +YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query"; + +/** + * String of key/value pairs to append to requests made to scriptURI. Define + * this string when you want to send additional query parameters to your script. + * When defined, queries will be sent to + * <scriptURI>?<scriptQueryParam>=userinput&<scriptQueryAppend> + * + * @property scriptQueryAppend + * @type String + * @default "" + */ +YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = ""; + +/** + * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML + * and YAHOO.widget.DS_XHR.TYPE_FLAT. + * + * @property responseType + * @type String + * @default YAHOO.widget.DS_XHR.TYPE_JSON + */ +YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON; + +/** + * String after which to strip results. If the results from the XHR are sent + * back as HTML, the gzip HTML comment appears at the end of the data and should + * be ignored. + * + * @property responseStripAfter + * @type String + * @default "\n<!-" + */ +YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n<!-"; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by scriptURI for results. Results are + * passed back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_XHR.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var isXML = (this.responseType == YAHOO.widget.DS_XHR.TYPE_XML); + var sUri = this.scriptURI+"?"+this.scriptQueryParam+"="+sQuery; + if(this.scriptQueryAppend.length > 0) { + sUri += "&" + this.scriptQueryAppend; + } + YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString()); + var oResponse = null; + + var oSelf = this; + /* + * Sets up ajax request callback + * + * @param {object} oReq HTTPXMLRequest object + * @private + */ + var responseSuccess = function(oResp) { + // Response ID does not match last made request ID. + if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", this.toString()); + return; + } +//DEBUG +/*YAHOO.log(oResp.responseXML.getElementsByTagName("Result"),'warn'); +for(var foo in oResp) { + YAHOO.log(foo + ": "+oResp[foo],'warn'); +} +YAHOO.log('responseXML.xml: '+oResp.responseXML.xml,'warn');*/ + if(!isXML) { + oResp = oResp.responseText; + } + else { + oResp = oResp.responseXML; + } + if(oResp === null) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", oSelf.toString()); + return; + } + + var aResults = oSelf.parseResponse(sQuery, oResp, oParent); + var resultObj = {}; + resultObj.query = decodeURIComponent(sQuery); + resultObj.results = aResults; + if(aResults === null) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE); + YAHOO.log(YAHOO.widget.DataSource.ERROR_DATAPARSE, "error", oSelf.toString()); + aResults = []; + } + else { + oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults); + oSelf._addCacheElem(resultObj); + } + oCallbackFn(sQuery, aResults, oParent); + }; + + var responseFailure = function(oResp) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR); + YAHOO.log(YAHOO.widget.DS_XHR.ERROR_DATAXHR + ": " + oResp.statusText, "error", oSelf.toString()); + return; + }; + + var oCallback = { + success:responseSuccess, + failure:responseFailure + }; + + if(!isNaN(this.connTimeout) && this.connTimeout > 0) { + oCallback.timeout = this.connTimeout; + } + + if(this._oConn) { + this.connMgr.abort(this._oConn); + } + + oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null); +}; + +/** + * Parses raw response data into an array of result objects. The result data key + * is always stashed in the [0] element of each result object. + * + * @method parseResponse + * @param sQuery {String} Query string. + * @param oResponse {Object} The raw response data to parse. + * @param oParent {Object} The object instance that has requested data. + * @returns {Object[]} Array of result objects. + */ +YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) { + var aSchema = this.schema; + var aResults = []; + var bError = false; + + // Strip out comment at the end of results + var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ? + oResponse.indexOf(this.responseStripAfter) : -1; + if(nEnd != -1) { + oResponse = oResponse.substring(0,nEnd); + } + + switch (this.responseType) { + case YAHOO.widget.DS_XHR.TYPE_JSON: + var jsonList; + // Divert KHTML clients from JSON lib + if(window.JSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the JSON utility if available + var jsonObjParsed = JSON.parse(oResponse); + if(!jsonObjParsed) { + bError = true; + break; + } + else { + try { + // eval is necessary here since aSchema[0] is of unknown depth + jsonList = eval("jsonObjParsed." + aSchema[0]); + } + catch(e) { + bError = true; + break; + } + } + } + else { + // Parse the JSON response as a string + try { + // Trim leading spaces + while (oResponse.substring(0,1) == " ") { + oResponse = oResponse.substring(1, oResponse.length); + } + + // Invalid JSON response + if(oResponse.indexOf("{") < 0) { + bError = true; + break; + } + + // Empty (but not invalid) JSON response + if(oResponse.indexOf("{}") === 0) { + break; + } + + // Turn the string into an object literal... + // ...eval is necessary here + var jsonObjRaw = eval("(" + oResponse + ")"); + if(!jsonObjRaw) { + bError = true; + break; + } + + // Grab the object member that contains an array of all reponses... + // ...eval is necessary here since aSchema[0] is of unknown depth + jsonList = eval("(jsonObjRaw." + aSchema[0]+")"); + } + catch(e) { + bError = true; + break; + } + } + + if(!jsonList) { + bError = true; + break; + } + + if(jsonList.constructor != Array) { + jsonList = [jsonList]; + } + + // Loop through the array of all responses... + for(var i = jsonList.length-1; i >= 0 ; i--) { + var aResultItem = []; + var jsonResult = jsonList[i]; + // ...and loop through each data field value of each response + for(var j = aSchema.length-1; j >= 1 ; j--) { + // ...and capture data into an array mapped according to the schema... + var dataFieldValue = jsonResult[aSchema[j]]; + if(!dataFieldValue) { + dataFieldValue = ""; + } + //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString()); + aResultItem.unshift(dataFieldValue); + } + // If schema isn't well defined, pass along the entire result object + if(aResultItem.length == 1) { + aResultItem.push(jsonResult); + } + // Capture the array of data field values in an array of results + aResults.unshift(aResultItem); + } + break; + case YAHOO.widget.DS_XHR.TYPE_XML: + // Get the collection of results + var xmlList = oResponse.getElementsByTagName(aSchema[0]); + if(!xmlList) { + bError = true; + break; + } + // Loop through each result + for(var k = xmlList.length-1; k >= 0 ; k--) { + var result = xmlList.item(k); + //YAHOO.log("Result"+k+" is "+result.attributes.item(0).firstChild.nodeValue,"debug",this.toString()); + var aFieldSet = []; + // Loop through each data field in each result using the schema + for(var m = aSchema.length-1; m >= 1 ; m--) { + //YAHOO.log(aSchema[m]+" is "+result.attributes.getNamedItem(aSchema[m]).firstChild.nodeValue); + var sValue = null; + // Values may be held in an attribute... + var xmlAttr = result.attributes.getNamedItem(aSchema[m]); + if(xmlAttr) { + sValue = xmlAttr.value; + //YAHOO.log("Attr value is "+sValue,"debug",this.toString()); + } + // ...or in a node + else{ + var xmlNode = result.getElementsByTagName(aSchema[m]); + if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) { + sValue = xmlNode.item(0).firstChild.nodeValue; + //YAHOO.log("Node value is "+sValue,"debug",this.toString()); + } + else { + sValue = ""; + //YAHOO.log("Value not found","debug",this.toString()); + } + } + // Capture the schema-mapped data field values into an array + aFieldSet.unshift(sValue); + } + // Capture each array of values into an array of results + aResults.unshift(aFieldSet); + } + break; + case YAHOO.widget.DS_XHR.TYPE_FLAT: + if(oResponse.length > 0) { + // Delete the last line delimiter at the end of the data if it exists + var newLength = oResponse.length-aSchema[0].length; + if(oResponse.substr(newLength) == aSchema[0]) { + oResponse = oResponse.substr(0, newLength); + } + var aRecords = oResponse.split(aSchema[0]); + for(var n = aRecords.length-1; n >= 0; n--) { + aResults[n] = aRecords[n].split(aSchema[1]); + } + } + break; + default: + break; + } + sQuery = null; + oResponse = null; + oParent = null; + if(bError) { + return null; + } + else { + return aResults; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * XHR connection object. + * + * @property _oConn + * @type Object + * @private + */ +YAHOO.widget.DS_XHR.prototype._oConn = null; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using a native Javascript function as + * its live data source. + * + * @class DS_JSFunction + * @constructor + * @extends YAHOO.widget.DataSource + * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!oFunction || (oFunction.constructor != Function)) { + YAHOO.log("Could not instantiate JSFunction DataSource due to invalid arguments", "error", this.toString()); + return; + } + else { + this.dataFunction = oFunction; + this._init(); + YAHOO.log("JS Function DataSource initialized","info",this.toString()); + } +}; + +YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * In-memory Javascript function that returns query results. + * + * @property dataFunction + * @type HTMLFunction + */ +YAHOO.widget.DS_JSFunction.prototype.dataFunction = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by function for results. Results are + * passed back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var oFunction = this.dataFunction; + var aResults = []; + + aResults = oFunction(sQuery); + if(aResults === null) { + this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", this.toString()); + return; + } + + var resultObj = {}; + resultObj.query = decodeURIComponent(sQuery); + resultObj.results = aResults; + this._addCacheElem(resultObj); + + this.getResultsEvent.fire(this, oParent, sQuery, aResults); + oCallbackFn(sQuery, aResults, oParent); + return; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using a native Javascript array as + * its live data source. + * + * @class DS_JSArray + * @constructor + * @extends YAHOO.widget.DataSource + * @param aData {String[]} In-memory Javascript array of simple string data. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_JSArray = function(aData, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!aData || (aData.constructor != Array)) { + YAHOO.log("Could not instantiate JSArray DataSource due to invalid arguments", "error", this.toString()); + return; + } + else { + this.data = aData; + this._init(); + YAHOO.log("JS Array DataSource initialized","info",this.toString()); + } +}; + +YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * In-memory Javascript array of strings. + * + * @property data + * @type Array + */ +YAHOO.widget.DS_JSArray.prototype.data = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by data for results. Results are passed + * back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var aData = this.data; // the array + var aResults = []; // container for results + var bMatchFound = false; + var bMatchContains = this.queryMatchContains; + if(sQuery) { + if(!this.queryMatchCase) { + sQuery = sQuery.toLowerCase(); + } + + // Loop through each element of the array... + // which can be a string or an array of strings + for(var i = aData.length-1; i >= 0; i--) { + var aDataset = []; + + if(aData[i]) { + if(aData[i].constructor == String) { + aDataset[0] = aData[i]; + } + else if(aData[i].constructor == Array) { + aDataset = aData[i]; + } + } + + if(aDataset[0] && (aDataset[0].constructor == String)) { + var sKeyIndex = (this.queryMatchCase) ? + encodeURIComponent(aDataset[0]).indexOf(sQuery): + encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery); + + // A STARTSWITH match is when the query is found at the beginning of the key string... + if((!bMatchContains && (sKeyIndex === 0)) || + // A CONTAINS match is when the query is found anywhere within the key string... + (bMatchContains && (sKeyIndex > -1))) { + // Stash a match into aResults[]. + aResults.unshift(aDataset); + } + } + } + } + + this.getResultsEvent.fire(this, oParent, sQuery, aResults); + oCallbackFn(sQuery, aResults, oParent); +}; + +YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js new file mode 100644 index 0000000..f15e718 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js @@ -0,0 +1,183 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.widget.AutoComplete=function(elInput,elContainer,oDataSource,oConfigs){if(elInput&&elContainer&&oDataSource){if(oDataSource&&(oDataSource instanceof YAHOO.widget.DataSource)){this.dataSource=oDataSource;} +else{return;} +if(YAHOO.util.Dom.inDocument(elInput)){if(typeof elInput=="string"){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+elInput;this._oTextbox=document.getElementById(elInput);} +else{this._sName=(elInput.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+elInput.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._oTextbox=elInput;}} +else{return;} +if(YAHOO.util.Dom.inDocument(elContainer)){if(typeof elContainer=="string"){this._oContainer=document.getElementById(elContainer);} +else{this._oContainer=elContainer;} +if(this._oContainer.style.display=="none"){}} +else{return;} +if(typeof oConfigs=="object"){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}} +this._initContainer();this._initProps();this._initList();this._initContainerHelpers();var oSelf=this;var oTextbox=this._oTextbox;var oContent=this._oContainer._oContent;YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf);YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf);YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf);YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf);YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf);YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf);if(oTextbox.form){YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf);} +YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);oTextbox.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;} +else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.5;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListItems=function(){return this._aListItems;};YAHOO.widget.AutoComplete.prototype.getListItemData=function(oListItem){if(oListItem._oResultData){return oListItem._oResultData;} +else{return false;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(sHeader){if(sHeader){if(this._oContainer._oContent._oHeader){this._oContainer._oContent._oHeader.innerHTML=sHeader;this._oContainer._oContent._oHeader.style.display="block";}} +else{this._oContainer._oContent._oHeader.innerHTML="";this._oContainer._oContent._oHeader.style.display="none";}};YAHOO.widget.AutoComplete.prototype.setFooter=function(sFooter){if(sFooter){if(this._oContainer._oContent._oFooter){this._oContainer._oContent._oFooter.innerHTML=sFooter;this._oContainer._oContent._oFooter.style.display="block";}} +else{this._oContainer._oContent._oFooter.innerHTML="";this._oContainer._oContent._oFooter.style.display="none";}};YAHOO.widget.AutoComplete.prototype.setBody=function(sBody){if(sBody){if(this._oContainer._oContent._oBody){this._oContainer._oContent._oBody.innerHTML=sBody;this._oContainer._oContent._oBody.style.display="block";this._oContainer._oContent.style.display="block";}} +else{this._oContainer._oContent._oBody.innerHTML="";this._oContainer._oContent.style.display="none";} +this._maxResultsDisplayed=0;};YAHOO.widget.AutoComplete.prototype.formatResult=function(oResultItem,sQuery){var sResult=oResultItem[0];if(sResult){return sResult;} +else{return"";}};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(oResultItem,sQuery){return true;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(sQuery){this._sendQuery(sQuery);};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._oTextbox=null;YAHOO.widget.AutoComplete.prototype._bFocused=true;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._oContainer=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._aListItems=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sSavedQuery=null;YAHOO.widget.AutoComplete.prototype._oCurItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var minQueryLength=this.minQueryLength;if(isNaN(minQueryLength)||(minQueryLength<1)){minQueryLength=1;} +var maxResultsDisplayed=this.maxResultsDisplayed;if(isNaN(this.maxResultsDisplayed)||(this.maxResultsDisplayed<1)){this.maxResultsDisplayed=10;} +var queryDelay=this.queryDelay;if(isNaN(this.queryDelay)||(this.queryDelay<0)){this.queryDelay=0.5;} +var aDelimChar=(this.delimChar)?this.delimChar:null;if(aDelimChar){if(typeof aDelimChar=="string"){this.delimChar=[aDelimChar];} +else if(aDelimChar.constructor!=Array){this.delimChar=null;}} +var animSpeed=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(isNaN(animSpeed)||(animSpeed<0)){animSpeed=0.3;} +if(!this._oAnim){oAnim=new YAHOO.util.Anim(this._oContainer._oContent,{},this.animSpeed);this._oAnim=oAnim;} +else{this._oAnim.duration=animSpeed;}} +if(this.forceSelection&&this.delimChar){}};YAHOO.widget.AutoComplete.prototype._initContainerHelpers=function(){if(this.useShadow&&!this._oContainer._oShadow){var oShadow=document.createElement("div");oShadow.className="yui-ac-shadow";this._oContainer._oShadow=this._oContainer.appendChild(oShadow);} +if(this.useIFrame&&!this._oContainer._oIFrame){var oIFrame=document.createElement("iframe");oIFrame.src=this._iFrameSrc;oIFrame.frameBorder=0;oIFrame.scrolling="no";oIFrame.style.position="absolute";oIFrame.style.width="100%";oIFrame.style.height="100%";oIFrame.tabIndex=-1;this._oContainer._oIFrame=this._oContainer.appendChild(oIFrame);}};YAHOO.widget.AutoComplete.prototype._initContainer=function(){if(!this._oContainer._oContent){var oContent=document.createElement("div");oContent.className="yui-ac-content";oContent.style.display="none";this._oContainer._oContent=this._oContainer.appendChild(oContent);var oHeader=document.createElement("div");oHeader.className="yui-ac-hd";oHeader.style.display="none";this._oContainer._oContent._oHeader=this._oContainer._oContent.appendChild(oHeader);var oBody=document.createElement("div");oBody.className="yui-ac-bd";this._oContainer._oContent._oBody=this._oContainer._oContent.appendChild(oBody);var oFooter=document.createElement("div");oFooter.className="yui-ac-ft";oFooter.style.display="none";this._oContainer._oContent._oFooter=this._oContainer._oContent.appendChild(oFooter);} +else{}};YAHOO.widget.AutoComplete.prototype._initList=function(){this._aListItems=[];while(this._oContainer._oContent._oBody.hasChildNodes()){var oldListItems=this.getListItems();if(oldListItems){for(var oldi=oldListItems.length-1;oldi>=0;i--){oldListItems[oldi]=null;}} +this._oContainer._oContent._oBody.innerHTML="";} +var oList=document.createElement("ul");oList=this._oContainer._oContent._oBody.appendChild(oList);for(var i=0;i<this.maxResultsDisplayed;i++){var oItem=document.createElement("li");oItem=oList.appendChild(oItem);this._aListItems[i]=oItem;this._initListItem(oItem,i);} +this._maxResultsDisplayed=this.maxResultsDisplayed;};YAHOO.widget.AutoComplete.prototype._initListItem=function(oItem,nItemIndex){var oSelf=this;oItem.style.display="none";oItem._nItemIndex=nItemIndex;oItem.mouseover=oItem.mouseout=oItem.onclick=null;YAHOO.util.Event.addListener(oItem,"mouseover",oSelf._onItemMouseover,oSelf);YAHOO.util.Event.addListener(oItem,"mouseout",oSelf._onItemMouseout,oSelf);YAHOO.util.Event.addListener(oItem,"click",oSelf._onItemMouseclick,oSelf);};YAHOO.widget.AutoComplete.prototype._onIMEDetected=function(oSelf){oSelf._enableIntervalDetection();};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var currValue=this._oTextbox.value;var lastValue=this._sLastTextboxValue;if(currValue!=lastValue){this._sLastTextboxValue=currValue;this._sendQuery(currValue);}};YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection=function(oSelf){if(oSelf._queryInterval){clearInterval(oSelf._queryInterval);}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(nKeyCode){if((nKeyCode==9)||(nKeyCode==13)||(nKeyCode==16)||(nKeyCode==17)||(nKeyCode>=18&&nKeyCode<=20)||(nKeyCode==27)||(nKeyCode>=33&&nKeyCode<=35)||(nKeyCode>=36&&nKeyCode<=38)||(nKeyCode==40)||(nKeyCode>=44&&nKeyCode<=45)){return true;} +return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(sQuery){if(this.minQueryLength==-1){this._toggleContainer(false);return;} +var aDelimChar=(this.delimChar)?this.delimChar:null;if(aDelimChar){var nDelimIndex=-1;for(var i=aDelimChar.length-1;i>=0;i--){var nNewIndex=sQuery.lastIndexOf(aDelimChar[i]);if(nNewIndex>nDelimIndex){nDelimIndex=nNewIndex;}} +if(aDelimChar[i]==" "){for(var j=aDelimChar.length-1;j>=0;j--){if(sQuery[nDelimIndex-1]==aDelimChar[j]){nDelimIndex--;break;}}} +if(nDelimIndex>-1){var nQueryStart=nDelimIndex+1;while(sQuery.charAt(nQueryStart)==" "){nQueryStart+=1;} +this._sSavedQuery=sQuery.substring(0,nQueryStart);sQuery=sQuery.substr(nQueryStart);} +else if(sQuery.indexOf(this._sSavedQuery)<0){this._sSavedQuery=null;}} +if(sQuery&&(sQuery.length<this.minQueryLength)||(!sQuery&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID);} +this._toggleContainer(false);return;} +sQuery=encodeURIComponent(sQuery);this._nDelayID=-1;this.dataRequestEvent.fire(this,sQuery);this.dataSource.getResults(this._populateList,sQuery,this);};YAHOO.widget.AutoComplete.prototype._populateList=function(sQuery,aResults,oSelf){if(aResults===null){oSelf.dataErrorEvent.fire(oSelf,sQuery);} +if(!oSelf._bFocused||!aResults){return;} +var isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);var contentStyle=oSelf._oContainer._oContent.style;contentStyle.width=(!isOpera)?null:"";contentStyle.height=(!isOpera)?null:"";var sCurQuery=decodeURIComponent(sQuery);oSelf._sCurQuery=sCurQuery;oSelf._bItemSelected=false;if(oSelf._maxResultsDisplayed!=oSelf.maxResultsDisplayed){oSelf._initList();} +var nItems=Math.min(aResults.length,oSelf.maxResultsDisplayed);oSelf._nDisplayedItems=nItems;if(nItems>0){oSelf._initContainerHelpers();var aItems=oSelf._aListItems;for(var i=nItems-1;i>=0;i--){var oItemi=aItems[i];var oResultItemi=aResults[i];oItemi.innerHTML=oSelf.formatResult(oResultItemi,sCurQuery);oItemi.style.display="list-item";oItemi._sResultKey=oResultItemi[0];oItemi._oResultData=oResultItemi;} +for(var j=aItems.length-1;j>=nItems;j--){var oItemj=aItems[j];oItemj.innerHTML=null;oItemj.style.display="none";oItemj._sResultKey=null;oItemj._oResultData=null;} +if(oSelf.autoHighlight){var oFirstItem=aItems[0];oSelf._toggleHighlight(oFirstItem,"to");oSelf.itemArrowToEvent.fire(oSelf,oFirstItem);oSelf._typeAhead(oFirstItem,sQuery);} +else{oSelf._oCurItem=null;} +var ok=oSelf.doBeforeExpandContainer(oSelf._oTextbox,oSelf._oContainer,sQuery,aResults);oSelf._toggleContainer(ok);} +else{oSelf._toggleContainer(false);} +oSelf.dataReturnEvent.fire(oSelf,sQuery,aResults);};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var sValue=this._oTextbox.value;var sChar=(this.delimChar)?this.delimChar[0]:null;var nIndex=(sChar)?sValue.lastIndexOf(sChar,sValue.length-2):-1;if(nIndex>-1){this._oTextbox.value=sValue.substring(0,nIndex);} +else{this._oTextbox.value="";} +this._sSavedQuery=this._oTextbox.value;this.selectionEnforceEvent.fire(this);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var foundMatch=false;for(var i=this._nDisplayedItems-1;i>=0;i--){var oItem=this._aListItems[i];var sMatch=oItem._sResultKey.toLowerCase();if(sMatch==this._sCurQuery.toLowerCase()){foundMatch=true;break;}} +return(foundMatch);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(oItem,sQuery){if(!this.typeAhead||(this._nKeyCode==8)){return;} +var oTextbox=this._oTextbox;var sValue=this._oTextbox.value;if(!oTextbox.setSelectionRange&&!oTextbox.createTextRange){return;} +var nStart=sValue.length;this._updateValue(oItem);var nEnd=oTextbox.value.length;this._selectText(oTextbox,nStart,nEnd);var sPrefill=oTextbox.value.substr(nStart,nEnd);this.typeAheadEvent.fire(this,sQuery,sPrefill);};YAHOO.widget.AutoComplete.prototype._selectText=function(oTextbox,nStart,nEnd){if(oTextbox.setSelectionRange){oTextbox.setSelectionRange(nStart,nEnd);} +else if(oTextbox.createTextRange){var oTextRange=oTextbox.createTextRange();oTextRange.moveStart("character",nStart);oTextRange.moveEnd("character",nEnd-oTextbox.value.length);oTextRange.select();} +else{oTextbox.select();}};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(bShow){var bFireEvent=false;var width=this._oContainer._oContent.offsetWidth+"px";var height=this._oContainer._oContent.offsetHeight+"px";if(this.useIFrame&&this._oContainer._oIFrame){bFireEvent=true;if(bShow){this._oContainer._oIFrame.style.width=width;this._oContainer._oIFrame.style.height=height;} +else{this._oContainer._oIFrame.style.width=0;this._oContainer._oIFrame.style.height=0;}} +if(this.useShadow&&this._oContainer._oShadow){bFireEvent=true;if(bShow){this._oContainer._oShadow.style.width=width;this._oContainer._oShadow.style.height=height;} +else{this._oContainer._oShadow.style.width=0;this._oContainer._oShadow.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(bShow){var oContainer=this._oContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return;} +if(!bShow){this._oContainer._oContent.scrollTop=0;var aItems=this._aListItems;if(aItems&&(aItems.length>0)){for(var i=aItems.length-1;i>=0;i--){aItems[i].style.display="none";}} +if(this._oCurItem){this._toggleHighlight(this._oCurItem,"from");} +this._oCurItem=null;this._nDisplayedItems=0;this._sCurQuery=null;} +if(!bShow&&!this._bContainerOpen){oContainer._oContent.style.display="none";return;} +var oAnim=this._oAnim;if(oAnim&&oAnim.getEl()&&(this.animHoriz||this.animVert)){if(!bShow){this._toggleContainerHelpers(bShow);} +if(oAnim.isAnimated()){oAnim.stop();} +var oClone=oContainer._oContent.cloneNode(true);oContainer.appendChild(oClone);oClone.style.top="-9000px";oClone.style.display="block";var wExp=oClone.offsetWidth;var hExp=oClone.offsetHeight;var wColl=(this.animHoriz)?0:wExp;var hColl=(this.animVert)?0:hExp;oAnim.attributes=(bShow)?{width:{to:wExp},height:{to:hExp}}:{width:{to:wColl},height:{to:hColl}};if(bShow&&!this._bContainerOpen){oContainer._oContent.style.width=wColl+"px";oContainer._oContent.style.height=hColl+"px";} +else{oContainer._oContent.style.width=wExp+"px";oContainer._oContent.style.height=hExp+"px";} +oContainer.removeChild(oClone);oClone=null;var oSelf=this;var onAnimComplete=function(){oAnim.onComplete.unsubscribeAll();if(bShow){oSelf.containerExpandEvent.fire(oSelf);} +else{oContainer._oContent.style.display="none";oSelf.containerCollapseEvent.fire(oSelf);} +oSelf._toggleContainerHelpers(bShow);};oContainer._oContent.style.display="block";oAnim.onComplete.subscribe(onAnimComplete);oAnim.animate();this._bContainerOpen=bShow;} +else{if(bShow){oContainer._oContent.style.display="block";this.containerExpandEvent.fire(this);} +else{oContainer._oContent.style.display="none";this.containerCollapseEvent.fire(this);} +this._toggleContainerHelpers(bShow);this._bContainerOpen=bShow;}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(oNewItem,sType){var sHighlight=this.highlightClassName;if(this._oCurItem){YAHOO.util.Dom.removeClass(this._oCurItem,sHighlight);} +if((sType=="to")&&sHighlight){YAHOO.util.Dom.addClass(oNewItem,sHighlight);this._oCurItem=oNewItem;}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(oNewItem,sType){if(oNewItem==this._oCurItem){return;} +var sPrehighlight=this.prehighlightClassName;if((sType=="mouseover")&&sPrehighlight){YAHOO.util.Dom.addClass(oNewItem,sPrehighlight);} +else{YAHOO.util.Dom.removeClass(oNewItem,sPrehighlight);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(oItem){var oTextbox=this._oTextbox;var sDelimChar=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var sSavedQuery=this._sSavedQuery;var sResultKey=oItem._sResultKey;oTextbox.focus();oTextbox.value="";if(sDelimChar){if(sSavedQuery){oTextbox.value=sSavedQuery;} +oTextbox.value+=sResultKey+sDelimChar;if(sDelimChar!=" "){oTextbox.value+=" ";}} +else{oTextbox.value=sResultKey;} +if(oTextbox.type=="textarea"){oTextbox.scrollTop=oTextbox.scrollHeight;} +var end=oTextbox.value.length;this._selectText(oTextbox,end,end);this._oCurItem=oItem;};YAHOO.widget.AutoComplete.prototype._selectItem=function(oItem){this._bItemSelected=true;this._updateValue(oItem);this._cancelIntervalDetection(this);this.itemSelectEvent.fire(this,oItem,oItem._oResultData);this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(!this.typeAhead){return;} +else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(nKeyCode){if(this._bContainerOpen){var oCurItem=this._oCurItem;var nCurItemIndex=-1;if(oCurItem){nCurItemIndex=oCurItem._nItemIndex;} +var nNewItemIndex=(nKeyCode==40)?(nCurItemIndex+1):(nCurItemIndex-1);if(nNewItemIndex<-2||nNewItemIndex>=this._nDisplayedItems){return;} +if(oCurItem){this._toggleHighlight(oCurItem,"from");this.itemArrowFromEvent.fire(this,oCurItem);} +if(nNewItemIndex==-1){if(this.delimChar&&this._sSavedQuery){if(!this._textMatchesOption()){this._oTextbox.value=this._sSavedQuery;} +else{this._oTextbox.value=this._sSavedQuery+this._sCurQuery;}} +else{this._oTextbox.value=this._sCurQuery;} +this._oCurItem=null;return;} +if(nNewItemIndex==-2){this._toggleContainer(false);return;} +var oNewItem=this._aListItems[nNewItemIndex];var oContent=this._oContainer._oContent;var scrollOn=((YAHOO.util.Dom.getStyle(oContent,"overflow")=="auto")||(YAHOO.util.Dom.getStyle(oContent,"overflowY")=="auto"));if(scrollOn&&(nNewItemIndex>-1)&&(nNewItemIndex<this._nDisplayedItems)){if(nKeyCode==40){if((oNewItem.offsetTop+oNewItem.offsetHeight)>(oContent.scrollTop+oContent.offsetHeight)){oContent.scrollTop=(oNewItem.offsetTop+oNewItem.offsetHeight)-oContent.offsetHeight;} +else if((oNewItem.offsetTop+oNewItem.offsetHeight)<oContent.scrollTop){oContent.scrollTop=oNewItem.offsetTop;}} +else{if(oNewItem.offsetTop<oContent.scrollTop){this._oContainer._oContent.scrollTop=oNewItem.offsetTop;} +else if(oNewItem.offsetTop>(oContent.scrollTop+oContent.offsetHeight)){this._oContainer._oContent.scrollTop=(oNewItem.offsetTop+oNewItem.offsetHeight)-oContent.offsetHeight;}}} +this._toggleHighlight(oNewItem,"to");this.itemArrowToEvent.fire(this,oNewItem);if(this.typeAhead){this._updateValue(oNewItem);}}};YAHOO.widget.AutoComplete.prototype._onItemMouseover=function(v,oSelf){if(oSelf.prehighlightClassName){oSelf._togglePrehighlight(this,"mouseover");} +else{oSelf._toggleHighlight(this,"to");} +oSelf.itemMouseOverEvent.fire(oSelf,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseout=function(v,oSelf){if(oSelf.prehighlightClassName){oSelf._togglePrehighlight(this,"mouseout");} +else{oSelf._toggleHighlight(this,"from");} +oSelf.itemMouseOutEvent.fire(oSelf,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseclick=function(v,oSelf){oSelf._toggleHighlight(this,"to");oSelf._selectItem(this);};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(v,oSelf){oSelf._bOverContainer=true;};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(v,oSelf){oSelf._bOverContainer=false;if(oSelf._oCurItem){oSelf._toggleHighlight(oSelf._oCurItem,"to");}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(v,oSelf){oSelf._oTextbox.focus();};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(v,oSelf){oSelf._toggleContainerHelpers(oSelf._bContainerOpen);};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(v,oSelf){var nKeyCode=v.keyCode;switch(nKeyCode){case 9:if(oSelf.delimChar&&(oSelf._nKeyCode!=nKeyCode)){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}} +if(oSelf._oCurItem){oSelf._selectItem(oSelf._oCurItem);} +else{oSelf._toggleContainer(false);} +break;case 13:if(oSelf._nKeyCode!=nKeyCode){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}} +if(oSelf._oCurItem){oSelf._selectItem(oSelf._oCurItem);} +else{oSelf._toggleContainer(false);} +break;case 27:oSelf._toggleContainer(false);return;case 39:oSelf._jumpSelection();break;case 38:YAHOO.util.Event.stopEvent(v);oSelf._moveSelection(nKeyCode);break;case 40:YAHOO.util.Event.stopEvent(v);oSelf._moveSelection(nKeyCode);break;default:break;}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(v,oSelf){var nKeyCode=v.keyCode;var isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);if(isMac){switch(nKeyCode){case 9:if(oSelf.delimChar&&(oSelf._nKeyCode!=nKeyCode)){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}} +break;case 13:if(oSelf._nKeyCode!=nKeyCode){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}} +break;case 38:case 40:YAHOO.util.Event.stopEvent(v);break;default:break;}} +else if(nKeyCode==229){oSelf._queryInterval=setInterval(function(){oSelf._onIMEDetected(oSelf);},500);}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(v,oSelf){oSelf._initProps();var nKeyCode=v.keyCode;oSelf._nKeyCode=nKeyCode;var sText=this.value;if(oSelf._isIgnoreKey(nKeyCode)||(sText.toLowerCase()==oSelf._sCurQuery)){return;} +else{oSelf.textboxKeyEvent.fire(oSelf,nKeyCode);} +if(oSelf.queryDelay>0){var nDelayID=setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay*1000));if(oSelf._nDelayID!=-1){clearTimeout(oSelf._nDelayID);} +oSelf._nDelayID=nDelayID;} +else{oSelf._sendQuery(sText);}};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(v,oSelf){oSelf._oTextbox.setAttribute("autocomplete","off");oSelf._bFocused=true;oSelf.textboxFocusEvent.fire(oSelf);};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(v,oSelf){if(!oSelf._bOverContainer||(oSelf._nKeyCode==9)){if(!oSelf._bItemSelected){if(!oSelf._bContainerOpen||(oSelf._bContainerOpen&&!oSelf._textMatchesOption())){if(oSelf.forceSelection){oSelf._clearSelection();} +else{oSelf.unmatchedItemSelectEvent.fire(oSelf,oSelf._sCurQuery);}}} +if(oSelf._bContainerOpen){oSelf._toggleContainer(false);} +oSelf._cancelIntervalDetection(oSelf);oSelf._bFocused=false;oSelf.textboxBlurEvent.fire(oSelf);}};YAHOO.widget.AutoComplete.prototype._onFormSubmit=function(v,oSelf){if(oSelf.allowBrowserAutocomplete){oSelf._oTextbox.setAttribute("autocomplete","on");} +else{oSelf._oTextbox.setAttribute("autocomplete","off");}};YAHOO.widget.DataSource=function(){};YAHOO.widget.DataSource.ERROR_DATANULL="Response data was null";YAHOO.widget.DataSource.ERROR_DATAPARSE="Response data could not be parsed";YAHOO.widget.DataSource.prototype.maxCacheEntries=15;YAHOO.widget.DataSource.prototype.queryMatchContains=false;YAHOO.widget.DataSource.prototype.queryMatchSubset=false;YAHOO.widget.DataSource.prototype.queryMatchCase=false;YAHOO.widget.DataSource.prototype.toString=function(){return"DataSource "+this._sName;};YAHOO.widget.DataSource.prototype.getResults=function(oCallbackFn,sQuery,oParent){var aResults=this._doQueryCache(oCallbackFn,sQuery,oParent);if(aResults.length===0){this.queryEvent.fire(this,oParent,sQuery);this.doQuery(oCallbackFn,sQuery,oParent);}};YAHOO.widget.DataSource.prototype.doQuery=function(oCallbackFn,sQuery,oParent){};YAHOO.widget.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[];} +if(this._aCacheHelper){this._aCacheHelper=[];} +this.cacheFlushEvent.fire(this);};YAHOO.widget.DataSource.prototype.queryEvent=null;YAHOO.widget.DataSource.prototype.cacheQueryEvent=null;YAHOO.widget.DataSource.prototype.getResultsEvent=null;YAHOO.widget.DataSource.prototype.getCachedResultsEvent=null;YAHOO.widget.DataSource.prototype.dataErrorEvent=null;YAHOO.widget.DataSource.prototype.cacheFlushEvent=null;YAHOO.widget.DataSource._nIndex=0;YAHOO.widget.DataSource.prototype._sName=null;YAHOO.widget.DataSource.prototype._aCache=null;YAHOO.widget.DataSource.prototype._init=function(){var maxCacheEntries=this.maxCacheEntries;if(isNaN(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;} +if(maxCacheEntries>0&&!this._aCache){this._aCache=[];} +this._sName="instance"+YAHOO.widget.DataSource._nIndex;YAHOO.widget.DataSource._nIndex++;this.queryEvent=new YAHOO.util.CustomEvent("query",this);this.cacheQueryEvent=new YAHOO.util.CustomEvent("cacheQuery",this);this.getResultsEvent=new YAHOO.util.CustomEvent("getResults",this);this.getCachedResultsEvent=new YAHOO.util.CustomEvent("getCachedResults",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.cacheFlushEvent=new YAHOO.util.CustomEvent("cacheFlush",this);};YAHOO.widget.DataSource.prototype._addCacheElem=function(oResult){var aCache=this._aCache;if(!aCache||!oResult||!oResult.query||!oResult.results){return;} +if(aCache.length>=this.maxCacheEntries){aCache.shift();} +aCache.push(oResult);};YAHOO.widget.DataSource.prototype._doQueryCache=function(oCallbackFn,sQuery,oParent){var aResults=[];var bMatchFound=false;var aCache=this._aCache;var nCacheLength=(aCache)?aCache.length:0;var bMatchContains=this.queryMatchContains;if((this.maxCacheEntries>0)&&aCache&&(nCacheLength>0)){this.cacheQueryEvent.fire(this,oParent,sQuery);if(!this.queryMatchCase){var sOrigQuery=sQuery;sQuery=sQuery.toLowerCase();} +for(var i=nCacheLength-1;i>=0;i--){var resultObj=aCache[i];var aAllResultItems=resultObj.results;var matchKey=(!this.queryMatchCase)?encodeURIComponent(resultObj.query).toLowerCase():encodeURIComponent(resultObj.query);if(matchKey==sQuery){bMatchFound=true;aResults=aAllResultItems;if(i!=nCacheLength-1){aCache.splice(i,1);this._addCacheElem(resultObj);} +break;} +else if(this.queryMatchSubset){for(var j=sQuery.length-1;j>=0;j--){var subQuery=sQuery.substr(0,j);if(matchKey==subQuery){bMatchFound=true;for(var k=aAllResultItems.length-1;k>=0;k--){var aRecord=aAllResultItems[k];var sKeyIndex=(this.queryMatchCase)?encodeURIComponent(aRecord[0]).indexOf(sQuery):encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);if((!bMatchContains&&(sKeyIndex===0))||(bMatchContains&&(sKeyIndex>-1))){aResults.unshift(aRecord);}} +resultObj={};resultObj.query=sQuery;resultObj.results=aResults;this._addCacheElem(resultObj);break;}} +if(bMatchFound){break;}}} +if(bMatchFound){this.getCachedResultsEvent.fire(this,oParent,sOrigQuery,aResults);oCallbackFn(sOrigQuery,aResults,oParent);}} +return aResults;};YAHOO.widget.DS_XHR=function(sScriptURI,aSchema,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}} +if(!aSchema||(aSchema.constructor!=Array)){return;} +else{this.schema=aSchema;} +this.scriptURI=sScriptURI;this._init();};YAHOO.widget.DS_XHR.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_XHR.TYPE_JSON=0;YAHOO.widget.DS_XHR.TYPE_XML=1;YAHOO.widget.DS_XHR.TYPE_FLAT=2;YAHOO.widget.DS_XHR.ERROR_DATAXHR="XHR response failed";YAHOO.widget.DS_XHR.prototype.connMgr=YAHOO.util.Connect;YAHOO.widget.DS_XHR.prototype.connTimeout=0;YAHOO.widget.DS_XHR.prototype.scriptURI=null;YAHOO.widget.DS_XHR.prototype.scriptQueryParam="query";YAHOO.widget.DS_XHR.prototype.scriptQueryAppend="";YAHOO.widget.DS_XHR.prototype.responseType=YAHOO.widget.DS_XHR.TYPE_JSON;YAHOO.widget.DS_XHR.prototype.responseStripAfter="\n<!-";YAHOO.widget.DS_XHR.prototype.doQuery=function(oCallbackFn,sQuery,oParent){var isXML=(this.responseType==YAHOO.widget.DS_XHR.TYPE_XML);var sUri=this.scriptURI+"?"+this.scriptQueryParam+"="+sQuery;if(this.scriptQueryAppend.length>0){sUri+="&"+this.scriptQueryAppend;} +var oResponse=null;var oSelf=this;var responseSuccess=function(oResp){if(!oSelf._oConn||(oResp.tId!=oSelf._oConn.tId)){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;} +for(var foo in oResp){} +if(!isXML){oResp=oResp.responseText;} +else{oResp=oResp.responseXML;} +if(oResp===null){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;} +var aResults=oSelf.parseResponse(sQuery,oResp,oParent);var resultObj={};resultObj.query=decodeURIComponent(sQuery);resultObj.results=aResults;if(aResults===null){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATAPARSE);aResults=[];} +else{oSelf.getResultsEvent.fire(oSelf,oParent,sQuery,aResults);oSelf._addCacheElem(resultObj);} +oCallbackFn(sQuery,aResults,oParent);};var responseFailure=function(oResp){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DS_XHR.ERROR_DATAXHR);return;};var oCallback={success:responseSuccess,failure:responseFailure};if(!isNaN(this.connTimeout)&&this.connTimeout>0){oCallback.timeout=this.connTimeout;} +if(this._oConn){this.connMgr.abort(this._oConn);} +oSelf._oConn=this.connMgr.asyncRequest("GET",sUri,oCallback,null);};YAHOO.widget.DS_XHR.prototype.parseResponse=function(sQuery,oResponse,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var nEnd=((this.responseStripAfter!=="")&&(oResponse.indexOf))?oResponse.indexOf(this.responseStripAfter):-1;if(nEnd!=-1){oResponse=oResponse.substring(0,nEnd);} +switch(this.responseType){case YAHOO.widget.DS_XHR.TYPE_JSON:var jsonList;if(window.JSON&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){var jsonObjParsed=JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break;} +else{try{jsonList=eval("jsonObjParsed."+aSchema[0]);} +catch(e){bError=true;break;}}} +else{try{while(oResponse.substring(0,1)==" "){oResponse=oResponse.substring(1,oResponse.length);} +if(oResponse.indexOf("{")<0){bError=true;break;} +if(oResponse.indexOf("{}")===0){break;} +var jsonObjRaw=eval("("+oResponse+")");if(!jsonObjRaw){bError=true;break;} +jsonList=eval("(jsonObjRaw."+aSchema[0]+")");} +catch(e){bError=true;break;}} +if(!jsonList){bError=true;break;} +if(jsonList.constructor!=Array){jsonList=[jsonList];} +for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";} +aResultItem.unshift(dataFieldValue);} +if(aResultItem.length==1){aResultItem.push(jsonResult);} +aResults.unshift(aResultItem);} +break;case YAHOO.widget.DS_XHR.TYPE_XML:var xmlList=oResponse.getElementsByTagName(aSchema[0]);if(!xmlList){bError=true;break;} +for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var aFieldSet=[];for(var m=aSchema.length-1;m>=1;m--){var sValue=null;var xmlAttr=result.attributes.getNamedItem(aSchema[m]);if(xmlAttr){sValue=xmlAttr.value;} +else{var xmlNode=result.getElementsByTagName(aSchema[m]);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue;} +else{sValue="";}} +aFieldSet.unshift(sValue);} +aResults.unshift(aFieldSet);} +break;case YAHOO.widget.DS_XHR.TYPE_FLAT:if(oResponse.length>0){var newLength=oResponse.length-aSchema[0].length;if(oResponse.substr(newLength)==aSchema[0]){oResponse=oResponse.substr(0,newLength);} +var aRecords=oResponse.split(aSchema[0]);for(var n=aRecords.length-1;n>=0;n--){aResults[n]=aRecords[n].split(aSchema[1]);}} +break;default:break;} +sQuery=null;oResponse=null;oParent=null;if(bError){return null;} +else{return aResults;}};YAHOO.widget.DS_XHR.prototype._oConn=null;YAHOO.widget.DS_JSFunction=function(oFunction,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}} +if(!oFunction||(oFunction.constructor!=Function)){return;} +else{this.dataFunction=oFunction;this._init();}};YAHOO.widget.DS_JSFunction.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSFunction.prototype.dataFunction=null;YAHOO.widget.DS_JSFunction.prototype.doQuery=function(oCallbackFn,sQuery,oParent){var oFunction=this.dataFunction;var aResults=[];aResults=oFunction(sQuery);if(aResults===null){this.dataErrorEvent.fire(this,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;} +var resultObj={};resultObj.query=decodeURIComponent(sQuery);resultObj.results=aResults;this._addCacheElem(resultObj);this.getResultsEvent.fire(this,oParent,sQuery,aResults);oCallbackFn(sQuery,aResults,oParent);return;};YAHOO.widget.DS_JSArray=function(aData,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}} +if(!aData||(aData.constructor!=Array)){return;} +else{this.data=aData;this._init();}};YAHOO.widget.DS_JSArray.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSArray.prototype.data=null;YAHOO.widget.DS_JSArray.prototype.doQuery=function(oCallbackFn,sQuery,oParent){var aData=this.data;var aResults=[];var bMatchFound=false;var bMatchContains=this.queryMatchContains;if(sQuery){if(!this.queryMatchCase){sQuery=sQuery.toLowerCase();} +for(var i=aData.length-1;i>=0;i--){var aDataset=[];if(aData[i]){if(aData[i].constructor==String){aDataset[0]=aData[i];} +else if(aData[i].constructor==Array){aDataset=aData[i];}} +if(aDataset[0]&&(aDataset[0].constructor==String)){var sKeyIndex=(this.queryMatchCase)?encodeURIComponent(aDataset[0]).indexOf(sQuery):encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);if((!bMatchContains&&(sKeyIndex===0))||(bMatchContains&&(sKeyIndex>-1))){aResults.unshift(aDataset);}}}} +this.getResultsEvent.fire(this,oParent,sQuery,aResults);oCallbackFn(sQuery,aResults,oParent);};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js new file mode 100644 index 0000000..ce4e058 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js @@ -0,0 +1,3071 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + /** + * The AutoComplete control provides the front-end logic for text-entry suggestion and + * completion functionality. + * + * @module autocomplete + * @requires yahoo, dom, event, datasource + * @optional animation, connection + * @namespace YAHOO.widget + * @title AutoComplete Widget + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML + * auto completion widget. Some key features: + * <ul> + * <li>Navigate with up/down arrow keys and/or mouse to pick a selection</li> + * <li>The drop down container can "roll down" or "fly out" via configurable + * animation</li> + * <li>UI look-and-feel customizable through CSS, including container + * attributes, borders, position, fonts, etc</li> + * </ul> + * + * @class AutoComplete + * @constructor + * @param elInput {HTMLElement} DOM element reference of an input field. + * @param elInput {String} String ID of an input field. + * @param elContainer {HTMLElement} DOM element reference of an existing DIV. + * @param elContainer {String} String ID of an existing DIV. + * @param oDataSource {YAHOO.widget.DataSource} DataSource instance. + * @param oConfigs {Object} (optional) Object literal of configuration params. + */ +YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) { + if(elInput && elContainer && oDataSource) { + // Validate DataSource + if (oDataSource && (oDataSource instanceof YAHOO.widget.DataSource)) { + this.dataSource = oDataSource; + } + else { + return; + } + + // Validate input element + if(YAHOO.util.Dom.inDocument(elInput)) { + if(typeof elInput == "string") { + this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput; + this._oTextbox = document.getElementById(elInput); + } + else { + this._sName = (elInput.id) ? + "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id: + "instance" + YAHOO.widget.AutoComplete._nIndex; + this._oTextbox = elInput; + } + } + else { + return; + } + + // Validate container element + if(YAHOO.util.Dom.inDocument(elContainer)) { + if(typeof elContainer == "string") { + this._oContainer = document.getElementById(elContainer); + } + else { + this._oContainer = elContainer; + } + if(this._oContainer.style.display == "none") { + } + } + else { + return; + } + + // Set any config params passed in to override defaults + if (typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if (sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + // Initialization sequence + this._initContainer(); + this._initProps(); + this._initList(); + this._initContainerHelpers(); + + // Set up events + var oSelf = this; + var oTextbox = this._oTextbox; + // Events are actually for the content module within the container + var oContent = this._oContainer._oContent; + + // Dom events + YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf); + YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf); + YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf); + YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf); + YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf); + YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf); + YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf); + YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf); + if(oTextbox.form) { + YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf); + } + YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf); + + // Custom events + this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this); + this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this); + this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this); + this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this); + this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this); + this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this); + this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this); + this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this); + this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this); + this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this); + this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this); + this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this); + this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this); + this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this); + this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this); + this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this); + + // Finish up + oTextbox.setAttribute("autocomplete","off"); + YAHOO.widget.AutoComplete._nIndex++; + } + // Required arguments were not found + else { + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * The DataSource object that encapsulates the data used for auto completion. + * This object should be an inherited object from YAHOO.widget.DataSource. + * + * @property dataSource + * @type YAHOO.widget.DataSource + */ +YAHOO.widget.AutoComplete.prototype.dataSource = null; + +/** + * Number of characters that must be entered before querying for results. A negative value + * effectively turns off the widget. A value of 0 allows queries of null or empty string + * values. + * + * @property minQueryLength + * @type Number + * @default 1 + */ +YAHOO.widget.AutoComplete.prototype.minQueryLength = 1; + +/** + * Maximum number of results to display in results container. + * + * @property maxResultsDisplayed + * @type Number + * @default 10 + */ +YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10; + +/** + * Number of seconds to delay before submitting a query request. If a query + * request is received before a previous one has completed its delay, the + * previous request is cancelled and the new request is set to the delay. + * + * @property queryDelay + * @type Number + * @default 0.5 + */ +YAHOO.widget.AutoComplete.prototype.queryDelay = 0.5; + +/** + * Class name of a highlighted item within results container. + * + * @property highlightClassName + * @type String + * @default "yui-ac-highlight" + */ +YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight"; + +/** + * Class name of a pre-highlighted item within results container. + * + * @property prehighlightClassName + * @type String + */ +YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null; + +/** + * Query delimiter. A single character separator for multiple delimited + * selections. Multiple delimiter characteres may be defined as an array of + * strings. A null value or empty string indicates that query results cannot + * be delimited. This feature is not recommended if you need forceSelection to + * be true. + * + * @property delimChar + * @type String | String[] + */ +YAHOO.widget.AutoComplete.prototype.delimChar = null; + +/** + * Whether or not the first item in results container should be automatically highlighted + * on expand. + * + * @property autoHighlight + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.autoHighlight = true; + +/** + * Whether or not the input field should be automatically updated + * with the first query result as the user types, auto-selecting the substring + * that the user has not typed. + * + * @property typeAhead + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.typeAhead = false; + +/** + * Whether or not to animate the expansion/collapse of the results container in the + * horizontal direction. + * + * @property animHoriz + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.animHoriz = false; + +/** + * Whether or not to animate the expansion/collapse of the results container in the + * vertical direction. + * + * @property animVert + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.animVert = true; + +/** + * Speed of container expand/collapse animation, in seconds.. + * + * @property animSpeed + * @type Number + * @default 0.3 + */ +YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3; + +/** + * Whether or not to force the user's selection to match one of the query + * results. Enabling this feature essentially transforms the input field into a + * <select> field. This feature is not recommended with delimiter character(s) + * defined. + * + * @property forceSelection + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.forceSelection = false; + +/** + * Whether or not to allow browsers to cache user-typed input in the input + * field. Disabling this feature will prevent the widget from setting the + * autocomplete="off" on the input field. When autocomplete="off" + * and users click the back button after form submission, user-typed input can + * be prefilled by the browser from its cache. This caching of user input may + * not be desired for sensitive data, such as credit card numbers, in which + * case, implementers should consider setting allowBrowserAutocomplete to false. + * + * @property allowBrowserAutocomplete + * @type Boolean + * @default true + */ +YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true; + +/** + * Whether or not the results container should always be displayed. + * Enabling this feature displays the container when the widget is instantiated + * and prevents the toggling of the container to a collapsed state. + * + * @property alwaysShowContainer + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false; + +/** + * Whether or not to use an iFrame to layer over Windows form elements in + * IE. Set to true only when the results container will be on top of a + * <select> field in IE and thus exposed to the IE z-index bug (i.e., + * 5.5 < IE < 7). + * + * @property useIFrame + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.useIFrame = false; + +/** + * Whether or not the results container should have a shadow. + * + * @property useShadow + * @type Boolean + * @default false + */ +YAHOO.widget.AutoComplete.prototype.useShadow = false; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the AutoComplete instance. + * + * @method toString + * @return {String} Unique name of the AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.toString = function() { + return "AutoComplete " + this._sName; +}; + + /** + * Returns true if container is in an expanded state, false otherwise. + * + * @method isContainerOpen + * @return {Boolean} Returns true if container is in an expanded state, false otherwise. + */ +YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() { + return this._bContainerOpen; +}; + +/** + * Public accessor to the internal array of DOM <li> elements that + * display query results within the results container. + * + * @method getListItems + * @return {HTMLElement[]} Array of <li> elements within the results container. + */ +YAHOO.widget.AutoComplete.prototype.getListItems = function() { + return this._aListItems; +}; + +/** + * Public accessor to the data held in an <li> element of the + * results container. + * + * @method getListItemData + * @return {Object | Object[]} Object or array of result data or null + */ +YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) { + if(oListItem._oResultData) { + return oListItem._oResultData; + } + else { + return false; + } +}; + +/** + * Sets HTML markup for the results container header. This markup will be + * inserted within a <div> tag with a class of "yui-ac-hd". + * + * @method setHeader + * @param sHeader {String} HTML markup for results container header. + */ +YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) { + if(sHeader) { + if(this._oContainer._oContent._oHeader) { + this._oContainer._oContent._oHeader.innerHTML = sHeader; + this._oContainer._oContent._oHeader.style.display = "block"; + } + } + else { + this._oContainer._oContent._oHeader.innerHTML = ""; + this._oContainer._oContent._oHeader.style.display = "none"; + } +}; + +/** + * Sets HTML markup for the results container footer. This markup will be + * inserted within a <div> tag with a class of "yui-ac-ft". + * + * @method setFooter + * @param sFooter {String} HTML markup for results container footer. + */ +YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) { + if(sFooter) { + if(this._oContainer._oContent._oFooter) { + this._oContainer._oContent._oFooter.innerHTML = sFooter; + this._oContainer._oContent._oFooter.style.display = "block"; + } + } + else { + this._oContainer._oContent._oFooter.innerHTML = ""; + this._oContainer._oContent._oFooter.style.display = "none"; + } +}; + +/** + * Sets HTML markup for the results container body. This markup will be + * inserted within a <div> tag with a class of "yui-ac-bd". + * + * @method setBody + * @param sBody {String} HTML markup for results container body. + */ +YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) { + if(sBody) { + if(this._oContainer._oContent._oBody) { + this._oContainer._oContent._oBody.innerHTML = sBody; + this._oContainer._oContent._oBody.style.display = "block"; + this._oContainer._oContent.style.display = "block"; + } + } + else { + this._oContainer._oContent._oBody.innerHTML = ""; + this._oContainer._oContent.style.display = "none"; + } + this._maxResultsDisplayed = 0; +}; + +/** + * Overridable method that converts a result item object into HTML markup + * for display. Return data values are accessible via the oResultItem object, + * and the key return value will always be oResultItem[0]. Markup will be + * displayed within <li> element tags in the container. + * + * @method formatResult + * @param oResultItem {Object} Result item representing one query result. Data is held in an array. + * @param sQuery {String} The current query string. + * @return {String} HTML markup of formatted result data. + */ +YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) { + var sResult = oResultItem[0]; + if(sResult) { + return sResult; + } + else { + return ""; + } +}; + +/** + * Overridable method called before container expands allows implementers to access data + * and DOM elements. + * + * @method doBeforeExpandContainer + * @return {Boolean} Return true to continue expanding container, false to cancel the expand. + */ +YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(oResultItem, sQuery) { + return true; +}; + +/** + * Makes query request to the DataSource. + * + * @method sendQuery + * @param sQuery {String} Query string. + */ +YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) { + this._sendQuery(sQuery); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Fired when the input field receives focus. + * + * @event textboxFocusEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null; + +/** + * Fired when the input field receives key input. + * + * @event textboxKeyEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param nKeycode {Number} The keycode number. + */ +YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null; + +/** + * Fired when the AutoComplete instance makes a query to the DataSource. + * + * @event dataRequestEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + */ +YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null; + +/** + * Fired when the AutoComplete instance receives query results from the data + * source. + * + * @event dataReturnEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Results array. + */ +YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null; + +/** + * Fired when the AutoComplete instance does not receive query results from the + * DataSource due to an error. + * + * @event dataErrorEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + */ +YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null; + +/** + * Fired when the results container is expanded. + * + * @event containerExpandEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null; + +/** + * Fired when the input field has been prefilled by the type-ahead + * feature. + * + * @event typeAheadEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The query string. + * @param sPrefill {String} The prefill string. + */ +YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null; + +/** + * Fired when result item has been moused over. + * + * @event itemMouseOverEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item moused to. + */ +YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null; + +/** + * Fired when result item has been moused out. + * + * @event itemMouseOutEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item moused from. + */ +YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null; + +/** + * Fired when result item has been arrowed to. + * + * @event itemArrowToEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item arrowed to. + */ +YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null; + +/** + * Fired when result item has been arrowed away from. + * + * @event itemArrowFromEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The <li> element item arrowed from. + */ +YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null; + +/** + * Fired when an item is selected via mouse click, ENTER key, or TAB key. + * + * @event itemSelectEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param elItem {HTMLElement} The selected <li> element item. + * @param oData {Object} The data returned for the item, either as an object, + * or mapped from the schema into an array. + */ +YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null; + +/** + * Fired when a user selection does not match any of the displayed result items. + * Note that this event may not behave as expected when delimiter characters + * have been defined. + * + * @event unmatchedItemSelectEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @param sQuery {String} The user-typed query string. + */ +YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null; + +/** + * Fired if forceSelection is enabled and the user's input has been cleared + * because it did not match one of the returned query results. + * + * @event selectionEnforceEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null; + +/** + * Fired when the results container is collapsed. + * + * @event containerCollapseEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null; + +/** + * Fired when the input field loses focus. + * + * @event textboxBlurEvent + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + */ +YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple AutoComplete instances. + * + * @property _nIndex + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.AutoComplete._nIndex = 0; + +/** + * Name of AutoComplete instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sName = null; + +/** + * Text input field DOM element. + * + * @property _oTextbox + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oTextbox = null; + +/** + * Whether or not the input field is currently in focus. If query results come back + * but the user has already moved on, do not proceed with auto complete behavior. + * + * @property _bFocused + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bFocused = true; + +/** + * Animation instance for container expand/collapse. + * + * @property _oAnim + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._oAnim = null; + +/** + * Container DOM element. + * + * @property _oContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oContainer = null; + +/** + * Whether or not the results container is currently open. + * + * @property _bContainerOpen + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bContainerOpen = false; + +/** + * Whether or not the mouse is currently over the results + * container. This is necessary in order to prevent clicks on container items + * from being text input field blur events. + * + * @property _bOverContainer + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bOverContainer = false; + +/** + * Array of <li> elements references that contain query results within the + * results container. + * + * @property _aListItems + * @type HTMLElement[] + * @private + */ +YAHOO.widget.AutoComplete.prototype._aListItems = null; + +/** + * Number of <li> elements currently displayed in results container. + * + * @property _nDisplayedItems + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0; + +/** + * Internal count of <li> elements displayed and hidden in results container. + * + * @property _maxResultsDisplayed + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0; + +/** + * Current query string + * + * @property _sCurQuery + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sCurQuery = null; + +/** + * Past queries this session (for saving delimited queries). + * + * @property _sSavedQuery + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sSavedQuery = null; + +/** + * Pointer to the currently highlighted <li> element in the container. + * + * @property _oCurItem + * @type HTMLElement + * @private + */ +YAHOO.widget.AutoComplete.prototype._oCurItem = null; + +/** + * Whether or not an item has been selected since the container was populated + * with results. Reset to false by _populateList, and set to true when item is + * selected. + * + * @property _bItemSelected + * @type Boolean + * @private + */ +YAHOO.widget.AutoComplete.prototype._bItemSelected = false; + +/** + * Key code of the last key pressed in textbox. + * + * @property _nKeyCode + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nKeyCode = null; + +/** + * Delay timeout ID. + * + * @property _nDelayID + * @type Number + * @private + */ +YAHOO.widget.AutoComplete.prototype._nDelayID = -1; + +/** + * Src to iFrame used when useIFrame = true. Supports implementations over SSL + * as well. + * + * @property _iFrameSrc + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;"; + +/** + * For users typing via certain IMEs, queries must be triggered by intervals, + * since key events yet supported across all browsers for all IMEs. + * + * @property _queryInterval + * @type Object + * @private + */ +YAHOO.widget.AutoComplete.prototype._queryInterval = null; + +/** + * Internal tracker to last known textbox value, used to determine whether or not + * to trigger a query via interval for certain IME users. + * + * @event _sLastTextboxValue + * @type String + * @private + */ +YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Updates and validates latest public config properties. + * + * @method __initProps + * @private + */ +YAHOO.widget.AutoComplete.prototype._initProps = function() { + // Correct any invalid values + var minQueryLength = this.minQueryLength; + if(isNaN(minQueryLength) || (minQueryLength < 1)) { + minQueryLength = 1; + } + var maxResultsDisplayed = this.maxResultsDisplayed; + if(isNaN(this.maxResultsDisplayed) || (this.maxResultsDisplayed < 1)) { + this.maxResultsDisplayed = 10; + } + var queryDelay = this.queryDelay; + if(isNaN(this.queryDelay) || (this.queryDelay < 0)) { + this.queryDelay = 0.5; + } + var aDelimChar = (this.delimChar) ? this.delimChar : null; + if(aDelimChar) { + if(typeof aDelimChar == "string") { + this.delimChar = [aDelimChar]; + } + else if(aDelimChar.constructor != Array) { + this.delimChar = null; + } + } + var animSpeed = this.animSpeed; + if((this.animHoriz || this.animVert) && YAHOO.util.Anim) { + if(isNaN(animSpeed) || (animSpeed < 0)) { + animSpeed = 0.3; + } + if(!this._oAnim ) { + oAnim = new YAHOO.util.Anim(this._oContainer._oContent, {}, this.animSpeed); + this._oAnim = oAnim; + } + else { + this._oAnim.duration = animSpeed; + } + } + if(this.forceSelection && this.delimChar) { + } +}; + +/** + * Initializes the results container helpers if they are enabled and do + * not exist + * + * @method _initContainerHelpers + * @private + */ +YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() { + if(this.useShadow && !this._oContainer._oShadow) { + var oShadow = document.createElement("div"); + oShadow.className = "yui-ac-shadow"; + this._oContainer._oShadow = this._oContainer.appendChild(oShadow); + } + if(this.useIFrame && !this._oContainer._oIFrame) { + var oIFrame = document.createElement("iframe"); + oIFrame.src = this._iFrameSrc; + oIFrame.frameBorder = 0; + oIFrame.scrolling = "no"; + oIFrame.style.position = "absolute"; + oIFrame.style.width = "100%"; + oIFrame.style.height = "100%"; + oIFrame.tabIndex = -1; + this._oContainer._oIFrame = this._oContainer.appendChild(oIFrame); + } +}; + +/** + * Initializes the results container once at object creation + * + * @method _initContainer + * @private + */ +YAHOO.widget.AutoComplete.prototype._initContainer = function() { + if(!this._oContainer._oContent) { + // The oContent div helps size the iframe and shadow properly + var oContent = document.createElement("div"); + oContent.className = "yui-ac-content"; + oContent.style.display = "none"; + this._oContainer._oContent = this._oContainer.appendChild(oContent); + + var oHeader = document.createElement("div"); + oHeader.className = "yui-ac-hd"; + oHeader.style.display = "none"; + this._oContainer._oContent._oHeader = this._oContainer._oContent.appendChild(oHeader); + + var oBody = document.createElement("div"); + oBody.className = "yui-ac-bd"; + this._oContainer._oContent._oBody = this._oContainer._oContent.appendChild(oBody); + + var oFooter = document.createElement("div"); + oFooter.className = "yui-ac-ft"; + oFooter.style.display = "none"; + this._oContainer._oContent._oFooter = this._oContainer._oContent.appendChild(oFooter); + } + else { + } +}; + +/** + * Clears out contents of container body and creates up to + * YAHOO.widget.AutoComplete#maxResultsDisplayed <li> elements in an + * <ul> element. + * + * @method _initList + * @private + */ +YAHOO.widget.AutoComplete.prototype._initList = function() { + this._aListItems = []; + while(this._oContainer._oContent._oBody.hasChildNodes()) { + var oldListItems = this.getListItems(); + if(oldListItems) { + for(var oldi = oldListItems.length-1; oldi >= 0; i--) { + oldListItems[oldi] = null; + } + } + this._oContainer._oContent._oBody.innerHTML = ""; + } + + var oList = document.createElement("ul"); + oList = this._oContainer._oContent._oBody.appendChild(oList); + for(var i=0; i<this.maxResultsDisplayed; i++) { + var oItem = document.createElement("li"); + oItem = oList.appendChild(oItem); + this._aListItems[i] = oItem; + this._initListItem(oItem, i); + } + this._maxResultsDisplayed = this.maxResultsDisplayed; +}; + +/** + * Initializes each <li> element in the container list. + * + * @method _initListItem + * @param oItem {HTMLElement} The <li> DOM element. + * @param nItemIndex {Number} The index of the element. + * @private + */ +YAHOO.widget.AutoComplete.prototype._initListItem = function(oItem, nItemIndex) { + var oSelf = this; + oItem.style.display = "none"; + oItem._nItemIndex = nItemIndex; + + oItem.mouseover = oItem.mouseout = oItem.onclick = null; + YAHOO.util.Event.addListener(oItem,"mouseover",oSelf._onItemMouseover,oSelf); + YAHOO.util.Event.addListener(oItem,"mouseout",oSelf._onItemMouseout,oSelf); + YAHOO.util.Event.addListener(oItem,"click",oSelf._onItemMouseclick,oSelf); +}; + +/** + * Enables interval detection for Korean IME support. + * + * @method _onIMEDetected + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onIMEDetected = function(oSelf) { + oSelf._enableIntervalDetection(); +}; + +/** + * Enables query triggers based on text input detection by intervals (rather + * than by key events). + * + * @method _enableIntervalDetection + * @private + */ +YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() { + var currValue = this._oTextbox.value; + var lastValue = this._sLastTextboxValue; + if(currValue != lastValue) { + this._sLastTextboxValue = currValue; + this._sendQuery(currValue); + } +}; + + +/** + * Cancels text input detection by intervals. + * + * @method _cancelIntervalDetection + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection = function(oSelf) { + if(oSelf._queryInterval) { + clearInterval(oSelf._queryInterval); + } +}; + + +/** + * Whether or not key is functional or should be ignored. Note that the right + * arrow key is NOT an ignored key since it triggers queries for certain intl + * charsets. + * + * @method _isIgnoreKey + * @param nKeycode {Number} Code of key pressed. + * @return {Boolean} True if key should be ignored, false otherwise. + * @private + */ +YAHOO.widget.AutoComplete.prototype._isIgnoreKey = function(nKeyCode) { + if ((nKeyCode == 9) || (nKeyCode == 13) || // tab, enter + (nKeyCode == 16) || (nKeyCode == 17) || // shift, ctl + (nKeyCode >= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock + (nKeyCode == 27) || // esc + (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end + (nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up + (nKeyCode == 40) || // down + (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert + return true; + } + return false; +}; + +/** + * Makes query request to the DataSource. + * + * @method _sendQuery + * @param sQuery {String} Query string. + * @private + */ +YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) { + // Widget has been effectively turned off + if(this.minQueryLength == -1) { + this._toggleContainer(false); + return; + } + // Delimiter has been enabled + var aDelimChar = (this.delimChar) ? this.delimChar : null; + if(aDelimChar) { + // Loop through all possible delimiters and find the latest one + // A " " may be a false positive if they are defined as delimiters AND + // are used to separate delimited queries + var nDelimIndex = -1; + for(var i = aDelimChar.length-1; i >= 0; i--) { + var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]); + if(nNewIndex > nDelimIndex) { + nDelimIndex = nNewIndex; + } + } + // If we think the last delimiter is a space (" "), make sure it is NOT + // a false positive by also checking the char directly before it + if(aDelimChar[i] == " ") { + for (var j = aDelimChar.length-1; j >= 0; j--) { + if(sQuery[nDelimIndex - 1] == aDelimChar[j]) { + nDelimIndex--; + break; + } + } + } + // A delimiter has been found so extract the latest query + if (nDelimIndex > -1) { + var nQueryStart = nDelimIndex + 1; + // Trim any white space from the beginning... + while(sQuery.charAt(nQueryStart) == " ") { + nQueryStart += 1; + } + // ...and save the rest of the string for later + this._sSavedQuery = sQuery.substring(0,nQueryStart); + // Here is the query itself + sQuery = sQuery.substr(nQueryStart); + } + else if(sQuery.indexOf(this._sSavedQuery) < 0){ + this._sSavedQuery = null; + } + } + + // Don't search queries that are too short + if (sQuery && (sQuery.length < this.minQueryLength) || (!sQuery && this.minQueryLength > 0)) { + if (this._nDelayID != -1) { + clearTimeout(this._nDelayID); + } + this._toggleContainer(false); + return; + } + + sQuery = encodeURIComponent(sQuery); + this._nDelayID = -1; // Reset timeout ID because request has been made + this.dataRequestEvent.fire(this, sQuery); + this.dataSource.getResults(this._populateList, sQuery, this); +}; + +/** + * Populates the array of <li> elements in the container with query + * results. This method is passed to YAHOO.widget.DataSource#getResults as a + * callback function so results from the DataSource instance are returned to the + * AutoComplete instance. + * + * @method _populateList + * @param sQuery {String} The query string. + * @param aResults {Object[]} An array of query result objects from the DataSource. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) { + if(aResults === null) { + oSelf.dataErrorEvent.fire(oSelf, sQuery); + } + if (!oSelf._bFocused || !aResults) { + return; + } + + var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1); + var contentStyle = oSelf._oContainer._oContent.style; + contentStyle.width = (!isOpera) ? null : ""; + contentStyle.height = (!isOpera) ? null : ""; + + var sCurQuery = decodeURIComponent(sQuery); + oSelf._sCurQuery = sCurQuery; + oSelf._bItemSelected = false; + + if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) { + oSelf._initList(); + } + + var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed); + oSelf._nDisplayedItems = nItems; + if (nItems > 0) { + oSelf._initContainerHelpers(); + var aItems = oSelf._aListItems; + + // Fill items with data + for(var i = nItems-1; i >= 0; i--) { + var oItemi = aItems[i]; + var oResultItemi = aResults[i]; + oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery); + oItemi.style.display = "list-item"; + oItemi._sResultKey = oResultItemi[0]; + oItemi._oResultData = oResultItemi; + + } + + // Empty out remaining items if any + for(var j = aItems.length-1; j >= nItems ; j--) { + var oItemj = aItems[j]; + oItemj.innerHTML = null; + oItemj.style.display = "none"; + oItemj._sResultKey = null; + oItemj._oResultData = null; + } + + if(oSelf.autoHighlight) { + // Go to the first item + var oFirstItem = aItems[0]; + oSelf._toggleHighlight(oFirstItem,"to"); + oSelf.itemArrowToEvent.fire(oSelf, oFirstItem); + oSelf._typeAhead(oFirstItem,sQuery); + } + else { + oSelf._oCurItem = null; + } + + // Expand the container + var ok = oSelf.doBeforeExpandContainer(oSelf._oTextbox, oSelf._oContainer, sQuery, aResults); + oSelf._toggleContainer(ok); + } + else { + oSelf._toggleContainer(false); + } + oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults); +}; + +/** + * When forceSelection is true and the user attempts + * leave the text input box without selecting an item from the query results, + * the user selection is cleared. + * + * @method _clearSelection + * @private + */ +YAHOO.widget.AutoComplete.prototype._clearSelection = function() { + var sValue = this._oTextbox.value; + var sChar = (this.delimChar) ? this.delimChar[0] : null; + var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1; + if(nIndex > -1) { + this._oTextbox.value = sValue.substring(0,nIndex); + } + else { + this._oTextbox.value = ""; + } + this._sSavedQuery = this._oTextbox.value; + + // Fire custom event + this.selectionEnforceEvent.fire(this); +}; + +/** + * Whether or not user-typed value in the text input box matches any of the + * query results. + * + * @method _textMatchesOption + * @return {Boolean} True if user-input text matches a result, false otherwise. + * @private + */ +YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() { + var foundMatch = false; + + for(var i = this._nDisplayedItems-1; i >= 0 ; i--) { + var oItem = this._aListItems[i]; + var sMatch = oItem._sResultKey.toLowerCase(); + if (sMatch == this._sCurQuery.toLowerCase()) { + foundMatch = true; + break; + } + } + return(foundMatch); +}; + +/** + * Updates in the text input box with the first query result as the user types, + * selecting the substring that the user has not typed. + * + * @method _typeAhead + * @param oItem {HTMLElement} The <li> element item whose data populates the input field. + * @param sQuery {String} Query string. + * @private + */ +YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) { + // Don't update if turned off + if (!this.typeAhead || (this._nKeyCode == 8)) { + return; + } + + var oTextbox = this._oTextbox; + var sValue = this._oTextbox.value; // any saved queries plus what user has typed + + // Don't update with type-ahead if text selection is not supported + if(!oTextbox.setSelectionRange && !oTextbox.createTextRange) { + return; + } + + // Select the portion of text that the user has not typed + var nStart = sValue.length; + this._updateValue(oItem); + var nEnd = oTextbox.value.length; + this._selectText(oTextbox,nStart,nEnd); + var sPrefill = oTextbox.value.substr(nStart,nEnd); + this.typeAheadEvent.fire(this,sQuery,sPrefill); +}; + +/** + * Selects text in the input field. + * + * @method _selectText + * @param oTextbox {HTMLElement} Text input box element in which to select text. + * @param nStart {Number} Starting index of text string to select. + * @param nEnd {Number} Ending index of text selection. + * @private + */ +YAHOO.widget.AutoComplete.prototype._selectText = function(oTextbox, nStart, nEnd) { + if (oTextbox.setSelectionRange) { // For Mozilla + oTextbox.setSelectionRange(nStart,nEnd); + } + else if (oTextbox.createTextRange) { // For IE + var oTextRange = oTextbox.createTextRange(); + oTextRange.moveStart("character", nStart); + oTextRange.moveEnd("character", nEnd-oTextbox.value.length); + oTextRange.select(); + } + else { + oTextbox.select(); + } +}; + +/** + * Syncs results container with its helpers. + * + * @method _toggleContainerHelpers + * @param bShow {Boolean} True if container is expanded, false if collapsed + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) { + var bFireEvent = false; + var width = this._oContainer._oContent.offsetWidth + "px"; + var height = this._oContainer._oContent.offsetHeight + "px"; + + if(this.useIFrame && this._oContainer._oIFrame) { + bFireEvent = true; + if(bShow) { + this._oContainer._oIFrame.style.width = width; + this._oContainer._oIFrame.style.height = height; + } + else { + this._oContainer._oIFrame.style.width = 0; + this._oContainer._oIFrame.style.height = 0; + } + } + if(this.useShadow && this._oContainer._oShadow) { + bFireEvent = true; + if(bShow) { + this._oContainer._oShadow.style.width = width; + this._oContainer._oShadow.style.height = height; + } + else { + this._oContainer._oShadow.style.width = 0; + this._oContainer._oShadow.style.height = 0; + } + } +}; + +/** + * Animates expansion or collapse of the container. + * + * @method _toggleContainer + * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) { + var oContainer = this._oContainer; + + // Implementer has container always open so don't mess with it + if(this.alwaysShowContainer && this._bContainerOpen) { + return; + } + + // Clear contents of container + if(!bShow) { + this._oContainer._oContent.scrollTop = 0; + var aItems = this._aListItems; + + if(aItems && (aItems.length > 0)) { + for(var i = aItems.length-1; i >= 0 ; i--) { + aItems[i].style.display = "none"; + } + } + + if (this._oCurItem) { + this._toggleHighlight(this._oCurItem,"from"); + } + + this._oCurItem = null; + this._nDisplayedItems = 0; + this._sCurQuery = null; + } + + // Container is already closed + if (!bShow && !this._bContainerOpen) { + oContainer._oContent.style.display = "none"; + return; + } + + // If animation is enabled... + var oAnim = this._oAnim; + if (oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) { + // If helpers need to be collapsed, do it right away... + // but if helpers need to be expanded, wait until after the container expands + if(!bShow) { + this._toggleContainerHelpers(bShow); + } + + if(oAnim.isAnimated()) { + oAnim.stop(); + } + + // Clone container to grab current size offscreen + var oClone = oContainer._oContent.cloneNode(true); + oContainer.appendChild(oClone); + oClone.style.top = "-9000px"; + oClone.style.display = "block"; + + // Current size of the container is the EXPANDED size + var wExp = oClone.offsetWidth; + var hExp = oClone.offsetHeight; + + // Calculate COLLAPSED sizes based on horiz and vert anim + var wColl = (this.animHoriz) ? 0 : wExp; + var hColl = (this.animVert) ? 0 : hExp; + + // Set animation sizes + oAnim.attributes = (bShow) ? + {width: { to: wExp }, height: { to: hExp }} : + {width: { to: wColl}, height: { to: hColl }}; + + // If opening anew, set to a collapsed size... + if(bShow && !this._bContainerOpen) { + oContainer._oContent.style.width = wColl+"px"; + oContainer._oContent.style.height = hColl+"px"; + } + // Else, set it to its last known size. + else { + oContainer._oContent.style.width = wExp+"px"; + oContainer._oContent.style.height = hExp+"px"; + } + + oContainer.removeChild(oClone); + oClone = null; + + var oSelf = this; + var onAnimComplete = function() { + // Finish the collapse + oAnim.onComplete.unsubscribeAll(); + + if(bShow) { + oSelf.containerExpandEvent.fire(oSelf); + } + else { + oContainer._oContent.style.display = "none"; + oSelf.containerCollapseEvent.fire(oSelf); + } + oSelf._toggleContainerHelpers(bShow); + }; + + // Display container and animate it + oContainer._oContent.style.display = "block"; + oAnim.onComplete.subscribe(onAnimComplete); + oAnim.animate(); + this._bContainerOpen = bShow; + } + // Else don't animate, just show or hide + else { + if(bShow) { + oContainer._oContent.style.display = "block"; + this.containerExpandEvent.fire(this); + } + else { + oContainer._oContent.style.display = "none"; + this.containerCollapseEvent.fire(this); + } + this._toggleContainerHelpers(bShow); + this._bContainerOpen = bShow; + } + +}; + +/** + * Toggles the highlight on or off for an item in the container, and also cleans + * up highlighting of any previous item. + * + * @method _toggleHighlight + * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior. + * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off. + * @private + */ +YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) { + var sHighlight = this.highlightClassName; + if(this._oCurItem) { + // Remove highlight from old item + YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight); + } + + if((sType == "to") && sHighlight) { + // Apply highlight to new item + YAHOO.util.Dom.addClass(oNewItem, sHighlight); + this._oCurItem = oNewItem; + } +}; + +/** + * Toggles the pre-highlight on or off for an item in the container. + * + * @method _togglePrehighlight + * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior. + * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off. + * @private + */ +YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) { + if(oNewItem == this._oCurItem) { + return; + } + + var sPrehighlight = this.prehighlightClassName; + if((sType == "mouseover") && sPrehighlight) { + // Apply prehighlight to new item + YAHOO.util.Dom.addClass(oNewItem, sPrehighlight); + } + else { + // Remove prehighlight from old item + YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight); + } +}; + +/** + * Updates the text input box value with selected query result. If a delimiter + * has been defined, then the value gets appended with the delimiter. + * + * @method _updateValue + * @param oItem {HTMLElement} The <li> element item with which to update the value. + * @private + */ +YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) { + var oTextbox = this._oTextbox; + var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null; + var sSavedQuery = this._sSavedQuery; + var sResultKey = oItem._sResultKey; + oTextbox.focus(); + + // First clear text field + oTextbox.value = ""; + // Grab data to put into text field + if(sDelimChar) { + if(sSavedQuery) { + oTextbox.value = sSavedQuery; + } + oTextbox.value += sResultKey + sDelimChar; + if(sDelimChar != " ") { + oTextbox.value += " "; + } + } + else { oTextbox.value = sResultKey; } + + // scroll to bottom of textarea if necessary + if(oTextbox.type == "textarea") { + oTextbox.scrollTop = oTextbox.scrollHeight; + } + + // move cursor to end + var end = oTextbox.value.length; + this._selectText(oTextbox,end,end); + + this._oCurItem = oItem; +}; + +/** + * Selects a result item from the container + * + * @method _selectItem + * @param oItem {HTMLElement} The selected <li> element item. + * @private + */ +YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) { + this._bItemSelected = true; + this._updateValue(oItem); + this._cancelIntervalDetection(this); + this.itemSelectEvent.fire(this, oItem, oItem._oResultData); + this._toggleContainer(false); +}; + +/** + * For values updated by type-ahead, the right arrow key jumps to the end + * of the textbox, otherwise the container is closed. + * + * @method _jumpSelection + * @private + */ +YAHOO.widget.AutoComplete.prototype._jumpSelection = function() { + if(!this.typeAhead) { + return; + } + else { + this._toggleContainer(false); + } +}; + +/** + * Triggered by up and down arrow keys, changes the current highlighted + * <li> element item. Scrolls container if necessary. + * + * @method _moveSelection + * @param nKeyCode {Number} Code of key pressed. + * @private + */ +YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) { + if(this._bContainerOpen) { + // Determine current item's id number + var oCurItem = this._oCurItem; + var nCurItemIndex = -1; + + if (oCurItem) { + nCurItemIndex = oCurItem._nItemIndex; + } + + var nNewItemIndex = (nKeyCode == 40) ? + (nCurItemIndex + 1) : (nCurItemIndex - 1); + + // Out of bounds + if (nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) { + return; + } + + if (oCurItem) { + // Unhighlight current item + this._toggleHighlight(oCurItem, "from"); + this.itemArrowFromEvent.fire(this, oCurItem); + } + if (nNewItemIndex == -1) { + // Go back to query (remove type-ahead string) + if(this.delimChar && this._sSavedQuery) { + if (!this._textMatchesOption()) { + this._oTextbox.value = this._sSavedQuery; + } + else { + this._oTextbox.value = this._sSavedQuery + this._sCurQuery; + } + } + else { + this._oTextbox.value = this._sCurQuery; + } + this._oCurItem = null; + return; + } + if (nNewItemIndex == -2) { + // Close container + this._toggleContainer(false); + return; + } + + var oNewItem = this._aListItems[nNewItemIndex]; + + // Scroll the container if necessary + var oContent = this._oContainer._oContent; + var scrollOn = ((YAHOO.util.Dom.getStyle(oContent,"overflow") == "auto") || + (YAHOO.util.Dom.getStyle(oContent,"overflowY") == "auto")); + if(scrollOn && (nNewItemIndex > -1) && + (nNewItemIndex < this._nDisplayedItems)) { + // User is keying down + if(nKeyCode == 40) { + // Bottom of selected item is below scroll area... + if((oNewItem.offsetTop+oNewItem.offsetHeight) > (oContent.scrollTop + oContent.offsetHeight)) { + // Set bottom of scroll area to bottom of selected item + oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight; + } + // Bottom of selected item is above scroll area... + else if((oNewItem.offsetTop+oNewItem.offsetHeight) < oContent.scrollTop) { + // Set top of selected item to top of scroll area + oContent.scrollTop = oNewItem.offsetTop; + + } + } + // User is keying up + else { + // Top of selected item is above scroll area + if(oNewItem.offsetTop < oContent.scrollTop) { + // Set top of scroll area to top of selected item + this._oContainer._oContent.scrollTop = oNewItem.offsetTop; + } + // Top of selected item is below scroll area + else if(oNewItem.offsetTop > (oContent.scrollTop + oContent.offsetHeight)) { + // Set bottom of selected item to bottom of scroll area + this._oContainer._oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight; + } + } + } + + this._toggleHighlight(oNewItem, "to"); + this.itemArrowToEvent.fire(this, oNewItem); + if(this.typeAhead) { + this._updateValue(oNewItem); + } + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles <li> element mouseover events in the container. + * + * @method _onItemMouseover + * @param v {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) { + if(oSelf.prehighlightClassName) { + oSelf._togglePrehighlight(this,"mouseover"); + } + else { + oSelf._toggleHighlight(this,"to"); + } + + oSelf.itemMouseOverEvent.fire(oSelf, this); +}; + +/** + * Handles <li> element mouseout events in the container. + * + * @method _onItemMouseout + * @param v {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) { + if(oSelf.prehighlightClassName) { + oSelf._togglePrehighlight(this,"mouseout"); + } + else { + oSelf._toggleHighlight(this,"from"); + } + + oSelf.itemMouseOutEvent.fire(oSelf, this); +}; + +/** + * Handles <li> element click events in the container. + * + * @method _onItemMouseclick + * @param v {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) { + // In case item has not been moused over + oSelf._toggleHighlight(this,"to"); + oSelf._selectItem(this); +}; + +/** + * Handles container mouseover events. + * + * @method _onContainerMouseover + * @param v {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) { + oSelf._bOverContainer = true; +}; + +/** + * Handles container mouseout events. + * + * @method _onContainerMouseout + * @param v {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) { + oSelf._bOverContainer = false; + // If container is still active + if(oSelf._oCurItem) { + oSelf._toggleHighlight(oSelf._oCurItem,"to"); + } +}; + +/** + * Handles container scroll events. + * + * @method _onContainerScroll + * @param v {HTMLEvent} The scroll event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) { + oSelf._oTextbox.focus(); +}; + +/** + * Handles container resize events. + * + * @method _onContainerResize + * @param v {HTMLEvent} The resize event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) { + oSelf._toggleContainerHelpers(oSelf._bContainerOpen); +}; + + +/** + * Handles textbox keydown events of functional keys, mainly for UI behavior. + * + * @method _onTextboxKeyDown + * @param v {HTMLEvent} The keydown event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) { + var nKeyCode = v.keyCode; + + switch (nKeyCode) { + case 9: // tab + if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + // select an item or clear out + if(oSelf._oCurItem) { + oSelf._selectItem(oSelf._oCurItem); + } + else { + oSelf._toggleContainer(false); + } + break; + case 13: // enter + if(oSelf._nKeyCode != nKeyCode) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + if(oSelf._oCurItem) { + oSelf._selectItem(oSelf._oCurItem); + } + else { + oSelf._toggleContainer(false); + } + break; + case 27: // esc + oSelf._toggleContainer(false); + return; + case 39: // right + oSelf._jumpSelection(); + break; + case 38: // up + YAHOO.util.Event.stopEvent(v); + oSelf._moveSelection(nKeyCode); + break; + case 40: // down + YAHOO.util.Event.stopEvent(v); + oSelf._moveSelection(nKeyCode); + break; + default: + break; + } +}; + +/** + * Handles textbox keypress events. + * @method _onTextboxKeyPress + * @param v {HTMLEvent} The keypress event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) { + var nKeyCode = v.keyCode; + + //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337) + var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1); + if(isMac) { + switch (nKeyCode) { + case 9: // tab + if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + break; + case 13: // enter + if(oSelf._nKeyCode != nKeyCode) { + if(oSelf._bContainerOpen) { + YAHOO.util.Event.stopEvent(v); + } + } + break; + case 38: // up + case 40: // down + YAHOO.util.Event.stopEvent(v); + break; + default: + break; + } + } + + //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948) + // Korean IME detected + else if(nKeyCode == 229) { + oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500); + } +}; + +/** + * Handles textbox keyup events that trigger queries. + * + * @method _onTextboxKeyUp + * @param v {HTMLEvent} The keyup event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) { + // Check to see if any of the public properties have been updated + oSelf._initProps(); + + var nKeyCode = v.keyCode; + oSelf._nKeyCode = nKeyCode; + var sText = this.value; //string in textbox + + // Filter out chars that don't trigger queries + if (oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) { + return; + } + else { + oSelf.textboxKeyEvent.fire(oSelf, nKeyCode); + } + + // Set timeout on the request + if (oSelf.queryDelay > 0) { + var nDelayID = + setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000)); + + if (oSelf._nDelayID != -1) { + clearTimeout(oSelf._nDelayID); + } + + oSelf._nDelayID = nDelayID; + } + else { + // No delay so send request immediately + oSelf._sendQuery(sText); + } +}; + +/** + * Handles text input box receiving focus. + * + * @method _onTextboxFocus + * @param v {HTMLEvent} The focus event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) { + oSelf._oTextbox.setAttribute("autocomplete","off"); + oSelf._bFocused = true; + oSelf.textboxFocusEvent.fire(oSelf); +}; + +/** + * Handles text input box losing focus. + * + * @method _onTextboxBlur + * @param v {HTMLEvent} The focus event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) { + // Don't treat as a blur if it was a selection via mouse click + if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) { + // Current query needs to be validated + if(!oSelf._bItemSelected) { + if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && !oSelf._textMatchesOption())) { + if(oSelf.forceSelection) { + oSelf._clearSelection(); + } + else { + oSelf.unmatchedItemSelectEvent.fire(oSelf, oSelf._sCurQuery); + } + } + } + + if(oSelf._bContainerOpen) { + oSelf._toggleContainer(false); + } + oSelf._cancelIntervalDetection(oSelf); + oSelf._bFocused = false; + oSelf.textboxBlurEvent.fire(oSelf); + } +}; + +/** + * Handles form submission event. + * + * @method _onFormSubmit + * @param v {HTMLEvent} The submit event. + * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance. + * @private + */ +YAHOO.widget.AutoComplete.prototype._onFormSubmit = function(v,oSelf) { + if(oSelf.allowBrowserAutocomplete) { + oSelf._oTextbox.setAttribute("autocomplete","on"); + } + else { + oSelf._oTextbox.setAttribute("autocomplete","off"); + } +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The DataSource classes manages sending a request and returning response from a live + * database. Supported data include local JavaScript arrays and objects and databases + * accessible via XHR connections. Supported response formats include JavaScript arrays, + * JSON, XML, and flat-file textual data. + * + * @class DataSource + * @constructor + */ +YAHOO.widget.DataSource = function() { + /* abstract class */ +}; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Error message for null data responses. + * + * @property ERROR_DATANULL + * @type String + * @static + * @final + */ +YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null"; + +/** + * Error message for data responses with parsing errors. + * + * @property ERROR_DATAPARSE + * @type String + * @static + * @final + */ +YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed"; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Max size of the local cache. Set to 0 to turn off caching. Caching is + * useful to reduce the number of server connections. Recommended only for data + * sources that return comprehensive results for queries or when stale data is + * not an issue. + * + * @property maxCacheEntries + * @type Number + * @default 15 + */ +YAHOO.widget.DataSource.prototype.maxCacheEntries = 15; + +/** + * Use this to equate cache matching with the type of matching done by your live + * data source. If caching is on and queryMatchContains is true, the cache + * returns results that "contain" the query string. By default, + * queryMatchContains is set to false, meaning the cache only returns results + * that "start with" the query string. + * + * @property queryMatchContains + * @type Boolean + * @default false + */ +YAHOO.widget.DataSource.prototype.queryMatchContains = false; + +/** + * Enables query subset matching. If caching is on and queryMatchSubset is + * true, substrings of queries will return matching cached results. For + * instance, if the first query is for "abc" susequent queries that start with + * "abc", like "abcd", will be queried against the cache, and not the live data + * source. Recommended only for DataSources that return comprehensive results + * for queries with very few characters. + * + * @property queryMatchSubset + * @type Boolean + * @default false + * + */ +YAHOO.widget.DataSource.prototype.queryMatchSubset = false; + +/** + * Enables query case-sensitivity matching. If caching is on and + * queryMatchCase is true, queries will only return results for case-sensitive + * matches. + * + * @property queryMatchCase + * @type Boolean + * @default false + */ +YAHOO.widget.DataSource.prototype.queryMatchCase = false; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance + */ +YAHOO.widget.DataSource.prototype.toString = function() { + return "DataSource " + this._sName; +}; + +/** + * Retrieves query results, first checking the local cache, then making the + * query request to the live data source as defined by the function doQuery. + * + * @method getResults + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) { + + // First look in cache + var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent); + + // Not in cache, so get results from server + if(aResults.length === 0) { + this.queryEvent.fire(this, oParent, sQuery); + this.doQuery(oCallbackFn, sQuery, oParent); + } +}; + +/** + * Abstract method implemented by subclasses to make a query to the live data + * source. Must call the callback function with the response returned from the + * query. Populates cache (if enabled). + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + /* override this */ +}; + +/** + * Flushes cache. + * + * @method flushCache + */ +YAHOO.widget.DataSource.prototype.flushCache = function() { + if(this._aCache) { + this._aCache = []; + } + if(this._aCacheHelper) { + this._aCacheHelper = []; + } + this.cacheFlushEvent.fire(this); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Fired when a query is made to the live data source. + * + * @event queryEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + */ +YAHOO.widget.DataSource.prototype.queryEvent = null; + +/** + * Fired when a query is made to the local cache. + * + * @event cacheQueryEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + */ +YAHOO.widget.DataSource.prototype.cacheQueryEvent = null; + +/** + * Fired when data is retrieved from the live data source. + * + * @event getResultsEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Array of result objects. + */ +YAHOO.widget.DataSource.prototype.getResultsEvent = null; + +/** + * Fired when data is retrieved from the local cache. + * + * @event getCachedResultsEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param aResults {Object[]} Array of result objects. + */ +YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null; + +/** + * Fired when an error is encountered with the live data source. + * + * @event dataErrorEvent + * @param oSelf {Object} The DataSource instance. + * @param oParent {Object} The requesting object. + * @param sQuery {String} The query string. + * @param sMsg {String} Error message string + */ +YAHOO.widget.DataSource.prototype.dataErrorEvent = null; + +/** + * Fired when the local cache is flushed. + * + * @event cacheFlushEvent + * @param oSelf {Object} The DataSource instance + */ +YAHOO.widget.DataSource.prototype.cacheFlushEvent = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataSource instances. + * + * @property _nIndex + * @type Number + * @private + * @static + */ +YAHOO.widget.DataSource._nIndex = 0; + +/** + * Name of DataSource instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.DataSource.prototype._sName = null; + +/** + * Local cache of data result objects indexed chronologically. + * + * @property _aCache + * @type Object[] + * @private + */ +YAHOO.widget.DataSource.prototype._aCache = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Initializes DataSource instance. + * + * @method _init + * @private + */ +YAHOO.widget.DataSource.prototype._init = function() { + // Validate and initialize public configs + var maxCacheEntries = this.maxCacheEntries; + if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) { + maxCacheEntries = 0; + } + // Initialize local cache + if(maxCacheEntries > 0 && !this._aCache) { + this._aCache = []; + } + + this._sName = "instance" + YAHOO.widget.DataSource._nIndex; + YAHOO.widget.DataSource._nIndex++; + + this.queryEvent = new YAHOO.util.CustomEvent("query", this); + this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this); + this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this); + this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this); + this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this); + this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this); +}; + +/** + * Adds a result object to the local cache, evicting the oldest element if the + * cache is full. Newer items will have higher indexes, the oldest item will have + * index of 0. + * + * @method _addCacheElem + * @param oResult {Object} Data result object, including array of results. + * @private + */ +YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) { + var aCache = this._aCache; + // Don't add if anything important is missing. + if(!aCache || !oResult || !oResult.query || !oResult.results) { + return; + } + + // If the cache is full, make room by removing from index=0 + if(aCache.length >= this.maxCacheEntries) { + aCache.shift(); + } + + // Add to cache, at the end of the array + aCache.push(oResult); +}; + +/** + * Queries the local cache for results. If query has been cached, the callback + * function is called with the results, and the cached is refreshed so that it + * is now the newest element. + * + * @method _doQueryCache + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + * @return aResults {Object[]} Array of results from local cache if found, otherwise null. + * @private + */ +YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) { + var aResults = []; + var bMatchFound = false; + var aCache = this._aCache; + var nCacheLength = (aCache) ? aCache.length : 0; + var bMatchContains = this.queryMatchContains; + + // If cache is enabled... + if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) { + this.cacheQueryEvent.fire(this, oParent, sQuery); + // If case is unimportant, normalize query now instead of in loops + if(!this.queryMatchCase) { + var sOrigQuery = sQuery; + sQuery = sQuery.toLowerCase(); + } + + // Loop through each cached element's query property... + for(var i = nCacheLength-1; i >= 0; i--) { + var resultObj = aCache[i]; + var aAllResultItems = resultObj.results; + // If case is unimportant, normalize match key for comparison + var matchKey = (!this.queryMatchCase) ? + encodeURIComponent(resultObj.query).toLowerCase(): + encodeURIComponent(resultObj.query); + + // If a cached match key exactly matches the query... + if(matchKey == sQuery) { + // Stash all result objects into aResult[] and stop looping through the cache. + bMatchFound = true; + aResults = aAllResultItems; + + // The matching cache element was not the most recent, + // so now we need to refresh the cache. + if(i != nCacheLength-1) { + // Remove element from its original location + aCache.splice(i,1); + // Add element as newest + this._addCacheElem(resultObj); + } + break; + } + // Else if this query is not an exact match and subset matching is enabled... + else if(this.queryMatchSubset) { + // Loop through substrings of each cached element's query property... + for(var j = sQuery.length-1; j >= 0 ; j--) { + var subQuery = sQuery.substr(0,j); + + // If a substring of a cached sQuery exactly matches the query... + if(matchKey == subQuery) { + bMatchFound = true; + + // Go through each cached result object to match against the query... + for(var k = aAllResultItems.length-1; k >= 0; k--) { + var aRecord = aAllResultItems[k]; + var sKeyIndex = (this.queryMatchCase) ? + encodeURIComponent(aRecord[0]).indexOf(sQuery): + encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery); + + // A STARTSWITH match is when the query is found at the beginning of the key string... + if((!bMatchContains && (sKeyIndex === 0)) || + // A CONTAINS match is when the query is found anywhere within the key string... + (bMatchContains && (sKeyIndex > -1))) { + // Stash a match into aResults[]. + aResults.unshift(aRecord); + } + } + + // Add the subset match result set object as the newest element to cache, + // and stop looping through the cache. + resultObj = {}; + resultObj.query = sQuery; + resultObj.results = aResults; + this._addCacheElem(resultObj); + break; + } + } + if(bMatchFound) { + break; + } + } + } + + // If there was a match, send along the results. + if(bMatchFound) { + this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults); + oCallbackFn(sOrigQuery, aResults, oParent); + } + } + return aResults; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return + * query results. + * + * @class DS_XHR + * @extends YAHOO.widget.DataSource + * @requires connection + * @constructor + * @param sScriptURI {String} Absolute or relative URI to script that returns query + * results as JSON, XML, or delimited flat-file data. + * @param aSchema {String[]} Data schema definition of results. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!aSchema || (aSchema.constructor != Array)) { + return; + } + else { + this.schema = aSchema; + } + this.scriptURI = sScriptURI; + this._init(); +}; + +YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * JSON data type. + * + * @property TYPE_JSON + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_JSON = 0; + +/** + * XML data type. + * + * @property TYPE_XML + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_XML = 1; + +/** + * Flat-file data type. + * + * @property TYPE_FLAT + * @type Number + * @static + * @final + */ +YAHOO.widget.DS_XHR.TYPE_FLAT = 2; + +/** + * Error message for XHR failure. + * + * @property ERROR_DATAXHR + * @type String + * @static + * @final + */ +YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed"; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Alias to YUI Connection Manager. Allows implementers to specify their own + * subclasses of the YUI Connection Manager utility. + * + * @property connMgr + * @type Object + * @default YAHOO.util.Connect + */ +YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect; + +/** + * Number of milliseconds the XHR connection will wait for a server response. A + * a value of zero indicates the XHR connection will wait forever. Any value + * greater than zero will use the Connection utility's Auto-Abort feature. + * + * @property connTimeout + * @type Number + * @default 0 + */ +YAHOO.widget.DS_XHR.prototype.connTimeout = 0; + +/** + * Absolute or relative URI to script that returns query results. For instance, + * queries will be sent to <scriptURI>?<scriptQueryParam>=userinput + * + * @property scriptURI + * @type String + */ +YAHOO.widget.DS_XHR.prototype.scriptURI = null; + +/** + * Query string parameter name sent to scriptURI. For instance, queries will be + * sent to <scriptURI>?<scriptQueryParam>=userinput + * + * @property scriptQueryParam + * @type String + * @default "query" + */ +YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query"; + +/** + * String of key/value pairs to append to requests made to scriptURI. Define + * this string when you want to send additional query parameters to your script. + * When defined, queries will be sent to + * <scriptURI>?<scriptQueryParam>=userinput&<scriptQueryAppend> + * + * @property scriptQueryAppend + * @type String + * @default "" + */ +YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = ""; + +/** + * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML + * and YAHOO.widget.DS_XHR.TYPE_FLAT. + * + * @property responseType + * @type String + * @default YAHOO.widget.DS_XHR.TYPE_JSON + */ +YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON; + +/** + * String after which to strip results. If the results from the XHR are sent + * back as HTML, the gzip HTML comment appears at the end of the data and should + * be ignored. + * + * @property responseStripAfter + * @type String + * @default "\n<!-" + */ +YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n<!-"; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by scriptURI for results. Results are + * passed back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_XHR.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var isXML = (this.responseType == YAHOO.widget.DS_XHR.TYPE_XML); + var sUri = this.scriptURI+"?"+this.scriptQueryParam+"="+sQuery; + if(this.scriptQueryAppend.length > 0) { + sUri += "&" + this.scriptQueryAppend; + } + var oResponse = null; + + var oSelf = this; + /* + * Sets up ajax request callback + * + * @param {object} oReq HTTPXMLRequest object + * @private + */ + var responseSuccess = function(oResp) { + // Response ID does not match last made request ID. + if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + return; + } +//DEBUG +for(var foo in oResp) { +} + if(!isXML) { + oResp = oResp.responseText; + } + else { + oResp = oResp.responseXML; + } + if(oResp === null) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + return; + } + + var aResults = oSelf.parseResponse(sQuery, oResp, oParent); + var resultObj = {}; + resultObj.query = decodeURIComponent(sQuery); + resultObj.results = aResults; + if(aResults === null) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE); + aResults = []; + } + else { + oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults); + oSelf._addCacheElem(resultObj); + } + oCallbackFn(sQuery, aResults, oParent); + }; + + var responseFailure = function(oResp) { + oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR); + return; + }; + + var oCallback = { + success:responseSuccess, + failure:responseFailure + }; + + if(!isNaN(this.connTimeout) && this.connTimeout > 0) { + oCallback.timeout = this.connTimeout; + } + + if(this._oConn) { + this.connMgr.abort(this._oConn); + } + + oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null); +}; + +/** + * Parses raw response data into an array of result objects. The result data key + * is always stashed in the [0] element of each result object. + * + * @method parseResponse + * @param sQuery {String} Query string. + * @param oResponse {Object} The raw response data to parse. + * @param oParent {Object} The object instance that has requested data. + * @returns {Object[]} Array of result objects. + */ +YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) { + var aSchema = this.schema; + var aResults = []; + var bError = false; + + // Strip out comment at the end of results + var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ? + oResponse.indexOf(this.responseStripAfter) : -1; + if(nEnd != -1) { + oResponse = oResponse.substring(0,nEnd); + } + + switch (this.responseType) { + case YAHOO.widget.DS_XHR.TYPE_JSON: + var jsonList; + // Divert KHTML clients from JSON lib + if(window.JSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the JSON utility if available + var jsonObjParsed = JSON.parse(oResponse); + if(!jsonObjParsed) { + bError = true; + break; + } + else { + try { + // eval is necessary here since aSchema[0] is of unknown depth + jsonList = eval("jsonObjParsed." + aSchema[0]); + } + catch(e) { + bError = true; + break; + } + } + } + else { + // Parse the JSON response as a string + try { + // Trim leading spaces + while (oResponse.substring(0,1) == " ") { + oResponse = oResponse.substring(1, oResponse.length); + } + + // Invalid JSON response + if(oResponse.indexOf("{") < 0) { + bError = true; + break; + } + + // Empty (but not invalid) JSON response + if(oResponse.indexOf("{}") === 0) { + break; + } + + // Turn the string into an object literal... + // ...eval is necessary here + var jsonObjRaw = eval("(" + oResponse + ")"); + if(!jsonObjRaw) { + bError = true; + break; + } + + // Grab the object member that contains an array of all reponses... + // ...eval is necessary here since aSchema[0] is of unknown depth + jsonList = eval("(jsonObjRaw." + aSchema[0]+")"); + } + catch(e) { + bError = true; + break; + } + } + + if(!jsonList) { + bError = true; + break; + } + + if(jsonList.constructor != Array) { + jsonList = [jsonList]; + } + + // Loop through the array of all responses... + for(var i = jsonList.length-1; i >= 0 ; i--) { + var aResultItem = []; + var jsonResult = jsonList[i]; + // ...and loop through each data field value of each response + for(var j = aSchema.length-1; j >= 1 ; j--) { + // ...and capture data into an array mapped according to the schema... + var dataFieldValue = jsonResult[aSchema[j]]; + if(!dataFieldValue) { + dataFieldValue = ""; + } + aResultItem.unshift(dataFieldValue); + } + // If schema isn't well defined, pass along the entire result object + if(aResultItem.length == 1) { + aResultItem.push(jsonResult); + } + // Capture the array of data field values in an array of results + aResults.unshift(aResultItem); + } + break; + case YAHOO.widget.DS_XHR.TYPE_XML: + // Get the collection of results + var xmlList = oResponse.getElementsByTagName(aSchema[0]); + if(!xmlList) { + bError = true; + break; + } + // Loop through each result + for(var k = xmlList.length-1; k >= 0 ; k--) { + var result = xmlList.item(k); + var aFieldSet = []; + // Loop through each data field in each result using the schema + for(var m = aSchema.length-1; m >= 1 ; m--) { + var sValue = null; + // Values may be held in an attribute... + var xmlAttr = result.attributes.getNamedItem(aSchema[m]); + if(xmlAttr) { + sValue = xmlAttr.value; + } + // ...or in a node + else{ + var xmlNode = result.getElementsByTagName(aSchema[m]); + if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) { + sValue = xmlNode.item(0).firstChild.nodeValue; + } + else { + sValue = ""; + } + } + // Capture the schema-mapped data field values into an array + aFieldSet.unshift(sValue); + } + // Capture each array of values into an array of results + aResults.unshift(aFieldSet); + } + break; + case YAHOO.widget.DS_XHR.TYPE_FLAT: + if(oResponse.length > 0) { + // Delete the last line delimiter at the end of the data if it exists + var newLength = oResponse.length-aSchema[0].length; + if(oResponse.substr(newLength) == aSchema[0]) { + oResponse = oResponse.substr(0, newLength); + } + var aRecords = oResponse.split(aSchema[0]); + for(var n = aRecords.length-1; n >= 0; n--) { + aResults[n] = aRecords[n].split(aSchema[1]); + } + } + break; + default: + break; + } + sQuery = null; + oResponse = null; + oParent = null; + if(bError) { + return null; + } + else { + return aResults; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * XHR connection object. + * + * @property _oConn + * @type Object + * @private + */ +YAHOO.widget.DS_XHR.prototype._oConn = null; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using a native Javascript function as + * its live data source. + * + * @class DS_JSFunction + * @constructor + * @extends YAHOO.widget.DataSource + * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!oFunction || (oFunction.constructor != Function)) { + return; + } + else { + this.dataFunction = oFunction; + this._init(); + } +}; + +YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * In-memory Javascript function that returns query results. + * + * @property dataFunction + * @type HTMLFunction + */ +YAHOO.widget.DS_JSFunction.prototype.dataFunction = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by function for results. Results are + * passed back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var oFunction = this.dataFunction; + var aResults = []; + + aResults = oFunction(sQuery); + if(aResults === null) { + this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL); + return; + } + + var resultObj = {}; + resultObj.query = decodeURIComponent(sQuery); + resultObj.results = aResults; + this._addCacheElem(resultObj); + + this.getResultsEvent.fire(this, oParent, sQuery, aResults); + oCallbackFn(sQuery, aResults, oParent); + return; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Implementation of YAHOO.widget.DataSource using a native Javascript array as + * its live data source. + * + * @class DS_JSArray + * @constructor + * @extends YAHOO.widget.DataSource + * @param aData {String[]} In-memory Javascript array of simple string data. + * @param oConfigs {Object} (optional) Object literal of config params. + */ +YAHOO.widget.DS_JSArray = function(aData, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Initialization sequence + if(!aData || (aData.constructor != Array)) { + return; + } + else { + this.data = aData; + this._init(); + } +}; + +YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource(); + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * In-memory Javascript array of strings. + * + * @property data + * @type Array + */ +YAHOO.widget.DS_JSArray.prototype.data = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Queries the live data source defined by data for results. Results are passed + * back to a callback function. + * + * @method doQuery + * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results. + * @param sQuery {String} Query string. + * @param oParent {Object} The object instance that has requested data. + */ +YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) { + var aData = this.data; // the array + var aResults = []; // container for results + var bMatchFound = false; + var bMatchContains = this.queryMatchContains; + if(sQuery) { + if(!this.queryMatchCase) { + sQuery = sQuery.toLowerCase(); + } + + // Loop through each element of the array... + // which can be a string or an array of strings + for(var i = aData.length-1; i >= 0; i--) { + var aDataset = []; + + if(aData[i]) { + if(aData[i].constructor == String) { + aDataset[0] = aData[i]; + } + else if(aData[i].constructor == Array) { + aDataset = aData[i]; + } + } + + if(aDataset[0] && (aDataset[0].constructor == String)) { + var sKeyIndex = (this.queryMatchCase) ? + encodeURIComponent(aDataset[0]).indexOf(sQuery): + encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery); + + // A STARTSWITH match is when the query is found at the beginning of the key string... + if((!bMatchContains && (sKeyIndex === 0)) || + // A CONTAINS match is when the query is found anywhere within the key string... + (bMatchContains && (sKeyIndex > -1))) { + // Stash a match into aResults[]. + aResults.unshift(aDataset); + } + } + } + } + + this.getResultsEvent.fire(this, oParent, sQuery, aResults); + oCallbackFn(sQuery, aResults, oParent); +}; + +YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/button/README b/interface/ispconfig/interface/js/yui/button/README new file mode 100644 index 0000000..036e33d --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/README @@ -0,0 +1,3 @@ +*** Version 2.2.0 *** + +* Button Control introduced \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/button/assets/background.png b/interface/ispconfig/interface/js/yui/button/assets/background.png new file mode 100644 index 0000000..87c85b5 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/assets/background.png Binary files differ diff --git a/interface/ispconfig/interface/js/yui/button/assets/button.css b/interface/ispconfig/interface/js/yui/button/assets/button.css new file mode 100644 index 0000000..ff90c8e --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/assets/button.css @@ -0,0 +1,217 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +.yuibutton { + + display:-moz-inline-stack; /* Gecko */ + display:inline-block; /* IE, Opera and Safari */ + + border-width:1px 0; + border-style:solid; + border-color:#999; + + background:#ecece3 url(background.png) left center; + + /* Give the transparent background image to IE 6 */ + _background-image:none; + _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/button/assets/background.png', sizingMethod = 'scale'); + + margin:auto .25em; + +} + +.yuibutton .first-child { + + display:block; /* Gecko, Opera and Safari */ + *display:inline-block; /* IE */ + + border-width:0 1px; + border-style:solid; + border-color:#999; + + margin:0 -1px; + *position:relative; + *left:-1px; + +} + +.yuibutton button, +.yuibutton a { + + display:block; /* Opera and Safari */ + display:-moz-inline-block; /* Gecko */ + *display:inline-block; /* IE */ + padding:.25em .5em; + border:1px solid #ccc; + +} + +.yuibutton button { + + overflow:visible; /* Remove superfluous padding for IE */ + font-size:100%; /* Makes form controls resizable in IE */ + background-color:transparent; + cursor:pointer; + cursor:hand; + +} + +.yuibutton a { + + text-decoration:none; + color:#000; + +} + +.yuibutton.splitbutton button, +.yuibutton.menubutton button { + + padding-right:20px; + background-position:right center; + background-repeat:no-repeat; + +} + +.yuibutton.menubutton button { + + background-image:url(menuarrow.gif); + +} + +.yuibutton.splitbutton button { + + background-image:url(splitarrow.gif); + +} + + +/* Focus state */ + +.yuibutton.focus { + + border-color:#5e5c95; + +} + +.yuibutton.focus .first-child { + + border-color:#5e5c95; + +} + +.yuibutton.focus button, +.yuibutton.focus a { + + border-color:#cec1fc; + +} + + +/* Hover state */ + +.yuibutton.hover { + + border-color:#406fac; + background-color:#98d5fc; + +} + +.yuibutton.hover .first-child { + + border-color:#406fac; + +} + +.yuibutton.hover button, +.yuibutton.hover a { + + border-color:#7099ce; + +} + + +/* Active state */ + +.yuibutton.active { + + border-color:#7a8180; + background-color:#333; + +} + +.yuibutton.active .first-child { + + border-color:#7a8180; + +} + +.yuibutton.active button, +.yuibutton.active a { + + border-color:#98a09f; + +} + +.yuibutton.splitbutton.activeoption button { + + background-color:transparent; + background-image:url(splitarrow_active.gif); + +} + + + +/* Checked state */ + +.yuibutton.radio.checked, +.yuibutton.checkbox.checked { + + border-color:#7a8180; + background-color:#333; + +} + +.yuibutton.radio.checked .first-child, +.yuibutton.checkbox.checked .first-child { + + border-color:#7a8180; + +} + +.yuibutton.radio.checked button, +.yuibutton.checkbox.checked button { + + border-color:#98a09f; + +} + + + +/* Disabled state */ + +.yuibutton.disabled { + + border-color:#cbcdc5; + background:#ecece3; + + _filter:none; + +} + +.yuibutton.disabled .first-child { + + border-color:#cbcdc5; + +} + +.yuibutton.disabled button, +.yuibutton.disabled a { + + border-color:transparent; + color:#b9b9b9; + cursor:default; + +} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif b/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif new file mode 100644 index 0000000..ffa2ba9 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif b/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif new file mode 100644 index 0000000..6d1ce65 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif b/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif new file mode 100644 index 0000000..25c0884 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/button/button-beta-debug.js b/interface/ispconfig/interface/js/yui/button/button-beta-debug.js new file mode 100644 index 0000000..e940367 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/button-beta-debug.js @@ -0,0 +1,4061 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* @module button +* @description <p>The Button Control enables the creation of rich, graphical +* buttons that function like traditional HTML form buttons. <em>Unlike</em> +* tradition HTML form buttons, buttons created with the Button Control can have +* a label that is different from its value. With the inclusion of the optional +* <a href="module_menu.html">Menu Control</a>, the Button Control can also be +* used to create menu buttons and split buttons, controls that are not +* available natively in HTML. The Button Control can also be thought of as a +* way to create more visually engaging implementations of the browser's +* default radio-button and check-box controls.</p> +* <p>The Button Control supports the following types:</p> +* <dl> +* <dt>button</dt> +* <dd>Basic push button that can execute a user-specified command when +* pressed.</dd> +* <dt>link</dt> +* <dd>Navigates to a specified url when pressed.</dd> +* <dt>submit</dt> +* <dd>Submits the parent form when pressed.</dd> +* <dt>reset</dt> +* <dd>Resets the parent form when pressed.</dd> +* <dt>checkbox</dt> +* <dd>Maintains a "checked" state that can be toggled on and off.</dd> +* <dt>radio</dt> +* <dd>Maintains a "checked" state that can be toggled on and off. Use with +* the ButtonGroup class to create a set of controls that are mutually +* exclusive; checking one button in the set will uncheck all others in +* the group.</dd> +* <dt>menubutton</dt> +* <dd>When pressed will show/hide a menu.</dd> +* <dt>splitbutton</dt> +* <dd>Can execute a user-specified command or display a menu when pressed.</dd> +* </dl> +* @title Button +* @namespace YAHOO.widget +* @requires yahoo, dom, element, event +* @optional container, menu +* @beta +*/ + + +(function() { + +// Shorthard for utilities + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang, + + + // Private member variables + + m_oButtons = {}, + m_oFocusedButton = null; + + + +// Constructor + + +/** +* The Button class creates a rich, graphical button. +* @param {String} p_oElement String specifying the id attribute of the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oElement Object reference for the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button. +* @namespace YAHOO.widget +* @class Button +* @constructor +* @extends YAHOO.util.Element +*/ +YAHOO.widget.Button = function(p_oElement, p_oAttributes) { + + var fnSuperClass = YAHOO.widget.Button.superclass.constructor; + + if( + arguments.length == 1 && + !Lang.isString(p_oElement) && + !p_oElement.nodeName + ) { + + if(!p_oElement.id) { + + p_oElement.id = Dom.generateId(); + + YAHOO.log( + "No value specified for the button's \"id\" attribute. " + + "Setting button id to \"" + p_oElement.id + "\".", + "warn" + ); + + } + + this.logger = new YAHOO.widget.LogWriter("Button " + p_oElement.id); + + this.logger.log( + "No source HTML element. " + + "Building the button using the set of configuration attributes." + ); + + fnSuperClass.call( + this, + (this._createButtonElement(p_oElement.type)), + p_oElement + ); + + } + else { + + var oConfig = { + + element: null, + attributes: (p_oAttributes || {}) + + }; + + + if(Lang.isString(p_oElement)) { + + var me = this; + + Event.onAvailable(p_oElement, function() { + + var sTagName = this.tagName.toUpperCase(); + + if(sTagName == me.TAG_NAME) { + + oConfig.attributes.id = this.id; + + } + else if(sTagName == "INPUT" && !oConfig.attributes.id) { + + oConfig.attributes.id = Dom.generateId(); + + YAHOO.log( + "No value specified for the button's \"id\" " + + "attribute. Setting button id to \"" + + oConfig.attributes.id + "\".", + "warn" + ); + + } + + me.logger = new YAHOO.widget.LogWriter( + "Button " + oConfig.attributes.id + ); + + me.logger.log( + "Building the button using an existing HTML " + + "element as a source element." + ); + + + oConfig.attributes.srcelement = this; + + initConfig.call(me, oConfig); + + + if(!oConfig.element) { + + me.logger.log( + "Source element could not be used as is. " + + "Creating a new HTML element for the button." + ); + + oConfig.element = + me._createButtonElement(oConfig.attributes.type); + + } + + fnSuperClass.call(me, oConfig.element, oConfig.attributes); + + }); + + } + else { + + var sTagName = p_oElement.tagName.toUpperCase(); + + if(sTagName == this.TAG_NAME) { + + if(p_oElement.id) { + + oConfig.attributes.id = p_oElement.id; + + } + else { + + oConfig.attributes.id = Dom.generateId(); + + YAHOO.log( + "No value specified for the button's \"id\" " + + "attribute. Setting button id to \"" + + oConfig.attributes.id + "\".", + "warn" + ); + + } + + + } + else if(sTagName == "INPUT" && !oConfig.attributes.id) { + + oConfig.attributes.id = Dom.generateId(); + + YAHOO.log( + "No value specified for the button's \"id\" " + + "attribute. Setting button id to \"" + + oConfig.attributes.id + "\".", + "warn" + ); + + } + + this.logger = + new YAHOO.widget.LogWriter("Button " + oConfig.attributes.id); + + this.logger.log( + "Building the button using an existing HTML element as " + + "a source element." + ); + + + oConfig.attributes.srcelement = p_oElement; + + initConfig.call(this, oConfig); + + + if(!oConfig.element) { + + this.logger.log( + "Source element could not be used as is. " + + "Creating a new HTML element for the button." + ); + + oConfig.element = + this._createButtonElement(oConfig.attributes.type); + + } + + fnSuperClass.call(this, oConfig.element, oConfig.attributes); + + } + + } + +}; + + + +// Private methods + + +/** +* @method getFirstElement +* @description Returns an HTML element's first HTML element node. +* @private +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object +* reference specifying the element to be evaluated. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} +*/ +function getFirstElement(p_oElement) { + + var oFirstChild = p_oElement.firstChild; + + if(oFirstChild) { + + if(oFirstChild.nodeType == 1) { + + return oFirstChild; + + } + else { + + var oNextSibling = oFirstChild.nextSibling; + + if(oNextSibling && oNextSibling.nodeType == 1) { + + return oNextSibling; + + } + + } + + } + +} + + +/** +* @method createInputElement +* @description Creates an <code><input></code> element of the +* specified type. +* @private +* @param {String} p_sType String specifying the type of +* <code><input></code> element to create. +* @param {String} p_sName String specifying the name of +* <code><input></code> element to create. +* @param {String} p_sValue String specifying the value of +* <code><input></code> element to create. +* @param {String} p_bChecked Boolean specifying if the +* <code><input></code> element is to be checked. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>} +*/ +function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) { + + var oInput; + + if(navigator.userAgent.indexOf("MSIE") != -1) { + + /* + For IE it is necessary to create the element with the + "type," "name," "value," and "checked" properties set all at once. + */ + + var sInput = "<input type=\"" + p_sType + "\" name=\"" + p_sName + "\""; + + if(p_bChecked) { + + sInput += " checked"; + + } + + sInput += ">"; + + oInput = document.createElement(sInput); + + } + else { + + oInput = document.createElement("input"); + oInput.name = p_sName; + oInput.type = p_sType; + + if(p_bChecked) { + + oInput.checked = true; + + } + + } + + oInput.value = p_sValue; + + return oInput; + +} + + +/** +* @method setAttributesFromSrcElement +* @description Gets the values for all the attributes of the source element +* (either <code><input></code> or <code><a></code>) that map to +* Button configuration attributes and sets them into a collection that is +* passed to the Button constructor. +* @private +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org/ +* TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID- +* 48250443">HTMLAnchorElement</a>} p_oElement Object reference to the HTML +* element (either <code><input></code> or <code><span></code>) +* used to create the button. +* @param {Object} p_oAttributes Object reference for the collection of +* configuration attributes used to create the button. +*/ +function setAttributesFromSrcElement(p_oElement, p_oAttributes) { + + var me = this; + + /** + * @method setAttributeFromDOMAttribute + * @description Gets the value of the specified DOM attribute and sets it + * into the collection of configuration attributes used to configure + * the button. + * @private + * @param {String} p_sAttribute String representing the name of the + * attribute to retrieve from the DOM element. + */ + function setAttributeFromDOMAttribute(p_sAttribute) { + + if( !(p_sAttribute in p_oAttributes) ) { + + /* + Need to use "getAttributeNode" instead of "getAttribute" + because using "getAttribute," IE will return the innerText of + a <code><button></code> for the value attribute rather + than the value of the "value" attribute. + */ + + var oAttribute = p_oElement.getAttributeNode(p_sAttribute); + + + if(oAttribute && ("value" in oAttribute)) { + + me.logger.log( + "Setting attribute \"" + p_sAttribute + "\" using " + + "source element's attribute value of \"" + + oAttribute.value + "\"" + ); + + p_oAttributes[p_sAttribute] = oAttribute.value; + + } + + } + + } + + + /** + * @method setFormElementProperties + * @description Gets the value of the attributes from the form element and + * sets them into the collection of configuration attributes used to + * configure the button. + * @private + */ + function setFormElementProperties() { + + setAttributeFromDOMAttribute("type"); + + if( !("disabled" in p_oAttributes) ) { + + p_oAttributes.disabled = p_oElement.disabled; + + } + + setAttributeFromDOMAttribute("name"); + setAttributeFromDOMAttribute("value"); + setAttributeFromDOMAttribute("title"); + + } + + + var sSrcElementTagName = p_oElement.tagName.toUpperCase(); + + + if( !("label" in p_oAttributes) ) { + + // Set the "label" property + + var sText = sSrcElementTagName == "INPUT" ? + p_oElement.value : p_oElement.innerHTML; + + + if(sText && sText.length > 0) { + + p_oAttributes.label = sText; + + } + + } + + + setAttributeFromDOMAttribute("tabindex"); + setAttributeFromDOMAttribute("accesskey"); + + + switch(sSrcElementTagName) { + + case "A": + + p_oAttributes.type = "link"; + + setAttributeFromDOMAttribute("href"); + setAttributeFromDOMAttribute("target"); + + break; + + case "INPUT": + + setFormElementProperties(); + + if( !("checked" in p_oAttributes) ) { + + p_oAttributes.checked = p_oElement.checked; + + } + + break; + + case "BUTTON": + + setFormElementProperties(); + + var oRootNode = p_oElement.parentNode.parentNode; + + if(Dom.hasClass(oRootNode, "checked")) { + + p_oAttributes.checked = true; + + } + + if(Dom.hasClass(oRootNode, "disabled")) { + + p_oAttributes.disabled = true; + + } + + p_oElement.removeAttribute("name"); + p_oElement.removeAttribute("value"); + + p_oElement.setAttribute("type", "button"); + + break; + + } + +} + + +/** +* @method initConfig +* @description Initializes the set of configuration attributes that are used to +* instantiate the button. +* @private +* @param {Object} Object representing the button's set of +* configuration attributes. +*/ +function initConfig(p_oConfig) { + + var oAttributes = p_oConfig.attributes, + oSrcElement = oAttributes.srcelement, + sSrcElementTagName = oSrcElement.tagName.toUpperCase(); + + + if(sSrcElementTagName == this.TAG_NAME) { + + p_oConfig.element = oSrcElement; + + var oFirstChild = getFirstElement(p_oConfig.element); + + Dom.addClass(oFirstChild, "first-child"); + + if(oFirstChild) { + + var oButton = getFirstElement(oFirstChild); + + + if(oButton) { + + var sButtonTagName = oButton.tagName.toUpperCase(); + + + if(sButtonTagName == "A" || sButtonTagName == "BUTTON") { + + setAttributesFromSrcElement.call( + this, + oButton, + oAttributes + ); + + } + + } + + } + + } + else if(sSrcElementTagName == "INPUT") { + + setAttributesFromSrcElement.call(this, oSrcElement, oAttributes); + + } + +} + + +YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, { + + +// Protected properties + + +/** +* @property _button +* @description Object reference to the button's internal +* <code><a></code> or <code><button></code> element. +* @default null +* @protected +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-48250443">HTMLAnchorElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID- +* 34812697">HTMLButtonElement</a> +*/ +_button: null, + + +/** +* @property _menu +* @description Object reference to the button's menu. +* @default null +* @protected +* @type <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a> +*/ +_menu: null, + + +/** +* @property _onclickAttributeValue +* @description Object reference to the button's current value for the "onclick" +* configuration attribute. +* @default null +* @protected +* @type Object +*/ +_onclickAttributeValue: null, + + +/** +* @property _oninitAttributeValue +* @description Object reference to the button's current value for the "oninit" +* configuration attribute. +* @default null +* @protected +* @type Object +*/ +_oninitAttributeValue: null, + + +/** +* @property _activationKeyPressed +* @description Boolean indicating if the key(s) that toggle the button's +* "active" state have been pressed. +* @default false +* @protected +* @type Boolean +*/ +_activationKeyPressed: false, + + +/** +* @property _activationButtonPressed +* @description Boolean indicating if the mouse button that toggles the button's +* "active" state has been pressed. +* @default false +* @protected +* @type Boolean +*/ +_activationButtonPressed: false, + + +/** +* @property _hasKeyEventHandlers +* @description Boolean indicating if the button's "blur", "keydown" and +* "keyup" event handlers are assigned +* @default false +* @protected +* @type Boolean +*/ +_hasKeyEventHandlers: false, + + +/** +* @property _hasMouseEventHandlers +* @description Boolean indicating if the button's "mouseout" and "mousedown" +* and "mouseup" event handlers are assigned +* @default false +* @protected +* @type Boolean +*/ +_hasMouseEventHandlers: false, + + + +// Constants + + +/** +* @property TAG_NAME +* @description The name of the tag to be used for the button's root element. +* @default "SPAN" +* @final +* @type String +*/ +TAG_NAME: "SPAN", + + +/** +* @property CHECK_ACTIVATION_KEYS +* @description Array of numbers representing keys that (when pressed) toggle +* the button's "checked" attribute. +* @default [32] +* @final +* @type Array +*/ +CHECK_ACTIVATION_KEYS: [32], + + +/** +* @property ACTIVATION_KEYS +* @description Array of numbers representing keys that (when presed) toggle +* the button's "active" state. +* @default [13, 32] +* @final +* @type Array +*/ +ACTIVATION_KEYS: [13, 32], + + +/** +* @property OPTION_AREA_WIDTH +* @description Width (in pixels) of the area of a split button that when +* pressed will display a menu. +* @default 20 +* @final +* @type Number +*/ +OPTION_AREA_WIDTH: 20, + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* button's root element. +* @default "yuibutton" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuibutton", + + +/** +* @property RADIO_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "radio." +* @default "Unchecked. Click to check." +* @final +* @type String +*/ +RADIO_DEFAULT_TITLE: "Unchecked. Click to check.", + + +/** +* @property RADIO_CHECKED_TITLE +* @description String representing the title applied to buttons of type "radio" +* when checked. +* @default "Checked. Click to uncheck." +* @final +* @type String +*/ +RADIO_CHECKED_TITLE: "Checked. Click to uncheck.", + + +/** +* @property CHECKBOX_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "checkbox." +* @default "Unchecked. Click to check." +* @final +* @type String +*/ +CHECKBOX_DEFAULT_TITLE: "Unchecked. Click to check.", + + +/** +* @property CHECKBOX_CHECKED_TITLE +* @description String representing the title applied to buttons of type +* "checkbox" when checked. +* @default "Checked. Click to uncheck." +* @final +* @type String +*/ +CHECKBOX_CHECKED_TITLE: "Checked. Click to uncheck.", + + +/** +* @property MENUBUTTON_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "menubutton." +* @default "Menu collapsed. Click to expand." +* @final +* @type String +*/ +MENUBUTTON_DEFAULT_TITLE: "Menu collapsed. Click to expand.", + + +/** +* @property MENUBUTTON_MENU_VISIBLE_TITLE +* @description String representing the title applied to buttons of type +* "menubutton" when the button's menu is visible. +* @default "Menu expanded. Click or press Esc to collapse." +* @final +* @type String +*/ +MENUBUTTON_MENU_VISIBLE_TITLE: + "Menu expanded. Click or press Esc to collapse.", + + +/** +* @property SPLITBUTTON_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "splitebutton." +* @default "Menu collapsed. Click inside option region or press +* Ctrl + Shift + M to show the menu." +* @final +* @type String +*/ +SPLITBUTTON_DEFAULT_TITLE: + "Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.", + + +/** +* @property SPLITBUTTON_OPTION_VISIBLE_TITLE +* @description String representing the title applied to buttons of type +* "splitbutton" when the button's menu is visible. +* @default "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu." +* @final +* @type String +*/ +SPLITBUTTON_OPTION_VISIBLE_TITLE: + "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.", + + +/** +* @property SUBMIT_TITLE +* @description String representing the title applied to buttons of +* type "submit." +* @default "Click to submit form." +* @final +* @type String +*/ +SUBMIT_TITLE: "Click to submit form.", + + + +// Protected attribute setter methods + + +/** +* @method _setType +* @description Sets the value of the button's "type" attribute. +* @protected +* @param {String} p_sType String indicating the value for the button's +* "type" attribute. +*/ +_setType: function(p_sType) { + + if(p_sType == "splitbutton") { + + this.on("option", this._onOption); + + } + +}, + + +/** +* @method _setLabel +* @description Sets the value of the button's "label" attribute. +* @protected +* @param {String} p_sLabel String indicating the value for the button's +* "label" attribute. +*/ +_setLabel: function(p_sLabel) { + + this._button.innerHTML = p_sLabel; + +}, + + +/** +* @method _setTabIndex +* @description Sets the value of the button's "tabindex" attribute. +* @protected +* @param {Number} p_nTabIndex Number indicating the value for the button's +* "tabindex" attribute. +*/ +_setTabIndex: function(p_nTabIndex) { + + this._button.tabIndex = p_nTabIndex; + +}, + + +/** +* @method _setTitle +* @description Sets the value of the button's "title" attribute. +* @protected +* @param {String} p_nTabIndex Number indicating the value for the button's +* "title" attribute. +*/ +_setTitle: function(p_sTitle) { + + if(this.get("type") != "link") { + + var sTitle = p_sTitle; + + if(!sTitle) { + + + var sType = this.get("type"); + + switch(sType) { + + case "radio": + + sTitle = this.RADIO_DEFAULT_TITLE; + + break; + + case "checkbox": + + sTitle = this.CHECKBOX_DEFAULT_TITLE; + + break; + + case "menubutton": + + sTitle = this.MENUBUTTON_DEFAULT_TITLE; + + break; + + case "splitbutton": + + sTitle = this.SPLITBUTTON_DEFAULT_TITLE; + + break; + + case "submit": + + sTitle = this.SUBMIT_TITLE; + + break; + + } + + } + + this._button.title = sTitle; + + } + +}, + + +/** +* @method _setDisabled +* @description Sets the value of the button's "disabled" attribute. +* @protected +* @param {Boolean} p_bDisabled Boolean indicating the value for the button's +* "disabled" attribute. +*/ +_setDisabled: function(p_bDisabled) { + + if(this.get("type") != "link") { + + if(p_bDisabled) { + + if(this.hasFocus()) { + + this.blur(); + + } + + this._button.setAttribute("disabled", "disabled"); + + this.addClass("disabled"); + + } + else { + + this._button.removeAttribute("disabled"); + + this.removeClass("disabled"); + + } + + } + +}, + + +/** +* @method _setAccessKey +* @description Sets the value of the button's "accesskey" attribute. +* @protected +* @param {String} p_sAccessKey String indicating the value for the button's +* "accesskey" attribute. +*/ +_setAccessKey: function(p_sAccessKey) { + + this._button.accessKey = p_sAccessKey; + +}, + + +/** +* @method _setHref +* @description Sets the value of the button's "href" attribute. +* @protected +* @param {String} p_sHref String indicating the value for the button's +* "href" attribute. +*/ +_setHref: function(p_sHref) { + + if(this.get("type") == "link") { + + this._button.href = p_sHref; + + } + +}, + + +/** +* @method _setTarget +* @description Sets the value of the button's "target" attribute. +* @protected +* @param {String} p_sTarget String indicating the value for the button's +* "target" attribute. +*/ +_setTarget: function(p_sTarget) { + + if(this.get("type") == "link") { + + this._button.setAttribute("target", p_sTarget); + + } + +}, + + +/** +* @method _setChecked +* @description Sets the value of the button's "target" attribute. +* @protected +* @param {Boolean} p_bChecked Boolean indicating the value for the button's +* "checked" attribute. +*/ +_setChecked: function(p_bChecked) { + + var sType = this.get("type"), + sTitle; + + if(sType == "checkbox" || sType == "radio") { + + if(p_bChecked) { + + this.addClass("checked"); + + sTitle = (sType == "radio") ? + this.RADIO_CHECKED_TITLE : + this.CHECKBOX_CHECKED_TITLE; + + } + else { + + this.removeClass("checked"); + + sTitle = (sType == "radio") ? + this.RADIO_DEFAULT_TITLE : + this.CHECKBOX_DEFAULT_TITLE; + + } + + this.set("title", sTitle); + + } + +}, + + +/** +* @method _setMenu +* @description Sets the value of the button's "menu" attribute. +* @protected +* @param {Object} p_oMenu Object indicating the value for the button's +* "menu" attribute. +*/ +_setMenu: function(p_oMenu) { + + var Menu = YAHOO.widget.Menu, + oMenu, + me = this; + + if(!Menu) { + + this.logger.log("YAHOO.widget.Menu dependency not met.", "error"); + + return false; + + } + + + function initMenu() { + + if(oMenu) { + + oMenu.showEvent.subscribe(this._onMenuShow, this, true); + oMenu.hideEvent.subscribe(this._onMenuHide, this, true); + oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true); + oMenu.renderEvent.subscribe(this._onMenuRender, this, true); + oMenu.clickEvent.subscribe(this._onMenuClick, this, true); + oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true); + + var oSrcElement = oMenu.srcElement; + + if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") { + + oSrcElement.style.display = "none"; + oSrcElement.parentNode.removeChild(oSrcElement); + + } + + this._menu = oMenu; + + } + else { + + this._menu.destroy(); + this._menu = null; + + } + + } + + + if(p_oMenu instanceof Menu) { + + oMenu = p_oMenu; + + var aItems = oMenu.getItems(), + nItems = aItems.length, + oItem; + + if(nItems > 0) { + + var i = nItems - 1; + + do { + + oItem = aItems[i]; + + if(oItem) { + + oItem.cfg.subscribeToConfigEvent( + "selected", + this._onMenuItemSelected, + oItem, + this + ); + + } + + } + while(i--); + + } + + initMenu.call(this); + + } + else if(Lang.isArray(p_oMenu)) { + + this.on("appendTo", function() { + + oMenu = new Menu( + Dom.generateId(), + { lazyload: true, itemdata: p_oMenu } + ); + + initMenu.call(me); + + }); + + } + else if(Lang.isString(p_oMenu)) { + + Event.onContentReady(p_oMenu, function() { + + oMenu = new Menu(this, { lazyload: true }); + + initMenu.call(me); + + }); + + } + else if(p_oMenu && p_oMenu.nodeName) { + + oMenu = new Menu(p_oMenu, { lazyload: true }); + + initMenu.call(this); + + } + +}, + + +/** +* @method _setOnClick +* @description Sets the value of the button's "onclick" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "onclick" attribute. +*/ +_setOnClick: function(p_oObject) { + + /* + Remove any existing listeners if a "click" event handler has already + been specified. + */ + + if( + this._onclickAttributeValue && + (this._onclickAttributeValue != p_oObject) + ) { + + this.removeListener("click", this._onclickAttributeValue.fn); + + this._onclickAttributeValue = null; + + } + + + if( + !this._onclickAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._onclickAttributeValue = p_oObject; + + } + +}, + +/** +* @method _setOnInit +* @description Sets the value of the button's "init" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "oninit" attribute. +*/ +_setOnInit: function(p_oObject) { + + /* + Remove any existing listeners if a "init" event handler has already + been specified. + */ + + if( + this._oninitAttributeValue && + (this._oninitAttributeValue != p_oObject) + ) { + + this.removeListener("init", this._oninitAttributeValue.fn); + + this._oninitAttributeValue = null; + + } + + + if( + !this._oninitAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._oninitAttributeValue = p_oObject; + + } + +}, + + + +// Protected methods + + +/** +* @method _createButtonElement +* @description Creates the button's element. +* @protected +* @param {String} p_sType String indicating the type of element to create. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} +*/ +_createButtonElement: function(p_sType) { + + var sTagName = this.TAG_NAME, + oElement = document.createElement(sTagName); + + oElement.innerHTML = + + "<" + sTagName + " class=\"first-child\">" + + (p_sType == "link" ? "<a></a>" : "<button type=\"button\"></button>") + + "</" + sTagName + ">"; + + return oElement; + +}, + + +/** +* @method _isActivationKey +* @description Determines if the specified keycode is one that toggles the +* button's "active" state. +* @protected +* @param {Number} p_nKeyCode Number representing the keycode to be evaluated. +* @return {Boolean} +*/ +_isActivationKey: function(p_nKeyCode) { + + var sType = this.get("type"), + aKeyCodes = (sType == "checkbox" || sType == "radio") ? + this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS, + + nKeyCodes = aKeyCodes.length; + + if(nKeyCodes > 0) { + + var i = nKeyCodes - 1; + + do { + + if(p_nKeyCode == aKeyCodes[i]) { + + return true; + + } + + } + while(i--); + + } + +}, + + +/** +* @method _isSplitButtonOptionKey +* @description Determines if the specified keycode is one that toggles the +* display of the split button's menu. +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @return {Boolean} +*/ +_isSplitButtonOptionKey: function(p_oEvent) { + + return ( + p_oEvent.ctrlKey && + p_oEvent.shiftKey && + Event.getCharCode(p_oEvent) == 77 + ); + +}, + + +_originalMaxHeight: -1, + + +/** +* @method _showMenu +* @description Shows the button's menu. +* @protected +*/ +_showMenu: function() { + + var oMenu = this._menu; + + if(oMenu) { + + YAHOO.widget.MenuManager.hideVisible(); + + oMenu.cfg.applyConfig({ + context:[this.get("id"), "tl", "bl"], + clicktohide: false, + constraintoviewport: false, + visible: true + }); + + oMenu.cfg.fireQueue(); + + var nViewportHeight = Dom.getViewportHeight(), + nMenuHeight = oMenu.element.offsetHeight; + + + if((oMenu.cfg.getProperty("y") + nMenuHeight) > nViewportHeight) { + + this.logger.log("Current menu position will place a portion, or " + + "the entire menu outside the boundary of the viewport. " + + "Repositioning the menu to stay inside the viewport."); + + oMenu.align("bl", "tl"); + + var nY = oMenu.cfg.getProperty("y"), + + nScrollTop = ( + document.documentElement.scrollTop || + document.body.scrollTop + ); + + + if(nScrollTop >= nY) { + + if(this._originalMaxHeight == -1) { + + this._originalMaxHeight = + oMenu.cfg.getProperty("maxheight"); + + } + + oMenu.cfg.setProperty( + "maxheight", + (nMenuHeight - ((nScrollTop - nY) + 20)) + ); + + oMenu.align("bl", "tl"); + + } + + } + + oMenu.cfg.setProperty("constraintoviewport", true); + + } + +}, + + +/** +* @method _hideMenu +* @description Hides the button's menu. +* @protected +*/ +_hideMenu: function() { + + var oMenu = this._menu; + + if(oMenu && oMenu.cfg.getProperty("visible")) { + + oMenu.hide(); + + } + +}, + + +/** +* @method _submitForm +* @description Submits the form to which the button belongs. +* @protected +*/ +_submitForm: function() { + + var oForm = this.getForm(); + + if(oForm) { + + YAHOO.widget.Button.addHiddenFieldsToForm(oForm); + + this.createHiddenField(); + + oForm.submit(); + + } + +}, + + + +// Protected event handlers + + +/** +* @method _onMouseOver +* @description "mouseover" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseOver: function(p_oEvent) { + + if(!this.get("disabled")) { + + if(!this._hasMouseEventHandlers) { + + this.on("mouseout", this._onMouseOut); + this.on("mousedown", this._onMouseDown); + this.on("mouseup", this._onMouseUp); + + this._hasMouseEventHandlers = true; + + } + + this.addClass("hover"); + + if(this._activationButtonPressed) { + + this.addClass("active"); + + } + + + if(this._bOptionPressed) { + + this.addClass("activeoption"); + + } + + } + +}, + + +/** +* @method _onMouseOut +* @description "mouseout" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseOut: function(p_oEvent) { + + if(!this.get("disabled")) { + + this.removeClass("hover"); + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + if(this._activationButtonPressed || this._bOptionPressed) { + + Event.on(document, "mouseup", this._onDocumentMouseUp, this, true); + + } + + } + +}, + + +/** +* @method _onDocumentMouseUp +* @description "mouseup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentMouseUp: function(p_oEvent, p_oButton) { + + this._activationButtonPressed = false; + this._bOptionPressed = false; + + var sType = this.get("type"); + + if(sType == "menubutton" || sType == "splitbutton") { + + this.removeClass((sType == "menubutton" ? "active" : "activeoption")); + + this._hideMenu(); + + } + + Event.removeListener(document, "mouseup", this._onDocumentMouseUp); + +}, + + +/** +* @method _onMouseDown +* @description "mousedown" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseDown: function(p_oEvent) { + + if(!this.get("disabled")) { + + if((p_oEvent.which || p_oEvent.button) == 1) { + + if(!this.hasFocus()) { + + this.focus(); + + } + + + var sType = this.get("type"); + + + if(sType == "splitbutton") { + + var oElement = this.get("element"), + nX = Event.getPageX(p_oEvent) - Dom.getX(oElement); + + if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) { + + this.fireEvent("option", p_oEvent); + + } + else { + + this.addClass("active"); + + this._activationButtonPressed = true; + + } + + } + else if(sType == "menubutton") { + + if(this.hasClass("active")) { + + this._hideMenu(); + + this._activationButtonPressed = false; + + } + else { + + this._showMenu(); + + this._activationButtonPressed = true; + + } + + } + else { + + this.addClass("active"); + + this._activationButtonPressed = true; + + } + + + + if(sType == "splitbutton" || sType == "menubutton") { + + var me = this; + + + function onMouseUp() { + + me._hideMenu(); + me.removeListener("mouseup", onMouseUp); + + } + + + this._hideMenuTimerId = window.setTimeout(function() { + + me.on("mouseup", onMouseUp); + + }, 250); + + } + + } + + } + +}, + + +/** +* @method _onMouseUp +* @description "mouseup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseUp: function(p_oEvent) { + + if(!this.get("disabled")) { + + + if(this._hideMenuTimerId) { + + window.clearTimeout(this._hideMenuTimerId); + + } + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.set("checked", !(this.get("checked"))); + + } + + + this._activationButtonPressed = false; + + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + } + +}, + + +/** +* @method _onFocus +* @description "focus" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button that +* fired the event. +*/ +_onFocus: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + this.addClass("focus"); + + if(this._activationKeyPressed) { + + this.addClass("active"); + + } + + m_oFocusedButton = this; + + + if(!this._hasKeyEventHandlers) { + + var oElement = this._button; + + Event.on(oElement, "blur", this._onBlur, this, true); + Event.on(oElement, "keydown", this._onKeyDown, this, true); + Event.on(oElement, "keyup", this._onKeyUp, this, true); + + this._hasKeyEventHandlers = true; + + } + + + this.fireEvent("focus", p_oEvent); + + } + +}, + + +/** +* @method _onBlur +* @description "blur" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onBlur: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + this.removeClass("focus"); + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + if(this._activationKeyPressed) { + + Event.on(document, "keyup", this._onDocumentKeyUp, this, true); + + } + + + m_oFocusedButton = null; + + this.fireEvent("blur", p_oEvent); + + } + +}, + + +/** +* @method _onDocumentKeyUp +* @description "keyup" event handler for the document. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentKeyUp: function(p_oEvent, p_oButton) { + + if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + this._activationKeyPressed = false; + + Event.removeListener(document, "keyup", this._onDocumentKeyUp); + + } + +}, + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onKeyDown: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + if( + this.get("type") == "splitbutton" && + this._isSplitButtonOptionKey(p_oEvent) + ) { + + this.fireEvent("option", p_oEvent); + + } + else if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + if(this.get("type") == "menubutton") { + + this._showMenu(); + + } + else { + + this._activationKeyPressed = true; + + this.addClass("active"); + + } + + } + + + var oMenu = this._menu; + + if( + oMenu && oMenu.cfg.getProperty("visible") && + Event.getCharCode(p_oEvent) == 27 + ) { + + oMenu.hide(); + this.focus(); + + } + + } + +}, + + +/** +* @method _onKeyUp +* @description "keyup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onKeyUp: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.set("checked", !(this.get("checked"))); + + } + + this._activationKeyPressed = false; + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + } + + } + +}, + + +/** +* @method _onClick +* @description "click" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onClick: function(p_oEvent) { + + var sType = this.get("type"), + sTitle; + + switch(sType) { + + case "radio": + case "checkbox": + + if(this.get("checked")) { + + sTitle = (sType == "radio") ? + this.RADIO_CHECKED_TITLE : + this.CHECKBOX_CHECKED_TITLE; + + } + else { + + sTitle = (sType == "radio") ? + this.RADIO_DEFAULT_TITLE : + this.CHECKBOX_DEFAULT_TITLE; + + } + + this.set("title", sTitle); + + break; + + case "submit": + + this._submitForm(); + + break; + + case "reset": + + var oForm = this.getForm(); + + if(oForm) { + + oForm.reset(); + + } + + break; + + case "menubutton": + + sTitle = this._menu.cfg.getProperty("visible") ? + this.MENUBUTTON_MENU_VISIBLE_TITLE : + this.MENUBUTTON_DEFAULT_TITLE; + + this.set("title", sTitle); + + break; + + case "splitbutton": + + var oElement = this.get("element"), + nX = Event.getPageX(p_oEvent) - Dom.getX(oElement); + + if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) { + + return false; + + } + else { + + this._hideMenu(); + + var oSrcElement = this.get("srcelement"); + + if(oSrcElement && oSrcElement.type == "submit") { + + this._submitForm(); + + } + + } + + sTitle = this._menu.cfg.getProperty("visible") ? + this.SPLITBUTTON_OPTION_VISIBLE_TITLE : + this.SPLITBUTTON_DEFAULT_TITLE; + + this.set("title", sTitle); + + break; + + } + +}, + + +/** +* @method _onAppendTo +* @description "appendTo" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onAppendTo: function(p_oEvent) { + + /* + It is necessary to call "getForm" using "setTimeout" to make sure that + the button's "form" property returns a node reference. Sometimes, if + you try to get the reference immediately after appending the field, it + is null. + */ + + var me = this; + + window.setTimeout(function() { + + var oForm = me.getForm(); + + if(oForm) { + + Event.on(oForm, "reset", me._onFormReset, me, true); + Event.on(oForm, "submit", me._onFormSubmit, me, true); + + } + + }, 0); + +}, + + +/** +* @method _onFormSubmit +* @description "submit" event handler for the button's form. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onFormSubmit: function(p_oEvent, p_oButton) { + + var sType = this.get("type"), + oMenuItem = this.get("selectedMenuItem"), + oForm = this.getForm(); + + + if(sType == "radio" || sType == "checkbox") { + + YAHOO.log("Creating hidden field for button: " + this); + + this.createHiddenField(); + + } + else if(oMenuItem) { + + var oSrcElement = this._menu.srcElement; + + if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") { + + oForm.appendChild(oSrcElement); + oSrcElement.selectedIndex = oMenuItem.index; + + } + else { + + var oValue = (oMenuItem.value === null || oMenuItem.value === "") ? + oMenuItem.cfg.getProperty("text") : + oMenuItem.value; + + + if(oValue) { + + var oField = createInputElement( + "hidden", + (this.get("name") + "_options"), + oValue + ); + + oForm.appendChild(oField); + + } + + } + + } + +}, + + +/** +* @method _onFormReset +* @description "reset" event handler for the button's form. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onFormReset: function(p_oEvent, p_oButton) { + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.resetValue("checked"); + + } + + if(this._menu) { + + this.resetValue("selectedMenuItem"); + + } + +}, + + +/** +* @method _onDocumentMouseDown +* @description "mousedown" event handler for the document. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentMouseDown: function(p_oEvent, p_oButton) { + + var oTarget = Event.getTarget(p_oEvent), + oButtonElement = this.get("element"), + oMenuElement = this._menu.element; + + if( + oTarget != oButtonElement && + !Dom.isAncestor(oButtonElement, oTarget) && + oTarget != oMenuElement && + !Dom.isAncestor(oMenuElement, oTarget) + ) { + + this._hideMenu(); + + Event.removeListener( + document, + "mousedown", + this._onDocumentMouseDown + ); + + } + +}, + + +/** +* @method _onOption +* @description "option" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onOption: function(p_oEvent) { + + if(this.hasClass("activeoption")) { + + this._hideMenu(); + + this._bOptionPressed = false; + + } + else { + + this._showMenu(); + + this._bOptionPressed = true; + + } + +}, + + +/** +* @method _onMenuShow +* @description "show" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuShow: function(p_sType, p_aArgs, p_oButton) { + + Event.on(document, "mousedown", this._onDocumentMouseDown, this, true); + + var sTitle, + sClass; + + if(this.get("type") == "splitbutton") { + + sTitle = this.SPLITBUTTON_OPTION_VISIBLE_TITLE; + sClass = "activeoption"; + + } + else { + + sTitle = this.MENUBUTTON_MENU_VISIBLE_TITLE; + sClass = "active"; + + } + + this.addClass(sClass); + this.set("title", sTitle); + +}, + + +/** +* @method _onMenuHide +* @description "hide" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuHide: function(p_sType, p_aArgs, p_oButton) { + + if(this._originalMaxHeight != -1) { + + this._menu.cfg.setProperty("maxheight", this._originalMaxHeight); + + } + + + var sTitle, + sClass; + + if(this.get("type") == "splitbutton") { + + sTitle = this.SPLITBUTTON_DEFAULT_TITLE; + sClass = "activeoption"; + + } + else { + + sTitle = this.MENUBUTTON_DEFAULT_TITLE; + sClass = "active"; + } + + + this.removeClass(sClass); + this.set("title", sTitle); + +}, + + +/** +* @method _onMenuKeyDown +* @description "keydown" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuKeyDown: function(p_sType, p_aArgs, p_oButton) { + + var oEvent = p_aArgs[0]; + + if(Event.getCharCode(oEvent) == 27) { + + this.focus(); + + if(this.get("type") == "splitbutton") { + + this._bOptionPressed = false; + + } + + } + +}, + + +/** +* @method _onMenuRender +* @description "render" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuRender: function(p_sType, p_aArgs, p_oButton) { + + this.get("element").parentNode.appendChild(this._menu.element); + +}, + + +/** +* @method _onMenuItemSelected +* @description "selectedchange" event handler for each item in the +* button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {<a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>} +* p_oItem Object representing the menu item that subscribed to the event. +*/ +_onMenuItemSelected: function(p_sType, p_aArgs, p_oItem) { + + this.set("selectedMenuItem", p_oItem); + +}, + + +/** +* @method _onMenuItemAdded +* @description "itemadded" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {<a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>} +* p_oItem Object representing the menu item that subscribed to the event. +*/ +_onMenuItemAdded: function(p_sType, p_aArgs, p_oItem) { + + var oItem = p_aArgs[0]; + + oItem.cfg.subscribeToConfigEvent( + "selected", + this._onMenuItemSelected, + oItem, + this + ); + +}, + + +/** +* @method _onMenuClick +* @description "click" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the menu's button. +*/ +_onMenuClick: function(p_sType, p_aArgs, p_oButton) { + + var oItem = p_aArgs[0]; + + if(oItem) { + + var oSrcElement = this.get("srcelement"); + + if(oSrcElement && oSrcElement.type == "submit") { + + this._submitForm(); + + } + + this._hideMenu(); + + } + +}, + + + +// Public methods + + +/** +* @method createHiddenField +* @description Creates the button's hidden form field and appends it to its +* parent form. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>} +*/ +createHiddenField: function () { + + if(!this.get("disabled")) { + + var sType = this.get("type"), + + bCheckable = (sType == "checkbox" || sType == "radio"), + + oField = createInputElement( + (bCheckable ? this.get("type") : "hidden"), + this.get("name"), + this.get("value"), + this.get("checked") + ), + + oForm = this.getForm(); + + + if(oField && bCheckable) { + + oField.style.display = "none"; + + } + + + if(oForm) { + + oForm.appendChild(oField); + + } + + + return oField; + + } + +}, + + +/** +* @method init +* @description The Button class's initialization method. +* @param {String} p_oElement String specifying the id attribute of the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oElement Object reference for the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button. +*/ +init: function(p_oElement, p_oAttributes) { + + var sTagName = p_oAttributes.type == "link" ? "A" : "BUTTON", + oSrcElement = p_oAttributes.srcelement; + + + this._button = p_oElement.getElementsByTagName(sTagName)[0]; + + + YAHOO.widget.Button.superclass.init.call( + this, p_oElement, + p_oAttributes + ); + + + m_oButtons[this.get("id")] = this; + + + this.addClass(this.CSS_CLASS_NAME); + this.addClass(this.get("type")); + + Event.on(this._button, "focus", this._onFocus, this, true); + this.on("mouseover", this._onMouseOver); + this.on("click", this._onClick); + this.on("appendTo", this._onAppendTo); + + var oContainer = this.get("container"), + oElement = this.get("element"); + + + if(oContainer) { + + if(Lang.isString(oContainer)) { + + var me = this; + + Event.onContentReady(oContainer, function() { + + me.appendTo(this); + + }); + + } + else { + + this.appendTo(oContainer); + + } + + } + else if( + !Dom.inDocument(oElement) && + oSrcElement && + oSrcElement.tagName.toUpperCase() == "INPUT" + ) { + + var oParentNode = oSrcElement.parentNode; + + if(oParentNode) { + + this.fireEvent("beforeAppendTo", { + type: "beforeAppendTo", + target: oParentNode + }); + + oParentNode.replaceChild(oElement, oSrcElement); + + this.fireEvent("appendTo", { + type: "appendTo", + target: oParentNode + }); + + } + + } + else if( + Dom.inDocument(oElement) && + oSrcElement.tagName.toUpperCase() == "SPAN" + ) { + + var oForm = this.getForm(); + + if(oForm) { + + Event.on(oForm, "reset", this._onFormReset, this, true); + Event.on(oForm, "submit", this._onFormSubmit, this, true); + + } + + } + + this.fireEvent("init"); + + this.logger.log("Initialization completed."); + +}, + + +/** +* @method initAttributes +* @description Initializes all of the configuration attributes used to create +* the button. +* @param {Object} p_oAttributes Object literal specifying a set of +* configuration attributes used to create the button. +*/ +initAttributes: function(p_oAttributes) { + + var oAttributes = p_oAttributes || {}; + + YAHOO.widget.Button.superclass.initAttributes.call(this, oAttributes); + + + /** + * @config type + * @description String specifying the button's type. Possible values are: + * "button," "link," "submit," "reset," "checkbox," "radio," "menubutton," + * and "splitbutton." + * @default "button" + * @type String + */ + this.setAttributeConfig("type", { + + value: (oAttributes.type || "button"), + validator: Lang.isString, + writeOnce: true, + method: this._setType + + }); + + + /** + * @config label + * @description String specifying the button's text label or innerHTML. + * @default null + * @type String + */ + this.setAttributeConfig("label", { + + value: oAttributes.label, + validator: Lang.isString, + method: this._setLabel + + }); + + + /** + * @config value + * @description Object specifying the value for the button. + * @default null + * @type Object + */ + this.setAttributeConfig("value", { + + value: oAttributes.value + + }); + + + /** + * @config name + * @description String specifying the name for the button. + * @default null + * @type String + */ + this.setAttributeConfig("name", { + + value: oAttributes.name, + validator: Lang.isString + + }); + + + /** + * @config tabindex + * @description Number specifying the tabindex for the button. + * @default null + * @type Number + */ + this.setAttributeConfig("tabindex", { + + value: oAttributes.tabindex, + validator: Lang.isNumber, + method: this._setTabIndex + + }); + + + /** + * @config title + * @description String specifying the title for the button. + * @default null + * @type String + */ + this.configureAttribute("title", { + + value: oAttributes.title, + validator: Lang.isString, + method: this._setTitle + + }); + + + /** + * @config disabled + * @description Boolean indicating if the button should be disabled. + * (Disabled buttons are dimmed and will not respond to user input + * or fire events.) + * @default false + * @type Boolean + */ + this.setAttributeConfig("disabled", { + + value: (oAttributes.disabled || false), + validator: Lang.isBoolean, + method: this._setDisabled + + }); + + + /** + * @config href + * @description String specifying the href for the button. Applies only to + * buttons of type "link." + * @type String + */ + this.setAttributeConfig("href", { + + value: oAttributes.href, + validator: Lang.isString, + method: this._setHref + + }); + + + /** + * @config target + * @description String specifying the target for the button. Applies only + * to buttons of type "link." + * @type String + */ + this.setAttributeConfig("target", { + + value: oAttributes.target, + validator: Lang.isString, + method: this._setTarget + + }); + + + /** + * @config checked + * @description Boolean indicating if the button is checked. Applies only + * to buttons of type "radio" and "checkbox." + * @default false + * @type Boolean + */ + this.setAttributeConfig("checked", { + + value: (oAttributes.checked || false), + validator: Lang.isBoolean, + method: this._setChecked + + }); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the button's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("container", { + + value: oAttributes.container + + }); + + + /** + * @config srcelement + * @description Object reference to the HTML element (either + * <code><input></code> or <code><span></code>) used to + * create the button. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("srcelement", { + + value: oAttributes.srcelement, + writeOnce: true + + }); + + + /** + * @config menu + * @description Object specifying the menu for the button. The value can be + * one of the following: + * <ul> + * <li>Object specifying a <a href="YAHOO.widget.Menu.html"> + * YAHOO.widget.Menu</a> instance.</li> + * <li>String specifying the id attribute of the <code><div></code> + * element used to create the menu.</li> + * <li>String specifying the id attribute of the + * <code><select></code> element used to create the menu.</li> + * <li>Object specifying the <code><div></code> element used to + * create the menu.</li> + * <li>Object specifying the <code><select></code> element used to + * create the menu.</li> + * <li>Array of object literals, each representing a set of + * <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> + * configuration attributes.</li> + * <li>Array of strings representing the text labels for each menu item in + * the menu.</li> + * </ul> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String|Array + * @default null + */ + this.setAttributeConfig("menu", { + + value: null, + method: this._setMenu + + }); + + + /** + * @config selectedMenuItem + * @description Reference to the item in the button's menu that is + * currently selected. + * @type <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> + * @default null + */ + this.setAttributeConfig("selectedMenuItem", { + + value: null + + }); + + + /** + * @config onclick + * @description Object literal representing the code to be executed when + * the button is clicked. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("onclick", { + + value: oAttributes.onclick, + method: this._setOnClick + + }); + + + /** + * @config oninit + * @description Object literal representing the code to be executed when + * the button is initialized. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("oninit", { + + value: oAttributes.oninit, + method: this._setOnInit + + }); + +}, + + +/** +* @method focus +* @description Causes the button to receive the focus and fires the button's +* "focus" event. +*/ +focus: function() { + + if(!this.get("disabled")) { + + this._button.focus(); + + } + +}, + + +/** +* @method blur +* @description Causes the button to lose focus and fires the button's +* "blur" event. +*/ +blur: function() { + + if(!this.get("disabled")) { + + this._button.blur(); + + } + +}, + + +/** +* @method hasFocus +* @description Returns a boolean indicating whether or not the button has focus. +* @return {Boolean} +*/ +hasFocus: function() { + + return (m_oFocusedButton == this); + +}, + + +/** +* @method isActive +* @description Returns a boolean indicating whether or not the button is active. +* @return {Boolean} +*/ +isActive: function() { + + return this.hasClass("active"); + +}, + + +/** +* @method getMenu +* @description Returns a reference to the button's menu. +* @return {<a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>} +*/ +getMenu: function() { + + return this._menu; + +}, + + +/** +* @method getForm +* @description Returns a reference to the button's menu. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-40002357">HTMLFormElement</a>} +*/ +getForm: function() { + + return this._button.form; + +}, + + +/** +* @method destroy +* @description Removes the button's element from its parent element and +* removes all event handlers. +*/ +destroy: function() { + + this.logger.log("Destroying ..."); + + var oElement = this.get("element"), + oParentNode = oElement.parentNode, + oMenu = this._menu; + + if(oMenu) { + + this.logger.log("Destroying menu."); + + oMenu.destroy(); + + } + + this.logger.log("Removing DOM event handlers."); + + Event.purgeElement(oElement); + Event.purgeElement(this._button); + Event.removeListener(document, "mouseup", this._onDocumentMouseUp); + Event.removeListener(document, "keyup", this._onDocumentKeyUp); + Event.removeListener(document, "mousedown", this._onDocumentMouseDown); + + var oForm = this.getForm(); + + if(oForm) { + + Event.removeListener(oForm, "reset", this._onFormReset); + + } + + + oParentNode.removeChild(oElement); + + this.logger.log("Removing from document."); + + delete m_oButtons[this.get("id")]; + + this.logger.log("Destroyed."); + +}, + + +/** +* @method toString +* @description Returns a string representing the button. +* @return {String} +*/ +toString: function() { + + return ("Button " + this.get("id")); + +} + +}); + + +/** +* @method addHiddenFieldsToForm +* @description Searches the specified form and adds hidden fields for instances +* of YAHOO.widget.Button that are of type "radio," "checkbox," "menubutton," +* and "splitbutton." +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-40002357">HTMLFormElement</a>} p_oForm Object reference +* for the form to search. +*/ +YAHOO.widget.Button.addHiddenFieldsToForm = function(p_oForm) { + + var aButtons = Dom.getElementsByClassName("yuibutton", "*", p_oForm), + nButtons = aButtons.length; + + + if(nButtons > 0) { + + YAHOO.log("Form contains " + nButtons + " YUI buttons."); + + var oButton = null, + sType = null, + oMenuItem = null, + oMenu = null; + + for(var i=0; i<nButtons; i++) { + + oButton = m_oButtons[aButtons[i].id]; + + if(oButton) { + + sType = oButton.get("type"); + oMenuItem = oButton.get("selectedMenuItem"); + + + if(sType == "radio" || sType == "checkbox") { + + YAHOO.log("Creating hidden field for button: " + oButton); + + oButton.createHiddenField(); + + } + else if(oMenuItem) { + + oMenu = oButton.getMenu(); + + var oSrcElement = oMenu.srcElement; + + if( + oSrcElement && + oSrcElement.tagName.toUpperCase() == "SELECT" + ) { + + oButton.getForm().appendChild(oSrcElement); + oSrcElement.selectedIndex = oMenuItem.index; + + } + else { + + var oValue = ( + oMenuItem.value === null || + oMenuItem.value === "" + ) ? oMenuItem.cfg.getProperty("text") : + oMenuItem.value; + + if(oValue) { + + var oField = createInputElement( + "hidden", + (oButton.get("name") + "_options"), + oValue + ); + + oButton.getForm().appendChild(oField); + + } + + } + + } + + } + + } + + } + +}; + + + +// Events + + +/** +* @event focus +* @description Fires when the menu item receives focus. Passes back a single +* object representing the original DOM event object passed back by the event +* utility (YAHOO.util.Event) when the event was fired. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event blur +* @description Fires when the menu item loses the input focus. Passes back a +* single object representing the original DOM event object passed back by the +* event utility (YAHOO.util.Event) when the event was fired. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event option +* @description Fires when the user invokes the button's option. Passes back a +* single object representing the original DOM event (either "mousedown" or +* "keydown") that caused the "option" event to fire. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event init +* @description Fires when the Button is initialized. Subscribe to this event +* by specifying a value for the "oninit" configuration attribute. Format:<br> +* <code> {<br> <strong>fn:</strong> Function, // The handler to call +* when the event fires.<br> <strong>obj:</strong> Object, // An object +* to pass back to the handler.<br> <strong>scope:</strong> Object // +* The object to use for the scope of the handler.<br> } </code> +* @type YAHOO.util.CustomEvent +*/ + +})(); +(function() { + +// Shorthard for utilities + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang, + Button = YAHOO.widget.Button; + + // Private collection of radio buttons + + m_oButtons = {}; + + + +/** +* The ButtonGroup class creates a set of buttons that are mutually exclusive; +* checking one button in the set will uncheck all others in the button group. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the button group. +* @param {Object} p_oElement Object literal specifying a set of +* configuration attributes used to create the button group. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button group. +* @namespace YAHOO.widget +* @class ButtonGroup +* @constructor +* @extends YAHOO.util.Element +*/ +YAHOO.widget.ButtonGroup = function(p_oElement, p_oAttributes) { + + var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor; + + if( + arguments.length == 1 && + !Lang.isString(p_oElement) && + !p_oElement.nodeName + ) { + + if(!p_oElement.id) { + + var sId = Dom.generateId(); + + p_oElement.id = sId; + + YAHOO.log( + "No value specified for the button group's \"id\" attribute. " + + "Setting button group id to \"" + sId + "\".", + "warn" + ); + + } + + this.logger = new YAHOO.widget.LogWriter("ButtonGroup " + sId); + + this.logger.log( + "No source HTML element. " + + "Building the button group using the set of " + + "configuration attributes." + ); + + fnSuperClass.call(this, (this._createGroupElement()), p_oElement); + + } + else if(Lang.isString(p_oElement)) { + + var me = this; + + Event.onContentReady(p_oElement, function() { + + if(this.nodeName.toUpperCase() == me.TAG_NAME) { + + me.logger = + new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement); + + fnSuperClass.call(me, this, p_oAttributes); + + } + + }); + + } + else { + + var sNodeName = p_oElement.nodeName; + + if(sNodeName && sNodeName == this.TAG_NAME) { + + if(!p_oElement.id) { + + p_oElement.id = Dom.generateId(); + + YAHOO.log( + "No value specified for the button group's \"id\" " + + "attribute. Setting button group id " + + "to \"" + p_oElement.id + "\".", + "warn" + ); + + } + + this.logger = + new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement.id); + + fnSuperClass.call(this, p_oElement, p_oAttributes); + + } + + } + +}; + + +YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, { + + +// Protected properties + + +/** +* @property _buttons +* @description Array of buttons in the button group. +* @default null +* @protected +* @type Array +*/ +_buttons: null, + + +/** +* @property _oninitAttributeValue +* @description Object reference to the button group's current value for the +* "oninit" configuration attribute. +* @default null +* @protected +* @type Object +*/ +_oninitAttributeValue: null, + + + +// Constants + + +/** +* @property TAG_NAME +* @description The name of the tag to be used for the button group's element. +* @default "DIV" +* @final +* @type String +*/ +TAG_NAME: "DIV", + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* button group's element. +* @default "yuibuttongroup" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuibuttongroup", + + + +// Protected methods + + +/** +* @method _createGroupElement +* @description Creates the button group's element. +* @protected +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} +*/ +_createGroupElement: function() { + + var oElement = document.createElement(this.TAG_NAME); + + oElement.className = this.CSS_CLASS_NAME; + + return oElement; + +}, + + + +// Protected attribute setter methods + + +/** +* @method _setDisabled +* @description Sets the value of the button groups's "disabled" attribute. +* @protected +* @param {Boolean} p_bDisabled Boolean indicating the value for the button +* group's "disabled" attribute. +*/ +_setDisabled: function(p_bDisabled) { + + var nButtons = this.getCount(); + + if(nButtons > 0) { + + var i = nButtons - 1; + + do { + + this._buttons[i].set("disabled", p_bDisabled); + + } + while(i--); + + } + +}, + + +/** +* @method _setOnInit +* @description Sets the value of the button group's "init" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "oninit" attribute. +*/ +_setOnInit: function(p_oObject) { + + /* + Remove any existing listeners if a "init" event handler has already + been specified. + */ + + if( + this._oninitAttributeValue && + (this._oninitAttributeValue != p_oObject) + ) { + + this.removeListener("init", this._oninitAttributeValue.fn); + + this._oninitAttributeValue = null; + + } + + + if( + !this._oninitAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._oninitAttributeValue = p_oObject; + + } + +}, + + +// Protected event handlers + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the button group. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onKeyDown: function(p_oEvent) { + + var oTarget = Event.getTarget(p_oEvent), + nCharCode = Event.getCharCode(p_oEvent), + sId = oTarget.parentNode.parentNode.id, + oButton = m_oButtons[sId], + nIndex = -1; + + + if(nCharCode == 37 || nCharCode == 38) { + + nIndex = (oButton.index === 0) ? + (this._buttons.length -1) : (oButton.index - 1); + + } + else if(nCharCode == 39 || nCharCode == 40) { + + nIndex = (oButton.index === (this._buttons.length - 1)) ? + 0 : (oButton.index + 1); + + } + + + if(nIndex > -1) { + + this.check(nIndex); + this.getButton(nIndex).focus(); + + } + +}, + + +/** +* @method _onAppendTo +* @description "appendTo" event handler for the button group. +* @protected +* @param {Event} p_oEvent Object representing the event that was fired. +*/ +_onAppendTo: function(p_oEvent) { + + var aButtons = this._buttons, + nButtons = aButtons.length; + + for(var i=0; i<nButtons; i++) { + + aButtons[i].appendTo(this.get("element")); + + } + +}, + + +/** +* @method _onButtonCheckedChange +* @description "checkedChange" event handler for each button in the +* button group. +* @protected +* @param {Event} p_oEvent Object representing the event that was fired. +* @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} p_oButton +* Object representing the button that +* fired the event. +*/ +_onButtonCheckedChange: function(p_oEvent, p_oButton) { + + var bChecked = p_oEvent.newValue, + oCheckedButton = this.get("checkedButton"); + + if(bChecked && oCheckedButton != p_oButton) { + + if(oCheckedButton) { + + oCheckedButton.set("checked", false, true); + + } + + this.set("checkedButton", p_oButton); + this.set("value", p_oButton.get("value")); + + } + else if(oCheckedButton && !oCheckedButton.set("checked")) { + + oCheckedButton.set("checked", true, true); + + } + +}, + + + +// Public methods + + +/** +* @method init +* @description The ButtonGroup class's initialization method. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the button group. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button group. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button group. +*/ +init: function(p_oElement, p_oAttributes) { + + this._buttons = []; + + YAHOO.widget.ButtonGroup.superclass.init.call( + this, p_oElement, + p_oAttributes + ); + + + this.logger.log( + "Searching for child nodes with the class name " + + "\"yuibutton\" to add to the button group." + ); + + var aButtons = this.getElementsByClassName("yuibutton"); + + + if(aButtons.length > 0) { + + this.logger.log( + "Found " + aButtons.length + " child nodes with the class " + + "name \"yuibutton.\" Attempting to add to button group." + ); + + this.addButtons(aButtons); + + } + + + this.logger.log( + "Searching for child nodes with the type of \"radio\" to add to the " + + " button group." + ); + + function isRadioButton(p_oElement) { + + return (p_oElement.type == "radio"); + + } + + aButtons = Dom.getElementsBy(isRadioButton, "input", this.get("element")); + + + if(aButtons.length > 0) { + + this.logger.log( + "Found " + aButtons.length + " child nodes with the type of " + + "\"radio.\" Attempting to add to button group." + ); + + this.addButtons(aButtons); + + } + + this.on("keydown", this._onKeyDown); + this.on("appendTo", this._onAppendTo); + + var oContainer = this.get("container"); + + if(oContainer) { + + if(Lang.isString(oContainer)) { + + var me = this; + + Event.onContentReady(oContainer, function() { + + me.appendTo(this); + + }); + + } + else { + + this.appendTo(oContainer); + + } + + } + + + this.fireEvent("init"); + + this.logger.log("Initialization completed."); + +}, + + +/** +* @method initAttributes +* @description Initializes all of the configuration attributes used to create +* the button group. +* @param {Object} p_oAttributes Object literal specifying a set of +* configuration attributes used to create the button group. +*/ +initAttributes: function(p_oAttributes) { + + var oAttributes = p_oAttributes || {}; + + YAHOO.widget.ButtonGroup.superclass.initAttributes.call( + this, + oAttributes + ); + + + /** + * @config name + * @description String specifying the name for the button group. This + * name will be applied to each button in the button group. + * @default null + * @type String + */ + this.setAttributeConfig("name", { + + value: oAttributes.name, + validator: Lang.isString + + }); + + + /** + * @config disabled + * @description Boolean indicating if the button group should be disabled. + * Disabling the button group will disable each button in the button group. + * Disabled buttons are dimmed and will not respond to user input + * or fire events. + * @default false + * @type Boolean + */ + this.setAttributeConfig("disabled", { + + value: (oAttributes.disabled || false), + validator: Lang.isBoolean, + method: this._setDisabled + + }); + + + /** + * @config value + * @description Object specifying the value for the button group. + * @default null + * @type Object + */ + this.setAttributeConfig("value", { + + value: oAttributes.value + + }); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the button group's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("container", { + + value: oAttributes.container + + }); + + + /** + * @config checkedButton + * @description Reference for the button in the button group that + * is checked. + * @type {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} + * @default null + */ + this.setAttributeConfig("checkedButton", { + + value: null + + }); + + + /** + * @config oninit + * @description Object literal representing the code to be executed when + * the button group is initialized. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("oninit", { + + value: oAttributes.oninit, + method: this._setOnInit + + }); + +}, + + +/** +* @method addButton +* @description Adds the button to the button group. +* @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} p_oButton +* Object reference for the <a href="YAHOO.widget.Button.html"> +* YAHOO.widget.Button</a> instance to be added to the button group. +* @param {String} p_oButton String specifying the id attribute of the +* <code><input></code> or <code><span></code> element to be +* used to create the button to be added to the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oButton Object reference for the +* <code><input></code> or <code><span></code> element to be +* used to create the button to be added to the button group. +* @param {Object} p_oButton Object literal specifying a set of +* <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> configuration +* attributes used to configure the button to be added to the button group. +* @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} +*/ +addButton: function(p_oButton) { + + var oButton; + + + if(p_oButton instanceof Button && p_oButton.get("type") == "radio") { + + oButton = p_oButton; + + } + else if(!Lang.isString(p_oButton) && !p_oButton.nodeName) { + + p_oButton.type = "radio"; + + oButton = new Button(p_oButton); + + } + else { + + oButton = new Button(p_oButton, { type: "radio" }); + + } + + + if(oButton) { + + var nIndex = this._buttons.length, + sButtonName = oButton.get("name"), + sGroupName = this.get("name"); + + oButton.index = nIndex; + + this._buttons[nIndex] = oButton; + m_oButtons[oButton.get("id")] = oButton; + + + if(sButtonName != sGroupName) { + + oButton.set("name", sGroupName); + + } + + + if(this.get("disabled")) { + + oButton.set("disabled", true); + + } + + + if(oButton.get("checked")) { + + this.set("checkedButton", oButton); + + } + + + oButton.on("checkedChange", this._onButtonCheckedChange, oButton, this); + + this.logger.log("Button " + oButton.get("id") + " added."); + + return oButton; + + } + +}, + + +/** +* @method addButtons +* @description Adds the array of buttons to the button group. +* @param {Array} p_aButtons Array of <a href="YAHOO.widget.Button.html"> +* YAHOO.widget.Button</a> instances to be added +* to the button group. +* @param {Array} p_aButtons Array of strings specifying the id attribute of +* the <code><input></code> or <code><span></code> elements to +* be used to create the buttons to be added to the button group. +* @param {Array} p_aButtons Array of object references for the +* <code><input></code> or <code><span></code> elements to be +* used to create the buttons to be added to the button group. +* @param {Array} p_aButtons Array of object literals, each containing a set of +* <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> configuration +* attributes used to configure each button to be added to the button group. +* @return {Array} +*/ +addButtons: function(p_aButtons) { + + if(Lang.isArray(p_aButtons)) { + + var nButtons = p_aButtons.length, + oButton, + aButtons = []; + + if(nButtons > 0) { + + for(var i=0; i<nButtons; i++) { + + oButton = this.addButton(p_aButtons[i]); + + if(oButton) { + + aButtons[aButtons.length] = oButton; + + } + + } + + if(aButtons.length > 0) { + + this.logger.log(aButtons.length + " buttons added."); + + return aButtons; + + } + + } + + } + +}, + + +/** +* @method removeButton +* @description Removes the button at the specified index from the button group. +* @param {Number} p_nIndex Number specifying the index of the button to be +* removed from the button group. +*/ +removeButton: function(p_nIndex) { + + var oButton = this.getButton(p_nIndex); + + if(oButton) { + + this.logger.log("Removing button " + oButton.get("id") + "."); + + this._buttons.splice(p_nIndex, 1); + delete m_oButtons[oButton.get("id")]; + + oButton.removeListener("checkedChange", this._onButtonCheckedChange); + oButton.destroy(); + + + var nButtons = this._buttons.length; + + if(nButtons > 0) { + + var i = this._buttons.length - 1; + + do { + + this._buttons[i].index = i; + + } + while(i--); + + } + + this.logger.log("Button " + oButton.get("id") + " removed."); + + } + +}, + + +/** +* @method getButton +* @description Returns the button at the specified index. +* @param {Number} p_nIndex The index of the button to retrieve from the +* button group. +* @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} +*/ +getButton: function(p_nIndex) { + + if(Lang.isNumber(p_nIndex)) { + + return this._buttons[p_nIndex]; + + } + +}, + + +/** +* @method getButtons +* @description Returns an array of the buttons in the button group. +* @return {Array} +*/ +getButtons: function() { + + return this._buttons; + +}, + + +/** +* @method getCount +* @description Returns the number of buttons in the button group. +* @return {Number} +*/ +getCount: function() { + + return this._buttons.length; + +}, + + +/** +* @method focus +* @description Sets focus to the button at the specified index. +* @param {Number} p_nIndex Number indicating the index of the button to focus. +*/ +focus: function(p_nIndex) { + + var oButton; + + if(Lang.isNumber(p_nIndex)) { + + oButton = this._buttons[p_nIndex]; + + if(oButton) { + + oButton.focus(); + + } + + } + else { + + var nButtons = this.getCount(); + + for(var i=0; i<nButtons; i++) { + + oButton = this._buttons[i]; + + if(!oButton.get("disabled")) { + + oButton.focus(); + break; + + } + + } + + } + +}, + + +/** +* @method check +* @description Checks the button at the specified index. +* @param {Number} p_nIndex Number indicating the index of the button to check. +*/ +check: function(p_nIndex) { + + var oButton = this.getButton(p_nIndex); + + if(oButton) { + + oButton.set("checked", true); + + } + +}, + + +/** +* @method destroy +* @description Removes the button group's element from its parent element and +* removes all event handlers. +*/ +destroy: function() { + + this.logger.log("Destroying..."); + + var nButtons = this._buttons.length, + oElement = this.get("element"), + oParentNode = oElement.parentNode; + + if(nButtons > 0) { + + var i = this._buttons.length - 1; + + do { + + this._buttons[i].destroy(); + + } + while(i--); + + } + + this.logger.log("Removing DOM event handlers."); + + Event.purgeElement(oElement); + + this.logger.log("Removing from document."); + + oParentNode.removeChild(oElement); + +}, + + +/** +* @method toString +* @description Returns a string representing the button group. +* @return {String} +*/ +toString: function() { + + return ("ButtonGroup " + this.get("id")); + +} + +}); + + + +// Events + + +/** +* @event init +* @description Fires when the button group is initialized. Subscribe to this +* event by specifying a value for the "oninit" configuration attribute. +* Format:<br> <code> {<br> <strong>fn:</strong> Function, // The +* handler to call when the event fires.<br> <strong>obj:</strong> Object, +* // An object to pass back to the handler.<br> <strong>scope:</strong> +* Object // The object to use for the scope of the handler.<br> +* } </code> +* @type YAHOO.util.CustomEvent +*/ + +})(); +YAHOO.register("button", YAHOO.widget.Button, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/button/button-beta-min.js b/interface/ispconfig/interface/js/yui/button/button-beta-min.js new file mode 100644 index 0000000..617ec78 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/button-beta-min.js @@ -0,0 +1,126 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event,Lang=YAHOO.lang,m_oButtons={},m_oFocusedButton=null;YAHOO.widget.Button=function(p_oElement,p_oAttributes){var fnSuperClass=YAHOO.widget.Button.superclass.constructor;if(arguments.length==1&&!Lang.isString(p_oElement)&&!p_oElement.nodeName){if(!p_oElement.id){p_oElement.id=Dom.generateId();} +fnSuperClass.call(this,(this._createButtonElement(p_oElement.type)),p_oElement);} +else{var oConfig={element:null,attributes:(p_oAttributes||{})};if(Lang.isString(p_oElement)){var me=this;Event.onAvailable(p_oElement,function(){var sTagName=this.tagName.toUpperCase();if(sTagName==me.TAG_NAME){oConfig.attributes.id=this.id;} +else if(sTagName=="INPUT"&&!oConfig.attributes.id){oConfig.attributes.id=Dom.generateId();} +oConfig.attributes.srcelement=this;initConfig.call(me,oConfig);if(!oConfig.element){oConfig.element=me._createButtonElement(oConfig.attributes.type);} +fnSuperClass.call(me,oConfig.element,oConfig.attributes);});} +else{var sTagName=p_oElement.tagName.toUpperCase();if(sTagName==this.TAG_NAME){if(p_oElement.id){oConfig.attributes.id=p_oElement.id;} +else{oConfig.attributes.id=Dom.generateId();}} +else if(sTagName=="INPUT"&&!oConfig.attributes.id){oConfig.attributes.id=Dom.generateId();} +oConfig.attributes.srcelement=p_oElement;initConfig.call(this,oConfig);if(!oConfig.element){oConfig.element=this._createButtonElement(oConfig.attributes.type);} +fnSuperClass.call(this,oConfig.element,oConfig.attributes);}}};function getFirstElement(p_oElement){var oFirstChild=p_oElement.firstChild;if(oFirstChild){if(oFirstChild.nodeType==1){return oFirstChild;} +else{var oNextSibling=oFirstChild.nextSibling;if(oNextSibling&&oNextSibling.nodeType==1){return oNextSibling;}}}} +function createInputElement(p_sType,p_sName,p_sValue,p_bChecked){var oInput;if(navigator.userAgent.indexOf("MSIE")!=-1){var sInput="<input type=\""+p_sType+"\" name=\""+p_sName+"\"";if(p_bChecked){sInput+=" checked";} +sInput+=">";oInput=document.createElement(sInput);} +else{oInput=document.createElement("input");oInput.name=p_sName;oInput.type=p_sType;if(p_bChecked){oInput.checked=true;}} +oInput.value=p_sValue;return oInput;} +function setAttributesFromSrcElement(p_oElement,p_oAttributes){var me=this;function setAttributeFromDOMAttribute(p_sAttribute){if(!(p_sAttribute in p_oAttributes)){var oAttribute=p_oElement.getAttributeNode(p_sAttribute);if(oAttribute&&("value"in oAttribute)){p_oAttributes[p_sAttribute]=oAttribute.value;}}} +function setFormElementProperties(){setAttributeFromDOMAttribute("type");if(!("disabled"in p_oAttributes)){p_oAttributes.disabled=p_oElement.disabled;} +setAttributeFromDOMAttribute("name");setAttributeFromDOMAttribute("value");setAttributeFromDOMAttribute("title");} +var sSrcElementTagName=p_oElement.tagName.toUpperCase();if(!("label"in p_oAttributes)){var sText=sSrcElementTagName=="INPUT"?p_oElement.value:p_oElement.innerHTML;if(sText&&sText.length>0){p_oAttributes.label=sText;}} +setAttributeFromDOMAttribute("tabindex");setAttributeFromDOMAttribute("accesskey");switch(sSrcElementTagName){case"A":p_oAttributes.type="link";setAttributeFromDOMAttribute("href");setAttributeFromDOMAttribute("target");break;case"INPUT":setFormElementProperties();if(!("checked"in p_oAttributes)){p_oAttributes.checked=p_oElement.checked;} +break;case"BUTTON":setFormElementProperties();var oRootNode=p_oElement.parentNode.parentNode;if(Dom.hasClass(oRootNode,"checked")){p_oAttributes.checked=true;} +if(Dom.hasClass(oRootNode,"disabled")){p_oAttributes.disabled=true;} +p_oElement.removeAttribute("name");p_oElement.removeAttribute("value");p_oElement.setAttribute("type","button");break;}} +function initConfig(p_oConfig){var oAttributes=p_oConfig.attributes,oSrcElement=oAttributes.srcelement,sSrcElementTagName=oSrcElement.tagName.toUpperCase();if(sSrcElementTagName==this.TAG_NAME){p_oConfig.element=oSrcElement;var oFirstChild=getFirstElement(p_oConfig.element);Dom.addClass(oFirstChild,"first-child");if(oFirstChild){var oButton=getFirstElement(oFirstChild);if(oButton){var sButtonTagName=oButton.tagName.toUpperCase();if(sButtonTagName=="A"||sButtonTagName=="BUTTON"){setAttributesFromSrcElement.call(this,oButton,oAttributes);}}}} +else if(sSrcElementTagName=="INPUT"){setAttributesFromSrcElement.call(this,oSrcElement,oAttributes);}} +YAHOO.extend(YAHOO.widget.Button,YAHOO.util.Element,{_button:null,_menu:null,_onclickAttributeValue:null,_oninitAttributeValue:null,_activationKeyPressed:false,_activationButtonPressed:false,_hasKeyEventHandlers:false,_hasMouseEventHandlers:false,TAG_NAME:"SPAN",CHECK_ACTIVATION_KEYS:[32],ACTIVATION_KEYS:[13,32],OPTION_AREA_WIDTH:20,CSS_CLASS_NAME:"yuibutton",RADIO_DEFAULT_TITLE:"Unchecked. Click to check.",RADIO_CHECKED_TITLE:"Checked. Click to uncheck.",CHECKBOX_DEFAULT_TITLE:"Unchecked. Click to check.",CHECKBOX_CHECKED_TITLE:"Checked. Click to uncheck.",MENUBUTTON_DEFAULT_TITLE:"Menu collapsed. Click to expand.",MENUBUTTON_MENU_VISIBLE_TITLE:"Menu expanded. Click or press Esc to collapse.",SPLITBUTTON_DEFAULT_TITLE:"Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.",SPLITBUTTON_OPTION_VISIBLE_TITLE:"Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.",SUBMIT_TITLE:"Click to submit form.",_setType:function(p_sType){if(p_sType=="splitbutton"){this.on("option",this._onOption);}},_setLabel:function(p_sLabel){this._button.innerHTML=p_sLabel;},_setTabIndex:function(p_nTabIndex){this._button.tabIndex=p_nTabIndex;},_setTitle:function(p_sTitle){if(this.get("type")!="link"){var sTitle=p_sTitle;if(!sTitle){var sType=this.get("type");switch(sType){case"radio":sTitle=this.RADIO_DEFAULT_TITLE;break;case"checkbox":sTitle=this.CHECKBOX_DEFAULT_TITLE;break;case"menubutton":sTitle=this.MENUBUTTON_DEFAULT_TITLE;break;case"splitbutton":sTitle=this.SPLITBUTTON_DEFAULT_TITLE;break;case"submit":sTitle=this.SUBMIT_TITLE;break;}} +this._button.title=sTitle;}},_setDisabled:function(p_bDisabled){if(this.get("type")!="link"){if(p_bDisabled){if(this.hasFocus()){this.blur();} +this._button.setAttribute("disabled","disabled");this.addClass("disabled");} +else{this._button.removeAttribute("disabled");this.removeClass("disabled");}}},_setAccessKey:function(p_sAccessKey){this._button.accessKey=p_sAccessKey;},_setHref:function(p_sHref){if(this.get("type")=="link"){this._button.href=p_sHref;}},_setTarget:function(p_sTarget){if(this.get("type")=="link"){this._button.setAttribute("target",p_sTarget);}},_setChecked:function(p_bChecked){var sType=this.get("type"),sTitle;if(sType=="checkbox"||sType=="radio"){if(p_bChecked){this.addClass("checked");sTitle=(sType=="radio")?this.RADIO_CHECKED_TITLE:this.CHECKBOX_CHECKED_TITLE;} +else{this.removeClass("checked");sTitle=(sType=="radio")?this.RADIO_DEFAULT_TITLE:this.CHECKBOX_DEFAULT_TITLE;} +this.set("title",sTitle);}},_setMenu:function(p_oMenu){var Menu=YAHOO.widget.Menu,oMenu,me=this;if(!Menu){return false;} +function initMenu(){if(oMenu){oMenu.showEvent.subscribe(this._onMenuShow,this,true);oMenu.hideEvent.subscribe(this._onMenuHide,this,true);oMenu.keyDownEvent.subscribe(this._onMenuKeyDown,this,true);oMenu.renderEvent.subscribe(this._onMenuRender,this,true);oMenu.clickEvent.subscribe(this._onMenuClick,this,true);oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded,this,true);var oSrcElement=oMenu.srcElement;if(oSrcElement&&oSrcElement.tagName.toUpperCase()=="SELECT"){oSrcElement.style.display="none";oSrcElement.parentNode.removeChild(oSrcElement);} +this._menu=oMenu;} +else{this._menu.destroy();this._menu=null;}} +if(p_oMenu instanceof Menu){oMenu=p_oMenu;var aItems=oMenu.getItems(),nItems=aItems.length,oItem;if(nItems>0){var i=nItems-1;do{oItem=aItems[i];if(oItem){oItem.cfg.subscribeToConfigEvent("selected",this._onMenuItemSelected,oItem,this);}} +while(i--);} +initMenu.call(this);} +else if(Lang.isArray(p_oMenu)){this.on("appendTo",function(){oMenu=new Menu(Dom.generateId(),{lazyload:true,itemdata:p_oMenu});initMenu.call(me);});} +else if(Lang.isString(p_oMenu)){Event.onContentReady(p_oMenu,function(){oMenu=new Menu(this,{lazyload:true});initMenu.call(me);});} +else if(p_oMenu&&p_oMenu.nodeName){oMenu=new Menu(p_oMenu,{lazyload:true});initMenu.call(this);}},_setOnClick:function(p_oObject){if(this._onclickAttributeValue&&(this._onclickAttributeValue!=p_oObject)){this.removeListener("click",this._onclickAttributeValue.fn);this._onclickAttributeValue=null;} +if(!this._onclickAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("click",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._onclickAttributeValue=p_oObject;}},_setOnInit:function(p_oObject){if(this._oninitAttributeValue&&(this._oninitAttributeValue!=p_oObject)){this.removeListener("init",this._oninitAttributeValue.fn);this._oninitAttributeValue=null;} +if(!this._oninitAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("init",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._oninitAttributeValue=p_oObject;}},_createButtonElement:function(p_sType){var sTagName=this.TAG_NAME,oElement=document.createElement(sTagName);oElement.innerHTML="<"+sTagName+" class=\"first-child\">"+ +(p_sType=="link"?"<a></a>":"<button type=\"button\"></button>")+"</"+sTagName+">";return oElement;},_isActivationKey:function(p_nKeyCode){var sType=this.get("type"),aKeyCodes=(sType=="checkbox"||sType=="radio")?this.CHECK_ACTIVATION_KEYS:this.ACTIVATION_KEYS,nKeyCodes=aKeyCodes.length;if(nKeyCodes>0){var i=nKeyCodes-1;do{if(p_nKeyCode==aKeyCodes[i]){return true;}} +while(i--);}},_isSplitButtonOptionKey:function(p_oEvent){return(p_oEvent.ctrlKey&&p_oEvent.shiftKey&&Event.getCharCode(p_oEvent)==77);},_originalMaxHeight:-1,_showMenu:function(){var oMenu=this._menu;if(oMenu){YAHOO.widget.MenuManager.hideVisible();oMenu.cfg.applyConfig({context:[this.get("id"),"tl","bl"],clicktohide:false,constraintoviewport:false,visible:true});oMenu.cfg.fireQueue();var nViewportHeight=Dom.getViewportHeight(),nMenuHeight=oMenu.element.offsetHeight;if((oMenu.cfg.getProperty("y")+nMenuHeight)>nViewportHeight){oMenu.align("bl","tl");var nY=oMenu.cfg.getProperty("y"),nScrollTop=(document.documentElement.scrollTop||document.body.scrollTop);if(nScrollTop>=nY){if(this._originalMaxHeight==-1){this._originalMaxHeight=oMenu.cfg.getProperty("maxheight");} +oMenu.cfg.setProperty("maxheight",(nMenuHeight-((nScrollTop-nY)+20)));oMenu.align("bl","tl");}} +oMenu.cfg.setProperty("constraintoviewport",true);}},_hideMenu:function(){var oMenu=this._menu;if(oMenu&&oMenu.cfg.getProperty("visible")){oMenu.hide();}},_submitForm:function(){var oForm=this.getForm();if(oForm){YAHOO.widget.Button.addHiddenFieldsToForm(oForm);this.createHiddenField();oForm.submit();}},_onMouseOver:function(p_oEvent){if(!this.get("disabled")){if(!this._hasMouseEventHandlers){this.on("mouseout",this._onMouseOut);this.on("mousedown",this._onMouseDown);this.on("mouseup",this._onMouseUp);this._hasMouseEventHandlers=true;} +this.addClass("hover");if(this._activationButtonPressed){this.addClass("active");} +if(this._bOptionPressed){this.addClass("activeoption");}}},_onMouseOut:function(p_oEvent){if(!this.get("disabled")){this.removeClass("hover");if(this.get("type")!="menubutton"){this.removeClass("active");} +if(this._activationButtonPressed||this._bOptionPressed){Event.on(document,"mouseup",this._onDocumentMouseUp,this,true);}}},_onDocumentMouseUp:function(p_oEvent,p_oButton){this._activationButtonPressed=false;this._bOptionPressed=false;var sType=this.get("type");if(sType=="menubutton"||sType=="splitbutton"){this.removeClass((sType=="menubutton"?"active":"activeoption"));this._hideMenu();} +Event.removeListener(document,"mouseup",this._onDocumentMouseUp);},_onMouseDown:function(p_oEvent){if(!this.get("disabled")){if((p_oEvent.which||p_oEvent.button)==1){if(!this.hasFocus()){this.focus();} +var sType=this.get("type");if(sType=="splitbutton"){var oElement=this.get("element"),nX=Event.getPageX(p_oEvent)-Dom.getX(oElement);if((oElement.offsetWidth-this.OPTION_AREA_WIDTH)<nX){this.fireEvent("option",p_oEvent);} +else{this.addClass("active");this._activationButtonPressed=true;}} +else if(sType=="menubutton"){if(this.hasClass("active")){this._hideMenu();this._activationButtonPressed=false;} +else{this._showMenu();this._activationButtonPressed=true;}} +else{this.addClass("active");this._activationButtonPressed=true;} +if(sType=="splitbutton"||sType=="menubutton"){var me=this;function onMouseUp(){me._hideMenu();me.removeListener("mouseup",onMouseUp);} +this._hideMenuTimerId=window.setTimeout(function(){me.on("mouseup",onMouseUp);},250);}}}},_onMouseUp:function(p_oEvent){if(!this.get("disabled")){if(this._hideMenuTimerId){window.clearTimeout(this._hideMenuTimerId);} +var sType=this.get("type");if(sType=="checkbox"||sType=="radio"){this.set("checked",!(this.get("checked")));} +this._activationButtonPressed=false;if(this.get("type")!="menubutton"){this.removeClass("active");}}},_onFocus:function(p_oEvent,p_oButton){if(!this.get("disabled")){this.addClass("focus");if(this._activationKeyPressed){this.addClass("active");} +m_oFocusedButton=this;if(!this._hasKeyEventHandlers){var oElement=this._button;Event.on(oElement,"blur",this._onBlur,this,true);Event.on(oElement,"keydown",this._onKeyDown,this,true);Event.on(oElement,"keyup",this._onKeyUp,this,true);this._hasKeyEventHandlers=true;} +this.fireEvent("focus",p_oEvent);}},_onBlur:function(p_oEvent,p_oButton){if(!this.get("disabled")){this.removeClass("focus");if(this.get("type")!="menubutton"){this.removeClass("active");} +if(this._activationKeyPressed){Event.on(document,"keyup",this._onDocumentKeyUp,this,true);} +m_oFocusedButton=null;this.fireEvent("blur",p_oEvent);}},_onDocumentKeyUp:function(p_oEvent,p_oButton){if(this._isActivationKey(Event.getCharCode(p_oEvent))){this._activationKeyPressed=false;Event.removeListener(document,"keyup",this._onDocumentKeyUp);}},_onKeyDown:function(p_oEvent,p_oButton){if(!this.get("disabled")){if(this.get("type")=="splitbutton"&&this._isSplitButtonOptionKey(p_oEvent)){this.fireEvent("option",p_oEvent);} +else if(this._isActivationKey(Event.getCharCode(p_oEvent))){if(this.get("type")=="menubutton"){this._showMenu();} +else{this._activationKeyPressed=true;this.addClass("active");}} +var oMenu=this._menu;if(oMenu&&oMenu.cfg.getProperty("visible")&&Event.getCharCode(p_oEvent)==27){oMenu.hide();this.focus();}}},_onKeyUp:function(p_oEvent,p_oButton){if(!this.get("disabled")){if(this._isActivationKey(Event.getCharCode(p_oEvent))){var sType=this.get("type");if(sType=="checkbox"||sType=="radio"){this.set("checked",!(this.get("checked")));} +this._activationKeyPressed=false;if(this.get("type")!="menubutton"){this.removeClass("active");}}}},_onClick:function(p_oEvent){var sType=this.get("type"),sTitle;switch(sType){case"radio":case"checkbox":if(this.get("checked")){sTitle=(sType=="radio")?this.RADIO_CHECKED_TITLE:this.CHECKBOX_CHECKED_TITLE;} +else{sTitle=(sType=="radio")?this.RADIO_DEFAULT_TITLE:this.CHECKBOX_DEFAULT_TITLE;} +this.set("title",sTitle);break;case"submit":this._submitForm();break;case"reset":var oForm=this.getForm();if(oForm){oForm.reset();} +break;case"menubutton":sTitle=this._menu.cfg.getProperty("visible")?this.MENUBUTTON_MENU_VISIBLE_TITLE:this.MENUBUTTON_DEFAULT_TITLE;this.set("title",sTitle);break;case"splitbutton":var oElement=this.get("element"),nX=Event.getPageX(p_oEvent)-Dom.getX(oElement);if((oElement.offsetWidth-this.OPTION_AREA_WIDTH)<nX){return false;} +else{this._hideMenu();var oSrcElement=this.get("srcelement");if(oSrcElement&&oSrcElement.type=="submit"){this._submitForm();}} +sTitle=this._menu.cfg.getProperty("visible")?this.SPLITBUTTON_OPTION_VISIBLE_TITLE:this.SPLITBUTTON_DEFAULT_TITLE;this.set("title",sTitle);break;}},_onAppendTo:function(p_oEvent){var me=this;window.setTimeout(function(){var oForm=me.getForm();if(oForm){Event.on(oForm,"reset",me._onFormReset,me,true);Event.on(oForm,"submit",me._onFormSubmit,me,true);}},0);},_onFormSubmit:function(p_oEvent,p_oButton){var sType=this.get("type"),oMenuItem=this.get("selectedMenuItem"),oForm=this.getForm();if(sType=="radio"||sType=="checkbox"){this.createHiddenField();} +else if(oMenuItem){var oSrcElement=this._menu.srcElement;if(oSrcElement&&oSrcElement.tagName.toUpperCase()=="SELECT"){oForm.appendChild(oSrcElement);oSrcElement.selectedIndex=oMenuItem.index;} +else{var oValue=(oMenuItem.value===null||oMenuItem.value==="")?oMenuItem.cfg.getProperty("text"):oMenuItem.value;if(oValue){var oField=createInputElement("hidden",(this.get("name")+"_options"),oValue);oForm.appendChild(oField);}}}},_onFormReset:function(p_oEvent,p_oButton){var sType=this.get("type");if(sType=="checkbox"||sType=="radio"){this.resetValue("checked");} +if(this._menu){this.resetValue("selectedMenuItem");}},_onDocumentMouseDown:function(p_oEvent,p_oButton){var oTarget=Event.getTarget(p_oEvent),oButtonElement=this.get("element"),oMenuElement=this._menu.element;if(oTarget!=oButtonElement&&!Dom.isAncestor(oButtonElement,oTarget)&&oTarget!=oMenuElement&&!Dom.isAncestor(oMenuElement,oTarget)){this._hideMenu();Event.removeListener(document,"mousedown",this._onDocumentMouseDown);}},_onOption:function(p_oEvent){if(this.hasClass("activeoption")){this._hideMenu();this._bOptionPressed=false;} +else{this._showMenu();this._bOptionPressed=true;}},_onMenuShow:function(p_sType,p_aArgs,p_oButton){Event.on(document,"mousedown",this._onDocumentMouseDown,this,true);var sTitle,sClass;if(this.get("type")=="splitbutton"){sTitle=this.SPLITBUTTON_OPTION_VISIBLE_TITLE;sClass="activeoption";} +else{sTitle=this.MENUBUTTON_MENU_VISIBLE_TITLE;sClass="active";} +this.addClass(sClass);this.set("title",sTitle);},_onMenuHide:function(p_sType,p_aArgs,p_oButton){if(this._originalMaxHeight!=-1){this._menu.cfg.setProperty("maxheight",this._originalMaxHeight);} +var sTitle,sClass;if(this.get("type")=="splitbutton"){sTitle=this.SPLITBUTTON_DEFAULT_TITLE;sClass="activeoption";} +else{sTitle=this.MENUBUTTON_DEFAULT_TITLE;sClass="active";} +this.removeClass(sClass);this.set("title",sTitle);},_onMenuKeyDown:function(p_sType,p_aArgs,p_oButton){var oEvent=p_aArgs[0];if(Event.getCharCode(oEvent)==27){this.focus();if(this.get("type")=="splitbutton"){this._bOptionPressed=false;}}},_onMenuRender:function(p_sType,p_aArgs,p_oButton){this.get("element").parentNode.appendChild(this._menu.element);},_onMenuItemSelected:function(p_sType,p_aArgs,p_oItem){this.set("selectedMenuItem",p_oItem);},_onMenuItemAdded:function(p_sType,p_aArgs,p_oItem){var oItem=p_aArgs[0];oItem.cfg.subscribeToConfigEvent("selected",this._onMenuItemSelected,oItem,this);},_onMenuClick:function(p_sType,p_aArgs,p_oButton){var oItem=p_aArgs[0];if(oItem){var oSrcElement=this.get("srcelement");if(oSrcElement&&oSrcElement.type=="submit"){this._submitForm();} +this._hideMenu();}},createHiddenField:function(){if(!this.get("disabled")){var sType=this.get("type"),bCheckable=(sType=="checkbox"||sType=="radio"),oField=createInputElement((bCheckable?this.get("type"):"hidden"),this.get("name"),this.get("value"),this.get("checked")),oForm=this.getForm();if(oField&&bCheckable){oField.style.display="none";} +if(oForm){oForm.appendChild(oField);} +return oField;}},init:function(p_oElement,p_oAttributes){var sTagName=p_oAttributes.type=="link"?"A":"BUTTON",oSrcElement=p_oAttributes.srcelement;this._button=p_oElement.getElementsByTagName(sTagName)[0];YAHOO.widget.Button.superclass.init.call(this,p_oElement,p_oAttributes);m_oButtons[this.get("id")]=this;this.addClass(this.CSS_CLASS_NAME);this.addClass(this.get("type"));Event.on(this._button,"focus",this._onFocus,this,true);this.on("mouseover",this._onMouseOver);this.on("click",this._onClick);this.on("appendTo",this._onAppendTo);var oContainer=this.get("container"),oElement=this.get("element");if(oContainer){if(Lang.isString(oContainer)){var me=this;Event.onContentReady(oContainer,function(){me.appendTo(this);});} +else{this.appendTo(oContainer);}} +else if(!Dom.inDocument(oElement)&&oSrcElement&&oSrcElement.tagName.toUpperCase()=="INPUT"){var oParentNode=oSrcElement.parentNode;if(oParentNode){this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:oParentNode});oParentNode.replaceChild(oElement,oSrcElement);this.fireEvent("appendTo",{type:"appendTo",target:oParentNode});}} +else if(Dom.inDocument(oElement)&&oSrcElement.tagName.toUpperCase()=="SPAN"){var oForm=this.getForm();if(oForm){Event.on(oForm,"reset",this._onFormReset,this,true);Event.on(oForm,"submit",this._onFormSubmit,this,true);}} +this.fireEvent("init");},initAttributes:function(p_oAttributes){var oAttributes=p_oAttributes||{};YAHOO.widget.Button.superclass.initAttributes.call(this,oAttributes);this.setAttributeConfig("type",{value:(oAttributes.type||"button"),validator:Lang.isString,writeOnce:true,method:this._setType});this.setAttributeConfig("label",{value:oAttributes.label,validator:Lang.isString,method:this._setLabel});this.setAttributeConfig("value",{value:oAttributes.value});this.setAttributeConfig("name",{value:oAttributes.name,validator:Lang.isString});this.setAttributeConfig("tabindex",{value:oAttributes.tabindex,validator:Lang.isNumber,method:this._setTabIndex});this.configureAttribute("title",{value:oAttributes.title,validator:Lang.isString,method:this._setTitle});this.setAttributeConfig("disabled",{value:(oAttributes.disabled||false),validator:Lang.isBoolean,method:this._setDisabled});this.setAttributeConfig("href",{value:oAttributes.href,validator:Lang.isString,method:this._setHref});this.setAttributeConfig("target",{value:oAttributes.target,validator:Lang.isString,method:this._setTarget});this.setAttributeConfig("checked",{value:(oAttributes.checked||false),validator:Lang.isBoolean,method:this._setChecked});this.setAttributeConfig("container",{value:oAttributes.container});this.setAttributeConfig("srcelement",{value:oAttributes.srcelement,writeOnce:true});this.setAttributeConfig("menu",{value:null,method:this._setMenu});this.setAttributeConfig("selectedMenuItem",{value:null});this.setAttributeConfig("onclick",{value:oAttributes.onclick,method:this._setOnClick});this.setAttributeConfig("oninit",{value:oAttributes.oninit,method:this._setOnInit});},focus:function(){if(!this.get("disabled")){this._button.focus();}},blur:function(){if(!this.get("disabled")){this._button.blur();}},hasFocus:function(){return(m_oFocusedButton==this);},isActive:function(){return this.hasClass("active");},getMenu:function(){return this._menu;},getForm:function(){return this._button.form;},destroy:function(){var oElement=this.get("element"),oParentNode=oElement.parentNode,oMenu=this._menu;if(oMenu){oMenu.destroy();} +Event.purgeElement(oElement);Event.purgeElement(this._button);Event.removeListener(document,"mouseup",this._onDocumentMouseUp);Event.removeListener(document,"keyup",this._onDocumentKeyUp);Event.removeListener(document,"mousedown",this._onDocumentMouseDown);var oForm=this.getForm();if(oForm){Event.removeListener(oForm,"reset",this._onFormReset);} +oParentNode.removeChild(oElement);delete m_oButtons[this.get("id")];},toString:function(){return("Button "+this.get("id"));}});YAHOO.widget.Button.addHiddenFieldsToForm=function(p_oForm){var aButtons=Dom.getElementsByClassName("yuibutton","*",p_oForm),nButtons=aButtons.length;if(nButtons>0){var oButton=null,sType=null,oMenuItem=null,oMenu=null;for(var i=0;i<nButtons;i++){oButton=m_oButtons[aButtons[i].id];if(oButton){sType=oButton.get("type");oMenuItem=oButton.get("selectedMenuItem");if(sType=="radio"||sType=="checkbox"){oButton.createHiddenField();} +else if(oMenuItem){oMenu=oButton.getMenu();var oSrcElement=oMenu.srcElement;if(oSrcElement&&oSrcElement.tagName.toUpperCase()=="SELECT"){oButton.getForm().appendChild(oSrcElement);oSrcElement.selectedIndex=oMenuItem.index;} +else{var oValue=(oMenuItem.value===null||oMenuItem.value==="")?oMenuItem.cfg.getProperty("text"):oMenuItem.value;if(oValue){var oField=createInputElement("hidden",(oButton.get("name")+"_options"),oValue);oButton.getForm().appendChild(oField);}}}}}}};})();(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event,Lang=YAHOO.lang,Button=YAHOO.widget.Button;m_oButtons={};YAHOO.widget.ButtonGroup=function(p_oElement,p_oAttributes){var fnSuperClass=YAHOO.widget.ButtonGroup.superclass.constructor;if(arguments.length==1&&!Lang.isString(p_oElement)&&!p_oElement.nodeName){if(!p_oElement.id){var sId=Dom.generateId();p_oElement.id=sId;} +fnSuperClass.call(this,(this._createGroupElement()),p_oElement);} +else if(Lang.isString(p_oElement)){var me=this;Event.onContentReady(p_oElement,function(){if(this.nodeName.toUpperCase()==me.TAG_NAME){fnSuperClass.call(me,this,p_oAttributes);}});} +else{var sNodeName=p_oElement.nodeName;if(sNodeName&&sNodeName==this.TAG_NAME){if(!p_oElement.id){p_oElement.id=Dom.generateId();} +fnSuperClass.call(this,p_oElement,p_oAttributes);}}};YAHOO.extend(YAHOO.widget.ButtonGroup,YAHOO.util.Element,{_buttons:null,_oninitAttributeValue:null,TAG_NAME:"DIV",CSS_CLASS_NAME:"yuibuttongroup",_createGroupElement:function(){var oElement=document.createElement(this.TAG_NAME);oElement.className=this.CSS_CLASS_NAME;return oElement;},_setDisabled:function(p_bDisabled){var nButtons=this.getCount();if(nButtons>0){var i=nButtons-1;do{this._buttons[i].set("disabled",p_bDisabled);} +while(i--);}},_setOnInit:function(p_oObject){if(this._oninitAttributeValue&&(this._oninitAttributeValue!=p_oObject)){this.removeListener("init",this._oninitAttributeValue.fn);this._oninitAttributeValue=null;} +if(!this._oninitAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("init",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._oninitAttributeValue=p_oObject;}},_onKeyDown:function(p_oEvent){var oTarget=Event.getTarget(p_oEvent),nCharCode=Event.getCharCode(p_oEvent),sId=oTarget.parentNode.parentNode.id,oButton=m_oButtons[sId],nIndex=-1;if(nCharCode==37||nCharCode==38){nIndex=(oButton.index===0)?(this._buttons.length-1):(oButton.index-1);} +else if(nCharCode==39||nCharCode==40){nIndex=(oButton.index===(this._buttons.length-1))?0:(oButton.index+1);} +if(nIndex>-1){this.check(nIndex);this.getButton(nIndex).focus();}},_onAppendTo:function(p_oEvent){var aButtons=this._buttons,nButtons=aButtons.length;for(var i=0;i<nButtons;i++){aButtons[i].appendTo(this.get("element"));}},_onButtonCheckedChange:function(p_oEvent,p_oButton){var bChecked=p_oEvent.newValue,oCheckedButton=this.get("checkedButton");if(bChecked&&oCheckedButton!=p_oButton){if(oCheckedButton){oCheckedButton.set("checked",false,true);} +this.set("checkedButton",p_oButton);this.set("value",p_oButton.get("value"));} +else if(oCheckedButton&&!oCheckedButton.set("checked")){oCheckedButton.set("checked",true,true);}},init:function(p_oElement,p_oAttributes){this._buttons=[];YAHOO.widget.ButtonGroup.superclass.init.call(this,p_oElement,p_oAttributes);var aButtons=this.getElementsByClassName("yuibutton");if(aButtons.length>0){this.addButtons(aButtons);} +function isRadioButton(p_oElement){return(p_oElement.type=="radio");} +aButtons=Dom.getElementsBy(isRadioButton,"input",this.get("element"));if(aButtons.length>0){this.addButtons(aButtons);} +this.on("keydown",this._onKeyDown);this.on("appendTo",this._onAppendTo);var oContainer=this.get("container");if(oContainer){if(Lang.isString(oContainer)){var me=this;Event.onContentReady(oContainer,function(){me.appendTo(this);});} +else{this.appendTo(oContainer);}} +this.fireEvent("init");},initAttributes:function(p_oAttributes){var oAttributes=p_oAttributes||{};YAHOO.widget.ButtonGroup.superclass.initAttributes.call(this,oAttributes);this.setAttributeConfig("name",{value:oAttributes.name,validator:Lang.isString});this.setAttributeConfig("disabled",{value:(oAttributes.disabled||false),validator:Lang.isBoolean,method:this._setDisabled});this.setAttributeConfig("value",{value:oAttributes.value});this.setAttributeConfig("container",{value:oAttributes.container});this.setAttributeConfig("checkedButton",{value:null});this.setAttributeConfig("oninit",{value:oAttributes.oninit,method:this._setOnInit});},addButton:function(p_oButton){var oButton;if(p_oButton instanceof Button&&p_oButton.get("type")=="radio"){oButton=p_oButton;} +else if(!Lang.isString(p_oButton)&&!p_oButton.nodeName){p_oButton.type="radio";oButton=new Button(p_oButton);} +else{oButton=new Button(p_oButton,{type:"radio"});} +if(oButton){var nIndex=this._buttons.length,sButtonName=oButton.get("name"),sGroupName=this.get("name");oButton.index=nIndex;this._buttons[nIndex]=oButton;m_oButtons[oButton.get("id")]=oButton;if(sButtonName!=sGroupName){oButton.set("name",sGroupName);} +if(this.get("disabled")){oButton.set("disabled",true);} +if(oButton.get("checked")){this.set("checkedButton",oButton);} +oButton.on("checkedChange",this._onButtonCheckedChange,oButton,this);return oButton;}},addButtons:function(p_aButtons){if(Lang.isArray(p_aButtons)){var nButtons=p_aButtons.length,oButton,aButtons=[];if(nButtons>0){for(var i=0;i<nButtons;i++){oButton=this.addButton(p_aButtons[i]);if(oButton){aButtons[aButtons.length]=oButton;}} +if(aButtons.length>0){return aButtons;}}}},removeButton:function(p_nIndex){var oButton=this.getButton(p_nIndex);if(oButton){this._buttons.splice(p_nIndex,1);delete m_oButtons[oButton.get("id")];oButton.removeListener("checkedChange",this._onButtonCheckedChange);oButton.destroy();var nButtons=this._buttons.length;if(nButtons>0){var i=this._buttons.length-1;do{this._buttons[i].index=i;} +while(i--);}}},getButton:function(p_nIndex){if(Lang.isNumber(p_nIndex)){return this._buttons[p_nIndex];}},getButtons:function(){return this._buttons;},getCount:function(){return this._buttons.length;},focus:function(p_nIndex){var oButton;if(Lang.isNumber(p_nIndex)){oButton=this._buttons[p_nIndex];if(oButton){oButton.focus();}} +else{var nButtons=this.getCount();for(var i=0;i<nButtons;i++){oButton=this._buttons[i];if(!oButton.get("disabled")){oButton.focus();break;}}}},check:function(p_nIndex){var oButton=this.getButton(p_nIndex);if(oButton){oButton.set("checked",true);}},destroy:function(){var nButtons=this._buttons.length,oElement=this.get("element"),oParentNode=oElement.parentNode;if(nButtons>0){var i=this._buttons.length-1;do{this._buttons[i].destroy();} +while(i--);} +Event.purgeElement(oElement);oParentNode.removeChild(oElement);},toString:function(){return("ButtonGroup "+this.get("id"));}});})();YAHOO.register("button",YAHOO.widget.Button,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/button/button-beta.js b/interface/ispconfig/interface/js/yui/button/button-beta.js new file mode 100644 index 0000000..a102330 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/button/button-beta.js @@ -0,0 +1,3949 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* @module button +* @description <p>The Button Control enables the creation of rich, graphical +* buttons that function like traditional HTML form buttons. <em>Unlike</em> +* tradition HTML form buttons, buttons created with the Button Control can have +* a label that is different from its value. With the inclusion of the optional +* <a href="module_menu.html">Menu Control</a>, the Button Control can also be +* used to create menu buttons and split buttons, controls that are not +* available natively in HTML. The Button Control can also be thought of as a +* way to create more visually engaging implementations of the browser's +* default radio-button and check-box controls.</p> +* <p>The Button Control supports the following types:</p> +* <dl> +* <dt>button</dt> +* <dd>Basic push button that can execute a user-specified command when +* pressed.</dd> +* <dt>link</dt> +* <dd>Navigates to a specified url when pressed.</dd> +* <dt>submit</dt> +* <dd>Submits the parent form when pressed.</dd> +* <dt>reset</dt> +* <dd>Resets the parent form when pressed.</dd> +* <dt>checkbox</dt> +* <dd>Maintains a "checked" state that can be toggled on and off.</dd> +* <dt>radio</dt> +* <dd>Maintains a "checked" state that can be toggled on and off. Use with +* the ButtonGroup class to create a set of controls that are mutually +* exclusive; checking one button in the set will uncheck all others in +* the group.</dd> +* <dt>menubutton</dt> +* <dd>When pressed will show/hide a menu.</dd> +* <dt>splitbutton</dt> +* <dd>Can execute a user-specified command or display a menu when pressed.</dd> +* </dl> +* @title Button +* @namespace YAHOO.widget +* @requires yahoo, dom, element, event +* @optional container, menu +* @beta +*/ + + +(function() { + +// Shorthard for utilities + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang, + + + // Private member variables + + m_oButtons = {}, + m_oFocusedButton = null; + + + +// Constructor + + +/** +* The Button class creates a rich, graphical button. +* @param {String} p_oElement String specifying the id attribute of the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oElement Object reference for the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button. +* @namespace YAHOO.widget +* @class Button +* @constructor +* @extends YAHOO.util.Element +*/ +YAHOO.widget.Button = function(p_oElement, p_oAttributes) { + + var fnSuperClass = YAHOO.widget.Button.superclass.constructor; + + if( + arguments.length == 1 && + !Lang.isString(p_oElement) && + !p_oElement.nodeName + ) { + + if(!p_oElement.id) { + + p_oElement.id = Dom.generateId(); + + + } + + + + fnSuperClass.call( + this, + (this._createButtonElement(p_oElement.type)), + p_oElement + ); + + } + else { + + var oConfig = { + + element: null, + attributes: (p_oAttributes || {}) + + }; + + + if(Lang.isString(p_oElement)) { + + var me = this; + + Event.onAvailable(p_oElement, function() { + + var sTagName = this.tagName.toUpperCase(); + + if(sTagName == me.TAG_NAME) { + + oConfig.attributes.id = this.id; + + } + else if(sTagName == "INPUT" && !oConfig.attributes.id) { + + oConfig.attributes.id = Dom.generateId(); + + + } + + + + + oConfig.attributes.srcelement = this; + + initConfig.call(me, oConfig); + + + if(!oConfig.element) { + + + oConfig.element = + me._createButtonElement(oConfig.attributes.type); + + } + + fnSuperClass.call(me, oConfig.element, oConfig.attributes); + + }); + + } + else { + + var sTagName = p_oElement.tagName.toUpperCase(); + + if(sTagName == this.TAG_NAME) { + + if(p_oElement.id) { + + oConfig.attributes.id = p_oElement.id; + + } + else { + + oConfig.attributes.id = Dom.generateId(); + + + } + + + } + else if(sTagName == "INPUT" && !oConfig.attributes.id) { + + oConfig.attributes.id = Dom.generateId(); + + + } + + + + + oConfig.attributes.srcelement = p_oElement; + + initConfig.call(this, oConfig); + + + if(!oConfig.element) { + + + oConfig.element = + this._createButtonElement(oConfig.attributes.type); + + } + + fnSuperClass.call(this, oConfig.element, oConfig.attributes); + + } + + } + +}; + + + +// Private methods + + +/** +* @method getFirstElement +* @description Returns an HTML element's first HTML element node. +* @private +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object +* reference specifying the element to be evaluated. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} +*/ +function getFirstElement(p_oElement) { + + var oFirstChild = p_oElement.firstChild; + + if(oFirstChild) { + + if(oFirstChild.nodeType == 1) { + + return oFirstChild; + + } + else { + + var oNextSibling = oFirstChild.nextSibling; + + if(oNextSibling && oNextSibling.nodeType == 1) { + + return oNextSibling; + + } + + } + + } + +} + + +/** +* @method createInputElement +* @description Creates an <code><input></code> element of the +* specified type. +* @private +* @param {String} p_sType String specifying the type of +* <code><input></code> element to create. +* @param {String} p_sName String specifying the name of +* <code><input></code> element to create. +* @param {String} p_sValue String specifying the value of +* <code><input></code> element to create. +* @param {String} p_bChecked Boolean specifying if the +* <code><input></code> element is to be checked. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>} +*/ +function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) { + + var oInput; + + if(navigator.userAgent.indexOf("MSIE") != -1) { + + /* + For IE it is necessary to create the element with the + "type," "name," "value," and "checked" properties set all at once. + */ + + var sInput = "<input type=\"" + p_sType + "\" name=\"" + p_sName + "\""; + + if(p_bChecked) { + + sInput += " checked"; + + } + + sInput += ">"; + + oInput = document.createElement(sInput); + + } + else { + + oInput = document.createElement("input"); + oInput.name = p_sName; + oInput.type = p_sType; + + if(p_bChecked) { + + oInput.checked = true; + + } + + } + + oInput.value = p_sValue; + + return oInput; + +} + + +/** +* @method setAttributesFromSrcElement +* @description Gets the values for all the attributes of the source element +* (either <code><input></code> or <code><a></code>) that map to +* Button configuration attributes and sets them into a collection that is +* passed to the Button constructor. +* @private +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org/ +* TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID- +* 48250443">HTMLAnchorElement</a>} p_oElement Object reference to the HTML +* element (either <code><input></code> or <code><span></code>) +* used to create the button. +* @param {Object} p_oAttributes Object reference for the collection of +* configuration attributes used to create the button. +*/ +function setAttributesFromSrcElement(p_oElement, p_oAttributes) { + + var me = this; + + /** + * @method setAttributeFromDOMAttribute + * @description Gets the value of the specified DOM attribute and sets it + * into the collection of configuration attributes used to configure + * the button. + * @private + * @param {String} p_sAttribute String representing the name of the + * attribute to retrieve from the DOM element. + */ + function setAttributeFromDOMAttribute(p_sAttribute) { + + if( !(p_sAttribute in p_oAttributes) ) { + + /* + Need to use "getAttributeNode" instead of "getAttribute" + because using "getAttribute," IE will return the innerText of + a <code><button></code> for the value attribute rather + than the value of the "value" attribute. + */ + + var oAttribute = p_oElement.getAttributeNode(p_sAttribute); + + + if(oAttribute && ("value" in oAttribute)) { + + + p_oAttributes[p_sAttribute] = oAttribute.value; + + } + + } + + } + + + /** + * @method setFormElementProperties + * @description Gets the value of the attributes from the form element and + * sets them into the collection of configuration attributes used to + * configure the button. + * @private + */ + function setFormElementProperties() { + + setAttributeFromDOMAttribute("type"); + + if( !("disabled" in p_oAttributes) ) { + + p_oAttributes.disabled = p_oElement.disabled; + + } + + setAttributeFromDOMAttribute("name"); + setAttributeFromDOMAttribute("value"); + setAttributeFromDOMAttribute("title"); + + } + + + var sSrcElementTagName = p_oElement.tagName.toUpperCase(); + + + if( !("label" in p_oAttributes) ) { + + // Set the "label" property + + var sText = sSrcElementTagName == "INPUT" ? + p_oElement.value : p_oElement.innerHTML; + + + if(sText && sText.length > 0) { + + p_oAttributes.label = sText; + + } + + } + + + setAttributeFromDOMAttribute("tabindex"); + setAttributeFromDOMAttribute("accesskey"); + + + switch(sSrcElementTagName) { + + case "A": + + p_oAttributes.type = "link"; + + setAttributeFromDOMAttribute("href"); + setAttributeFromDOMAttribute("target"); + + break; + + case "INPUT": + + setFormElementProperties(); + + if( !("checked" in p_oAttributes) ) { + + p_oAttributes.checked = p_oElement.checked; + + } + + break; + + case "BUTTON": + + setFormElementProperties(); + + var oRootNode = p_oElement.parentNode.parentNode; + + if(Dom.hasClass(oRootNode, "checked")) { + + p_oAttributes.checked = true; + + } + + if(Dom.hasClass(oRootNode, "disabled")) { + + p_oAttributes.disabled = true; + + } + + p_oElement.removeAttribute("name"); + p_oElement.removeAttribute("value"); + + p_oElement.setAttribute("type", "button"); + + break; + + } + +} + + +/** +* @method initConfig +* @description Initializes the set of configuration attributes that are used to +* instantiate the button. +* @private +* @param {Object} Object representing the button's set of +* configuration attributes. +*/ +function initConfig(p_oConfig) { + + var oAttributes = p_oConfig.attributes, + oSrcElement = oAttributes.srcelement, + sSrcElementTagName = oSrcElement.tagName.toUpperCase(); + + + if(sSrcElementTagName == this.TAG_NAME) { + + p_oConfig.element = oSrcElement; + + var oFirstChild = getFirstElement(p_oConfig.element); + + Dom.addClass(oFirstChild, "first-child"); + + if(oFirstChild) { + + var oButton = getFirstElement(oFirstChild); + + + if(oButton) { + + var sButtonTagName = oButton.tagName.toUpperCase(); + + + if(sButtonTagName == "A" || sButtonTagName == "BUTTON") { + + setAttributesFromSrcElement.call( + this, + oButton, + oAttributes + ); + + } + + } + + } + + } + else if(sSrcElementTagName == "INPUT") { + + setAttributesFromSrcElement.call(this, oSrcElement, oAttributes); + + } + +} + + +YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, { + + +// Protected properties + + +/** +* @property _button +* @description Object reference to the button's internal +* <code><a></code> or <code><button></code> element. +* @default null +* @protected +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-48250443">HTMLAnchorElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID- +* 34812697">HTMLButtonElement</a> +*/ +_button: null, + + +/** +* @property _menu +* @description Object reference to the button's menu. +* @default null +* @protected +* @type <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a> +*/ +_menu: null, + + +/** +* @property _onclickAttributeValue +* @description Object reference to the button's current value for the "onclick" +* configuration attribute. +* @default null +* @protected +* @type Object +*/ +_onclickAttributeValue: null, + + +/** +* @property _oninitAttributeValue +* @description Object reference to the button's current value for the "oninit" +* configuration attribute. +* @default null +* @protected +* @type Object +*/ +_oninitAttributeValue: null, + + +/** +* @property _activationKeyPressed +* @description Boolean indicating if the key(s) that toggle the button's +* "active" state have been pressed. +* @default false +* @protected +* @type Boolean +*/ +_activationKeyPressed: false, + + +/** +* @property _activationButtonPressed +* @description Boolean indicating if the mouse button that toggles the button's +* "active" state has been pressed. +* @default false +* @protected +* @type Boolean +*/ +_activationButtonPressed: false, + + +/** +* @property _hasKeyEventHandlers +* @description Boolean indicating if the button's "blur", "keydown" and +* "keyup" event handlers are assigned +* @default false +* @protected +* @type Boolean +*/ +_hasKeyEventHandlers: false, + + +/** +* @property _hasMouseEventHandlers +* @description Boolean indicating if the button's "mouseout" and "mousedown" +* and "mouseup" event handlers are assigned +* @default false +* @protected +* @type Boolean +*/ +_hasMouseEventHandlers: false, + + + +// Constants + + +/** +* @property TAG_NAME +* @description The name of the tag to be used for the button's root element. +* @default "SPAN" +* @final +* @type String +*/ +TAG_NAME: "SPAN", + + +/** +* @property CHECK_ACTIVATION_KEYS +* @description Array of numbers representing keys that (when pressed) toggle +* the button's "checked" attribute. +* @default [32] +* @final +* @type Array +*/ +CHECK_ACTIVATION_KEYS: [32], + + +/** +* @property ACTIVATION_KEYS +* @description Array of numbers representing keys that (when presed) toggle +* the button's "active" state. +* @default [13, 32] +* @final +* @type Array +*/ +ACTIVATION_KEYS: [13, 32], + + +/** +* @property OPTION_AREA_WIDTH +* @description Width (in pixels) of the area of a split button that when +* pressed will display a menu. +* @default 20 +* @final +* @type Number +*/ +OPTION_AREA_WIDTH: 20, + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* button's root element. +* @default "yuibutton" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuibutton", + + +/** +* @property RADIO_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "radio." +* @default "Unchecked. Click to check." +* @final +* @type String +*/ +RADIO_DEFAULT_TITLE: "Unchecked. Click to check.", + + +/** +* @property RADIO_CHECKED_TITLE +* @description String representing the title applied to buttons of type "radio" +* when checked. +* @default "Checked. Click to uncheck." +* @final +* @type String +*/ +RADIO_CHECKED_TITLE: "Checked. Click to uncheck.", + + +/** +* @property CHECKBOX_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "checkbox." +* @default "Unchecked. Click to check." +* @final +* @type String +*/ +CHECKBOX_DEFAULT_TITLE: "Unchecked. Click to check.", + + +/** +* @property CHECKBOX_CHECKED_TITLE +* @description String representing the title applied to buttons of type +* "checkbox" when checked. +* @default "Checked. Click to uncheck." +* @final +* @type String +*/ +CHECKBOX_CHECKED_TITLE: "Checked. Click to uncheck.", + + +/** +* @property MENUBUTTON_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "menubutton." +* @default "Menu collapsed. Click to expand." +* @final +* @type String +*/ +MENUBUTTON_DEFAULT_TITLE: "Menu collapsed. Click to expand.", + + +/** +* @property MENUBUTTON_MENU_VISIBLE_TITLE +* @description String representing the title applied to buttons of type +* "menubutton" when the button's menu is visible. +* @default "Menu expanded. Click or press Esc to collapse." +* @final +* @type String +*/ +MENUBUTTON_MENU_VISIBLE_TITLE: + "Menu expanded. Click or press Esc to collapse.", + + +/** +* @property SPLITBUTTON_DEFAULT_TITLE +* @description String representing the default title applied to buttons of +* type "splitebutton." +* @default "Menu collapsed. Click inside option region or press +* Ctrl + Shift + M to show the menu." +* @final +* @type String +*/ +SPLITBUTTON_DEFAULT_TITLE: + "Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.", + + +/** +* @property SPLITBUTTON_OPTION_VISIBLE_TITLE +* @description String representing the title applied to buttons of type +* "splitbutton" when the button's menu is visible. +* @default "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu." +* @final +* @type String +*/ +SPLITBUTTON_OPTION_VISIBLE_TITLE: + "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.", + + +/** +* @property SUBMIT_TITLE +* @description String representing the title applied to buttons of +* type "submit." +* @default "Click to submit form." +* @final +* @type String +*/ +SUBMIT_TITLE: "Click to submit form.", + + + +// Protected attribute setter methods + + +/** +* @method _setType +* @description Sets the value of the button's "type" attribute. +* @protected +* @param {String} p_sType String indicating the value for the button's +* "type" attribute. +*/ +_setType: function(p_sType) { + + if(p_sType == "splitbutton") { + + this.on("option", this._onOption); + + } + +}, + + +/** +* @method _setLabel +* @description Sets the value of the button's "label" attribute. +* @protected +* @param {String} p_sLabel String indicating the value for the button's +* "label" attribute. +*/ +_setLabel: function(p_sLabel) { + + this._button.innerHTML = p_sLabel; + +}, + + +/** +* @method _setTabIndex +* @description Sets the value of the button's "tabindex" attribute. +* @protected +* @param {Number} p_nTabIndex Number indicating the value for the button's +* "tabindex" attribute. +*/ +_setTabIndex: function(p_nTabIndex) { + + this._button.tabIndex = p_nTabIndex; + +}, + + +/** +* @method _setTitle +* @description Sets the value of the button's "title" attribute. +* @protected +* @param {String} p_nTabIndex Number indicating the value for the button's +* "title" attribute. +*/ +_setTitle: function(p_sTitle) { + + if(this.get("type") != "link") { + + var sTitle = p_sTitle; + + if(!sTitle) { + + + var sType = this.get("type"); + + switch(sType) { + + case "radio": + + sTitle = this.RADIO_DEFAULT_TITLE; + + break; + + case "checkbox": + + sTitle = this.CHECKBOX_DEFAULT_TITLE; + + break; + + case "menubutton": + + sTitle = this.MENUBUTTON_DEFAULT_TITLE; + + break; + + case "splitbutton": + + sTitle = this.SPLITBUTTON_DEFAULT_TITLE; + + break; + + case "submit": + + sTitle = this.SUBMIT_TITLE; + + break; + + } + + } + + this._button.title = sTitle; + + } + +}, + + +/** +* @method _setDisabled +* @description Sets the value of the button's "disabled" attribute. +* @protected +* @param {Boolean} p_bDisabled Boolean indicating the value for the button's +* "disabled" attribute. +*/ +_setDisabled: function(p_bDisabled) { + + if(this.get("type") != "link") { + + if(p_bDisabled) { + + if(this.hasFocus()) { + + this.blur(); + + } + + this._button.setAttribute("disabled", "disabled"); + + this.addClass("disabled"); + + } + else { + + this._button.removeAttribute("disabled"); + + this.removeClass("disabled"); + + } + + } + +}, + + +/** +* @method _setAccessKey +* @description Sets the value of the button's "accesskey" attribute. +* @protected +* @param {String} p_sAccessKey String indicating the value for the button's +* "accesskey" attribute. +*/ +_setAccessKey: function(p_sAccessKey) { + + this._button.accessKey = p_sAccessKey; + +}, + + +/** +* @method _setHref +* @description Sets the value of the button's "href" attribute. +* @protected +* @param {String} p_sHref String indicating the value for the button's +* "href" attribute. +*/ +_setHref: function(p_sHref) { + + if(this.get("type") == "link") { + + this._button.href = p_sHref; + + } + +}, + + +/** +* @method _setTarget +* @description Sets the value of the button's "target" attribute. +* @protected +* @param {String} p_sTarget String indicating the value for the button's +* "target" attribute. +*/ +_setTarget: function(p_sTarget) { + + if(this.get("type") == "link") { + + this._button.setAttribute("target", p_sTarget); + + } + +}, + + +/** +* @method _setChecked +* @description Sets the value of the button's "target" attribute. +* @protected +* @param {Boolean} p_bChecked Boolean indicating the value for the button's +* "checked" attribute. +*/ +_setChecked: function(p_bChecked) { + + var sType = this.get("type"), + sTitle; + + if(sType == "checkbox" || sType == "radio") { + + if(p_bChecked) { + + this.addClass("checked"); + + sTitle = (sType == "radio") ? + this.RADIO_CHECKED_TITLE : + this.CHECKBOX_CHECKED_TITLE; + + } + else { + + this.removeClass("checked"); + + sTitle = (sType == "radio") ? + this.RADIO_DEFAULT_TITLE : + this.CHECKBOX_DEFAULT_TITLE; + + } + + this.set("title", sTitle); + + } + +}, + + +/** +* @method _setMenu +* @description Sets the value of the button's "menu" attribute. +* @protected +* @param {Object} p_oMenu Object indicating the value for the button's +* "menu" attribute. +*/ +_setMenu: function(p_oMenu) { + + var Menu = YAHOO.widget.Menu, + oMenu, + me = this; + + if(!Menu) { + + + return false; + + } + + + function initMenu() { + + if(oMenu) { + + oMenu.showEvent.subscribe(this._onMenuShow, this, true); + oMenu.hideEvent.subscribe(this._onMenuHide, this, true); + oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true); + oMenu.renderEvent.subscribe(this._onMenuRender, this, true); + oMenu.clickEvent.subscribe(this._onMenuClick, this, true); + oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true); + + var oSrcElement = oMenu.srcElement; + + if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") { + + oSrcElement.style.display = "none"; + oSrcElement.parentNode.removeChild(oSrcElement); + + } + + this._menu = oMenu; + + } + else { + + this._menu.destroy(); + this._menu = null; + + } + + } + + + if(p_oMenu instanceof Menu) { + + oMenu = p_oMenu; + + var aItems = oMenu.getItems(), + nItems = aItems.length, + oItem; + + if(nItems > 0) { + + var i = nItems - 1; + + do { + + oItem = aItems[i]; + + if(oItem) { + + oItem.cfg.subscribeToConfigEvent( + "selected", + this._onMenuItemSelected, + oItem, + this + ); + + } + + } + while(i--); + + } + + initMenu.call(this); + + } + else if(Lang.isArray(p_oMenu)) { + + this.on("appendTo", function() { + + oMenu = new Menu( + Dom.generateId(), + { lazyload: true, itemdata: p_oMenu } + ); + + initMenu.call(me); + + }); + + } + else if(Lang.isString(p_oMenu)) { + + Event.onContentReady(p_oMenu, function() { + + oMenu = new Menu(this, { lazyload: true }); + + initMenu.call(me); + + }); + + } + else if(p_oMenu && p_oMenu.nodeName) { + + oMenu = new Menu(p_oMenu, { lazyload: true }); + + initMenu.call(this); + + } + +}, + + +/** +* @method _setOnClick +* @description Sets the value of the button's "onclick" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "onclick" attribute. +*/ +_setOnClick: function(p_oObject) { + + /* + Remove any existing listeners if a "click" event handler has already + been specified. + */ + + if( + this._onclickAttributeValue && + (this._onclickAttributeValue != p_oObject) + ) { + + this.removeListener("click", this._onclickAttributeValue.fn); + + this._onclickAttributeValue = null; + + } + + + if( + !this._onclickAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._onclickAttributeValue = p_oObject; + + } + +}, + +/** +* @method _setOnInit +* @description Sets the value of the button's "init" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "oninit" attribute. +*/ +_setOnInit: function(p_oObject) { + + /* + Remove any existing listeners if a "init" event handler has already + been specified. + */ + + if( + this._oninitAttributeValue && + (this._oninitAttributeValue != p_oObject) + ) { + + this.removeListener("init", this._oninitAttributeValue.fn); + + this._oninitAttributeValue = null; + + } + + + if( + !this._oninitAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._oninitAttributeValue = p_oObject; + + } + +}, + + + +// Protected methods + + +/** +* @method _createButtonElement +* @description Creates the button's element. +* @protected +* @param {String} p_sType String indicating the type of element to create. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-58190037">HTMLElement</a>} +*/ +_createButtonElement: function(p_sType) { + + var sTagName = this.TAG_NAME, + oElement = document.createElement(sTagName); + + oElement.innerHTML = + + "<" + sTagName + " class=\"first-child\">" + + (p_sType == "link" ? "<a></a>" : "<button type=\"button\"></button>") + + "</" + sTagName + ">"; + + return oElement; + +}, + + +/** +* @method _isActivationKey +* @description Determines if the specified keycode is one that toggles the +* button's "active" state. +* @protected +* @param {Number} p_nKeyCode Number representing the keycode to be evaluated. +* @return {Boolean} +*/ +_isActivationKey: function(p_nKeyCode) { + + var sType = this.get("type"), + aKeyCodes = (sType == "checkbox" || sType == "radio") ? + this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS, + + nKeyCodes = aKeyCodes.length; + + if(nKeyCodes > 0) { + + var i = nKeyCodes - 1; + + do { + + if(p_nKeyCode == aKeyCodes[i]) { + + return true; + + } + + } + while(i--); + + } + +}, + + +/** +* @method _isSplitButtonOptionKey +* @description Determines if the specified keycode is one that toggles the +* display of the split button's menu. +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @return {Boolean} +*/ +_isSplitButtonOptionKey: function(p_oEvent) { + + return ( + p_oEvent.ctrlKey && + p_oEvent.shiftKey && + Event.getCharCode(p_oEvent) == 77 + ); + +}, + + +_originalMaxHeight: -1, + + +/** +* @method _showMenu +* @description Shows the button's menu. +* @protected +*/ +_showMenu: function() { + + var oMenu = this._menu; + + if(oMenu) { + + YAHOO.widget.MenuManager.hideVisible(); + + oMenu.cfg.applyConfig({ + context:[this.get("id"), "tl", "bl"], + clicktohide: false, + constraintoviewport: false, + visible: true + }); + + oMenu.cfg.fireQueue(); + + var nViewportHeight = Dom.getViewportHeight(), + nMenuHeight = oMenu.element.offsetHeight; + + + if((oMenu.cfg.getProperty("y") + nMenuHeight) > nViewportHeight) { + + + oMenu.align("bl", "tl"); + + var nY = oMenu.cfg.getProperty("y"), + + nScrollTop = ( + document.documentElement.scrollTop || + document.body.scrollTop + ); + + + if(nScrollTop >= nY) { + + if(this._originalMaxHeight == -1) { + + this._originalMaxHeight = + oMenu.cfg.getProperty("maxheight"); + + } + + oMenu.cfg.setProperty( + "maxheight", + (nMenuHeight - ((nScrollTop - nY) + 20)) + ); + + oMenu.align("bl", "tl"); + + } + + } + + oMenu.cfg.setProperty("constraintoviewport", true); + + } + +}, + + +/** +* @method _hideMenu +* @description Hides the button's menu. +* @protected +*/ +_hideMenu: function() { + + var oMenu = this._menu; + + if(oMenu && oMenu.cfg.getProperty("visible")) { + + oMenu.hide(); + + } + +}, + + +/** +* @method _submitForm +* @description Submits the form to which the button belongs. +* @protected +*/ +_submitForm: function() { + + var oForm = this.getForm(); + + if(oForm) { + + YAHOO.widget.Button.addHiddenFieldsToForm(oForm); + + this.createHiddenField(); + + oForm.submit(); + + } + +}, + + + +// Protected event handlers + + +/** +* @method _onMouseOver +* @description "mouseover" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseOver: function(p_oEvent) { + + if(!this.get("disabled")) { + + if(!this._hasMouseEventHandlers) { + + this.on("mouseout", this._onMouseOut); + this.on("mousedown", this._onMouseDown); + this.on("mouseup", this._onMouseUp); + + this._hasMouseEventHandlers = true; + + } + + this.addClass("hover"); + + if(this._activationButtonPressed) { + + this.addClass("active"); + + } + + + if(this._bOptionPressed) { + + this.addClass("activeoption"); + + } + + } + +}, + + +/** +* @method _onMouseOut +* @description "mouseout" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseOut: function(p_oEvent) { + + if(!this.get("disabled")) { + + this.removeClass("hover"); + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + if(this._activationButtonPressed || this._bOptionPressed) { + + Event.on(document, "mouseup", this._onDocumentMouseUp, this, true); + + } + + } + +}, + + +/** +* @method _onDocumentMouseUp +* @description "mouseup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentMouseUp: function(p_oEvent, p_oButton) { + + this._activationButtonPressed = false; + this._bOptionPressed = false; + + var sType = this.get("type"); + + if(sType == "menubutton" || sType == "splitbutton") { + + this.removeClass((sType == "menubutton" ? "active" : "activeoption")); + + this._hideMenu(); + + } + + Event.removeListener(document, "mouseup", this._onDocumentMouseUp); + +}, + + +/** +* @method _onMouseDown +* @description "mousedown" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseDown: function(p_oEvent) { + + if(!this.get("disabled")) { + + if((p_oEvent.which || p_oEvent.button) == 1) { + + if(!this.hasFocus()) { + + this.focus(); + + } + + + var sType = this.get("type"); + + + if(sType == "splitbutton") { + + var oElement = this.get("element"), + nX = Event.getPageX(p_oEvent) - Dom.getX(oElement); + + if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) { + + this.fireEvent("option", p_oEvent); + + } + else { + + this.addClass("active"); + + this._activationButtonPressed = true; + + } + + } + else if(sType == "menubutton") { + + if(this.hasClass("active")) { + + this._hideMenu(); + + this._activationButtonPressed = false; + + } + else { + + this._showMenu(); + + this._activationButtonPressed = true; + + } + + } + else { + + this.addClass("active"); + + this._activationButtonPressed = true; + + } + + + + if(sType == "splitbutton" || sType == "menubutton") { + + var me = this; + + + function onMouseUp() { + + me._hideMenu(); + me.removeListener("mouseup", onMouseUp); + + } + + + this._hideMenuTimerId = window.setTimeout(function() { + + me.on("mouseup", onMouseUp); + + }, 250); + + } + + } + + } + +}, + + +/** +* @method _onMouseUp +* @description "mouseup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onMouseUp: function(p_oEvent) { + + if(!this.get("disabled")) { + + + if(this._hideMenuTimerId) { + + window.clearTimeout(this._hideMenuTimerId); + + } + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.set("checked", !(this.get("checked"))); + + } + + + this._activationButtonPressed = false; + + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + } + +}, + + +/** +* @method _onFocus +* @description "focus" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button that +* fired the event. +*/ +_onFocus: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + this.addClass("focus"); + + if(this._activationKeyPressed) { + + this.addClass("active"); + + } + + m_oFocusedButton = this; + + + if(!this._hasKeyEventHandlers) { + + var oElement = this._button; + + Event.on(oElement, "blur", this._onBlur, this, true); + Event.on(oElement, "keydown", this._onKeyDown, this, true); + Event.on(oElement, "keyup", this._onKeyUp, this, true); + + this._hasKeyEventHandlers = true; + + } + + + this.fireEvent("focus", p_oEvent); + + } + +}, + + +/** +* @method _onBlur +* @description "blur" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onBlur: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + this.removeClass("focus"); + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + if(this._activationKeyPressed) { + + Event.on(document, "keyup", this._onDocumentKeyUp, this, true); + + } + + + m_oFocusedButton = null; + + this.fireEvent("blur", p_oEvent); + + } + +}, + + +/** +* @method _onDocumentKeyUp +* @description "keyup" event handler for the document. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentKeyUp: function(p_oEvent, p_oButton) { + + if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + this._activationKeyPressed = false; + + Event.removeListener(document, "keyup", this._onDocumentKeyUp); + + } + +}, + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onKeyDown: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + if( + this.get("type") == "splitbutton" && + this._isSplitButtonOptionKey(p_oEvent) + ) { + + this.fireEvent("option", p_oEvent); + + } + else if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + if(this.get("type") == "menubutton") { + + this._showMenu(); + + } + else { + + this._activationKeyPressed = true; + + this.addClass("active"); + + } + + } + + + var oMenu = this._menu; + + if( + oMenu && oMenu.cfg.getProperty("visible") && + Event.getCharCode(p_oEvent) == 27 + ) { + + oMenu.hide(); + this.focus(); + + } + + } + +}, + + +/** +* @method _onKeyUp +* @description "keyup" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onKeyUp: function(p_oEvent, p_oButton) { + + if(!this.get("disabled")) { + + if(this._isActivationKey(Event.getCharCode(p_oEvent))) { + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.set("checked", !(this.get("checked"))); + + } + + this._activationKeyPressed = false; + + if(this.get("type") != "menubutton") { + + this.removeClass("active"); + + } + + } + + } + +}, + + +/** +* @method _onClick +* @description "click" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onClick: function(p_oEvent) { + + var sType = this.get("type"), + sTitle; + + switch(sType) { + + case "radio": + case "checkbox": + + if(this.get("checked")) { + + sTitle = (sType == "radio") ? + this.RADIO_CHECKED_TITLE : + this.CHECKBOX_CHECKED_TITLE; + + } + else { + + sTitle = (sType == "radio") ? + this.RADIO_DEFAULT_TITLE : + this.CHECKBOX_DEFAULT_TITLE; + + } + + this.set("title", sTitle); + + break; + + case "submit": + + this._submitForm(); + + break; + + case "reset": + + var oForm = this.getForm(); + + if(oForm) { + + oForm.reset(); + + } + + break; + + case "menubutton": + + sTitle = this._menu.cfg.getProperty("visible") ? + this.MENUBUTTON_MENU_VISIBLE_TITLE : + this.MENUBUTTON_DEFAULT_TITLE; + + this.set("title", sTitle); + + break; + + case "splitbutton": + + var oElement = this.get("element"), + nX = Event.getPageX(p_oEvent) - Dom.getX(oElement); + + if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) { + + return false; + + } + else { + + this._hideMenu(); + + var oSrcElement = this.get("srcelement"); + + if(oSrcElement && oSrcElement.type == "submit") { + + this._submitForm(); + + } + + } + + sTitle = this._menu.cfg.getProperty("visible") ? + this.SPLITBUTTON_OPTION_VISIBLE_TITLE : + this.SPLITBUTTON_DEFAULT_TITLE; + + this.set("title", sTitle); + + break; + + } + +}, + + +/** +* @method _onAppendTo +* @description "appendTo" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onAppendTo: function(p_oEvent) { + + /* + It is necessary to call "getForm" using "setTimeout" to make sure that + the button's "form" property returns a node reference. Sometimes, if + you try to get the reference immediately after appending the field, it + is null. + */ + + var me = this; + + window.setTimeout(function() { + + var oForm = me.getForm(); + + if(oForm) { + + Event.on(oForm, "reset", me._onFormReset, me, true); + Event.on(oForm, "submit", me._onFormSubmit, me, true); + + } + + }, 0); + +}, + + +/** +* @method _onFormSubmit +* @description "submit" event handler for the button's form. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onFormSubmit: function(p_oEvent, p_oButton) { + + var sType = this.get("type"), + oMenuItem = this.get("selectedMenuItem"), + oForm = this.getForm(); + + + if(sType == "radio" || sType == "checkbox") { + + + this.createHiddenField(); + + } + else if(oMenuItem) { + + var oSrcElement = this._menu.srcElement; + + if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") { + + oForm.appendChild(oSrcElement); + oSrcElement.selectedIndex = oMenuItem.index; + + } + else { + + var oValue = (oMenuItem.value === null || oMenuItem.value === "") ? + oMenuItem.cfg.getProperty("text") : + oMenuItem.value; + + + if(oValue) { + + var oField = createInputElement( + "hidden", + (this.get("name") + "_options"), + oValue + ); + + oForm.appendChild(oField); + + } + + } + + } + +}, + + +/** +* @method _onFormReset +* @description "reset" event handler for the button's form. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onFormReset: function(p_oEvent, p_oButton) { + + var sType = this.get("type"); + + if(sType == "checkbox" || sType == "radio") { + + this.resetValue("checked"); + + } + + if(this._menu) { + + this.resetValue("selectedMenuItem"); + + } + +}, + + +/** +* @method _onDocumentMouseDown +* @description "mousedown" event handler for the document. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onDocumentMouseDown: function(p_oEvent, p_oButton) { + + var oTarget = Event.getTarget(p_oEvent), + oButtonElement = this.get("element"), + oMenuElement = this._menu.element; + + if( + oTarget != oButtonElement && + !Dom.isAncestor(oButtonElement, oTarget) && + oTarget != oMenuElement && + !Dom.isAncestor(oMenuElement, oTarget) + ) { + + this._hideMenu(); + + Event.removeListener( + document, + "mousedown", + this._onDocumentMouseDown + ); + + } + +}, + + +/** +* @method _onOption +* @description "option" event handler for the button. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onOption: function(p_oEvent) { + + if(this.hasClass("activeoption")) { + + this._hideMenu(); + + this._bOptionPressed = false; + + } + else { + + this._showMenu(); + + this._bOptionPressed = true; + + } + +}, + + +/** +* @method _onMenuShow +* @description "show" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuShow: function(p_sType, p_aArgs, p_oButton) { + + Event.on(document, "mousedown", this._onDocumentMouseDown, this, true); + + var sTitle, + sClass; + + if(this.get("type") == "splitbutton") { + + sTitle = this.SPLITBUTTON_OPTION_VISIBLE_TITLE; + sClass = "activeoption"; + + } + else { + + sTitle = this.MENUBUTTON_MENU_VISIBLE_TITLE; + sClass = "active"; + + } + + this.addClass(sClass); + this.set("title", sTitle); + +}, + + +/** +* @method _onMenuHide +* @description "hide" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuHide: function(p_sType, p_aArgs, p_oButton) { + + if(this._originalMaxHeight != -1) { + + this._menu.cfg.setProperty("maxheight", this._originalMaxHeight); + + } + + + var sTitle, + sClass; + + if(this.get("type") == "splitbutton") { + + sTitle = this.SPLITBUTTON_DEFAULT_TITLE; + sClass = "activeoption"; + + } + else { + + sTitle = this.MENUBUTTON_DEFAULT_TITLE; + sClass = "active"; + } + + + this.removeClass(sClass); + this.set("title", sTitle); + +}, + + +/** +* @method _onMenuKeyDown +* @description "keydown" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuKeyDown: function(p_sType, p_aArgs, p_oButton) { + + var oEvent = p_aArgs[0]; + + if(Event.getCharCode(oEvent) == 27) { + + this.focus(); + + if(this.get("type") == "splitbutton") { + + this._bOptionPressed = false; + + } + + } + +}, + + +/** +* @method _onMenuRender +* @description "render" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the button. +*/ +_onMenuRender: function(p_sType, p_aArgs, p_oButton) { + + this.get("element").parentNode.appendChild(this._menu.element); + +}, + + +/** +* @method _onMenuItemSelected +* @description "selectedchange" event handler for each item in the +* button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {<a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>} +* p_oItem Object representing the menu item that subscribed to the event. +*/ +_onMenuItemSelected: function(p_sType, p_aArgs, p_oItem) { + + this.set("selectedMenuItem", p_oItem); + +}, + + +/** +* @method _onMenuItemAdded +* @description "itemadded" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {<a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>} +* p_oItem Object representing the menu item that subscribed to the event. +*/ +_onMenuItemAdded: function(p_sType, p_aArgs, p_oItem) { + + var oItem = p_aArgs[0]; + + oItem.cfg.subscribeToConfigEvent( + "selected", + this._onMenuItemSelected, + oItem, + this + ); + +}, + + +/** +* @method _onMenuClick +* @description "click" event handler for the button's menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Button} p_oButton Object representing the menu's button. +*/ +_onMenuClick: function(p_sType, p_aArgs, p_oButton) { + + var oItem = p_aArgs[0]; + + if(oItem) { + + var oSrcElement = this.get("srcelement"); + + if(oSrcElement && oSrcElement.type == "submit") { + + this._submitForm(); + + } + + this._hideMenu(); + + } + +}, + + + +// Public methods + + +/** +* @method createHiddenField +* @description Creates the button's hidden form field and appends it to its +* parent form. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>} +*/ +createHiddenField: function () { + + if(!this.get("disabled")) { + + var sType = this.get("type"), + + bCheckable = (sType == "checkbox" || sType == "radio"), + + oField = createInputElement( + (bCheckable ? this.get("type") : "hidden"), + this.get("name"), + this.get("value"), + this.get("checked") + ), + + oForm = this.getForm(); + + + if(oField && bCheckable) { + + oField.style.display = "none"; + + } + + + if(oForm) { + + oForm.appendChild(oField); + + } + + + return oField; + + } + +}, + + +/** +* @method init +* @description The Button class's initialization method. +* @param {String} p_oElement String specifying the id attribute of the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oElement Object reference for the +* <code><input></code>, <code><a></code> or +* <code><span></code> element to be used to create the button. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button. +*/ +init: function(p_oElement, p_oAttributes) { + + var sTagName = p_oAttributes.type == "link" ? "A" : "BUTTON", + oSrcElement = p_oAttributes.srcelement; + + + this._button = p_oElement.getElementsByTagName(sTagName)[0]; + + + YAHOO.widget.Button.superclass.init.call( + this, p_oElement, + p_oAttributes + ); + + + m_oButtons[this.get("id")] = this; + + + this.addClass(this.CSS_CLASS_NAME); + this.addClass(this.get("type")); + + Event.on(this._button, "focus", this._onFocus, this, true); + this.on("mouseover", this._onMouseOver); + this.on("click", this._onClick); + this.on("appendTo", this._onAppendTo); + + var oContainer = this.get("container"), + oElement = this.get("element"); + + + if(oContainer) { + + if(Lang.isString(oContainer)) { + + var me = this; + + Event.onContentReady(oContainer, function() { + + me.appendTo(this); + + }); + + } + else { + + this.appendTo(oContainer); + + } + + } + else if( + !Dom.inDocument(oElement) && + oSrcElement && + oSrcElement.tagName.toUpperCase() == "INPUT" + ) { + + var oParentNode = oSrcElement.parentNode; + + if(oParentNode) { + + this.fireEvent("beforeAppendTo", { + type: "beforeAppendTo", + target: oParentNode + }); + + oParentNode.replaceChild(oElement, oSrcElement); + + this.fireEvent("appendTo", { + type: "appendTo", + target: oParentNode + }); + + } + + } + else if( + Dom.inDocument(oElement) && + oSrcElement.tagName.toUpperCase() == "SPAN" + ) { + + var oForm = this.getForm(); + + if(oForm) { + + Event.on(oForm, "reset", this._onFormReset, this, true); + Event.on(oForm, "submit", this._onFormSubmit, this, true); + + } + + } + + this.fireEvent("init"); + + +}, + + +/** +* @method initAttributes +* @description Initializes all of the configuration attributes used to create +* the button. +* @param {Object} p_oAttributes Object literal specifying a set of +* configuration attributes used to create the button. +*/ +initAttributes: function(p_oAttributes) { + + var oAttributes = p_oAttributes || {}; + + YAHOO.widget.Button.superclass.initAttributes.call(this, oAttributes); + + + /** + * @config type + * @description String specifying the button's type. Possible values are: + * "button," "link," "submit," "reset," "checkbox," "radio," "menubutton," + * and "splitbutton." + * @default "button" + * @type String + */ + this.setAttributeConfig("type", { + + value: (oAttributes.type || "button"), + validator: Lang.isString, + writeOnce: true, + method: this._setType + + }); + + + /** + * @config label + * @description String specifying the button's text label or innerHTML. + * @default null + * @type String + */ + this.setAttributeConfig("label", { + + value: oAttributes.label, + validator: Lang.isString, + method: this._setLabel + + }); + + + /** + * @config value + * @description Object specifying the value for the button. + * @default null + * @type Object + */ + this.setAttributeConfig("value", { + + value: oAttributes.value + + }); + + + /** + * @config name + * @description String specifying the name for the button. + * @default null + * @type String + */ + this.setAttributeConfig("name", { + + value: oAttributes.name, + validator: Lang.isString + + }); + + + /** + * @config tabindex + * @description Number specifying the tabindex for the button. + * @default null + * @type Number + */ + this.setAttributeConfig("tabindex", { + + value: oAttributes.tabindex, + validator: Lang.isNumber, + method: this._setTabIndex + + }); + + + /** + * @config title + * @description String specifying the title for the button. + * @default null + * @type String + */ + this.configureAttribute("title", { + + value: oAttributes.title, + validator: Lang.isString, + method: this._setTitle + + }); + + + /** + * @config disabled + * @description Boolean indicating if the button should be disabled. + * (Disabled buttons are dimmed and will not respond to user input + * or fire events.) + * @default false + * @type Boolean + */ + this.setAttributeConfig("disabled", { + + value: (oAttributes.disabled || false), + validator: Lang.isBoolean, + method: this._setDisabled + + }); + + + /** + * @config href + * @description String specifying the href for the button. Applies only to + * buttons of type "link." + * @type String + */ + this.setAttributeConfig("href", { + + value: oAttributes.href, + validator: Lang.isString, + method: this._setHref + + }); + + + /** + * @config target + * @description String specifying the target for the button. Applies only + * to buttons of type "link." + * @type String + */ + this.setAttributeConfig("target", { + + value: oAttributes.target, + validator: Lang.isString, + method: this._setTarget + + }); + + + /** + * @config checked + * @description Boolean indicating if the button is checked. Applies only + * to buttons of type "radio" and "checkbox." + * @default false + * @type Boolean + */ + this.setAttributeConfig("checked", { + + value: (oAttributes.checked || false), + validator: Lang.isBoolean, + method: this._setChecked + + }); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the button's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("container", { + + value: oAttributes.container + + }); + + + /** + * @config srcelement + * @description Object reference to the HTML element (either + * <code><input></code> or <code><span></code>) used to + * create the button. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("srcelement", { + + value: oAttributes.srcelement, + writeOnce: true + + }); + + + /** + * @config menu + * @description Object specifying the menu for the button. The value can be + * one of the following: + * <ul> + * <li>Object specifying a <a href="YAHOO.widget.Menu.html"> + * YAHOO.widget.Menu</a> instance.</li> + * <li>String specifying the id attribute of the <code><div></code> + * element used to create the menu.</li> + * <li>String specifying the id attribute of the + * <code><select></code> element used to create the menu.</li> + * <li>Object specifying the <code><div></code> element used to + * create the menu.</li> + * <li>Object specifying the <code><select></code> element used to + * create the menu.</li> + * <li>Array of object literals, each representing a set of + * <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> + * configuration attributes.</li> + * <li>Array of strings representing the text labels for each menu item in + * the menu.</li> + * </ul> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String|Array + * @default null + */ + this.setAttributeConfig("menu", { + + value: null, + method: this._setMenu + + }); + + + /** + * @config selectedMenuItem + * @description Reference to the item in the button's menu that is + * currently selected. + * @type <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> + * @default null + */ + this.setAttributeConfig("selectedMenuItem", { + + value: null + + }); + + + /** + * @config onclick + * @description Object literal representing the code to be executed when + * the button is clicked. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("onclick", { + + value: oAttributes.onclick, + method: this._setOnClick + + }); + + + /** + * @config oninit + * @description Object literal representing the code to be executed when + * the button is initialized. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("oninit", { + + value: oAttributes.oninit, + method: this._setOnInit + + }); + +}, + + +/** +* @method focus +* @description Causes the button to receive the focus and fires the button's +* "focus" event. +*/ +focus: function() { + + if(!this.get("disabled")) { + + this._button.focus(); + + } + +}, + + +/** +* @method blur +* @description Causes the button to lose focus and fires the button's +* "blur" event. +*/ +blur: function() { + + if(!this.get("disabled")) { + + this._button.blur(); + + } + +}, + + +/** +* @method hasFocus +* @description Returns a boolean indicating whether or not the button has focus. +* @return {Boolean} +*/ +hasFocus: function() { + + return (m_oFocusedButton == this); + +}, + + +/** +* @method isActive +* @description Returns a boolean indicating whether or not the button is active. +* @return {Boolean} +*/ +isActive: function() { + + return this.hasClass("active"); + +}, + + +/** +* @method getMenu +* @description Returns a reference to the button's menu. +* @return {<a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>} +*/ +getMenu: function() { + + return this._menu; + +}, + + +/** +* @method getForm +* @description Returns a reference to the button's menu. +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-40002357">HTMLFormElement</a>} +*/ +getForm: function() { + + return this._button.form; + +}, + + +/** +* @method destroy +* @description Removes the button's element from its parent element and +* removes all event handlers. +*/ +destroy: function() { + + + var oElement = this.get("element"), + oParentNode = oElement.parentNode, + oMenu = this._menu; + + if(oMenu) { + + + oMenu.destroy(); + + } + + + Event.purgeElement(oElement); + Event.purgeElement(this._button); + Event.removeListener(document, "mouseup", this._onDocumentMouseUp); + Event.removeListener(document, "keyup", this._onDocumentKeyUp); + Event.removeListener(document, "mousedown", this._onDocumentMouseDown); + + var oForm = this.getForm(); + + if(oForm) { + + Event.removeListener(oForm, "reset", this._onFormReset); + + } + + + oParentNode.removeChild(oElement); + + + delete m_oButtons[this.get("id")]; + + +}, + + +/** +* @method toString +* @description Returns a string representing the button. +* @return {String} +*/ +toString: function() { + + return ("Button " + this.get("id")); + +} + +}); + + +/** +* @method addHiddenFieldsToForm +* @description Searches the specified form and adds hidden fields for instances +* of YAHOO.widget.Button that are of type "radio," "checkbox," "menubutton," +* and "splitbutton." +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-40002357">HTMLFormElement</a>} p_oForm Object reference +* for the form to search. +*/ +YAHOO.widget.Button.addHiddenFieldsToForm = function(p_oForm) { + + var aButtons = Dom.getElementsByClassName("yuibutton", "*", p_oForm), + nButtons = aButtons.length; + + + if(nButtons > 0) { + + + var oButton = null, + sType = null, + oMenuItem = null, + oMenu = null; + + for(var i=0; i<nButtons; i++) { + + oButton = m_oButtons[aButtons[i].id]; + + if(oButton) { + + sType = oButton.get("type"); + oMenuItem = oButton.get("selectedMenuItem"); + + + if(sType == "radio" || sType == "checkbox") { + + + oButton.createHiddenField(); + + } + else if(oMenuItem) { + + oMenu = oButton.getMenu(); + + var oSrcElement = oMenu.srcElement; + + if( + oSrcElement && + oSrcElement.tagName.toUpperCase() == "SELECT" + ) { + + oButton.getForm().appendChild(oSrcElement); + oSrcElement.selectedIndex = oMenuItem.index; + + } + else { + + var oValue = ( + oMenuItem.value === null || + oMenuItem.value === "" + ) ? oMenuItem.cfg.getProperty("text") : + oMenuItem.value; + + if(oValue) { + + var oField = createInputElement( + "hidden", + (oButton.get("name") + "_options"), + oValue + ); + + oButton.getForm().appendChild(oField); + + } + + } + + } + + } + + } + + } + +}; + + + +// Events + + +/** +* @event focus +* @description Fires when the menu item receives focus. Passes back a single +* object representing the original DOM event object passed back by the event +* utility (YAHOO.util.Event) when the event was fired. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event blur +* @description Fires when the menu item loses the input focus. Passes back a +* single object representing the original DOM event object passed back by the +* event utility (YAHOO.util.Event) when the event was fired. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event option +* @description Fires when the user invokes the button's option. Passes back a +* single object representing the original DOM event (either "mousedown" or +* "keydown") that caused the "option" event to fire. See <a href=" +* YAHOO.util.Element.html#addListener">Element.addListener</a> for more +* information on listening for this event. +* @type YAHOO.util.CustomEvent +*/ + + +/** +* @event init +* @description Fires when the Button is initialized. Subscribe to this event +* by specifying a value for the "oninit" configuration attribute. Format:<br> +* <code> {<br> <strong>fn:</strong> Function, // The handler to call +* when the event fires.<br> <strong>obj:</strong> Object, // An object +* to pass back to the handler.<br> <strong>scope:</strong> Object // +* The object to use for the scope of the handler.<br> } </code> +* @type YAHOO.util.CustomEvent +*/ + +})(); +(function() { + +// Shorthard for utilities + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang, + Button = YAHOO.widget.Button; + + // Private collection of radio buttons + + m_oButtons = {}; + + + +/** +* The ButtonGroup class creates a set of buttons that are mutually exclusive; +* checking one button in the set will uncheck all others in the button group. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the button group. +* @param {Object} p_oElement Object literal specifying a set of +* configuration attributes used to create the button group. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button group. +* @namespace YAHOO.widget +* @class ButtonGroup +* @constructor +* @extends YAHOO.util.Element +*/ +YAHOO.widget.ButtonGroup = function(p_oElement, p_oAttributes) { + + var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor; + + if( + arguments.length == 1 && + !Lang.isString(p_oElement) && + !p_oElement.nodeName + ) { + + if(!p_oElement.id) { + + var sId = Dom.generateId(); + + p_oElement.id = sId; + + + } + + + + fnSuperClass.call(this, (this._createGroupElement()), p_oElement); + + } + else if(Lang.isString(p_oElement)) { + + var me = this; + + Event.onContentReady(p_oElement, function() { + + if(this.nodeName.toUpperCase() == me.TAG_NAME) { + + + fnSuperClass.call(me, this, p_oAttributes); + + } + + }); + + } + else { + + var sNodeName = p_oElement.nodeName; + + if(sNodeName && sNodeName == this.TAG_NAME) { + + if(!p_oElement.id) { + + p_oElement.id = Dom.generateId(); + + + } + + + fnSuperClass.call(this, p_oElement, p_oAttributes); + + } + + } + +}; + + +YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, { + + +// Protected properties + + +/** +* @property _buttons +* @description Array of buttons in the button group. +* @default null +* @protected +* @type Array +*/ +_buttons: null, + + +/** +* @property _oninitAttributeValue +* @description Object reference to the button group's current value for the +* "oninit" configuration attribute. +* @default null +* @protected +* @type Object +*/ +_oninitAttributeValue: null, + + + +// Constants + + +/** +* @property TAG_NAME +* @description The name of the tag to be used for the button group's element. +* @default "DIV" +* @final +* @type String +*/ +TAG_NAME: "DIV", + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* button group's element. +* @default "yuibuttongroup" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuibuttongroup", + + + +// Protected methods + + +/** +* @method _createGroupElement +* @description Creates the button group's element. +* @protected +* @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} +*/ +_createGroupElement: function() { + + var oElement = document.createElement(this.TAG_NAME); + + oElement.className = this.CSS_CLASS_NAME; + + return oElement; + +}, + + + +// Protected attribute setter methods + + +/** +* @method _setDisabled +* @description Sets the value of the button groups's "disabled" attribute. +* @protected +* @param {Boolean} p_bDisabled Boolean indicating the value for the button +* group's "disabled" attribute. +*/ +_setDisabled: function(p_bDisabled) { + + var nButtons = this.getCount(); + + if(nButtons > 0) { + + var i = nButtons - 1; + + do { + + this._buttons[i].set("disabled", p_bDisabled); + + } + while(i--); + + } + +}, + + +/** +* @method _setOnInit +* @description Sets the value of the button group's "init" attribute. +* @protected +* @param {Object} p_oObject Object indicating the value for the button's +* "oninit" attribute. +*/ +_setOnInit: function(p_oObject) { + + /* + Remove any existing listeners if a "init" event handler has already + been specified. + */ + + if( + this._oninitAttributeValue && + (this._oninitAttributeValue != p_oObject) + ) { + + this.removeListener("init", this._oninitAttributeValue.fn); + + this._oninitAttributeValue = null; + + } + + + if( + !this._oninitAttributeValue && + Lang.isObject(p_oObject) && + Lang.isFunction(p_oObject.fn) + ) { + + this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope); + + this._oninitAttributeValue = p_oObject; + + } + +}, + + +// Protected event handlers + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the button group. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +*/ +_onKeyDown: function(p_oEvent) { + + var oTarget = Event.getTarget(p_oEvent), + nCharCode = Event.getCharCode(p_oEvent), + sId = oTarget.parentNode.parentNode.id, + oButton = m_oButtons[sId], + nIndex = -1; + + + if(nCharCode == 37 || nCharCode == 38) { + + nIndex = (oButton.index === 0) ? + (this._buttons.length -1) : (oButton.index - 1); + + } + else if(nCharCode == 39 || nCharCode == 40) { + + nIndex = (oButton.index === (this._buttons.length - 1)) ? + 0 : (oButton.index + 1); + + } + + + if(nIndex > -1) { + + this.check(nIndex); + this.getButton(nIndex).focus(); + + } + +}, + + +/** +* @method _onAppendTo +* @description "appendTo" event handler for the button group. +* @protected +* @param {Event} p_oEvent Object representing the event that was fired. +*/ +_onAppendTo: function(p_oEvent) { + + var aButtons = this._buttons, + nButtons = aButtons.length; + + for(var i=0; i<nButtons; i++) { + + aButtons[i].appendTo(this.get("element")); + + } + +}, + + +/** +* @method _onButtonCheckedChange +* @description "checkedChange" event handler for each button in the +* button group. +* @protected +* @param {Event} p_oEvent Object representing the event that was fired. +* @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} p_oButton +* Object representing the button that +* fired the event. +*/ +_onButtonCheckedChange: function(p_oEvent, p_oButton) { + + var bChecked = p_oEvent.newValue, + oCheckedButton = this.get("checkedButton"); + + if(bChecked && oCheckedButton != p_oButton) { + + if(oCheckedButton) { + + oCheckedButton.set("checked", false, true); + + } + + this.set("checkedButton", p_oButton); + this.set("value", p_oButton.get("value")); + + } + else if(oCheckedButton && !oCheckedButton.set("checked")) { + + oCheckedButton.set("checked", true, true); + + } + +}, + + + +// Public methods + + +/** +* @method init +* @description The ButtonGroup class's initialization method. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the button group. +* @param {Object} p_oElement Object literal specifying a set of configuration +* attributes used to create the button group. +* @param {Object} p_oAttributes Optional. Object literal specifying a set of +* configuration attributes used to create the button group. +*/ +init: function(p_oElement, p_oAttributes) { + + this._buttons = []; + + YAHOO.widget.ButtonGroup.superclass.init.call( + this, p_oElement, + p_oAttributes + ); + + + + var aButtons = this.getElementsByClassName("yuibutton"); + + + if(aButtons.length > 0) { + + + this.addButtons(aButtons); + + } + + + + function isRadioButton(p_oElement) { + + return (p_oElement.type == "radio"); + + } + + aButtons = Dom.getElementsBy(isRadioButton, "input", this.get("element")); + + + if(aButtons.length > 0) { + + + this.addButtons(aButtons); + + } + + this.on("keydown", this._onKeyDown); + this.on("appendTo", this._onAppendTo); + + var oContainer = this.get("container"); + + if(oContainer) { + + if(Lang.isString(oContainer)) { + + var me = this; + + Event.onContentReady(oContainer, function() { + + me.appendTo(this); + + }); + + } + else { + + this.appendTo(oContainer); + + } + + } + + + this.fireEvent("init"); + + +}, + + +/** +* @method initAttributes +* @description Initializes all of the configuration attributes used to create +* the button group. +* @param {Object} p_oAttributes Object literal specifying a set of +* configuration attributes used to create the button group. +*/ +initAttributes: function(p_oAttributes) { + + var oAttributes = p_oAttributes || {}; + + YAHOO.widget.ButtonGroup.superclass.initAttributes.call( + this, + oAttributes + ); + + + /** + * @config name + * @description String specifying the name for the button group. This + * name will be applied to each button in the button group. + * @default null + * @type String + */ + this.setAttributeConfig("name", { + + value: oAttributes.name, + validator: Lang.isString + + }); + + + /** + * @config disabled + * @description Boolean indicating if the button group should be disabled. + * Disabling the button group will disable each button in the button group. + * Disabled buttons are dimmed and will not respond to user input + * or fire events. + * @default false + * @type Boolean + */ + this.setAttributeConfig("disabled", { + + value: (oAttributes.disabled || false), + validator: Lang.isBoolean, + method: this._setDisabled + + }); + + + /** + * @config value + * @description Object specifying the value for the button group. + * @default null + * @type Object + */ + this.setAttributeConfig("value", { + + value: oAttributes.value + + }); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the button group's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default null + */ + this.setAttributeConfig("container", { + + value: oAttributes.container + + }); + + + /** + * @config checkedButton + * @description Reference for the button in the button group that + * is checked. + * @type {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} + * @default null + */ + this.setAttributeConfig("checkedButton", { + + value: null + + }); + + + /** + * @config oninit + * @description Object literal representing the code to be executed when + * the button group is initialized. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when the + * event fires.<br> <strong>obj:</strong> Object, // An object to + * pass back to the handler.<br> <strong>scope:</strong> Object // + * The object to use for the scope of the handler.<br> } </code> + * @type Object + * @default null + */ + this.setAttributeConfig("oninit", { + + value: oAttributes.oninit, + method: this._setOnInit + + }); + +}, + + +/** +* @method addButton +* @description Adds the button to the button group. +* @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} p_oButton +* Object reference for the <a href="YAHOO.widget.Button.html"> +* YAHOO.widget.Button</a> instance to be added to the button group. +* @param {String} p_oButton String specifying the id attribute of the +* <code><input></code> or <code><span></code> element to be +* used to create the button to be added to the button group. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-6043025">HTMLInputElement</a>|<a href=" +* http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html# +* ID-33759296">HTMLElement</a>} p_oButton Object reference for the +* <code><input></code> or <code><span></code> element to be +* used to create the button to be added to the button group. +* @param {Object} p_oButton Object literal specifying a set of +* <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> configuration +* attributes used to configure the button to be added to the button group. +* @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} +*/ +addButton: function(p_oButton) { + + var oButton; + + + if(p_oButton instanceof Button && p_oButton.get("type") == "radio") { + + oButton = p_oButton; + + } + else if(!Lang.isString(p_oButton) && !p_oButton.nodeName) { + + p_oButton.type = "radio"; + + oButton = new Button(p_oButton); + + } + else { + + oButton = new Button(p_oButton, { type: "radio" }); + + } + + + if(oButton) { + + var nIndex = this._buttons.length, + sButtonName = oButton.get("name"), + sGroupName = this.get("name"); + + oButton.index = nIndex; + + this._buttons[nIndex] = oButton; + m_oButtons[oButton.get("id")] = oButton; + + + if(sButtonName != sGroupName) { + + oButton.set("name", sGroupName); + + } + + + if(this.get("disabled")) { + + oButton.set("disabled", true); + + } + + + if(oButton.get("checked")) { + + this.set("checkedButton", oButton); + + } + + + oButton.on("checkedChange", this._onButtonCheckedChange, oButton, this); + + + return oButton; + + } + +}, + + +/** +* @method addButtons +* @description Adds the array of buttons to the button group. +* @param {Array} p_aButtons Array of <a href="YAHOO.widget.Button.html"> +* YAHOO.widget.Button</a> instances to be added +* to the button group. +* @param {Array} p_aButtons Array of strings specifying the id attribute of +* the <code><input></code> or <code><span></code> elements to +* be used to create the buttons to be added to the button group. +* @param {Array} p_aButtons Array of object references for the +* <code><input></code> or <code><span></code> elements to be +* used to create the buttons to be added to the button group. +* @param {Array} p_aButtons Array of object literals, each containing a set of +* <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> configuration +* attributes used to configure each button to be added to the button group. +* @return {Array} +*/ +addButtons: function(p_aButtons) { + + if(Lang.isArray(p_aButtons)) { + + var nButtons = p_aButtons.length, + oButton, + aButtons = []; + + if(nButtons > 0) { + + for(var i=0; i<nButtons; i++) { + + oButton = this.addButton(p_aButtons[i]); + + if(oButton) { + + aButtons[aButtons.length] = oButton; + + } + + } + + if(aButtons.length > 0) { + + + return aButtons; + + } + + } + + } + +}, + + +/** +* @method removeButton +* @description Removes the button at the specified index from the button group. +* @param {Number} p_nIndex Number specifying the index of the button to be +* removed from the button group. +*/ +removeButton: function(p_nIndex) { + + var oButton = this.getButton(p_nIndex); + + if(oButton) { + + + this._buttons.splice(p_nIndex, 1); + delete m_oButtons[oButton.get("id")]; + + oButton.removeListener("checkedChange", this._onButtonCheckedChange); + oButton.destroy(); + + + var nButtons = this._buttons.length; + + if(nButtons > 0) { + + var i = this._buttons.length - 1; + + do { + + this._buttons[i].index = i; + + } + while(i--); + + } + + + } + +}, + + +/** +* @method getButton +* @description Returns the button at the specified index. +* @param {Number} p_nIndex The index of the button to retrieve from the +* button group. +* @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} +*/ +getButton: function(p_nIndex) { + + if(Lang.isNumber(p_nIndex)) { + + return this._buttons[p_nIndex]; + + } + +}, + + +/** +* @method getButtons +* @description Returns an array of the buttons in the button group. +* @return {Array} +*/ +getButtons: function() { + + return this._buttons; + +}, + + +/** +* @method getCount +* @description Returns the number of buttons in the button group. +* @return {Number} +*/ +getCount: function() { + + return this._buttons.length; + +}, + + +/** +* @method focus +* @description Sets focus to the button at the specified index. +* @param {Number} p_nIndex Number indicating the index of the button to focus. +*/ +focus: function(p_nIndex) { + + var oButton; + + if(Lang.isNumber(p_nIndex)) { + + oButton = this._buttons[p_nIndex]; + + if(oButton) { + + oButton.focus(); + + } + + } + else { + + var nButtons = this.getCount(); + + for(var i=0; i<nButtons; i++) { + + oButton = this._buttons[i]; + + if(!oButton.get("disabled")) { + + oButton.focus(); + break; + + } + + } + + } + +}, + + +/** +* @method check +* @description Checks the button at the specified index. +* @param {Number} p_nIndex Number indicating the index of the button to check. +*/ +check: function(p_nIndex) { + + var oButton = this.getButton(p_nIndex); + + if(oButton) { + + oButton.set("checked", true); + + } + +}, + + +/** +* @method destroy +* @description Removes the button group's element from its parent element and +* removes all event handlers. +*/ +destroy: function() { + + + var nButtons = this._buttons.length, + oElement = this.get("element"), + oParentNode = oElement.parentNode; + + if(nButtons > 0) { + + var i = this._buttons.length - 1; + + do { + + this._buttons[i].destroy(); + + } + while(i--); + + } + + + Event.purgeElement(oElement); + + + oParentNode.removeChild(oElement); + +}, + + +/** +* @method toString +* @description Returns a string representing the button group. +* @return {String} +*/ +toString: function() { + + return ("ButtonGroup " + this.get("id")); + +} + +}); + + + +// Events + + +/** +* @event init +* @description Fires when the button group is initialized. Subscribe to this +* event by specifying a value for the "oninit" configuration attribute. +* Format:<br> <code> {<br> <strong>fn:</strong> Function, // The +* handler to call when the event fires.<br> <strong>obj:</strong> Object, +* // An object to pass back to the handler.<br> <strong>scope:</strong> +* Object // The object to use for the scope of the handler.<br> +* } </code> +* @type YAHOO.util.CustomEvent +*/ + +})(); +YAHOO.register("button", YAHOO.widget.Button, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/calendar/README b/interface/ispconfig/interface/js/yui/calendar/README new file mode 100644 index 0000000..f0ddd12 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/README @@ -0,0 +1,88 @@ +Calendar Release Notes + +*** version 2.2.0 *** + + - Image customization can now be done through CSS. Images for Close, Left and Right Arrows are now pulled in using CSS defined in calendar.css and by default use relative paths to the images in the same directory as calendar.css. + - Deprecated Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties. Customizations based on older releases which set these properties will still function as expected. + - Deprecated CalendarGroup.CSS_2UPCLOSE. Calendar's Style.CSS_CLOSE property now represents the new default CSS class (calclose) for the close button. CSS_2UPCLOSE is still applied along with CSS_CLOSE to the new markup for the close button to support existing customizations of the CSS_2UPCLOSE CSS class (close-icon) + - Fixed problem with Safari setting Calendar pages to incorrect dates if the pages spanned a year boundary in CalendarGroups with 3 or more pages, due to a bug in Safari's implementation of Date setMonth + - Fixed problem with CalendarGroup setMonth rendering Calendar pages with incorrect dates in all browsers if current pages spanned year boundary + - Fixed incorrect CalendarGroup logging statement in calendar-debug.js + - Fixed domEventMap support for Safari versions prior to 2.0.2, caused by hasOwnProperty not being supported + - Removed unused private property : _pageDate from Calendar class + +*** version 0.12.2 *** + + - Corrected documentation for clearTime function to reflect the change from midnight to noon + +*** version 0.12.1 *** + + - Calendar and CalendarGroup now automatically parse the argument passed to setMonth and setYear into an integer, eliminating potential concatenation bugs. + +*** version 0.12 *** + + - New documentation format implemented + - Calendar2up and Calendar_Core are now deprecated. Now, Calendar alone represents the single Calendar instance, and CalendarGroup represents an n-up instance, defaulting to 2up + - Added semantic style classes to Calendar elements to allow for custom styling solely using CSS. + - Remapped all configuration properties to use the Config object (familiar to those who use the Container collection of controls). Property names are the same as their previous counterparts, but wrapped into Calendar.cfg, allowing for runtime reconfiguration of most properties + - Added "title" property for setting the Calendar title + - Added "close" property for enabling and disabling the close icon + - Added "iframe" property for enabling an iframe shim in Internet Explorer 6 and below to fix the select bleed-through bug + - pageDate moved to property: "pagedate" + - selectedDates moved to property: "selected" + - minDate moved to property : "mindate", which accepts a JavaScript Date object like its predecessor, but also supports string dates + - maxDate moved to property : "maxdate", which accepts a JavaScript Date object like its predecessor, but also supports string dates + - Moved style declarations to initStyles function + - Optimized event handling in doSelectCell/doCellMouseOver/doCellMouseOut by only attaching the listener to the outer Calendar container, and only reacting to events on cells with the "selectable" CSS class. + - Added domEventMap field for applying DOM event listeners to cells containing specific class and tag combinations. + - Moved all cell DOM event attachment to applyListeners function + - Added getDateByCellId / getDateFieldsByCellId helper functions + - Corrected DateMath.getWeekNumber to comply with ISO week number handling + - Separated renderCellDefault style portions into styleCellDefault function for easy extension + - Deprecated onBeforeSelect. Created beforeSelectEvent which automatically subscribes to its deprecated predecessor. + - Deprecated onSelect. Created selectEvent, which automatically subscribes to its deprecated predecessor. + - Deprecated onBeforeDeselect. Created beforeSelectEvent which automatically subscribes to its deprecated predecessor. + - Deprecated onDeselect. Created beforeDeselectEvent, which automatically subscribes to its deprecated predecessor. + - Deprecated onChangePage. Created changePageEvent, which automatically subscribes to its deprecated predecessor. + - Deprecated onRender. Created renderEvent, which automatically subscribes to its deprecated predecessor. + - Deprecated onReset. Created resetEvent, which automatically subscribes to its deprecated predecessor. + - Deprecated onClear. Created clearEvent, which automatically subscribes to its deprecated predecessor. + - Corrected setMonth documentation to refer to 0-11 indexed months. + - Added show and hide methods to Calendar for setting the Calendar's display property. + - Optimized internal render classes to use innerHTML and string buffers + - Removed wireCustomEvents function + - Removed wireDefaultEvents function + - Removed doNextMonth / doPreviousMonth + - Removed all buildShell (header, body, footer) functions, since the Calendar shell is now built dynamically on each render + - Wired all CalendarGroup events and configuration properties to be properly delegated to Calendar + - Augmented CalendarGroup with all built-in renderers, label functions, hide, show, and initStyles, creating API transparency between Calendar and CalendarGroup. + - Made all tagName, createElement, and entity references XHTML compliant + - Fixed Daylight Saving Time bug for Brazilian time zone + +*** version 0.11.3 *** + + - Calendar_Core: Added arguments for selected/deselected dates to onSelect/onDeselect + - CalendarGroup: Fixed bug where selected dates passed to constructor were not represented in selectedDates + - Calendar2up: Now displays correctly in Opera 9 + +*** version 0.11.0 *** + + - DateMath: DateMath.add now properly adds weeks + - DateMath: between() function added + - DateMath: getWeekNumber() fixed to take starting day of week into account + - All references to Calendar's built in CSS class handlers are removed, replaced with calls to Dom utility (addClass, removeClass) + - Several CSS class constants now have clearer names + - All CSS classes are now properly namespaced to avoid CSS conflicts + - Fixed table:hover bug in CSS + - Calendar no longer requires the container ID and variable name to match in order for month navigation to function properly + - Calendar month navigation arrows are now represented as background images + +*** version 0.10.0 *** + + - Major performance improvements from attaching DOM events to associated table cells only once, when the Calendar shell is built + - DOM events for mouseover/mouseout are now fired for all browsers (not just Internet Explorer) + - Reset functionality bug fixed for 2-up Calendar view + +*** version 0.9.0 *** + +* Initial release diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css b/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css new file mode 100644 index 0000000..8a91844 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css @@ -0,0 +1,197 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +.yui-calcontainer { + position:relative; + padding:5px; + background-color:#F7F9FB; + border:1px solid #7B9EBD; + float:left; + overflow:hidden; +} + +.yui-calcontainer iframe { + position:absolute; + border:none; + margin:0;padding:0; + left:-1px; + top:-1px; + z-index:0; + width:50em; + height:50em; +} + +.yui-calcontainer.multi { + padding:0; +} + +.yui-calcontainer.multi .groupcal { + padding:5px; + background-color:transparent; + z-index:1; + float:left; + position:relative; + border:none; +} + +.yui-calcontainer .title { + font:100% sans-serif; + color:#000; + font-weight:bold; + margin-bottom:5px; + height:25px; + position:absolute; + top:3px;left:5px; + z-index:1; +} + +.yui-calcontainer .close-icon { + position:absolute; + right:3px; + top:3px; + border:none; + z-index:1; +} + +.yui-calcontainer .calclose { + background: url("calx.gif") no-repeat; + width:17px; + height:13px; + cursor:pointer; +} + +/* Calendar element styles */ + +.yui-calendar { + font:100% sans-serif; + text-align:center; + border-spacing:0; + border-collapse:separate; + position:relative; +} + +.yui-calcontainer.withtitle { + padding-top:1.5em; +} + +.yui-calendar .calnavleft { + position:absolute; + cursor:pointer; + top:2px; + bottom:0; + width:9px; + height:12px; + left:2px; + z-index:1; + background: url("callt.gif") no-repeat; +} + +.yui-calendar .calnavright { + position:absolute; + cursor:pointer; + top:2px; + bottom:0; + width:9px; + height:12px; + right:2px; + z-index:1; + background: url("calrt.gif") no-repeat; +} + +.yui-calendar td.calcell { + padding:.1em .2em; + border:1px solid #E0E0E0; + text-align:center; +} + +.yui-calendar td.calcell a { + color:#003DB8; + text-decoration:none; +} + +.yui-calendar td.calcell.today { + border:1px solid #000; +} + +.yui-calendar td.calcell.oom { + cursor:default; + color:#999; + background-color:#EEE; + border:1px solid #E0E0E0; +} + +.yui-calendar td.calcell.selected { + color:#003DB8; + background-color:#FFF19F; + border:1px solid #FF9900; +} + +.yui-calendar td.calcell.calcellhover { + cursor:pointer; + color:#FFF; + background-color:#FF9900; + border:1px solid #FF9900; +} + +.yui-calendar td.calcell.calcellhover a { + color:#FFF; +} + +.yui-calendar td.calcell.restricted { + text-decoration:line-through; +} + +.yui-calendar td.calcell.previous { + color:#CCC; +} + +.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; } +.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; } +.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; } +.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; } + +.yui-calendar .calhead { + border:1px solid #E0E0E0; + vertical-align:middle; + background-color:#FFF; +} + +.yui-calendar .calheader { + position:relative; + width:100%; + text-align:center; +} + +.yui-calendar .calheader img { + border:none; +} + +.yui-calendar .calweekdaycell { + color:#666; + font-weight:normal; + text-align:center; + width:1.5em; +} + +.yui-calendar .calfoot { + background-color:#EEE; +} + +.yui-calendar .calrowhead, .yui-calendar .calrowfoot { + color:#666; + font-size:9px; + font-style:italic; + font-weight:normal; + width:15px; +} + +.yui-calendar .calrowhead { + border-right-width:2px; +} + +/* Specific changes for calendar running under fonts/reset */ +.yui-calendar .calbody a:hover {background:inherit;} +p#clear {clear:left; padding-top:10px;} diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif b/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif new file mode 100644 index 0000000..a6cc8da --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif b/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif new file mode 100644 index 0000000..ee137b2 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif b/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif new file mode 100644 index 0000000..27e7bc3 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js b/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js new file mode 100644 index 0000000..9e60a1c --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js @@ -0,0 +1,4331 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } + if (!owner) { YAHOO.log("No owner specified for Config object", "error"); } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + YAHOO.log("Firing Config event: " + key + "=" + value, "info"); + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + YAHOO.log("Added property: " + key, "info"); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + YAHOO.log("setProperty: " + key + "=" + value, "info"); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + YAHOO.log("queueProperty: " + key + "=" + value, "info"); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + YAHOO.log("Config event queue: " + this.outputEventQueue(), "info"); + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility +* used for adding, subtracting, and comparing dates. +* @namespace YAHOO.widget +* @class DateMath +*/ +YAHOO.widget.DateMath = { + /** + * Constant field representing Day + * @property DAY + * @static + * @final + * @type String + */ + DAY : "D", + + /** + * Constant field representing Week + * @property WEEK + * @static + * @final + * @type String + */ + WEEK : "W", + + /** + * Constant field representing Year + * @property YEAR + * @static + * @final + * @type String + */ + YEAR : "Y", + + /** + * Constant field representing Month + * @property MONTH + * @static + * @final + * @type String + */ + MONTH : "M", + + /** + * Constant field representing one day, in milliseconds + * @property ONE_DAY_MS + * @static + * @final + * @type Number + */ + ONE_DAY_MS : 1000*60*60*24, + + /** + * Adds the specified amount of time to the this instance. + * @method add + * @param {Date} date The JavaScript Date object to perform addition on + * @param {String} field The field constant to be used for performing addition. + * @param {Number} amount The number of units (measured in the field constant) to add to the date. + * @return {Date} The resulting Date object + */ + add : function(date, field, amount) { + var d = new Date(date.getTime()); + switch (field) { + case this.MONTH: + var newMonth = date.getMonth() + amount; + var years = 0; + + + if (newMonth < 0) { + while (newMonth < 0) { + newMonth += 12; + years -= 1; + } + } else if (newMonth > 11) { + while (newMonth > 11) { + newMonth -= 12; + years += 1; + } + } + + d.setMonth(newMonth); + d.setFullYear(date.getFullYear() + years); + break; + case this.DAY: + d.setDate(date.getDate() + amount); + break; + case this.YEAR: + d.setFullYear(date.getFullYear() + amount); + break; + case this.WEEK: + d.setDate(date.getDate() + (amount * 7)); + break; + } + return d; + }, + + /** + * Subtracts the specified amount of time from the this instance. + * @method subtract + * @param {Date} date The JavaScript Date object to perform subtraction on + * @param {Number} field The this field constant to be used for performing subtraction. + * @param {Number} amount The number of units (measured in the field constant) to subtract from the date. + * @return {Date} The resulting Date object + */ + subtract : function(date, field, amount) { + return this.add(date, field, (amount*-1)); + }, + + /** + * Determines whether a given date is before another date on the calendar. + * @method before + * @param {Date} date The Date object to compare with the compare argument + * @param {Date} compareTo The Date object to use for the comparison + * @return {Boolean} true if the date occurs before the compared date; false if not. + */ + before : function(date, compareTo) { + var ms = compareTo.getTime(); + if (date.getTime() < ms) { + return true; + } else { + return false; + } + }, + + /** + * Determines whether a given date is after another date on the calendar. + * @method after + * @param {Date} date The Date object to compare with the compare argument + * @param {Date} compareTo The Date object to use for the comparison + * @return {Boolean} true if the date occurs after the compared date; false if not. + */ + after : function(date, compareTo) { + var ms = compareTo.getTime(); + if (date.getTime() > ms) { + return true; + } else { + return false; + } + }, + + /** + * Determines whether a given date is between two other dates on the calendar. + * @method between + * @param {Date} date The date to check for + * @param {Date} dateBegin The start of the range + * @param {Date} dateEnd The end of the range + * @return {Boolean} true if the date occurs between the compared dates; false if not. + */ + between : function(date, dateBegin, dateEnd) { + if (this.after(date, dateBegin) && this.before(date, dateEnd)) { + return true; + } else { + return false; + } + }, + + /** + * Retrieves a JavaScript Date object representing January 1 of any given year. + * @method getJan1 + * @param {Number} calendarYear The calendar year for which to retrieve January 1 + * @return {Date} January 1 of the calendar year specified. + */ + getJan1 : function(calendarYear) { + return new Date(calendarYear,0,1); + }, + + /** + * Calculates the number of days the specified date is from January 1 of the specified calendar year. + * Passing January 1 to this function would return an offset value of zero. + * @method getDayOffset + * @param {Date} date The JavaScript date for which to find the offset + * @param {Number} calendarYear The calendar year to use for determining the offset + * @return {Number} The number of days since January 1 of the given year + */ + getDayOffset : function(date, calendarYear) { + var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1. + + // Find the number of days the passed in date is away from the calendar year start + var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS); + return dayOffset; + }, + + /** + * Calculates the week number for the given date. This function assumes that week 1 is the + * week in which January 1 appears, regardless of whether the week consists of a full 7 days. + * The calendar year can be specified to help find what a the week number would be for a given + * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or + * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction + * easily. + * @method getWeekNumber + * @param {Date} date The JavaScript date for which to find the week number + * @param {Number} calendarYear OPTIONAL - The calendar year to use for determining the week number. Default is + * the calendar year of parameter "date". + * @param {Number} weekStartsOn OPTIONAL - The integer (0-6) representing which day a week begins on. Default is 0 (for Sunday). + * @return {Number} The week number of the given date. + */ + getWeekNumber : function(date, calendarYear) { + date = this.clearTime(date); + var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS)); + + var jan1 = new Date(nearestThurs.getFullYear(),0,1); + var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1; + + var weekNum = Math.ceil((dayOfYear)/ 7); + return weekNum; + }, + + /** + * Determines if a given week overlaps two different years. + * @method isYearOverlapWeek + * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week. + * @return {Boolean} true if the date overlaps two different years. + */ + isYearOverlapWeek : function(weekBeginDate) { + var overlaps = false; + var nextWeek = this.add(weekBeginDate, this.DAY, 6); + if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) { + overlaps = true; + } + return overlaps; + }, + + /** + * Determines if a given week overlaps two different months. + * @method isMonthOverlapWeek + * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week. + * @return {Boolean} true if the date overlaps two different months. + */ + isMonthOverlapWeek : function(weekBeginDate) { + var overlaps = false; + var nextWeek = this.add(weekBeginDate, this.DAY, 6); + if (nextWeek.getMonth() != weekBeginDate.getMonth()) { + overlaps = true; + } + return overlaps; + }, + + /** + * Gets the first day of a month containing a given date. + * @method findMonthStart + * @param {Date} date The JavaScript Date used to calculate the month start + * @return {Date} The JavaScript Date representing the first day of the month + */ + findMonthStart : function(date) { + var start = new Date(date.getFullYear(), date.getMonth(), 1); + return start; + }, + + /** + * Gets the last day of a month containing a given date. + * @method findMonthEnd + * @param {Date} date The JavaScript Date used to calculate the month end + * @return {Date} The JavaScript Date representing the last day of the month + */ + findMonthEnd : function(date) { + var start = this.findMonthStart(date); + var nextMonth = this.add(start, this.MONTH, 1); + var end = this.subtract(nextMonth, this.DAY, 1); + return end; + }, + + /** + * Clears the time fields from a given date, effectively setting the time to 12 noon. + * @method clearTime + * @param {Date} date The JavaScript Date for which the time fields will be cleared + * @return {Date} The JavaScript Date cleared of all time fields + */ + clearTime : function(date) { + date.setHours(12,0,0,0); + return date; + } +}; + +/** +* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month ("one-up") or two-month ("two-up") interface. Calendars are generated entirely via script and can be navigated without any page refreshes. +* @module calendar +* @title Calendar +* @namespace YAHOO.widget +* @requires yahoo,dom,event +*/ + +/** +* Calendar is the base class for the Calendar widget. In its most basic +* implementation, it has the ability to render a calendar widget on the page +* that can be manipulated to select a single date, move back and forth between +* months and years. +* <p>To construct the placeholder for the calendar widget, the code is as +* follows: +* <xmp> +* <div id="cal1Container"></div> +* </xmp> +* Note that the table can be replaced with any kind of element. +* </p> +* @namespace YAHOO.widget +* @class Calendar +* @constructor +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.Calendar = function(id, containerId, config) { + this.init(id, containerId, config); +}; + +/** +* The path to be used for images loaded for the Calendar +* @property YAHOO.widget.Calendar.IMG_ROOT +* @static +* @deprecated You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively +* @type String +*/ +YAHOO.widget.Calendar.IMG_ROOT = null; + +/** +* Type constant used for renderers to represent an individual date (M/D/Y) +* @property YAHOO.widget.Calendar.DATE +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.DATE = "D"; + +/** +* Type constant used for renderers to represent an individual date across any year (M/D) +* @property YAHOO.widget.Calendar.MONTH_DAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.MONTH_DAY = "MD"; + +/** +* Type constant used for renderers to represent a weekday +* @property YAHOO.widget.Calendar.WEEKDAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.WEEKDAY = "WD"; + +/** +* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y) +* @property YAHOO.widget.Calendar.RANGE +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.RANGE = "R"; + +/** +* Type constant used for renderers to represent a month across any year +* @property YAHOO.widget.Calendar.MONTH +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.MONTH = "M"; + +/** +* Constant that represents the total number of date cells that are displayed in a given month +* @property YAHOO.widget.Calendar.DISPLAY_DAYS +* @static +* @final +* @type Number +*/ +YAHOO.widget.Calendar.DISPLAY_DAYS = 42; + +/** +* Constant used for halting the execution of the remainder of the render stack +* @property YAHOO.widget.Calendar.STOP_RENDER +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.STOP_RENDER = "S"; + +YAHOO.widget.Calendar.prototype = { + + /** + * The configuration object used to set up the calendars various locale and style options. + * @property Config + * @private + * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty. + * @type Object + */ + Config : null, + + /** + * The parent CalendarGroup, only to be set explicitly by the parent group + * @property parent + * @type CalendarGroup + */ + parent : null, + + /** + * The index of this item in the parent group + * @property index + * @type Number + */ + index : -1, + + /** + * The collection of calendar table cells + * @property cells + * @type HTMLTableCellElement[] + */ + cells : null, + + /** + * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D]. + * @property cellDates + * @type Array[](Number[]) + */ + cellDates : null, + + /** + * The id that uniquely identifies this calendar. This id should match the id of the placeholder element on the page. + * @property id + * @type String + */ + id : null, + + /** + * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered. + * @property oDomContainer + * @type HTMLElement + */ + oDomContainer : null, + + /** + * A Date object representing today's date. + * @property today + * @type Date + */ + today : null, + + /** + * The list of render functions, along with required parameters, used to render cells. + * @property renderStack + * @type Array[] + */ + renderStack : null, + + /** + * A copy of the initial render functions created before rendering. + * @property _renderStack + * @private + * @type Array + */ + _renderStack : null, + + /** + * The private list of initially selected dates. + * @property _selectedDates + * @private + * @type Array + */ + _selectedDates : null, + + /** + * A map of DOM event handlers to attach to cells associated with specific CSS class names + * @property domEventMap + * @type Object + */ + domEventMap : null +}; + + + +/** +* Initializes the Calendar widget. +* @method init +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.Calendar.prototype.init = function(id, containerId, config) { + this.logger = new YAHOO.widget.LogWriter("Calendar_Core " + id); + this.initEvents(); + this.today = new Date(); + YAHOO.widget.DateMath.clearTime(this.today); + + this.id = id; + this.oDomContainer = document.getElementById(containerId); + if (! this.oDomContainer) { this.logger.log("No valid container present.", "error"); } + + /** + * The Config object used to hold the configuration variables for the Calendar + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + /** + * The local object which contains the Calendar's options + * @property Options + * @type Object + */ + this.Options = {}; + + /** + * The local object which contains the Calendar's locale settings + * @property Locale + * @type Object + */ + this.Locale = {}; + + this.initStyles(); + + YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER); + YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE); + + this.cellDates = []; + this.cells = []; + this.renderStack = []; + this._renderStack = []; + + this.setupConfig(); + + if (config) { + this.cfg.applyConfig(config, true); + } + + this.cfg.fireQueue(); +}; + +/** +* Renders the built-in IFRAME shim for the IE6 and below +* @method configIframe +*/ +YAHOO.widget.Calendar.prototype.configIframe = function(type, args, obj) { + var useIframe = args[0]; + + if (YAHOO.util.Dom.inDocument(this.oDomContainer)) { + if (useIframe) { + var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position"); + + if (this.browser == "ie" && (pos == "absolute" || pos == "relative")) { + if (! YAHOO.util.Dom.inDocument(this.iframe)) { + this.iframe = document.createElement("iframe"); + this.iframe.src = "javascript:false;"; + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild); + } + } + } else { + if (this.iframe) { + if (this.iframe.parentNode) { + this.iframe.parentNode.removeChild(this.iframe); + } + this.iframe = null; + } + } + } +}; + +/** +* Default handler for the "title" property +* @method configTitle +*/ +YAHOO.widget.Calendar.prototype.configTitle = function(type, args, obj) { + var title = args[0]; + var close = this.cfg.getProperty("close"); + + var titleDiv; + + if (title && title !== "") { + titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div"); + titleDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE; + titleDiv.innerHTML = title; + this.oDomContainer.insertBefore(titleDiv, this.oDomContainer.firstChild); + YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle"); + } else { + titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null; + + if (titleDiv) { + YAHOO.util.Event.purgeElement(titleDiv); + this.oDomContainer.removeChild(titleDiv); + } + if (! close) { + YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle"); + } + } +}; + +/** +* Default handler for the "close" property +* @method configClose +*/ +YAHOO.widget.Calendar.prototype.configClose = function(type, args, obj) { + var close = args[0]; + var title = this.cfg.getProperty("title"); + + var DEPR_CLOSE_PATH = "us/my/bn/x_d.gif"; + + var linkClose; + + if (close === true) { + linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || document.createElement("a"); + linkClose.href = "javascript:void(null);"; + linkClose.className = "link-close"; + YAHOO.util.Event.addListener(linkClose, "click", this.hide, this, true); + + if (YAHOO.widget.Calendar.IMG_ROOT !== null) { + var imgClose = document.createElement("img"); + imgClose.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH; + imgClose.className = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE; + linkClose.appendChild(imgClose); + } else { + linkClose.innerHTML = '<span class="' + YAHOO.widget.CalendarGroup.CSS_2UPCLOSE + ' ' + this.Style.CSS_CLOSE + '"></span>'; + } + + this.oDomContainer.appendChild(linkClose); + YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle"); + } else { + linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null; + if (linkClose) { + YAHOO.util.Event.purgeElement(linkClose); + this.oDomContainer.removeChild(linkClose); + } + if (! title || title === "") { + YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle"); + } + } +}; + +/** +* Initializes Calendar's built-in CustomEvents +* @method initEvents +*/ +YAHOO.widget.Calendar.prototype.initEvents = function() { + + /** + * Fired before a selection is made + * @event beforeSelectEvent + */ + this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect"); + + /** + * Fired when a selection is made + * @event selectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.selectEvent = new YAHOO.util.CustomEvent("select"); + + /** + * Fired before a selection is made + * @event beforeDeselectEvent + */ + this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect"); + + /** + * Fired when a selection is made + * @event deselectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.deselectEvent = new YAHOO.util.CustomEvent("deselect"); + + /** + * Fired when the Calendar page is changed + * @event changePageEvent + */ + this.changePageEvent = new YAHOO.util.CustomEvent("changePage"); + + /** + * Fired before the Calendar is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * Fired when the Calendar is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * Fired when the Calendar is reset + * @event resetEvent + */ + this.resetEvent = new YAHOO.util.CustomEvent("reset"); + + /** + * Fired when the Calendar is cleared + * @event clearEvent + */ + this.clearEvent = new YAHOO.util.CustomEvent("clear"); + + this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true); + this.selectEvent.subscribe(this.onSelect, this, true); + this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true); + this.deselectEvent.subscribe(this.onDeselect, this, true); + this.changePageEvent.subscribe(this.onChangePage, this, true); + this.renderEvent.subscribe(this.onRender, this, true); + this.resetEvent.subscribe(this.onReset, this, true); + this.clearEvent.subscribe(this.onClear, this, true); +}; + + +/** +* The default event function that is attached to a date link within a calendar cell +* when the calendar is rendered. +* @method doSelectCell +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doSelectCell = function(e, cal) { + var target = YAHOO.util.Event.getTarget(e); + + var cell,index,d,date; + + while (target.tagName.toLowerCase() != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + cell = target; + + if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) { + index = cell.id.split("cell")[1]; + d = cal.cellDates[index]; + date = new Date(d[0],d[1]-1,d[2]); + + var link; + + cal.logger.log("Selecting cell " + index + " via click", "info"); + if (cal.Options.MULTI_SELECT) { + link = cell.getElementsByTagName("a")[0]; + if (link) { + link.blur(); + } + + var cellDate = cal.cellDates[index]; + var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate); + + if (cellDateIndex > -1) { + cal.deselectCell(index); + } else { + cal.selectCell(index); + } + + } else { + link = cell.getElementsByTagName("a")[0]; + if (link) { + link.blur(); + } + cal.selectCell(index); + } + } +}; + +/** +* The event that is executed when the user hovers over a cell +* @method doCellMouseOver +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doCellMouseOver = function(e, cal) { + var target; + if (e) { + target = YAHOO.util.Event.getTarget(e); + } else { + target = this; + } + + while (target.tagName.toLowerCase() != "td") { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + YAHOO.util.Dom.addClass(target, cal.Style.CSS_CELL_HOVER); + } +}; + +/** +* The event that is executed when the user moves the mouse out of a cell +* @method doCellMouseOut +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doCellMouseOut = function(e, cal) { + var target; + if (e) { + target = YAHOO.util.Event.getTarget(e); + } else { + target = this; + } + + while (target.tagName.toLowerCase() != "td") { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER); + } +}; + +YAHOO.widget.Calendar.prototype.setupConfig = function() { + + /** + * The month/year representing the current visible Calendar date (mm/yyyy) + * @config pagedate + * @type String + * @default today's date + */ + this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } ); + + /** + * The date or range of dates representing the current Calendar selection + * @config selected + * @type String + * @default [] + */ + this.cfg.addProperty("selected", { value:[], handler:this.configSelected } ); + + /** + * The title to display above the Calendar's month header + * @config title + * @type String + * @default "" + */ + this.cfg.addProperty("title", { value:"", handler:this.configTitle } ); + + /** + * Whether or not a close button should be displayed for this Calendar + * @config close + * @type Boolean + * @default false + */ + this.cfg.addProperty("close", { value:false, handler:this.configClose } ); + + /** + * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below. + * @config iframe + * @type Boolean + * @default true + */ + this.cfg.addProperty("iframe", { value:true, handler:this.configIframe, validator:this.cfg.checkBoolean } ); + + /** + * The minimum selectable date in the current Calendar (mm/dd/yyyy) + * @config mindate + * @type String + * @default null + */ + this.cfg.addProperty("mindate", { value:null, handler:this.configMinDate } ); + + /** + * The maximum selectable date in the current Calendar (mm/dd/yyyy) + * @config maxdate + * @type String + * @default null + */ + this.cfg.addProperty("maxdate", { value:null, handler:this.configMaxDate } ); + + + // Options properties + + /** + * True if the Calendar should allow multiple selections. False by default. + * @config MULTI_SELECT + * @type Boolean + * @default false + */ + this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * The weekday the week begins on. Default is 0 (Sunday). + * @config START_WEEKDAY + * @type number + * @default 0 + */ + this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.configOptions, validator:this.cfg.checkNumber } ); + + /** + * True if the Calendar should show weekday labels. True by default. + * @config SHOW_WEEKDAYS + * @type Boolean + * @default true + */ + this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row headers. False by default. + * @config SHOW_WEEK_HEADER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row footers. False by default. + * @config SHOW_WEEK_FOOTER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should suppress weeks that are not a part of the current month. False by default. + * @config HIDE_BLANK_WEEKS + * @type Boolean + * @default false + */ + this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * The image that should be used for the left navigation arrow. + * @config NAV_ARROW_LEFT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.configOptions } ); + + /** + * The image that should be used for the right navigation arrow. + * @config NAV_ARROW_RIGHT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.configOptions } ); + + // Locale properties + + /** + * The short month labels for the current locale. + * @config MONTHS_SHORT + * @type String[] + * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + */ + this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.configLocale } ); + + /** + * The long month labels for the current locale. + * @config MONTHS_LONG + * @type String[] + * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" + */ + this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.configLocale } ); + + /** + * The 1-character weekday labels for the current locale. + * @config WEEKDAYS_1CHAR + * @type String[] + * @default ["S", "M", "T", "W", "T", "F", "S"] + */ + this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.configLocale } ); + + /** + * The short weekday labels for the current locale. + * @config WEEKDAYS_SHORT + * @type String[] + * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] + */ + this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.configLocale } ); + + /** + * The medium weekday labels for the current locale. + * @config WEEKDAYS_MEDIUM + * @type String[] + * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] + */ + this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.configLocale } ); + + /** + * The long weekday labels for the current locale. + * @config WEEKDAYS_LONG + * @type String[] + * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] + */ + this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.configLocale } ); + + /** + * Refreshes the locale values used to build the Calendar. + * @method refreshLocale + * @private + */ + var refreshLocale = function() { + this.cfg.refireEvent("LOCALE_MONTHS"); + this.cfg.refireEvent("LOCALE_WEEKDAYS"); + }; + + this.cfg.subscribeToConfigEvent("START_WEEKDAY", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("MONTHS_SHORT", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("MONTHS_LONG", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG", refreshLocale, this, true); + + /** + * The setting that determines which length of month labels should be used. Possible values are "short" and "long". + * @config LOCALE_MONTHS + * @type String + * @default "long" + */ + this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.configLocaleValues } ); + + /** + * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long". + * @config LOCALE_WEEKDAYS + * @type String + * @default "short" + */ + this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.configLocaleValues } ); + + /** + * The value used to delimit individual dates in a date string passed to various Calendar functions. + * @config DATE_DELIMITER + * @type String + * @default "," + */ + this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.configLocale } ); + + /** + * The value used to delimit date fields in a date string passed to various Calendar functions. + * @config DATE_FIELD_DELIMITER + * @type String + * @default "/" + */ + this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.configLocale } ); + + /** + * The value used to delimit date ranges in a date string passed to various Calendar functions. + * @config DATE_RANGE_DELIMITER + * @type String + * @default "-" + */ + this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.configLocale } ); + + /** + * The position of the month in a month/year date string + * @config MY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/year date string + * @config MY_YEAR_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day date string + * @config MD_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/year date string + * @config MD_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day/year date string + * @config MDY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/day/year date string + * @config MDY_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/day/year date string + * @config MDY_YEAR_POSITION + * @type Number + * @default 3 + */ + this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.configLocale, validator:this.cfg.checkNumber } ); +}; + +/** +* The default handler for the "pagedate" property +* @method configPageDate +*/ +YAHOO.widget.Calendar.prototype.configPageDate = function(type, args, obj) { + this.cfg.setProperty("pagedate", this._parsePageDate(args[0]), true); +}; + +/** +* The default handler for the "mindate" property +* @method configMinDate +*/ +YAHOO.widget.Calendar.prototype.configMinDate = function(type, args, obj) { + var val = args[0]; + if (typeof val == 'string') { + val = this._parseDate(val); + this.cfg.setProperty("mindate", new Date(val[0],(val[1]-1),val[2])); + } +}; + +/** +* The default handler for the "maxdate" property +* @method configMaxDate +*/ +YAHOO.widget.Calendar.prototype.configMaxDate = function(type, args, obj) { + var val = args[0]; + if (typeof val == 'string') { + val = this._parseDate(val); + this.cfg.setProperty("maxdate", new Date(val[0],(val[1]-1),val[2])); + } +}; + +/** +* The default handler for the "selected" property +* @method configSelected +*/ +YAHOO.widget.Calendar.prototype.configSelected = function(type, args, obj) { + var selected = args[0]; + + if (selected) { + if (typeof selected == 'string') { + this.cfg.setProperty("selected", this._parseDates(selected), true); + } + } + if (! this._selectedDates) { + this._selectedDates = this.cfg.getProperty("selected"); + } +}; + +/** +* The default handler for all configuration options properties +* @method configOptions +*/ +YAHOO.widget.Calendar.prototype.configOptions = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + this.Options[type] = val; +}; + +/** +* The default handler for all configuration locale properties +* @method configLocale +*/ +YAHOO.widget.Calendar.prototype.configLocale = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + this.Locale[type] = val; + + this.cfg.refireEvent("LOCALE_MONTHS"); + this.cfg.refireEvent("LOCALE_WEEKDAYS"); + +}; + +/** +* The default handler for all configuration locale field length properties +* @method configLocaleValues +*/ +YAHOO.widget.Calendar.prototype.configLocaleValues = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + + switch (type) { + case "LOCALE_MONTHS": + switch (val) { + case "short": + this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_SHORT").concat(); + break; + case "long": + this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_LONG").concat(); + break; + } + break; + case "LOCALE_WEEKDAYS": + switch (val) { + case "1char": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_1CHAR").concat(); + break; + case "short": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_SHORT").concat(); + break; + case "medium": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_MEDIUM").concat(); + break; + case "long": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_LONG").concat(); + break; + } + + var START_WEEKDAY = this.cfg.getProperty("START_WEEKDAY"); + + if (START_WEEKDAY > 0) { + for (var w=0;w<START_WEEKDAY;++w) { + this.Locale.LOCALE_WEEKDAYS.push(this.Locale.LOCALE_WEEKDAYS.shift()); + } + } + break; + } +}; + +/** +* Defines the style constants for the Calendar +* @method initStyles +*/ +YAHOO.widget.Calendar.prototype.initStyles = function() { + + /** + * Collection of Style constants for the Calendar + * @property Style + */ + this.Style = { + /** + * @property Style.CSS_ROW_HEADER + */ + CSS_ROW_HEADER: "calrowhead", + /** + * @property Style.CSS_ROW_FOOTER + */ + CSS_ROW_FOOTER: "calrowfoot", + /** + * @property Style.CSS_CELL + */ + CSS_CELL : "calcell", + /** + * @property Style.CSS_CELL_SELECTED + */ + CSS_CELL_SELECTED : "selected", + /** + * @property Style.CSS_CELL_SELECTABLE + */ + CSS_CELL_SELECTABLE : "selectable", + /** + * @property Style.CSS_CELL_RESTRICTED + */ + CSS_CELL_RESTRICTED : "restricted", + /** + * @property Style.CSS_CELL_TODAY + */ + CSS_CELL_TODAY : "today", + /** + * @property Style.CSS_CELL_OOM + */ + CSS_CELL_OOM : "oom", + /** + * @property Style.CSS_CELL_OOB + */ + CSS_CELL_OOB : "previous", + /** + * @property Style.CSS_HEADER + */ + CSS_HEADER : "calheader", + /** + * @property Style.CSS_HEADER_TEXT + */ + CSS_HEADER_TEXT : "calhead", + /** + * @property Style.CSS_BODY + */ + CSS_BODY : "calbody", + /** + * @property Style.CSS_WEEKDAY_CELL + */ + CSS_WEEKDAY_CELL : "calweekdaycell", + /** + * @property Style.CSS_WEEKDAY_ROW + */ + CSS_WEEKDAY_ROW : "calweekdayrow", + /** + * @property Style.CSS_FOOTER + */ + CSS_FOOTER : "calfoot", + /** + * @property Style.CSS_CALENDAR + */ + CSS_CALENDAR : "yui-calendar", + /** + * @property Style.CSS_SINGLE + */ + CSS_SINGLE : "single", + /** + * @property Style.CSS_CONTAINER + */ + CSS_CONTAINER : "yui-calcontainer", + /** + * @property Style.CSS_NAV_LEFT + */ + CSS_NAV_LEFT : "calnavleft", + /** + * @property Style.CSS_NAV_RIGHT + */ + CSS_NAV_RIGHT : "calnavright", + /** + * @property Style.CSS_CLOSE + */ + CSS_CLOSE : "calclose", + /** + * @property Style.CSS_CELL_TOP + */ + CSS_CELL_TOP : "calcelltop", + /** + * @property Style.CSS_CELL_LEFT + */ + CSS_CELL_LEFT : "calcellleft", + /** + * @property Style.CSS_CELL_RIGHT + */ + CSS_CELL_RIGHT : "calcellright", + /** + * @property Style.CSS_CELL_BOTTOM + */ + CSS_CELL_BOTTOM : "calcellbottom", + /** + * @property Style.CSS_CELL_HOVER + */ + CSS_CELL_HOVER : "calcellhover", + /** + * @property Style.CSS_CELL_HIGHLIGHT1 + */ + CSS_CELL_HIGHLIGHT1 : "highlight1", + /** + * @property Style.CSS_CELL_HIGHLIGHT2 + */ + CSS_CELL_HIGHLIGHT2 : "highlight2", + /** + * @property Style.CSS_CELL_HIGHLIGHT3 + */ + CSS_CELL_HIGHLIGHT3 : "highlight3", + /** + * @property Style.CSS_CELL_HIGHLIGHT4 + */ + CSS_CELL_HIGHLIGHT4 : "highlight4" + }; +}; + +/** +* Builds the date label that will be displayed in the calendar header or +* footer, depending on configuration. +* @method buildMonthLabel +* @return {String} The formatted calendar month label +*/ +YAHOO.widget.Calendar.prototype.buildMonthLabel = function() { + var text = this.Locale.LOCALE_MONTHS[this.cfg.getProperty("pagedate").getMonth()] + " " + this.cfg.getProperty("pagedate").getFullYear(); + return text; +}; + +/** +* Builds the date digit that will be displayed in calendar cells +* @method buildDayLabel +* @param {Date} workingDate The current working date +* @return {String} The formatted day label +*/ +YAHOO.widget.Calendar.prototype.buildDayLabel = function(workingDate) { + var day = workingDate.getDate(); + return day; +}; + +/** +* Renders the calendar header. +* @method renderHeader +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderHeader = function(html) { + this.logger.log("Rendering header", "info"); + var colSpan = 7; + + var DEPR_NAV_LEFT = "us/tr/callt.gif"; + var DEPR_NAV_RIGHT = "us/tr/calrt.gif"; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { + colSpan += 1; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { + colSpan += 1; + } + + html[html.length] = "<thead>"; + html[html.length] = "<tr>"; + html[html.length] = '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">'; + html[html.length] = '<div class="' + this.Style.CSS_HEADER + '">'; + + var renderLeft, renderRight = false; + + if (this.parent) { + if (this.index === 0) { + renderLeft = true; + } + if (this.index == (this.parent.cfg.getProperty("pages") -1)) { + renderRight = true; + } + } else { + renderLeft = true; + renderRight = true; + } + + var cal = this.parent || this; + + if (renderLeft) { + var leftArrow = this.cfg.getProperty("NAV_ARROW_LEFT"); + // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value + if (leftArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) { + leftArrow = YAHOO.widget.Calendar.IMG_ROOT + DEPR_NAV_LEFT; + } + var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"'; + html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' > </a>'; + } + + html[html.length] = this.buildMonthLabel(); + + if (renderRight) { + var rightArrow = this.cfg.getProperty("NAV_ARROW_RIGHT"); + if (rightArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) { + rightArrow = YAHOO.widget.Calendar.IMG_ROOT + DEPR_NAV_RIGHT; + } + var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"'; + html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' > </a>'; + } + + html[html.length] = '</div>'; + html[html.length] = '</th>'; + html[html.length] = '</tr>'; + + if (this.cfg.getProperty("SHOW_WEEKDAYS")) { + html = this.buildWeekdays(html); + } + + html[html.length] = '</thead>'; + + return html; +}; + +/** +* Renders the Calendar's weekday headers. +* @method buildWeekdays +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.buildWeekdays = function(html) { + + html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">'; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { + html[html.length] = '<th> </th>'; + } + + for(var i=0;i<this.Locale.LOCALE_WEEKDAYS.length;++i) { + html[html.length] = '<th class="calweekdaycell">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>'; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { + html[html.length] = '<th> </th>'; + } + + html[html.length] = '</tr>'; + + return html; +}; + +/** +* Renders the calendar body. +* @method renderBody +* @param {Date} workingDate The current working Date being used for the render process +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderBody = function(workingDate, html) { + this.logger.log("Rendering body", "info"); + + var startDay = this.cfg.getProperty("START_WEEKDAY"); + + this.preMonthDays = workingDate.getDay(); + if (startDay > 0) { + this.preMonthDays -= startDay; + } + if (this.preMonthDays < 0) { + this.preMonthDays += 7; + } + + this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate(); + this.postMonthDays = YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays; + this.logger.log(this.preMonthDays + " preciding out-of-month days", "info"); + this.logger.log(this.monthDays + " month days", "info"); + this.logger.log(this.postMonthDays + " post-month days", "info"); + + workingDate = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays); + this.logger.log("Calendar page starts on " + workingDate, "info"); + + var useDate,weekNum,weekClass; + useDate = this.cfg.getProperty("pagedate"); + + html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">'; + + var i = 0; + + var tempDiv = document.createElement("div"); + var cell = document.createElement("td"); + tempDiv.appendChild(cell); + + var jan1 = new Date(useDate.getFullYear(),0,1); + + var cal = this.parent || this; + + for (var r=0;r<6;r++) { + + weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), startDay); + + weekClass = "w" + weekNum; + + if (r !== 0 && this.isDateOOM(workingDate) && this.cfg.getProperty("HIDE_BLANK_WEEKS") === true) { + break; + } else { + + html[html.length] = '<tr class="' + weekClass + '">'; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { html = this.renderRowHeader(weekNum, html); } + + for (var d=0;d<7;d++){ // Render actual days + + var cellRenderers = []; + + this.clearElement(cell); + + YAHOO.util.Dom.addClass(cell, "calcell"); + + cell.id = this.id + "_cell" + i; + this.logger.log("Rendering cell " + cell.id + " (" + workingDate.getFullYear() + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender"); + + cell.innerHTML = i; + + var renderer = null; + + if (workingDate.getFullYear() == this.today.getFullYear() && + workingDate.getMonth() == this.today.getMonth() && + workingDate.getDate() == this.today.getDate()) { + cellRenderers[cellRenderers.length]=cal.renderCellStyleToday; + } + + this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]; // Add this date to cellDates + + if (this.isDateOOM(workingDate)) { + cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth; + } else { + + YAHOO.util.Dom.addClass(cell, "wd" + workingDate.getDay()); + YAHOO.util.Dom.addClass(cell, "d" + workingDate.getDate()); + + for (var s=0;s<this.renderStack.length;++s) { + + var rArray = this.renderStack[s]; + var type = rArray[0]; + + var month; + var day; + var year; + + switch (type) { + case YAHOO.widget.Calendar.DATE: + month = rArray[1][1]; + day = rArray[1][2]; + year = rArray[1][0]; + + if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) { + renderer = rArray[2]; + this.renderStack.splice(s,1); + } + break; + case YAHOO.widget.Calendar.MONTH_DAY: + month = rArray[1][0]; + day = rArray[1][1]; + + if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) { + renderer = rArray[2]; + this.renderStack.splice(s,1); + } + break; + case YAHOO.widget.Calendar.RANGE: + var date1 = rArray[1][0]; + var date2 = rArray[1][1]; + + var d1month = date1[1]; + var d1day = date1[2]; + var d1year = date1[0]; + + var d1 = new Date(d1year, d1month-1, d1day); + + var d2month = date2[1]; + var d2day = date2[2]; + var d2year = date2[0]; + + var d2 = new Date(d2year, d2month-1, d2day); + + if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) { + renderer = rArray[2]; + + if (workingDate.getTime()==d2.getTime()) { + this.renderStack.splice(s,1); + } + } + break; + case YAHOO.widget.Calendar.WEEKDAY: + + var weekday = rArray[1][0]; + if (workingDate.getDay()+1 == weekday) { + renderer = rArray[2]; + } + break; + case YAHOO.widget.Calendar.MONTH: + + month = rArray[1][0]; + if (workingDate.getMonth()+1 == month) { + renderer = rArray[2]; + } + break; + } + + if (renderer) { + cellRenderers[cellRenderers.length]=renderer; + } + } + + } + + if (this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]) > -1) { + cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; + } + + var mindate = this.cfg.getProperty("mindate"); + var maxdate = this.cfg.getProperty("maxdate"); + + if (mindate) { + mindate = YAHOO.widget.DateMath.clearTime(mindate); + } + if (maxdate) { + maxdate = YAHOO.widget.DateMath.clearTime(maxdate); + } + + if ( + (mindate && (workingDate.getTime() < mindate.getTime())) || + (maxdate && (workingDate.getTime() > maxdate.getTime())) + ) { + cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate; + } else { + cellRenderers[cellRenderers.length]=cal.styleCellDefault; + cellRenderers[cellRenderers.length]=cal.renderCellDefault; + } + + + + for (var x=0;x<cellRenderers.length;++x) { + var ren = cellRenderers[x]; + this.logger.log("renderer[" + x + "] for (" + workingDate.getFullYear() + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender"); + if (ren.call((this.parent || this),workingDate,cell) == YAHOO.widget.Calendar.STOP_RENDER) { + break; + } + } + + workingDate.setTime(workingDate.getTime() + YAHOO.widget.DateMath.ONE_DAY_MS); + + if (i >= 0 && i <= 6) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP); + } + if ((i % 7) === 0) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT); + } + if (((i+1) % 7) === 0) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RIGHT); + } + + var postDays = this.postMonthDays; + if (postDays >= 7 && this.cfg.getProperty("HIDE_BLANK_WEEKS")) { + var blankWeeks = Math.floor(postDays/7); + for (var p=0;p<blankWeeks;++p) { + postDays -= 7; + } + } + + if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM); + } + + html[html.length] = tempDiv.innerHTML; + + i++; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { html = this.renderRowFooter(weekNum, html); } + + html[html.length] = '</tr>'; + } + } + + html[html.length] = '</tbody>'; + + return html; +}; + +/** +* Renders the calendar footer. In the default implementation, there is +* no footer. +* @method renderFooter +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderFooter = function(html) { return html; }; + +/** +* Renders the calendar after it has been configured. The render() method has a specific call chain that will execute +* when the method is called: renderHeader, renderBody, renderFooter. +* Refer to the documentation for those methods for information on +* individual render tasks. +* @method render +*/ +YAHOO.widget.Calendar.prototype.render = function() { + this.beforeRenderEvent.fire(); + + // Find starting day of the current month + var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate")); + + this.resetRenderers(); + this.cellDates.length = 0; + + YAHOO.util.Event.purgeElement(this.oDomContainer, true); + + var html = []; + + html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + workingDate.getFullYear() + '" id="' + this.id + '">'; + html = this.renderHeader(html); + html = this.renderBody(workingDate, html); + html = this.renderFooter(html); + html[html.length] = '</table>'; + + this.oDomContainer.innerHTML = html.join("\n"); + + this.applyListeners(); + this.cells = this.oDomContainer.getElementsByTagName("td"); + + this.cfg.refireEvent("title"); + this.cfg.refireEvent("close"); + this.cfg.refireEvent("iframe"); + + this.renderEvent.fire(); +}; + +/** +* Applies the Calendar's DOM listeners to applicable elements. +* @method applyListeners +*/ +YAHOO.widget.Calendar.prototype.applyListeners = function() { + + var root = this.oDomContainer; + var cal = this.parent || this; + + var linkLeft, linkRight; + + linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, "a", root); + linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, "a", root); + + if (linkLeft) { + this.linkLeft = linkLeft[0]; + YAHOO.util.Event.addListener(this.linkLeft, "mousedown", cal.previousMonth, cal, true); + } + + if (linkRight) { + this.linkRight = linkRight[0]; + YAHOO.util.Event.addListener(this.linkRight, "mousedown", cal.nextMonth, cal, true); + } + + if (this.domEventMap) { + var el,elements; + for (var cls in this.domEventMap) { + if (YAHOO.lang.hasOwnProperty(this.domEventMap, cls)) { + var items = this.domEventMap[cls]; + + if (! (items instanceof Array)) { + items = [items]; + } + + for (var i=0;i<items.length;i++) { + var item = items[i]; + elements = YAHOO.util.Dom.getElementsByClassName(cls, item.tag, this.oDomContainer); + + for (var c=0;c<elements.length;c++) { + el = elements[c]; + YAHOO.util.Event.addListener(el, item.event, item.handler, item.scope, item.correct ); + } + } + } + } + } + + YAHOO.util.Event.addListener(this.oDomContainer, "click", this.doSelectCell, this); + YAHOO.util.Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this); + YAHOO.util.Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this); +}; + +/** +* Retrieves the Date object for the specified Calendar cell +* @method getDateByCellId +* @param {String} id The id of the cell +* @return {Date} The Date object for the specified Calendar cell +*/ +YAHOO.widget.Calendar.prototype.getDateByCellId = function(id) { + var date = this.getDateFieldsByCellId(id); + return new Date(date[0],date[1]-1,date[2]); +}; + +/** +* Retrieves the Date object for the specified Calendar cell +* @method getDateFieldsByCellId +* @param {String} id The id of the cell +* @return {Array} The array of Date fields for the specified Calendar cell +*/ +YAHOO.widget.Calendar.prototype.getDateFieldsByCellId = function(id) { + id = id.toLowerCase().split("_cell")[1]; + id = parseInt(id, 10); + return this.cellDates[id]; +}; + +// BEGIN BUILT-IN TABLE CELL RENDERERS + +/** +* Renders a cell that falls before the minimum date or after the maximum date. +* widget class. +* @method renderOutOfBoundsDate +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderOutOfBoundsDate = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOB); + cell.innerHTML = workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +/** +* Renders the row header for a week. +* @method renderRowHeader +* @param {Number} weekNum The week number of the current row +* @param {Array} cell The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderRowHeader = function(weekNum, html) { + html[html.length] = '<th class="calrowhead">' + weekNum + '</th>'; + return html; +}; + +/** +* Renders the row footer for a week. +* @method renderRowFooter +* @param {Number} weekNum The week number of the current row +* @param {Array} cell The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderRowFooter = function(weekNum, html) { + html[html.length] = '<th class="calrowfoot">' + weekNum + '</th>'; + return html; +}; + +/** +* Renders a single standard calendar cell in the calendar widget table. +* All logic for determining how a standard default cell will be rendered is +* encapsulated in this method, and must be accounted for when extending the +* widget class. +* @method renderCellDefault +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellDefault = function(workingDate, cell) { + cell.innerHTML = '<a href="javascript:void(null);" >' + this.buildDayLabel(workingDate) + "</a>"; +}; + +/** +* Styles a selectable cell. +* @method styleCellDefault +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.styleCellDefault = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE); +}; + + +/** +* Renders a single standard calendar cell using the CSS hightlight1 style +* @method renderCellStyleHighlight1 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight2 style +* @method renderCellStyleHighlight2 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight3 style +* @method renderCellStyleHighlight3 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight4 style +* @method renderCellStyleHighlight4 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4); +}; + +/** +* Applies the default style used for rendering today's date to the current calendar cell +* @method renderCellStyleToday +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleToday = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TODAY); +}; + +/** +* Applies the default style used for rendering selected dates to the current calendar cell +* @method renderCellStyleSelected +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleSelected = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTED); +}; + +/** +* Applies the default style used for rendering dates that are not a part of the current +* month (preceding or trailing the cells for the current month) +* @method renderCellNotThisMonth +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderCellNotThisMonth = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM); + cell.innerHTML=workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +/** +* Renders the current calendar cell as a non-selectable "black-out" date using the default +* restricted style. +* @method renderBodyCellRestricted +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderBodyCellRestricted = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL); + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED); + cell.innerHTML=workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +// END BUILT-IN TABLE CELL RENDERERS + +// BEGIN MONTH NAVIGATION METHODS + +/** +* Adds the designated number of months to the current calendar month, and sets the current +* calendar page date to the new month. +* @method addMonths +* @param {Number} count The number of months to add to the current calendar +*/ +YAHOO.widget.Calendar.prototype.addMonths = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Subtracts the designated number of months from the current calendar month, and sets the current +* calendar page date to the new month. +* @method subtractMonths +* @param {Number} count The number of months to subtract from the current calendar +*/ +YAHOO.widget.Calendar.prototype.subtractMonths = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Adds the designated number of years to the current calendar, and sets the current +* calendar page date to the new month. +* @method addYears +* @param {Number} count The number of years to add to the current calendar +*/ +YAHOO.widget.Calendar.prototype.addYears = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Subtcats the designated number of years from the current calendar, and sets the current +* calendar page date to the new month. +* @method subtractYears +* @param {Number} count The number of years to subtract from the current calendar +*/ +YAHOO.widget.Calendar.prototype.subtractYears = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Navigates to the next month page in the calendar widget. +* @method nextMonth +*/ +YAHOO.widget.Calendar.prototype.nextMonth = function() { + this.addMonths(1); +}; + +/** +* Navigates to the previous month page in the calendar widget. +* @method previousMonth +*/ +YAHOO.widget.Calendar.prototype.previousMonth = function() { + this.subtractMonths(1); +}; + +/** +* Navigates to the next year in the currently selected month in the calendar widget. +* @method nextYear +*/ +YAHOO.widget.Calendar.prototype.nextYear = function() { + this.addYears(1); +}; + +/** +* Navigates to the previous year in the currently selected month in the calendar widget. +* @method previousYear +*/ +YAHOO.widget.Calendar.prototype.previousYear = function() { + this.subtractYears(1); +}; + +// END MONTH NAVIGATION METHODS + +// BEGIN SELECTION METHODS + +/** +* Resets the calendar widget to the originally selected month and year, and +* sets the calendar to the initial selection(s). +* @method reset +*/ +YAHOO.widget.Calendar.prototype.reset = function() { + this.cfg.resetProperty("selected"); + this.cfg.resetProperty("pagedate"); + this.resetEvent.fire(); +}; + +/** +* Clears the selected dates in the current calendar widget and sets the calendar +* to the current month and year. +* @method clear +*/ +YAHOO.widget.Calendar.prototype.clear = function() { + this.cfg.setProperty("selected", []); + this.cfg.setProperty("pagedate", new Date(this.today.getTime())); + this.clearEvent.fire(); +}; + +/** +* Selects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once selection has completed, render must be +* called for the changes to be reflected visually. +* @method select +* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.select = function(date) { + this.logger.log("Select: " + date, "info"); + this.beforeSelectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + var aToBeSelected = this._toFieldArray(date); + this.logger.log("Selection field array: " + aToBeSelected, "info"); + + for (var a=0;a<aToBeSelected.length;++a) { + var toSelect = aToBeSelected[a]; // For each date item in the list of dates we're trying to select + if (this._indexOfSelectedFieldArray(toSelect) == -1) { // not already selected? + selected[selected.length]=toSelect; + } + } + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.selectEvent.fire(aToBeSelected); + + return this.getSelectedDates(); +}; + +/** +* Selects a date on the current calendar by referencing the index of the cell that should be selected. +* This method is used to easily select a single cell (usually with a mouse click) without having to do +* a full render. The selected style is applied to the cell directly. +* @method selectCell +* @param {Number} cellIndex The index of the cell to select in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.selectCell = function(cellIndex) { + this.beforeSelectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var cell = this.cells[cellIndex]; + var cellDate = this.cellDates[cellIndex]; + + var dCellDate = this._toDate(cellDate); + this.logger.log("Select: " + dCellDate, "info"); + + var selectDate = cellDate.concat(); + + selected[selected.length] = selectDate; + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.renderCellStyleSelected(dCellDate,cell); + + this.selectEvent.fire([selectDate]); + + this.doCellMouseOut.call(cell, null, this); + + return this.getSelectedDates(); +}; + +/** +* Deselects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once deselection has completed, render must be +* called for the changes to be reflected visually. +* @method deselect +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.deselect = function(date) { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var aToBeSelected = this._toFieldArray(date); + + for (var a=0;a<aToBeSelected.length;++a) { + var toSelect = aToBeSelected[a]; // For each date item in the list of dates we're trying to select + var index = this._indexOfSelectedFieldArray(toSelect); + + if (index != -1) { + selected.splice(index,1); + } + } + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.deselectEvent.fire(aToBeSelected); + + return this.getSelectedDates(); +}; + +/** +* Deselects a date on the current calendar by referencing the index of the cell that should be deselected. +* This method is used to easily deselect a single cell (usually with a mouse click) without having to do +* a full render. The selected style is removed from the cell directly. +* @method deselectCell +* @param {Number} cellIndex The index of the cell to deselect in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.deselectCell = function(i) { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var cell = this.cells[i]; + var cellDate = this.cellDates[i]; + var cellDateIndex = this._indexOfSelectedFieldArray(cellDate); + + var dCellDate = this._toDate(cellDate); + + var selectDate = cellDate.concat(); + + if (cellDateIndex > -1) { + if (this.cfg.getProperty("pagedate").getMonth() == dCellDate.getMonth() && + this.cfg.getProperty("pagedate").getFullYear() == dCellDate.getFullYear()) { + YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED); + } + + selected.splice(cellDateIndex, 1); + } + + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.deselectEvent.fire(selectDate); + return this.getSelectedDates(); +}; + +/** +* Deselects all dates on the current calendar. +* @method deselectAll +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +* Assuming that this function executes properly, the return value should be an empty array. +* However, the empty array is returned for the sake of being able to check the selection status +* of the calendar. +*/ +YAHOO.widget.Calendar.prototype.deselectAll = function() { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + var count = selected.length; + var sel = selected.concat(); + + if (this.parent) { + this.parent.cfg.setProperty("selected", []); + } else { + this.cfg.setProperty("selected", []); + } + + if (count > 0) { + this.deselectEvent.fire(sel); + } + + return this.getSelectedDates(); +}; + +// END SELECTION METHODS + +// BEGIN TYPE CONVERSION METHODS + +/** +* Converts a date (either a JavaScript Date object, or a date string) to the internal data structure +* used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]]. +* @method _toFieldArray +* @private +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Array[](Number[])} Array of date field arrays +*/ +YAHOO.widget.Calendar.prototype._toFieldArray = function(date) { + var returnDate = []; + + if (date instanceof Date) { + returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]]; + } else if (typeof date == 'string') { + returnDate = this._parseDates(date); + } else if (date instanceof Array) { + for (var i=0;i<date.length;++i) { + var d = date[i]; + returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()]; + } + } + + return returnDate; +}; + +/** +* Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. +* @method _toDate +* @private +* @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date. +* @return {Date} JavaScript Date object representing the date field array +*/ +YAHOO.widget.Calendar.prototype._toDate = function(dateFieldArray) { + if (dateFieldArray instanceof Date) { + return dateFieldArray; + } else { + return new Date(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]); + } +}; + +// END TYPE CONVERSION METHODS + +// BEGIN UTILITY METHODS + +/** +* Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. +* @method _fieldArraysAreEqual +* @private +* @param {Number[]} array1 The first date field array to compare +* @param {Number[]} array2 The first date field array to compare +* @return {Boolean} The boolean that represents the equality of the two arrays +*/ +YAHOO.widget.Calendar.prototype._fieldArraysAreEqual = function(array1, array2) { + var match = false; + + if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) { + match=true; + } + + return match; +}; + +/** +* Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates. +* @method _indexOfSelectedFieldArray +* @private +* @param {Number[]} find The date field array to search for +* @return {Number} The index of the date field array within the collection of selected dates. +* -1 will be returned if the date is not found. +*/ +YAHOO.widget.Calendar.prototype._indexOfSelectedFieldArray = function(find) { + var selected = -1; + var seldates = this.cfg.getProperty("selected"); + + for (var s=0;s<seldates.length;++s) { + var sArray = seldates[s]; + if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) { + selected = s; + break; + } + } + + return selected; +}; + +/** +* Determines whether a given date is OOM (out of month). +* @method isDateOOM +* @param {Date} date The JavaScript Date object for which to check the OOM status +* @return {Boolean} true if the date is OOM +*/ +YAHOO.widget.Calendar.prototype.isDateOOM = function(date) { + var isOOM = false; + if (date.getMonth() != this.cfg.getProperty("pagedate").getMonth()) { + isOOM = true; + } + return isOOM; +}; + +/** + * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object + * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object + * @method _parsePageDate + * @private + * @param {Date|String} date Pagedate value which needs to be parsed + * @return {Date} The Date object representing the pagedate + */ +YAHOO.widget.Calendar.prototype._parsePageDate = function(date) { + var parsedDate; + + if (date) { + if (date instanceof Date) { + parsedDate = YAHOO.widget.DateMath.findMonthStart(date); + } else { + var month, year, aMonthYear; + aMonthYear = date.split(this.cfg.getProperty("DATE_FIELD_DELIMITER")); + month = parseInt(aMonthYear[this.cfg.getProperty("MY_MONTH_POSITION")-1], 10)-1; + year = parseInt(aMonthYear[this.cfg.getProperty("MY_YEAR_POSITION")-1], 10); + + parsedDate = new Date(year, month, 1); + } + } else { + parsedDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1); + } + return parsedDate; +}; + +// END UTILITY METHODS + +// BEGIN EVENT HANDLERS + +/** +* Event executed before a date is selected in the calendar widget. +* @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent. +*/ +YAHOO.widget.Calendar.prototype.onBeforeSelect = function() { + if (this.cfg.getProperty("MULTI_SELECT") === false) { + if (this.parent) { + this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED); + this.parent.deselectAll(); + } else { + this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED); + this.deselectAll(); + } + } +}; + +/** +* Event executed when a date is selected in the calendar widget. +* @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ] +* @deprecated Event handlers for this event should be susbcribed to selectEvent. +*/ +YAHOO.widget.Calendar.prototype.onSelect = function(selected) { }; + +/** +* Event executed before a date is deselected in the calendar widget. +* @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent. +*/ +YAHOO.widget.Calendar.prototype.onBeforeDeselect = function() { }; + +/** +* Event executed when a date is deselected in the calendar widget. +* @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ] +* @deprecated Event handlers for this event should be susbcribed to deselectEvent. +*/ +YAHOO.widget.Calendar.prototype.onDeselect = function(deselected) { }; + +/** +* Event executed when the user navigates to a different calendar page. +* @deprecated Event handlers for this event should be susbcribed to changePageEvent. +*/ +YAHOO.widget.Calendar.prototype.onChangePage = function() { + this.render(); +}; + +/** +* Event executed when the calendar widget is rendered. +* @deprecated Event handlers for this event should be susbcribed to renderEvent. +*/ +YAHOO.widget.Calendar.prototype.onRender = function() { }; + +/** +* Event executed when the calendar widget is reset to its original state. +* @deprecated Event handlers for this event should be susbcribed to resetEvemt. +*/ +YAHOO.widget.Calendar.prototype.onReset = function() { this.render(); }; + +/** +* Event executed when the calendar widget is completely cleared to the current month with no selections. +* @deprecated Event handlers for this event should be susbcribed to clearEvent. +*/ +YAHOO.widget.Calendar.prototype.onClear = function() { this.render(); }; + +/** +* Validates the calendar widget. This method has no default implementation +* and must be extended by subclassing the widget. +* @return Should return true if the widget validates, and false if +* it doesn't. +* @type Boolean +*/ +YAHOO.widget.Calendar.prototype.validate = function() { return true; }; + +// END EVENT HANDLERS + +// BEGIN DATE PARSE METHODS + +/** +* Converts a date string to a date field array +* @private +* @param {String} sDate Date string. Valid formats are mm/dd and mm/dd/yyyy. +* @return A date field array representing the string passed to the method +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseDate = function(sDate) { + var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER); + var rArray; + + if (aDate.length == 2) { + rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]]; + rArray.type = YAHOO.widget.Calendar.MONTH_DAY; + } else { + rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1],aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]]; + rArray.type = YAHOO.widget.Calendar.DATE; + } + + for (var i=0;i<rArray.length;i++) { + rArray[i] = parseInt(rArray[i], 10); + } + + return rArray; +}; + +/** +* Converts a multi or single-date string to an array of date field arrays +* @private +* @param {String} sDates Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy +* @return An array of date field arrays +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseDates = function(sDates) { + var aReturn = []; + + var aDates = sDates.split(this.Locale.DATE_DELIMITER); + + for (var d=0;d<aDates.length;++d) { + var sDate = aDates[d]; + + if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) { + // This is a range + var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER); + + var dateStart = this._parseDate(aRange[0]); + var dateEnd = this._parseDate(aRange[1]); + + var fullRange = this._parseRange(dateStart, dateEnd); + aReturn = aReturn.concat(fullRange); + } else { + // This is not a range + var aDate = this._parseDate(sDate); + aReturn.push(aDate); + } + } + return aReturn; +}; + +/** +* Converts a date range to the full list of included dates +* @private +* @param {Number[]} startDate Date field array representing the first date in the range +* @param {Number[]} endDate Date field array representing the last date in the range +* @return An array of date field arrays +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseRange = function(startDate, endDate) { + var dStart = new Date(startDate[0],startDate[1]-1,startDate[2]); + var dCurrent = YAHOO.widget.DateMath.add(new Date(startDate[0],startDate[1]-1,startDate[2]),YAHOO.widget.DateMath.DAY,1); + var dEnd = new Date(endDate[0], endDate[1]-1, endDate[2]); + + var results = []; + results.push(startDate); + while (dCurrent.getTime() <= dEnd.getTime()) { + results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]); + dCurrent = YAHOO.widget.DateMath.add(dCurrent,YAHOO.widget.DateMath.DAY,1); + } + return results; +}; + +// END DATE PARSE METHODS + +// BEGIN RENDERER METHODS + +/** +* Resets the render stack of the current calendar to its original pre-render value. +*/ +YAHOO.widget.Calendar.prototype.resetRenderers = function() { + this.renderStack = this._renderStack.concat(); +}; + +/** +* Clears the inner HTML, CSS class and style information from the specified cell. +* @method clearElement +* @param {HTMLTableCellElement} The cell to clear +*/ +YAHOO.widget.Calendar.prototype.clearElement = function(cell) { + cell.innerHTML = " "; + cell.className=""; +}; + +/** +* Adds a renderer to the render stack. The function reference passed to this method will be executed +* when a date cell matches the conditions specified in the date string for this renderer. +* @method addRenderer +* @param {String} sDates A date string to associate with the specified renderer. Valid formats +* include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005) +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addRenderer = function(sDates, fnRender) { + var aDates = this._parseDates(sDates); + for (var i=0;i<aDates.length;++i) { + var aDate = aDates[i]; + + if (aDate.length == 2) { // this is either a range or a month/day combo + if (aDate[0] instanceof Array) { // this is a range + this._addRenderer(YAHOO.widget.Calendar.RANGE,aDate,fnRender); + } else { // this is a month/day combo + this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,aDate,fnRender); + } + } else if (aDate.length == 3) { + this._addRenderer(YAHOO.widget.Calendar.DATE,aDate,fnRender); + } + } +}; + +/** +* The private method used for adding cell renderers to the local render stack. +* This method is called by other methods that set the renderer type prior to the method call. +* @method _addRenderer +* @private +* @param {String} type The type string that indicates the type of date renderer being added. +* Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY, +* YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH +* @param {Array} aDates An array of dates used to construct the renderer. The format varies based +* on the renderer type +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype._addRenderer = function(type, aDates, fnRender) { + var add = [type,aDates,fnRender]; + this.renderStack.unshift(add); + this._renderStack = this.renderStack.concat(); +}; + +/** +* Adds a month to the render stack. The function reference passed to this method will be executed +* when a date cell matches the month passed to this method. +* @method addMonthRenderer +* @param {Number} month The month (1-12) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addMonthRenderer = function(month, fnRender) { + this._addRenderer(YAHOO.widget.Calendar.MONTH,[month],fnRender); +}; + +/** +* Adds a weekday to the render stack. The function reference passed to this method will be executed +* when a date cell matches the weekday passed to this method. +* @method addWeekdayRenderer +* @param {Number} weekday The weekday (0-6) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addWeekdayRenderer = function(weekday, fnRender) { + this._addRenderer(YAHOO.widget.Calendar.WEEKDAY,[weekday],fnRender); +}; + +// END RENDERER METHODS + +// BEGIN CSS METHODS + +/** +* Removes all styles from all body cells in the current calendar table. +* @method clearAllBodyCellStyles +* @param {style} The CSS class name to remove from all calendar body cells +*/ +YAHOO.widget.Calendar.prototype.clearAllBodyCellStyles = function(style) { + for (var c=0;c<this.cells.length;++c) { + YAHOO.util.Dom.removeClass(this.cells[c],style); + } +}; + +// END CSS METHODS + +// BEGIN GETTER/SETTER METHODS +/** +* Sets the calendar's month explicitly +* @method setMonth +* @param {Number} month The numeric month, from 0 (January) to 11 (December) +*/ +YAHOO.widget.Calendar.prototype.setMonth = function(month) { + var current = this.cfg.getProperty("pagedate"); + current.setMonth(parseInt(month, 10)); + this.cfg.setProperty("pagedate", current); +}; + +/** +* Sets the calendar's year explicitly. +* @method setYear +* @param {Number} year The numeric 4-digit year +*/ +YAHOO.widget.Calendar.prototype.setYear = function(year) { + var current = this.cfg.getProperty("pagedate"); + current.setFullYear(parseInt(year, 10)); + this.cfg.setProperty("pagedate", current); +}; + +/** +* Gets the list of currently selected dates from the calendar. +* @method getSelectedDates +* @return {Date[]} An array of currently selected JavaScript Date objects. +*/ +YAHOO.widget.Calendar.prototype.getSelectedDates = function() { + var returnDates = []; + var selected = this.cfg.getProperty("selected"); + + for (var d=0;d<selected.length;++d) { + var dateArray = selected[d]; + + var date = new Date(dateArray[0],dateArray[1]-1,dateArray[2]); + returnDates.push(date); + } + + returnDates.sort( function(a,b) { return a-b; } ); + return returnDates; +}; + +/// END GETTER/SETTER METHODS /// + +/** +* Hides the Calendar's outer container from view. +* @method hide +*/ +YAHOO.widget.Calendar.prototype.hide = function() { + this.oDomContainer.style.display = "none"; +}; + +/** +* Shows the Calendar's outer container. +* @method show +*/ +YAHOO.widget.Calendar.prototype.show = function() { + this.oDomContainer.style.display = "block"; +}; + +/** +* Returns a string representing the current browser. +* @property browser +* @type String +*/ +YAHOO.widget.Calendar.prototype.browser = function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(); +/** +* Returns a string representation of the object. +* @method toString +* @return {String} A string representation of the Calendar object. +*/ +YAHOO.widget.Calendar.prototype.toString = function() { + return "Calendar " + this.id; +}; + +/** +* @namespace YAHOO.widget +* @class Calendar_Core +* @extends YAHOO.widget.Calendar +* @deprecated The old Calendar_Core class is no longer necessary. +*/ +YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar; + +YAHOO.widget.Cal_Core = YAHOO.widget.Calendar; + +/** +* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates +* the ability to have multi-page calendar views that share a single dataset and are +* dependent on each other. +* +* The calendar group instance will refer to each of its elements using a 0-based index. +* For example, to construct the placeholder for a calendar group widget with id "cal1" and +* containerId of "cal1Container", the markup would be as follows: +* <xmp> +* <div id="cal1Container_0"></div> +* <div id="cal1Container_1"></div> +* </xmp> +* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers. +* @namespace YAHOO.widget +* @class CalendarGroup +* @constructor +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.CalendarGroup = function(id, containerId, config) { + if (arguments.length > 0) { + this.init(id, containerId, config); + } +}; + +/** +* Initializes the calendar group. All subclasses must call this method in order for the +* group to be initialized properly. +* @method init +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.CalendarGroup.prototype.init = function(id, containerId, config) { + this.logger = new YAHOO.widget.LogWriter("CalendarGroup " + id); + this.initEvents(); + this.initStyles(); + + /** + * The collection of Calendar pages contained within the CalendarGroup + * @property pages + * @type YAHOO.widget.Calendar[] + */ + this.pages = []; + + /** + * The unique id associated with the CalendarGroup + * @property id + * @type String + */ + this.id = id; + + /** + * The unique id associated with the CalendarGroup container + * @property containerId + * @type String + */ + this.containerId = containerId; + + /** + * The outer containing element for the CalendarGroup + * @property oDomContainer + * @type HTMLElement + */ + this.oDomContainer = document.getElementById(containerId); + + YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER); + YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_MULTI_UP); + + /** + * The Config object used to hold the configuration variables for the CalendarGroup + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + /** + * The local object which contains the CalendarGroup's options + * @property Options + * @type Object + */ + this.Options = {}; + + /** + * The local object which contains the CalendarGroup's locale settings + * @property Locale + * @type Object + */ + this.Locale = {}; + + this.setupConfig(); + + if (config) { + this.cfg.applyConfig(config, true); + } + + this.cfg.fireQueue(); + + // OPERA HACK FOR MISWRAPPED FLOATS + if (this.browser == "opera"){ + var fixWidth = function() { + var startW = this.oDomContainer.offsetWidth; + var w = 0; + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + w += cal.oDomContainer.offsetWidth; + } + if (w > 0) { + this.oDomContainer.style.width = w + "px"; + } + }; + this.renderEvent.subscribe(fixWidth,this,true); + } + this.logger.log("Initialized " + this.pages.length + "-page CalendarGroup", "info"); +}; + + +YAHOO.widget.CalendarGroup.prototype.setupConfig = function() { + /** + * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments. + * @config pages + * @type Number + * @default 2 + */ + this.cfg.addProperty("pages", { value:2, validator:this.cfg.checkNumber, handler:this.configPages } ); + + /** + * The month/year representing the current visible Calendar date (mm/yyyy) + * @config pagedate + * @type String + * @default today's date + */ + this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } ); + + /** + * The date or range of dates representing the current Calendar selection + * @config selected + * @type String + * @default [] + */ + this.cfg.addProperty("selected", { value:[], handler:this.delegateConfig } ); + + /** + * The title to display above the CalendarGroup's month header + * @config title + * @type String + * @default "" + */ + this.cfg.addProperty("title", { value:"", handler:this.configTitle } ); + + /** + * Whether or not a close button should be displayed for this CalendarGroup + * @config close + * @type Boolean + * @default false + */ + this.cfg.addProperty("close", { value:false, handler:this.configClose } ); + + /** + * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below. + * @config iframe + * @type Boolean + * @default true + */ + this.cfg.addProperty("iframe", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The minimum selectable date in the current Calendar (mm/dd/yyyy) + * @config mindate + * @type String + * @default null + */ + this.cfg.addProperty("mindate", { value:null, handler:this.delegateConfig } ); + + /** + * The maximum selectable date in the current Calendar (mm/dd/yyyy) + * @config maxdate + * @type String + * @default null + */ + this.cfg.addProperty("maxdate", { value:null, handler:this.delegateConfig } ); + + // Options properties + + /** + * True if the Calendar should allow multiple selections. False by default. + * @config MULTI_SELECT + * @type Boolean + * @default false + */ + this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The weekday the week begins on. Default is 0 (Sunday). + * @config START_WEEKDAY + * @type number + * @default 0 + */ + this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * True if the Calendar should show weekday labels. True by default. + * @config SHOW_WEEKDAYS + * @type Boolean + * @default true + */ + this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row headers. False by default. + * @config SHOW_WEEK_HEADER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row footers. False by default. + * @config SHOW_WEEK_FOOTER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should suppress weeks that are not a part of the current month. False by default. + * @config HIDE_BLANK_WEEKS + * @type Boolean + * @default false + */ + this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The image that should be used for the left navigation arrow. + * @config NAV_ARROW_LEFT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.delegateConfig } ); + + /** + * The image that should be used for the right navigation arrow. + * @config NAV_ARROW_RIGHT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.delegateConfig } ); + + // Locale properties + + /** + * The short month labels for the current locale. + * @config MONTHS_SHORT + * @type String[] + * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + */ + this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.delegateConfig } ); + + /** + * The long month labels for the current locale. + * @config MONTHS_LONG + * @type String[] + * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" + */ + this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.delegateConfig } ); + + /** + * The 1-character weekday labels for the current locale. + * @config WEEKDAYS_1CHAR + * @type String[] + * @default ["S", "M", "T", "W", "T", "F", "S"] + */ + this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.delegateConfig } ); + + /** + * The short weekday labels for the current locale. + * @config WEEKDAYS_SHORT + * @type String[] + * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] + */ + this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.delegateConfig } ); + + /** + * The medium weekday labels for the current locale. + * @config WEEKDAYS_MEDIUM + * @type String[] + * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] + */ + this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.delegateConfig } ); + + /** + * The long weekday labels for the current locale. + * @config WEEKDAYS_LONG + * @type String[] + * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] + */ + this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.delegateConfig } ); + + /** + * The setting that determines which length of month labels should be used. Possible values are "short" and "long". + * @config LOCALE_MONTHS + * @type String + * @default "long" + */ + this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.delegateConfig } ); + + /** + * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long". + * @config LOCALE_WEEKDAYS + * @type String + * @default "short" + */ + this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.delegateConfig } ); + + /** + * The value used to delimit individual dates in a date string passed to various Calendar functions. + * @config DATE_DELIMITER + * @type String + * @default "," + */ + this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.delegateConfig } ); + + /** + * The value used to delimit date fields in a date string passed to various Calendar functions. + * @config DATE_FIELD_DELIMITER + * @type String + * @default "/" + */ + this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.delegateConfig } ); + + /** + * The value used to delimit date ranges in a date string passed to various Calendar functions. + * @config DATE_RANGE_DELIMITER + * @type String + * @default "-" + */ + this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.delegateConfig } ); + + /** + * The position of the month in a month/year date string + * @config MY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/year date string + * @config MY_YEAR_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day date string + * @config MD_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/year date string + * @config MD_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day/year date string + * @config MDY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/day/year date string + * @config MDY_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/day/year date string + * @config MDY_YEAR_POSITION + * @type Number + * @default 3 + */ + this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + +}; + +/** +* Initializes CalendarGroup's built-in CustomEvents +* @method initEvents +*/ +YAHOO.widget.CalendarGroup.prototype.initEvents = function() { + var me = this; + + /** + * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents + * @method sub + * @private + * @param {Function} fn The function to subscribe to this CustomEvent + * @param {Object} obj The CustomEvent's scope object + * @param {Boolean} bOverride Whether or not to apply scope correction + */ + var sub = function(fn, obj, bOverride) { + for (var p=0;p<me.pages.length;++p) { + var cal = me.pages[p]; + cal[this.type + "Event"].subscribe(fn, obj, bOverride); + } + }; + + /** + * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents + * @method unsub + * @private + * @param {Function} fn The function to subscribe to this CustomEvent + * @param {Object} obj The CustomEvent's scope object + */ + var unsub = function(fn, obj) { + for (var p=0;p<me.pages.length;++p) { + var cal = me.pages[p]; + cal[this.type + "Event"].unsubscribe(fn, obj); + } + }; + + /** + * Fired before a selection is made + * @event beforeSelectEvent + */ + this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect"); + this.beforeSelectEvent.subscribe = sub; this.beforeSelectEvent.unsubscribe = unsub; + + /** + * Fired when a selection is made + * @event selectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.selectEvent = new YAHOO.util.CustomEvent("select"); + this.selectEvent.subscribe = sub; this.selectEvent.unsubscribe = unsub; + + /** + * Fired before a selection is made + * @event beforeDeselectEvent + */ + this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect"); + this.beforeDeselectEvent.subscribe = sub; this.beforeDeselectEvent.unsubscribe = unsub; + + /** + * Fired when a selection is made + * @event deselectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.deselectEvent = new YAHOO.util.CustomEvent("deselect"); + this.deselectEvent.subscribe = sub; this.deselectEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar page is changed + * @event changePageEvent + */ + this.changePageEvent = new YAHOO.util.CustomEvent("changePage"); + this.changePageEvent.subscribe = sub; this.changePageEvent.unsubscribe = unsub; + + /** + * Fired before the Calendar is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + this.beforeRenderEvent.subscribe = sub; this.beforeRenderEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + this.renderEvent.subscribe = sub; this.renderEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is reset + * @event resetEvent + */ + this.resetEvent = new YAHOO.util.CustomEvent("reset"); + this.resetEvent.subscribe = sub; this.resetEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is cleared + * @event clearEvent + */ + this.clearEvent = new YAHOO.util.CustomEvent("clear"); + this.clearEvent.subscribe = sub; this.clearEvent.unsubscribe = unsub; + +}; + +/** +* The default Config handler for the "pages" property +* @method configPages +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.configPages = function(type, args, obj) { + var pageCount = args[0]; + + for (var p=0;p<pageCount;++p) { + var calId = this.id + "_" + p; + var calContainerId = this.containerId + "_" + p; + + var childConfig = this.cfg.getConfig(); + childConfig.close = false; + childConfig.title = false; + + var cal = this.constructChild(calId, calContainerId, childConfig); + var caldate = cal.cfg.getProperty("pagedate"); + this._setMonthOnDate(caldate, caldate.getMonth() + p); + cal.cfg.setProperty("pagedate", caldate); + + YAHOO.util.Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE); + YAHOO.util.Dom.addClass(cal.oDomContainer, "groupcal"); + + if (p===0) { + YAHOO.util.Dom.addClass(cal.oDomContainer, "first"); + } + + if (p==(pageCount-1)) { + YAHOO.util.Dom.addClass(cal.oDomContainer, "last"); + } + + cal.parent = this; + cal.index = p; + + this.pages[this.pages.length] = cal; + } +}; + +/** +* The default Config handler for the "pagedate" property +* @method configPageDate +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.configPageDate = function(type, args, obj) { + var val = args[0]; + var firstPageDate; + + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + if (p === 0) { + firstPageDate = cal._parsePageDate(val); + cal.cfg.setProperty("pagedate", firstPageDate); + } else { + var pageDate = new Date(firstPageDate); + this._setMonthOnDate(pageDate, pageDate.getMonth() + p); + cal.cfg.setProperty("pagedate", pageDate); + } + } +}; + +/** +* Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children +* @method delegateConfig +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.delegateConfig = function(type, args, obj) { + var val = args[0]; + var cal; + + for (var p=0;p<this.pages.length;p++) { + cal = this.pages[p]; + cal.cfg.setProperty(type, val); + } +}; + + +/** +* Adds a function to all child Calendars within this CalendarGroup. +* @method setChildFunction +* @param {String} fnName The name of the function +* @param {Function} fn The function to apply to each Calendar page object +*/ +YAHOO.widget.CalendarGroup.prototype.setChildFunction = function(fnName, fn) { + var pageCount = this.cfg.getProperty("pages"); + + for (var p=0;p<pageCount;++p) { + this.pages[p][fnName] = fn; + } +}; + +/** +* Calls a function within all child Calendars within this CalendarGroup. +* @method callChildFunction +* @param {String} fnName The name of the function +* @param {Array} args The arguments to pass to the function +*/ +YAHOO.widget.CalendarGroup.prototype.callChildFunction = function(fnName, args) { + var pageCount = this.cfg.getProperty("pages"); + + for (var p=0;p<pageCount;++p) { + var page = this.pages[p]; + if (page[fnName]) { + var fn = page[fnName]; + fn.call(page, args); + } + } +}; + +/** +* Constructs a child calendar. This method can be overridden if a subclassed version of the default +* calendar is to be used. +* @method constructChild +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +* @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed +*/ +YAHOO.widget.CalendarGroup.prototype.constructChild = function(id,containerId,config) { + var container = document.getElementById(containerId); + if (! container) { + container = document.createElement("div"); + container.id = containerId; + this.oDomContainer.appendChild(container); + } + return new YAHOO.widget.Calendar(id,containerId,config); +}; + + +/** +* Sets the calendar group's month explicitly. This month will be set into the first +* page of the multi-page calendar, and all other months will be iterated appropriately. +* @method setMonth +* @param {Number} month The numeric month, from 0 (January) to 11 (December) +*/ +YAHOO.widget.CalendarGroup.prototype.setMonth = function(month) { + month = parseInt(month, 10); + var currYear; + + for (var p=0; p<this.pages.length; ++p) { + var cal = this.pages[p]; + var pageDate = cal.cfg.getProperty("pagedate"); + if (p === 0) { + currYear = pageDate.getFullYear(); + } else { + pageDate.setYear(currYear); + } + this._setMonthOnDate(pageDate, month+p); + cal.cfg.setProperty("pagedate", pageDate); + } +}; + +/** +* Sets the calendar group's year explicitly. This year will be set into the first +* page of the multi-page calendar, and all other months will be iterated appropriately. +* @method setYear +* @param {Number} year The numeric 4-digit year +*/ +YAHOO.widget.CalendarGroup.prototype.setYear = function(year) { + year = parseInt(year, 10); + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + var pageDate = cal.cfg.getProperty("pageDate"); + + if ((pageDate.getMonth()+1) == 1 && p>0) { + year+=1; + } + cal.setYear(year); + } +}; +/** +* Calls the render function of all child calendars within the group. +* @method render +*/ +YAHOO.widget.CalendarGroup.prototype.render = function() { + this.renderHeader(); + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.render(); + } + this.renderFooter(); +}; + +/** +* Selects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once selection has completed, render must be +* called for the changes to be reflected visually. +* @method select +* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.select = function(date) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.select(date); + } + return this.getSelectedDates(); +}; + +/** +* Selects a date on the current calendar by referencing the index of the cell that should be selected. +* This method is used to easily select a single cell (usually with a mouse click) without having to do +* a full render. The selected style is applied to the cell directly. +* @method selectCell +* @param {Number} cellIndex The index of the cell to select in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.selectCell = function(cellIndex) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.selectCell(cellIndex); + } + return this.getSelectedDates(); +}; + +/** +* Deselects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once deselection has completed, render must be +* called for the changes to be reflected visually. +* @method deselect +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.deselect = function(date) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselect(date); + } + return this.getSelectedDates(); +}; + +/** +* Deselects all dates on the current calendar. +* @method deselectAll +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +* Assuming that this function executes properly, the return value should be an empty array. +* However, the empty array is returned for the sake of being able to check the selection status +* of the calendar. +*/ +YAHOO.widget.CalendarGroup.prototype.deselectAll = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselectAll(); + } + return this.getSelectedDates(); +}; + +/** +* Deselects a date on the current calendar by referencing the index of the cell that should be deselected. +* This method is used to easily deselect a single cell (usually with a mouse click) without having to do +* a full render. The selected style is removed from the cell directly. +* @method deselectCell +* @param {Number} cellIndex The index of the cell to deselect in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.deselectCell = function(cellIndex) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselectCell(cellIndex); + } + return this.getSelectedDates(); +}; + +/** +* Resets the calendar widget to the originally selected month and year, and +* sets the calendar to the initial selection(s). +* @method reset +*/ +YAHOO.widget.CalendarGroup.prototype.reset = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.reset(); + } +}; + +/** +* Clears the selected dates in the current calendar widget and sets the calendar +* to the current month and year. +* @method clear +*/ +YAHOO.widget.CalendarGroup.prototype.clear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.clear(); + } +}; + +/** +* Navigates to the next month page in the calendar widget. +* @method nextMonth +*/ +YAHOO.widget.CalendarGroup.prototype.nextMonth = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.nextMonth(); + } +}; + +/** +* Navigates to the previous month page in the calendar widget. +* @method previousMonth +*/ +YAHOO.widget.CalendarGroup.prototype.previousMonth = function() { + for (var p=this.pages.length-1;p>=0;--p) { + var cal = this.pages[p]; + cal.previousMonth(); + } +}; + +/** +* Navigates to the next year in the currently selected month in the calendar widget. +* @method nextYear +*/ +YAHOO.widget.CalendarGroup.prototype.nextYear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.nextYear(); + } +}; + +/** +* Navigates to the previous year in the currently selected month in the calendar widget. +* @method previousYear +*/ +YAHOO.widget.CalendarGroup.prototype.previousYear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.previousYear(); + } +}; + + +/** +* Gets the list of currently selected dates from the calendar. +* @return An array of currently selected JavaScript Date objects. +* @type Date[] +*/ +YAHOO.widget.CalendarGroup.prototype.getSelectedDates = function() { + var returnDates = []; + var selected = this.cfg.getProperty("selected"); + + for (var d=0;d<selected.length;++d) { + var dateArray = selected[d]; + + var date = new Date(dateArray[0],dateArray[1]-1,dateArray[2]); + returnDates.push(date); + } + + returnDates.sort( function(a,b) { return a-b; } ); + return returnDates; +}; + +/** +* Adds a renderer to the render stack. The function reference passed to this method will be executed +* when a date cell matches the conditions specified in the date string for this renderer. +* @method addRenderer +* @param {String} sDates A date string to associate with the specified renderer. Valid formats +* include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005) +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addRenderer = function(sDates, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addRenderer(sDates, fnRender); + } +}; + +/** +* Adds a month to the render stack. The function reference passed to this method will be executed +* when a date cell matches the month passed to this method. +* @method addMonthRenderer +* @param {Number} month The month (1-12) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addMonthRenderer = function(month, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addMonthRenderer(month, fnRender); + } +}; + +/** +* Adds a weekday to the render stack. The function reference passed to this method will be executed +* when a date cell matches the weekday passed to this method. +* @method addWeekdayRenderer +* @param {Number} weekday The weekday (0-6) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addWeekdayRenderer = function(weekday, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addWeekdayRenderer(weekday, fnRender); + } +}; + +/** +* Renders the header for the CalendarGroup. +* @method renderHeader +*/ +YAHOO.widget.CalendarGroup.prototype.renderHeader = function() {}; + +/** +* Renders a footer for the 2-up calendar container. By default, this method is +* unimplemented. +* @method renderFooter +*/ +YAHOO.widget.CalendarGroup.prototype.renderFooter = function() {}; + +/** +* Adds the designated number of months to the current calendar month, and sets the current +* calendar page date to the new month. +* @method addMonths +* @param {Number} count The number of months to add to the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.addMonths = function(count) { + this.callChildFunction("addMonths", count); +}; + + +/** +* Subtracts the designated number of months from the current calendar month, and sets the current +* calendar page date to the new month. +* @method subtractMonths +* @param {Number} count The number of months to subtract from the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.subtractMonths = function(count) { + this.callChildFunction("subtractMonths", count); +}; + +/** +* Adds the designated number of years to the current calendar, and sets the current +* calendar page date to the new month. +* @method addYears +* @param {Number} count The number of years to add to the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.addYears = function(count) { + this.callChildFunction("addYears", count); +}; + +/** +* Subtcats the designated number of years from the current calendar, and sets the current +* calendar page date to the new month. +* @method subtractYears +* @param {Number} count The number of years to subtract from the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.subtractYears = function(count) { + this.callChildFunction("subtractYears", count); +}; + +/** +* Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11. +* The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained +* @method _setMonthOnDate +* @private +* @param {Date} date The Date object on which to set the month index +* @param {Number} iMonth The month index to set +*/ +YAHOO.widget.CalendarGroup.prototype._setMonthOnDate = function(date, iMonth) { + // BUG in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11 + if (this.browser == "safari" && (iMonth < 0 || iMonth > 11)) { + var DM = YAHOO.widget.DateMath; + var newDate = DM.add(date, DM.MONTH, iMonth-date.getMonth()); + date.setTime(newDate.getTime()); + } else { + date.setMonth(iMonth); + } +}; + + +/** +* CSS class representing the container for the calendar +* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer"; + +/** +* CSS class representing the container for the calendar +* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_MULTI_UP = "multi"; + +/** +* CSS class representing the title for the 2-up calendar +* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_2UPTITLE = "title"; + +/** +* CSS class representing the close icon for the 2-up calendar +* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE +* @static +* @final +* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties. +* Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon"; + +YAHOO.augment(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel", + "buildMonthLabel", + "renderOutOfBoundsDate", + "renderRowHeader", + "renderRowFooter", + "renderCellDefault", + "styleCellDefault", + "renderCellStyleHighlight1", + "renderCellStyleHighlight2", + "renderCellStyleHighlight3", + "renderCellStyleHighlight4", + "renderCellStyleToday", + "renderCellStyleSelected", + "renderCellNotThisMonth", + "renderBodyCellRestricted", + "initStyles", + "configTitle", + "configClose", + "hide", + "show", + "browser"); + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} A string representation of the CalendarGroup object. +*/ +YAHOO.widget.CalendarGroup.prototype.toString = function() { + return "CalendarGroup " + this.id; +}; + +YAHOO.widget.CalGrp = YAHOO.widget.CalendarGroup; + +/** +* @class YAHOO.widget.Calendar2up +* @extends YAHOO.widget.CalendarGroup +* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default. +*/ +YAHOO.widget.Calendar2up = function(id, containerId, config) { + this.init(id, containerId, config); +}; + +YAHOO.extend(YAHOO.widget.Calendar2up, YAHOO.widget.CalendarGroup); + +/** +* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default. +*/ +YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up; + +YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar-min.js b/interface/ispconfig/interface/js/yui/calendar/calendar-min.js new file mode 100644 index 0000000..ca96867 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/calendar-min.js @@ -0,0 +1,116 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.Config=function(owner){if(owner){this.init(owner);}};YAHOO.util.Config.prototype={owner:null,queueInProgress:false,checkBoolean:function(val){if(typeof val=='boolean'){return true;}else{return false;}},checkNumber:function(val){if(isNaN(val)){return false;}else{return true;}}};YAHOO.util.Config.prototype.init=function(owner){this.owner=owner;this.configChangedEvent=new YAHOO.util.CustomEvent("configChanged");this.queueInProgress=false;var config={};var initialConfig={};var eventQueue=[];var fireEvent=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){property.event.fire(value);}};this.addProperty=function(key,propertyObject){key=key.toLowerCase();config[key]=propertyObject;propertyObject.event=new YAHOO.util.CustomEvent(key);propertyObject.key=key;if(propertyObject.handler){propertyObject.event.subscribe(propertyObject.handler,this.owner,true);} +this.setProperty(key,propertyObject.value,true);if(!propertyObject.suppressEvent){this.queueProperty(key,propertyObject.value);}};this.getConfig=function(){var cfg={};for(var prop in config){var property=config[prop];if(typeof property!='undefined'&&property.event){cfg[prop]=property.value;}} +return cfg;};this.getProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.value;}else{return undefined;}};this.resetProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(initialConfig[key]&&initialConfig[key]!='undefined'){this.setProperty(key,initialConfig[key]);} +return true;}else{return false;}};this.setProperty=function(key,value,silent){key=key.toLowerCase();if(this.queueInProgress&&!silent){this.queueProperty(key,value);return true;}else{var property=config[key];if(typeof property!='undefined'&&property.event){if(property.validator&&!property.validator(value)){return false;}else{property.value=value;if(!silent){fireEvent(key,value);this.configChangedEvent.fire([key,value]);} +return true;}}else{return false;}}};this.queueProperty=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(typeof value!='undefined'&&property.validator&&!property.validator(value)){return false;}else{if(typeof value!='undefined'){property.value=value;}else{value=property.value;} +var foundDuplicate=false;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var queueItemKey=queueItem[0];var queueItemValue=queueItem[1];if(queueItemKey.toLowerCase()==key){eventQueue[i]=null;eventQueue.push([key,(typeof value!='undefined'?value:queueItemValue)]);foundDuplicate=true;break;}}} +if(!foundDuplicate&&typeof value!='undefined'){eventQueue.push([key,value]);}} +if(property.supercedes){for(var s=0;s<property.supercedes.length;s++){var supercedesCheck=property.supercedes[s];for(var q=0;q<eventQueue.length;q++){var queueItemCheck=eventQueue[q];if(queueItemCheck){var queueItemCheckKey=queueItemCheck[0];var queueItemCheckValue=queueItemCheck[1];if(queueItemCheckKey.toLowerCase()==supercedesCheck.toLowerCase()){eventQueue.push([queueItemCheckKey,queueItemCheckValue]);eventQueue[q]=null;break;}}}}} +return true;}else{return false;}};this.refireEvent=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event&&typeof property.value!='undefined'){if(this.queueInProgress){this.queueProperty(key);}else{fireEvent(key,property.value);}}};this.applyConfig=function(userConfig,init){if(init){initialConfig=userConfig;} +for(var prop in userConfig){this.queueProperty(prop,userConfig[prop]);}};this.refresh=function(){for(var prop in config){this.refireEvent(prop);}};this.fireQueue=function(){this.queueInProgress=true;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var key=queueItem[0];var value=queueItem[1];var property=config[key];property.value=value;fireEvent(key,value);}} +this.queueInProgress=false;eventQueue=[];};this.subscribeToConfigEvent=function(key,handler,obj,override){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(!YAHOO.util.Config.alreadySubscribed(property.event,handler,obj)){property.event.subscribe(handler,obj,override);} +return true;}else{return false;}};this.unsubscribeFromConfigEvent=function(key,handler,obj){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.event.unsubscribe(handler,obj);}else{return false;}};this.toString=function(){var output="Config";if(this.owner){output+=" ["+this.owner.toString()+"]";} +return output;};this.outputEventQueue=function(){var output="";for(var q=0;q<eventQueue.length;q++){var queueItem=eventQueue[q];if(queueItem){output+=queueItem[0]+"="+queueItem[1]+", ";}} +return output;};};YAHOO.util.Config.alreadySubscribed=function(evt,fn,obj){for(var e=0;e<evt.subscribers.length;e++){var subsc=evt.subscribers[e];if(subsc&&subsc.obj==obj&&subsc.fn==fn){return true;}} +return false;};YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,add:function(date,field,amount){var d=new Date(date.getTime());switch(field){case this.MONTH:var newMonth=date.getMonth()+amount;var years=0;if(newMonth<0){while(newMonth<0){newMonth+=12;years-=1;}}else if(newMonth>11){while(newMonth>11){newMonth-=12;years+=1;}} +d.setMonth(newMonth);d.setFullYear(date.getFullYear()+years);break;case this.DAY:d.setDate(date.getDate()+amount);break;case this.YEAR:d.setFullYear(date.getFullYear()+amount);break;case this.WEEK:d.setDate(date.getDate()+(amount*7));break;} +return d;},subtract:function(date,field,amount){return this.add(date,field,(amount*-1));},before:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()<ms){return true;}else{return false;}},after:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()>ms){return true;}else{return false;}},between:function(date,dateBegin,dateEnd){if(this.after(date,dateBegin)&&this.before(date,dateEnd)){return true;}else{return false;}},getJan1:function(calendarYear){return new Date(calendarYear,0,1);},getDayOffset:function(date,calendarYear){var beginYear=this.getJan1(calendarYear);var dayOffset=Math.ceil((date.getTime()-beginYear.getTime())/this.ONE_DAY_MS);return dayOffset;},getWeekNumber:function(date,calendarYear){date=this.clearTime(date);var nearestThurs=new Date(date.getTime()+(4*this.ONE_DAY_MS)-((date.getDay())*this.ONE_DAY_MS));var jan1=new Date(nearestThurs.getFullYear(),0,1);var dayOfYear=((nearestThurs.getTime()-jan1.getTime())/this.ONE_DAY_MS)-1;var weekNum=Math.ceil((dayOfYear)/7);return weekNum;},isYearOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getFullYear()!=weekBeginDate.getFullYear()){overlaps=true;} +return overlaps;},isMonthOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getMonth()!=weekBeginDate.getMonth()){overlaps=true;} +return overlaps;},findMonthStart:function(date){var start=new Date(date.getFullYear(),date.getMonth(),1);return start;},findMonthEnd:function(date){var start=this.findMonthStart(date);var nextMonth=this.add(start,this.MONTH,1);var end=this.subtract(nextMonth,this.DAY,1);return end;},clearTime:function(date){date.setHours(12,0,0,0);return date;}};YAHOO.widget.Calendar=function(id,containerId,config){this.init(id,containerId,config);};YAHOO.widget.Calendar.IMG_ROOT=null;YAHOO.widget.Calendar.DATE="D";YAHOO.widget.Calendar.MONTH_DAY="MD";YAHOO.widget.Calendar.WEEKDAY="WD";YAHOO.widget.Calendar.RANGE="R";YAHOO.widget.Calendar.MONTH="M";YAHOO.widget.Calendar.DISPLAY_DAYS=42;YAHOO.widget.Calendar.STOP_RENDER="S";YAHOO.widget.Calendar.prototype={Config:null,parent:null,index:-1,cells:null,cellDates:null,id:null,oDomContainer:null,today:null,renderStack:null,_renderStack:null,_selectedDates:null,domEventMap:null};YAHOO.widget.Calendar.prototype.init=function(id,containerId,config){this.initEvents();this.today=new Date();YAHOO.widget.DateMath.clearTime(this.today);this.id=id;this.oDomContainer=document.getElementById(containerId);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();if(config){this.cfg.applyConfig(config,true);} +this.cfg.fireQueue();};YAHOO.widget.Calendar.prototype.configIframe=function(type,args,obj){var useIframe=args[0];if(YAHOO.util.Dom.inDocument(this.oDomContainer)){if(useIframe){var pos=YAHOO.util.Dom.getStyle(this.oDomContainer,"position");if(this.browser=="ie"&&(pos=="absolute"||pos=="relative")){if(!YAHOO.util.Dom.inDocument(this.iframe)){this.iframe=document.createElement("iframe");this.iframe.src="javascript:false;";YAHOO.util.Dom.setStyle(this.iframe,"opacity","0");this.oDomContainer.insertBefore(this.iframe,this.oDomContainer.firstChild);}}}else{if(this.iframe){if(this.iframe.parentNode){this.iframe.parentNode.removeChild(this.iframe);} +this.iframe=null;}}}};YAHOO.widget.Calendar.prototype.configTitle=function(type,args,obj){var title=args[0];var close=this.cfg.getProperty("close");var titleDiv;if(title&&title!==""){titleDiv=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");titleDiv.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;titleDiv.innerHTML=title;this.oDomContainer.insertBefore(titleDiv,this.oDomContainer.firstChild);YAHOO.util.Dom.addClass(this.oDomContainer,"withtitle");}else{titleDiv=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;if(titleDiv){YAHOO.util.Event.purgeElement(titleDiv);this.oDomContainer.removeChild(titleDiv);} +if(!close){YAHOO.util.Dom.removeClass(this.oDomContainer,"withtitle");}}};YAHOO.widget.Calendar.prototype.configClose=function(type,args,obj){var close=args[0];var title=this.cfg.getProperty("title");var DEPR_CLOSE_PATH="us/my/bn/x_d.gif";var linkClose;if(close===true){linkClose=YAHOO.util.Dom.getElementsByClassName("link-close","a",this.oDomContainer)[0]||document.createElement("a");linkClose.href="javascript:void(null);";linkClose.className="link-close";YAHOO.util.Event.addListener(linkClose,"click",this.hide,this,true);if(YAHOO.widget.Calendar.IMG_ROOT!==null){var imgClose=document.createElement("img");imgClose.src=YAHOO.widget.Calendar.IMG_ROOT+DEPR_CLOSE_PATH;imgClose.className=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE;linkClose.appendChild(imgClose);}else{linkClose.innerHTML='<span class="'+YAHOO.widget.CalendarGroup.CSS_2UPCLOSE+' '+this.Style.CSS_CLOSE+'"></span>';} +this.oDomContainer.appendChild(linkClose);YAHOO.util.Dom.addClass(this.oDomContainer,"withtitle");}else{linkClose=YAHOO.util.Dom.getElementsByClassName("link-close","a",this.oDomContainer)[0]||null;if(linkClose){YAHOO.util.Event.purgeElement(linkClose);this.oDomContainer.removeChild(linkClose);} +if(!title||title===""){YAHOO.util.Dom.removeClass(this.oDomContainer,"withtitle");}}};YAHOO.widget.Calendar.prototype.initEvents=function(){this.beforeSelectEvent=new YAHOO.util.CustomEvent("beforeSelect");this.selectEvent=new YAHOO.util.CustomEvent("select");this.beforeDeselectEvent=new YAHOO.util.CustomEvent("beforeDeselect");this.deselectEvent=new YAHOO.util.CustomEvent("deselect");this.changePageEvent=new YAHOO.util.CustomEvent("changePage");this.beforeRenderEvent=new YAHOO.util.CustomEvent("beforeRender");this.renderEvent=new YAHOO.util.CustomEvent("render");this.resetEvent=new YAHOO.util.CustomEvent("reset");this.clearEvent=new YAHOO.util.CustomEvent("clear");this.beforeSelectEvent.subscribe(this.onBeforeSelect,this,true);this.selectEvent.subscribe(this.onSelect,this,true);this.beforeDeselectEvent.subscribe(this.onBeforeDeselect,this,true);this.deselectEvent.subscribe(this.onDeselect,this,true);this.changePageEvent.subscribe(this.onChangePage,this,true);this.renderEvent.subscribe(this.onRender,this,true);this.resetEvent.subscribe(this.onReset,this,true);this.clearEvent.subscribe(this.onClear,this,true);};YAHOO.widget.Calendar.prototype.doSelectCell=function(e,cal){var target=YAHOO.util.Event.getTarget(e);var cell,index,d,date;while(target.tagName.toLowerCase()!="td"&&!YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}} +cell=target;if(YAHOO.util.Dom.hasClass(cell,cal.Style.CSS_CELL_SELECTABLE)){index=cell.id.split("cell")[1];d=cal.cellDates[index];date=new Date(d[0],d[1]-1,d[2]);var link;if(cal.Options.MULTI_SELECT){link=cell.getElementsByTagName("a")[0];if(link){link.blur();} +var cellDate=cal.cellDates[index];var cellDateIndex=cal._indexOfSelectedFieldArray(cellDate);if(cellDateIndex>-1){cal.deselectCell(index);}else{cal.selectCell(index);}}else{link=cell.getElementsByTagName("a")[0];if(link){link.blur();} +cal.selectCell(index);}}};YAHOO.widget.Calendar.prototype.doCellMouseOver=function(e,cal){var target;if(e){target=YAHOO.util.Event.getTarget(e);}else{target=this;} +while(target.tagName.toLowerCase()!="td"){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}} +if(YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.addClass(target,cal.Style.CSS_CELL_HOVER);}};YAHOO.widget.Calendar.prototype.doCellMouseOut=function(e,cal){var target;if(e){target=YAHOO.util.Event.getTarget(e);}else{target=this;} +while(target.tagName.toLowerCase()!="td"){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}} +if(YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.removeClass(target,cal.Style.CSS_CELL_HOVER);}};YAHOO.widget.Calendar.prototype.setupConfig=function(){this.cfg.addProperty("pagedate",{value:new Date(),handler:this.configPageDate});this.cfg.addProperty("selected",{value:[],handler:this.configSelected});this.cfg.addProperty("title",{value:"",handler:this.configTitle});this.cfg.addProperty("close",{value:false,handler:this.configClose});this.cfg.addProperty("iframe",{value:true,handler:this.configIframe,validator:this.cfg.checkBoolean});this.cfg.addProperty("mindate",{value:null,handler:this.configMinDate});this.cfg.addProperty("maxdate",{value:null,handler:this.configMaxDate});this.cfg.addProperty("MULTI_SELECT",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("START_WEEKDAY",{value:0,handler:this.configOptions,validator:this.cfg.checkNumber});this.cfg.addProperty("SHOW_WEEKDAYS",{value:true,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_HEADER",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_FOOTER",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("HIDE_BLANK_WEEKS",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("NAV_ARROW_LEFT",{value:null,handler:this.configOptions});this.cfg.addProperty("NAV_ARROW_RIGHT",{value:null,handler:this.configOptions});this.cfg.addProperty("MONTHS_SHORT",{value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],handler:this.configLocale});this.cfg.addProperty("MONTHS_LONG",{value:["January","February","March","April","May","June","July","August","September","October","November","December"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_1CHAR",{value:["S","M","T","W","T","F","S"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_SHORT",{value:["Su","Mo","Tu","We","Th","Fr","Sa"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_MEDIUM",{value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_LONG",{value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],handler:this.configLocale});var refreshLocale=function(){this.cfg.refireEvent("LOCALE_MONTHS");this.cfg.refireEvent("LOCALE_WEEKDAYS");};this.cfg.subscribeToConfigEvent("START_WEEKDAY",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("MONTHS_SHORT",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("MONTHS_LONG",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG",refreshLocale,this,true);this.cfg.addProperty("LOCALE_MONTHS",{value:"long",handler:this.configLocaleValues});this.cfg.addProperty("LOCALE_WEEKDAYS",{value:"short",handler:this.configLocaleValues});this.cfg.addProperty("DATE_DELIMITER",{value:",",handler:this.configLocale});this.cfg.addProperty("DATE_FIELD_DELIMITER",{value:"/",handler:this.configLocale});this.cfg.addProperty("DATE_RANGE_DELIMITER",{value:"-",handler:this.configLocale});this.cfg.addProperty("MY_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MY_YEAR_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_DAY_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_DAY_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_YEAR_POSITION",{value:3,handler:this.configLocale,validator:this.cfg.checkNumber});};YAHOO.widget.Calendar.prototype.configPageDate=function(type,args,obj){this.cfg.setProperty("pagedate",this._parsePageDate(args[0]),true);};YAHOO.widget.Calendar.prototype.configMinDate=function(type,args,obj){var val=args[0];if(typeof val=='string'){val=this._parseDate(val);this.cfg.setProperty("mindate",new Date(val[0],(val[1]-1),val[2]));}};YAHOO.widget.Calendar.prototype.configMaxDate=function(type,args,obj){var val=args[0];if(typeof val=='string'){val=this._parseDate(val);this.cfg.setProperty("maxdate",new Date(val[0],(val[1]-1),val[2]));}};YAHOO.widget.Calendar.prototype.configSelected=function(type,args,obj){var selected=args[0];if(selected){if(typeof selected=='string'){this.cfg.setProperty("selected",this._parseDates(selected),true);}} +if(!this._selectedDates){this._selectedDates=this.cfg.getProperty("selected");}};YAHOO.widget.Calendar.prototype.configOptions=function(type,args,obj){type=type.toUpperCase();var val=args[0];this.Options[type]=val;};YAHOO.widget.Calendar.prototype.configLocale=function(type,args,obj){type=type.toUpperCase();var val=args[0];this.Locale[type]=val;this.cfg.refireEvent("LOCALE_MONTHS");this.cfg.refireEvent("LOCALE_WEEKDAYS");};YAHOO.widget.Calendar.prototype.configLocaleValues=function(type,args,obj){type=type.toUpperCase();var val=args[0];switch(type){case"LOCALE_MONTHS":switch(val){case"short":this.Locale.LOCALE_MONTHS=this.cfg.getProperty("MONTHS_SHORT").concat();break;case"long":this.Locale.LOCALE_MONTHS=this.cfg.getProperty("MONTHS_LONG").concat();break;} +break;case"LOCALE_WEEKDAYS":switch(val){case"1char":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_1CHAR").concat();break;case"short":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_SHORT").concat();break;case"medium":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_MEDIUM").concat();break;case"long":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_LONG").concat();break;} +var START_WEEKDAY=this.cfg.getProperty("START_WEEKDAY");if(START_WEEKDAY>0){for(var w=0;w<START_WEEKDAY;++w){this.Locale.LOCALE_WEEKDAYS.push(this.Locale.LOCALE_WEEKDAYS.shift());}} +break;}};YAHOO.widget.Calendar.prototype.initStyles=function(){this.Style={CSS_ROW_HEADER:"calrowhead",CSS_ROW_FOOTER:"calrowfoot",CSS_CELL:"calcell",CSS_CELL_SELECTED:"selected",CSS_CELL_SELECTABLE:"selectable",CSS_CELL_RESTRICTED:"restricted",CSS_CELL_TODAY:"today",CSS_CELL_OOM:"oom",CSS_CELL_OOB:"previous",CSS_HEADER:"calheader",CSS_HEADER_TEXT:"calhead",CSS_BODY:"calbody",CSS_WEEKDAY_CELL:"calweekdaycell",CSS_WEEKDAY_ROW:"calweekdayrow",CSS_FOOTER:"calfoot",CSS_CALENDAR:"yui-calendar",CSS_SINGLE:"single",CSS_CONTAINER:"yui-calcontainer",CSS_NAV_LEFT:"calnavleft",CSS_NAV_RIGHT:"calnavright",CSS_CLOSE:"calclose",CSS_CELL_TOP:"calcelltop",CSS_CELL_LEFT:"calcellleft",CSS_CELL_RIGHT:"calcellright",CSS_CELL_BOTTOM:"calcellbottom",CSS_CELL_HOVER:"calcellhover",CSS_CELL_HIGHLIGHT1:"highlight1",CSS_CELL_HIGHLIGHT2:"highlight2",CSS_CELL_HIGHLIGHT3:"highlight3",CSS_CELL_HIGHLIGHT4:"highlight4"};};YAHOO.widget.Calendar.prototype.buildMonthLabel=function(){var text=this.Locale.LOCALE_MONTHS[this.cfg.getProperty("pagedate").getMonth()]+" "+this.cfg.getProperty("pagedate").getFullYear();return text;};YAHOO.widget.Calendar.prototype.buildDayLabel=function(workingDate){var day=workingDate.getDate();return day;};YAHOO.widget.Calendar.prototype.renderHeader=function(html){var colSpan=7;var DEPR_NAV_LEFT="us/tr/callt.gif";var DEPR_NAV_RIGHT="us/tr/calrt.gif";if(this.cfg.getProperty("SHOW_WEEK_HEADER")){colSpan+=1;} +if(this.cfg.getProperty("SHOW_WEEK_FOOTER")){colSpan+=1;} +html[html.length]="<thead>";html[html.length]="<tr>";html[html.length]='<th colspan="'+colSpan+'" class="'+this.Style.CSS_HEADER_TEXT+'">';html[html.length]='<div class="'+this.Style.CSS_HEADER+'">';var renderLeft,renderRight=false;if(this.parent){if(this.index===0){renderLeft=true;} +if(this.index==(this.parent.cfg.getProperty("pages")-1)){renderRight=true;}}else{renderLeft=true;renderRight=true;} +var cal=this.parent||this;if(renderLeft){var leftArrow=this.cfg.getProperty("NAV_ARROW_LEFT");if(leftArrow===null&&YAHOO.widget.Calendar.IMG_ROOT!==null){leftArrow=YAHOO.widget.Calendar.IMG_ROOT+DEPR_NAV_LEFT;} +var leftStyle=(leftArrow===null)?"":' style="background-image:url('+leftArrow+')"';html[html.length]='<a class="'+this.Style.CSS_NAV_LEFT+'"'+leftStyle+' > </a>';} +html[html.length]=this.buildMonthLabel();if(renderRight){var rightArrow=this.cfg.getProperty("NAV_ARROW_RIGHT");if(rightArrow===null&&YAHOO.widget.Calendar.IMG_ROOT!==null){rightArrow=YAHOO.widget.Calendar.IMG_ROOT+DEPR_NAV_RIGHT;} +var rightStyle=(rightArrow===null)?"":' style="background-image:url('+rightArrow+')"';html[html.length]='<a class="'+this.Style.CSS_NAV_RIGHT+'"'+rightStyle+' > </a>';} +html[html.length]='</div>';html[html.length]='</th>';html[html.length]='</tr>';if(this.cfg.getProperty("SHOW_WEEKDAYS")){html=this.buildWeekdays(html);} +html[html.length]='</thead>';return html;};YAHOO.widget.Calendar.prototype.buildWeekdays=function(html){html[html.length]='<tr class="'+this.Style.CSS_WEEKDAY_ROW+'">';if(this.cfg.getProperty("SHOW_WEEK_HEADER")){html[html.length]='<th> </th>';} +for(var i=0;i<this.Locale.LOCALE_WEEKDAYS.length;++i){html[html.length]='<th class="calweekdaycell">'+this.Locale.LOCALE_WEEKDAYS[i]+'</th>';} +if(this.cfg.getProperty("SHOW_WEEK_FOOTER")){html[html.length]='<th> </th>';} +html[html.length]='</tr>';return html;};YAHOO.widget.Calendar.prototype.renderBody=function(workingDate,html){var startDay=this.cfg.getProperty("START_WEEKDAY");this.preMonthDays=workingDate.getDay();if(startDay>0){this.preMonthDays-=startDay;} +if(this.preMonthDays<0){this.preMonthDays+=7;} +this.monthDays=YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();this.postMonthDays=YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;workingDate=YAHOO.widget.DateMath.subtract(workingDate,YAHOO.widget.DateMath.DAY,this.preMonthDays);var useDate,weekNum,weekClass;useDate=this.cfg.getProperty("pagedate");html[html.length]='<tbody class="m'+(useDate.getMonth()+1)+' '+this.Style.CSS_BODY+'">';var i=0;var tempDiv=document.createElement("div");var cell=document.createElement("td");tempDiv.appendChild(cell);var jan1=new Date(useDate.getFullYear(),0,1);var cal=this.parent||this;for(var r=0;r<6;r++){weekNum=YAHOO.widget.DateMath.getWeekNumber(workingDate,useDate.getFullYear(),startDay);weekClass="w"+weekNum;if(r!==0&&this.isDateOOM(workingDate)&&this.cfg.getProperty("HIDE_BLANK_WEEKS")===true){break;}else{html[html.length]='<tr class="'+weekClass+'">';if(this.cfg.getProperty("SHOW_WEEK_HEADER")){html=this.renderRowHeader(weekNum,html);} +for(var d=0;d<7;d++){var cellRenderers=[];this.clearElement(cell);YAHOO.util.Dom.addClass(cell,"calcell");cell.id=this.id+"_cell"+i;cell.innerHTML=i;var renderer=null;if(workingDate.getFullYear()==this.today.getFullYear()&&workingDate.getMonth()==this.today.getMonth()&&workingDate.getDate()==this.today.getDate()){cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;} +this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];if(this.isDateOOM(workingDate)){cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;}else{YAHOO.util.Dom.addClass(cell,"wd"+workingDate.getDay());YAHOO.util.Dom.addClass(cell,"d"+workingDate.getDate());for(var s=0;s<this.renderStack.length;++s){var rArray=this.renderStack[s];var type=rArray[0];var month;var day;var year;switch(type){case YAHOO.widget.Calendar.DATE:month=rArray[1][1];day=rArray[1][2];year=rArray[1][0];if(workingDate.getMonth()+1==month&&workingDate.getDate()==day&&workingDate.getFullYear()==year){renderer=rArray[2];this.renderStack.splice(s,1);} +break;case YAHOO.widget.Calendar.MONTH_DAY:month=rArray[1][0];day=rArray[1][1];if(workingDate.getMonth()+1==month&&workingDate.getDate()==day){renderer=rArray[2];this.renderStack.splice(s,1);} +break;case YAHOO.widget.Calendar.RANGE:var date1=rArray[1][0];var date2=rArray[1][1];var d1month=date1[1];var d1day=date1[2];var d1year=date1[0];var d1=new Date(d1year,d1month-1,d1day);var d2month=date2[1];var d2day=date2[2];var d2year=date2[0];var d2=new Date(d2year,d2month-1,d2day);if(workingDate.getTime()>=d1.getTime()&&workingDate.getTime()<=d2.getTime()){renderer=rArray[2];if(workingDate.getTime()==d2.getTime()){this.renderStack.splice(s,1);}} +break;case YAHOO.widget.Calendar.WEEKDAY:var weekday=rArray[1][0];if(workingDate.getDay()+1==weekday){renderer=rArray[2];} +break;case YAHOO.widget.Calendar.MONTH:month=rArray[1][0];if(workingDate.getMonth()+1==month){renderer=rArray[2];} +break;} +if(renderer){cellRenderers[cellRenderers.length]=renderer;}}} +if(this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()])>-1){cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected;} +var mindate=this.cfg.getProperty("mindate");var maxdate=this.cfg.getProperty("maxdate");if(mindate){mindate=YAHOO.widget.DateMath.clearTime(mindate);} +if(maxdate){maxdate=YAHOO.widget.DateMath.clearTime(maxdate);} +if((mindate&&(workingDate.getTime()<mindate.getTime()))||(maxdate&&(workingDate.getTime()>maxdate.getTime()))){cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;}else{cellRenderers[cellRenderers.length]=cal.styleCellDefault;cellRenderers[cellRenderers.length]=cal.renderCellDefault;} +for(var x=0;x<cellRenderers.length;++x){var ren=cellRenderers[x];if(ren.call((this.parent||this),workingDate,cell)==YAHOO.widget.Calendar.STOP_RENDER){break;}} +workingDate.setTime(workingDate.getTime()+YAHOO.widget.DateMath.ONE_DAY_MS);if(i>=0&&i<=6){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_TOP);} +if((i%7)===0){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_LEFT);} +if(((i+1)%7)===0){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_RIGHT);} +var postDays=this.postMonthDays;if(postDays>=7&&this.cfg.getProperty("HIDE_BLANK_WEEKS")){var blankWeeks=Math.floor(postDays/7);for(var p=0;p<blankWeeks;++p){postDays-=7;}} +if(i>=((this.preMonthDays+postDays+this.monthDays)-7)){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_BOTTOM);} +html[html.length]=tempDiv.innerHTML;i++;} +if(this.cfg.getProperty("SHOW_WEEK_FOOTER")){html=this.renderRowFooter(weekNum,html);} +html[html.length]='</tr>';}} +html[html.length]='</tbody>';return html;};YAHOO.widget.Calendar.prototype.renderFooter=function(html){return html;};YAHOO.widget.Calendar.prototype.render=function(){this.beforeRenderEvent.fire();var workingDate=YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate"));this.resetRenderers();this.cellDates.length=0;YAHOO.util.Event.purgeElement(this.oDomContainer,true);var html=[];html[html.length]='<table cellSpacing="0" class="'+this.Style.CSS_CALENDAR+' y'+workingDate.getFullYear()+'" id="'+this.id+'">';html=this.renderHeader(html);html=this.renderBody(workingDate,html);html=this.renderFooter(html);html[html.length]='</table>';this.oDomContainer.innerHTML=html.join("\n");this.applyListeners();this.cells=this.oDomContainer.getElementsByTagName("td");this.cfg.refireEvent("title");this.cfg.refireEvent("close");this.cfg.refireEvent("iframe");this.renderEvent.fire();};YAHOO.widget.Calendar.prototype.applyListeners=function(){var root=this.oDomContainer;var cal=this.parent||this;var linkLeft,linkRight;linkLeft=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT,"a",root);linkRight=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT,"a",root);if(linkLeft){this.linkLeft=linkLeft[0];YAHOO.util.Event.addListener(this.linkLeft,"mousedown",cal.previousMonth,cal,true);} +if(linkRight){this.linkRight=linkRight[0];YAHOO.util.Event.addListener(this.linkRight,"mousedown",cal.nextMonth,cal,true);} +if(this.domEventMap){var el,elements;for(var cls in this.domEventMap){if(YAHOO.lang.hasOwnProperty(this.domEventMap,cls)){var items=this.domEventMap[cls];if(!(items instanceof Array)){items=[items];} +for(var i=0;i<items.length;i++){var item=items[i];elements=YAHOO.util.Dom.getElementsByClassName(cls,item.tag,this.oDomContainer);for(var c=0;c<elements.length;c++){el=elements[c];YAHOO.util.Event.addListener(el,item.event,item.handler,item.scope,item.correct);}}}}} +YAHOO.util.Event.addListener(this.oDomContainer,"click",this.doSelectCell,this);YAHOO.util.Event.addListener(this.oDomContainer,"mouseover",this.doCellMouseOver,this);YAHOO.util.Event.addListener(this.oDomContainer,"mouseout",this.doCellMouseOut,this);};YAHOO.widget.Calendar.prototype.getDateByCellId=function(id){var date=this.getDateFieldsByCellId(id);return new Date(date[0],date[1]-1,date[2]);};YAHOO.widget.Calendar.prototype.getDateFieldsByCellId=function(id){id=id.toLowerCase().split("_cell")[1];id=parseInt(id,10);return this.cellDates[id];};YAHOO.widget.Calendar.prototype.renderOutOfBoundsDate=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_OOB);cell.innerHTML=workingDate.getDate();return YAHOO.widget.Calendar.STOP_RENDER;};YAHOO.widget.Calendar.prototype.renderRowHeader=function(weekNum,html){html[html.length]='<th class="calrowhead">'+weekNum+'</th>';return html;};YAHOO.widget.Calendar.prototype.renderRowFooter=function(weekNum,html){html[html.length]='<th class="calrowfoot">'+weekNum+'</th>';return html;};YAHOO.widget.Calendar.prototype.renderCellDefault=function(workingDate,cell){cell.innerHTML='<a href="javascript:void(null);" >'+this.buildDayLabel(workingDate)+"</a>";};YAHOO.widget.Calendar.prototype.styleCellDefault=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_SELECTABLE);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT1);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT2);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT3);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT4);};YAHOO.widget.Calendar.prototype.renderCellStyleToday=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_TODAY);};YAHOO.widget.Calendar.prototype.renderCellStyleSelected=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_SELECTED);};YAHOO.widget.Calendar.prototype.renderCellNotThisMonth=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_OOM);cell.innerHTML=workingDate.getDate();return YAHOO.widget.Calendar.STOP_RENDER;};YAHOO.widget.Calendar.prototype.renderBodyCellRestricted=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL);YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_RESTRICTED);cell.innerHTML=workingDate.getDate();return YAHOO.widget.Calendar.STOP_RENDER;};YAHOO.widget.Calendar.prototype.addMonths=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.MONTH,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.subtractMonths=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.MONTH,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.addYears=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.YEAR,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.subtractYears=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.YEAR,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.nextMonth=function(){this.addMonths(1);};YAHOO.widget.Calendar.prototype.previousMonth=function(){this.subtractMonths(1);};YAHOO.widget.Calendar.prototype.nextYear=function(){this.addYears(1);};YAHOO.widget.Calendar.prototype.previousYear=function(){this.subtractYears(1);};YAHOO.widget.Calendar.prototype.reset=function(){this.cfg.resetProperty("selected");this.cfg.resetProperty("pagedate");this.resetEvent.fire();};YAHOO.widget.Calendar.prototype.clear=function(){this.cfg.setProperty("selected",[]);this.cfg.setProperty("pagedate",new Date(this.today.getTime()));this.clearEvent.fire();};YAHOO.widget.Calendar.prototype.select=function(date){this.beforeSelectEvent.fire();var selected=this.cfg.getProperty("selected");var aToBeSelected=this._toFieldArray(date);for(var a=0;a<aToBeSelected.length;++a){var toSelect=aToBeSelected[a];if(this._indexOfSelectedFieldArray(toSelect)==-1){selected[selected.length]=toSelect;}} +if(this.parent){this.parent.cfg.setProperty("selected",selected);}else{this.cfg.setProperty("selected",selected);} +this.selectEvent.fire(aToBeSelected);return this.getSelectedDates();};YAHOO.widget.Calendar.prototype.selectCell=function(cellIndex){this.beforeSelectEvent.fire();var selected=this.cfg.getProperty("selected");var cell=this.cells[cellIndex];var cellDate=this.cellDates[cellIndex];var dCellDate=this._toDate(cellDate);var selectDate=cellDate.concat();selected[selected.length]=selectDate;if(this.parent){this.parent.cfg.setProperty("selected",selected);}else{this.cfg.setProperty("selected",selected);} +this.renderCellStyleSelected(dCellDate,cell);this.selectEvent.fire([selectDate]);this.doCellMouseOut.call(cell,null,this);return this.getSelectedDates();};YAHOO.widget.Calendar.prototype.deselect=function(date){this.beforeDeselectEvent.fire();var selected=this.cfg.getProperty("selected");var aToBeSelected=this._toFieldArray(date);for(var a=0;a<aToBeSelected.length;++a){var toSelect=aToBeSelected[a];var index=this._indexOfSelectedFieldArray(toSelect);if(index!=-1){selected.splice(index,1);}} +if(this.parent){this.parent.cfg.setProperty("selected",selected);}else{this.cfg.setProperty("selected",selected);} +this.deselectEvent.fire(aToBeSelected);return this.getSelectedDates();};YAHOO.widget.Calendar.prototype.deselectCell=function(i){this.beforeDeselectEvent.fire();var selected=this.cfg.getProperty("selected");var cell=this.cells[i];var cellDate=this.cellDates[i];var cellDateIndex=this._indexOfSelectedFieldArray(cellDate);var dCellDate=this._toDate(cellDate);var selectDate=cellDate.concat();if(cellDateIndex>-1){if(this.cfg.getProperty("pagedate").getMonth()==dCellDate.getMonth()&&this.cfg.getProperty("pagedate").getFullYear()==dCellDate.getFullYear()){YAHOO.util.Dom.removeClass(cell,this.Style.CSS_CELL_SELECTED);} +selected.splice(cellDateIndex,1);} +if(this.parent){this.parent.cfg.setProperty("selected",selected);}else{this.cfg.setProperty("selected",selected);} +this.deselectEvent.fire(selectDate);return this.getSelectedDates();};YAHOO.widget.Calendar.prototype.deselectAll=function(){this.beforeDeselectEvent.fire();var selected=this.cfg.getProperty("selected");var count=selected.length;var sel=selected.concat();if(this.parent){this.parent.cfg.setProperty("selected",[]);}else{this.cfg.setProperty("selected",[]);} +if(count>0){this.deselectEvent.fire(sel);} +return this.getSelectedDates();};YAHOO.widget.Calendar.prototype._toFieldArray=function(date){var returnDate=[];if(date instanceof Date){returnDate=[[date.getFullYear(),date.getMonth()+1,date.getDate()]];}else if(typeof date=='string'){returnDate=this._parseDates(date);}else if(date instanceof Array){for(var i=0;i<date.length;++i){var d=date[i];returnDate[returnDate.length]=[d.getFullYear(),d.getMonth()+1,d.getDate()];}} +return returnDate;};YAHOO.widget.Calendar.prototype._toDate=function(dateFieldArray){if(dateFieldArray instanceof Date){return dateFieldArray;}else{return new Date(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);}};YAHOO.widget.Calendar.prototype._fieldArraysAreEqual=function(array1,array2){var match=false;if(array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]){match=true;} +return match;};YAHOO.widget.Calendar.prototype._indexOfSelectedFieldArray=function(find){var selected=-1;var seldates=this.cfg.getProperty("selected");for(var s=0;s<seldates.length;++s){var sArray=seldates[s];if(find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]){selected=s;break;}} +return selected;};YAHOO.widget.Calendar.prototype.isDateOOM=function(date){var isOOM=false;if(date.getMonth()!=this.cfg.getProperty("pagedate").getMonth()){isOOM=true;} +return isOOM;};YAHOO.widget.Calendar.prototype._parsePageDate=function(date){var parsedDate;if(date){if(date instanceof Date){parsedDate=YAHOO.widget.DateMath.findMonthStart(date);}else{var month,year,aMonthYear;aMonthYear=date.split(this.cfg.getProperty("DATE_FIELD_DELIMITER"));month=parseInt(aMonthYear[this.cfg.getProperty("MY_MONTH_POSITION")-1],10)-1;year=parseInt(aMonthYear[this.cfg.getProperty("MY_YEAR_POSITION")-1],10);parsedDate=new Date(year,month,1);}}else{parsedDate=new Date(this.today.getFullYear(),this.today.getMonth(),1);} +return parsedDate;};YAHOO.widget.Calendar.prototype.onBeforeSelect=function(){if(this.cfg.getProperty("MULTI_SELECT")===false){if(this.parent){this.parent.callChildFunction("clearAllBodyCellStyles",this.Style.CSS_CELL_SELECTED);this.parent.deselectAll();}else{this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);this.deselectAll();}}};YAHOO.widget.Calendar.prototype.onSelect=function(selected){};YAHOO.widget.Calendar.prototype.onBeforeDeselect=function(){};YAHOO.widget.Calendar.prototype.onDeselect=function(deselected){};YAHOO.widget.Calendar.prototype.onChangePage=function(){this.render();};YAHOO.widget.Calendar.prototype.onRender=function(){};YAHOO.widget.Calendar.prototype.onReset=function(){this.render();};YAHOO.widget.Calendar.prototype.onClear=function(){this.render();};YAHOO.widget.Calendar.prototype.validate=function(){return true;};YAHOO.widget.Calendar.prototype._parseDate=function(sDate){var aDate=sDate.split(this.Locale.DATE_FIELD_DELIMITER);var rArray;if(aDate.length==2){rArray=[aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];rArray.type=YAHOO.widget.Calendar.MONTH_DAY;}else{rArray=[aDate[this.Locale.MDY_YEAR_POSITION-1],aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];rArray.type=YAHOO.widget.Calendar.DATE;} +for(var i=0;i<rArray.length;i++){rArray[i]=parseInt(rArray[i],10);} +return rArray;};YAHOO.widget.Calendar.prototype._parseDates=function(sDates){var aReturn=[];var aDates=sDates.split(this.Locale.DATE_DELIMITER);for(var d=0;d<aDates.length;++d){var sDate=aDates[d];if(sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER)!=-1){var aRange=sDate.split(this.Locale.DATE_RANGE_DELIMITER);var dateStart=this._parseDate(aRange[0]);var dateEnd=this._parseDate(aRange[1]);var fullRange=this._parseRange(dateStart,dateEnd);aReturn=aReturn.concat(fullRange);}else{var aDate=this._parseDate(sDate);aReturn.push(aDate);}} +return aReturn;};YAHOO.widget.Calendar.prototype._parseRange=function(startDate,endDate){var dStart=new Date(startDate[0],startDate[1]-1,startDate[2]);var dCurrent=YAHOO.widget.DateMath.add(new Date(startDate[0],startDate[1]-1,startDate[2]),YAHOO.widget.DateMath.DAY,1);var dEnd=new Date(endDate[0],endDate[1]-1,endDate[2]);var results=[];results.push(startDate);while(dCurrent.getTime()<=dEnd.getTime()){results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);dCurrent=YAHOO.widget.DateMath.add(dCurrent,YAHOO.widget.DateMath.DAY,1);} +return results;};YAHOO.widget.Calendar.prototype.resetRenderers=function(){this.renderStack=this._renderStack.concat();};YAHOO.widget.Calendar.prototype.clearElement=function(cell){cell.innerHTML=" ";cell.className="";};YAHOO.widget.Calendar.prototype.addRenderer=function(sDates,fnRender){var aDates=this._parseDates(sDates);for(var i=0;i<aDates.length;++i){var aDate=aDates[i];if(aDate.length==2){if(aDate[0]instanceof Array){this._addRenderer(YAHOO.widget.Calendar.RANGE,aDate,fnRender);}else{this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,aDate,fnRender);}}else if(aDate.length==3){this._addRenderer(YAHOO.widget.Calendar.DATE,aDate,fnRender);}}};YAHOO.widget.Calendar.prototype._addRenderer=function(type,aDates,fnRender){var add=[type,aDates,fnRender];this.renderStack.unshift(add);this._renderStack=this.renderStack.concat();};YAHOO.widget.Calendar.prototype.addMonthRenderer=function(month,fnRender){this._addRenderer(YAHOO.widget.Calendar.MONTH,[month],fnRender);};YAHOO.widget.Calendar.prototype.addWeekdayRenderer=function(weekday,fnRender){this._addRenderer(YAHOO.widget.Calendar.WEEKDAY,[weekday],fnRender);};YAHOO.widget.Calendar.prototype.clearAllBodyCellStyles=function(style){for(var c=0;c<this.cells.length;++c){YAHOO.util.Dom.removeClass(this.cells[c],style);}};YAHOO.widget.Calendar.prototype.setMonth=function(month){var current=this.cfg.getProperty("pagedate");current.setMonth(parseInt(month,10));this.cfg.setProperty("pagedate",current);};YAHOO.widget.Calendar.prototype.setYear=function(year){var current=this.cfg.getProperty("pagedate");current.setFullYear(parseInt(year,10));this.cfg.setProperty("pagedate",current);};YAHOO.widget.Calendar.prototype.getSelectedDates=function(){var returnDates=[];var selected=this.cfg.getProperty("selected");for(var d=0;d<selected.length;++d){var dateArray=selected[d];var date=new Date(dateArray[0],dateArray[1]-1,dateArray[2]);returnDates.push(date);} +returnDates.sort(function(a,b){return a-b;});return returnDates;};YAHOO.widget.Calendar.prototype.hide=function(){this.oDomContainer.style.display="none";};YAHOO.widget.Calendar.prototype.show=function(){this.oDomContainer.style.display="block";};YAHOO.widget.Calendar.prototype.browser=function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('opera')!=-1){return'opera';}else if(ua.indexOf('msie 7')!=-1){return'ie7';}else if(ua.indexOf('msie')!=-1){return'ie';}else if(ua.indexOf('safari')!=-1){return'safari';}else if(ua.indexOf('gecko')!=-1){return'gecko';}else{return false;}}();YAHOO.widget.Calendar.prototype.toString=function(){return"Calendar "+this.id;};YAHOO.widget.Calendar_Core=YAHOO.widget.Calendar;YAHOO.widget.Cal_Core=YAHOO.widget.Calendar;YAHOO.widget.CalendarGroup=function(id,containerId,config){if(arguments.length>0){this.init(id,containerId,config);}};YAHOO.widget.CalendarGroup.prototype.init=function(id,containerId,config){this.initEvents();this.initStyles();this.pages=[];this.id=id;this.containerId=containerId;this.oDomContainer=document.getElementById(containerId);YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();if(config){this.cfg.applyConfig(config,true);} +this.cfg.fireQueue();if(this.browser=="opera"){var fixWidth=function(){var startW=this.oDomContainer.offsetWidth;var w=0;for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];w+=cal.oDomContainer.offsetWidth;} +if(w>0){this.oDomContainer.style.width=w+"px";}};this.renderEvent.subscribe(fixWidth,this,true);}};YAHOO.widget.CalendarGroup.prototype.setupConfig=function(){this.cfg.addProperty("pages",{value:2,validator:this.cfg.checkNumber,handler:this.configPages});this.cfg.addProperty("pagedate",{value:new Date(),handler:this.configPageDate});this.cfg.addProperty("selected",{value:[],handler:this.delegateConfig});this.cfg.addProperty("title",{value:"",handler:this.configTitle});this.cfg.addProperty("close",{value:false,handler:this.configClose});this.cfg.addProperty("iframe",{value:true,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("mindate",{value:null,handler:this.delegateConfig});this.cfg.addProperty("maxdate",{value:null,handler:this.delegateConfig});this.cfg.addProperty("MULTI_SELECT",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("START_WEEKDAY",{value:0,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("SHOW_WEEKDAYS",{value:true,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_HEADER",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_FOOTER",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("HIDE_BLANK_WEEKS",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("NAV_ARROW_LEFT",{value:null,handler:this.delegateConfig});this.cfg.addProperty("NAV_ARROW_RIGHT",{value:null,handler:this.delegateConfig});this.cfg.addProperty("MONTHS_SHORT",{value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],handler:this.delegateConfig});this.cfg.addProperty("MONTHS_LONG",{value:["January","February","March","April","May","June","July","August","September","October","November","December"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_1CHAR",{value:["S","M","T","W","T","F","S"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_SHORT",{value:["Su","Mo","Tu","We","Th","Fr","Sa"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_MEDIUM",{value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_LONG",{value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],handler:this.delegateConfig});this.cfg.addProperty("LOCALE_MONTHS",{value:"long",handler:this.delegateConfig});this.cfg.addProperty("LOCALE_WEEKDAYS",{value:"short",handler:this.delegateConfig});this.cfg.addProperty("DATE_DELIMITER",{value:",",handler:this.delegateConfig});this.cfg.addProperty("DATE_FIELD_DELIMITER",{value:"/",handler:this.delegateConfig});this.cfg.addProperty("DATE_RANGE_DELIMITER",{value:"-",handler:this.delegateConfig});this.cfg.addProperty("MY_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MY_YEAR_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_DAY_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_DAY_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_YEAR_POSITION",{value:3,handler:this.delegateConfig,validator:this.cfg.checkNumber});};YAHOO.widget.CalendarGroup.prototype.initEvents=function(){var me=this;var sub=function(fn,obj,bOverride){for(var p=0;p<me.pages.length;++p){var cal=me.pages[p];cal[this.type+"Event"].subscribe(fn,obj,bOverride);}};var unsub=function(fn,obj){for(var p=0;p<me.pages.length;++p){var cal=me.pages[p];cal[this.type+"Event"].unsubscribe(fn,obj);}};this.beforeSelectEvent=new YAHOO.util.CustomEvent("beforeSelect");this.beforeSelectEvent.subscribe=sub;this.beforeSelectEvent.unsubscribe=unsub;this.selectEvent=new YAHOO.util.CustomEvent("select");this.selectEvent.subscribe=sub;this.selectEvent.unsubscribe=unsub;this.beforeDeselectEvent=new YAHOO.util.CustomEvent("beforeDeselect");this.beforeDeselectEvent.subscribe=sub;this.beforeDeselectEvent.unsubscribe=unsub;this.deselectEvent=new YAHOO.util.CustomEvent("deselect");this.deselectEvent.subscribe=sub;this.deselectEvent.unsubscribe=unsub;this.changePageEvent=new YAHOO.util.CustomEvent("changePage");this.changePageEvent.subscribe=sub;this.changePageEvent.unsubscribe=unsub;this.beforeRenderEvent=new YAHOO.util.CustomEvent("beforeRender");this.beforeRenderEvent.subscribe=sub;this.beforeRenderEvent.unsubscribe=unsub;this.renderEvent=new YAHOO.util.CustomEvent("render");this.renderEvent.subscribe=sub;this.renderEvent.unsubscribe=unsub;this.resetEvent=new YAHOO.util.CustomEvent("reset");this.resetEvent.subscribe=sub;this.resetEvent.unsubscribe=unsub;this.clearEvent=new YAHOO.util.CustomEvent("clear");this.clearEvent.subscribe=sub;this.clearEvent.unsubscribe=unsub;};YAHOO.widget.CalendarGroup.prototype.configPages=function(type,args,obj){var pageCount=args[0];for(var p=0;p<pageCount;++p){var calId=this.id+"_"+p;var calContainerId=this.containerId+"_"+p;var childConfig=this.cfg.getConfig();childConfig.close=false;childConfig.title=false;var cal=this.constructChild(calId,calContainerId,childConfig);var caldate=cal.cfg.getProperty("pagedate");this._setMonthOnDate(caldate,caldate.getMonth()+p);cal.cfg.setProperty("pagedate",caldate);YAHOO.util.Dom.removeClass(cal.oDomContainer,this.Style.CSS_SINGLE);YAHOO.util.Dom.addClass(cal.oDomContainer,"groupcal");if(p===0){YAHOO.util.Dom.addClass(cal.oDomContainer,"first");} +if(p==(pageCount-1)){YAHOO.util.Dom.addClass(cal.oDomContainer,"last");} +cal.parent=this;cal.index=p;this.pages[this.pages.length]=cal;}};YAHOO.widget.CalendarGroup.prototype.configPageDate=function(type,args,obj){var val=args[0];var firstPageDate;for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];if(p===0){firstPageDate=cal._parsePageDate(val);cal.cfg.setProperty("pagedate",firstPageDate);}else{var pageDate=new Date(firstPageDate);this._setMonthOnDate(pageDate,pageDate.getMonth()+p);cal.cfg.setProperty("pagedate",pageDate);}}};YAHOO.widget.CalendarGroup.prototype.delegateConfig=function(type,args,obj){var val=args[0];var cal;for(var p=0;p<this.pages.length;p++){cal=this.pages[p];cal.cfg.setProperty(type,val);}};YAHOO.widget.CalendarGroup.prototype.setChildFunction=function(fnName,fn){var pageCount=this.cfg.getProperty("pages");for(var p=0;p<pageCount;++p){this.pages[p][fnName]=fn;}};YAHOO.widget.CalendarGroup.prototype.callChildFunction=function(fnName,args){var pageCount=this.cfg.getProperty("pages");for(var p=0;p<pageCount;++p){var page=this.pages[p];if(page[fnName]){var fn=page[fnName];fn.call(page,args);}}};YAHOO.widget.CalendarGroup.prototype.constructChild=function(id,containerId,config){var container=document.getElementById(containerId);if(!container){container=document.createElement("div");container.id=containerId;this.oDomContainer.appendChild(container);} +return new YAHOO.widget.Calendar(id,containerId,config);};YAHOO.widget.CalendarGroup.prototype.setMonth=function(month){month=parseInt(month,10);var currYear;for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];var pageDate=cal.cfg.getProperty("pagedate");if(p===0){currYear=pageDate.getFullYear();}else{pageDate.setYear(currYear);} +this._setMonthOnDate(pageDate,month+p);cal.cfg.setProperty("pagedate",pageDate);}};YAHOO.widget.CalendarGroup.prototype.setYear=function(year){year=parseInt(year,10);for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];var pageDate=cal.cfg.getProperty("pageDate");if((pageDate.getMonth()+1)==1&&p>0){year+=1;} +cal.setYear(year);}};YAHOO.widget.CalendarGroup.prototype.render=function(){this.renderHeader();for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.render();} +this.renderFooter();};YAHOO.widget.CalendarGroup.prototype.select=function(date){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.select(date);} +return this.getSelectedDates();};YAHOO.widget.CalendarGroup.prototype.selectCell=function(cellIndex){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.selectCell(cellIndex);} +return this.getSelectedDates();};YAHOO.widget.CalendarGroup.prototype.deselect=function(date){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.deselect(date);} +return this.getSelectedDates();};YAHOO.widget.CalendarGroup.prototype.deselectAll=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.deselectAll();} +return this.getSelectedDates();};YAHOO.widget.CalendarGroup.prototype.deselectCell=function(cellIndex){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.deselectCell(cellIndex);} +return this.getSelectedDates();};YAHOO.widget.CalendarGroup.prototype.reset=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.reset();}};YAHOO.widget.CalendarGroup.prototype.clear=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.clear();}};YAHOO.widget.CalendarGroup.prototype.nextMonth=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.nextMonth();}};YAHOO.widget.CalendarGroup.prototype.previousMonth=function(){for(var p=this.pages.length-1;p>=0;--p){var cal=this.pages[p];cal.previousMonth();}};YAHOO.widget.CalendarGroup.prototype.nextYear=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.nextYear();}};YAHOO.widget.CalendarGroup.prototype.previousYear=function(){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.previousYear();}};YAHOO.widget.CalendarGroup.prototype.getSelectedDates=function(){var returnDates=[];var selected=this.cfg.getProperty("selected");for(var d=0;d<selected.length;++d){var dateArray=selected[d];var date=new Date(dateArray[0],dateArray[1]-1,dateArray[2]);returnDates.push(date);} +returnDates.sort(function(a,b){return a-b;});return returnDates;};YAHOO.widget.CalendarGroup.prototype.addRenderer=function(sDates,fnRender){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.addRenderer(sDates,fnRender);}};YAHOO.widget.CalendarGroup.prototype.addMonthRenderer=function(month,fnRender){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.addMonthRenderer(month,fnRender);}};YAHOO.widget.CalendarGroup.prototype.addWeekdayRenderer=function(weekday,fnRender){for(var p=0;p<this.pages.length;++p){var cal=this.pages[p];cal.addWeekdayRenderer(weekday,fnRender);}};YAHOO.widget.CalendarGroup.prototype.renderHeader=function(){};YAHOO.widget.CalendarGroup.prototype.renderFooter=function(){};YAHOO.widget.CalendarGroup.prototype.addMonths=function(count){this.callChildFunction("addMonths",count);};YAHOO.widget.CalendarGroup.prototype.subtractMonths=function(count){this.callChildFunction("subtractMonths",count);};YAHOO.widget.CalendarGroup.prototype.addYears=function(count){this.callChildFunction("addYears",count);};YAHOO.widget.CalendarGroup.prototype.subtractYears=function(count){this.callChildFunction("subtractYears",count);};YAHOO.widget.CalendarGroup.prototype._setMonthOnDate=function(date,iMonth){if(this.browser=="safari"&&(iMonth<0||iMonth>11)){var DM=YAHOO.widget.DateMath;var newDate=DM.add(date,DM.MONTH,iMonth-date.getMonth());date.setTime(newDate.getTime());}else{date.setMonth(iMonth);}};YAHOO.widget.CalendarGroup.CSS_CONTAINER="yui-calcontainer";YAHOO.widget.CalendarGroup.CSS_MULTI_UP="multi";YAHOO.widget.CalendarGroup.CSS_2UPTITLE="title";YAHOO.widget.CalendarGroup.CSS_2UPCLOSE="close-icon";YAHOO.augment(YAHOO.widget.CalendarGroup,YAHOO.widget.Calendar,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected","renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","hide","show","browser");YAHOO.widget.CalendarGroup.prototype.toString=function(){return"CalendarGroup "+this.id;};YAHOO.widget.CalGrp=YAHOO.widget.CalendarGroup;YAHOO.widget.Calendar2up=function(id,containerId,config){this.init(id,containerId,config);};YAHOO.extend(YAHOO.widget.Calendar2up,YAHOO.widget.CalendarGroup);YAHOO.widget.Cal2up=YAHOO.widget.Calendar2up;YAHOO.register("calendar",YAHOO.widget.Calendar,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar.js b/interface/ispconfig/interface/js/yui/calendar/calendar.js new file mode 100644 index 0000000..160614b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/calendar/calendar.js @@ -0,0 +1,4309 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility +* used for adding, subtracting, and comparing dates. +* @namespace YAHOO.widget +* @class DateMath +*/ +YAHOO.widget.DateMath = { + /** + * Constant field representing Day + * @property DAY + * @static + * @final + * @type String + */ + DAY : "D", + + /** + * Constant field representing Week + * @property WEEK + * @static + * @final + * @type String + */ + WEEK : "W", + + /** + * Constant field representing Year + * @property YEAR + * @static + * @final + * @type String + */ + YEAR : "Y", + + /** + * Constant field representing Month + * @property MONTH + * @static + * @final + * @type String + */ + MONTH : "M", + + /** + * Constant field representing one day, in milliseconds + * @property ONE_DAY_MS + * @static + * @final + * @type Number + */ + ONE_DAY_MS : 1000*60*60*24, + + /** + * Adds the specified amount of time to the this instance. + * @method add + * @param {Date} date The JavaScript Date object to perform addition on + * @param {String} field The field constant to be used for performing addition. + * @param {Number} amount The number of units (measured in the field constant) to add to the date. + * @return {Date} The resulting Date object + */ + add : function(date, field, amount) { + var d = new Date(date.getTime()); + switch (field) { + case this.MONTH: + var newMonth = date.getMonth() + amount; + var years = 0; + + + if (newMonth < 0) { + while (newMonth < 0) { + newMonth += 12; + years -= 1; + } + } else if (newMonth > 11) { + while (newMonth > 11) { + newMonth -= 12; + years += 1; + } + } + + d.setMonth(newMonth); + d.setFullYear(date.getFullYear() + years); + break; + case this.DAY: + d.setDate(date.getDate() + amount); + break; + case this.YEAR: + d.setFullYear(date.getFullYear() + amount); + break; + case this.WEEK: + d.setDate(date.getDate() + (amount * 7)); + break; + } + return d; + }, + + /** + * Subtracts the specified amount of time from the this instance. + * @method subtract + * @param {Date} date The JavaScript Date object to perform subtraction on + * @param {Number} field The this field constant to be used for performing subtraction. + * @param {Number} amount The number of units (measured in the field constant) to subtract from the date. + * @return {Date} The resulting Date object + */ + subtract : function(date, field, amount) { + return this.add(date, field, (amount*-1)); + }, + + /** + * Determines whether a given date is before another date on the calendar. + * @method before + * @param {Date} date The Date object to compare with the compare argument + * @param {Date} compareTo The Date object to use for the comparison + * @return {Boolean} true if the date occurs before the compared date; false if not. + */ + before : function(date, compareTo) { + var ms = compareTo.getTime(); + if (date.getTime() < ms) { + return true; + } else { + return false; + } + }, + + /** + * Determines whether a given date is after another date on the calendar. + * @method after + * @param {Date} date The Date object to compare with the compare argument + * @param {Date} compareTo The Date object to use for the comparison + * @return {Boolean} true if the date occurs after the compared date; false if not. + */ + after : function(date, compareTo) { + var ms = compareTo.getTime(); + if (date.getTime() > ms) { + return true; + } else { + return false; + } + }, + + /** + * Determines whether a given date is between two other dates on the calendar. + * @method between + * @param {Date} date The date to check for + * @param {Date} dateBegin The start of the range + * @param {Date} dateEnd The end of the range + * @return {Boolean} true if the date occurs between the compared dates; false if not. + */ + between : function(date, dateBegin, dateEnd) { + if (this.after(date, dateBegin) && this.before(date, dateEnd)) { + return true; + } else { + return false; + } + }, + + /** + * Retrieves a JavaScript Date object representing January 1 of any given year. + * @method getJan1 + * @param {Number} calendarYear The calendar year for which to retrieve January 1 + * @return {Date} January 1 of the calendar year specified. + */ + getJan1 : function(calendarYear) { + return new Date(calendarYear,0,1); + }, + + /** + * Calculates the number of days the specified date is from January 1 of the specified calendar year. + * Passing January 1 to this function would return an offset value of zero. + * @method getDayOffset + * @param {Date} date The JavaScript date for which to find the offset + * @param {Number} calendarYear The calendar year to use for determining the offset + * @return {Number} The number of days since January 1 of the given year + */ + getDayOffset : function(date, calendarYear) { + var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1. + + // Find the number of days the passed in date is away from the calendar year start + var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS); + return dayOffset; + }, + + /** + * Calculates the week number for the given date. This function assumes that week 1 is the + * week in which January 1 appears, regardless of whether the week consists of a full 7 days. + * The calendar year can be specified to help find what a the week number would be for a given + * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or + * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction + * easily. + * @method getWeekNumber + * @param {Date} date The JavaScript date for which to find the week number + * @param {Number} calendarYear OPTIONAL - The calendar year to use for determining the week number. Default is + * the calendar year of parameter "date". + * @param {Number} weekStartsOn OPTIONAL - The integer (0-6) representing which day a week begins on. Default is 0 (for Sunday). + * @return {Number} The week number of the given date. + */ + getWeekNumber : function(date, calendarYear) { + date = this.clearTime(date); + var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS)); + + var jan1 = new Date(nearestThurs.getFullYear(),0,1); + var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1; + + var weekNum = Math.ceil((dayOfYear)/ 7); + return weekNum; + }, + + /** + * Determines if a given week overlaps two different years. + * @method isYearOverlapWeek + * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week. + * @return {Boolean} true if the date overlaps two different years. + */ + isYearOverlapWeek : function(weekBeginDate) { + var overlaps = false; + var nextWeek = this.add(weekBeginDate, this.DAY, 6); + if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) { + overlaps = true; + } + return overlaps; + }, + + /** + * Determines if a given week overlaps two different months. + * @method isMonthOverlapWeek + * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week. + * @return {Boolean} true if the date overlaps two different months. + */ + isMonthOverlapWeek : function(weekBeginDate) { + var overlaps = false; + var nextWeek = this.add(weekBeginDate, this.DAY, 6); + if (nextWeek.getMonth() != weekBeginDate.getMonth()) { + overlaps = true; + } + return overlaps; + }, + + /** + * Gets the first day of a month containing a given date. + * @method findMonthStart + * @param {Date} date The JavaScript Date used to calculate the month start + * @return {Date} The JavaScript Date representing the first day of the month + */ + findMonthStart : function(date) { + var start = new Date(date.getFullYear(), date.getMonth(), 1); + return start; + }, + + /** + * Gets the last day of a month containing a given date. + * @method findMonthEnd + * @param {Date} date The JavaScript Date used to calculate the month end + * @return {Date} The JavaScript Date representing the last day of the month + */ + findMonthEnd : function(date) { + var start = this.findMonthStart(date); + var nextMonth = this.add(start, this.MONTH, 1); + var end = this.subtract(nextMonth, this.DAY, 1); + return end; + }, + + /** + * Clears the time fields from a given date, effectively setting the time to 12 noon. + * @method clearTime + * @param {Date} date The JavaScript Date for which the time fields will be cleared + * @return {Date} The JavaScript Date cleared of all time fields + */ + clearTime : function(date) { + date.setHours(12,0,0,0); + return date; + } +}; + +/** +* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month ("one-up") or two-month ("two-up") interface. Calendars are generated entirely via script and can be navigated without any page refreshes. +* @module calendar +* @title Calendar +* @namespace YAHOO.widget +* @requires yahoo,dom,event +*/ + +/** +* Calendar is the base class for the Calendar widget. In its most basic +* implementation, it has the ability to render a calendar widget on the page +* that can be manipulated to select a single date, move back and forth between +* months and years. +* <p>To construct the placeholder for the calendar widget, the code is as +* follows: +* <xmp> +* <div id="cal1Container"></div> +* </xmp> +* Note that the table can be replaced with any kind of element. +* </p> +* @namespace YAHOO.widget +* @class Calendar +* @constructor +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.Calendar = function(id, containerId, config) { + this.init(id, containerId, config); +}; + +/** +* The path to be used for images loaded for the Calendar +* @property YAHOO.widget.Calendar.IMG_ROOT +* @static +* @deprecated You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively +* @type String +*/ +YAHOO.widget.Calendar.IMG_ROOT = null; + +/** +* Type constant used for renderers to represent an individual date (M/D/Y) +* @property YAHOO.widget.Calendar.DATE +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.DATE = "D"; + +/** +* Type constant used for renderers to represent an individual date across any year (M/D) +* @property YAHOO.widget.Calendar.MONTH_DAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.MONTH_DAY = "MD"; + +/** +* Type constant used for renderers to represent a weekday +* @property YAHOO.widget.Calendar.WEEKDAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.WEEKDAY = "WD"; + +/** +* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y) +* @property YAHOO.widget.Calendar.RANGE +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.RANGE = "R"; + +/** +* Type constant used for renderers to represent a month across any year +* @property YAHOO.widget.Calendar.MONTH +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.MONTH = "M"; + +/** +* Constant that represents the total number of date cells that are displayed in a given month +* @property YAHOO.widget.Calendar.DISPLAY_DAYS +* @static +* @final +* @type Number +*/ +YAHOO.widget.Calendar.DISPLAY_DAYS = 42; + +/** +* Constant used for halting the execution of the remainder of the render stack +* @property YAHOO.widget.Calendar.STOP_RENDER +* @static +* @final +* @type String +*/ +YAHOO.widget.Calendar.STOP_RENDER = "S"; + +YAHOO.widget.Calendar.prototype = { + + /** + * The configuration object used to set up the calendars various locale and style options. + * @property Config + * @private + * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty. + * @type Object + */ + Config : null, + + /** + * The parent CalendarGroup, only to be set explicitly by the parent group + * @property parent + * @type CalendarGroup + */ + parent : null, + + /** + * The index of this item in the parent group + * @property index + * @type Number + */ + index : -1, + + /** + * The collection of calendar table cells + * @property cells + * @type HTMLTableCellElement[] + */ + cells : null, + + /** + * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D]. + * @property cellDates + * @type Array[](Number[]) + */ + cellDates : null, + + /** + * The id that uniquely identifies this calendar. This id should match the id of the placeholder element on the page. + * @property id + * @type String + */ + id : null, + + /** + * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered. + * @property oDomContainer + * @type HTMLElement + */ + oDomContainer : null, + + /** + * A Date object representing today's date. + * @property today + * @type Date + */ + today : null, + + /** + * The list of render functions, along with required parameters, used to render cells. + * @property renderStack + * @type Array[] + */ + renderStack : null, + + /** + * A copy of the initial render functions created before rendering. + * @property _renderStack + * @private + * @type Array + */ + _renderStack : null, + + /** + * The private list of initially selected dates. + * @property _selectedDates + * @private + * @type Array + */ + _selectedDates : null, + + /** + * A map of DOM event handlers to attach to cells associated with specific CSS class names + * @property domEventMap + * @type Object + */ + domEventMap : null +}; + + + +/** +* Initializes the Calendar widget. +* @method init +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.Calendar.prototype.init = function(id, containerId, config) { + this.initEvents(); + this.today = new Date(); + YAHOO.widget.DateMath.clearTime(this.today); + + this.id = id; + this.oDomContainer = document.getElementById(containerId); + + /** + * The Config object used to hold the configuration variables for the Calendar + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + /** + * The local object which contains the Calendar's options + * @property Options + * @type Object + */ + this.Options = {}; + + /** + * The local object which contains the Calendar's locale settings + * @property Locale + * @type Object + */ + this.Locale = {}; + + this.initStyles(); + + YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER); + YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE); + + this.cellDates = []; + this.cells = []; + this.renderStack = []; + this._renderStack = []; + + this.setupConfig(); + + if (config) { + this.cfg.applyConfig(config, true); + } + + this.cfg.fireQueue(); +}; + +/** +* Renders the built-in IFRAME shim for the IE6 and below +* @method configIframe +*/ +YAHOO.widget.Calendar.prototype.configIframe = function(type, args, obj) { + var useIframe = args[0]; + + if (YAHOO.util.Dom.inDocument(this.oDomContainer)) { + if (useIframe) { + var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position"); + + if (this.browser == "ie" && (pos == "absolute" || pos == "relative")) { + if (! YAHOO.util.Dom.inDocument(this.iframe)) { + this.iframe = document.createElement("iframe"); + this.iframe.src = "javascript:false;"; + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild); + } + } + } else { + if (this.iframe) { + if (this.iframe.parentNode) { + this.iframe.parentNode.removeChild(this.iframe); + } + this.iframe = null; + } + } + } +}; + +/** +* Default handler for the "title" property +* @method configTitle +*/ +YAHOO.widget.Calendar.prototype.configTitle = function(type, args, obj) { + var title = args[0]; + var close = this.cfg.getProperty("close"); + + var titleDiv; + + if (title && title !== "") { + titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div"); + titleDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE; + titleDiv.innerHTML = title; + this.oDomContainer.insertBefore(titleDiv, this.oDomContainer.firstChild); + YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle"); + } else { + titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null; + + if (titleDiv) { + YAHOO.util.Event.purgeElement(titleDiv); + this.oDomContainer.removeChild(titleDiv); + } + if (! close) { + YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle"); + } + } +}; + +/** +* Default handler for the "close" property +* @method configClose +*/ +YAHOO.widget.Calendar.prototype.configClose = function(type, args, obj) { + var close = args[0]; + var title = this.cfg.getProperty("title"); + + var DEPR_CLOSE_PATH = "us/my/bn/x_d.gif"; + + var linkClose; + + if (close === true) { + linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || document.createElement("a"); + linkClose.href = "javascript:void(null);"; + linkClose.className = "link-close"; + YAHOO.util.Event.addListener(linkClose, "click", this.hide, this, true); + + if (YAHOO.widget.Calendar.IMG_ROOT !== null) { + var imgClose = document.createElement("img"); + imgClose.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH; + imgClose.className = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE; + linkClose.appendChild(imgClose); + } else { + linkClose.innerHTML = '<span class="' + YAHOO.widget.CalendarGroup.CSS_2UPCLOSE + ' ' + this.Style.CSS_CLOSE + '"></span>'; + } + + this.oDomContainer.appendChild(linkClose); + YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle"); + } else { + linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null; + if (linkClose) { + YAHOO.util.Event.purgeElement(linkClose); + this.oDomContainer.removeChild(linkClose); + } + if (! title || title === "") { + YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle"); + } + } +}; + +/** +* Initializes Calendar's built-in CustomEvents +* @method initEvents +*/ +YAHOO.widget.Calendar.prototype.initEvents = function() { + + /** + * Fired before a selection is made + * @event beforeSelectEvent + */ + this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect"); + + /** + * Fired when a selection is made + * @event selectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.selectEvent = new YAHOO.util.CustomEvent("select"); + + /** + * Fired before a selection is made + * @event beforeDeselectEvent + */ + this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect"); + + /** + * Fired when a selection is made + * @event deselectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.deselectEvent = new YAHOO.util.CustomEvent("deselect"); + + /** + * Fired when the Calendar page is changed + * @event changePageEvent + */ + this.changePageEvent = new YAHOO.util.CustomEvent("changePage"); + + /** + * Fired before the Calendar is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * Fired when the Calendar is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * Fired when the Calendar is reset + * @event resetEvent + */ + this.resetEvent = new YAHOO.util.CustomEvent("reset"); + + /** + * Fired when the Calendar is cleared + * @event clearEvent + */ + this.clearEvent = new YAHOO.util.CustomEvent("clear"); + + this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true); + this.selectEvent.subscribe(this.onSelect, this, true); + this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true); + this.deselectEvent.subscribe(this.onDeselect, this, true); + this.changePageEvent.subscribe(this.onChangePage, this, true); + this.renderEvent.subscribe(this.onRender, this, true); + this.resetEvent.subscribe(this.onReset, this, true); + this.clearEvent.subscribe(this.onClear, this, true); +}; + + +/** +* The default event function that is attached to a date link within a calendar cell +* when the calendar is rendered. +* @method doSelectCell +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doSelectCell = function(e, cal) { + var target = YAHOO.util.Event.getTarget(e); + + var cell,index,d,date; + + while (target.tagName.toLowerCase() != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + cell = target; + + if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) { + index = cell.id.split("cell")[1]; + d = cal.cellDates[index]; + date = new Date(d[0],d[1]-1,d[2]); + + var link; + + if (cal.Options.MULTI_SELECT) { + link = cell.getElementsByTagName("a")[0]; + if (link) { + link.blur(); + } + + var cellDate = cal.cellDates[index]; + var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate); + + if (cellDateIndex > -1) { + cal.deselectCell(index); + } else { + cal.selectCell(index); + } + + } else { + link = cell.getElementsByTagName("a")[0]; + if (link) { + link.blur(); + } + cal.selectCell(index); + } + } +}; + +/** +* The event that is executed when the user hovers over a cell +* @method doCellMouseOver +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doCellMouseOver = function(e, cal) { + var target; + if (e) { + target = YAHOO.util.Event.getTarget(e); + } else { + target = this; + } + + while (target.tagName.toLowerCase() != "td") { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + YAHOO.util.Dom.addClass(target, cal.Style.CSS_CELL_HOVER); + } +}; + +/** +* The event that is executed when the user moves the mouse out of a cell +* @method doCellMouseOut +* @param {DOMEvent} e The event +* @param {Calendar} cal A reference to the calendar passed by the Event utility +*/ +YAHOO.widget.Calendar.prototype.doCellMouseOut = function(e, cal) { + var target; + if (e) { + target = YAHOO.util.Event.getTarget(e); + } else { + target = this; + } + + while (target.tagName.toLowerCase() != "td") { + target = target.parentNode; + if (target.tagName.toLowerCase() == "html") { + return; + } + } + + if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) { + YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER); + } +}; + +YAHOO.widget.Calendar.prototype.setupConfig = function() { + + /** + * The month/year representing the current visible Calendar date (mm/yyyy) + * @config pagedate + * @type String + * @default today's date + */ + this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } ); + + /** + * The date or range of dates representing the current Calendar selection + * @config selected + * @type String + * @default [] + */ + this.cfg.addProperty("selected", { value:[], handler:this.configSelected } ); + + /** + * The title to display above the Calendar's month header + * @config title + * @type String + * @default "" + */ + this.cfg.addProperty("title", { value:"", handler:this.configTitle } ); + + /** + * Whether or not a close button should be displayed for this Calendar + * @config close + * @type Boolean + * @default false + */ + this.cfg.addProperty("close", { value:false, handler:this.configClose } ); + + /** + * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below. + * @config iframe + * @type Boolean + * @default true + */ + this.cfg.addProperty("iframe", { value:true, handler:this.configIframe, validator:this.cfg.checkBoolean } ); + + /** + * The minimum selectable date in the current Calendar (mm/dd/yyyy) + * @config mindate + * @type String + * @default null + */ + this.cfg.addProperty("mindate", { value:null, handler:this.configMinDate } ); + + /** + * The maximum selectable date in the current Calendar (mm/dd/yyyy) + * @config maxdate + * @type String + * @default null + */ + this.cfg.addProperty("maxdate", { value:null, handler:this.configMaxDate } ); + + + // Options properties + + /** + * True if the Calendar should allow multiple selections. False by default. + * @config MULTI_SELECT + * @type Boolean + * @default false + */ + this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * The weekday the week begins on. Default is 0 (Sunday). + * @config START_WEEKDAY + * @type number + * @default 0 + */ + this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.configOptions, validator:this.cfg.checkNumber } ); + + /** + * True if the Calendar should show weekday labels. True by default. + * @config SHOW_WEEKDAYS + * @type Boolean + * @default true + */ + this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row headers. False by default. + * @config SHOW_WEEK_HEADER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row footers. False by default. + * @config SHOW_WEEK_FOOTER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should suppress weeks that are not a part of the current month. False by default. + * @config HIDE_BLANK_WEEKS + * @type Boolean + * @default false + */ + this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } ); + + /** + * The image that should be used for the left navigation arrow. + * @config NAV_ARROW_LEFT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.configOptions } ); + + /** + * The image that should be used for the right navigation arrow. + * @config NAV_ARROW_RIGHT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.configOptions } ); + + // Locale properties + + /** + * The short month labels for the current locale. + * @config MONTHS_SHORT + * @type String[] + * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + */ + this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.configLocale } ); + + /** + * The long month labels for the current locale. + * @config MONTHS_LONG + * @type String[] + * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" + */ + this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.configLocale } ); + + /** + * The 1-character weekday labels for the current locale. + * @config WEEKDAYS_1CHAR + * @type String[] + * @default ["S", "M", "T", "W", "T", "F", "S"] + */ + this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.configLocale } ); + + /** + * The short weekday labels for the current locale. + * @config WEEKDAYS_SHORT + * @type String[] + * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] + */ + this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.configLocale } ); + + /** + * The medium weekday labels for the current locale. + * @config WEEKDAYS_MEDIUM + * @type String[] + * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] + */ + this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.configLocale } ); + + /** + * The long weekday labels for the current locale. + * @config WEEKDAYS_LONG + * @type String[] + * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] + */ + this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.configLocale } ); + + /** + * Refreshes the locale values used to build the Calendar. + * @method refreshLocale + * @private + */ + var refreshLocale = function() { + this.cfg.refireEvent("LOCALE_MONTHS"); + this.cfg.refireEvent("LOCALE_WEEKDAYS"); + }; + + this.cfg.subscribeToConfigEvent("START_WEEKDAY", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("MONTHS_SHORT", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("MONTHS_LONG", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM", refreshLocale, this, true); + this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG", refreshLocale, this, true); + + /** + * The setting that determines which length of month labels should be used. Possible values are "short" and "long". + * @config LOCALE_MONTHS + * @type String + * @default "long" + */ + this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.configLocaleValues } ); + + /** + * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long". + * @config LOCALE_WEEKDAYS + * @type String + * @default "short" + */ + this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.configLocaleValues } ); + + /** + * The value used to delimit individual dates in a date string passed to various Calendar functions. + * @config DATE_DELIMITER + * @type String + * @default "," + */ + this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.configLocale } ); + + /** + * The value used to delimit date fields in a date string passed to various Calendar functions. + * @config DATE_FIELD_DELIMITER + * @type String + * @default "/" + */ + this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.configLocale } ); + + /** + * The value used to delimit date ranges in a date string passed to various Calendar functions. + * @config DATE_RANGE_DELIMITER + * @type String + * @default "-" + */ + this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.configLocale } ); + + /** + * The position of the month in a month/year date string + * @config MY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/year date string + * @config MY_YEAR_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day date string + * @config MD_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/year date string + * @config MD_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day/year date string + * @config MDY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/day/year date string + * @config MDY_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/day/year date string + * @config MDY_YEAR_POSITION + * @type Number + * @default 3 + */ + this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.configLocale, validator:this.cfg.checkNumber } ); +}; + +/** +* The default handler for the "pagedate" property +* @method configPageDate +*/ +YAHOO.widget.Calendar.prototype.configPageDate = function(type, args, obj) { + this.cfg.setProperty("pagedate", this._parsePageDate(args[0]), true); +}; + +/** +* The default handler for the "mindate" property +* @method configMinDate +*/ +YAHOO.widget.Calendar.prototype.configMinDate = function(type, args, obj) { + var val = args[0]; + if (typeof val == 'string') { + val = this._parseDate(val); + this.cfg.setProperty("mindate", new Date(val[0],(val[1]-1),val[2])); + } +}; + +/** +* The default handler for the "maxdate" property +* @method configMaxDate +*/ +YAHOO.widget.Calendar.prototype.configMaxDate = function(type, args, obj) { + var val = args[0]; + if (typeof val == 'string') { + val = this._parseDate(val); + this.cfg.setProperty("maxdate", new Date(val[0],(val[1]-1),val[2])); + } +}; + +/** +* The default handler for the "selected" property +* @method configSelected +*/ +YAHOO.widget.Calendar.prototype.configSelected = function(type, args, obj) { + var selected = args[0]; + + if (selected) { + if (typeof selected == 'string') { + this.cfg.setProperty("selected", this._parseDates(selected), true); + } + } + if (! this._selectedDates) { + this._selectedDates = this.cfg.getProperty("selected"); + } +}; + +/** +* The default handler for all configuration options properties +* @method configOptions +*/ +YAHOO.widget.Calendar.prototype.configOptions = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + this.Options[type] = val; +}; + +/** +* The default handler for all configuration locale properties +* @method configLocale +*/ +YAHOO.widget.Calendar.prototype.configLocale = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + this.Locale[type] = val; + + this.cfg.refireEvent("LOCALE_MONTHS"); + this.cfg.refireEvent("LOCALE_WEEKDAYS"); + +}; + +/** +* The default handler for all configuration locale field length properties +* @method configLocaleValues +*/ +YAHOO.widget.Calendar.prototype.configLocaleValues = function(type, args, obj) { + type = type.toUpperCase(); + var val = args[0]; + + switch (type) { + case "LOCALE_MONTHS": + switch (val) { + case "short": + this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_SHORT").concat(); + break; + case "long": + this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_LONG").concat(); + break; + } + break; + case "LOCALE_WEEKDAYS": + switch (val) { + case "1char": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_1CHAR").concat(); + break; + case "short": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_SHORT").concat(); + break; + case "medium": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_MEDIUM").concat(); + break; + case "long": + this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_LONG").concat(); + break; + } + + var START_WEEKDAY = this.cfg.getProperty("START_WEEKDAY"); + + if (START_WEEKDAY > 0) { + for (var w=0;w<START_WEEKDAY;++w) { + this.Locale.LOCALE_WEEKDAYS.push(this.Locale.LOCALE_WEEKDAYS.shift()); + } + } + break; + } +}; + +/** +* Defines the style constants for the Calendar +* @method initStyles +*/ +YAHOO.widget.Calendar.prototype.initStyles = function() { + + /** + * Collection of Style constants for the Calendar + * @property Style + */ + this.Style = { + /** + * @property Style.CSS_ROW_HEADER + */ + CSS_ROW_HEADER: "calrowhead", + /** + * @property Style.CSS_ROW_FOOTER + */ + CSS_ROW_FOOTER: "calrowfoot", + /** + * @property Style.CSS_CELL + */ + CSS_CELL : "calcell", + /** + * @property Style.CSS_CELL_SELECTED + */ + CSS_CELL_SELECTED : "selected", + /** + * @property Style.CSS_CELL_SELECTABLE + */ + CSS_CELL_SELECTABLE : "selectable", + /** + * @property Style.CSS_CELL_RESTRICTED + */ + CSS_CELL_RESTRICTED : "restricted", + /** + * @property Style.CSS_CELL_TODAY + */ + CSS_CELL_TODAY : "today", + /** + * @property Style.CSS_CELL_OOM + */ + CSS_CELL_OOM : "oom", + /** + * @property Style.CSS_CELL_OOB + */ + CSS_CELL_OOB : "previous", + /** + * @property Style.CSS_HEADER + */ + CSS_HEADER : "calheader", + /** + * @property Style.CSS_HEADER_TEXT + */ + CSS_HEADER_TEXT : "calhead", + /** + * @property Style.CSS_BODY + */ + CSS_BODY : "calbody", + /** + * @property Style.CSS_WEEKDAY_CELL + */ + CSS_WEEKDAY_CELL : "calweekdaycell", + /** + * @property Style.CSS_WEEKDAY_ROW + */ + CSS_WEEKDAY_ROW : "calweekdayrow", + /** + * @property Style.CSS_FOOTER + */ + CSS_FOOTER : "calfoot", + /** + * @property Style.CSS_CALENDAR + */ + CSS_CALENDAR : "yui-calendar", + /** + * @property Style.CSS_SINGLE + */ + CSS_SINGLE : "single", + /** + * @property Style.CSS_CONTAINER + */ + CSS_CONTAINER : "yui-calcontainer", + /** + * @property Style.CSS_NAV_LEFT + */ + CSS_NAV_LEFT : "calnavleft", + /** + * @property Style.CSS_NAV_RIGHT + */ + CSS_NAV_RIGHT : "calnavright", + /** + * @property Style.CSS_CLOSE + */ + CSS_CLOSE : "calclose", + /** + * @property Style.CSS_CELL_TOP + */ + CSS_CELL_TOP : "calcelltop", + /** + * @property Style.CSS_CELL_LEFT + */ + CSS_CELL_LEFT : "calcellleft", + /** + * @property Style.CSS_CELL_RIGHT + */ + CSS_CELL_RIGHT : "calcellright", + /** + * @property Style.CSS_CELL_BOTTOM + */ + CSS_CELL_BOTTOM : "calcellbottom", + /** + * @property Style.CSS_CELL_HOVER + */ + CSS_CELL_HOVER : "calcellhover", + /** + * @property Style.CSS_CELL_HIGHLIGHT1 + */ + CSS_CELL_HIGHLIGHT1 : "highlight1", + /** + * @property Style.CSS_CELL_HIGHLIGHT2 + */ + CSS_CELL_HIGHLIGHT2 : "highlight2", + /** + * @property Style.CSS_CELL_HIGHLIGHT3 + */ + CSS_CELL_HIGHLIGHT3 : "highlight3", + /** + * @property Style.CSS_CELL_HIGHLIGHT4 + */ + CSS_CELL_HIGHLIGHT4 : "highlight4" + }; +}; + +/** +* Builds the date label that will be displayed in the calendar header or +* footer, depending on configuration. +* @method buildMonthLabel +* @return {String} The formatted calendar month label +*/ +YAHOO.widget.Calendar.prototype.buildMonthLabel = function() { + var text = this.Locale.LOCALE_MONTHS[this.cfg.getProperty("pagedate").getMonth()] + " " + this.cfg.getProperty("pagedate").getFullYear(); + return text; +}; + +/** +* Builds the date digit that will be displayed in calendar cells +* @method buildDayLabel +* @param {Date} workingDate The current working date +* @return {String} The formatted day label +*/ +YAHOO.widget.Calendar.prototype.buildDayLabel = function(workingDate) { + var day = workingDate.getDate(); + return day; +}; + +/** +* Renders the calendar header. +* @method renderHeader +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderHeader = function(html) { + var colSpan = 7; + + var DEPR_NAV_LEFT = "us/tr/callt.gif"; + var DEPR_NAV_RIGHT = "us/tr/calrt.gif"; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { + colSpan += 1; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { + colSpan += 1; + } + + html[html.length] = "<thead>"; + html[html.length] = "<tr>"; + html[html.length] = '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">'; + html[html.length] = '<div class="' + this.Style.CSS_HEADER + '">'; + + var renderLeft, renderRight = false; + + if (this.parent) { + if (this.index === 0) { + renderLeft = true; + } + if (this.index == (this.parent.cfg.getProperty("pages") -1)) { + renderRight = true; + } + } else { + renderLeft = true; + renderRight = true; + } + + var cal = this.parent || this; + + if (renderLeft) { + var leftArrow = this.cfg.getProperty("NAV_ARROW_LEFT"); + // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value + if (leftArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) { + leftArrow = YAHOO.widget.Calendar.IMG_ROOT + DEPR_NAV_LEFT; + } + var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"'; + html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' > </a>'; + } + + html[html.length] = this.buildMonthLabel(); + + if (renderRight) { + var rightArrow = this.cfg.getProperty("NAV_ARROW_RIGHT"); + if (rightArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) { + rightArrow = YAHOO.widget.Calendar.IMG_ROOT + DEPR_NAV_RIGHT; + } + var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"'; + html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' > </a>'; + } + + html[html.length] = '</div>'; + html[html.length] = '</th>'; + html[html.length] = '</tr>'; + + if (this.cfg.getProperty("SHOW_WEEKDAYS")) { + html = this.buildWeekdays(html); + } + + html[html.length] = '</thead>'; + + return html; +}; + +/** +* Renders the Calendar's weekday headers. +* @method buildWeekdays +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.buildWeekdays = function(html) { + + html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">'; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { + html[html.length] = '<th> </th>'; + } + + for(var i=0;i<this.Locale.LOCALE_WEEKDAYS.length;++i) { + html[html.length] = '<th class="calweekdaycell">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>'; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { + html[html.length] = '<th> </th>'; + } + + html[html.length] = '</tr>'; + + return html; +}; + +/** +* Renders the calendar body. +* @method renderBody +* @param {Date} workingDate The current working Date being used for the render process +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderBody = function(workingDate, html) { + + var startDay = this.cfg.getProperty("START_WEEKDAY"); + + this.preMonthDays = workingDate.getDay(); + if (startDay > 0) { + this.preMonthDays -= startDay; + } + if (this.preMonthDays < 0) { + this.preMonthDays += 7; + } + + this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate(); + this.postMonthDays = YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays; + + workingDate = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays); + + var useDate,weekNum,weekClass; + useDate = this.cfg.getProperty("pagedate"); + + html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">'; + + var i = 0; + + var tempDiv = document.createElement("div"); + var cell = document.createElement("td"); + tempDiv.appendChild(cell); + + var jan1 = new Date(useDate.getFullYear(),0,1); + + var cal = this.parent || this; + + for (var r=0;r<6;r++) { + + weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), startDay); + + weekClass = "w" + weekNum; + + if (r !== 0 && this.isDateOOM(workingDate) && this.cfg.getProperty("HIDE_BLANK_WEEKS") === true) { + break; + } else { + + html[html.length] = '<tr class="' + weekClass + '">'; + + if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { html = this.renderRowHeader(weekNum, html); } + + for (var d=0;d<7;d++){ // Render actual days + + var cellRenderers = []; + + this.clearElement(cell); + + YAHOO.util.Dom.addClass(cell, "calcell"); + + cell.id = this.id + "_cell" + i; + + cell.innerHTML = i; + + var renderer = null; + + if (workingDate.getFullYear() == this.today.getFullYear() && + workingDate.getMonth() == this.today.getMonth() && + workingDate.getDate() == this.today.getDate()) { + cellRenderers[cellRenderers.length]=cal.renderCellStyleToday; + } + + this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]; // Add this date to cellDates + + if (this.isDateOOM(workingDate)) { + cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth; + } else { + + YAHOO.util.Dom.addClass(cell, "wd" + workingDate.getDay()); + YAHOO.util.Dom.addClass(cell, "d" + workingDate.getDate()); + + for (var s=0;s<this.renderStack.length;++s) { + + var rArray = this.renderStack[s]; + var type = rArray[0]; + + var month; + var day; + var year; + + switch (type) { + case YAHOO.widget.Calendar.DATE: + month = rArray[1][1]; + day = rArray[1][2]; + year = rArray[1][0]; + + if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) { + renderer = rArray[2]; + this.renderStack.splice(s,1); + } + break; + case YAHOO.widget.Calendar.MONTH_DAY: + month = rArray[1][0]; + day = rArray[1][1]; + + if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) { + renderer = rArray[2]; + this.renderStack.splice(s,1); + } + break; + case YAHOO.widget.Calendar.RANGE: + var date1 = rArray[1][0]; + var date2 = rArray[1][1]; + + var d1month = date1[1]; + var d1day = date1[2]; + var d1year = date1[0]; + + var d1 = new Date(d1year, d1month-1, d1day); + + var d2month = date2[1]; + var d2day = date2[2]; + var d2year = date2[0]; + + var d2 = new Date(d2year, d2month-1, d2day); + + if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) { + renderer = rArray[2]; + + if (workingDate.getTime()==d2.getTime()) { + this.renderStack.splice(s,1); + } + } + break; + case YAHOO.widget.Calendar.WEEKDAY: + + var weekday = rArray[1][0]; + if (workingDate.getDay()+1 == weekday) { + renderer = rArray[2]; + } + break; + case YAHOO.widget.Calendar.MONTH: + + month = rArray[1][0]; + if (workingDate.getMonth()+1 == month) { + renderer = rArray[2]; + } + break; + } + + if (renderer) { + cellRenderers[cellRenderers.length]=renderer; + } + } + + } + + if (this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]) > -1) { + cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; + } + + var mindate = this.cfg.getProperty("mindate"); + var maxdate = this.cfg.getProperty("maxdate"); + + if (mindate) { + mindate = YAHOO.widget.DateMath.clearTime(mindate); + } + if (maxdate) { + maxdate = YAHOO.widget.DateMath.clearTime(maxdate); + } + + if ( + (mindate && (workingDate.getTime() < mindate.getTime())) || + (maxdate && (workingDate.getTime() > maxdate.getTime())) + ) { + cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate; + } else { + cellRenderers[cellRenderers.length]=cal.styleCellDefault; + cellRenderers[cellRenderers.length]=cal.renderCellDefault; + } + + + + for (var x=0;x<cellRenderers.length;++x) { + var ren = cellRenderers[x]; + if (ren.call((this.parent || this),workingDate,cell) == YAHOO.widget.Calendar.STOP_RENDER) { + break; + } + } + + workingDate.setTime(workingDate.getTime() + YAHOO.widget.DateMath.ONE_DAY_MS); + + if (i >= 0 && i <= 6) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP); + } + if ((i % 7) === 0) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT); + } + if (((i+1) % 7) === 0) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RIGHT); + } + + var postDays = this.postMonthDays; + if (postDays >= 7 && this.cfg.getProperty("HIDE_BLANK_WEEKS")) { + var blankWeeks = Math.floor(postDays/7); + for (var p=0;p<blankWeeks;++p) { + postDays -= 7; + } + } + + if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM); + } + + html[html.length] = tempDiv.innerHTML; + + i++; + } + + if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { html = this.renderRowFooter(weekNum, html); } + + html[html.length] = '</tr>'; + } + } + + html[html.length] = '</tbody>'; + + return html; +}; + +/** +* Renders the calendar footer. In the default implementation, there is +* no footer. +* @method renderFooter +* @param {Array} html The current working HTML array +* @return {Array} The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderFooter = function(html) { return html; }; + +/** +* Renders the calendar after it has been configured. The render() method has a specific call chain that will execute +* when the method is called: renderHeader, renderBody, renderFooter. +* Refer to the documentation for those methods for information on +* individual render tasks. +* @method render +*/ +YAHOO.widget.Calendar.prototype.render = function() { + this.beforeRenderEvent.fire(); + + // Find starting day of the current month + var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate")); + + this.resetRenderers(); + this.cellDates.length = 0; + + YAHOO.util.Event.purgeElement(this.oDomContainer, true); + + var html = []; + + html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + workingDate.getFullYear() + '" id="' + this.id + '">'; + html = this.renderHeader(html); + html = this.renderBody(workingDate, html); + html = this.renderFooter(html); + html[html.length] = '</table>'; + + this.oDomContainer.innerHTML = html.join("\n"); + + this.applyListeners(); + this.cells = this.oDomContainer.getElementsByTagName("td"); + + this.cfg.refireEvent("title"); + this.cfg.refireEvent("close"); + this.cfg.refireEvent("iframe"); + + this.renderEvent.fire(); +}; + +/** +* Applies the Calendar's DOM listeners to applicable elements. +* @method applyListeners +*/ +YAHOO.widget.Calendar.prototype.applyListeners = function() { + + var root = this.oDomContainer; + var cal = this.parent || this; + + var linkLeft, linkRight; + + linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, "a", root); + linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, "a", root); + + if (linkLeft) { + this.linkLeft = linkLeft[0]; + YAHOO.util.Event.addListener(this.linkLeft, "mousedown", cal.previousMonth, cal, true); + } + + if (linkRight) { + this.linkRight = linkRight[0]; + YAHOO.util.Event.addListener(this.linkRight, "mousedown", cal.nextMonth, cal, true); + } + + if (this.domEventMap) { + var el,elements; + for (var cls in this.domEventMap) { + if (YAHOO.lang.hasOwnProperty(this.domEventMap, cls)) { + var items = this.domEventMap[cls]; + + if (! (items instanceof Array)) { + items = [items]; + } + + for (var i=0;i<items.length;i++) { + var item = items[i]; + elements = YAHOO.util.Dom.getElementsByClassName(cls, item.tag, this.oDomContainer); + + for (var c=0;c<elements.length;c++) { + el = elements[c]; + YAHOO.util.Event.addListener(el, item.event, item.handler, item.scope, item.correct ); + } + } + } + } + } + + YAHOO.util.Event.addListener(this.oDomContainer, "click", this.doSelectCell, this); + YAHOO.util.Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this); + YAHOO.util.Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this); +}; + +/** +* Retrieves the Date object for the specified Calendar cell +* @method getDateByCellId +* @param {String} id The id of the cell +* @return {Date} The Date object for the specified Calendar cell +*/ +YAHOO.widget.Calendar.prototype.getDateByCellId = function(id) { + var date = this.getDateFieldsByCellId(id); + return new Date(date[0],date[1]-1,date[2]); +}; + +/** +* Retrieves the Date object for the specified Calendar cell +* @method getDateFieldsByCellId +* @param {String} id The id of the cell +* @return {Array} The array of Date fields for the specified Calendar cell +*/ +YAHOO.widget.Calendar.prototype.getDateFieldsByCellId = function(id) { + id = id.toLowerCase().split("_cell")[1]; + id = parseInt(id, 10); + return this.cellDates[id]; +}; + +// BEGIN BUILT-IN TABLE CELL RENDERERS + +/** +* Renders a cell that falls before the minimum date or after the maximum date. +* widget class. +* @method renderOutOfBoundsDate +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderOutOfBoundsDate = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOB); + cell.innerHTML = workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +/** +* Renders the row header for a week. +* @method renderRowHeader +* @param {Number} weekNum The week number of the current row +* @param {Array} cell The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderRowHeader = function(weekNum, html) { + html[html.length] = '<th class="calrowhead">' + weekNum + '</th>'; + return html; +}; + +/** +* Renders the row footer for a week. +* @method renderRowFooter +* @param {Number} weekNum The week number of the current row +* @param {Array} cell The current working HTML array +*/ +YAHOO.widget.Calendar.prototype.renderRowFooter = function(weekNum, html) { + html[html.length] = '<th class="calrowfoot">' + weekNum + '</th>'; + return html; +}; + +/** +* Renders a single standard calendar cell in the calendar widget table. +* All logic for determining how a standard default cell will be rendered is +* encapsulated in this method, and must be accounted for when extending the +* widget class. +* @method renderCellDefault +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellDefault = function(workingDate, cell) { + cell.innerHTML = '<a href="javascript:void(null);" >' + this.buildDayLabel(workingDate) + "</a>"; +}; + +/** +* Styles a selectable cell. +* @method styleCellDefault +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.styleCellDefault = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE); +}; + + +/** +* Renders a single standard calendar cell using the CSS hightlight1 style +* @method renderCellStyleHighlight1 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight2 style +* @method renderCellStyleHighlight2 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight3 style +* @method renderCellStyleHighlight3 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3); +}; + +/** +* Renders a single standard calendar cell using the CSS hightlight4 style +* @method renderCellStyleHighlight4 +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4 = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4); +}; + +/** +* Applies the default style used for rendering today's date to the current calendar cell +* @method renderCellStyleToday +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleToday = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TODAY); +}; + +/** +* Applies the default style used for rendering selected dates to the current calendar cell +* @method renderCellStyleSelected +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderCellStyleSelected = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTED); +}; + +/** +* Applies the default style used for rendering dates that are not a part of the current +* month (preceding or trailing the cells for the current month) +* @method renderCellNotThisMonth +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderCellNotThisMonth = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM); + cell.innerHTML=workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +/** +* Renders the current calendar cell as a non-selectable "black-out" date using the default +* restricted style. +* @method renderBodyCellRestricted +* @param {Date} workingDate The current working Date object being used to generate the calendar +* @param {HTMLTableCellElement} cell The current working cell in the calendar +* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering +* should not be terminated +*/ +YAHOO.widget.Calendar.prototype.renderBodyCellRestricted = function(workingDate, cell) { + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL); + YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED); + cell.innerHTML=workingDate.getDate(); + return YAHOO.widget.Calendar.STOP_RENDER; +}; + +// END BUILT-IN TABLE CELL RENDERERS + +// BEGIN MONTH NAVIGATION METHODS + +/** +* Adds the designated number of months to the current calendar month, and sets the current +* calendar page date to the new month. +* @method addMonths +* @param {Number} count The number of months to add to the current calendar +*/ +YAHOO.widget.Calendar.prototype.addMonths = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Subtracts the designated number of months from the current calendar month, and sets the current +* calendar page date to the new month. +* @method subtractMonths +* @param {Number} count The number of months to subtract from the current calendar +*/ +YAHOO.widget.Calendar.prototype.subtractMonths = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Adds the designated number of years to the current calendar, and sets the current +* calendar page date to the new month. +* @method addYears +* @param {Number} count The number of years to add to the current calendar +*/ +YAHOO.widget.Calendar.prototype.addYears = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Subtcats the designated number of years from the current calendar, and sets the current +* calendar page date to the new month. +* @method subtractYears +* @param {Number} count The number of years to subtract from the current calendar +*/ +YAHOO.widget.Calendar.prototype.subtractYears = function(count) { + this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count)); + this.resetRenderers(); + this.changePageEvent.fire(); +}; + +/** +* Navigates to the next month page in the calendar widget. +* @method nextMonth +*/ +YAHOO.widget.Calendar.prototype.nextMonth = function() { + this.addMonths(1); +}; + +/** +* Navigates to the previous month page in the calendar widget. +* @method previousMonth +*/ +YAHOO.widget.Calendar.prototype.previousMonth = function() { + this.subtractMonths(1); +}; + +/** +* Navigates to the next year in the currently selected month in the calendar widget. +* @method nextYear +*/ +YAHOO.widget.Calendar.prototype.nextYear = function() { + this.addYears(1); +}; + +/** +* Navigates to the previous year in the currently selected month in the calendar widget. +* @method previousYear +*/ +YAHOO.widget.Calendar.prototype.previousYear = function() { + this.subtractYears(1); +}; + +// END MONTH NAVIGATION METHODS + +// BEGIN SELECTION METHODS + +/** +* Resets the calendar widget to the originally selected month and year, and +* sets the calendar to the initial selection(s). +* @method reset +*/ +YAHOO.widget.Calendar.prototype.reset = function() { + this.cfg.resetProperty("selected"); + this.cfg.resetProperty("pagedate"); + this.resetEvent.fire(); +}; + +/** +* Clears the selected dates in the current calendar widget and sets the calendar +* to the current month and year. +* @method clear +*/ +YAHOO.widget.Calendar.prototype.clear = function() { + this.cfg.setProperty("selected", []); + this.cfg.setProperty("pagedate", new Date(this.today.getTime())); + this.clearEvent.fire(); +}; + +/** +* Selects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once selection has completed, render must be +* called for the changes to be reflected visually. +* @method select +* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.select = function(date) { + this.beforeSelectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + var aToBeSelected = this._toFieldArray(date); + + for (var a=0;a<aToBeSelected.length;++a) { + var toSelect = aToBeSelected[a]; // For each date item in the list of dates we're trying to select + if (this._indexOfSelectedFieldArray(toSelect) == -1) { // not already selected? + selected[selected.length]=toSelect; + } + } + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.selectEvent.fire(aToBeSelected); + + return this.getSelectedDates(); +}; + +/** +* Selects a date on the current calendar by referencing the index of the cell that should be selected. +* This method is used to easily select a single cell (usually with a mouse click) without having to do +* a full render. The selected style is applied to the cell directly. +* @method selectCell +* @param {Number} cellIndex The index of the cell to select in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.selectCell = function(cellIndex) { + this.beforeSelectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var cell = this.cells[cellIndex]; + var cellDate = this.cellDates[cellIndex]; + + var dCellDate = this._toDate(cellDate); + + var selectDate = cellDate.concat(); + + selected[selected.length] = selectDate; + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.renderCellStyleSelected(dCellDate,cell); + + this.selectEvent.fire([selectDate]); + + this.doCellMouseOut.call(cell, null, this); + + return this.getSelectedDates(); +}; + +/** +* Deselects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once deselection has completed, render must be +* called for the changes to be reflected visually. +* @method deselect +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.deselect = function(date) { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var aToBeSelected = this._toFieldArray(date); + + for (var a=0;a<aToBeSelected.length;++a) { + var toSelect = aToBeSelected[a]; // For each date item in the list of dates we're trying to select + var index = this._indexOfSelectedFieldArray(toSelect); + + if (index != -1) { + selected.splice(index,1); + } + } + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.deselectEvent.fire(aToBeSelected); + + return this.getSelectedDates(); +}; + +/** +* Deselects a date on the current calendar by referencing the index of the cell that should be deselected. +* This method is used to easily deselect a single cell (usually with a mouse click) without having to do +* a full render. The selected style is removed from the cell directly. +* @method deselectCell +* @param {Number} cellIndex The index of the cell to deselect in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.Calendar.prototype.deselectCell = function(i) { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + + var cell = this.cells[i]; + var cellDate = this.cellDates[i]; + var cellDateIndex = this._indexOfSelectedFieldArray(cellDate); + + var dCellDate = this._toDate(cellDate); + + var selectDate = cellDate.concat(); + + if (cellDateIndex > -1) { + if (this.cfg.getProperty("pagedate").getMonth() == dCellDate.getMonth() && + this.cfg.getProperty("pagedate").getFullYear() == dCellDate.getFullYear()) { + YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED); + } + + selected.splice(cellDateIndex, 1); + } + + + if (this.parent) { + this.parent.cfg.setProperty("selected", selected); + } else { + this.cfg.setProperty("selected", selected); + } + + this.deselectEvent.fire(selectDate); + return this.getSelectedDates(); +}; + +/** +* Deselects all dates on the current calendar. +* @method deselectAll +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +* Assuming that this function executes properly, the return value should be an empty array. +* However, the empty array is returned for the sake of being able to check the selection status +* of the calendar. +*/ +YAHOO.widget.Calendar.prototype.deselectAll = function() { + this.beforeDeselectEvent.fire(); + + var selected = this.cfg.getProperty("selected"); + var count = selected.length; + var sel = selected.concat(); + + if (this.parent) { + this.parent.cfg.setProperty("selected", []); + } else { + this.cfg.setProperty("selected", []); + } + + if (count > 0) { + this.deselectEvent.fire(sel); + } + + return this.getSelectedDates(); +}; + +// END SELECTION METHODS + +// BEGIN TYPE CONVERSION METHODS + +/** +* Converts a date (either a JavaScript Date object, or a date string) to the internal data structure +* used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]]. +* @method _toFieldArray +* @private +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Array[](Number[])} Array of date field arrays +*/ +YAHOO.widget.Calendar.prototype._toFieldArray = function(date) { + var returnDate = []; + + if (date instanceof Date) { + returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]]; + } else if (typeof date == 'string') { + returnDate = this._parseDates(date); + } else if (date instanceof Array) { + for (var i=0;i<date.length;++i) { + var d = date[i]; + returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()]; + } + } + + return returnDate; +}; + +/** +* Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. +* @method _toDate +* @private +* @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date. +* @return {Date} JavaScript Date object representing the date field array +*/ +YAHOO.widget.Calendar.prototype._toDate = function(dateFieldArray) { + if (dateFieldArray instanceof Date) { + return dateFieldArray; + } else { + return new Date(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]); + } +}; + +// END TYPE CONVERSION METHODS + +// BEGIN UTILITY METHODS + +/** +* Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. +* @method _fieldArraysAreEqual +* @private +* @param {Number[]} array1 The first date field array to compare +* @param {Number[]} array2 The first date field array to compare +* @return {Boolean} The boolean that represents the equality of the two arrays +*/ +YAHOO.widget.Calendar.prototype._fieldArraysAreEqual = function(array1, array2) { + var match = false; + + if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) { + match=true; + } + + return match; +}; + +/** +* Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates. +* @method _indexOfSelectedFieldArray +* @private +* @param {Number[]} find The date field array to search for +* @return {Number} The index of the date field array within the collection of selected dates. +* -1 will be returned if the date is not found. +*/ +YAHOO.widget.Calendar.prototype._indexOfSelectedFieldArray = function(find) { + var selected = -1; + var seldates = this.cfg.getProperty("selected"); + + for (var s=0;s<seldates.length;++s) { + var sArray = seldates[s]; + if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) { + selected = s; + break; + } + } + + return selected; +}; + +/** +* Determines whether a given date is OOM (out of month). +* @method isDateOOM +* @param {Date} date The JavaScript Date object for which to check the OOM status +* @return {Boolean} true if the date is OOM +*/ +YAHOO.widget.Calendar.prototype.isDateOOM = function(date) { + var isOOM = false; + if (date.getMonth() != this.cfg.getProperty("pagedate").getMonth()) { + isOOM = true; + } + return isOOM; +}; + +/** + * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object + * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object + * @method _parsePageDate + * @private + * @param {Date|String} date Pagedate value which needs to be parsed + * @return {Date} The Date object representing the pagedate + */ +YAHOO.widget.Calendar.prototype._parsePageDate = function(date) { + var parsedDate; + + if (date) { + if (date instanceof Date) { + parsedDate = YAHOO.widget.DateMath.findMonthStart(date); + } else { + var month, year, aMonthYear; + aMonthYear = date.split(this.cfg.getProperty("DATE_FIELD_DELIMITER")); + month = parseInt(aMonthYear[this.cfg.getProperty("MY_MONTH_POSITION")-1], 10)-1; + year = parseInt(aMonthYear[this.cfg.getProperty("MY_YEAR_POSITION")-1], 10); + + parsedDate = new Date(year, month, 1); + } + } else { + parsedDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1); + } + return parsedDate; +}; + +// END UTILITY METHODS + +// BEGIN EVENT HANDLERS + +/** +* Event executed before a date is selected in the calendar widget. +* @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent. +*/ +YAHOO.widget.Calendar.prototype.onBeforeSelect = function() { + if (this.cfg.getProperty("MULTI_SELECT") === false) { + if (this.parent) { + this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED); + this.parent.deselectAll(); + } else { + this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED); + this.deselectAll(); + } + } +}; + +/** +* Event executed when a date is selected in the calendar widget. +* @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ] +* @deprecated Event handlers for this event should be susbcribed to selectEvent. +*/ +YAHOO.widget.Calendar.prototype.onSelect = function(selected) { }; + +/** +* Event executed before a date is deselected in the calendar widget. +* @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent. +*/ +YAHOO.widget.Calendar.prototype.onBeforeDeselect = function() { }; + +/** +* Event executed when a date is deselected in the calendar widget. +* @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ] +* @deprecated Event handlers for this event should be susbcribed to deselectEvent. +*/ +YAHOO.widget.Calendar.prototype.onDeselect = function(deselected) { }; + +/** +* Event executed when the user navigates to a different calendar page. +* @deprecated Event handlers for this event should be susbcribed to changePageEvent. +*/ +YAHOO.widget.Calendar.prototype.onChangePage = function() { + this.render(); +}; + +/** +* Event executed when the calendar widget is rendered. +* @deprecated Event handlers for this event should be susbcribed to renderEvent. +*/ +YAHOO.widget.Calendar.prototype.onRender = function() { }; + +/** +* Event executed when the calendar widget is reset to its original state. +* @deprecated Event handlers for this event should be susbcribed to resetEvemt. +*/ +YAHOO.widget.Calendar.prototype.onReset = function() { this.render(); }; + +/** +* Event executed when the calendar widget is completely cleared to the current month with no selections. +* @deprecated Event handlers for this event should be susbcribed to clearEvent. +*/ +YAHOO.widget.Calendar.prototype.onClear = function() { this.render(); }; + +/** +* Validates the calendar widget. This method has no default implementation +* and must be extended by subclassing the widget. +* @return Should return true if the widget validates, and false if +* it doesn't. +* @type Boolean +*/ +YAHOO.widget.Calendar.prototype.validate = function() { return true; }; + +// END EVENT HANDLERS + +// BEGIN DATE PARSE METHODS + +/** +* Converts a date string to a date field array +* @private +* @param {String} sDate Date string. Valid formats are mm/dd and mm/dd/yyyy. +* @return A date field array representing the string passed to the method +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseDate = function(sDate) { + var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER); + var rArray; + + if (aDate.length == 2) { + rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]]; + rArray.type = YAHOO.widget.Calendar.MONTH_DAY; + } else { + rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1],aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]]; + rArray.type = YAHOO.widget.Calendar.DATE; + } + + for (var i=0;i<rArray.length;i++) { + rArray[i] = parseInt(rArray[i], 10); + } + + return rArray; +}; + +/** +* Converts a multi or single-date string to an array of date field arrays +* @private +* @param {String} sDates Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy +* @return An array of date field arrays +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseDates = function(sDates) { + var aReturn = []; + + var aDates = sDates.split(this.Locale.DATE_DELIMITER); + + for (var d=0;d<aDates.length;++d) { + var sDate = aDates[d]; + + if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) { + // This is a range + var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER); + + var dateStart = this._parseDate(aRange[0]); + var dateEnd = this._parseDate(aRange[1]); + + var fullRange = this._parseRange(dateStart, dateEnd); + aReturn = aReturn.concat(fullRange); + } else { + // This is not a range + var aDate = this._parseDate(sDate); + aReturn.push(aDate); + } + } + return aReturn; +}; + +/** +* Converts a date range to the full list of included dates +* @private +* @param {Number[]} startDate Date field array representing the first date in the range +* @param {Number[]} endDate Date field array representing the last date in the range +* @return An array of date field arrays +* @type Array[](Number[]) +*/ +YAHOO.widget.Calendar.prototype._parseRange = function(startDate, endDate) { + var dStart = new Date(startDate[0],startDate[1]-1,startDate[2]); + var dCurrent = YAHOO.widget.DateMath.add(new Date(startDate[0],startDate[1]-1,startDate[2]),YAHOO.widget.DateMath.DAY,1); + var dEnd = new Date(endDate[0], endDate[1]-1, endDate[2]); + + var results = []; + results.push(startDate); + while (dCurrent.getTime() <= dEnd.getTime()) { + results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]); + dCurrent = YAHOO.widget.DateMath.add(dCurrent,YAHOO.widget.DateMath.DAY,1); + } + return results; +}; + +// END DATE PARSE METHODS + +// BEGIN RENDERER METHODS + +/** +* Resets the render stack of the current calendar to its original pre-render value. +*/ +YAHOO.widget.Calendar.prototype.resetRenderers = function() { + this.renderStack = this._renderStack.concat(); +}; + +/** +* Clears the inner HTML, CSS class and style information from the specified cell. +* @method clearElement +* @param {HTMLTableCellElement} The cell to clear +*/ +YAHOO.widget.Calendar.prototype.clearElement = function(cell) { + cell.innerHTML = " "; + cell.className=""; +}; + +/** +* Adds a renderer to the render stack. The function reference passed to this method will be executed +* when a date cell matches the conditions specified in the date string for this renderer. +* @method addRenderer +* @param {String} sDates A date string to associate with the specified renderer. Valid formats +* include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005) +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addRenderer = function(sDates, fnRender) { + var aDates = this._parseDates(sDates); + for (var i=0;i<aDates.length;++i) { + var aDate = aDates[i]; + + if (aDate.length == 2) { // this is either a range or a month/day combo + if (aDate[0] instanceof Array) { // this is a range + this._addRenderer(YAHOO.widget.Calendar.RANGE,aDate,fnRender); + } else { // this is a month/day combo + this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,aDate,fnRender); + } + } else if (aDate.length == 3) { + this._addRenderer(YAHOO.widget.Calendar.DATE,aDate,fnRender); + } + } +}; + +/** +* The private method used for adding cell renderers to the local render stack. +* This method is called by other methods that set the renderer type prior to the method call. +* @method _addRenderer +* @private +* @param {String} type The type string that indicates the type of date renderer being added. +* Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY, +* YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH +* @param {Array} aDates An array of dates used to construct the renderer. The format varies based +* on the renderer type +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype._addRenderer = function(type, aDates, fnRender) { + var add = [type,aDates,fnRender]; + this.renderStack.unshift(add); + this._renderStack = this.renderStack.concat(); +}; + +/** +* Adds a month to the render stack. The function reference passed to this method will be executed +* when a date cell matches the month passed to this method. +* @method addMonthRenderer +* @param {Number} month The month (1-12) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addMonthRenderer = function(month, fnRender) { + this._addRenderer(YAHOO.widget.Calendar.MONTH,[month],fnRender); +}; + +/** +* Adds a weekday to the render stack. The function reference passed to this method will be executed +* when a date cell matches the weekday passed to this method. +* @method addWeekdayRenderer +* @param {Number} weekday The weekday (0-6) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.Calendar.prototype.addWeekdayRenderer = function(weekday, fnRender) { + this._addRenderer(YAHOO.widget.Calendar.WEEKDAY,[weekday],fnRender); +}; + +// END RENDERER METHODS + +// BEGIN CSS METHODS + +/** +* Removes all styles from all body cells in the current calendar table. +* @method clearAllBodyCellStyles +* @param {style} The CSS class name to remove from all calendar body cells +*/ +YAHOO.widget.Calendar.prototype.clearAllBodyCellStyles = function(style) { + for (var c=0;c<this.cells.length;++c) { + YAHOO.util.Dom.removeClass(this.cells[c],style); + } +}; + +// END CSS METHODS + +// BEGIN GETTER/SETTER METHODS +/** +* Sets the calendar's month explicitly +* @method setMonth +* @param {Number} month The numeric month, from 0 (January) to 11 (December) +*/ +YAHOO.widget.Calendar.prototype.setMonth = function(month) { + var current = this.cfg.getProperty("pagedate"); + current.setMonth(parseInt(month, 10)); + this.cfg.setProperty("pagedate", current); +}; + +/** +* Sets the calendar's year explicitly. +* @method setYear +* @param {Number} year The numeric 4-digit year +*/ +YAHOO.widget.Calendar.prototype.setYear = function(year) { + var current = this.cfg.getProperty("pagedate"); + current.setFullYear(parseInt(year, 10)); + this.cfg.setProperty("pagedate", current); +}; + +/** +* Gets the list of currently selected dates from the calendar. +* @method getSelectedDates +* @return {Date[]} An array of currently selected JavaScript Date objects. +*/ +YAHOO.widget.Calendar.prototype.getSelectedDates = function() { + var returnDates = []; + var selected = this.cfg.getProperty("selected"); + + for (var d=0;d<selected.length;++d) { + var dateArray = selected[d]; + + var date = new Date(dateArray[0],dateArray[1]-1,dateArray[2]); + returnDates.push(date); + } + + returnDates.sort( function(a,b) { return a-b; } ); + return returnDates; +}; + +/// END GETTER/SETTER METHODS /// + +/** +* Hides the Calendar's outer container from view. +* @method hide +*/ +YAHOO.widget.Calendar.prototype.hide = function() { + this.oDomContainer.style.display = "none"; +}; + +/** +* Shows the Calendar's outer container. +* @method show +*/ +YAHOO.widget.Calendar.prototype.show = function() { + this.oDomContainer.style.display = "block"; +}; + +/** +* Returns a string representing the current browser. +* @property browser +* @type String +*/ +YAHOO.widget.Calendar.prototype.browser = function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(); +/** +* Returns a string representation of the object. +* @method toString +* @return {String} A string representation of the Calendar object. +*/ +YAHOO.widget.Calendar.prototype.toString = function() { + return "Calendar " + this.id; +}; + +/** +* @namespace YAHOO.widget +* @class Calendar_Core +* @extends YAHOO.widget.Calendar +* @deprecated The old Calendar_Core class is no longer necessary. +*/ +YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar; + +YAHOO.widget.Cal_Core = YAHOO.widget.Calendar; + +/** +* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates +* the ability to have multi-page calendar views that share a single dataset and are +* dependent on each other. +* +* The calendar group instance will refer to each of its elements using a 0-based index. +* For example, to construct the placeholder for a calendar group widget with id "cal1" and +* containerId of "cal1Container", the markup would be as follows: +* <xmp> +* <div id="cal1Container_0"></div> +* <div id="cal1Container_1"></div> +* </xmp> +* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers. +* @namespace YAHOO.widget +* @class CalendarGroup +* @constructor +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.CalendarGroup = function(id, containerId, config) { + if (arguments.length > 0) { + this.init(id, containerId, config); + } +}; + +/** +* Initializes the calendar group. All subclasses must call this method in order for the +* group to be initialized properly. +* @method init +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +*/ +YAHOO.widget.CalendarGroup.prototype.init = function(id, containerId, config) { + this.initEvents(); + this.initStyles(); + + /** + * The collection of Calendar pages contained within the CalendarGroup + * @property pages + * @type YAHOO.widget.Calendar[] + */ + this.pages = []; + + /** + * The unique id associated with the CalendarGroup + * @property id + * @type String + */ + this.id = id; + + /** + * The unique id associated with the CalendarGroup container + * @property containerId + * @type String + */ + this.containerId = containerId; + + /** + * The outer containing element for the CalendarGroup + * @property oDomContainer + * @type HTMLElement + */ + this.oDomContainer = document.getElementById(containerId); + + YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER); + YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_MULTI_UP); + + /** + * The Config object used to hold the configuration variables for the CalendarGroup + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + /** + * The local object which contains the CalendarGroup's options + * @property Options + * @type Object + */ + this.Options = {}; + + /** + * The local object which contains the CalendarGroup's locale settings + * @property Locale + * @type Object + */ + this.Locale = {}; + + this.setupConfig(); + + if (config) { + this.cfg.applyConfig(config, true); + } + + this.cfg.fireQueue(); + + // OPERA HACK FOR MISWRAPPED FLOATS + if (this.browser == "opera"){ + var fixWidth = function() { + var startW = this.oDomContainer.offsetWidth; + var w = 0; + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + w += cal.oDomContainer.offsetWidth; + } + if (w > 0) { + this.oDomContainer.style.width = w + "px"; + } + }; + this.renderEvent.subscribe(fixWidth,this,true); + } +}; + + +YAHOO.widget.CalendarGroup.prototype.setupConfig = function() { + /** + * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments. + * @config pages + * @type Number + * @default 2 + */ + this.cfg.addProperty("pages", { value:2, validator:this.cfg.checkNumber, handler:this.configPages } ); + + /** + * The month/year representing the current visible Calendar date (mm/yyyy) + * @config pagedate + * @type String + * @default today's date + */ + this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } ); + + /** + * The date or range of dates representing the current Calendar selection + * @config selected + * @type String + * @default [] + */ + this.cfg.addProperty("selected", { value:[], handler:this.delegateConfig } ); + + /** + * The title to display above the CalendarGroup's month header + * @config title + * @type String + * @default "" + */ + this.cfg.addProperty("title", { value:"", handler:this.configTitle } ); + + /** + * Whether or not a close button should be displayed for this CalendarGroup + * @config close + * @type Boolean + * @default false + */ + this.cfg.addProperty("close", { value:false, handler:this.configClose } ); + + /** + * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below. + * @config iframe + * @type Boolean + * @default true + */ + this.cfg.addProperty("iframe", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The minimum selectable date in the current Calendar (mm/dd/yyyy) + * @config mindate + * @type String + * @default null + */ + this.cfg.addProperty("mindate", { value:null, handler:this.delegateConfig } ); + + /** + * The maximum selectable date in the current Calendar (mm/dd/yyyy) + * @config maxdate + * @type String + * @default null + */ + this.cfg.addProperty("maxdate", { value:null, handler:this.delegateConfig } ); + + // Options properties + + /** + * True if the Calendar should allow multiple selections. False by default. + * @config MULTI_SELECT + * @type Boolean + * @default false + */ + this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The weekday the week begins on. Default is 0 (Sunday). + * @config START_WEEKDAY + * @type number + * @default 0 + */ + this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * True if the Calendar should show weekday labels. True by default. + * @config SHOW_WEEKDAYS + * @type Boolean + * @default true + */ + this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row headers. False by default. + * @config SHOW_WEEK_HEADER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should show week row footers. False by default. + * @config SHOW_WEEK_FOOTER + * @type Boolean + * @default false + */ + this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * True if the Calendar should suppress weeks that are not a part of the current month. False by default. + * @config HIDE_BLANK_WEEKS + * @type Boolean + * @default false + */ + this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } ); + + /** + * The image that should be used for the left navigation arrow. + * @config NAV_ARROW_LEFT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.delegateConfig } ); + + /** + * The image that should be used for the right navigation arrow. + * @config NAV_ARROW_RIGHT + * @type String + * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright" + * @default null + */ + this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.delegateConfig } ); + + // Locale properties + + /** + * The short month labels for the current locale. + * @config MONTHS_SHORT + * @type String[] + * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + */ + this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.delegateConfig } ); + + /** + * The long month labels for the current locale. + * @config MONTHS_LONG + * @type String[] + * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" + */ + this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.delegateConfig } ); + + /** + * The 1-character weekday labels for the current locale. + * @config WEEKDAYS_1CHAR + * @type String[] + * @default ["S", "M", "T", "W", "T", "F", "S"] + */ + this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.delegateConfig } ); + + /** + * The short weekday labels for the current locale. + * @config WEEKDAYS_SHORT + * @type String[] + * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] + */ + this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.delegateConfig } ); + + /** + * The medium weekday labels for the current locale. + * @config WEEKDAYS_MEDIUM + * @type String[] + * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] + */ + this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.delegateConfig } ); + + /** + * The long weekday labels for the current locale. + * @config WEEKDAYS_LONG + * @type String[] + * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] + */ + this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.delegateConfig } ); + + /** + * The setting that determines which length of month labels should be used. Possible values are "short" and "long". + * @config LOCALE_MONTHS + * @type String + * @default "long" + */ + this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.delegateConfig } ); + + /** + * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long". + * @config LOCALE_WEEKDAYS + * @type String + * @default "short" + */ + this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.delegateConfig } ); + + /** + * The value used to delimit individual dates in a date string passed to various Calendar functions. + * @config DATE_DELIMITER + * @type String + * @default "," + */ + this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.delegateConfig } ); + + /** + * The value used to delimit date fields in a date string passed to various Calendar functions. + * @config DATE_FIELD_DELIMITER + * @type String + * @default "/" + */ + this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.delegateConfig } ); + + /** + * The value used to delimit date ranges in a date string passed to various Calendar functions. + * @config DATE_RANGE_DELIMITER + * @type String + * @default "-" + */ + this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.delegateConfig } ); + + /** + * The position of the month in a month/year date string + * @config MY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/year date string + * @config MY_YEAR_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day date string + * @config MD_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/year date string + * @config MD_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the month in a month/day/year date string + * @config MDY_MONTH_POSITION + * @type Number + * @default 1 + */ + this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the day in a month/day/year date string + * @config MDY_DAY_POSITION + * @type Number + * @default 2 + */ + this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + + /** + * The position of the year in a month/day/year date string + * @config MDY_YEAR_POSITION + * @type Number + * @default 3 + */ + this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.delegateConfig, validator:this.cfg.checkNumber } ); + +}; + +/** +* Initializes CalendarGroup's built-in CustomEvents +* @method initEvents +*/ +YAHOO.widget.CalendarGroup.prototype.initEvents = function() { + var me = this; + + /** + * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents + * @method sub + * @private + * @param {Function} fn The function to subscribe to this CustomEvent + * @param {Object} obj The CustomEvent's scope object + * @param {Boolean} bOverride Whether or not to apply scope correction + */ + var sub = function(fn, obj, bOverride) { + for (var p=0;p<me.pages.length;++p) { + var cal = me.pages[p]; + cal[this.type + "Event"].subscribe(fn, obj, bOverride); + } + }; + + /** + * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents + * @method unsub + * @private + * @param {Function} fn The function to subscribe to this CustomEvent + * @param {Object} obj The CustomEvent's scope object + */ + var unsub = function(fn, obj) { + for (var p=0;p<me.pages.length;++p) { + var cal = me.pages[p]; + cal[this.type + "Event"].unsubscribe(fn, obj); + } + }; + + /** + * Fired before a selection is made + * @event beforeSelectEvent + */ + this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect"); + this.beforeSelectEvent.subscribe = sub; this.beforeSelectEvent.unsubscribe = unsub; + + /** + * Fired when a selection is made + * @event selectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.selectEvent = new YAHOO.util.CustomEvent("select"); + this.selectEvent.subscribe = sub; this.selectEvent.unsubscribe = unsub; + + /** + * Fired before a selection is made + * @event beforeDeselectEvent + */ + this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect"); + this.beforeDeselectEvent.subscribe = sub; this.beforeDeselectEvent.unsubscribe = unsub; + + /** + * Fired when a selection is made + * @event deselectEvent + * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD]. + */ + this.deselectEvent = new YAHOO.util.CustomEvent("deselect"); + this.deselectEvent.subscribe = sub; this.deselectEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar page is changed + * @event changePageEvent + */ + this.changePageEvent = new YAHOO.util.CustomEvent("changePage"); + this.changePageEvent.subscribe = sub; this.changePageEvent.unsubscribe = unsub; + + /** + * Fired before the Calendar is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + this.beforeRenderEvent.subscribe = sub; this.beforeRenderEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + this.renderEvent.subscribe = sub; this.renderEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is reset + * @event resetEvent + */ + this.resetEvent = new YAHOO.util.CustomEvent("reset"); + this.resetEvent.subscribe = sub; this.resetEvent.unsubscribe = unsub; + + /** + * Fired when the Calendar is cleared + * @event clearEvent + */ + this.clearEvent = new YAHOO.util.CustomEvent("clear"); + this.clearEvent.subscribe = sub; this.clearEvent.unsubscribe = unsub; + +}; + +/** +* The default Config handler for the "pages" property +* @method configPages +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.configPages = function(type, args, obj) { + var pageCount = args[0]; + + for (var p=0;p<pageCount;++p) { + var calId = this.id + "_" + p; + var calContainerId = this.containerId + "_" + p; + + var childConfig = this.cfg.getConfig(); + childConfig.close = false; + childConfig.title = false; + + var cal = this.constructChild(calId, calContainerId, childConfig); + var caldate = cal.cfg.getProperty("pagedate"); + this._setMonthOnDate(caldate, caldate.getMonth() + p); + cal.cfg.setProperty("pagedate", caldate); + + YAHOO.util.Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE); + YAHOO.util.Dom.addClass(cal.oDomContainer, "groupcal"); + + if (p===0) { + YAHOO.util.Dom.addClass(cal.oDomContainer, "first"); + } + + if (p==(pageCount-1)) { + YAHOO.util.Dom.addClass(cal.oDomContainer, "last"); + } + + cal.parent = this; + cal.index = p; + + this.pages[this.pages.length] = cal; + } +}; + +/** +* The default Config handler for the "pagedate" property +* @method configPageDate +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.configPageDate = function(type, args, obj) { + var val = args[0]; + var firstPageDate; + + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + if (p === 0) { + firstPageDate = cal._parsePageDate(val); + cal.cfg.setProperty("pagedate", firstPageDate); + } else { + var pageDate = new Date(firstPageDate); + this._setMonthOnDate(pageDate, pageDate.getMonth() + p); + cal.cfg.setProperty("pagedate", pageDate); + } + } +}; + +/** +* Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children +* @method delegateConfig +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.CalendarGroup.prototype.delegateConfig = function(type, args, obj) { + var val = args[0]; + var cal; + + for (var p=0;p<this.pages.length;p++) { + cal = this.pages[p]; + cal.cfg.setProperty(type, val); + } +}; + + +/** +* Adds a function to all child Calendars within this CalendarGroup. +* @method setChildFunction +* @param {String} fnName The name of the function +* @param {Function} fn The function to apply to each Calendar page object +*/ +YAHOO.widget.CalendarGroup.prototype.setChildFunction = function(fnName, fn) { + var pageCount = this.cfg.getProperty("pages"); + + for (var p=0;p<pageCount;++p) { + this.pages[p][fnName] = fn; + } +}; + +/** +* Calls a function within all child Calendars within this CalendarGroup. +* @method callChildFunction +* @param {String} fnName The name of the function +* @param {Array} args The arguments to pass to the function +*/ +YAHOO.widget.CalendarGroup.prototype.callChildFunction = function(fnName, args) { + var pageCount = this.cfg.getProperty("pages"); + + for (var p=0;p<pageCount;++p) { + var page = this.pages[p]; + if (page[fnName]) { + var fn = page[fnName]; + fn.call(page, args); + } + } +}; + +/** +* Constructs a child calendar. This method can be overridden if a subclassed version of the default +* calendar is to be used. +* @method constructChild +* @param {String} id The id of the table element that will represent the calendar widget +* @param {String} containerId The id of the container div element that will wrap the calendar table +* @param {Object} config The configuration object containing the Calendar's arguments +* @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed +*/ +YAHOO.widget.CalendarGroup.prototype.constructChild = function(id,containerId,config) { + var container = document.getElementById(containerId); + if (! container) { + container = document.createElement("div"); + container.id = containerId; + this.oDomContainer.appendChild(container); + } + return new YAHOO.widget.Calendar(id,containerId,config); +}; + + +/** +* Sets the calendar group's month explicitly. This month will be set into the first +* page of the multi-page calendar, and all other months will be iterated appropriately. +* @method setMonth +* @param {Number} month The numeric month, from 0 (January) to 11 (December) +*/ +YAHOO.widget.CalendarGroup.prototype.setMonth = function(month) { + month = parseInt(month, 10); + var currYear; + + for (var p=0; p<this.pages.length; ++p) { + var cal = this.pages[p]; + var pageDate = cal.cfg.getProperty("pagedate"); + if (p === 0) { + currYear = pageDate.getFullYear(); + } else { + pageDate.setYear(currYear); + } + this._setMonthOnDate(pageDate, month+p); + cal.cfg.setProperty("pagedate", pageDate); + } +}; + +/** +* Sets the calendar group's year explicitly. This year will be set into the first +* page of the multi-page calendar, and all other months will be iterated appropriately. +* @method setYear +* @param {Number} year The numeric 4-digit year +*/ +YAHOO.widget.CalendarGroup.prototype.setYear = function(year) { + year = parseInt(year, 10); + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + var pageDate = cal.cfg.getProperty("pageDate"); + + if ((pageDate.getMonth()+1) == 1 && p>0) { + year+=1; + } + cal.setYear(year); + } +}; +/** +* Calls the render function of all child calendars within the group. +* @method render +*/ +YAHOO.widget.CalendarGroup.prototype.render = function() { + this.renderHeader(); + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.render(); + } + this.renderFooter(); +}; + +/** +* Selects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once selection has completed, render must be +* called for the changes to be reflected visually. +* @method select +* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.select = function(date) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.select(date); + } + return this.getSelectedDates(); +}; + +/** +* Selects a date on the current calendar by referencing the index of the cell that should be selected. +* This method is used to easily select a single cell (usually with a mouse click) without having to do +* a full render. The selected style is applied to the cell directly. +* @method selectCell +* @param {Number} cellIndex The index of the cell to select in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.selectCell = function(cellIndex) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.selectCell(cellIndex); + } + return this.getSelectedDates(); +}; + +/** +* Deselects a date or a collection of dates on the current calendar. This method, by default, +* does not call the render method explicitly. Once deselection has completed, render must be +* called for the changes to be reflected visually. +* @method deselect +* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are +* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). +* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). +* This method can also take a JavaScript Date object or an array of Date objects. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.deselect = function(date) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselect(date); + } + return this.getSelectedDates(); +}; + +/** +* Deselects all dates on the current calendar. +* @method deselectAll +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +* Assuming that this function executes properly, the return value should be an empty array. +* However, the empty array is returned for the sake of being able to check the selection status +* of the calendar. +*/ +YAHOO.widget.CalendarGroup.prototype.deselectAll = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselectAll(); + } + return this.getSelectedDates(); +}; + +/** +* Deselects a date on the current calendar by referencing the index of the cell that should be deselected. +* This method is used to easily deselect a single cell (usually with a mouse click) without having to do +* a full render. The selected style is removed from the cell directly. +* @method deselectCell +* @param {Number} cellIndex The index of the cell to deselect in the current calendar. +* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected. +*/ +YAHOO.widget.CalendarGroup.prototype.deselectCell = function(cellIndex) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.deselectCell(cellIndex); + } + return this.getSelectedDates(); +}; + +/** +* Resets the calendar widget to the originally selected month and year, and +* sets the calendar to the initial selection(s). +* @method reset +*/ +YAHOO.widget.CalendarGroup.prototype.reset = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.reset(); + } +}; + +/** +* Clears the selected dates in the current calendar widget and sets the calendar +* to the current month and year. +* @method clear +*/ +YAHOO.widget.CalendarGroup.prototype.clear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.clear(); + } +}; + +/** +* Navigates to the next month page in the calendar widget. +* @method nextMonth +*/ +YAHOO.widget.CalendarGroup.prototype.nextMonth = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.nextMonth(); + } +}; + +/** +* Navigates to the previous month page in the calendar widget. +* @method previousMonth +*/ +YAHOO.widget.CalendarGroup.prototype.previousMonth = function() { + for (var p=this.pages.length-1;p>=0;--p) { + var cal = this.pages[p]; + cal.previousMonth(); + } +}; + +/** +* Navigates to the next year in the currently selected month in the calendar widget. +* @method nextYear +*/ +YAHOO.widget.CalendarGroup.prototype.nextYear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.nextYear(); + } +}; + +/** +* Navigates to the previous year in the currently selected month in the calendar widget. +* @method previousYear +*/ +YAHOO.widget.CalendarGroup.prototype.previousYear = function() { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.previousYear(); + } +}; + + +/** +* Gets the list of currently selected dates from the calendar. +* @return An array of currently selected JavaScript Date objects. +* @type Date[] +*/ +YAHOO.widget.CalendarGroup.prototype.getSelectedDates = function() { + var returnDates = []; + var selected = this.cfg.getProperty("selected"); + + for (var d=0;d<selected.length;++d) { + var dateArray = selected[d]; + + var date = new Date(dateArray[0],dateArray[1]-1,dateArray[2]); + returnDates.push(date); + } + + returnDates.sort( function(a,b) { return a-b; } ); + return returnDates; +}; + +/** +* Adds a renderer to the render stack. The function reference passed to this method will be executed +* when a date cell matches the conditions specified in the date string for this renderer. +* @method addRenderer +* @param {String} sDates A date string to associate with the specified renderer. Valid formats +* include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005) +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addRenderer = function(sDates, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addRenderer(sDates, fnRender); + } +}; + +/** +* Adds a month to the render stack. The function reference passed to this method will be executed +* when a date cell matches the month passed to this method. +* @method addMonthRenderer +* @param {Number} month The month (1-12) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addMonthRenderer = function(month, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addMonthRenderer(month, fnRender); + } +}; + +/** +* Adds a weekday to the render stack. The function reference passed to this method will be executed +* when a date cell matches the weekday passed to this method. +* @method addWeekdayRenderer +* @param {Number} weekday The weekday (0-6) to associate with this renderer +* @param {Function} fnRender The function executed to render cells that match the render rules for this renderer. +*/ +YAHOO.widget.CalendarGroup.prototype.addWeekdayRenderer = function(weekday, fnRender) { + for (var p=0;p<this.pages.length;++p) { + var cal = this.pages[p]; + cal.addWeekdayRenderer(weekday, fnRender); + } +}; + +/** +* Renders the header for the CalendarGroup. +* @method renderHeader +*/ +YAHOO.widget.CalendarGroup.prototype.renderHeader = function() {}; + +/** +* Renders a footer for the 2-up calendar container. By default, this method is +* unimplemented. +* @method renderFooter +*/ +YAHOO.widget.CalendarGroup.prototype.renderFooter = function() {}; + +/** +* Adds the designated number of months to the current calendar month, and sets the current +* calendar page date to the new month. +* @method addMonths +* @param {Number} count The number of months to add to the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.addMonths = function(count) { + this.callChildFunction("addMonths", count); +}; + + +/** +* Subtracts the designated number of months from the current calendar month, and sets the current +* calendar page date to the new month. +* @method subtractMonths +* @param {Number} count The number of months to subtract from the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.subtractMonths = function(count) { + this.callChildFunction("subtractMonths", count); +}; + +/** +* Adds the designated number of years to the current calendar, and sets the current +* calendar page date to the new month. +* @method addYears +* @param {Number} count The number of years to add to the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.addYears = function(count) { + this.callChildFunction("addYears", count); +}; + +/** +* Subtcats the designated number of years from the current calendar, and sets the current +* calendar page date to the new month. +* @method subtractYears +* @param {Number} count The number of years to subtract from the current calendar +*/ +YAHOO.widget.CalendarGroup.prototype.subtractYears = function(count) { + this.callChildFunction("subtractYears", count); +}; + +/** +* Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11. +* The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained +* @method _setMonthOnDate +* @private +* @param {Date} date The Date object on which to set the month index +* @param {Number} iMonth The month index to set +*/ +YAHOO.widget.CalendarGroup.prototype._setMonthOnDate = function(date, iMonth) { + // BUG in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11 + if (this.browser == "safari" && (iMonth < 0 || iMonth > 11)) { + var DM = YAHOO.widget.DateMath; + var newDate = DM.add(date, DM.MONTH, iMonth-date.getMonth()); + date.setTime(newDate.getTime()); + } else { + date.setMonth(iMonth); + } +}; + + +/** +* CSS class representing the container for the calendar +* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer"; + +/** +* CSS class representing the container for the calendar +* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_MULTI_UP = "multi"; + +/** +* CSS class representing the title for the 2-up calendar +* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE +* @static +* @final +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_2UPTITLE = "title"; + +/** +* CSS class representing the close icon for the 2-up calendar +* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE +* @static +* @final +* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties. +* Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon +* @type String +*/ +YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon"; + +YAHOO.augment(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel", + "buildMonthLabel", + "renderOutOfBoundsDate", + "renderRowHeader", + "renderRowFooter", + "renderCellDefault", + "styleCellDefault", + "renderCellStyleHighlight1", + "renderCellStyleHighlight2", + "renderCellStyleHighlight3", + "renderCellStyleHighlight4", + "renderCellStyleToday", + "renderCellStyleSelected", + "renderCellNotThisMonth", + "renderBodyCellRestricted", + "initStyles", + "configTitle", + "configClose", + "hide", + "show", + "browser"); + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} A string representation of the CalendarGroup object. +*/ +YAHOO.widget.CalendarGroup.prototype.toString = function() { + return "CalendarGroup " + this.id; +}; + +YAHOO.widget.CalGrp = YAHOO.widget.CalendarGroup; + +/** +* @class YAHOO.widget.Calendar2up +* @extends YAHOO.widget.CalendarGroup +* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default. +*/ +YAHOO.widget.Calendar2up = function(id, containerId, config) { + this.init(id, containerId, config); +}; + +YAHOO.extend(YAHOO.widget.Calendar2up, YAHOO.widget.CalendarGroup); + +/** +* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default. +*/ +YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up; + +YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/connection/README b/interface/ispconfig/interface/js/yui/connection/README new file mode 100644 index 0000000..8f401c9 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/connection/README @@ -0,0 +1,182 @@ +Connection Manager Release Notes + +*** version 2.2.0 *** + +* initHeader() now accepts a third argument as a boolean. When set to true, +this specific header will automatically be sent with each transaction. +Otherwise, the header will be set and sent for the specific transaction only. +Example: initHeader('X-YUI-State','Beta', true); all transactions will send this +header. + * resetDefaultHeaders() will clear the default headers collection. + +* All Connection Mananger transactions will broadcast the header: "X-Requested- +With: XMLHttpRequest". + * This can be turned off: YAHOO.util.Connect.setDefaultXhrHeader(false); + +* The HTTP method argument in asyncRequest is now case-insensitive. + +* uploadFile() will now correctly handle the absence of a callback object, +allowing the transaction to complete silently. + +*** version 0.12.2 *** + +* The Opera/Connection Manager concurrent object condition, described in version +0.12.0, no longer tests applies for Opera, version 9.10. + +*** version 0.12.1 *** + +* connection-debug.js corrected and synchronized with connection.js. Code +inconsistencies between the two files existed in 0.12.0. + +*** version 0.12.0 *** + +* When uploading files via setForm() and asyncRequest includes a POST data +argument, appendPostData() will create hidden input fields for each postData +label/value and append each field to the form object. + +* setForm() returns the assembled label/value string of the parsed HTML form +fields. + +* NOTE: Opera 9.02 does not allow for more than 12 concurrent Connection Manager +objects. + +The following example creates 12 requests in a loop: +for(var n=0; n<=12; i++){ + conn[n] = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback); +} + +If n > 13, Opera 9.02 will crash. Connection manager objects count n must be <= +12 at all times. This condition was not present in Opera version 9.01. + +This condition does not apply to other A-Grade browsers ( +http://developer.yahoo.com/yui/articles/gbs/gbs_browser-chart.html) + +*** version 0.11.3 *** + +* YUI Event dependency for file uploading is now optional. + +* uploadFile() now sets unique IDs for each file upload transaction to prevent +iframe collisions with parallel uploads. + +* The callback object now has property responseXML to provide support for file +upload transactions that return an XML document. + +* setForm() will verify if a select option value attribute is present and use +its value, including empty string, before using the text node value. + +* Modified polling mechanism in handleReadyState() and +handleTransactionResponse() to prevent infinite polling if JavaScript errors +occur in the user-defined callback. + +* createFrame() will now accept a boolean argument of true to set the frame +source to "javascript:false" to prevent IE from throwing security warnings in an +HTTPS environment. + +* setHeader() now enumerates through the _http_header object using +hasOwnProperty() to prevent collisions with members added to Object via +prototype. + +* If using setForm() and asyncRequest includes a POST data argument, the data +will be concatenated to the HTML form POST message. + +*** version 0.11.2 *** + +* No revisions. + +*** version 0.11.1 *** + +* uploadFile() now verifies the existence of callback.upload before invoking +callback, with or without object scope. + +*** version 0.11.0 *** + +* Each transaction can be defined with a timeout threshold, in milliseconds, +through the callback object. If the threshold is reached, and the transaction +hasn't yet completed, the transaction will call abort(). + +* abort() will now accept a callback object as the second argument. The +failure callback will receive a response object to indicate the transaction was +aborted. + +* setForm() will now support file uploads by setting the second argument to +true (e.g., YAHOO.util.Connect.setForm(formObject, true). File upload does not +use the callback success or failure handler. Instead, it uses a new callback +object handler: upload. + +* HTML form submit will no longer submit form fields without a defined name +attribute. + +* The default POST header of 'Content-Type','application/x-www-form-urlencoded' +can be overridden by calling setDefaultPostHeader(false). This +will remove the default header from non-HTML form, POST submissions. + +* setHeader() now enumerates through the _http_header object with +propertyIsEnumerable to prevent collisions with members added to Object via +prototype. + +*** version 0.10.0 *** + +* handleTransactionResponse() now treats the full HTTP 2xx range as a success +case, instead of just HTTP 200. + +* To accommodate multiple field values in Mozilla/Firefox, multiple initHeader +calls with the same label will now result in the values concatenated to a +comma- delimited string value. +Example: +Setting Content-Type:'application/x-www-form-urlencoded' and Content- +Type:'text/xml' will result in Content-Type:'application/x-www-form-urlencoded, +text/xml'. + +* Default polling interval lowered to 50ms. + +* YAHOO.util.Connect.setPollingInterval() will allow you to set a polling +interval -- in milliseconds -- to override the default value. + +* YAHOO.util.Connect.getResponseHeader[headerLabel] now supported as a response +object property to provide symmetry with the native XHR object's property. +Example: +YAHOO.util.Connect.getResponseHeader['Content-Length'] will return the value +for the Content-Length header, if the header is available. + +* YAHOO.util.Connect.allResponseHeaders property renamed to +getAllResponseHeaders to provide symmetry with the native XHR object's +property. + +* YAHOO.util.Connect.setForm() now supports HTTP GET as well as HTTP POST. + +* YAHOO.util.Connect.setForm() now accepts an HTML form object as well as its +name attribute value. + +* YAHOO.util.Connect.setForm() will not submit HTML form fields that are +disabled or do not have a name attribute value. + +* [FIXED] Response exceptions result in infinite callback loop in +Mozilla/Firefox. + +* [FIXED] YAHOO.util.Connect.abort() now properly clears polling interval. + +* [FIXED] isCallInProgress() now verifies whether XHR instance still exists, +and returns false if the connection object is no longer available. + +*** version 0.9.0 *** + +* Initial release + + + + + + + + + + + + + + + + + + + diff --git a/interface/ispconfig/interface/js/yui/connection/connection-debug.js b/interface/ispconfig/interface/js/yui/connection/connection-debug.js new file mode 100644 index 0000000..766ee95 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/connection/connection-debug.js @@ -0,0 +1,1082 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Connection Manager provides a simplified interface to the XMLHttpRequest + * object. It handles cross-browser instantiantion of XMLHttpRequest, negotiates the + * interactive states and server response, returning the results to a pre-defined + * callback you create. + * + * @namespace YAHOO.util + * @module connection + * @requires yahoo + */ + +/** + * The Connection Manager singleton provides methods for creating and managing + * asynchronous transactions. + * + * @class Connect + */ + +YAHOO.util.Connect = +{ + /** + * @description Array of MSFT ActiveX ids for XMLHttpRequest. + * @property _msxml_progid + * @private + * @static + * @type array + */ + _msxml_progid:[ + 'MSXML2.XMLHTTP.3.0', + 'MSXML2.XMLHTTP', + 'Microsoft.XMLHTTP' + ], + + /** + * @description Object literal of HTTP header(s) + * @property _http_header + * @private + * @static + * @type object + */ + _http_headers:{}, + + /** + * @description Determines if HTTP headers are set. + * @property _has_http_headers + * @private + * @static + * @type boolean + */ + _has_http_headers:false, + + /** + * @description Determines if a default header of + * Content-Type of 'application/x-www-form-urlencoded' + * will be added to any client HTTP headers sent for POST + * transactions. + * @property _use_default_post_header + * @private + * @static + * @type boolean + */ + _use_default_post_header:true, + + /** + * @description Determines if a default header of + * Content-Type of 'application/x-www-form-urlencoded' + * will be added to client HTTP headers sent for POST + * transactions. + * @property _default_post_header + * @private + * @static + * @type boolean + */ + _default_post_header:'application/x-www-form-urlencoded', + + /** + * @description Determines if a default header of + * 'X-Requested-With: XMLHttpRequest' + * will be added to each transaction. + * @property _use_default_xhr_header + * @private + * @static + * @type boolean + */ + _use_default_xhr_header:true, + + /** + * @description The default header value for the label + * "X-Requested-With". This is sent with each + * transaction, by default, to identify the + * request as being made by YUI Connection Manager. + * @property _default_xhr_header + * @private + * @static + * @type boolean + */ + _default_xhr_header:'XMLHttpRequest', + + /** + * @description Determines if custom, default headers + * are set for each transaction. + * @property _has_default_header + * @private + * @static + * @type boolean + */ + _has_default_headers:true, + + /** + * @description Determines if custom, default headers + * are set for each transaction. + * @property _has_default_header + * @private + * @static + * @type boolean + */ + _default_headers:{}, + + /** + * @description Property modified by setForm() to determine if the data + * should be submitted as an HTML form. + * @property _isFormSubmit + * @private + * @static + * @type boolean + */ + _isFormSubmit:false, + + /** + * @description Property modified by setForm() to determine if a file(s) + * upload is expected. + * @property _isFileUpload + * @private + * @static + * @type boolean + */ + _isFileUpload:false, + + /** + * @description Property modified by setForm() to set a reference to the HTML + * form node if the desired action is file upload. + * @property _formNode + * @private + * @static + * @type object + */ + _formNode:null, + + /** + * @description Property modified by setForm() to set the HTML form data + * for each transaction. + * @property _sFormData + * @private + * @static + * @type string + */ + _sFormData:null, + + /** + * @description Collection of polling references to the polling mechanism in handleReadyState. + * @property _poll + * @private + * @static + * @type object + */ + _poll:{}, + + /** + * @description Queue of timeout values for each transaction callback with a defined timeout value. + * @property _timeOut + * @private + * @static + * @type object + */ + _timeOut:{}, + + /** + * @description The polling frequency, in milliseconds, for HandleReadyState. + * when attempting to determine a transaction's XHR readyState. + * The default is 50 milliseconds. + * @property _polling_interval + * @private + * @static + * @type int + */ + _polling_interval:50, + + /** + * @description A transaction counter that increments the transaction id for each transaction. + * @property _transaction_id + * @private + * @static + * @type int + */ + _transaction_id:0, + + /** + * @description Member to add an ActiveX id to the existing xml_progid array. + * In the event(unlikely) a new ActiveX id is introduced, it can be added + * without internal code modifications. + * @method setProgId + * @public + * @static + * @param {string} id The ActiveX id to be added to initialize the XHR object. + * @return void + */ + setProgId:function(id) + { + this._msxml_progid.unshift(id); + YAHOO.log('ActiveX Program Id ' + id + ' added to _msxml_progid.', 'info', 'Connection'); + }, + + /** + * @description Member to enable or disable the default POST header. + * @method setDefaultPostHeader + * @public + * @static + * @param {boolean} b Set and use default header - true or false . + * @return void + */ + setDefaultPostHeader:function(b) + { + this._use_default_post_header = b; + YAHOO.log('Use default POST header set to ' + b, 'info', 'Connection'); + }, + + /** + * @description Member to enable or disable the default POST header. + * @method setDefaultXhrHeader + * @public + * @static + * @param {boolean} b Set and use default header - true or false . + * @return void + */ + setDefaultXhrHeader:function(b) + { + this._use_default_xhr_header = b; + YAHOO.log('Use default transaction header set to ' + b, 'info', 'Connection'); + }, + + /** + * @description Member to modify the default polling interval. + * @method setPollingInterval + * @public + * @static + * @param {int} i The polling interval in milliseconds. + * @return void + */ + setPollingInterval:function(i) + { + if(typeof i == 'number' && isFinite(i)){ + this._polling_interval = i; + YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection'); + } + }, + + /** + * @description Instantiates a XMLHttpRequest object and returns an object with two properties: + * the XMLHttpRequest instance and the transaction id. + * @method createXhrObject + * @private + * @static + * @param {int} transactionId Property containing the transaction id for this transaction. + * @return object + */ + createXhrObject:function(transactionId) + { + var obj,http; + try + { + // Instantiates XMLHttpRequest in non-IE browsers and assigns to http. + http = new XMLHttpRequest(); + // Object literal with http and tId properties + obj = { conn:http, tId:transactionId }; + YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection'); + } + catch(e) + { + for(var i=0; i<this._msxml_progid.length; ++i){ + try + { + // Instantiates XMLHttpRequest for IE and assign to http. + http = new ActiveXObject(this._msxml_progid[i]); + // Object literal with conn and tId properties + obj = { conn:http, tId:transactionId }; + YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection'); + break; + } + catch(e){} + } + } + finally + { + return obj; + } + }, + + /** + * @description This method is called by asyncRequest to create a + * valid connection object for the transaction. It also passes a + * transaction id and increments the transaction id counter. + * @method getConnectionObject + * @private + * @static + * @return {object} + */ + getConnectionObject:function() + { + var o; + var tId = this._transaction_id; + + try + { + o = this.createXhrObject(tId); + if(o){ + this._transaction_id++; + } + } + catch(e){} + finally + { + return o; + } + }, + + /** + * @description Method for initiating an asynchronous request via the XHR object. + * @method asyncRequest + * @public + * @static + * @param {string} method HTTP transaction method + * @param {string} uri Fully qualified path of resource + * @param {callback} callback User-defined callback function or object + * @param {string} postData POST body + * @return {object} Returns the connection object + */ + asyncRequest:function(method, uri, callback, postData) + { + var o = this.getConnectionObject(); + + if(!o){ + YAHOO.log('Unable to create connection object.', 'error', 'Connection'); + return null; + } + else{ + if(this._isFormSubmit){ + if(this._isFileUpload){ + this.uploadFile(o.tId, callback, uri, postData); + this.releaseObject(o); + + return; + } + + //If the specified HTTP method is GET, setForm() will return an + //encoded string that is concatenated to the uri to + //create a querystring. + if(method.toUpperCase() == 'GET'){ + if(this._sFormData.length != 0){ + // If the URI already contains a querystring, append an ampersand + // and then concatenate _sFormData to the URI. + uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData; + } + else{ + uri += "?" + this._sFormData; + } + } + else if(method.toUpperCase() == 'POST'){ + //If POST data exist in addition to the HTML form data, + //it will be concatenated to the form data. + postData = postData?this._sFormData + "&" + postData:this._sFormData; + } + } + + o.conn.open(method, uri, true); + + if(this._use_default_xhr_header){ + if(!this._default_headers['X-Requested-With']){ + this.initHeader('X-Requested-With', this._default_xhr_header, true); + YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection'); + } + } + if(this._isFormSubmit || (postData && this._use_default_post_header)){ + this.initHeader('Content-Type', this._default_post_header); + YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded for POST transaction.', 'info', 'Connection'); + if(this._isFormSubmit){ + this.resetFormState(); + } + } + + if(this._has_default_headers || this._has_http_headers){ + this.setHeader(o); + } + + this.handleReadyState(o, callback); + o.conn.send(postData || null); + + return o; + } + }, + + /** + * @description This method serves as a timer that polls the XHR object's readyState + * property during a transaction, instead of binding a callback to the + * onreadystatechange event. Upon readyState 4, handleTransactionResponse + * will process the response, and the timer will be cleared. + * @method handleReadyState + * @private + * @static + * @param {object} o The connection object + * @param {callback} callback The user-defined callback object + * @return {void} + */ + handleReadyState:function(o, callback) + { + var oConn = this; + + if(callback && callback.timeout){ + this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout); + } + + this._poll[o.tId] = window.setInterval( + function(){ + if(o.conn && o.conn.readyState == 4){ + window.clearInterval(oConn._poll[o.tId]); + delete oConn._poll[o.tId]; + + if(callback && callback.timeout){ + delete oConn._timeOut[o.tId]; + } + + oConn.handleTransactionResponse(o, callback); + } + } + ,this._polling_interval); + }, + + /** + * @description This method attempts to interpret the server response and + * determine whether the transaction was successful, or if an error or + * exception was encountered. + * @method handleTransactionResponse + * @private + * @static + * @param {object} o The connection object + * @param {object} callback The sser-defined callback object + * @param {boolean} isAbort Determines if the transaction was aborted. + * @return {void} + */ + handleTransactionResponse:function(o, callback, isAbort) + { + // If no valid callback is provided, then do not process any callback handling. + if(!callback){ + this.releaseObject(o); + YAHOO.log('No callback object to process. Transaction complete.', 'warn', 'Connection'); + return; + } + + var httpStatus, responseObject; + + try + { + if(o.conn.status !== undefined && o.conn.status != 0){ + httpStatus = o.conn.status; + } + else{ + httpStatus = 13030; + } + } + catch(e){ + // 13030 is the custom code to indicate the condition -- in Mozilla/FF -- + // when the o object's status and statusText properties are + // unavailable, and a query attempt throws an exception. + httpStatus = 13030; + } + + if(httpStatus >= 200 && httpStatus < 300){ + responseObject = this.createResponseObject(o, callback.argument); + if(callback.success){ + if(!callback.scope){ + callback.success(responseObject); + YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection'); + } + else{ + // If a scope property is defined, the callback will be fired from + // the context of the object. + callback.success.apply(callback.scope, [responseObject]); + YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection'); + } + } + } + else{ + switch(httpStatus){ + // The following cases are wininet.dll error codes that may be encountered. + case 12002: // Server timeout + case 12029: // 12029 to 12031 correspond to dropped connections. + case 12030: + case 12031: + case 12152: // Connection closed by server. + case 13030: // See above comments for variable status. + responseObject = this.createExceptionObject(o.tId, callback.argument, (isAbort?isAbort:false)); + if(callback.failure){ + if(!callback.scope){ + callback.failure(responseObject); + YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection'); + } + else{ + callback.failure.apply(callback.scope, [responseObject]); + YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection'); + } + } + break; + default: + responseObject = this.createResponseObject(o, callback.argument); + if(callback.failure){ + if(!callback.scope){ + callback.failure(responseObject); + YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection'); + } + else{ + callback.failure.apply(callback.scope, [responseObject]); + YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection'); + } + } + } + } + + this.releaseObject(o); + responseObject = null; + }, + + /** + * @description This method evaluates the server response, creates and returns the results via + * its properties. Success and failure cases will differ in the response + * object's property values. + * @method createResponseObject + * @private + * @static + * @param {object} o The connection object + * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback + * @return {object} + */ + createResponseObject:function(o, callbackArg) + { + var obj = {}; + var headerObj = {}; + + try + { + var headerStr = o.conn.getAllResponseHeaders(); + var header = headerStr.split('\n'); + for(var i=0; i<header.length; i++){ + var delimitPos = header[i].indexOf(':'); + if(delimitPos != -1){ + headerObj[header[i].substring(0,delimitPos)] = header[i].substring(delimitPos+2); + } + } + } + catch(e){} + + obj.tId = o.tId; + obj.status = o.conn.status; + obj.statusText = o.conn.statusText; + obj.getResponseHeader = headerObj; + obj.getAllResponseHeaders = headerStr; + obj.responseText = o.conn.responseText; + obj.responseXML = o.conn.responseXML; + + if(typeof callbackArg !== undefined){ + obj.argument = callbackArg; + } + + return obj; + }, + + /** + * @description If a transaction cannot be completed due to dropped or closed connections, + * there may be not be enough information to build a full response object. + * The failure callback will be fired and this specific condition can be identified + * by a status property value of 0. + * + * If an abort was successful, the status property will report a value of -1. + * + * @method createExceptionObject + * @private + * @static + * @param {int} tId The Transaction Id + * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback + * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort + * @return {object} + */ + createExceptionObject:function(tId, callbackArg, isAbort) + { + var COMM_CODE = 0; + var COMM_ERROR = 'communication failure'; + var ABORT_CODE = -1; + var ABORT_ERROR = 'transaction aborted'; + + var obj = {}; + + obj.tId = tId; + if(isAbort){ + obj.status = ABORT_CODE; + obj.statusText = ABORT_ERROR; + } + else{ + obj.status = COMM_CODE; + obj.statusText = COMM_ERROR; + } + + if(callbackArg){ + obj.argument = callbackArg; + } + + return obj; + }, + + /** + * @description Method that initializes the custom HTTP headers for the each transaction. + * @method initHeader + * @public + * @static + * @param {string} label The HTTP header label + * @param {string} value The HTTP header value + * @param {string} isDefault Determines if the specific header is a default header + * automatically sent with each transaction. + * @return {void} + */ + initHeader:function(label,value,isDefault) + { + var headerObj = (isDefault)?this._default_headers:this._http_headers; + + if(headerObj[label] === undefined){ + headerObj[label] = value; + } + else{ + // Concatenate multiple values, comma-delimited, + // for the same header label, + headerObj[label] = value + "," + headerObj[label]; + } + + if(isDefault){ + this._has_default_headers = true; + } + else{ + this._has_http_headers = true; + } + }, + + + /** + * @description Accessor that sets the HTTP headers for each transaction. + * @method setHeader + * @private + * @static + * @param {object} o The connection object for the transaction. + * @return {void} + */ + setHeader:function(o) + { + if(this._has_default_headers){ + for(var prop in this._default_headers){ + if(YAHOO.lang.hasOwnProperty(this._default_headers,prop)){ + o.conn.setRequestHeader(prop, this._default_headers[prop]); + YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection'); + } + } + } + + if(this._has_http_headers){ + for(var prop in this._http_headers){ + if(YAHOO.lang.hasOwnProperty(this._http_headers,prop)){ + o.conn.setRequestHeader(prop, this._http_headers[prop]); + YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection'); + } + } + delete this._http_headers; + + this._http_headers = {}; + this._has_http_headers = false; + } + }, + + /** + * @description Resets the default HTTP headers object + * @method resetDefaultHeaders + * @public + * @static + * @return {void} + */ + resetDefaultHeaders:function(){ + delete this._default_headers + this._default_headers = {}; + this._has_default_headers = false; + }, + + /** + * @description This method assembles the form label and value pairs and + * constructs an encoded string. + * asyncRequest() will automatically initialize the + * transaction with a HTTP header Content-Type of + * application/x-www-form-urlencoded. + * @method setForm + * @public + * @static + * @param {string || object} form id or name attribute, or form object. + * @param {string} optional boolean to indicate SSL environment. + * @param {string || boolean} optional qualified path of iframe resource for SSL in IE. + * @return {string} string of the HTML form field name and value pairs.. + */ + setForm:function(formId, isUpload, secureUri) + { + this.resetFormState(); + var oForm; + if(typeof formId == 'string'){ + // Determine if the argument is a form id or a form name. + // Note form name usage is deprecated by supported + // here for legacy reasons. + oForm = (document.getElementById(formId) || document.forms[formId]); + } + else if(typeof formId == 'object'){ + // Treat argument as an HTML form object. + oForm = formId; + } + else{ + YAHOO.log('Unable to create form object ' + formId, 'warn', 'Connection'); + return; + } + + // If the isUpload argument is true, setForm will call createFrame to initialize + // an iframe as the form target. + // + // The argument secureURI is also required by IE in SSL environments + // where the secureURI string is a fully qualified HTTP path, used to set the source + // of the iframe, to a stub resource in the same domain. + if(isUpload){ + + // Create iframe in preparation for file upload. + this.createFrame(secureUri?secureUri:null); + + // Set form reference and file upload properties to true. + this._isFormSubmit = true; + this._isFileUpload = true; + this._formNode = oForm; + + return; + } + + var oElement, oName, oValue, oDisabled; + var hasSubmit = false; + + // Iterate over the form elements collection to construct the + // label-value pairs. + for (var i=0; i<oForm.elements.length; i++){ + oElement = oForm.elements[i]; + oDisabled = oForm.elements[i].disabled; + oName = oForm.elements[i].name; + oValue = oForm.elements[i].value; + + // Do not submit fields that are disabled or + // do not have a name attribute value. + if(!oDisabled && oName) + { + switch (oElement.type) + { + case 'select-one': + case 'select-multiple': + for(var j=0; j<oElement.options.length; j++){ + if(oElement.options[j].selected){ + if(window.ActiveXObject){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text) + '&'; + } + else{ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text) + '&'; + } + + } + } + break; + case 'radio': + case 'checkbox': + if(oElement.checked){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + } + break; + case 'file': + // stub case as XMLHttpRequest will only send the file path as a string. + case undefined: + // stub case for fieldset element which returns undefined. + case 'reset': + // stub case for input type reset button. + case 'button': + // stub case for input type button elements. + break; + case 'submit': + if(hasSubmit == false){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + hasSubmit = true; + } + break; + default: + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + break; + } + } + } + + this._isFormSubmit = true; + this._sFormData = this._sFormData.substr(0, this._sFormData.length - 1); + + YAHOO.log('Form initialized for transaction. HTML form POST message is: ' + this._sFormData, 'info', 'Connection'); + + return this._sFormData; + }, + + /** + * @description Resets HTML form properties when an HTML form or HTML form + * with file upload transaction is sent. + * @method resetFormState + * @private + * @static + * @return {void} + */ + resetFormState:function(){ + this._isFormSubmit = false; + this._isFileUpload = false; + this._formNode = null; + this._sFormData = ""; + }, + + /** + * @description Creates an iframe to be used for form file uploads. It is remove from the + * document upon completion of the upload transaction. + * @method createFrame + * @private + * @static + * @param {string} optional qualified path of iframe resource for SSL in IE. + * @return {void} + */ + createFrame:function(secureUri){ + + // IE does not allow the setting of id and name attributes as object + // properties via createElement(). A different iframe creation + // pattern is required for IE. + var frameId = 'yuiIO' + this._transaction_id; + if(window.ActiveXObject){ + var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />'); + + // IE will throw a security exception in an SSL environment if the + // iframe source is undefined. + if(typeof secureUri == 'boolean'){ + io.src = 'javascript:false'; + } + else if(typeof secureURI == 'string'){ + // Deprecated + io.src = secureUri; + } + } + else{ + var io = document.createElement('iframe'); + io.id = frameId; + io.name = frameId; + } + + io.style.position = 'absolute'; + io.style.top = '-1000px'; + io.style.left = '-1000px'; + + document.body.appendChild(io); + YAHOO.log('File upload iframe created. Id is:' + frameId, 'info', 'Connection'); + }, + + /** + * @description Parses the POST data and creates hidden form elements + * for each key-value, and appends them to the HTML form object. + * @method appendPostData + * @private + * @static + * @param {string} postData The HTTP POST data + * @return {array} formElements Collection of hidden fields. + */ + appendPostData:function(postData) + { + var formElements = []; + var postMessage = postData.split('&'); + for(var i=0; i < postMessage.length; i++){ + var delimitPos = postMessage[i].indexOf('='); + if(delimitPos != -1){ + formElements[i] = document.createElement('input'); + formElements[i].type = 'hidden'; + formElements[i].name = postMessage[i].substring(0,delimitPos); + formElements[i].value = postMessage[i].substring(delimitPos+1); + this._formNode.appendChild(formElements[i]); + } + } + + return formElements; + }, + + /** + * @description Uploads HTML form, including files/attachments, to the + * iframe created in createFrame. + * @method uploadFile + * @private + * @static + * @param {int} id The transaction id. + * @param {object} callback - User-defined callback object. + * @param {string} uri Fully qualified path of resource. + * @return {void} + */ + uploadFile:function(id, callback, uri, postData){ + + // Each iframe has an id prefix of "yuiIO" followed + // by the unique transaction id. + var frameId = 'yuiIO' + id; + var uploadEncoding = 'multipart/form-data'; + var io = document.getElementById(frameId); + + // Initialize the HTML form properties in case they are + // not defined in the HTML form. + this._formNode.action = uri; + this._formNode.method = 'POST'; + this._formNode.target = frameId; + + if(this._formNode.encoding){ + // IE does not respect property enctype for HTML forms. + // Instead it uses the property - "encoding". + this._formNode.encoding = uploadEncoding; + } + else{ + this._formNode.enctype = uploadEncoding; + } + + + if(postData){ + var oElements = this.appendPostData(postData); + } + + this._formNode.submit(); + + if(oElements && oElements.length > 0){ + for(var i=0; i < oElements.length; i++){ + this._formNode.removeChild(oElements[i]); + } + } + + // Reset HTML form status properties. + this.resetFormState(); + + // Create the upload callback handler that fires when the iframe + // receives the load event. Subsequently, the event handler is detached + // and the iframe removed from the document. + + var uploadCallback = function() + { + var obj = {}; + obj.tId = id; + obj.argument = callback.argument; + + try + { + obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null; + obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document; + } + catch(e){} + + if(callback && callback.upload){ + if(!callback.scope){ + callback.upload(obj); + YAHOO.log('Upload callback.', 'info', 'Connection'); + } + else{ + callback.upload.apply(callback.scope, [obj]); + YAHOO.log('Upload callback with scope.', 'info', 'Connection'); + } + } + + if(YAHOO.util.Event){ + YAHOO.util.Event.removeListener(io, "load", uploadCallback); + } + else if(window.detachEvent){ + io.detachEvent('onload', uploadCallback); + } + else{ + io.removeEventListener('load', uploadCallback, false); + } + setTimeout( + function(){ + document.body.removeChild(io); + YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection'); + }, 100); + }; + + + // Bind the onload handler to the iframe to detect the file upload response. + if(YAHOO.util.Event){ + YAHOO.util.Event.addListener(io, "load", uploadCallback); + } + else if(window.attachEvent){ + io.attachEvent('onload', uploadCallback); + } + else{ + io.addEventListener('load', uploadCallback, false); + } + }, + + /** + * @description Method to terminate a transaction, if it has not reached readyState 4. + * @method abort + * @public + * @static + * @param {object} o The connection object returned by asyncRequest. + * @param {object} callback User-defined callback object. + * @param {string} isTimeout boolean to indicate if abort was a timeout. + * @return {boolean} + */ + abort:function(o, callback, isTimeout) + { + if(this.isCallInProgress(o)){ + o.conn.abort(); + window.clearInterval(this._poll[o.tId]); + delete this._poll[o.tId]; + if(isTimeout){ + delete this._timeOut[o.tId]; + } + + this.handleTransactionResponse(o, callback, true); + YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection'); + + return true; + } + else{ + YAHOO.log('Transaction ' + o.tId + ' abort call failed.', 'warn', 'Connection'); + return false; + } + }, + + /** + * Public method to check if the transaction is still being processed. + * + * @method isCallInProgress + * @public + * @static + * @param {object} o The connection object returned by asyncRequest + * @return {boolean} + */ + isCallInProgress:function(o) + { + // if the XHR object assigned to the transaction has not been dereferenced, + // then check its readyState status. Otherwise, return false. + if(o.conn){ + return o.conn.readyState != 4 && o.conn.readyState != 0; + } + else{ + //The XHR object has been destroyed. + return false; + } + }, + + /** + * @description Dereference the XHR instance and the connection object after the transaction is completed. + * @method releaseObject + * @private + * @static + * @param {object} o The connection object + * @return {void} + */ + releaseObject:function(o) + { + //dereference the XHR instance. + o.conn = null; + YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection'); + //dereference the connection object. + o = null; + } +}; +YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/connection/connection-min.js b/interface/ispconfig/interface/js/yui/connection/connection-min.js new file mode 100644 index 0000000..ad6dbb7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/connection/connection-min.js @@ -0,0 +1,104 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,setProgId:function(id) +{this._msxml_progid.unshift(id);},setDefaultPostHeader:function(b) +{this._use_default_post_header=b;},setDefaultXhrHeader:function(b) +{this._use_default_xhr_header=b;},setPollingInterval:function(i) +{if(typeof i=='number'&&isFinite(i)){this._polling_interval=i;}},createXhrObject:function(transactionId) +{var obj,http;try +{http=new XMLHttpRequest();obj={conn:http,tId:transactionId};} +catch(e) +{for(var i=0;i<this._msxml_progid.length;++i){try +{http=new ActiveXObject(this._msxml_progid[i]);obj={conn:http,tId:transactionId};break;} +catch(e){}}} +finally +{return obj;}},getConnectionObject:function() +{var o;var tId=this._transaction_id;try +{o=this.createXhrObject(tId);if(o){this._transaction_id++;}} +catch(e){} +finally +{return o;}},asyncRequest:function(method,uri,callback,postData) +{var o=this.getConnectionObject();if(!o){return null;} +else{if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(o.tId,callback,uri,postData);this.releaseObject(o);return;} +if(method.toUpperCase()=='GET'){if(this._sFormData.length!=0){uri+=((uri.indexOf('?')==-1)?'?':'&')+this._sFormData;} +else{uri+="?"+this._sFormData;}} +else if(method.toUpperCase()=='POST'){postData=postData?this._sFormData+"&"+postData:this._sFormData;}} +o.conn.open(method,uri,true);if(this._use_default_xhr_header){if(!this._default_headers['X-Requested-With']){this.initHeader('X-Requested-With',this._default_xhr_header,true);}} +if(this._isFormSubmit||(postData&&this._use_default_post_header)){this.initHeader('Content-Type',this._default_post_header);if(this._isFormSubmit){this.resetFormState();}} +if(this._has_default_headers||this._has_http_headers){this.setHeader(o);} +this.handleReadyState(o,callback);o.conn.send(postData||null);return o;}},handleReadyState:function(o,callback) +{var oConn=this;if(callback&&callback.timeout){this._timeOut[o.tId]=window.setTimeout(function(){oConn.abort(o,callback,true);},callback.timeout);} +this._poll[o.tId]=window.setInterval(function(){if(o.conn&&o.conn.readyState==4){window.clearInterval(oConn._poll[o.tId]);delete oConn._poll[o.tId];if(callback&&callback.timeout){delete oConn._timeOut[o.tId];} +oConn.handleTransactionResponse(o,callback);}},this._polling_interval);},handleTransactionResponse:function(o,callback,isAbort) +{if(!callback){this.releaseObject(o);return;} +var httpStatus,responseObject;try +{if(o.conn.status!==undefined&&o.conn.status!=0){httpStatus=o.conn.status;} +else{httpStatus=13030;}} +catch(e){httpStatus=13030;} +if(httpStatus>=200&&httpStatus<300){responseObject=this.createResponseObject(o,callback.argument);if(callback.success){if(!callback.scope){callback.success(responseObject);} +else{callback.success.apply(callback.scope,[responseObject]);}}} +else{switch(httpStatus){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:responseObject=this.createExceptionObject(o.tId,callback.argument,(isAbort?isAbort:false));if(callback.failure){if(!callback.scope){callback.failure(responseObject);} +else{callback.failure.apply(callback.scope,[responseObject]);}} +break;default:responseObject=this.createResponseObject(o,callback.argument);if(callback.failure){if(!callback.scope){callback.failure(responseObject);} +else{callback.failure.apply(callback.scope,[responseObject]);}}}} +this.releaseObject(o);responseObject=null;},createResponseObject:function(o,callbackArg) +{var obj={};var headerObj={};try +{var headerStr=o.conn.getAllResponseHeaders();var header=headerStr.split('\n');for(var i=0;i<header.length;i++){var delimitPos=header[i].indexOf(':');if(delimitPos!=-1){headerObj[header[i].substring(0,delimitPos)]=header[i].substring(delimitPos+2);}}} +catch(e){} +obj.tId=o.tId;obj.status=o.conn.status;obj.statusText=o.conn.statusText;obj.getResponseHeader=headerObj;obj.getAllResponseHeaders=headerStr;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof callbackArg!==undefined){obj.argument=callbackArg;} +return obj;},createExceptionObject:function(tId,callbackArg,isAbort) +{var COMM_CODE=0;var COMM_ERROR='communication failure';var ABORT_CODE=-1;var ABORT_ERROR='transaction aborted';var obj={};obj.tId=tId;if(isAbort){obj.status=ABORT_CODE;obj.statusText=ABORT_ERROR;} +else{obj.status=COMM_CODE;obj.statusText=COMM_ERROR;} +if(callbackArg){obj.argument=callbackArg;} +return obj;},initHeader:function(label,value,isDefault) +{var headerObj=(isDefault)?this._default_headers:this._http_headers;if(headerObj[label]===undefined){headerObj[label]=value;} +else{headerObj[label]=value+","+headerObj[label];} +if(isDefault){this._has_default_headers=true;} +else{this._has_http_headers=true;}},setHeader:function(o) +{if(this._has_default_headers){for(var prop in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,prop)){o.conn.setRequestHeader(prop,this._default_headers[prop]);}}} +if(this._has_http_headers){for(var prop in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,prop)){o.conn.setRequestHeader(prop,this._http_headers[prop]);}} +delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers +this._default_headers={};this._has_default_headers=false;},setForm:function(formId,isUpload,secureUri) +{this.resetFormState();var oForm;if(typeof formId=='string'){oForm=(document.getElementById(formId)||document.forms[formId]);} +else if(typeof formId=='object'){oForm=formId;} +else{return;} +if(isUpload){this.createFrame(secureUri?secureUri:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=oForm;return;} +var oElement,oName,oValue,oDisabled;var hasSubmit=false;for(var i=0;i<oForm.elements.length;i++){oElement=oForm.elements[i];oDisabled=oForm.elements[i].disabled;oName=oForm.elements[i].name;oValue=oForm.elements[i].value;if(!oDisabled&&oName) +{switch(oElement.type) +{case'select-one':case'select-multiple':for(var j=0;j<oElement.options.length;j++){if(oElement.options[j].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';} +else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}} +break;case'radio':case'checkbox':if(oElement.checked){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';} +break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit==false){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';hasSubmit=true;} +break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';break;}}} +this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(secureUri){var frameId='yuiIO'+this._transaction_id;if(window.ActiveXObject){var io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof secureUri=='boolean'){io.src='javascript:false';} +else if(typeof secureURI=='string'){io.src=secureUri;}} +else{var io=document.createElement('iframe');io.id=frameId;io.name=frameId;} +io.style.position='absolute';io.style.top='-1000px';io.style.left='-1000px';document.body.appendChild(io);},appendPostData:function(postData) +{var formElements=[];var postMessage=postData.split('&');for(var i=0;i<postMessage.length;i++){var delimitPos=postMessage[i].indexOf('=');if(delimitPos!=-1){formElements[i]=document.createElement('input');formElements[i].type='hidden';formElements[i].name=postMessage[i].substring(0,delimitPos);formElements[i].value=postMessage[i].substring(delimitPos+1);this._formNode.appendChild(formElements[i]);}} +return formElements;},uploadFile:function(id,callback,uri,postData){var frameId='yuiIO'+id;var uploadEncoding='multipart/form-data';var io=document.getElementById(frameId);this._formNode.action=uri;this._formNode.method='POST';this._formNode.target=frameId;if(this._formNode.encoding){this._formNode.encoding=uploadEncoding;} +else{this._formNode.enctype=uploadEncoding;} +if(postData){var oElements=this.appendPostData(postData);} +this._formNode.submit();if(oElements&&oElements.length>0){for(var i=0;i<oElements.length;i++){this._formNode.removeChild(oElements[i]);}} +this.resetFormState();var uploadCallback=function() +{var obj={};obj.tId=id;obj.argument=callback.argument;try +{obj.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;obj.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;} +catch(e){} +if(callback&&callback.upload){if(!callback.scope){callback.upload(obj);} +else{callback.upload.apply(callback.scope,[obj]);}} +if(YAHOO.util.Event){YAHOO.util.Event.removeListener(io,"load",uploadCallback);} +else if(window.detachEvent){io.detachEvent('onload',uploadCallback);} +else{io.removeEventListener('load',uploadCallback,false);} +setTimeout(function(){document.body.removeChild(io);},100);};if(YAHOO.util.Event){YAHOO.util.Event.addListener(io,"load",uploadCallback);} +else if(window.attachEvent){io.attachEvent('onload',uploadCallback);} +else{io.addEventListener('load',uploadCallback,false);}},abort:function(o,callback,isTimeout) +{if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this._poll[o.tId]);delete this._poll[o.tId];if(isTimeout){delete this._timeOut[o.tId];} +this.handleTransactionResponse(o,callback,true);return true;} +else{return false;}},isCallInProgress:function(o) +{if(o.conn){return o.conn.readyState!=4&&o.conn.readyState!=0;} +else{return false;}},releaseObject:function(o) +{o.conn=null;o=null;}}; +YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/connection/connection.js b/interface/ispconfig/interface/js/yui/connection/connection.js new file mode 100644 index 0000000..fbe2bd4 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/connection/connection.js @@ -0,0 +1,1054 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Connection Manager provides a simplified interface to the XMLHttpRequest + * object. It handles cross-browser instantiantion of XMLHttpRequest, negotiates the + * interactive states and server response, returning the results to a pre-defined + * callback you create. + * + * @namespace YAHOO.util + * @module connection + * @requires yahoo + */ + +/** + * The Connection Manager singleton provides methods for creating and managing + * asynchronous transactions. + * + * @class Connect + */ + +YAHOO.util.Connect = +{ + /** + * @description Array of MSFT ActiveX ids for XMLHttpRequest. + * @property _msxml_progid + * @private + * @static + * @type array + */ + _msxml_progid:[ + 'MSXML2.XMLHTTP.3.0', + 'MSXML2.XMLHTTP', + 'Microsoft.XMLHTTP' + ], + + /** + * @description Object literal of HTTP header(s) + * @property _http_header + * @private + * @static + * @type object + */ + _http_headers:{}, + + /** + * @description Determines if HTTP headers are set. + * @property _has_http_headers + * @private + * @static + * @type boolean + */ + _has_http_headers:false, + + /** + * @description Determines if a default header of + * Content-Type of 'application/x-www-form-urlencoded' + * will be added to any client HTTP headers sent for POST + * transactions. + * @property _use_default_post_header + * @private + * @static + * @type boolean + */ + _use_default_post_header:true, + + /** + * @description Determines if a default header of + * Content-Type of 'application/x-www-form-urlencoded' + * will be added to client HTTP headers sent for POST + * transactions. + * @property _default_post_header + * @private + * @static + * @type boolean + */ + _default_post_header:'application/x-www-form-urlencoded', + + /** + * @description Determines if a default header of + * 'X-Requested-With: XMLHttpRequest' + * will be added to each transaction. + * @property _use_default_xhr_header + * @private + * @static + * @type boolean + */ + _use_default_xhr_header:true, + + /** + * @description The default header value for the label + * "X-Requested-With". This is sent with each + * transaction, by default, to identify the + * request as being made by YUI Connection Manager. + * @property _default_xhr_header + * @private + * @static + * @type boolean + */ + _default_xhr_header:'XMLHttpRequest', + + /** + * @description Determines if custom, default headers + * are set for each transaction. + * @property _has_default_header + * @private + * @static + * @type boolean + */ + _has_default_headers:true, + + /** + * @description Determines if custom, default headers + * are set for each transaction. + * @property _has_default_header + * @private + * @static + * @type boolean + */ + _default_headers:{}, + + /** + * @description Property modified by setForm() to determine if the data + * should be submitted as an HTML form. + * @property _isFormSubmit + * @private + * @static + * @type boolean + */ + _isFormSubmit:false, + + /** + * @description Property modified by setForm() to determine if a file(s) + * upload is expected. + * @property _isFileUpload + * @private + * @static + * @type boolean + */ + _isFileUpload:false, + + /** + * @description Property modified by setForm() to set a reference to the HTML + * form node if the desired action is file upload. + * @property _formNode + * @private + * @static + * @type object + */ + _formNode:null, + + /** + * @description Property modified by setForm() to set the HTML form data + * for each transaction. + * @property _sFormData + * @private + * @static + * @type string + */ + _sFormData:null, + + /** + * @description Collection of polling references to the polling mechanism in handleReadyState. + * @property _poll + * @private + * @static + * @type object + */ + _poll:{}, + + /** + * @description Queue of timeout values for each transaction callback with a defined timeout value. + * @property _timeOut + * @private + * @static + * @type object + */ + _timeOut:{}, + + /** + * @description The polling frequency, in milliseconds, for HandleReadyState. + * when attempting to determine a transaction's XHR readyState. + * The default is 50 milliseconds. + * @property _polling_interval + * @private + * @static + * @type int + */ + _polling_interval:50, + + /** + * @description A transaction counter that increments the transaction id for each transaction. + * @property _transaction_id + * @private + * @static + * @type int + */ + _transaction_id:0, + + /** + * @description Member to add an ActiveX id to the existing xml_progid array. + * In the event(unlikely) a new ActiveX id is introduced, it can be added + * without internal code modifications. + * @method setProgId + * @public + * @static + * @param {string} id The ActiveX id to be added to initialize the XHR object. + * @return void + */ + setProgId:function(id) + { + this._msxml_progid.unshift(id); + }, + + /** + * @description Member to enable or disable the default POST header. + * @method setDefaultPostHeader + * @public + * @static + * @param {boolean} b Set and use default header - true or false . + * @return void + */ + setDefaultPostHeader:function(b) + { + this._use_default_post_header = b; + }, + + /** + * @description Member to enable or disable the default POST header. + * @method setDefaultXhrHeader + * @public + * @static + * @param {boolean} b Set and use default header - true or false . + * @return void + */ + setDefaultXhrHeader:function(b) + { + this._use_default_xhr_header = b; + }, + + /** + * @description Member to modify the default polling interval. + * @method setPollingInterval + * @public + * @static + * @param {int} i The polling interval in milliseconds. + * @return void + */ + setPollingInterval:function(i) + { + if(typeof i == 'number' && isFinite(i)){ + this._polling_interval = i; + } + }, + + /** + * @description Instantiates a XMLHttpRequest object and returns an object with two properties: + * the XMLHttpRequest instance and the transaction id. + * @method createXhrObject + * @private + * @static + * @param {int} transactionId Property containing the transaction id for this transaction. + * @return object + */ + createXhrObject:function(transactionId) + { + var obj,http; + try + { + // Instantiates XMLHttpRequest in non-IE browsers and assigns to http. + http = new XMLHttpRequest(); + // Object literal with http and tId properties + obj = { conn:http, tId:transactionId }; + } + catch(e) + { + for(var i=0; i<this._msxml_progid.length; ++i){ + try + { + // Instantiates XMLHttpRequest for IE and assign to http. + http = new ActiveXObject(this._msxml_progid[i]); + // Object literal with conn and tId properties + obj = { conn:http, tId:transactionId }; + break; + } + catch(e){} + } + } + finally + { + return obj; + } + }, + + /** + * @description This method is called by asyncRequest to create a + * valid connection object for the transaction. It also passes a + * transaction id and increments the transaction id counter. + * @method getConnectionObject + * @private + * @static + * @return {object} + */ + getConnectionObject:function() + { + var o; + var tId = this._transaction_id; + + try + { + o = this.createXhrObject(tId); + if(o){ + this._transaction_id++; + } + } + catch(e){} + finally + { + return o; + } + }, + + /** + * @description Method for initiating an asynchronous request via the XHR object. + * @method asyncRequest + * @public + * @static + * @param {string} method HTTP transaction method + * @param {string} uri Fully qualified path of resource + * @param {callback} callback User-defined callback function or object + * @param {string} postData POST body + * @return {object} Returns the connection object + */ + asyncRequest:function(method, uri, callback, postData) + { + var o = this.getConnectionObject(); + + if(!o){ + return null; + } + else{ + if(this._isFormSubmit){ + if(this._isFileUpload){ + this.uploadFile(o.tId, callback, uri, postData); + this.releaseObject(o); + + return; + } + + //If the specified HTTP method is GET, setForm() will return an + //encoded string that is concatenated to the uri to + //create a querystring. + if(method.toUpperCase() == 'GET'){ + if(this._sFormData.length != 0){ + // If the URI already contains a querystring, append an ampersand + // and then concatenate _sFormData to the URI. + uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData; + } + else{ + uri += "?" + this._sFormData; + } + } + else if(method.toUpperCase() == 'POST'){ + //If POST data exist in addition to the HTML form data, + //it will be concatenated to the form data. + postData = postData?this._sFormData + "&" + postData:this._sFormData; + } + } + + o.conn.open(method, uri, true); + + if(this._use_default_xhr_header){ + if(!this._default_headers['X-Requested-With']){ + this.initHeader('X-Requested-With', this._default_xhr_header, true); + } + } + if(this._isFormSubmit || (postData && this._use_default_post_header)){ + this.initHeader('Content-Type', this._default_post_header); + if(this._isFormSubmit){ + this.resetFormState(); + } + } + + if(this._has_default_headers || this._has_http_headers){ + this.setHeader(o); + } + + this.handleReadyState(o, callback); + o.conn.send(postData || null); + + return o; + } + }, + + /** + * @description This method serves as a timer that polls the XHR object's readyState + * property during a transaction, instead of binding a callback to the + * onreadystatechange event. Upon readyState 4, handleTransactionResponse + * will process the response, and the timer will be cleared. + * @method handleReadyState + * @private + * @static + * @param {object} o The connection object + * @param {callback} callback The user-defined callback object + * @return {void} + */ + handleReadyState:function(o, callback) + { + var oConn = this; + + if(callback && callback.timeout){ + this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout); + } + + this._poll[o.tId] = window.setInterval( + function(){ + if(o.conn && o.conn.readyState == 4){ + window.clearInterval(oConn._poll[o.tId]); + delete oConn._poll[o.tId]; + + if(callback && callback.timeout){ + delete oConn._timeOut[o.tId]; + } + + oConn.handleTransactionResponse(o, callback); + } + } + ,this._polling_interval); + }, + + /** + * @description This method attempts to interpret the server response and + * determine whether the transaction was successful, or if an error or + * exception was encountered. + * @method handleTransactionResponse + * @private + * @static + * @param {object} o The connection object + * @param {object} callback The sser-defined callback object + * @param {boolean} isAbort Determines if the transaction was aborted. + * @return {void} + */ + handleTransactionResponse:function(o, callback, isAbort) + { + // If no valid callback is provided, then do not process any callback handling. + if(!callback){ + this.releaseObject(o); + return; + } + + var httpStatus, responseObject; + + try + { + if(o.conn.status !== undefined && o.conn.status != 0){ + httpStatus = o.conn.status; + } + else{ + httpStatus = 13030; + } + } + catch(e){ + // 13030 is the custom code to indicate the condition -- in Mozilla/FF -- + // when the o object's status and statusText properties are + // unavailable, and a query attempt throws an exception. + httpStatus = 13030; + } + + if(httpStatus >= 200 && httpStatus < 300){ + responseObject = this.createResponseObject(o, callback.argument); + if(callback.success){ + if(!callback.scope){ + callback.success(responseObject); + } + else{ + // If a scope property is defined, the callback will be fired from + // the context of the object. + callback.success.apply(callback.scope, [responseObject]); + } + } + } + else{ + switch(httpStatus){ + // The following cases are wininet.dll error codes that may be encountered. + case 12002: // Server timeout + case 12029: // 12029 to 12031 correspond to dropped connections. + case 12030: + case 12031: + case 12152: // Connection closed by server. + case 13030: // See above comments for variable status. + responseObject = this.createExceptionObject(o.tId, callback.argument, (isAbort?isAbort:false)); + if(callback.failure){ + if(!callback.scope){ + callback.failure(responseObject); + } + else{ + callback.failure.apply(callback.scope, [responseObject]); + } + } + break; + default: + responseObject = this.createResponseObject(o, callback.argument); + if(callback.failure){ + if(!callback.scope){ + callback.failure(responseObject); + } + else{ + callback.failure.apply(callback.scope, [responseObject]); + } + } + } + } + + this.releaseObject(o); + responseObject = null; + }, + + /** + * @description This method evaluates the server response, creates and returns the results via + * its properties. Success and failure cases will differ in the response + * object's property values. + * @method createResponseObject + * @private + * @static + * @param {object} o The connection object + * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback + * @return {object} + */ + createResponseObject:function(o, callbackArg) + { + var obj = {}; + var headerObj = {}; + + try + { + var headerStr = o.conn.getAllResponseHeaders(); + var header = headerStr.split('\n'); + for(var i=0; i<header.length; i++){ + var delimitPos = header[i].indexOf(':'); + if(delimitPos != -1){ + headerObj[header[i].substring(0,delimitPos)] = header[i].substring(delimitPos+2); + } + } + } + catch(e){} + + obj.tId = o.tId; + obj.status = o.conn.status; + obj.statusText = o.conn.statusText; + obj.getResponseHeader = headerObj; + obj.getAllResponseHeaders = headerStr; + obj.responseText = o.conn.responseText; + obj.responseXML = o.conn.responseXML; + + if(typeof callbackArg !== undefined){ + obj.argument = callbackArg; + } + + return obj; + }, + + /** + * @description If a transaction cannot be completed due to dropped or closed connections, + * there may be not be enough information to build a full response object. + * The failure callback will be fired and this specific condition can be identified + * by a status property value of 0. + * + * If an abort was successful, the status property will report a value of -1. + * + * @method createExceptionObject + * @private + * @static + * @param {int} tId The Transaction Id + * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback + * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort + * @return {object} + */ + createExceptionObject:function(tId, callbackArg, isAbort) + { + var COMM_CODE = 0; + var COMM_ERROR = 'communication failure'; + var ABORT_CODE = -1; + var ABORT_ERROR = 'transaction aborted'; + + var obj = {}; + + obj.tId = tId; + if(isAbort){ + obj.status = ABORT_CODE; + obj.statusText = ABORT_ERROR; + } + else{ + obj.status = COMM_CODE; + obj.statusText = COMM_ERROR; + } + + if(callbackArg){ + obj.argument = callbackArg; + } + + return obj; + }, + + /** + * @description Method that initializes the custom HTTP headers for the each transaction. + * @method initHeader + * @public + * @static + * @param {string} label The HTTP header label + * @param {string} value The HTTP header value + * @param {string} isDefault Determines if the specific header is a default header + * automatically sent with each transaction. + * @return {void} + */ + initHeader:function(label,value,isDefault) + { + var headerObj = (isDefault)?this._default_headers:this._http_headers; + + if(headerObj[label] === undefined){ + headerObj[label] = value; + } + else{ + // Concatenate multiple values, comma-delimited, + // for the same header label, + headerObj[label] = value + "," + headerObj[label]; + } + + if(isDefault){ + this._has_default_headers = true; + } + else{ + this._has_http_headers = true; + } + }, + + + /** + * @description Accessor that sets the HTTP headers for each transaction. + * @method setHeader + * @private + * @static + * @param {object} o The connection object for the transaction. + * @return {void} + */ + setHeader:function(o) + { + if(this._has_default_headers){ + for(var prop in this._default_headers){ + if(YAHOO.lang.hasOwnProperty(this._default_headers,prop)){ + o.conn.setRequestHeader(prop, this._default_headers[prop]); + } + } + } + + if(this._has_http_headers){ + for(var prop in this._http_headers){ + if(YAHOO.lang.hasOwnProperty(this._http_headers,prop)){ + o.conn.setRequestHeader(prop, this._http_headers[prop]); + } + } + delete this._http_headers; + + this._http_headers = {}; + this._has_http_headers = false; + } + }, + + /** + * @description Resets the default HTTP headers object + * @method resetDefaultHeaders + * @public + * @static + * @return {void} + */ + resetDefaultHeaders:function(){ + delete this._default_headers + this._default_headers = {}; + this._has_default_headers = false; + }, + + /** + * @description This method assembles the form label and value pairs and + * constructs an encoded string. + * asyncRequest() will automatically initialize the + * transaction with a HTTP header Content-Type of + * application/x-www-form-urlencoded. + * @method setForm + * @public + * @static + * @param {string || object} form id or name attribute, or form object. + * @param {string} optional boolean to indicate SSL environment. + * @param {string || boolean} optional qualified path of iframe resource for SSL in IE. + * @return {string} string of the HTML form field name and value pairs.. + */ + setForm:function(formId, isUpload, secureUri) + { + this.resetFormState(); + var oForm; + if(typeof formId == 'string'){ + // Determine if the argument is a form id or a form name. + // Note form name usage is deprecated by supported + // here for legacy reasons. + oForm = (document.getElementById(formId) || document.forms[formId]); + } + else if(typeof formId == 'object'){ + // Treat argument as an HTML form object. + oForm = formId; + } + else{ + return; + } + + // If the isUpload argument is true, setForm will call createFrame to initialize + // an iframe as the form target. + // + // The argument secureURI is also required by IE in SSL environments + // where the secureURI string is a fully qualified HTTP path, used to set the source + // of the iframe, to a stub resource in the same domain. + if(isUpload){ + + // Create iframe in preparation for file upload. + this.createFrame(secureUri?secureUri:null); + + // Set form reference and file upload properties to true. + this._isFormSubmit = true; + this._isFileUpload = true; + this._formNode = oForm; + + return; + } + + var oElement, oName, oValue, oDisabled; + var hasSubmit = false; + + // Iterate over the form elements collection to construct the + // label-value pairs. + for (var i=0; i<oForm.elements.length; i++){ + oElement = oForm.elements[i]; + oDisabled = oForm.elements[i].disabled; + oName = oForm.elements[i].name; + oValue = oForm.elements[i].value; + + // Do not submit fields that are disabled or + // do not have a name attribute value. + if(!oDisabled && oName) + { + switch (oElement.type) + { + case 'select-one': + case 'select-multiple': + for(var j=0; j<oElement.options.length; j++){ + if(oElement.options[j].selected){ + if(window.ActiveXObject){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text) + '&'; + } + else{ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text) + '&'; + } + + } + } + break; + case 'radio': + case 'checkbox': + if(oElement.checked){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + } + break; + case 'file': + // stub case as XMLHttpRequest will only send the file path as a string. + case undefined: + // stub case for fieldset element which returns undefined. + case 'reset': + // stub case for input type reset button. + case 'button': + // stub case for input type button elements. + break; + case 'submit': + if(hasSubmit == false){ + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + hasSubmit = true; + } + break; + default: + this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&'; + break; + } + } + } + + this._isFormSubmit = true; + this._sFormData = this._sFormData.substr(0, this._sFormData.length - 1); + + return this._sFormData; + }, + + /** + * @description Resets HTML form properties when an HTML form or HTML form + * with file upload transaction is sent. + * @method resetFormState + * @private + * @static + * @return {void} + */ + resetFormState:function(){ + this._isFormSubmit = false; + this._isFileUpload = false; + this._formNode = null; + this._sFormData = ""; + }, + + /** + * @description Creates an iframe to be used for form file uploads. It is remove from the + * document upon completion of the upload transaction. + * @method createFrame + * @private + * @static + * @param {string} optional qualified path of iframe resource for SSL in IE. + * @return {void} + */ + createFrame:function(secureUri){ + + // IE does not allow the setting of id and name attributes as object + // properties via createElement(). A different iframe creation + // pattern is required for IE. + var frameId = 'yuiIO' + this._transaction_id; + if(window.ActiveXObject){ + var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />'); + + // IE will throw a security exception in an SSL environment if the + // iframe source is undefined. + if(typeof secureUri == 'boolean'){ + io.src = 'javascript:false'; + } + else if(typeof secureURI == 'string'){ + // Deprecated + io.src = secureUri; + } + } + else{ + var io = document.createElement('iframe'); + io.id = frameId; + io.name = frameId; + } + + io.style.position = 'absolute'; + io.style.top = '-1000px'; + io.style.left = '-1000px'; + + document.body.appendChild(io); + }, + + /** + * @description Parses the POST data and creates hidden form elements + * for each key-value, and appends them to the HTML form object. + * @method appendPostData + * @private + * @static + * @param {string} postData The HTTP POST data + * @return {array} formElements Collection of hidden fields. + */ + appendPostData:function(postData) + { + var formElements = []; + var postMessage = postData.split('&'); + for(var i=0; i < postMessage.length; i++){ + var delimitPos = postMessage[i].indexOf('='); + if(delimitPos != -1){ + formElements[i] = document.createElement('input'); + formElements[i].type = 'hidden'; + formElements[i].name = postMessage[i].substring(0,delimitPos); + formElements[i].value = postMessage[i].substring(delimitPos+1); + this._formNode.appendChild(formElements[i]); + } + } + + return formElements; + }, + + /** + * @description Uploads HTML form, including files/attachments, to the + * iframe created in createFrame. + * @method uploadFile + * @private + * @static + * @param {int} id The transaction id. + * @param {object} callback - User-defined callback object. + * @param {string} uri Fully qualified path of resource. + * @return {void} + */ + uploadFile:function(id, callback, uri, postData){ + + // Each iframe has an id prefix of "yuiIO" followed + // by the unique transaction id. + var frameId = 'yuiIO' + id; + var uploadEncoding = 'multipart/form-data'; + var io = document.getElementById(frameId); + + // Initialize the HTML form properties in case they are + // not defined in the HTML form. + this._formNode.action = uri; + this._formNode.method = 'POST'; + this._formNode.target = frameId; + + if(this._formNode.encoding){ + // IE does not respect property enctype for HTML forms. + // Instead it uses the property - "encoding". + this._formNode.encoding = uploadEncoding; + } + else{ + this._formNode.enctype = uploadEncoding; + } + + + if(postData){ + var oElements = this.appendPostData(postData); + } + + this._formNode.submit(); + + if(oElements && oElements.length > 0){ + for(var i=0; i < oElements.length; i++){ + this._formNode.removeChild(oElements[i]); + } + } + + // Reset HTML form status properties. + this.resetFormState(); + + // Create the upload callback handler that fires when the iframe + // receives the load event. Subsequently, the event handler is detached + // and the iframe removed from the document. + + var uploadCallback = function() + { + var obj = {}; + obj.tId = id; + obj.argument = callback.argument; + + try + { + obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null; + obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document; + } + catch(e){} + + if(callback && callback.upload){ + if(!callback.scope){ + callback.upload(obj); + } + else{ + callback.upload.apply(callback.scope, [obj]); + } + } + + if(YAHOO.util.Event){ + YAHOO.util.Event.removeListener(io, "load", uploadCallback); + } + else if(window.detachEvent){ + io.detachEvent('onload', uploadCallback); + } + else{ + io.removeEventListener('load', uploadCallback, false); + } + setTimeout( + function(){ + document.body.removeChild(io); + }, 100); + }; + + + // Bind the onload handler to the iframe to detect the file upload response. + if(YAHOO.util.Event){ + YAHOO.util.Event.addListener(io, "load", uploadCallback); + } + else if(window.attachEvent){ + io.attachEvent('onload', uploadCallback); + } + else{ + io.addEventListener('load', uploadCallback, false); + } + }, + + /** + * @description Method to terminate a transaction, if it has not reached readyState 4. + * @method abort + * @public + * @static + * @param {object} o The connection object returned by asyncRequest. + * @param {object} callback User-defined callback object. + * @param {string} isTimeout boolean to indicate if abort was a timeout. + * @return {boolean} + */ + abort:function(o, callback, isTimeout) + { + if(this.isCallInProgress(o)){ + o.conn.abort(); + window.clearInterval(this._poll[o.tId]); + delete this._poll[o.tId]; + if(isTimeout){ + delete this._timeOut[o.tId]; + } + + this.handleTransactionResponse(o, callback, true); + + return true; + } + else{ + return false; + } + }, + + /** + * Public method to check if the transaction is still being processed. + * + * @method isCallInProgress + * @public + * @static + * @param {object} o The connection object returned by asyncRequest + * @return {boolean} + */ + isCallInProgress:function(o) + { + // if the XHR object assigned to the transaction has not been dereferenced, + // then check its readyState status. Otherwise, return false. + if(o.conn){ + return o.conn.readyState != 4 && o.conn.readyState != 0; + } + else{ + //The XHR object has been destroyed. + return false; + } + }, + + /** + * @description Dereference the XHR instance and the connection object after the transaction is completed. + * @method releaseObject + * @private + * @static + * @param {object} o The connection object + * @return {void} + */ + releaseObject:function(o) + { + //dereference the XHR instance. + o.conn = null; + //dereference the connection object. + o = null; + } +}; +YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/container/README b/interface/ispconfig/interface/js/yui/container/README new file mode 100644 index 0000000..ba484d2 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/README @@ -0,0 +1,207 @@ +Container Release Notes + +*** version 2.2.0 *** + + Module + - Removed hardcoded file paths for image roots. Affected properties + include: + - YAHOO.widget.Module.IMG_ROOT + - YAHOO.widget.Module.IMG_ROOT_SSL + - HTML elements, created via createElement, now use lowercase. + + Panel + - To shield against CSS class collision, the following references now + have a "yui-" prefix: + - YAHOO.widget.Panel.CSS_PANEL now references CSS class "yui- + panel". + - YAHOO.widget.Panel.CSS_PANEL_CONTAINER now references CSS class + "yui-panel-container". + - Close button can now be configured via the CSS class "container- + close". + - HTML elements, created via createElement, now use lowercase. + + Dialog + - To shield against CSS class collision, the following references now + have a "yui-" prefix: + - YAHOO.widget.Dialog.CSS_DIALOG now references CSS class "yui- + dialog". + - HTML elements, created via createElement, now use lowercase. + + SimpleDialog + - Removed hardcoded file paths for SimpleDialog icons, which are now + configurable in CSS: + - YAHOO.widget.SimpleDialog.ICON_BLOCK now references CSS class + "blckicon". + - YAHOO.widget.SimpleDialog.ICON_ALARM now references CSS class + "alrticon". + - YAHOO.widget.SimpleDialog.ICON_HELP now references CSS class + "hlpicon". + - YAHOO.widget.SimpleDialog.ICON_INFO now references CSS class + "infoicon". + - YAHOO.widget.SimpleDialog.ICON_WARN now references CSS class + "warnicon". + - YAHOO.widget.SimpleDialog.ICON_TIP now references CSS class + "tipicon". + - To provide shield against CSS class collision the following + references now have a "yui-" prefix: + - YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG now references CSS + class "yui-simple-dialog"; + + Tooltip + - To shield against CSS class collision, the following references now + have a "yui-" prefix: + - YAHOO.widget.Tooltip.CSS_TOOLTIP now references CSS class "yui- + tipicon" "yui-tt"; + +*** version 0.12.2 *** + + Module + - Corrected issue where listener was not properly removed from resize + monitor element when "monitorresize" is disabled + + Panel + - Fixed issue that would sometimes prevent select lists from working + properly in Firefox + + Dialog + - Fixed error that would occur when trying to create a Dialog where + the first form element is set to "disabled" + - Modified "close" property handler for Dialog/SimpleDialog to call + "cancel" instead of "hide" + +*** version 0.12.1 *** + + All Classes + - "monitorresize" property now functions in situations where + document.domain has been modified. + - YAHOO.widget.Module.textResizeEvent now fires when the font size is + changed (except for Opera, which uses "zoom" functionality that + prevents this) + - Event listeners attached to container elements are now properly + purged on destroy using YAHOO.util.Event.purgeElement + + Panel + - Fixed issue where focus events were broken on the page when a modal + Panel was created + + Dialog + - Fixed bug where hitting "enter" on a Dialog was forcing the default + submission behavior of the form's action to execute + - Dialog no longer tries to give focus to hidden form elements. + - Replaced references in Panel with   for XHTML + compliance. + - Fixed issue that was preventing Safari from successfully using the + getData() function + +*** version 0.12 *** + + All Classes + - New documentation format implemented, and removed unnecessary + prototype null references previously used for generating + documentation + + Config + - Added 'undefined' check when reading initial properties for + .reset() + - Fixed Firefox warning on .resetProperty() + - Fixed issue preventing resetProperty() from resetting values + correctly + + Module + - Removed unused "childNodesInDom" property + + Overlay + - Converted center() to use Dom utility + - Fixed configVisible() to properly detect actual visible/hidden + status in Internet Explorer, which reports "inherit" for all elements + by default. + - Updated onDomResize to properly reapply "context" property + - Unified scroll/resize handlers so that they fire properly (when the + event has completed) as opposed to constantly (as seen in Mozilla- + based browsers) + + Panel + - Modified modality mask to show before Panel is shown (prior to any + animation) + - Modified buildWrapper to eliminate cloning of the initial markup + module, which fixes issues with select options not maintaining their + default selections in IE + - Modality mask is now z-indexed properly so that the mask z-index is + always one less than the Panel z-index + + Dialog + - Fixed Connection to get "action" attribute using getAttribute, to + allow for form fields named "action" + - Added support for "GET" by retrieving the form "method" rather than + always defaulting to "POST" + + KeyListener + - Fixed to work properly with Safari 2.0 by matching against keyCode + or charCode + +*** version 0.11.4 *** + + - Panel: Modality mask is now properly removed from DOM on Panel + destroy. + +*** version 0.11.3 *** + + - Module: Fixed SSL warning issue in IE + - Overlay: Fixed memory leak related to iframe shim in IE + - Panel: No focusable elements under the mask can now be tabbed to + - Panel: Set Panel container overflow to hidden to fix scrolling issue + in Opera 9 + +*** version 0.11.2 *** + + - All: JsLint optimization + - Overlay: Fixed SSL issues with monitorresize property + - OverlayManager: Fixed z-index incrementing issues + - Dialog: Form elements called "name" will now function properly + - Dialog: Removed unnecessary scope:this reference + +*** version 0.11.1 *** + + - Tooltip: Removed incorrect logger statement + - Dialog: Corrected logic that was causing browser lockup in IE for + SimpleDialog + - Dialog: Fixed "firstButtom" typo + +*** version 0.11.0 *** + + - toString function added to all classes for easy logging + - YAHOO.extend is now being used for inheritance on all container + classes + - Module: monitorresize feature now works on all browsers + - Module: Fixed bug with image root and isSecure + - Overlay: Fixed bugs related to IFRAME shim positioning + - Overlay: center() now works in quirks mode + - Overlay: Overlay now has a custom destroy() method that also removes + the IFRAME shim + - OverlayManager: Fixed bug in the prototype that was preventing + multiple Managers on one page + - OverlayManager: focusEvent now fires at all appropriate times + - Tooltip: context can now be specified as an array, so Tooltips can be + reused across multiple context elements + - Tooltip: preventoverlap now functions properly for large context + elements (i.e, images) + - Tooltip: fixed bugs regarding setTimeout + - Tooltip: added mousemove event to allow for more accurate Tooltip + positioning + - Panel: added dragEvent for monitoring all event handlers for drag and + drop + - Panel: modality mask is now resized on scroll + - Panel: KeyListeners are now properly destroyed when the Panel is + destroyed + - Panel: Header is now sized properly in quirks mode + - Dialog: Blinking cursor issue is fixed for Firefox + - Dialog: callback object for Connection is now public (this.callback) + - Dialog: onsuccess/onfailure properties removed (as a result of the + public callback object) + - Dialog: Dialog is now invisible by default + - Dialog: Buttons are now properly cleaned up on destroy + +*** version 0.10.0 *** + +* Initial release + diff --git a/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif new file mode 100644 index 0000000..443d39b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif new file mode 100644 index 0000000..5668961 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif b/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif new file mode 100644 index 0000000..e2f67d7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/container.css b/interface/ispconfig/interface/js/yui/container/assets/container.css new file mode 100644 index 0000000..ee6f3b0 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/container.css @@ -0,0 +1,230 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +.yui-overlay { + position:absolute; + display:block; +} + +.yui-tt { + visibility:hidden; + position:absolute; + color:#333; + background-color:#FDFFB4; + font-family:arial,helvetica,verdana,sans-serif; + padding:2px; + border:1px solid #FCC90D; + font:100% sans-serif; + width:auto; +} + +* html body.masked select { + visibility:hidden; +} + +* html div.yui-panel-container select { + visibility:inherit; +} + +* html div.drag select { + visibility:hidden; +} + +* html div.hide-select select { + visibility:hidden; +} + +.mask { + z-index:0; + display:none; + position:absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity:.50; + filter: alpha(opacity=50); + background-color:#CCC; +} + +.hide-scrollbars * { + overflow:hidden; +} + +.hide-scrollbars textarea, .hide-scrollbars select { + overflow:hidden; + display:none; +} + +.show-scrollbars textarea, .show-scrollbars select { + overflow:visible; +} + +.yui-panel-container { + position:absolute; + background-color:transparent; + z-index:6; + visibility:hidden; + overflow:visible; + width:auto; +} + +.yui-panel-container.focused { +} + + +.yui-panel-container.matte { + padding:3px; + background-color:#FFF; +} + +.yui-panel-container.matte .underlay { + display:none; +} + +.yui-panel-container.shadow { + padding:0px; + background-color:transparent; +} + +.yui-panel-container.shadow .underlay { + visibility:inherit; + position:absolute; + background-color:#CCC; + top:3px;left:3px; + z-index:0; + width:100%; + height:100%; + -moz-opacity: 0.7; + opacity:.70; + filter:alpha(opacity=70); + zoom:1; +} + +.yui-panel { + visibility:hidden; + border-collapse:separate; + position:relative; + left:0px;top:0px; + font:1em Arial; + background-color:#FFF; + border:1px solid #000; + z-index:1; + overflow:hidden; +} + +.yui-panel .hd { + background-color:#3d77cb; + color:#FFF; + font-size:100%; + line-height:100%; + border:1px solid #FFF; + border-bottom:1px solid #000; + font-weight:bold; + overflow:hidden; + padding:4px; +} + +.yui-panel .bd { + overflow:hidden; + padding:4px; +} + +.yui-panel .bd p { + margin:0 0 1em; +} + +.yui-panel .container-close { + position:absolute; + top:5px; + right:4px; + z-index:6; + height:12px; + width:12px; + margin:0px; + padding:0px; + background:url(close12_1.gif) no-repeat; + cursor:pointer; + visibility:inherit; +} + +.yui-panel .ft { + padding:4px; + overflow:hidden; +} + +.yui-simple-dialog .bd .yui-icon { + background-repeat:no-repeat; + width:16px; + height:16px; + margin-right:10px; + float:left; +} + +.yui-simple-dialog .bd span.blckicon { + background: url("blck16_1.gif") no-repeat; +} + +.yui-simple-dialog .bd span.alrticon { + background: url("alrt16_1.gif") no-repeat; +} + +.yui-simple-dialog .bd span.hlpicon { + background: url("hlp16_1.gif") no-repeat; +} + +.yui-simple-dialog .bd span.infoicon { + background: url("info16_1.gif") no-repeat; +} + +.yui-simple-dialog .bd span.warnicon { + background: url("warn16_1.gif") no-repeat; +} + +.yui-simple-dialog .bd span.tipicon { + background: url("tip16_1.gif") no-repeat; +} + +.yui-dialog .ft, .simple-dialog .ft { + padding-bottom:5px; + padding-right:5px; + text-align:right; +} + +.yui-dialog form, .yui-simple-dialog form { + margin:0; +} + +.button-group button { + font:100 76% verdana; + text-decoration:none; + background-color: #E4E4E4; + color: #333; + cursor: hand; + vertical-align: middle; + border: 2px solid #797979; + border-top-color:#FFF; + border-left-color:#FFF; + margin:2px; + padding:2px; +} + +.button-group button.default { + font-weight:bold; +} + +.button-group button:hover, .button-group button.hover { + border:2px solid #90A029; + background-color:#EBF09E; + border-top-color:#FFF; + border-left-color:#FFF; +} + +.button-group button:active { + border:2px solid #E4E4E4; + background-color:#BBB; + border-top-color:#333; + border-left-color:#333; +} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif new file mode 100644 index 0000000..4645c8f --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif new file mode 100644 index 0000000..22f697a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif new file mode 100644 index 0000000..8f0be2b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif new file mode 100644 index 0000000..d679df5 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/container/container-debug.js b/interface/ispconfig/interface/js/yui/container/container-debug.js new file mode 100644 index 0000000..4cbedb0 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container-debug.js @@ -0,0 +1,4752 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } + if (!owner) { YAHOO.log("No owner specified for Config object", "error"); } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + YAHOO.log("Firing Config event: " + key + "=" + value, "info"); + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + YAHOO.log("Added property: " + key, "info"); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + YAHOO.log("setProperty: " + key + "=" + value, "info"); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + YAHOO.log("queueProperty: " + key + "=" + value, "info"); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + YAHOO.log("Config event queue: " + this.outputEventQueue(), "info"); + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* The Container family of components is designed to enable developers to create different kinds of content-containing modules on the web. Module and Overlay are the most basic containers, and they can be used directly or extended to build custom containers. Also part of the Container family are four UI controls that extend Module and Overlay: Tooltip, Panel, Dialog, and SimpleDialog. +* @module container +* @title Container +* @requires yahoo,dom,event,dragdrop,animation +*/ + +/** +* Module is a JavaScript representation of the Standard Module Format. Standard Module Format is a simple standard for markup containers where child nodes representing the header, body, and footer of the content are denoted using the CSS classes "hd", "bd", and "ft" respectively. Module is the base class for all other classes in the YUI Container package. +* @namespace YAHOO.widget +* @class Module +* @constructor +* @param {String} el The element ID representing the Module <em>OR</em> +* @param {HTMLElement} el The element representing the Module +* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. +*/ +YAHOO.widget.Module = function(el, userConfig) { + if (el) { + this.init(el, userConfig); + } else { + YAHOO.log("No element or element ID specified for Module instantiation", "error"); + } +}; + +/** +* Constant representing the prefix path to use for non-secure images +* @property YAHOO.widget.Module.IMG_ROOT +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT = null; + +/** +* Constant representing the prefix path to use for securely served images +* @property YAHOO.widget.Module.IMG_ROOT_SSL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT_SSL = null; + +/** +* Constant for the default CSS class name that represents a Module +* @property YAHOO.widget.Module.CSS_MODULE +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_MODULE = "module"; + +/** +* Constant representing the module header +* @property YAHOO.widget.Module.CSS_HEADER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_HEADER = "hd"; + +/** +* Constant representing the module body +* @property YAHOO.widget.Module.CSS_BODY +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_BODY = "bd"; + +/** +* Constant representing the module footer +* @property YAHOO.widget.Module.CSS_FOOTER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_FOOTER = "ft"; + +/** +* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size +* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;"; + +/** +* Singleton CustomEvent fired when the font size is changed in the browser. +* Opera's "zoom" functionality currently does not support text size detection. +* @event YAHOO.widget.Module.textResizeEvent +*/ +YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize"); + +YAHOO.widget.Module.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.Module, + + /** + * The main module element that contains the header, body, and footer + * @property element + * @type HTMLElement + */ + element : null, + + /** + * The header element, denoted with CSS class "hd" + * @property header + * @type HTMLElement + */ + header : null, + + /** + * The body element, denoted with CSS class "bd" + * @property body + * @type HTMLElement + */ + body : null, + + /** + * The footer element, denoted with CSS class "ft" + * @property footer + * @type HTMLElement + */ + footer : null, + + /** + * The id of the element + * @property id + * @type String + */ + id : null, + + /** + * The String representing the image root + * @property imageRoot + * @type String + */ + imageRoot : YAHOO.widget.Module.IMG_ROOT, + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + * @method initEvents + */ + initEvents : function() { + + /** + * CustomEvent fired prior to class initalization. + * @event beforeInitEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit"); + + /** + * CustomEvent fired after class initalization. + * @event initEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.initEvent = new YAHOO.util.CustomEvent("init"); + + /** + * CustomEvent fired when the Module is appended to the DOM + * @event appendEvent + */ + this.appendEvent = new YAHOO.util.CustomEvent("append"); + + /** + * CustomEvent fired before the Module is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * CustomEvent fired after the Module is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * CustomEvent fired when the header content of the Module is modified + * @event changeHeaderEvent + * @param {String/HTMLElement} content String/element representing the new header content + */ + this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader"); + + /** + * CustomEvent fired when the body content of the Module is modified + * @event changeBodyEvent + * @param {String/HTMLElement} content String/element representing the new body content + */ + this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody"); + + /** + * CustomEvent fired when the footer content of the Module is modified + * @event changeFooterEvent + * @param {String/HTMLElement} content String/element representing the new footer content + */ + this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter"); + + /** + * CustomEvent fired when the content of the Module is modified + * @event changeContentEvent + */ + this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent"); + + /** + * CustomEvent fired when the Module is destroyed + * @event destroyEvent + */ + this.destroyEvent = new YAHOO.util.CustomEvent("destroy"); + + /** + * CustomEvent fired before the Module is shown + * @event beforeShowEvent + */ + this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow"); + + /** + * CustomEvent fired after the Module is shown + * @event showEvent + */ + this.showEvent = new YAHOO.util.CustomEvent("show"); + + /** + * CustomEvent fired before the Module is hidden + * @event beforeHideEvent + */ + this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide"); + + /** + * CustomEvent fired after the Module is hidden + * @event hideEvent + */ + this.hideEvent = new YAHOO.util.CustomEvent("hide"); + }, + + /** + * String representing the current user-agent platform + * @property platform + * @type String + */ + platform : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) { + return "windows"; + } else if (ua.indexOf("macintosh") != -1) { + return "mac"; + } else { + return false; + } + }(), + + /** + * String representing the current user-agent browser + * @property browser + * @type String + */ + browser : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(), + + /** + * Boolean representing whether or not the current browsing context is secure (https) + * @property isSecure + * @type Boolean + */ + isSecure : function() { + if (window.location.href.toLowerCase().indexOf("https") === 0) { + return true; + } else { + return false; + } + }(), + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + */ + initDefaultConfig : function() { + // Add properties // + + /** + * Specifies whether the Module is visible on the page. + * @config visible + * @type Boolean + * @default true + */ + this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } ); + + /** + * Object or array of objects representing the ContainerEffect classes that are active for animating the container. + * @config effect + * @type Object + * @default null + */ + this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } ); + + /** + * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document + * @config monitorresize + * @type Boolean + * @default true + */ + this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } ); + }, + + /** + * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. + * @method init + * @param {String} el The element ID representing the Module <em>OR</em> + * @param {HTMLElement} el The element representing the Module + * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. + */ + init : function(el, userConfig) { + + this.initEvents(); + + this.beforeInitEvent.fire(YAHOO.widget.Module); + + /** + * The Module's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + if (this.isSecure) { + this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL; + } + + if (typeof el == "string") { + var elId = el; + + el = document.getElementById(el); + if (! el) { + el = document.createElement("div"); + el.id = elId; + } + } + + this.element = el; + + if (el.id) { + this.id = el.id; + } + + var childNodes = this.element.childNodes; + + if (childNodes) { + for (var i=0;i<childNodes.length;i++) { + var child = childNodes[i]; + switch (child.className) { + case YAHOO.widget.Module.CSS_HEADER: + this.header = child; + break; + case YAHOO.widget.Module.CSS_BODY: + this.body = child; + break; + case YAHOO.widget.Module.CSS_FOOTER: + this.footer = child; + break; + } + } + } + + this.initDefaultConfig(); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Module.CSS_MODULE); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + // Subscribe to the fireQueue() method of Config so that any queued configuration changes are + // excecuted upon render of the Module + if (! YAHOO.util.Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) { + this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true); + } + + this.initEvent.fire(YAHOO.widget.Module); + }, + + /** + * Initialized an empty IFRAME that is placed out of the visible area that can be used to detect text resize. + * @method initResizeMonitor + */ + initResizeMonitor : function() { + + if(this.browser != "opera") { + + var resizeMonitor = document.getElementById("_yuiResizeMonitor"); + + if (! resizeMonitor) { + + resizeMonitor = document.createElement("iframe"); + + var bIE = (this.browser.indexOf("ie") === 0); + + if(this.isSecure && YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL && bIE) { + resizeMonitor.src = YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL; + } + + resizeMonitor.id = "_yuiResizeMonitor"; + resizeMonitor.style.visibility = "hidden"; + + document.body.appendChild(resizeMonitor); + + resizeMonitor.style.width = "10em"; + resizeMonitor.style.height = "10em"; + resizeMonitor.style.position = "absolute"; + + var nLeft = -1 * resizeMonitor.offsetWidth; + var nTop = -1 * resizeMonitor.offsetHeight; + + resizeMonitor.style.top = nTop + "px"; + resizeMonitor.style.left = nLeft + "px"; + resizeMonitor.style.borderStyle = "none"; + resizeMonitor.style.borderWidth = "0"; + YAHOO.util.Dom.setStyle(resizeMonitor, "opacity", "0"); + + resizeMonitor.style.visibility = "visible"; + + if(!bIE) { + + var doc = resizeMonitor.contentWindow.document; + + doc.open(); + doc.close(); + + } + } + + var fireTextResize = function() { + YAHOO.widget.Module.textResizeEvent.fire(); + }; + + if(resizeMonitor && resizeMonitor.contentWindow) { + this.resizeMonitor = resizeMonitor; + + YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize, this, true); + + if (! YAHOO.widget.Module.textResizeInitialized) { + if (! YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow, "resize", fireTextResize)) { + // This will fail in IE if document.domain has changed, so we must change the listener to + // use the resizeMonitor element instead + YAHOO.util.Event.addListener(this.resizeMonitor, "resize", fireTextResize); + } + YAHOO.widget.Module.textResizeInitialized = true; + } + } + + } + + }, + + /** + * Event handler fired when the resize monitor element is resized. + * @method onDomResize + * @param {DOMEvent} e The DOM resize event + * @param {Object} obj The scope object passed to the handler + */ + onDomResize : function(e, obj) { + + var nLeft = -1 * this.resizeMonitor.offsetWidth, + nTop = -1 * this.resizeMonitor.offsetHeight; + + this.resizeMonitor.style.top = nTop + "px"; + this.resizeMonitor.style.left = nLeft + "px"; + + }, + + /** + * Sets the Module's header content to the HTML specified, or appends the passed element to the header. If no header is present, one will be automatically created. + * @method setHeader + * @param {String} headerContent The HTML used to set the header <em>OR</em> + * @param {HTMLElement} headerContent The HTMLElement to append to the header + */ + setHeader : function(headerContent) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + if (typeof headerContent == "string") { + this.header.innerHTML = headerContent; + } else { + this.header.innerHTML = ""; + this.header.appendChild(headerContent); + } + + this.changeHeaderEvent.fire(headerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the header. If no header is present, one will be automatically created. + * @method appendToHeader + * @param {HTMLElement} element The element to append to the header + */ + appendToHeader : function(element) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + this.header.appendChild(element); + this.changeHeaderEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created. + * @method setBody + * @param {String} bodyContent The HTML used to set the body <em>OR</em> + * @param {HTMLElement} bodyContent The HTMLElement to append to the body + */ + setBody : function(bodyContent) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + if (typeof bodyContent == "string") + { + this.body.innerHTML = bodyContent; + } else { + this.body.innerHTML = ""; + this.body.appendChild(bodyContent); + } + + this.changeBodyEvent.fire(bodyContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the body. If no body is present, one will be automatically created. + * @method appendToBody + * @param {HTMLElement} element The element to append to the body + */ + appendToBody : function(element) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + this.body.appendChild(element); + this.changeBodyEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method setFooter + * @param {String} footerContent The HTML used to set the footer <em>OR</em> + * @param {HTMLElement} footerContent The HTMLElement to append to the footer + */ + setFooter : function(footerContent) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + if (typeof footerContent == "string") { + this.footer.innerHTML = footerContent; + } else { + this.footer.innerHTML = ""; + this.footer.appendChild(footerContent); + } + + this.changeFooterEvent.fire(footerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method appendToFooter + * @param {HTMLElement} element The element to append to the footer + */ + appendToFooter : function(element) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + this.footer.appendChild(element); + this.changeFooterEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. + * @method render + * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> + * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering + * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container. + * @return {Boolean} Success or failure of the render + */ + render : function(appendToNode, moduleElement) { + this.beforeRenderEvent.fire(); + + if (! moduleElement) { + moduleElement = this.element; + } + + var me = this; + var appendTo = function(element) { + if (typeof element == "string") { + element = document.getElementById(element); + } + + if (element) { + element.appendChild(me.element); + me.appendEvent.fire(); + } + }; + + if (appendToNode) { + appendTo(appendToNode); + } else { // No node was passed in. If the element is not pre-marked up, this fails + if (! YAHOO.util.Dom.inDocument(this.element)) { + YAHOO.log("Render failed. Must specify appendTo node if Module isn't already in the DOM.", "error"); + return false; + } + } + + // Need to get everything into the DOM if it isn't already + + if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) { + // There is a header, but it's not in the DOM yet... need to add it + var firstChild = moduleElement.firstChild; + if (firstChild) { // Insert before first child if exists + moduleElement.insertBefore(this.header, firstChild); + } else { // Append to empty body because there are no children + moduleElement.appendChild(this.header); + } + } + + if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) { + // There is a body, but it's not in the DOM yet... need to add it + if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM + moduleElement.insertBefore(this.body, this.footer); + } else { // Append to element because there is no footer + moduleElement.appendChild(this.body); + } + } + + if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) { + // There is a footer, but it's not in the DOM yet... need to add it + moduleElement.appendChild(this.footer); + } + + this.renderEvent.fire(); + return true; + }, + + /** + * Removes the Module element from the DOM and sets all child elements to null. + * @method destroy + */ + destroy : function() { + var parent; + + if (this.element) { + YAHOO.util.Event.purgeElement(this.element, true); + parent = this.element.parentNode; + } + if (parent) { + parent.removeChild(this.element); + } + + this.element = null; + this.header = null; + this.body = null; + this.footer = null; + + for (var e in this) { + if (e instanceof YAHOO.util.CustomEvent) { + e.unsubscribeAll(); + } + } + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this); + + this.destroyEvent.fire(); + }, + + /** + * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after. + * @method show + */ + show : function() { + this.cfg.setProperty("visible", true); + }, + + /** + * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after. + * @method hide + */ + hide : function() { + this.cfg.setProperty("visible", false); + }, + + // BUILT-IN EVENT HANDLERS FOR MODULE // + + /** + * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none". + * This method is responsible for firing showEvent and hideEvent. + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configVisible + */ + configVisible : function(type, args, obj) { + var visible = args[0]; + if (visible) { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } else { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + }, + + /** + * Default event handler for the "monitorresize" configuration property + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configMonitorResize + */ + configMonitorResize : function(type, args, obj) { + var monitor = args[0]; + if (monitor) { + this.initResizeMonitor(); + } else { + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true); + this.resizeMonitor = null; + } + } +}; + +/** +* Returns a String representation of the Object. +* @method toString +* @return {String} The string representation of the Module +*/ +YAHOO.widget.Module.prototype.toString = function() { + return "Module " + this.id; +}; + +/** +* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements. +* @namespace YAHOO.widget +* @class Overlay +* @extends YAHOO.widget.Module +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details. +* @constructor +*/ +YAHOO.widget.Overlay = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module); + +/** +* The URL that will be placed in the iframe +* @property YAHOO.widget.Overlay.IFRAME_SRC +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;"; + +/** +* Constant representing the top left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_LEFT = "tl"; + +/** +* Constant representing the top right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_RIGHT = "tr"; + +/** +* Constant representing the top bottom left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_LEFT = "bl"; + +/** +* Constant representing the bottom right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_RIGHT = "br"; + +/** +* Constant representing the default CSS class used for an Overlay +* @property YAHOO.widget.Overlay.CSS_OVERLAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Overlay.prototype.init = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Overlay); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + if (this.platform == "mac" && this.browser == "gecko") { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) { + this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) { + this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true); + } + } + + this.initEvent.fire(YAHOO.widget.Overlay); + +}; + +/** +* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class. +* @method initEvents +*/ +YAHOO.widget.Overlay.prototype.initEvents = function() { + YAHOO.widget.Overlay.superclass.initEvents.call(this); + + /** + * CustomEvent fired before the Overlay is moved. + * @event beforeMoveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this); + + /** + * CustomEvent fired after the Overlay is moved. + * @event moveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.moveEvent = new YAHOO.util.CustomEvent("move", this); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Overlay.prototype.initDefaultConfig = function() { + YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this); + + // Add overlay config properties // + + /** + * The absolute x-coordinate position of the Overlay + * @config x + * @type Number + * @default null + */ + this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The absolute y-coordinate position of the Overlay + * @config y + * @type Number + * @default null + */ + this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * An array with the absolute x and y positions of the Overlay + * @config xy + * @type Number[] + * @default null + */ + this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner. + * @config context + * @type Array + * @default null + */ + this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * True if the Overlay should be anchored to the center of the viewport. + * @config fixedcenter + * @type Boolean + * @default false + */ + this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } ); + + /** + * CSS width of the Overlay. + * @config width + * @type String + * @default null + */ + this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS height of the Overlay. + * @config height + * @type String + * @default null + */ + this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS z-index of the Overlay. + * @config zIndex + * @type Number + * @default null + */ + this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } ); + + /** + * True if the Overlay should be prevented from being positioned out of the viewport. + * @config constraintoviewport + * @type Boolean + * @default false + */ + this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } ); + + /** + * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below). + * @config iframe + * @type Boolean + * @default true for IE6 and below, false for all others + */ + this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } ); +}; + +/** +* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]); +* @method moveTo +* @param {Number} x The Overlay's new x position +* @param {Number} y The Overlay's new y position +*/ +YAHOO.widget.Overlay.prototype.moveTo = function(x, y) { + this.cfg.setProperty("xy",[x,y]); +}; + +/** +* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method hideMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "show-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "hide-scrollbars"); +}; + +/** +* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method showMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "show-scrollbars"); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent. +* @method configVisible +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) { + var visible = args[0]; + var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility"); + + if (currentVis == "inherit") { + var e = this.element.parentNode; + while (e.nodeType != 9 && e.nodeType != 11) { + currentVis = YAHOO.util.Dom.getStyle(e, "visibility"); + if (currentVis != "inherit") { break; } + e = e.parentNode; + } + if (currentVis == "inherit") { + currentVis = "visible"; + } + } + + var effect = this.cfg.getProperty("effect"); + + var effectInstances = []; + if (effect) { + if (effect instanceof Array) { + for (var i=0;i<effect.length;i++) { + var eff = effect[i]; + effectInstances[effectInstances.length] = eff.effect(this, eff.duration); + } + } else { + effectInstances[effectInstances.length] = effect.effect(this, effect.duration); + } + } + + var isMacGecko = (this.platform == "mac" && this.browser == "gecko"); + + if (visible) { // Show + if (isMacGecko) { + this.showMacGeckoScrollbars(); + } + + if (effect) { // Animate in + if (visible) { // Animate in if not showing + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + for (var j=0;j<effectInstances.length;j++) { + var ei = effectInstances[j]; + if (j === 0 && ! YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)) { + ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true); // Delegate showEvent until end of animateInComplete + } + ei.animateIn(); + } + } + } + } else { // Show + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "visible"); + this.cfg.refireEvent("iframe"); + this.showEvent.fire(); + } + } + + } else { // Hide + if (isMacGecko) { + this.hideMacGeckoScrollbars(); + } + + if (effect) { // Animate out if showing + if (currentVis == "visible") { + this.beforeHideEvent.fire(); + for (var k=0;k<effectInstances.length;k++) { + var h = effectInstances[k]; + if (k === 0 && ! YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)) { + h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true); // Delegate hideEvent until end of animateOutComplete + } + h.animateOut(); + } + } else if (currentVis === "") { + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + } + } else { // Simple hide + if (currentVis == "visible" || currentVis === "") { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + this.cfg.refireEvent("iframe"); + this.hideEvent.fire(); + } + } + } +}; + +/** +* Center event handler used for centering on scroll/resize, but only if the Overlay is visible +* @method doCenterOnDOMEvent +*/ +YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent = function() { + if (this.cfg.getProperty("visible")) { + this.center(); + } +}; + +/** +* The default event handler fired when the "fixedcenter" property is changed. +* @method configFixedCenter +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configFixedCenter = function(type, args, obj) { + var val = args[0]; + + if (val) { + this.center(); + + if (! YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent, this.center, this)) { + this.beforeShowEvent.subscribe(this.center, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowScrollEvent.subscribe( this.doCenterOnDOMEvent, this, true); + } + } else { + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configzIndex = function(type, args, obj) { + var zIndex = args[0]; + + var el = this.element; + + if (! zIndex) { + zIndex = YAHOO.util.Dom.getStyle(el, "zIndex"); + if (! zIndex || isNaN(zIndex)) { + zIndex = 0; + } + } + + if (this.iframe) { + if (zIndex <= 0) { + zIndex = 1; + } + YAHOO.util.Dom.setStyle(this.iframe, "zIndex", (zIndex-1)); + } + + YAHOO.util.Dom.setStyle(el, "zIndex", zIndex); + this.cfg.setProperty("zIndex", zIndex, true); +}; + +/** +* The default event handler fired when the "xy" property is changed. +* @method configXY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configXY = function(type, args, obj) { + var pos = args[0]; + var x = pos[0]; + var y = pos[1]; + + this.cfg.setProperty("x", x); + this.cfg.setProperty("y", y); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.log("xy: " + [x,y], "iframe"); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x,y]); +}; + +/** +* The default event handler fired when the "x" property is changed. +* @method configX +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configX = function(type, args, obj) { + var x = args[0]; + var y = this.cfg.getProperty("y"); + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setX(this.element, x, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* The default event handler fired when the "y" property is changed. +* @method configY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configY = function(type, args, obj) { + var x = this.cfg.getProperty("x"); + var y = args[0]; + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setY(this.element, y, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* Shows the iframe shim, if it has been enabled +* @method showIframe +*/ +YAHOO.widget.Overlay.prototype.showIframe = function() { + if (this.iframe) { + this.iframe.style.display = "block"; + } +}; + +/** +* Hides the iframe shim, if it has been enabled +* @method hideIframe +*/ +YAHOO.widget.Overlay.prototype.hideIframe = function() { + if (this.iframe) { + this.iframe.style.display = "none"; + } +}; + +/** +* The default event handler fired when the "iframe" property is changed. +* @method configIframe +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configIframe = function(type, args, obj) { + + var val = args[0]; + + if (val) { // IFRAME shim is enabled + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, this.showIframe, this)) { + this.showEvent.subscribe(this.showIframe, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, this.hideIframe, this)) { + this.hideEvent.subscribe(this.hideIframe, this, true); + } + + var x = this.cfg.getProperty("x"); + var y = this.cfg.getProperty("y"); + + if (! x || ! y) { + this.syncPosition(); + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + } + + YAHOO.log("iframe positioning to: " + [x,y], "iframe"); + + if (! isNaN(x) && ! isNaN(y)) { + if (! this.iframe) { + this.iframe = document.createElement("iframe"); + if (this.isSecure) { + this.iframe.src = YAHOO.widget.Overlay.IFRAME_SRC; + } + + var parent = this.element.parentNode; + if (parent) { + parent.appendChild(this.iframe); + } else { + document.body.appendChild(this.iframe); + } + + YAHOO.util.Dom.setStyle(this.iframe, "position", "absolute"); + YAHOO.util.Dom.setStyle(this.iframe, "border", "none"); + YAHOO.util.Dom.setStyle(this.iframe, "margin", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "padding", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + if (this.cfg.getProperty("visible")) { + this.showIframe(); + } else { + this.hideIframe(); + } + } + + var iframeDisplay = YAHOO.util.Dom.getStyle(this.iframe, "display"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "block"; + } + + YAHOO.util.Dom.setXY(this.iframe, [x,y]); + + var width = this.element.clientWidth; + var height = this.element.clientHeight; + + YAHOO.util.Dom.setStyle(this.iframe, "width", (width+2) + "px"); + YAHOO.util.Dom.setStyle(this.iframe, "height", (height+2) + "px"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "none"; + } + } + } else { + if (this.iframe) { + this.iframe.style.display = "none"; + } + this.showEvent.unsubscribe(this.showIframe, this); + this.hideEvent.unsubscribe(this.hideIframe, this); + } +}; + + +/** +* The default event handler fired when the "constraintoviewport" property is changed. +* @method configConstrainToViewport +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configConstrainToViewport = function(type, args, obj) { + var val = args[0]; + if (val) { + if (! YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) { + this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true); + } + } else { + this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configContext = function(type, args, obj) { + var contextArgs = args[0]; + + if (contextArgs) { + var contextEl = contextArgs[0]; + var elementMagnetCorner = contextArgs[1]; + var contextMagnetCorner = contextArgs[2]; + + if (contextEl) { + if (typeof contextEl == "string") { + this.cfg.setProperty("context", [document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner], true); + } + + if (elementMagnetCorner && contextMagnetCorner) { + this.align(elementMagnetCorner, contextMagnetCorner); + } + } + } +}; + + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Aligns the Overlay to its context element using the specified corner points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, and BOTTOM_RIGHT. +* @method align +* @param {String} elementAlign The String representing the corner of the Overlay that should be aligned to the context element +* @param {String} contextAlign The corner of the context element that the elementAlign corner should stick to. +*/ +YAHOO.widget.Overlay.prototype.align = function(elementAlign, contextAlign) { + var contextArgs = this.cfg.getProperty("context"); + if (contextArgs) { + var context = contextArgs[0]; + + var element = this.element; + var me = this; + + if (! elementAlign) { + elementAlign = contextArgs[1]; + } + + if (! contextAlign) { + contextAlign = contextArgs[2]; + } + + if (element && context) { + var contextRegion = YAHOO.util.Dom.getRegion(context); + + var doAlign = function(v,h) { + switch (elementAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + me.moveTo(h,v); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + me.moveTo(h-element.offsetWidth,v); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + me.moveTo(h,v-element.offsetHeight); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + me.moveTo(h-element.offsetWidth,v-element.offsetHeight); + break; + } + }; + + switch (contextAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + doAlign(contextRegion.top, contextRegion.left); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + doAlign(contextRegion.top, contextRegion.right); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + doAlign(contextRegion.bottom, contextRegion.left); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + doAlign(contextRegion.bottom, contextRegion.right); + break; + } + } + } +}; + +/** +* The default event handler executed when the moveEvent is fired, if the "constraintoviewport" is set to true. +* @method enforceConstraints +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.enforceConstraints = function(type, args, obj) { + var pos = args[0]; + + var x = pos[0]; + var y = pos[1]; + + var offsetHeight = this.element.offsetHeight; + var offsetWidth = this.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + if (x < leftConstraint) { + x = leftConstraint; + } else if (x > rightConstraint) { + x = rightConstraint; + } + + if (y < topConstraint) { + y = topConstraint; + } else if (y > bottomConstraint) { + y = bottomConstraint; + } + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + this.cfg.setProperty("xy", [x,y], true); +}; + +/** +* Centers the container in the viewport. +* @method center +*/ +YAHOO.widget.Overlay.prototype.center = function() { + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var viewPortWidth = YAHOO.util.Dom.getClientWidth(); + var viewPortHeight = YAHOO.util.Dom.getClientHeight(); + + var elementWidth = this.element.offsetWidth; + var elementHeight = this.element.offsetHeight; + + var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX; + var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY; + + this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]); + + this.cfg.refireEvent("iframe"); +}; + +/** +* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop. +* @method syncPosition +*/ +YAHOO.widget.Overlay.prototype.syncPosition = function() { + var pos = YAHOO.util.Dom.getXY(this.element); + this.cfg.setProperty("x", pos[0], true); + this.cfg.setProperty("y", pos[1], true); + this.cfg.setProperty("xy", pos, true); +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + me.cfg.refireEvent("context"); + }, 0); +}; + +/** +* Removes the Overlay element from the DOM and sets all child elements to null. +* @method destroy +*/ +YAHOO.widget.Overlay.prototype.destroy = function() { + if (this.iframe) { + this.iframe.parentNode.removeChild(this.iframe); + } + + this.iframe = null; + + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + + YAHOO.widget.Overlay.superclass.destroy.call(this); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Overlay. +*/ +YAHOO.widget.Overlay.prototype.toString = function() { + return "Overlay " + this.id; +}; + +/** +* A singleton CustomEvent used for reacting to the DOM event for window scroll +* @event YAHOO.widget.Overlay.windowScrollEvent +*/ +YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll"); + +/** +* A singleton CustomEvent used for reacting to the DOM event for window resize +* @event YAHOO.widget.Overlay.windowResizeEvent +*/ +YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize"); + +/** +* The DOM event handler used to fire the CustomEvent for window scroll +* @method YAHOO.widget.Overlay.windowScrollHandler +* @static +* @param {DOMEvent} e The DOM scroll event +*/ +YAHOO.widget.Overlay.windowScrollHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.scrollEnd) { + window.scrollEnd = -1; + } + clearTimeout(window.scrollEnd); + window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1); + } else { + YAHOO.widget.Overlay.windowScrollEvent.fire(); + } +}; + +/** +* The DOM event handler used to fire the CustomEvent for window resize +* @method YAHOO.widget.Overlay.windowResizeHandler +* @static +* @param {DOMEvent} e The DOM resize event +*/ +YAHOO.widget.Overlay.windowResizeHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.resizeEnd) { + window.resizeEnd = -1; + } + clearTimeout(window.resizeEnd); + window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100); + } else { + YAHOO.widget.Overlay.windowResizeEvent.fire(); + } +}; + +/** +* A boolean that indicated whether the window resize and scroll events have already been subscribed to. +* @property YAHOO.widget.Overlay._initialized +* @private +* @type Boolean +*/ +YAHOO.widget.Overlay._initialized = null; + +if (YAHOO.widget.Overlay._initialized === null) { + YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler); + YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler); + + YAHOO.widget.Overlay._initialized = true; +} + +/** +* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget +* @namespace YAHOO.widget +* @class OverlayManager +* @constructor +* @param {Array} overlays Optional. A collection of Overlays to register with the manager. +* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager +*/ +YAHOO.widget.OverlayManager = function(userConfig) { + this.init(userConfig); +}; + +/** +* The CSS class representing a focused Overlay +* @property YAHOO.widget.OverlayManager.CSS_FOCUSED +* @static +* @final +* @type String +*/ +YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused"; + +YAHOO.widget.OverlayManager.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.OverlayManager, + + /** + * The array of Overlays that are currently registered + * @property overlays + * @type YAHOO.widget.Overlay[] + */ + overlays : null, + + /** + * Initializes the default configuration of the OverlayManager + * @method initDefaultConfig + */ + initDefaultConfig : function() { + /** + * The collection of registered Overlays in use by the OverlayManager + * @config overlays + * @type YAHOO.widget.Overlay[] + * @default null + */ + this.cfg.addProperty("overlays", { suppressEvent:true } ); + + /** + * The default DOM event that should be used to focus an Overlay + * @config focusevent + * @type String + * @default "mousedown" + */ + this.cfg.addProperty("focusevent", { value:"mousedown" } ); + }, + + /** + * Initializes the OverlayManager + * @method init + * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager. + * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager + */ + init : function(userConfig) { + /** + * The OverlayManager's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + this.cfg.fireQueue(); + + /** + * The currently activated Overlay + * @property activeOverlay + * @private + * @type YAHOO.widget.Overlay + */ + var activeOverlay = null; + + /** + * Returns the currently focused Overlay + * @method getActive + * @return {YAHOO.widget.Overlay} The currently focused Overlay + */ + this.getActive = function() { + return activeOverlay; + }; + + /** + * Focuses the specified Overlay + * @method focus + * @param {YAHOO.widget.Overlay} overlay The Overlay to focus + * @param {String} overlay The id of the Overlay to focus + */ + this.focus = function(overlay) { + var o = this.find(overlay); + if (o) { + this.blurAll(); + activeOverlay = o; + YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + this.overlays.sort(this.compareZIndexDesc); + var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex"); + if (! isNaN(topZIndex) && this.overlays[0] != overlay) { + activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2)); + } + this.overlays.sort(this.compareZIndexDesc); + } + }; + + /** + * Removes the specified Overlay from the manager + * @method remove + * @param {YAHOO.widget.Overlay} overlay The Overlay to remove + * @param {String} overlay The id of the Overlay to remove + */ + this.remove = function(overlay) { + var o = this.find(overlay); + if (o) { + var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex"); + o.cfg.setProperty("zIndex", -1000, true); + this.overlays.sort(this.compareZIndexDesc); + this.overlays = this.overlays.slice(0, this.overlays.length-1); + o.cfg.setProperty("zIndex", originalZ, true); + + o.cfg.setProperty("manager", null); + o.focusEvent = null; + o.blurEvent = null; + o.focus = null; + o.blur = null; + } + }; + + /** + * Removes focus from all registered Overlays in the manager + * @method blurAll + */ + this.blurAll = function() { + activeOverlay = null; + for (var o=0;o<this.overlays.length;o++) { + YAHOO.util.Dom.removeClass(this.overlays[o].element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + } + }; + + var overlays = this.cfg.getProperty("overlays"); + + if (! this.overlays) { + this.overlays = []; + } + + if (overlays) { + this.register(overlays); + this.overlays.sort(this.compareZIndexDesc); + } + }, + + /** + * Registers an Overlay or an array of Overlays with the manager. Upon registration, the Overlay receives functions for focus and blur, along with CustomEvents for each. + * @method register + * @param {YAHOO.widget.Overlay} overlay An Overlay to register with the manager. + * @param {YAHOO.widget.Overlay[]} overlay An array of Overlays to register with the manager. + * @return {Boolean} True if any Overlays are registered. + */ + register : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + overlay.cfg.addProperty("manager", { value:this } ); + + overlay.focusEvent = new YAHOO.util.CustomEvent("focus"); + overlay.blurEvent = new YAHOO.util.CustomEvent("blur"); + + var mgr=this; + + overlay.focus = function() { + mgr.focus(this); + this.focusEvent.fire(); + }; + + overlay.blur = function() { + mgr.blurAll(); + this.blurEvent.fire(); + }; + + var focusOnDomEvent = function(e,obj) { + overlay.focus(); + }; + + var focusevent = this.cfg.getProperty("focusevent"); + YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true); + + var zIndex = YAHOO.util.Dom.getStyle(overlay.element, "zIndex"); + if (! isNaN(zIndex)) { + overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10)); + } else { + overlay.cfg.setProperty("zIndex", 0); + } + + this.overlays.push(overlay); + return true; + } else if (overlay instanceof Array) { + var regcount = 0; + for (var i=0;i<overlay.length;i++) { + if (this.register(overlay[i])) { + regcount++; + } + } + if (regcount > 0) { + return true; + } + } else { + return false; + } + }, + + /** + * Attempts to locate an Overlay by instance or ID. + * @method find + * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager + * @param {String} overlay An Overlay id to locate within the manager + * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located. + */ + find : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + for (var o=0;o<this.overlays.length;o++) { + if (this.overlays[o] == overlay) { + return this.overlays[o]; + } + } + } else if (typeof overlay == "string") { + for (var p=0;p<this.overlays.length;p++) { + if (this.overlays[p].id == overlay) { + return this.overlays[p]; + } + } + } + return null; + }, + + /** + * Used for sorting the manager's Overlays by z-index. + * @method compareZIndexDesc + * @private + * @return {Number} 0, 1, or -1, depending on where the Overlay should fall in the stacking order. + */ + compareZIndexDesc : function(o1, o2) { + var zIndex1 = o1.cfg.getProperty("zIndex"); + var zIndex2 = o2.cfg.getProperty("zIndex"); + + if (zIndex1 > zIndex2) { + return -1; + } else if (zIndex1 < zIndex2) { + return 1; + } else { + return 0; + } + }, + + /** + * Shows all Overlays in the manager. + * @method showAll + */ + showAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].show(); + } + }, + + /** + * Hides all Overlays in the manager. + * @method hideAll + */ + hideAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].hide(); + } + }, + + /** + * Returns a string representation of the object. + * @method toString + * @return {String} The string representation of the OverlayManager + */ + toString : function() { + return "OverlayManager"; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key event should be attached +* @param {String} attachTo The element or element ID to which the key event should be attached +* @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (! attachTo) { + YAHOO.log("No attachTo element specified", "error"); + } + if (! keyData) { + YAHOO.log("No keyData specified", "error"); + } + if (! handler) { + YAHOO.log("No handler specified", "error"); + } + + if (! event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; + +/** +* Tooltip is an implementation of Overlay that behaves like an OS tooltip, displaying when the user mouses over a particular element, and disappearing on mouse out. +* @namespace YAHOO.widget +* @class Tooltip +* @extends YAHOO.widget.Overlay +* @constructor +* @param {String} el The element ID representing the Tooltip <em>OR</em> +* @param {HTMLElement} el The element representing the Tooltip +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Tooltip = function(el, userConfig) { + YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Tooltip, YAHOO.widget.Overlay); + +/** +* Constant representing the Tooltip CSS class +* @property YAHOO.widget.Tooltip.CSS_TOOLTIP +* @static +* @final +* @type String +*/ +YAHOO.widget.Tooltip.CSS_TOOLTIP = "yui-tt"; + +/** +* The Tooltip initialization method. This method is automatically called by the constructor. A Tooltip is automatically rendered by the init method, and it also is set to be invisible by default, and constrained to viewport by default as well. +* @method init +* @param {String} el The element ID representing the Tooltip <em>OR</em> +* @param {HTMLElement} el The element representing the Tooltip +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Tooltip. See configuration documentation for more details. +*/ +YAHOO.widget.Tooltip.prototype.init = function(el, userConfig) { + this.logger = YAHOO.widget.Tooltip.logger; + + if (document.readyState && document.readyState != "complete") { + var deferredInit = function() { + this.init(el, userConfig); + }; + YAHOO.util.Event.addListener(window, "load", deferredInit, this, true); + } else { + YAHOO.widget.Tooltip.superclass.init.call(this, el); + + this.beforeInitEvent.fire(YAHOO.widget.Tooltip); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Tooltip.CSS_TOOLTIP); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.cfg.queueProperty("visible",false); + this.cfg.queueProperty("constraintoviewport",true); + + this.setBody(""); + this.render(this.cfg.getProperty("container")); + + this.initEvent.fire(YAHOO.widget.Tooltip); + } +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Tooltip.prototype.initDefaultConfig = function() { + YAHOO.widget.Tooltip.superclass.initDefaultConfig.call(this); + + /** + * Specifies whether the Tooltip should be kept from overlapping its context element. + * @config preventoverlap + * @type Boolean + * @default true + */ + this.cfg.addProperty("preventoverlap", { value:true, validator:this.cfg.checkBoolean, supercedes:["x","y","xy"] } ); + + /** + * The number of milliseconds to wait before showing a Tooltip on mouseover. + * @config showdelay + * @type Number + * @default 200 + */ + this.cfg.addProperty("showdelay", { value:200, handler:this.configShowDelay, validator:this.cfg.checkNumber } ); + + /** + * The number of milliseconds to wait before automatically dismissing a Tooltip after the mouse has been resting on the context element. + * @config autodismissdelay + * @type Number + * @default 5000 + */ + this.cfg.addProperty("autodismissdelay", { value:5000, handler:this.configAutoDismissDelay, validator:this.cfg.checkNumber } ); + + /** + * The number of milliseconds to wait before hiding a Tooltip on mouseover. + * @config hidedelay + * @type Number + * @default 250 + */ + this.cfg.addProperty("hidedelay", { value:250, handler:this.configHideDelay, validator:this.cfg.checkNumber } ); + + /** + * Specifies the Tooltip's text. + * @config text + * @type String + * @default null + */ + this.cfg.addProperty("text", { handler:this.configText, suppressEvent:true } ); + + /** + * Specifies the container element that the Tooltip's markup should be rendered into. + * @config container + * @type HTMLElement/String + * @default document.body + */ + this.cfg.addProperty("container", { value:document.body, handler:this.configContainer } ); + + /** + * Specifies the element or elements that the Tooltip should be anchored to on mouseover. + * @config context + * @type HTMLElement[]/String[] + * @default null + */ + +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "text" property is changed. +* @method configText +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configText = function(type, args, obj) { + var text = args[0]; + if (text) { + this.setBody(text); + } +}; + +/** +* The default event handler fired when the "container" property is changed. +* @method configContainer +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configContainer = function(type, args, obj) { + var container = args[0]; + if (typeof container == 'string') { + this.cfg.setProperty("container", document.getElementById(container), true); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configContext = function(type, args, obj) { + var context = args[0]; + if (context) { + + // Normalize parameter into an array + if (! (context instanceof Array)) { + if (typeof context == "string") { + this.cfg.setProperty("context", [document.getElementById(context)], true); + } else { // Assuming this is an element + this.cfg.setProperty("context", [context], true); + } + context = this.cfg.getProperty("context"); + } + + + // Remove any existing mouseover/mouseout listeners + if (this._context) { + for (var c=0;c<this._context.length;++c) { + var el = this._context[c]; + YAHOO.util.Event.removeListener(el, "mouseover", this.onContextMouseOver); + YAHOO.util.Event.removeListener(el, "mousemove", this.onContextMouseMove); + YAHOO.util.Event.removeListener(el, "mouseout", this.onContextMouseOut); + } + } + + // Add mouseover/mouseout listeners to context elements + this._context = context; + for (var d=0;d<this._context.length;++d) { + var el2 = this._context[d]; + YAHOO.util.Event.addListener(el2, "mouseover", this.onContextMouseOver, this); + YAHOO.util.Event.addListener(el2, "mousemove", this.onContextMouseMove, this); + YAHOO.util.Event.addListener(el2, "mouseout", this.onContextMouseOut, this); + } + } +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +// BEGIN BUILT-IN DOM EVENT HANDLERS // + +/** +* The default event handler fired when the user moves the mouse while over the context element. +* @method onContextMouseMove +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseMove = function(e, obj) { + obj.pageX = YAHOO.util.Event.getPageX(e); + obj.pageY = YAHOO.util.Event.getPageY(e); + +}; + +/** +* The default event handler fired when the user mouses over the context element. +* @method onContextMouseOver +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseOver = function(e, obj) { + + if (obj.hideProcId) { + clearTimeout(obj.hideProcId); + obj.logger.log("Clearing hide timer: " + obj.hideProcId, "time"); + obj.hideProcId = null; + } + + var context = this; + YAHOO.util.Event.addListener(context, "mousemove", obj.onContextMouseMove, obj); + + if (context.title) { + obj._tempTitle = context.title; + context.title = ""; + } + + /** + * The unique process ID associated with the thread responsible for showing the Tooltip. + * @type int + */ + obj.showProcId = obj.doShow(e, context); + obj.logger.log("Setting show tooltip timeout: " + this.showProcId, "time"); +}; + +/** +* The default event handler fired when the user mouses out of the context element. +* @method onContextMouseOut +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseOut = function(e, obj) { + var el = this; + + if (obj._tempTitle) { + el.title = obj._tempTitle; + obj._tempTitle = null; + } + + if (obj.showProcId) { + clearTimeout(obj.showProcId); + obj.logger.log("Clearing show timer: " + obj.showProcId, "time"); + obj.showProcId = null; + } + + if (obj.hideProcId) { + clearTimeout(obj.hideProcId); + obj.logger.log("Clearing hide timer: " + obj.hideProcId, "time"); + obj.hideProcId = null; + } + + + obj.hideProcId = setTimeout(function() { + obj.hide(); + }, obj.cfg.getProperty("hidedelay")); +}; + +// END BUILT-IN DOM EVENT HANDLERS // + +/** +* Processes the showing of the Tooltip by setting the timeout delay and offset of the Tooltip. +* @method doShow +* @param {DOMEvent} e The current DOM event +* @return {Number} The process ID of the timeout function associated with doShow +*/ +YAHOO.widget.Tooltip.prototype.doShow = function(e, context) { + + var yOffset = 25; + if (this.browser == "opera" && context.tagName == "A") { + yOffset += 12; + } + + var me = this; + return setTimeout( + function() { + if (me._tempTitle) { + me.setBody(me._tempTitle); + } else { + me.cfg.refireEvent("text"); + } + + me.logger.log("Show tooltip", "time"); + me.moveTo(me.pageX, me.pageY + yOffset); + if (me.cfg.getProperty("preventoverlap")) { + me.preventOverlap(me.pageX, me.pageY); + } + + YAHOO.util.Event.removeListener(context, "mousemove", me.onContextMouseMove); + + me.show(); + me.hideProcId = me.doHide(); + me.logger.log("Hide tooltip time active: " + me.hideProcId, "time"); + }, + this.cfg.getProperty("showdelay")); +}; + +/** +* Sets the timeout for the auto-dismiss delay, which by default is 5 seconds, meaning that a tooltip will automatically dismiss itself after 5 seconds of being displayed. +* @method doHide +*/ +YAHOO.widget.Tooltip.prototype.doHide = function() { + var me = this; + me.logger.log("Setting hide tooltip timeout", "time"); + return setTimeout( + function() { + me.logger.log("Hide tooltip", "time"); + me.hide(); + }, + this.cfg.getProperty("autodismissdelay")); +}; + +/** +* Fired when the Tooltip is moved, this event handler is used to prevent the Tooltip from overlapping with its context element. +* @method preventOverlay +* @param {Number} pageX The x coordinate position of the mouse pointer +* @param {Number} pageY The y coordinate position of the mouse pointer +*/ +YAHOO.widget.Tooltip.prototype.preventOverlap = function(pageX, pageY) { + + var height = this.element.offsetHeight; + + var elementRegion = YAHOO.util.Dom.getRegion(this.element); + + elementRegion.top -= 5; + elementRegion.left -= 5; + elementRegion.right += 5; + elementRegion.bottom += 5; + + var mousePoint = new YAHOO.util.Point(pageX, pageY); + + this.logger.log("context " + elementRegion, "ttip"); + this.logger.log("mouse " + mousePoint, "ttip"); + + if (elementRegion.contains(mousePoint)) { + this.logger.log("OVERLAP", "warn"); + this.cfg.setProperty("y", (pageY-height-5)); + } +}; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the Tooltip +*/ +YAHOO.widget.Tooltip.prototype.toString = function() { + return "Tooltip " + this.id; +}; + +/** +* Panel is an implementation of Overlay that behaves like an OS window, with a draggable header and an optional close icon at the top right. +* @namespace YAHOO.widget +* @class Panel +* @extends YAHOO.widget.Overlay +* @constructor +* @param {String} el The element ID representing the Panel <em>OR</em> +* @param {HTMLElement} el The element representing the Panel +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Panel. See configuration documentation for more details. +*/ +YAHOO.widget.Panel = function(el, userConfig) { + YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Panel, YAHOO.widget.Overlay); + +/** +* Constant representing the default CSS class used for a Panel +* @property YAHOO.widget.Panel.CSS_PANEL +* @static +* @final +* @type String +*/ +YAHOO.widget.Panel.CSS_PANEL = "yui-panel"; + +/** +* Constant representing the default CSS class used for a Panel's wrapping container +* @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER +* @static +* @final +* @type String +*/ +YAHOO.widget.Panel.CSS_PANEL_CONTAINER = "yui-panel-container"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Panel.prototype.init = function(el, userConfig) { + YAHOO.widget.Panel.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Panel); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Panel.CSS_PANEL); + + this.buildWrapper(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.beforeRenderEvent.subscribe(function() { + var draggable = this.cfg.getProperty("draggable"); + if (draggable) { + if (! this.header) { + this.setHeader(" "); + } + } + }, this, true); + + var me = this; + + var doBlur = function() { + this.blur(); + }; + + this.showMaskEvent.subscribe(function() { + var checkFocusable = function(el) { + if ((el.tagName == "A" || el.tagName == "BUTTON" || el.tagName == "SELECT" || el.tagName == "INPUT" || el.tagName == "TEXTAREA") && el.type != "hidden") { + if (! YAHOO.util.Dom.isAncestor(me.element, el)) { + YAHOO.util.Event.addListener(el, "focus", doBlur, el, true); + return true; + } + } else { + return false; + } + }; + + this.focusableElements = YAHOO.util.Dom.getElementsBy(checkFocusable); + }, this, true); + + this.hideMaskEvent.subscribe(function() { + for (var i=0;i<this.focusableElements.length;i++) { + var el2 = this.focusableElements[i]; + YAHOO.util.Event.removeListener(el2, "focus", doBlur); + } + }, this, true); + + this.beforeShowEvent.subscribe(function() { + this.cfg.refireEvent("underlay"); + }, this, true); + this.initEvent.fire(YAHOO.widget.Panel); +}; + +/** +* Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. +*/ +YAHOO.widget.Panel.prototype.initEvents = function() { + YAHOO.widget.Panel.superclass.initEvents.call(this); + + /** + * CustomEvent fired after the modality mask is shown + * @event showMaskEvent + */ + this.showMaskEvent = new YAHOO.util.CustomEvent("showMask"); + + /** + * CustomEvent fired after the modality mask is hidden + * @event hideMaskEvent + */ + this.hideMaskEvent = new YAHOO.util.CustomEvent("hideMask"); + + /** + * CustomEvent when the Panel is dragged + * @event dragEvent + */ + this.dragEvent = new YAHOO.util.CustomEvent("drag"); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Panel's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Panel.prototype.initDefaultConfig = function() { + YAHOO.widget.Panel.superclass.initDefaultConfig.call(this); + + // Add panel config properties // + + /** + * True if the Panel should display a "close" button + * @config close + * @type Boolean + * @default true + */ + this.cfg.addProperty("close", { value:true, handler:this.configClose, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * True if the Panel should be draggable + * @config draggable + * @type Boolean + * @default true + */ + this.cfg.addProperty("draggable", { value:true, handler:this.configDraggable, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * Sets the type of underlay to display for the Panel. Valid values are "shadow", "matte", and "none". + * @config underlay + * @type String + * @default shadow + */ + this.cfg.addProperty("underlay", { value:"shadow", handler:this.configUnderlay, supercedes:["visible"] } ); + + /** + * True if the Panel should be displayed in a modal fashion, automatically creating a transparent mask over the document that will not be removed until the Panel is dismissed. + * @config modal + * @type Boolean + * @default false + */ + this.cfg.addProperty("modal", { value:false, handler:this.configModal, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * A KeyListener (or array of KeyListeners) that will be enabled when the Panel is shown, and disabled when the Panel is hidden. + * @config keylisteners + * @type YAHOO.util.KeyListener[] + * @default null + */ + this.cfg.addProperty("keylisteners", { handler:this.configKeyListeners, suppressEvent:true, supercedes:["visible"] } ); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Panel. +* @method configClose +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configClose = function(type, args, obj) { + var val = args[0]; + + var doHide = function(e, obj) { + obj.hide(); + }; + + if (val) { + if (! this.close) { + this.close = document.createElement("span"); + YAHOO.util.Dom.addClass(this.close, "container-close"); + this.close.innerHTML = " "; + this.innerElement.appendChild(this.close); + YAHOO.util.Event.addListener(this.close, "click", doHide, this); + } else { + this.close.style.display = "block"; + } + } else { + if (this.close) { + this.close.style.display = "none"; + } + } +}; + +/** +* The default event handler fired when the "draggable" property is changed. +* @method configDraggable +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configDraggable = function(type, args, obj) { + var val = args[0]; + if (val) { + if (this.header) { + YAHOO.util.Dom.setStyle(this.header,"cursor","move"); + this.registerDragDrop(); + } + } else { + if (this.dd) { + this.dd.unreg(); + } + if (this.header) { + YAHOO.util.Dom.setStyle(this.header,"cursor","auto"); + } + } +}; + +/** +* The default event handler fired when the "underlay" property is changed. +* @method configUnderlay +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configUnderlay = function(type, args, obj) { + var val = args[0]; + + switch (val.toLowerCase()) { + case "shadow": + YAHOO.util.Dom.removeClass(this.element, "matte"); + YAHOO.util.Dom.addClass(this.element, "shadow"); + + if (! this.underlay) { // create if not already in DOM + this.underlay = document.createElement("div"); + this.underlay.className = "underlay"; + this.underlay.innerHTML = " "; + this.element.appendChild(this.underlay); + } + + this.sizeUnderlay(); + break; + case "matte": + YAHOO.util.Dom.removeClass(this.element, "shadow"); + YAHOO.util.Dom.addClass(this.element, "matte"); + break; + default: + YAHOO.util.Dom.removeClass(this.element, "shadow"); + YAHOO.util.Dom.removeClass(this.element, "matte"); + break; + } +}; + +/** +* The default event handler fired when the "modal" property is changed. This handler subscribes or unsubscribes to the show and hide events to handle the display or hide of the modality mask. +* @method configModal +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configModal = function(type, args, obj) { + var modal = args[0]; + + if (modal) { + this.buildMask(); + + if (! YAHOO.util.Config.alreadySubscribed( this.beforeShowEvent, this.showMask, this ) ) { + this.beforeShowEvent.subscribe(this.showMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( this.hideEvent, this.hideMask, this) ) { + this.hideEvent.subscribe(this.hideMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( YAHOO.widget.Overlay.windowResizeEvent, this.sizeMask, this ) ) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.sizeMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( this.destroyEvent, this.removeMask, this) ) { + this.destroyEvent.subscribe(this.removeMask, this, true); + } + + this.cfg.refireEvent("zIndex"); + } else { + this.beforeShowEvent.unsubscribe(this.showMask, this); + this.hideEvent.unsubscribe(this.hideMask, this); + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this); + this.destroyEvent.unsubscribe(this.removeMask, this); + } +}; + +/** +* Removes the modality mask. +* @method removeMask +*/ +YAHOO.widget.Panel.prototype.removeMask = function() { + if (this.mask) { + if (this.mask.parentNode) { + this.mask.parentNode.removeChild(this.mask); + } + this.mask = null; + } +}; + +/** +* The default event handler fired when the "keylisteners" property is changed. +* @method configKeyListeners +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configKeyListeners = function(type, args, obj) { + var listeners = args[0]; + + if (listeners) { + if (listeners instanceof Array) { + for (var i=0;i<listeners.length;i++) { + var listener = listeners[i]; + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, listener.enable, listener)) { + this.showEvent.subscribe(listener.enable, listener, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, listener.disable, listener)) { + this.hideEvent.subscribe(listener.disable, listener, true); + this.destroyEvent.subscribe(listener.disable, listener, true); + } + } + } else { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, listeners.enable, listeners)) { + this.showEvent.subscribe(listeners.enable, listeners, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, listeners.disable, listeners)) { + this.hideEvent.subscribe(listeners.disable, listeners, true); + this.destroyEvent.subscribe(listeners.disable, listeners, true); + } + } + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.innerElement; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("underlay"); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.innerElement; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("underlay"); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configzIndex = function(type, args, obj) { + YAHOO.widget.Panel.superclass.configzIndex.call(this, type, args, obj); + + var maskZ = 0; + var currentZ = YAHOO.util.Dom.getStyle(this.element, "zIndex"); + + if (this.mask) { + if (! currentZ || isNaN(currentZ)) { + currentZ = 0; + } + + if (currentZ === 0) { + this.cfg.setProperty("zIndex", 1); + } else { + maskZ = currentZ - 1; + YAHOO.util.Dom.setStyle(this.mask, "zIndex", maskZ); + } + + } +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + + +/** +* Builds the wrapping container around the Panel that is used for positioning the shadow and matte underlays. The container element is assigned to a local instance variable called container, and the element is reinserted inside of it. +* @method buildWrapper +*/ +YAHOO.widget.Panel.prototype.buildWrapper = function() { + var elementParent = this.element.parentNode; + var originalElement = this.element; + + var wrapper = document.createElement("div"); + wrapper.className = YAHOO.widget.Panel.CSS_PANEL_CONTAINER; + wrapper.id = originalElement.id + "_c"; + + if (elementParent) { + elementParent.insertBefore(wrapper, originalElement); + } + + wrapper.appendChild(originalElement); + + this.element = wrapper; + this.innerElement = originalElement; + + YAHOO.util.Dom.setStyle(this.innerElement, "visibility", "inherit"); +}; + +/** +* Adjusts the size of the shadow based on the size of the element. +* @method sizeUnderlay +*/ +YAHOO.widget.Panel.prototype.sizeUnderlay = function() { + if (this.underlay && this.browser != "gecko" && this.browser != "safari") { + this.underlay.style.width = this.innerElement.offsetWidth + "px"; + this.underlay.style.height = this.innerElement.offsetHeight + "px"; + } +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Panel.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Panel.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.sizeUnderlay(); + }, 0); +}; + +/** +* Registers the Panel's header for drag & drop capability. +* @method registerDragDrop +*/ +YAHOO.widget.Panel.prototype.registerDragDrop = function() { + if (this.header) { + this.dd = new YAHOO.util.DD(this.element.id, this.id); + + if (! this.header.id) { + this.header.id = this.id + "_h"; + } + + var me = this; + + this.dd.startDrag = function() { + + if (me.browser == "ie") { + YAHOO.util.Dom.addClass(me.element,"drag"); + } + + if (me.cfg.getProperty("constraintoviewport")) { + var offsetHeight = me.element.offsetHeight; + var offsetWidth = me.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = window.scrollX || document.documentElement.scrollLeft; + var scrollY = window.scrollY || document.documentElement.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + this.minX = leftConstraint; + this.maxX = rightConstraint; + this.constrainX = true; + + this.minY = topConstraint; + this.maxY = bottomConstraint; + this.constrainY = true; + } else { + this.constrainX = false; + this.constrainY = false; + } + + me.dragEvent.fire("startDrag", arguments); + }; + + this.dd.onDrag = function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + if (this.platform == "mac" && this.browser == "gecko") { + this.showMacGeckoScrollbars(); + } + + me.dragEvent.fire("onDrag", arguments); + }; + + this.dd.endDrag = function() { + if (me.browser == "ie") { + YAHOO.util.Dom.removeClass(me.element,"drag"); + } + + me.dragEvent.fire("endDrag", arguments); + }; + + this.dd.setHandleElId(this.header.id); + this.dd.addInvalidHandleType("INPUT"); + this.dd.addInvalidHandleType("SELECT"); + this.dd.addInvalidHandleType("TEXTAREA"); + } +}; + +/** +* Builds the mask that is laid over the document when the Panel is configured to be modal. +* @method buildMask +*/ +YAHOO.widget.Panel.prototype.buildMask = function() { + if (! this.mask) { + this.mask = document.createElement("div"); + this.mask.id = this.id + "_mask"; + this.mask.className = "mask"; + this.mask.innerHTML = " "; + + var maskClick = function(e, obj) { + YAHOO.util.Event.stopEvent(e); + }; + + var firstChild = document.body.firstChild; + if (firstChild) { + document.body.insertBefore(this.mask, document.body.firstChild); + } else { + document.body.appendChild(this.mask); + } + } +}; + +/** +* Hides the modality mask. +* @method hideMask +*/ +YAHOO.widget.Panel.prototype.hideMask = function() { + if (this.cfg.getProperty("modal") && this.mask) { + this.mask.style.display = "none"; + this.hideMaskEvent.fire(); + YAHOO.util.Dom.removeClass(document.body, "masked"); + } +}; + +/** +* Shows the modality mask. +* @method showMask +*/ +YAHOO.widget.Panel.prototype.showMask = function() { + if (this.cfg.getProperty("modal") && this.mask) { + YAHOO.util.Dom.addClass(document.body, "masked"); + this.sizeMask(); + this.mask.style.display = "block"; + this.showMaskEvent.fire(); + } +}; + +/** +* Sets the size of the modality mask to cover the entire scrollable area of the document +* @method sizeMask +*/ +YAHOO.widget.Panel.prototype.sizeMask = function() { + if (this.mask) { + this.mask.style.height = YAHOO.util.Dom.getDocumentHeight()+"px"; + this.mask.style.width = YAHOO.util.Dom.getDocumentWidth()+"px"; + } +}; + +/** +* Renders the Panel by inserting the elements that are not already in the main Panel into their correct places. Optionally appends the Panel to the specified node prior to the render's execution. NOTE: For Panels without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. +* @method render +* @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> +* @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering +* @return {boolean} Success or failure of the render +*/ +YAHOO.widget.Panel.prototype.render = function(appendToNode) { + return YAHOO.widget.Panel.superclass.render.call(this, appendToNode, this.innerElement); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Panel. +*/ +YAHOO.widget.Panel.prototype.toString = function() { + return "Panel " + this.id; +}; + +/** +* Dialog is an implementation of Panel that can be used to submit form data. Built-in functionality for buttons with event handlers is included, and button sets can be build dynamically, or the preincluded ones for Submit/Cancel and OK/Cancel can be utilized. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually. +* @namespace YAHOO.widget +* @class Dialog +* @extends YAHOO.widget.Panel +* @constructor +* @param {String} el The element ID representing the Dialog <em>OR</em> +* @param {HTMLElement} el The element representing the Dialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details. +*/ +YAHOO.widget.Dialog = function(el, userConfig) { + YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Dialog, YAHOO.widget.Panel); + +/** +* Constant representing the default CSS class used for a Dialog +* @property YAHOO.widget.Dialog.CSS_DIALOG +* @static +* @final +* @type String +*/ +YAHOO.widget.Dialog.CSS_DIALOG = "yui-dialog"; + +/** +* Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Dialog.prototype.initDefaultConfig = function() { + YAHOO.widget.Dialog.superclass.initDefaultConfig.call(this); + + /** + * The internally maintained callback object for use with the Connection utility + * @property callback + * @type Object + */ + this.callback = { + /** + * The function to execute upon success of the Connection submission + * @property callback.success + * @type Function + */ + success : null, + /** + * The function to execute upon failure of the Connection submission + * @property callback.failure + * @type Function + */ + failure : null, + /** + * The arbitraty argument or arguments to pass to the Connection callback functions + * @property callback.argument + * @type Object + */ + argument: null + }; + + // Add form dialog config properties // + + /** + * The method to use for posting the Dialog's form. Possible values are "async", "form", and "manual". + * @config postmethod + * @type String + * @default async + */ + this.cfg.addProperty("postmethod", { value:"async", handler:this.configPostMethod, validator:function(val) { + if (val != "form" && val != "async" && val != "none" && val != "manual") { + return false; + } else { + return true; + } + } }); + + /** + * Object literal(s) defining the buttons for the Dialog's footer. + * @config buttons + * @type Object[] + * @default "none" + */ + this.cfg.addProperty("buttons", { value:"none", handler:this.configButtons } ); +}; + +/** +* Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class. +* @method initEvents +*/ +YAHOO.widget.Dialog.prototype.initEvents = function() { + YAHOO.widget.Dialog.superclass.initEvents.call(this); + + /** + * CustomEvent fired prior to submission + * @event beforeSumitEvent + */ + this.beforeSubmitEvent = new YAHOO.util.CustomEvent("beforeSubmit"); + + /** + * CustomEvent fired after submission + * @event submitEvent + */ + this.submitEvent = new YAHOO.util.CustomEvent("submit"); + + /** + * CustomEvent fired prior to manual submission + * @event manualSubmitEvent + */ + this.manualSubmitEvent = new YAHOO.util.CustomEvent("manualSubmit"); + + /** + * CustomEvent fired prior to asynchronous submission + * @event asyncSubmitEvent + */ + this.asyncSubmitEvent = new YAHOO.util.CustomEvent("asyncSubmit"); + + /** + * CustomEvent fired prior to form-based submission + * @event formSubmitEvent + */ + this.formSubmitEvent = new YAHOO.util.CustomEvent("formSubmit"); + + /** + * CustomEvent fired after cancel + * @event cancelEvent + */ + this.cancelEvent = new YAHOO.util.CustomEvent("cancel"); +}; + +/** +* The Dialog initialization method, which is executed for Dialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Dialog <em>OR</em> +* @param {HTMLElement} el The element representing the Dialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details. +*/ +YAHOO.widget.Dialog.prototype.init = function(el, userConfig) { + YAHOO.widget.Dialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Dialog); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Dialog.CSS_DIALOG); + + this.cfg.setProperty("visible", false); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.showEvent.subscribe(this.focusFirst, this, true); + this.beforeHideEvent.subscribe(this.blurButtons, this, true); + + this.beforeRenderEvent.subscribe(function() { + var buttonCfg = this.cfg.getProperty("buttons"); + if (buttonCfg && buttonCfg != "none") { + if (! this.footer) { + this.setFooter(""); + } + } + }, this, true); + + this.initEvent.fire(YAHOO.widget.Dialog); +}; + +/** +* Performs the submission of the Dialog form depending on the value of "postmethod" property. +* @method doSubmit +*/ +YAHOO.widget.Dialog.prototype.doSubmit = function() { + var pm = this.cfg.getProperty("postmethod"); + switch (pm) { + case "async": + var method = this.form.getAttribute("method") || 'POST'; + method = method.toUpperCase(); + YAHOO.util.Connect.setForm(this.form); + var cObj = YAHOO.util.Connect.asyncRequest(method, this.form.getAttribute("action"), this.callback); + this.asyncSubmitEvent.fire(); + break; + case "form": + this.form.submit(); + this.formSubmitEvent.fire(); + break; + case "none": + case "manual": + this.manualSubmitEvent.fire(); + break; + } +}; + +/** +* Prepares the Dialog's internal FORM object, creating one if one is not currently present. +* @method registerForm +*/ +YAHOO.widget.Dialog.prototype.registerForm = function() { + var form = this.element.getElementsByTagName("form")[0]; + + if (! form) { + var formHTML = "<form name=\"frm_" + this.id + "\" action=\"\"></form>"; + this.body.innerHTML += formHTML; + form = this.element.getElementsByTagName("form")[0]; + } + + this.firstFormElement = function() { + for (var f=0;f<form.elements.length;f++ ) { + var el = form.elements[f]; + if (el.focus && ! el.disabled) { + if (el.type && el.type != "hidden") { + return el; + } + } + } + return null; + }(); + + this.lastFormElement = function() { + for (var f=form.elements.length-1;f>=0;f-- ) { + var el = form.elements[f]; + if (el.focus && ! el.disabled) { + if (el.type && el.type != "hidden") { + return el; + } + } + } + return null; + }(); + + this.form = form; + + if (this.cfg.getProperty("modal") && this.form) { + + var me = this; + + var firstElement = this.firstFormElement || this.firstButton; + if (firstElement) { + this.preventBackTab = new YAHOO.util.KeyListener(firstElement, { shift:true, keys:9 }, {fn:me.focusLast, scope:me, correctScope:true} ); + this.showEvent.subscribe(this.preventBackTab.enable, this.preventBackTab, true); + this.hideEvent.subscribe(this.preventBackTab.disable, this.preventBackTab, true); + } + + var lastElement = this.lastButton || this.lastFormElement; + if (lastElement) { + this.preventTabOut = new YAHOO.util.KeyListener(lastElement, { shift:false, keys:9 }, {fn:me.focusFirst, scope:me, correctScope:true} ); + this.showEvent.subscribe(this.preventTabOut.enable, this.preventTabOut, true); + this.hideEvent.subscribe(this.preventTabOut.disable, this.preventTabOut, true); + } + } +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Dialog. +* @method configClose +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configClose = function(type, args, obj) { + var val = args[0]; + + var doCancel = function(e, obj) { + obj.cancel(); + }; + + if (val) { + if (! this.close) { + this.close = document.createElement("div"); + YAHOO.util.Dom.addClass(this.close, "container-close"); + + this.close.innerHTML = " "; + this.innerElement.appendChild(this.close); + YAHOO.util.Event.addListener(this.close, "click", doCancel, this); + } else { + this.close.style.display = "block"; + } + } else { + if (this.close) { + this.close.style.display = "none"; + } + } +}; + +/** +* The default event handler for the "buttons" configuration property +* @method configButtons +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configButtons = function(type, args, obj) { + var buttons = args[0]; + if (buttons != "none") { + this.buttonSpan = null; + this.buttonSpan = document.createElement("span"); + this.buttonSpan.className = "button-group"; + + for (var b=0;b<buttons.length;b++) { + var button = buttons[b]; + + var htmlButton = document.createElement("button"); + htmlButton.setAttribute("type", "button"); + + if (button.isDefault) { + htmlButton.className = "default"; + this.defaultHtmlButton = htmlButton; + } + + htmlButton.appendChild(document.createTextNode(button.text)); + YAHOO.util.Event.addListener(htmlButton, "click", button.handler, this, true); + + this.buttonSpan.appendChild(htmlButton); + button.htmlButton = htmlButton; + + if (b === 0) { + this.firstButton = button.htmlButton; + } + + if (b == (buttons.length-1)) { + this.lastButton = button.htmlButton; + } + + } + + this.setFooter(this.buttonSpan); + + this.cfg.refireEvent("iframe"); + this.cfg.refireEvent("underlay"); + } else { // Do cleanup + if (this.buttonSpan) { + if (this.buttonSpan.parentNode) { + this.buttonSpan.parentNode.removeChild(this.buttonSpan); + } + + this.buttonSpan = null; + this.firstButton = null; + this.lastButton = null; + this.defaultHtmlButton = null; + } + } +}; + + +/** +* The default event handler used to focus the first field of the form when the Dialog is shown. +* @method focusFirst +*/ +YAHOO.widget.Dialog.prototype.focusFirst = function(type,args,obj) { + if (args) { + var e = args[1]; + if (e) { + YAHOO.util.Event.stopEvent(e); + } + } + + if (this.firstFormElement) { + this.firstFormElement.focus(); + } else { + this.focusDefaultButton(); + } +}; + +/** +* Sets the focus to the last button in the button or form element in the Dialog +* @method focusLast +*/ +YAHOO.widget.Dialog.prototype.focusLast = function(type,args,obj) { + if (args) { + var e = args[1]; + if (e) { + YAHOO.util.Event.stopEvent(e); + } + } + + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + this.focusLastButton(); + } else { + if (this.lastFormElement) { + this.lastFormElement.focus(); + } + } +}; + +/** +* Sets the focus to the button that is designated as the default. By default, his handler is executed when the show event is fired. +* @method focusDefaultButton +*/ +YAHOO.widget.Dialog.prototype.focusDefaultButton = function() { + if (this.defaultHtmlButton) { + this.defaultHtmlButton.focus(); + } +}; + +/** +* Blurs all the html buttons +* @method blurButtons +*/ +YAHOO.widget.Dialog.prototype.blurButtons = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[0].htmlButton; + if (html) { + html.blur(); + } + } +}; + +/** +* Sets the focus to the first button in the button list +* @method focusFirstButton +*/ +YAHOO.widget.Dialog.prototype.focusFirstButton = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[0].htmlButton; + if (html) { + html.focus(); + } + } +}; + +/** +* Sets the focus to the first button in the button list +* @method focusLastButton +*/ +YAHOO.widget.Dialog.prototype.focusLastButton = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[buttons.length-1].htmlButton; + if (html) { + html.focus(); + } + } +}; + +/** +* The default event handler for the "postmethod" configuration property +* @method configPostMethod +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configPostMethod = function(type, args, obj) { + var postmethod = args[0]; + + this.registerForm(); + YAHOO.util.Event.addListener(this.form, "submit", function(e) { + YAHOO.util.Event.stopEvent(e); + this.submit(); + this.form.blur(); + }, this, true); +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Built-in function hook for writing a validation function that will be checked for a "true" value prior to a submit. This function, as implemented by default, always returns true, so it should be overridden if validation is necessary. +* @method validate +*/ +YAHOO.widget.Dialog.prototype.validate = function() { + return true; +}; + +/** +* Executes a submit of the Dialog followed by a hide, if validation is successful. +* @method submit +*/ +YAHOO.widget.Dialog.prototype.submit = function() { + if (this.validate()) { + this.beforeSubmitEvent.fire(); + this.doSubmit(); + this.submitEvent.fire(); + this.hide(); + return true; + } else { + return false; + } +}; + +/** +* Executes the cancel of the Dialog followed by a hide. +* @method cancel +*/ +YAHOO.widget.Dialog.prototype.cancel = function() { + this.cancelEvent.fire(); + this.hide(); +}; + +/** +* Returns a JSON-compatible data structure representing the data currently contained in the form. +* @method getData +* @return {Object} A JSON object reprsenting the data of the current form. +*/ +YAHOO.widget.Dialog.prototype.getData = function() { + + var oForm = this.form; + + if(oForm) { + + var aElements = oForm.elements, + nTotalElements = aElements.length, + oData = {}, + sName, + oElement; + + + for(var i=0; i<nTotalElements; i++) { + + sName = aElements[i].name, + oElement = aElements[sName]; + + + if(oElement) { + + if(oElement.tagName) { + + var sType = oElement.type, + sTagName = oElement.tagName.toUpperCase(); + + switch(sTagName) { + + case "INPUT": + + if(sType == "checkbox") { + + oData[sName] = oElement.checked; + + } + else if(sType != "radio") { + + oData[sName] = oElement.value; + + } + + break; + + case "TEXTAREA": + + oData[sName] = oElement.value; + + break; + + case "SELECT": + + var aOptions = oElement.options, + nOptions = aOptions.length, + aValues = [], + oOption, + sValue; + + + for(var n=0; n<nOptions; n++) { + + oOption = aOptions[n]; + + if(oOption.selected) { + + sValue = oOption.value; + + if(!sValue || sValue === "") { + + sValue = oOption.text; + + } + + aValues[aValues.length] = sValue; + + } + + } + + oData[sName] = aValues; + + break; + + } + + + } + else { + + var nElements = oElement.length, + sType = oElement[0].type, + sTagName = oElement[0].tagName.toUpperCase(); + + + switch(sType) { + + case "radio": + + var oRadio; + + for(var n=0; n<nElements; n++) { + + oRadio = oElement[n]; + + if(oRadio.checked) { + + oData[sName] = oRadio.value; + break; + + } + + } + + break; + + case "checkbox": + + var aValues = [], + oCheckbox; + + for(var n=0; n<nElements; n++) { + + oCheckbox = oElement[n]; + + if(oCheckbox.checked) { + + aValues[aValues.length] = oCheckbox.value; + + } + + } + + oData[sName] = aValues; + + break; + + } + + } + + } + + } + + } + + + return oData; + +}; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the Dialog +*/ +YAHOO.widget.Dialog.prototype.toString = function() { + return "Dialog " + this.id; +}; + +/** +* SimpleDialog is a simple implementation of Dialog that can be used to submit a single value. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually. +* @namespace YAHOO.widget +* @class SimpleDialog +* @extends YAHOO.widget.Dialog +* @constructor +* @param {String} el The element ID representing the SimpleDialog <em>OR</em> +* @param {HTMLElement} el The element representing the SimpleDialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details. +*/ +YAHOO.widget.SimpleDialog = function(el, userConfig) { + YAHOO.widget.SimpleDialog.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.SimpleDialog, YAHOO.widget.Dialog); + +/** +* Constant for the standard network icon for a blocking action +* @property YAHOO.widget.SimpleDialog.ICON_BLOCK +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_BLOCK = "blckicon"; + +/** +* Constant for the standard network icon for alarm +* @property YAHOO.widget.SimpleDialog.ICON_ALARM +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_ALARM = "alrticon"; + +/** +* Constant for the standard network icon for help +* @property YAHOO.widget.SimpleDialog.ICON_HELP +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_HELP = "hlpicon"; + +/** +* Constant for the standard network icon for info +* @property YAHOO.widget.SimpleDialog.ICON_INFO +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_INFO = "infoicon"; + +/** +* Constant for the standard network icon for warn +* @property YAHOO.widget.SimpleDialog.ICON_WARN +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_WARN = "warnicon"; + +/** +* Constant for the standard network icon for a tip +* @property YAHOO.widget.SimpleDialog.ICON_TIP +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_TIP = "tipicon"; + +/** +* Constant representing the default CSS class used for a SimpleDialog +* @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog"; + +/** +* Initializes the class's configurable properties which can be changed using the SimpleDialog's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.SimpleDialog.prototype.initDefaultConfig = function() { + YAHOO.widget.SimpleDialog.superclass.initDefaultConfig.call(this); + + // Add dialog config properties // + + /** + * Sets the informational icon for the SimpleDialog + * @config icon + * @type String + * @default "none" + */ + this.cfg.addProperty("icon", { value:"none", handler:this.configIcon, suppressEvent:true } ); + + /** + * Sets the text for the SimpleDialog + * @config text + * @type String + * @default "" + */ + this.cfg.addProperty("text", { value:"", handler:this.configText, suppressEvent:true, supercedes:["icon"] } ); +}; + + +/** +* The SimpleDialog initialization method, which is executed for SimpleDialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the SimpleDialog <em>OR</em> +* @param {HTMLElement} el The element representing the SimpleDialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details. +*/ +YAHOO.widget.SimpleDialog.prototype.init = function(el, userConfig) { + YAHOO.widget.SimpleDialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.SimpleDialog); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG); + + this.cfg.queueProperty("postmethod", "manual"); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.beforeRenderEvent.subscribe(function() { + if (! this.body) { + this.setBody(""); + } + }, this, true); + + this.initEvent.fire(YAHOO.widget.SimpleDialog); + +}; +/** +* Prepares the SimpleDialog's internal FORM object, creating one if one is not currently present, and adding the value hidden field. +* @method registerForm +*/ +YAHOO.widget.SimpleDialog.prototype.registerForm = function() { + YAHOO.widget.SimpleDialog.superclass.registerForm.call(this); + this.form.innerHTML += "<input type=\"hidden\" name=\"" + this.id + "\" value=\"\"/>"; +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Fired when the "icon" property is set. +* @method configIcon +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.SimpleDialog.prototype.configIcon = function(type,args,obj) { + var icon = args[0]; + if (icon && icon != "none") { + var iconHTML = ""; + if (icon.indexOf(".") == -1) { + iconHTML = "<span class=\"yui-icon " + icon +"\" > </span>"; + } else { + iconHTML = "<img src=\"" + this.imageRoot + icon + "\" class=\"yui-icon\" />"; + } + this.body.innerHTML = iconHTML + this.body.innerHTML; + } +}; + +/** +* Fired when the "text" property is set. +* @method configText +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.SimpleDialog.prototype.configText = function(type,args,obj) { + var text = args[0]; + if (text) { + this.setBody(text); + this.cfg.refireEvent("icon"); + } +}; +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the SimpleDialog +*/ +YAHOO.widget.SimpleDialog.prototype.toString = function() { + return "SimpleDialog " + this.id; +}; + +/** +* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden. +* @namespace YAHOO.widget +* @class ContainerEffect +* @constructor +* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with +* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element. +* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion. +*/ +YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) { + if (! animClass) { + animClass = YAHOO.util.Anim; + } + + /** + * The overlay to animate + * @property overlay + * @type YAHOO.widget.Overlay + */ + this.overlay = overlay; + /** + * The animation attributes to use when transitioning into view + * @property attrIn + * @type Object + */ + this.attrIn = attrIn; + /** + * The animation attributes to use when transitioning out of view + * @property attrOut + * @type Object + */ + this.attrOut = attrOut; + /** + * The target element to be animated + * @property targetElement + * @type HTMLElement + */ + this.targetElement = targetElement || overlay.element; + /** + * The animation class to use for animating the overlay + * @property animClass + * @type class + */ + this.animClass = animClass; +}; + +/** +* Initializes the animation classes and events. +* @method init +*/ +YAHOO.widget.ContainerEffect.prototype.init = function() { + this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn"); + this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut"); + + this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete"); + this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete"); + + this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method); + this.animIn.onStart.subscribe(this.handleStartAnimateIn, this); + this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this); + this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this); + + this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method); + this.animOut.onStart.subscribe(this.handleStartAnimateOut, this); + this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this); + this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this); +}; + +/** +* Triggers the in-animation. +* @method animateIn +*/ +YAHOO.widget.ContainerEffect.prototype.animateIn = function() { + this.beforeAnimateInEvent.fire(); + this.animIn.animate(); +}; + +/** +* Triggers the out-animation. +* @method animateOut +*/ +YAHOO.widget.ContainerEffect.prototype.animateOut = function() { + this.beforeAnimateOutEvent.fire(); + this.animOut.animate(); +}; + +/** +* The default onStart handler for the in-animation. +* @method handleStartAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { }; +/** +* The default onTween handler for the in-animation. +* @method handleTweenAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { }; +/** +* The default onComplete handler for the in-animation. +* @method handleCompleteAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { }; + +/** +* The default onStart handler for the out-animation. +* @method handleStartAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { }; +/** +* The default onTween handler for the out-animation. +* @method handleTweenAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { }; +/** +* The default onComplete handler for the out-animation. +* @method handleCompleteAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { }; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the ContainerEffect +*/ +YAHOO.widget.ContainerEffect.prototype.toString = function() { + var output = "ContainerEffect"; + if (this.overlay) { + output += " [" + this.overlay.toString() + "]"; + } + return output; +}; + +/** +* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out. +* @method FADE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) { + var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element ); + + fade.handleStartAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (! obj.overlay.underlay) { + obj.overlay.cfg.refireEvent("underlay"); + } + + if (obj.overlay.underlay) { + obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity"); + obj.overlay.underlay.style.filter = null; + } + + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0); + }; + + fade.handleCompleteAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + + if (obj.overlay.underlay) { + YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity); + } + + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + fade.handleStartAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.underlay) { + obj.overlay.underlay.style.filter = null; + } + }; + + fade.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1); + + obj.overlay.cfg.refireEvent("iframe"); + + obj.animateOutCompleteEvent.fire(); + }; + + fade.init(); + return fade; +}; + + +/** +* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out. +* @method SLIDE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) { + var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element); + var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element); + + var clientWidth = YAHOO.util.Dom.getClientWidth(); + var offsetWidth = overlay.element.offsetWidth; + + var slide = new YAHOO.widget.ContainerEffect(overlay, { + attributes:{ points: { to:[x, y] } }, + duration:dur, + method:YAHOO.util.Easing.easeIn + }, + { + attributes:{ points: { to:[(clientWidth+25), y] } }, + duration:dur, + method:YAHOO.util.Easing.easeOut + }, + overlay.element, + YAHOO.util.Motion); + + + slide.handleStartAnimateIn = function(type,args,obj) { + obj.overlay.element.style.left = (-25-offsetWidth) + "px"; + obj.overlay.element.style.top = y + "px"; + }; + + slide.handleTweenAnimateIn = function(type, args, obj) { + + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var currentX = pos[0]; + var currentY = pos[1]; + + if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + } + + obj.overlay.cfg.setProperty("xy", [currentX,currentY], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateIn = function(type, args, obj) { + obj.overlay.cfg.setProperty("xy", [x,y], true); + obj.startX = x; + obj.startY = y; + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + slide.handleStartAnimateOut = function(type, args, obj) { + var vw = YAHOO.util.Dom.getViewportWidth(); + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var yso = pos[1]; + + var currentTo = obj.animOut.attributes.points.to; + obj.animOut.attributes.points.to = [(vw+25), yso]; + }; + + slide.handleTweenAnimateOut = function(type, args, obj) { + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var xto = pos[0]; + var yto = pos[1]; + + obj.overlay.cfg.setProperty("xy", [xto,yto], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + + obj.overlay.cfg.setProperty("xy", [x,y]); + obj.animateOutCompleteEvent.fire(); + }; + + slide.init(); + return slide; +}; + +YAHOO.register("container", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/container/container-min.js b/interface/ispconfig/interface/js/yui/container/container-min.js new file mode 100644 index 0000000..e9e0446 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container-min.js @@ -0,0 +1,159 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.Config=function(owner){if(owner){this.init(owner);}};YAHOO.util.Config.prototype={owner:null,queueInProgress:false,checkBoolean:function(val){if(typeof val=='boolean'){return true;}else{return false;}},checkNumber:function(val){if(isNaN(val)){return false;}else{return true;}}};YAHOO.util.Config.prototype.init=function(owner){this.owner=owner;this.configChangedEvent=new YAHOO.util.CustomEvent("configChanged");this.queueInProgress=false;var config={};var initialConfig={};var eventQueue=[];var fireEvent=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){property.event.fire(value);}};this.addProperty=function(key,propertyObject){key=key.toLowerCase();config[key]=propertyObject;propertyObject.event=new YAHOO.util.CustomEvent(key);propertyObject.key=key;if(propertyObject.handler){propertyObject.event.subscribe(propertyObject.handler,this.owner,true);} +this.setProperty(key,propertyObject.value,true);if(!propertyObject.suppressEvent){this.queueProperty(key,propertyObject.value);}};this.getConfig=function(){var cfg={};for(var prop in config){var property=config[prop];if(typeof property!='undefined'&&property.event){cfg[prop]=property.value;}} +return cfg;};this.getProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.value;}else{return undefined;}};this.resetProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(initialConfig[key]&&initialConfig[key]!='undefined'){this.setProperty(key,initialConfig[key]);} +return true;}else{return false;}};this.setProperty=function(key,value,silent){key=key.toLowerCase();if(this.queueInProgress&&!silent){this.queueProperty(key,value);return true;}else{var property=config[key];if(typeof property!='undefined'&&property.event){if(property.validator&&!property.validator(value)){return false;}else{property.value=value;if(!silent){fireEvent(key,value);this.configChangedEvent.fire([key,value]);} +return true;}}else{return false;}}};this.queueProperty=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(typeof value!='undefined'&&property.validator&&!property.validator(value)){return false;}else{if(typeof value!='undefined'){property.value=value;}else{value=property.value;} +var foundDuplicate=false;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var queueItemKey=queueItem[0];var queueItemValue=queueItem[1];if(queueItemKey.toLowerCase()==key){eventQueue[i]=null;eventQueue.push([key,(typeof value!='undefined'?value:queueItemValue)]);foundDuplicate=true;break;}}} +if(!foundDuplicate&&typeof value!='undefined'){eventQueue.push([key,value]);}} +if(property.supercedes){for(var s=0;s<property.supercedes.length;s++){var supercedesCheck=property.supercedes[s];for(var q=0;q<eventQueue.length;q++){var queueItemCheck=eventQueue[q];if(queueItemCheck){var queueItemCheckKey=queueItemCheck[0];var queueItemCheckValue=queueItemCheck[1];if(queueItemCheckKey.toLowerCase()==supercedesCheck.toLowerCase()){eventQueue.push([queueItemCheckKey,queueItemCheckValue]);eventQueue[q]=null;break;}}}}} +return true;}else{return false;}};this.refireEvent=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event&&typeof property.value!='undefined'){if(this.queueInProgress){this.queueProperty(key);}else{fireEvent(key,property.value);}}};this.applyConfig=function(userConfig,init){if(init){initialConfig=userConfig;} +for(var prop in userConfig){this.queueProperty(prop,userConfig[prop]);}};this.refresh=function(){for(var prop in config){this.refireEvent(prop);}};this.fireQueue=function(){this.queueInProgress=true;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var key=queueItem[0];var value=queueItem[1];var property=config[key];property.value=value;fireEvent(key,value);}} +this.queueInProgress=false;eventQueue=[];};this.subscribeToConfigEvent=function(key,handler,obj,override){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(!YAHOO.util.Config.alreadySubscribed(property.event,handler,obj)){property.event.subscribe(handler,obj,override);} +return true;}else{return false;}};this.unsubscribeFromConfigEvent=function(key,handler,obj){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.event.unsubscribe(handler,obj);}else{return false;}};this.toString=function(){var output="Config";if(this.owner){output+=" ["+this.owner.toString()+"]";} +return output;};this.outputEventQueue=function(){var output="";for(var q=0;q<eventQueue.length;q++){var queueItem=eventQueue[q];if(queueItem){output+=queueItem[0]+"="+queueItem[1]+", ";}} +return output;};};YAHOO.util.Config.alreadySubscribed=function(evt,fn,obj){for(var e=0;e<evt.subscribers.length;e++){var subsc=evt.subscribers[e];if(subsc&&subsc.obj==obj&&subsc.fn==fn){return true;}} +return false;};YAHOO.widget.Module=function(el,userConfig){if(el){this.init(el,userConfig);}else{}};YAHOO.widget.Module.IMG_ROOT=null;YAHOO.widget.Module.IMG_ROOT_SSL=null;YAHOO.widget.Module.CSS_MODULE="module";YAHOO.widget.Module.CSS_HEADER="hd";YAHOO.widget.Module.CSS_BODY="bd";YAHOO.widget.Module.CSS_FOOTER="ft";YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL="javascript:false;";YAHOO.widget.Module.textResizeEvent=new YAHOO.util.CustomEvent("textResize");YAHOO.widget.Module.prototype={constructor:YAHOO.widget.Module,element:null,header:null,body:null,footer:null,id:null,imageRoot:YAHOO.widget.Module.IMG_ROOT,initEvents:function(){this.beforeInitEvent=new YAHOO.util.CustomEvent("beforeInit");this.initEvent=new YAHOO.util.CustomEvent("init");this.appendEvent=new YAHOO.util.CustomEvent("append");this.beforeRenderEvent=new YAHOO.util.CustomEvent("beforeRender");this.renderEvent=new YAHOO.util.CustomEvent("render");this.changeHeaderEvent=new YAHOO.util.CustomEvent("changeHeader");this.changeBodyEvent=new YAHOO.util.CustomEvent("changeBody");this.changeFooterEvent=new YAHOO.util.CustomEvent("changeFooter");this.changeContentEvent=new YAHOO.util.CustomEvent("changeContent");this.destroyEvent=new YAHOO.util.CustomEvent("destroy");this.beforeShowEvent=new YAHOO.util.CustomEvent("beforeShow");this.showEvent=new YAHOO.util.CustomEvent("show");this.beforeHideEvent=new YAHOO.util.CustomEvent("beforeHide");this.hideEvent=new YAHOO.util.CustomEvent("hide");},platform:function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1){return"windows";}else if(ua.indexOf("macintosh")!=-1){return"mac";}else{return false;}}(),browser:function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('opera')!=-1){return'opera';}else if(ua.indexOf('msie 7')!=-1){return'ie7';}else if(ua.indexOf('msie')!=-1){return'ie';}else if(ua.indexOf('safari')!=-1){return'safari';}else if(ua.indexOf('gecko')!=-1){return'gecko';}else{return false;}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty("visible",{value:true,handler:this.configVisible,validator:this.cfg.checkBoolean});this.cfg.addProperty("effect",{suppressEvent:true,supercedes:["visible"]});this.cfg.addProperty("monitorresize",{value:true,handler:this.configMonitorResize});},init:function(el,userConfig){this.initEvents();this.beforeInitEvent.fire(YAHOO.widget.Module);this.cfg=new YAHOO.util.Config(this);if(this.isSecure){this.imageRoot=YAHOO.widget.Module.IMG_ROOT_SSL;} +if(typeof el=="string"){var elId=el;el=document.getElementById(el);if(!el){el=document.createElement("div");el.id=elId;}} +this.element=el;if(el.id){this.id=el.id;} +var childNodes=this.element.childNodes;if(childNodes){for(var i=0;i<childNodes.length;i++){var child=childNodes[i];switch(child.className){case YAHOO.widget.Module.CSS_HEADER:this.header=child;break;case YAHOO.widget.Module.CSS_BODY:this.body=child;break;case YAHOO.widget.Module.CSS_FOOTER:this.footer=child;break;}}} +this.initDefaultConfig();YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Module.CSS_MODULE);if(userConfig){this.cfg.applyConfig(userConfig,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);} +this.initEvent.fire(YAHOO.widget.Module);},initResizeMonitor:function(){if(this.browser!="opera"){var resizeMonitor=document.getElementById("_yuiResizeMonitor");if(!resizeMonitor){resizeMonitor=document.createElement("iframe");var bIE=(this.browser.indexOf("ie")===0);if(this.isSecure&&YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL&&bIE){resizeMonitor.src=YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL;} +resizeMonitor.id="_yuiResizeMonitor";resizeMonitor.style.visibility="hidden";document.body.appendChild(resizeMonitor);resizeMonitor.style.width="10em";resizeMonitor.style.height="10em";resizeMonitor.style.position="absolute";var nLeft=-1*resizeMonitor.offsetWidth;var nTop=-1*resizeMonitor.offsetHeight;resizeMonitor.style.top=nTop+"px";resizeMonitor.style.left=nLeft+"px";resizeMonitor.style.borderStyle="none";resizeMonitor.style.borderWidth="0";YAHOO.util.Dom.setStyle(resizeMonitor,"opacity","0");resizeMonitor.style.visibility="visible";if(!bIE){var doc=resizeMonitor.contentWindow.document;doc.open();doc.close();}} +var fireTextResize=function(){YAHOO.widget.Module.textResizeEvent.fire();};if(resizeMonitor&&resizeMonitor.contentWindow){this.resizeMonitor=resizeMonitor;YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize,this,true);if(!YAHOO.widget.Module.textResizeInitialized){if(!YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow,"resize",fireTextResize)){YAHOO.util.Event.addListener(this.resizeMonitor,"resize",fireTextResize);} +YAHOO.widget.Module.textResizeInitialized=true;}}}},onDomResize:function(e,obj){var nLeft=-1*this.resizeMonitor.offsetWidth,nTop=-1*this.resizeMonitor.offsetHeight;this.resizeMonitor.style.top=nTop+"px";this.resizeMonitor.style.left=nLeft+"px";},setHeader:function(headerContent){if(!this.header){this.header=document.createElement("div");this.header.className=YAHOO.widget.Module.CSS_HEADER;} +if(typeof headerContent=="string"){this.header.innerHTML=headerContent;}else{this.header.innerHTML="";this.header.appendChild(headerContent);} +this.changeHeaderEvent.fire(headerContent);this.changeContentEvent.fire();},appendToHeader:function(element){if(!this.header){this.header=document.createElement("div");this.header.className=YAHOO.widget.Module.CSS_HEADER;} +this.header.appendChild(element);this.changeHeaderEvent.fire(element);this.changeContentEvent.fire();},setBody:function(bodyContent){if(!this.body){this.body=document.createElement("div");this.body.className=YAHOO.widget.Module.CSS_BODY;} +if(typeof bodyContent=="string") +{this.body.innerHTML=bodyContent;}else{this.body.innerHTML="";this.body.appendChild(bodyContent);} +this.changeBodyEvent.fire(bodyContent);this.changeContentEvent.fire();},appendToBody:function(element){if(!this.body){this.body=document.createElement("div");this.body.className=YAHOO.widget.Module.CSS_BODY;} +this.body.appendChild(element);this.changeBodyEvent.fire(element);this.changeContentEvent.fire();},setFooter:function(footerContent){if(!this.footer){this.footer=document.createElement("div");this.footer.className=YAHOO.widget.Module.CSS_FOOTER;} +if(typeof footerContent=="string"){this.footer.innerHTML=footerContent;}else{this.footer.innerHTML="";this.footer.appendChild(footerContent);} +this.changeFooterEvent.fire(footerContent);this.changeContentEvent.fire();},appendToFooter:function(element){if(!this.footer){this.footer=document.createElement("div");this.footer.className=YAHOO.widget.Module.CSS_FOOTER;} +this.footer.appendChild(element);this.changeFooterEvent.fire(element);this.changeContentEvent.fire();},render:function(appendToNode,moduleElement){this.beforeRenderEvent.fire();if(!moduleElement){moduleElement=this.element;} +var me=this;var appendTo=function(element){if(typeof element=="string"){element=document.getElementById(element);} +if(element){element.appendChild(me.element);me.appendEvent.fire();}};if(appendToNode){appendTo(appendToNode);}else{if(!YAHOO.util.Dom.inDocument(this.element)){return false;}} +if(this.header&&!YAHOO.util.Dom.inDocument(this.header)){var firstChild=moduleElement.firstChild;if(firstChild){moduleElement.insertBefore(this.header,firstChild);}else{moduleElement.appendChild(this.header);}} +if(this.body&&!YAHOO.util.Dom.inDocument(this.body)){if(this.footer&&YAHOO.util.Dom.isAncestor(this.moduleElement,this.footer)){moduleElement.insertBefore(this.body,this.footer);}else{moduleElement.appendChild(this.body);}} +if(this.footer&&!YAHOO.util.Dom.inDocument(this.footer)){moduleElement.appendChild(this.footer);} +this.renderEvent.fire();return true;},destroy:function(){var parent;if(this.element){YAHOO.util.Event.purgeElement(this.element,true);parent=this.element.parentNode;} +if(parent){parent.removeChild(this.element);} +this.element=null;this.header=null;this.body=null;this.footer=null;for(var e in this){if(e instanceof YAHOO.util.CustomEvent){e.unsubscribeAll();}} +YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize,this);this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(type,args,obj){var visible=args[0];if(visible){this.beforeShowEvent.fire();YAHOO.util.Dom.setStyle(this.element,"display","block");this.showEvent.fire();}else{this.beforeHideEvent.fire();YAHOO.util.Dom.setStyle(this.element,"display","none");this.hideEvent.fire();}},configMonitorResize:function(type,args,obj){var monitor=args[0];if(monitor){this.initResizeMonitor();}else{YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}}};YAHOO.widget.Module.prototype.toString=function(){return"Module "+this.id;};YAHOO.widget.Overlay=function(el,userConfig){YAHOO.widget.Overlay.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.Overlay,YAHOO.widget.Module);YAHOO.widget.Overlay.IFRAME_SRC="javascript:false;";YAHOO.widget.Overlay.TOP_LEFT="tl";YAHOO.widget.Overlay.TOP_RIGHT="tr";YAHOO.widget.Overlay.BOTTOM_LEFT="bl";YAHOO.widget.Overlay.BOTTOM_RIGHT="br";YAHOO.widget.Overlay.CSS_OVERLAY="yui-overlay";YAHOO.widget.Overlay.prototype.init=function(el,userConfig){YAHOO.widget.Overlay.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.Overlay);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Overlay.CSS_OVERLAY);if(userConfig){this.cfg.applyConfig(userConfig,true);} +if(this.platform=="mac"&&this.browser=="gecko"){if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}} +this.initEvent.fire(YAHOO.widget.Overlay);};YAHOO.widget.Overlay.prototype.initEvents=function(){YAHOO.widget.Overlay.superclass.initEvents.call(this);this.beforeMoveEvent=new YAHOO.util.CustomEvent("beforeMove",this);this.moveEvent=new YAHOO.util.CustomEvent("move",this);};YAHOO.widget.Overlay.prototype.initDefaultConfig=function(){YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);this.cfg.addProperty("x",{handler:this.configX,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("y",{handler:this.configY,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("xy",{handler:this.configXY,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("context",{handler:this.configContext,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("fixedcenter",{value:false,handler:this.configFixedCenter,validator:this.cfg.checkBoolean,supercedes:["iframe","visible"]});this.cfg.addProperty("width",{handler:this.configWidth,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("height",{handler:this.configHeight,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("zIndex",{value:null,handler:this.configzIndex});this.cfg.addProperty("constraintoviewport",{value:false,handler:this.configConstrainToViewport,validator:this.cfg.checkBoolean,supercedes:["iframe","x","y","xy"]});this.cfg.addProperty("iframe",{value:(this.browser=="ie"?true:false),handler:this.configIframe,validator:this.cfg.checkBoolean,supercedes:["zIndex"]});};YAHOO.widget.Overlay.prototype.moveTo=function(x,y){this.cfg.setProperty("xy",[x,y]);};YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars=function(){YAHOO.util.Dom.removeClass(this.element,"show-scrollbars");YAHOO.util.Dom.addClass(this.element,"hide-scrollbars");};YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars=function(){YAHOO.util.Dom.removeClass(this.element,"hide-scrollbars");YAHOO.util.Dom.addClass(this.element,"show-scrollbars");};YAHOO.widget.Overlay.prototype.configVisible=function(type,args,obj){var visible=args[0];var currentVis=YAHOO.util.Dom.getStyle(this.element,"visibility");if(currentVis=="inherit"){var e=this.element.parentNode;while(e.nodeType!=9&&e.nodeType!=11){currentVis=YAHOO.util.Dom.getStyle(e,"visibility");if(currentVis!="inherit"){break;} +e=e.parentNode;} +if(currentVis=="inherit"){currentVis="visible";}} +var effect=this.cfg.getProperty("effect");var effectInstances=[];if(effect){if(effect instanceof Array){for(var i=0;i<effect.length;i++){var eff=effect[i];effectInstances[effectInstances.length]=eff.effect(this,eff.duration);}}else{effectInstances[effectInstances.length]=effect.effect(this,effect.duration);}} +var isMacGecko=(this.platform=="mac"&&this.browser=="gecko");if(visible){if(isMacGecko){this.showMacGeckoScrollbars();} +if(effect){if(visible){if(currentVis!="visible"||currentVis===""){this.beforeShowEvent.fire();for(var j=0;j<effectInstances.length;j++){var ei=effectInstances[j];if(j===0&&!YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);} +ei.animateIn();}}}}else{if(currentVis!="visible"||currentVis===""){this.beforeShowEvent.fire();YAHOO.util.Dom.setStyle(this.element,"visibility","visible");this.cfg.refireEvent("iframe");this.showEvent.fire();}}}else{if(isMacGecko){this.hideMacGeckoScrollbars();} +if(effect){if(currentVis=="visible"){this.beforeHideEvent.fire();for(var k=0;k<effectInstances.length;k++){var h=effectInstances[k];if(k===0&&!YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);} +h.animateOut();}}else if(currentVis===""){YAHOO.util.Dom.setStyle(this.element,"visibility","hidden");}}else{if(currentVis=="visible"||currentVis===""){this.beforeHideEvent.fire();YAHOO.util.Dom.setStyle(this.element,"visibility","hidden");this.cfg.refireEvent("iframe");this.hideEvent.fire();}}}};YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent=function(){if(this.cfg.getProperty("visible")){this.center();}};YAHOO.widget.Overlay.prototype.configFixedCenter=function(type,args,obj){var val=args[0];if(val){this.center();if(!YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent,this.center,this)){this.beforeShowEvent.subscribe(this.center,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent,this.doCenterOnDOMEvent,this)){YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent,this.doCenterOnDOMEvent,this)){YAHOO.widget.Overlay.windowScrollEvent.subscribe(this.doCenterOnDOMEvent,this,true);}}else{YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);}};YAHOO.widget.Overlay.prototype.configHeight=function(type,args,obj){var height=args[0];var el=this.element;YAHOO.util.Dom.setStyle(el,"height",height);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.configWidth=function(type,args,obj){var width=args[0];var el=this.element;YAHOO.util.Dom.setStyle(el,"width",width);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.configzIndex=function(type,args,obj){var zIndex=args[0];var el=this.element;if(!zIndex){zIndex=YAHOO.util.Dom.getStyle(el,"zIndex");if(!zIndex||isNaN(zIndex)){zIndex=0;}} +if(this.iframe){if(zIndex<=0){zIndex=1;} +YAHOO.util.Dom.setStyle(this.iframe,"zIndex",(zIndex-1));} +YAHOO.util.Dom.setStyle(el,"zIndex",zIndex);this.cfg.setProperty("zIndex",zIndex,true);};YAHOO.widget.Overlay.prototype.configXY=function(type,args,obj){var pos=args[0];var x=pos[0];var y=pos[1];this.cfg.setProperty("x",x);this.cfg.setProperty("y",y);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.configX=function(type,args,obj){var x=args[0];var y=this.cfg.getProperty("y");this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");YAHOO.util.Dom.setX(this.element,x,true);this.cfg.setProperty("xy",[x,y],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.configY=function(type,args,obj){var x=this.cfg.getProperty("x");var y=args[0];this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");YAHOO.util.Dom.setY(this.element,y,true);this.cfg.setProperty("xy",[x,y],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.showIframe=function(){if(this.iframe){this.iframe.style.display="block";}};YAHOO.widget.Overlay.prototype.hideIframe=function(){if(this.iframe){this.iframe.style.display="none";}};YAHOO.widget.Overlay.prototype.configIframe=function(type,args,obj){var val=args[0];if(val){if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showIframe,this)){this.showEvent.subscribe(this.showIframe,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideIframe,this)){this.hideEvent.subscribe(this.hideIframe,this,true);} +var x=this.cfg.getProperty("x");var y=this.cfg.getProperty("y");if(!x||!y){this.syncPosition();x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");} +if(!isNaN(x)&&!isNaN(y)){if(!this.iframe){this.iframe=document.createElement("iframe");if(this.isSecure){this.iframe.src=YAHOO.widget.Overlay.IFRAME_SRC;} +var parent=this.element.parentNode;if(parent){parent.appendChild(this.iframe);}else{document.body.appendChild(this.iframe);} +YAHOO.util.Dom.setStyle(this.iframe,"position","absolute");YAHOO.util.Dom.setStyle(this.iframe,"border","none");YAHOO.util.Dom.setStyle(this.iframe,"margin","0");YAHOO.util.Dom.setStyle(this.iframe,"padding","0");YAHOO.util.Dom.setStyle(this.iframe,"opacity","0");if(this.cfg.getProperty("visible")){this.showIframe();}else{this.hideIframe();}} +var iframeDisplay=YAHOO.util.Dom.getStyle(this.iframe,"display");if(iframeDisplay=="none"){this.iframe.style.display="block";} +YAHOO.util.Dom.setXY(this.iframe,[x,y]);var width=this.element.clientWidth;var height=this.element.clientHeight;YAHOO.util.Dom.setStyle(this.iframe,"width",(width+2)+"px");YAHOO.util.Dom.setStyle(this.iframe,"height",(height+2)+"px");if(iframeDisplay=="none"){this.iframe.style.display="none";}}}else{if(this.iframe){this.iframe.style.display="none";} +this.showEvent.unsubscribe(this.showIframe,this);this.hideEvent.unsubscribe(this.hideIframe,this);}};YAHOO.widget.Overlay.prototype.configConstrainToViewport=function(type,args,obj){var val=args[0];if(val){if(!YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}}else{this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}};YAHOO.widget.Overlay.prototype.configContext=function(type,args,obj){var contextArgs=args[0];if(contextArgs){var contextEl=contextArgs[0];var elementMagnetCorner=contextArgs[1];var contextMagnetCorner=contextArgs[2];if(contextEl){if(typeof contextEl=="string"){this.cfg.setProperty("context",[document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner],true);} +if(elementMagnetCorner&&contextMagnetCorner){this.align(elementMagnetCorner,contextMagnetCorner);}}}};YAHOO.widget.Overlay.prototype.align=function(elementAlign,contextAlign){var contextArgs=this.cfg.getProperty("context");if(contextArgs){var context=contextArgs[0];var element=this.element;var me=this;if(!elementAlign){elementAlign=contextArgs[1];} +if(!contextAlign){contextAlign=contextArgs[2];} +if(element&&context){var contextRegion=YAHOO.util.Dom.getRegion(context);var doAlign=function(v,h){switch(elementAlign){case YAHOO.widget.Overlay.TOP_LEFT:me.moveTo(h,v);break;case YAHOO.widget.Overlay.TOP_RIGHT:me.moveTo(h-element.offsetWidth,v);break;case YAHOO.widget.Overlay.BOTTOM_LEFT:me.moveTo(h,v-element.offsetHeight);break;case YAHOO.widget.Overlay.BOTTOM_RIGHT:me.moveTo(h-element.offsetWidth,v-element.offsetHeight);break;}};switch(contextAlign){case YAHOO.widget.Overlay.TOP_LEFT:doAlign(contextRegion.top,contextRegion.left);break;case YAHOO.widget.Overlay.TOP_RIGHT:doAlign(contextRegion.top,contextRegion.right);break;case YAHOO.widget.Overlay.BOTTOM_LEFT:doAlign(contextRegion.bottom,contextRegion.left);break;case YAHOO.widget.Overlay.BOTTOM_RIGHT:doAlign(contextRegion.bottom,contextRegion.right);break;}}}};YAHOO.widget.Overlay.prototype.enforceConstraints=function(type,args,obj){var pos=args[0];var x=pos[0];var y=pos[1];var offsetHeight=this.element.offsetHeight;var offsetWidth=this.element.offsetWidth;var viewPortWidth=YAHOO.util.Dom.getViewportWidth();var viewPortHeight=YAHOO.util.Dom.getViewportHeight();var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var topConstraint=scrollY+10;var leftConstraint=scrollX+10;var bottomConstraint=scrollY+viewPortHeight-offsetHeight-10;var rightConstraint=scrollX+viewPortWidth-offsetWidth-10;if(x<leftConstraint){x=leftConstraint;}else if(x>rightConstraint){x=rightConstraint;} +if(y<topConstraint){y=topConstraint;}else if(y>bottomConstraint){y=bottomConstraint;} +this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.cfg.setProperty("xy",[x,y],true);};YAHOO.widget.Overlay.prototype.center=function(){var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var viewPortWidth=YAHOO.util.Dom.getClientWidth();var viewPortHeight=YAHOO.util.Dom.getClientHeight();var elementWidth=this.element.offsetWidth;var elementHeight=this.element.offsetHeight;var x=(viewPortWidth/2)-(elementWidth/2)+scrollX;var y=(viewPortHeight/2)-(elementHeight/2)+scrollY;this.cfg.setProperty("xy",[parseInt(x,10),parseInt(y,10)]);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.syncPosition=function(){var pos=YAHOO.util.Dom.getXY(this.element);this.cfg.setProperty("x",pos[0],true);this.cfg.setProperty("y",pos[1],true);this.cfg.setProperty("xy",pos,true);};YAHOO.widget.Overlay.prototype.onDomResize=function(e,obj){YAHOO.widget.Overlay.superclass.onDomResize.call(this,e,obj);var me=this;setTimeout(function(){me.syncPosition();me.cfg.refireEvent("iframe");me.cfg.refireEvent("context");},0);};YAHOO.widget.Overlay.prototype.destroy=function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);} +this.iframe=null;YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.superclass.destroy.call(this);};YAHOO.widget.Overlay.prototype.toString=function(){return"Overlay "+this.id;};YAHOO.widget.Overlay.windowScrollEvent=new YAHOO.util.CustomEvent("windowScroll");YAHOO.widget.Overlay.windowResizeEvent=new YAHOO.util.CustomEvent("windowResize");YAHOO.widget.Overlay.windowScrollHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.scrollEnd){window.scrollEnd=-1;} +clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){YAHOO.widget.Overlay.windowScrollEvent.fire();},1);}else{YAHOO.widget.Overlay.windowScrollEvent.fire();}};YAHOO.widget.Overlay.windowResizeHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.resizeEnd){window.resizeEnd=-1;} +clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){YAHOO.widget.Overlay.windowResizeEvent.fire();},100);}else{YAHOO.widget.Overlay.windowResizeEvent.fire();}};YAHOO.widget.Overlay._initialized=null;if(YAHOO.widget.Overlay._initialized===null){YAHOO.util.Event.addListener(window,"scroll",YAHOO.widget.Overlay.windowScrollHandler);YAHOO.util.Event.addListener(window,"resize",YAHOO.widget.Overlay.windowResizeHandler);YAHOO.widget.Overlay._initialized=true;} +YAHOO.widget.OverlayManager=function(userConfig){this.init(userConfig);};YAHOO.widget.OverlayManager.CSS_FOCUSED="focused";YAHOO.widget.OverlayManager.prototype={constructor:YAHOO.widget.OverlayManager,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(userConfig){this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){return activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);if(o){this.blurAll();activeOverlay=o;YAHOO.util.Dom.addClass(activeOverlay.element,YAHOO.widget.OverlayManager.CSS_FOCUSED);this.overlays.sort(this.compareZIndexDesc);var topZIndex=YAHOO.util.Dom.getStyle(this.overlays[0].element,"zIndex");if(!isNaN(topZIndex)&&this.overlays[0]!=overlay){activeOverlay.cfg.setProperty("zIndex",(parseInt(topZIndex,10)+2));} +this.overlays.sort(this.compareZIndexDesc);}};this.remove=function(overlay){var o=this.find(overlay);if(o){var originalZ=YAHOO.util.Dom.getStyle(o.element,"zIndex");o.cfg.setProperty("zIndex",-1000,true);this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,this.overlays.length-1);o.cfg.setProperty("zIndex",originalZ,true);o.cfg.setProperty("manager",null);o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){activeOverlay=null;for(var o=0;o<this.overlays.length;o++){YAHOO.util.Dom.removeClass(this.overlays[o].element,YAHOO.widget.OverlayManager.CSS_FOCUSED);}};var overlays=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];} +if(overlays){this.register(overlays);this.overlays.sort(this.compareZIndexDesc);}},register:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){overlay.cfg.addProperty("manager",{value:this});overlay.focusEvent=new YAHOO.util.CustomEvent("focus");overlay.blurEvent=new YAHOO.util.CustomEvent("blur");var mgr=this;overlay.focus=function(){mgr.focus(this);this.focusEvent.fire();};overlay.blur=function(){mgr.blurAll();this.blurEvent.fire();};var focusOnDomEvent=function(e,obj){overlay.focus();};var focusevent=this.cfg.getProperty("focusevent");YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true);var zIndex=YAHOO.util.Dom.getStyle(overlay.element,"zIndex");if(!isNaN(zIndex)){overlay.cfg.setProperty("zIndex",parseInt(zIndex,10));}else{overlay.cfg.setProperty("zIndex",0);} +this.overlays.push(overlay);return true;}else if(overlay instanceof Array){var regcount=0;for(var i=0;i<overlay.length;i++){if(this.register(overlay[i])){regcount++;}} +if(regcount>0){return true;}}else{return false;}},find:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){for(var o=0;o<this.overlays.length;o++){if(this.overlays[o]==overlay){return this.overlays[o];}}}else if(typeof overlay=="string"){for(var p=0;p<this.overlays.length;p++){if(this.overlays[p].id==overlay){return this.overlays[p];}}} +return null;},compareZIndexDesc:function(o1,o2){var zIndex1=o1.cfg.getProperty("zIndex");var zIndex2=o2.cfg.getProperty("zIndex");if(zIndex1>zIndex2){return-1;}else if(zIndex1<zIndex2){return 1;}else{return 0;}},showAll:function(){for(var o=0;o<this.overlays.length;o++){this.overlays[o].show();}},hideAll:function(){for(var o=0;o<this.overlays.length;o++){this.overlays[o].hide();}},toString:function(){return"OverlayManager";}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){} +if(!keyData){} +if(!handler){} +if(!event){event=YAHOO.util.KeyListener.KEYDOWN;} +var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);} +if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);} +function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;} +if(!keyData.alt){keyData.alt=false;} +if(!keyData.ctrl){keyData.ctrl=false;} +if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}} +this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);} +this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);} +this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.widget.Tooltip=function(el,userConfig){YAHOO.widget.Tooltip.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.Tooltip,YAHOO.widget.Overlay);YAHOO.widget.Tooltip.CSS_TOOLTIP="yui-tt";YAHOO.widget.Tooltip.prototype.init=function(el,userConfig){if(document.readyState&&document.readyState!="complete"){var deferredInit=function(){this.init(el,userConfig);};YAHOO.util.Event.addListener(window,"load",deferredInit,this,true);}else{YAHOO.widget.Tooltip.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.Tooltip);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Tooltip.CSS_TOOLTIP);if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.cfg.queueProperty("visible",false);this.cfg.queueProperty("constraintoviewport",true);this.setBody("");this.render(this.cfg.getProperty("container"));this.initEvent.fire(YAHOO.widget.Tooltip);}};YAHOO.widget.Tooltip.prototype.initDefaultConfig=function(){YAHOO.widget.Tooltip.superclass.initDefaultConfig.call(this);this.cfg.addProperty("preventoverlap",{value:true,validator:this.cfg.checkBoolean,supercedes:["x","y","xy"]});this.cfg.addProperty("showdelay",{value:200,handler:this.configShowDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("autodismissdelay",{value:5000,handler:this.configAutoDismissDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("hidedelay",{value:250,handler:this.configHideDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("text",{handler:this.configText,suppressEvent:true});this.cfg.addProperty("container",{value:document.body,handler:this.configContainer});};YAHOO.widget.Tooltip.prototype.configText=function(type,args,obj){var text=args[0];if(text){this.setBody(text);}};YAHOO.widget.Tooltip.prototype.configContainer=function(type,args,obj){var container=args[0];if(typeof container=='string'){this.cfg.setProperty("container",document.getElementById(container),true);}};YAHOO.widget.Tooltip.prototype.configContext=function(type,args,obj){var context=args[0];if(context){if(!(context instanceof Array)){if(typeof context=="string"){this.cfg.setProperty("context",[document.getElementById(context)],true);}else{this.cfg.setProperty("context",[context],true);} +context=this.cfg.getProperty("context");} +if(this._context){for(var c=0;c<this._context.length;++c){var el=this._context[c];YAHOO.util.Event.removeListener(el,"mouseover",this.onContextMouseOver);YAHOO.util.Event.removeListener(el,"mousemove",this.onContextMouseMove);YAHOO.util.Event.removeListener(el,"mouseout",this.onContextMouseOut);}} +this._context=context;for(var d=0;d<this._context.length;++d){var el2=this._context[d];YAHOO.util.Event.addListener(el2,"mouseover",this.onContextMouseOver,this);YAHOO.util.Event.addListener(el2,"mousemove",this.onContextMouseMove,this);YAHOO.util.Event.addListener(el2,"mouseout",this.onContextMouseOut,this);}}};YAHOO.widget.Tooltip.prototype.onContextMouseMove=function(e,obj){obj.pageX=YAHOO.util.Event.getPageX(e);obj.pageY=YAHOO.util.Event.getPageY(e);};YAHOO.widget.Tooltip.prototype.onContextMouseOver=function(e,obj){if(obj.hideProcId){clearTimeout(obj.hideProcId);obj.hideProcId=null;} +var context=this;YAHOO.util.Event.addListener(context,"mousemove",obj.onContextMouseMove,obj);if(context.title){obj._tempTitle=context.title;context.title="";} +obj.showProcId=obj.doShow(e,context);};YAHOO.widget.Tooltip.prototype.onContextMouseOut=function(e,obj){var el=this;if(obj._tempTitle){el.title=obj._tempTitle;obj._tempTitle=null;} +if(obj.showProcId){clearTimeout(obj.showProcId);obj.showProcId=null;} +if(obj.hideProcId){clearTimeout(obj.hideProcId);obj.hideProcId=null;} +obj.hideProcId=setTimeout(function(){obj.hide();},obj.cfg.getProperty("hidedelay"));};YAHOO.widget.Tooltip.prototype.doShow=function(e,context){var yOffset=25;if(this.browser=="opera"&&context.tagName=="A"){yOffset+=12;} +var me=this;return setTimeout(function(){if(me._tempTitle){me.setBody(me._tempTitle);}else{me.cfg.refireEvent("text");} +me.moveTo(me.pageX,me.pageY+yOffset);if(me.cfg.getProperty("preventoverlap")){me.preventOverlap(me.pageX,me.pageY);} +YAHOO.util.Event.removeListener(context,"mousemove",me.onContextMouseMove);me.show();me.hideProcId=me.doHide();},this.cfg.getProperty("showdelay"));};YAHOO.widget.Tooltip.prototype.doHide=function(){var me=this;return setTimeout(function(){me.hide();},this.cfg.getProperty("autodismissdelay"));};YAHOO.widget.Tooltip.prototype.preventOverlap=function(pageX,pageY){var height=this.element.offsetHeight;var elementRegion=YAHOO.util.Dom.getRegion(this.element);elementRegion.top-=5;elementRegion.left-=5;elementRegion.right+=5;elementRegion.bottom+=5;var mousePoint=new YAHOO.util.Point(pageX,pageY);if(elementRegion.contains(mousePoint)){this.cfg.setProperty("y",(pageY-height-5));}};YAHOO.widget.Tooltip.prototype.toString=function(){return"Tooltip "+this.id;};YAHOO.widget.Panel=function(el,userConfig){YAHOO.widget.Panel.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.Panel,YAHOO.widget.Overlay);YAHOO.widget.Panel.CSS_PANEL="yui-panel";YAHOO.widget.Panel.CSS_PANEL_CONTAINER="yui-panel-container";YAHOO.widget.Panel.prototype.init=function(el,userConfig){YAHOO.widget.Panel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.Panel);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Panel.CSS_PANEL);this.buildWrapper();if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.beforeRenderEvent.subscribe(function(){var draggable=this.cfg.getProperty("draggable");if(draggable){if(!this.header){this.setHeader(" ");}}},this,true);var me=this;var doBlur=function(){this.blur();};this.showMaskEvent.subscribe(function(){var checkFocusable=function(el){if((el.tagName=="A"||el.tagName=="BUTTON"||el.tagName=="SELECT"||el.tagName=="INPUT"||el.tagName=="TEXTAREA")&&el.type!="hidden"){if(!YAHOO.util.Dom.isAncestor(me.element,el)){YAHOO.util.Event.addListener(el,"focus",doBlur,el,true);return true;}}else{return false;}};this.focusableElements=YAHOO.util.Dom.getElementsBy(checkFocusable);},this,true);this.hideMaskEvent.subscribe(function(){for(var i=0;i<this.focusableElements.length;i++){var el2=this.focusableElements[i];YAHOO.util.Event.removeListener(el2,"focus",doBlur);}},this,true);this.beforeShowEvent.subscribe(function(){this.cfg.refireEvent("underlay");},this,true);this.initEvent.fire(YAHOO.widget.Panel);};YAHOO.widget.Panel.prototype.initEvents=function(){YAHOO.widget.Panel.superclass.initEvents.call(this);this.showMaskEvent=new YAHOO.util.CustomEvent("showMask");this.hideMaskEvent=new YAHOO.util.CustomEvent("hideMask");this.dragEvent=new YAHOO.util.CustomEvent("drag");};YAHOO.widget.Panel.prototype.initDefaultConfig=function(){YAHOO.widget.Panel.superclass.initDefaultConfig.call(this);this.cfg.addProperty("close",{value:true,handler:this.configClose,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("draggable",{value:true,handler:this.configDraggable,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("underlay",{value:"shadow",handler:this.configUnderlay,supercedes:["visible"]});this.cfg.addProperty("modal",{value:false,handler:this.configModal,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("keylisteners",{handler:this.configKeyListeners,suppressEvent:true,supercedes:["visible"]});};YAHOO.widget.Panel.prototype.configClose=function(type,args,obj){var val=args[0];var doHide=function(e,obj){obj.hide();};if(val){if(!this.close){this.close=document.createElement("span");YAHOO.util.Dom.addClass(this.close,"container-close");this.close.innerHTML=" ";this.innerElement.appendChild(this.close);YAHOO.util.Event.addListener(this.close,"click",doHide,this);}else{this.close.style.display="block";}}else{if(this.close){this.close.style.display="none";}}};YAHOO.widget.Panel.prototype.configDraggable=function(type,args,obj){var val=args[0];if(val){if(this.header){YAHOO.util.Dom.setStyle(this.header,"cursor","move");this.registerDragDrop();}}else{if(this.dd){this.dd.unreg();} +if(this.header){YAHOO.util.Dom.setStyle(this.header,"cursor","auto");}}};YAHOO.widget.Panel.prototype.configUnderlay=function(type,args,obj){var val=args[0];switch(val.toLowerCase()){case"shadow":YAHOO.util.Dom.removeClass(this.element,"matte");YAHOO.util.Dom.addClass(this.element,"shadow");if(!this.underlay){this.underlay=document.createElement("div");this.underlay.className="underlay";this.underlay.innerHTML=" ";this.element.appendChild(this.underlay);} +this.sizeUnderlay();break;case"matte":YAHOO.util.Dom.removeClass(this.element,"shadow");YAHOO.util.Dom.addClass(this.element,"matte");break;default:YAHOO.util.Dom.removeClass(this.element,"shadow");YAHOO.util.Dom.removeClass(this.element,"matte");break;}};YAHOO.widget.Panel.prototype.configModal=function(type,args,obj){var modal=args[0];if(modal){this.buildMask();if(!YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent,this.showMask,this)){this.beforeShowEvent.subscribe(this.showMask,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMask,this)){this.hideEvent.subscribe(this.hideMask,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent,this.sizeMask,this)){YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.sizeMask,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.destroyEvent,this.removeMask,this)){this.destroyEvent.subscribe(this.removeMask,this,true);} +this.cfg.refireEvent("zIndex");}else{this.beforeShowEvent.unsubscribe(this.showMask,this);this.hideEvent.unsubscribe(this.hideMask,this);YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.sizeMask,this);this.destroyEvent.unsubscribe(this.removeMask,this);}};YAHOO.widget.Panel.prototype.removeMask=function(){if(this.mask){if(this.mask.parentNode){this.mask.parentNode.removeChild(this.mask);} +this.mask=null;}};YAHOO.widget.Panel.prototype.configKeyListeners=function(type,args,obj){var listeners=args[0];if(listeners){if(listeners instanceof Array){for(var i=0;i<listeners.length;i++){var listener=listeners[i];if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,listener.enable,listener)){this.showEvent.subscribe(listener.enable,listener,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,listener.disable,listener)){this.hideEvent.subscribe(listener.disable,listener,true);this.destroyEvent.subscribe(listener.disable,listener,true);}}}else{if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,listeners.enable,listeners)){this.showEvent.subscribe(listeners.enable,listeners,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,listeners.disable,listeners)){this.hideEvent.subscribe(listeners.disable,listeners,true);this.destroyEvent.subscribe(listeners.disable,listeners,true);}}}};YAHOO.widget.Panel.prototype.configHeight=function(type,args,obj){var height=args[0];var el=this.innerElement;YAHOO.util.Dom.setStyle(el,"height",height);this.cfg.refireEvent("underlay");this.cfg.refireEvent("iframe");};YAHOO.widget.Panel.prototype.configWidth=function(type,args,obj){var width=args[0];var el=this.innerElement;YAHOO.util.Dom.setStyle(el,"width",width);this.cfg.refireEvent("underlay");this.cfg.refireEvent("iframe");};YAHOO.widget.Panel.prototype.configzIndex=function(type,args,obj){YAHOO.widget.Panel.superclass.configzIndex.call(this,type,args,obj);var maskZ=0;var currentZ=YAHOO.util.Dom.getStyle(this.element,"zIndex");if(this.mask){if(!currentZ||isNaN(currentZ)){currentZ=0;} +if(currentZ===0){this.cfg.setProperty("zIndex",1);}else{maskZ=currentZ-1;YAHOO.util.Dom.setStyle(this.mask,"zIndex",maskZ);}}};YAHOO.widget.Panel.prototype.buildWrapper=function(){var elementParent=this.element.parentNode;var originalElement=this.element;var wrapper=document.createElement("div");wrapper.className=YAHOO.widget.Panel.CSS_PANEL_CONTAINER;wrapper.id=originalElement.id+"_c";if(elementParent){elementParent.insertBefore(wrapper,originalElement);} +wrapper.appendChild(originalElement);this.element=wrapper;this.innerElement=originalElement;YAHOO.util.Dom.setStyle(this.innerElement,"visibility","inherit");};YAHOO.widget.Panel.prototype.sizeUnderlay=function(){if(this.underlay&&this.browser!="gecko"&&this.browser!="safari"){this.underlay.style.width=this.innerElement.offsetWidth+"px";this.underlay.style.height=this.innerElement.offsetHeight+"px";}};YAHOO.widget.Panel.prototype.onDomResize=function(e,obj){YAHOO.widget.Panel.superclass.onDomResize.call(this,e,obj);var me=this;setTimeout(function(){me.sizeUnderlay();},0);};YAHOO.widget.Panel.prototype.registerDragDrop=function(){if(this.header){this.dd=new YAHOO.util.DD(this.element.id,this.id);if(!this.header.id){this.header.id=this.id+"_h";} +var me=this;this.dd.startDrag=function(){if(me.browser=="ie"){YAHOO.util.Dom.addClass(me.element,"drag");} +if(me.cfg.getProperty("constraintoviewport")){var offsetHeight=me.element.offsetHeight;var offsetWidth=me.element.offsetWidth;var viewPortWidth=YAHOO.util.Dom.getViewportWidth();var viewPortHeight=YAHOO.util.Dom.getViewportHeight();var scrollX=window.scrollX||document.documentElement.scrollLeft;var scrollY=window.scrollY||document.documentElement.scrollTop;var topConstraint=scrollY+10;var leftConstraint=scrollX+10;var bottomConstraint=scrollY+viewPortHeight-offsetHeight-10;var rightConstraint=scrollX+viewPortWidth-offsetWidth-10;this.minX=leftConstraint;this.maxX=rightConstraint;this.constrainX=true;this.minY=topConstraint;this.maxY=bottomConstraint;this.constrainY=true;}else{this.constrainX=false;this.constrainY=false;} +me.dragEvent.fire("startDrag",arguments);};this.dd.onDrag=function(){me.syncPosition();me.cfg.refireEvent("iframe");if(this.platform=="mac"&&this.browser=="gecko"){this.showMacGeckoScrollbars();} +me.dragEvent.fire("onDrag",arguments);};this.dd.endDrag=function(){if(me.browser=="ie"){YAHOO.util.Dom.removeClass(me.element,"drag");} +me.dragEvent.fire("endDrag",arguments);};this.dd.setHandleElId(this.header.id);this.dd.addInvalidHandleType("INPUT");this.dd.addInvalidHandleType("SELECT");this.dd.addInvalidHandleType("TEXTAREA");}};YAHOO.widget.Panel.prototype.buildMask=function(){if(!this.mask){this.mask=document.createElement("div");this.mask.id=this.id+"_mask";this.mask.className="mask";this.mask.innerHTML=" ";var maskClick=function(e,obj){YAHOO.util.Event.stopEvent(e);};var firstChild=document.body.firstChild;if(firstChild){document.body.insertBefore(this.mask,document.body.firstChild);}else{document.body.appendChild(this.mask);}}};YAHOO.widget.Panel.prototype.hideMask=function(){if(this.cfg.getProperty("modal")&&this.mask){this.mask.style.display="none";this.hideMaskEvent.fire();YAHOO.util.Dom.removeClass(document.body,"masked");}};YAHOO.widget.Panel.prototype.showMask=function(){if(this.cfg.getProperty("modal")&&this.mask){YAHOO.util.Dom.addClass(document.body,"masked");this.sizeMask();this.mask.style.display="block";this.showMaskEvent.fire();}};YAHOO.widget.Panel.prototype.sizeMask=function(){if(this.mask){this.mask.style.height=YAHOO.util.Dom.getDocumentHeight()+"px";this.mask.style.width=YAHOO.util.Dom.getDocumentWidth()+"px";}};YAHOO.widget.Panel.prototype.render=function(appendToNode){return YAHOO.widget.Panel.superclass.render.call(this,appendToNode,this.innerElement);};YAHOO.widget.Panel.prototype.toString=function(){return"Panel "+this.id;};YAHOO.widget.Dialog=function(el,userConfig){YAHOO.widget.Dialog.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.Dialog,YAHOO.widget.Panel);YAHOO.widget.Dialog.CSS_DIALOG="yui-dialog";YAHOO.widget.Dialog.prototype.initDefaultConfig=function(){YAHOO.widget.Dialog.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};this.cfg.addProperty("postmethod",{value:"async",handler:this.configPostMethod,validator:function(val){if(val!="form"&&val!="async"&&val!="none"&&val!="manual"){return false;}else{return true;}}});this.cfg.addProperty("buttons",{value:"none",handler:this.configButtons});};YAHOO.widget.Dialog.prototype.initEvents=function(){YAHOO.widget.Dialog.superclass.initEvents.call(this);this.beforeSubmitEvent=new YAHOO.util.CustomEvent("beforeSubmit");this.submitEvent=new YAHOO.util.CustomEvent("submit");this.manualSubmitEvent=new YAHOO.util.CustomEvent("manualSubmit");this.asyncSubmitEvent=new YAHOO.util.CustomEvent("asyncSubmit");this.formSubmitEvent=new YAHOO.util.CustomEvent("formSubmit");this.cancelEvent=new YAHOO.util.CustomEvent("cancel");};YAHOO.widget.Dialog.prototype.init=function(el,userConfig){YAHOO.widget.Dialog.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.Dialog);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Dialog.CSS_DIALOG);this.cfg.setProperty("visible",false);if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.showEvent.subscribe(this.focusFirst,this,true);this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.beforeRenderEvent.subscribe(function(){var buttonCfg=this.cfg.getProperty("buttons");if(buttonCfg&&buttonCfg!="none"){if(!this.footer){this.setFooter("");}}},this,true);this.initEvent.fire(YAHOO.widget.Dialog);};YAHOO.widget.Dialog.prototype.doSubmit=function(){var pm=this.cfg.getProperty("postmethod");switch(pm){case"async":var method=this.form.getAttribute("method")||'POST';method=method.toUpperCase();YAHOO.util.Connect.setForm(this.form);var cObj=YAHOO.util.Connect.asyncRequest(method,this.form.getAttribute("action"),this.callback);this.asyncSubmitEvent.fire();break;case"form":this.form.submit();this.formSubmitEvent.fire();break;case"none":case"manual":this.manualSubmitEvent.fire();break;}};YAHOO.widget.Dialog.prototype.registerForm=function(){var form=this.element.getElementsByTagName("form")[0];if(!form){var formHTML="<form name=\"frm_"+this.id+"\" action=\"\"></form>";this.body.innerHTML+=formHTML;form=this.element.getElementsByTagName("form")[0];} +this.firstFormElement=function(){for(var f=0;f<form.elements.length;f++){var el=form.elements[f];if(el.focus&&!el.disabled){if(el.type&&el.type!="hidden"){return el;}}} +return null;}();this.lastFormElement=function(){for(var f=form.elements.length-1;f>=0;f--){var el=form.elements[f];if(el.focus&&!el.disabled){if(el.type&&el.type!="hidden"){return el;}}} +return null;}();this.form=form;if(this.cfg.getProperty("modal")&&this.form){var me=this;var firstElement=this.firstFormElement||this.firstButton;if(firstElement){this.preventBackTab=new YAHOO.util.KeyListener(firstElement,{shift:true,keys:9},{fn:me.focusLast,scope:me,correctScope:true});this.showEvent.subscribe(this.preventBackTab.enable,this.preventBackTab,true);this.hideEvent.subscribe(this.preventBackTab.disable,this.preventBackTab,true);} +var lastElement=this.lastButton||this.lastFormElement;if(lastElement){this.preventTabOut=new YAHOO.util.KeyListener(lastElement,{shift:false,keys:9},{fn:me.focusFirst,scope:me,correctScope:true});this.showEvent.subscribe(this.preventTabOut.enable,this.preventTabOut,true);this.hideEvent.subscribe(this.preventTabOut.disable,this.preventTabOut,true);}}};YAHOO.widget.Dialog.prototype.configClose=function(type,args,obj){var val=args[0];var doCancel=function(e,obj){obj.cancel();};if(val){if(!this.close){this.close=document.createElement("div");YAHOO.util.Dom.addClass(this.close,"container-close");this.close.innerHTML=" ";this.innerElement.appendChild(this.close);YAHOO.util.Event.addListener(this.close,"click",doCancel,this);}else{this.close.style.display="block";}}else{if(this.close){this.close.style.display="none";}}};YAHOO.widget.Dialog.prototype.configButtons=function(type,args,obj){var buttons=args[0];if(buttons!="none"){this.buttonSpan=null;this.buttonSpan=document.createElement("span");this.buttonSpan.className="button-group";for(var b=0;b<buttons.length;b++){var button=buttons[b];var htmlButton=document.createElement("button");htmlButton.setAttribute("type","button");if(button.isDefault){htmlButton.className="default";this.defaultHtmlButton=htmlButton;} +htmlButton.appendChild(document.createTextNode(button.text));YAHOO.util.Event.addListener(htmlButton,"click",button.handler,this,true);this.buttonSpan.appendChild(htmlButton);button.htmlButton=htmlButton;if(b===0){this.firstButton=button.htmlButton;} +if(b==(buttons.length-1)){this.lastButton=button.htmlButton;}} +this.setFooter(this.buttonSpan);this.cfg.refireEvent("iframe");this.cfg.refireEvent("underlay");}else{if(this.buttonSpan){if(this.buttonSpan.parentNode){this.buttonSpan.parentNode.removeChild(this.buttonSpan);} +this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null;}}};YAHOO.widget.Dialog.prototype.focusFirst=function(type,args,obj){if(args){var e=args[1];if(e){YAHOO.util.Event.stopEvent(e);}} +if(this.firstFormElement){this.firstFormElement.focus();}else{this.focusDefaultButton();}};YAHOO.widget.Dialog.prototype.focusLast=function(type,args,obj){if(args){var e=args[1];if(e){YAHOO.util.Event.stopEvent(e);}} +var buttons=this.cfg.getProperty("buttons");if(buttons&&buttons instanceof Array){this.focusLastButton();}else{if(this.lastFormElement){this.lastFormElement.focus();}}};YAHOO.widget.Dialog.prototype.focusDefaultButton=function(){if(this.defaultHtmlButton){this.defaultHtmlButton.focus();}};YAHOO.widget.Dialog.prototype.blurButtons=function(){var buttons=this.cfg.getProperty("buttons");if(buttons&&buttons instanceof Array){var html=buttons[0].htmlButton;if(html){html.blur();}}};YAHOO.widget.Dialog.prototype.focusFirstButton=function(){var buttons=this.cfg.getProperty("buttons");if(buttons&&buttons instanceof Array){var html=buttons[0].htmlButton;if(html){html.focus();}}};YAHOO.widget.Dialog.prototype.focusLastButton=function(){var buttons=this.cfg.getProperty("buttons");if(buttons&&buttons instanceof Array){var html=buttons[buttons.length-1].htmlButton;if(html){html.focus();}}};YAHOO.widget.Dialog.prototype.configPostMethod=function(type,args,obj){var postmethod=args[0];this.registerForm();YAHOO.util.Event.addListener(this.form,"submit",function(e){YAHOO.util.Event.stopEvent(e);this.submit();this.form.blur();},this,true);};YAHOO.widget.Dialog.prototype.validate=function(){return true;};YAHOO.widget.Dialog.prototype.submit=function(){if(this.validate()){this.beforeSubmitEvent.fire();this.doSubmit();this.submitEvent.fire();this.hide();return true;}else{return false;}};YAHOO.widget.Dialog.prototype.cancel=function(){this.cancelEvent.fire();this.hide();};YAHOO.widget.Dialog.prototype.getData=function(){var oForm=this.form;if(oForm){var aElements=oForm.elements,nTotalElements=aElements.length,oData={},sName,oElement;for(var i=0;i<nTotalElements;i++){sName=aElements[i].name,oElement=aElements[sName];if(oElement){if(oElement.tagName){var sType=oElement.type,sTagName=oElement.tagName.toUpperCase();switch(sTagName){case"INPUT":if(sType=="checkbox"){oData[sName]=oElement.checked;} +else if(sType!="radio"){oData[sName]=oElement.value;} +break;case"TEXTAREA":oData[sName]=oElement.value;break;case"SELECT":var aOptions=oElement.options,nOptions=aOptions.length,aValues=[],oOption,sValue;for(var n=0;n<nOptions;n++){oOption=aOptions[n];if(oOption.selected){sValue=oOption.value;if(!sValue||sValue===""){sValue=oOption.text;} +aValues[aValues.length]=sValue;}} +oData[sName]=aValues;break;}} +else{var nElements=oElement.length,sType=oElement[0].type,sTagName=oElement[0].tagName.toUpperCase();switch(sType){case"radio":var oRadio;for(var n=0;n<nElements;n++){oRadio=oElement[n];if(oRadio.checked){oData[sName]=oRadio.value;break;}} +break;case"checkbox":var aValues=[],oCheckbox;for(var n=0;n<nElements;n++){oCheckbox=oElement[n];if(oCheckbox.checked){aValues[aValues.length]=oCheckbox.value;}} +oData[sName]=aValues;break;}}}}} +return oData;};YAHOO.widget.Dialog.prototype.toString=function(){return"Dialog "+this.id;};YAHOO.widget.SimpleDialog=function(el,userConfig){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.SimpleDialog,YAHOO.widget.Dialog);YAHOO.widget.SimpleDialog.ICON_BLOCK="blckicon";YAHOO.widget.SimpleDialog.ICON_ALARM="alrticon";YAHOO.widget.SimpleDialog.ICON_HELP="hlpicon";YAHOO.widget.SimpleDialog.ICON_INFO="infoicon";YAHOO.widget.SimpleDialog.ICON_WARN="warnicon";YAHOO.widget.SimpleDialog.ICON_TIP="tipicon";YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG="yui-simple-dialog";YAHOO.widget.SimpleDialog.prototype.initDefaultConfig=function(){YAHOO.widget.SimpleDialog.superclass.initDefaultConfig.call(this);this.cfg.addProperty("icon",{value:"none",handler:this.configIcon,suppressEvent:true});this.cfg.addProperty("text",{value:"",handler:this.configText,suppressEvent:true,supercedes:["icon"]});};YAHOO.widget.SimpleDialog.prototype.init=function(el,userConfig){YAHOO.widget.SimpleDialog.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.SimpleDialog);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG);this.cfg.queueProperty("postmethod","manual");if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody("");}},this,true);this.initEvent.fire(YAHOO.widget.SimpleDialog);};YAHOO.widget.SimpleDialog.prototype.registerForm=function(){YAHOO.widget.SimpleDialog.superclass.registerForm.call(this);this.form.innerHTML+="<input type=\"hidden\" name=\""+this.id+"\" value=\"\"/>";};YAHOO.widget.SimpleDialog.prototype.configIcon=function(type,args,obj){var icon=args[0];if(icon&&icon!="none"){var iconHTML="";if(icon.indexOf(".")==-1){iconHTML="<span class=\"yui-icon "+icon+"\" > </span>";}else{iconHTML="<img src=\""+this.imageRoot+icon+"\" class=\"yui-icon\" />";} +this.body.innerHTML=iconHTML+this.body.innerHTML;}};YAHOO.widget.SimpleDialog.prototype.configText=function(type,args,obj){var text=args[0];if(text){this.setBody(text);this.cfg.refireEvent("icon");}};YAHOO.widget.SimpleDialog.prototype.toString=function(){return"SimpleDialog "+this.id;};YAHOO.widget.ContainerEffect=function(overlay,attrIn,attrOut,targetElement,animClass){if(!animClass){animClass=YAHOO.util.Anim;} +this.overlay=overlay;this.attrIn=attrIn;this.attrOut=attrOut;this.targetElement=targetElement||overlay.element;this.animClass=animClass;};YAHOO.widget.ContainerEffect.prototype.init=function(){this.beforeAnimateInEvent=new YAHOO.util.CustomEvent("beforeAnimateIn");this.beforeAnimateOutEvent=new YAHOO.util.CustomEvent("beforeAnimateOut");this.animateInCompleteEvent=new YAHOO.util.CustomEvent("animateInComplete");this.animateOutCompleteEvent=new YAHOO.util.CustomEvent("animateOutComplete");this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);};YAHOO.widget.ContainerEffect.prototype.animateIn=function(){this.beforeAnimateInEvent.fire();this.animIn.animate();};YAHOO.widget.ContainerEffect.prototype.animateOut=function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.toString=function(){var output="ContainerEffect";if(this.overlay){output+=" ["+this.overlay.toString()+"]";} +return output;};YAHOO.widget.ContainerEffect.FADE=function(overlay,dur){var fade=new YAHOO.widget.ContainerEffect(overlay,{attributes:{opacity:{from:0,to:1}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{opacity:{to:0}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element);fade.handleStartAnimateIn=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(!obj.overlay.underlay){obj.overlay.cfg.refireEvent("underlay");} +if(obj.overlay.underlay){obj.initialUnderlayOpacity=YAHOO.util.Dom.getStyle(obj.overlay.underlay,"opacity");obj.overlay.underlay.style.filter=null;} +YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","visible");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",0);};fade.handleCompleteAnimateIn=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;} +if(obj.overlay.underlay){YAHOO.util.Dom.setStyle(obj.overlay.underlay,"opacity",obj.initialUnderlayOpacity);} +obj.overlay.cfg.refireEvent("iframe");obj.animateInCompleteEvent.fire();};fade.handleStartAnimateOut=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(obj.overlay.underlay){obj.overlay.underlay.style.filter=null;}};fade.handleCompleteAnimateOut=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;} +YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","hidden");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",1);obj.overlay.cfg.refireEvent("iframe");obj.animateOutCompleteEvent.fire();};fade.init();return fade;};YAHOO.widget.ContainerEffect.SLIDE=function(overlay,dur){var x=overlay.cfg.getProperty("x")||YAHOO.util.Dom.getX(overlay.element);var y=overlay.cfg.getProperty("y")||YAHOO.util.Dom.getY(overlay.element);var clientWidth=YAHOO.util.Dom.getClientWidth();var offsetWidth=overlay.element.offsetWidth;var slide=new YAHOO.widget.ContainerEffect(overlay,{attributes:{points:{to:[x,y]}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{points:{to:[(clientWidth+25),y]}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element,YAHOO.util.Motion);slide.handleStartAnimateIn=function(type,args,obj){obj.overlay.element.style.left=(-25-offsetWidth)+"px";obj.overlay.element.style.top=y+"px";};slide.handleTweenAnimateIn=function(type,args,obj){var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var currentX=pos[0];var currentY=pos[1];if(YAHOO.util.Dom.getStyle(obj.overlay.element,"visibility")=="hidden"&¤tX<x){YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","visible");} +obj.overlay.cfg.setProperty("xy",[currentX,currentY],true);obj.overlay.cfg.refireEvent("iframe");};slide.handleCompleteAnimateIn=function(type,args,obj){obj.overlay.cfg.setProperty("xy",[x,y],true);obj.startX=x;obj.startY=y;obj.overlay.cfg.refireEvent("iframe");obj.animateInCompleteEvent.fire();};slide.handleStartAnimateOut=function(type,args,obj){var vw=YAHOO.util.Dom.getViewportWidth();var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var yso=pos[1];var currentTo=obj.animOut.attributes.points.to;obj.animOut.attributes.points.to=[(vw+25),yso];};slide.handleTweenAnimateOut=function(type,args,obj){var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var xto=pos[0];var yto=pos[1];obj.overlay.cfg.setProperty("xy",[xto,yto],true);obj.overlay.cfg.refireEvent("iframe");};slide.handleCompleteAnimateOut=function(type,args,obj){YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","hidden");obj.overlay.cfg.setProperty("xy",[x,y]);obj.animateOutCompleteEvent.fire();};slide.init();return slide;};YAHOO.register("container",YAHOO.widget.Module,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/container/container.js b/interface/ispconfig/interface/js/yui/container/container.js new file mode 100644 index 0000000..82dacb2 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container.js @@ -0,0 +1,4727 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* The Container family of components is designed to enable developers to create different kinds of content-containing modules on the web. Module and Overlay are the most basic containers, and they can be used directly or extended to build custom containers. Also part of the Container family are four UI controls that extend Module and Overlay: Tooltip, Panel, Dialog, and SimpleDialog. +* @module container +* @title Container +* @requires yahoo,dom,event,dragdrop,animation +*/ + +/** +* Module is a JavaScript representation of the Standard Module Format. Standard Module Format is a simple standard for markup containers where child nodes representing the header, body, and footer of the content are denoted using the CSS classes "hd", "bd", and "ft" respectively. Module is the base class for all other classes in the YUI Container package. +* @namespace YAHOO.widget +* @class Module +* @constructor +* @param {String} el The element ID representing the Module <em>OR</em> +* @param {HTMLElement} el The element representing the Module +* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. +*/ +YAHOO.widget.Module = function(el, userConfig) { + if (el) { + this.init(el, userConfig); + } else { + } +}; + +/** +* Constant representing the prefix path to use for non-secure images +* @property YAHOO.widget.Module.IMG_ROOT +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT = null; + +/** +* Constant representing the prefix path to use for securely served images +* @property YAHOO.widget.Module.IMG_ROOT_SSL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT_SSL = null; + +/** +* Constant for the default CSS class name that represents a Module +* @property YAHOO.widget.Module.CSS_MODULE +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_MODULE = "module"; + +/** +* Constant representing the module header +* @property YAHOO.widget.Module.CSS_HEADER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_HEADER = "hd"; + +/** +* Constant representing the module body +* @property YAHOO.widget.Module.CSS_BODY +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_BODY = "bd"; + +/** +* Constant representing the module footer +* @property YAHOO.widget.Module.CSS_FOOTER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_FOOTER = "ft"; + +/** +* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size +* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;"; + +/** +* Singleton CustomEvent fired when the font size is changed in the browser. +* Opera's "zoom" functionality currently does not support text size detection. +* @event YAHOO.widget.Module.textResizeEvent +*/ +YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize"); + +YAHOO.widget.Module.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.Module, + + /** + * The main module element that contains the header, body, and footer + * @property element + * @type HTMLElement + */ + element : null, + + /** + * The header element, denoted with CSS class "hd" + * @property header + * @type HTMLElement + */ + header : null, + + /** + * The body element, denoted with CSS class "bd" + * @property body + * @type HTMLElement + */ + body : null, + + /** + * The footer element, denoted with CSS class "ft" + * @property footer + * @type HTMLElement + */ + footer : null, + + /** + * The id of the element + * @property id + * @type String + */ + id : null, + + /** + * The String representing the image root + * @property imageRoot + * @type String + */ + imageRoot : YAHOO.widget.Module.IMG_ROOT, + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + * @method initEvents + */ + initEvents : function() { + + /** + * CustomEvent fired prior to class initalization. + * @event beforeInitEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit"); + + /** + * CustomEvent fired after class initalization. + * @event initEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.initEvent = new YAHOO.util.CustomEvent("init"); + + /** + * CustomEvent fired when the Module is appended to the DOM + * @event appendEvent + */ + this.appendEvent = new YAHOO.util.CustomEvent("append"); + + /** + * CustomEvent fired before the Module is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * CustomEvent fired after the Module is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * CustomEvent fired when the header content of the Module is modified + * @event changeHeaderEvent + * @param {String/HTMLElement} content String/element representing the new header content + */ + this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader"); + + /** + * CustomEvent fired when the body content of the Module is modified + * @event changeBodyEvent + * @param {String/HTMLElement} content String/element representing the new body content + */ + this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody"); + + /** + * CustomEvent fired when the footer content of the Module is modified + * @event changeFooterEvent + * @param {String/HTMLElement} content String/element representing the new footer content + */ + this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter"); + + /** + * CustomEvent fired when the content of the Module is modified + * @event changeContentEvent + */ + this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent"); + + /** + * CustomEvent fired when the Module is destroyed + * @event destroyEvent + */ + this.destroyEvent = new YAHOO.util.CustomEvent("destroy"); + + /** + * CustomEvent fired before the Module is shown + * @event beforeShowEvent + */ + this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow"); + + /** + * CustomEvent fired after the Module is shown + * @event showEvent + */ + this.showEvent = new YAHOO.util.CustomEvent("show"); + + /** + * CustomEvent fired before the Module is hidden + * @event beforeHideEvent + */ + this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide"); + + /** + * CustomEvent fired after the Module is hidden + * @event hideEvent + */ + this.hideEvent = new YAHOO.util.CustomEvent("hide"); + }, + + /** + * String representing the current user-agent platform + * @property platform + * @type String + */ + platform : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) { + return "windows"; + } else if (ua.indexOf("macintosh") != -1) { + return "mac"; + } else { + return false; + } + }(), + + /** + * String representing the current user-agent browser + * @property browser + * @type String + */ + browser : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(), + + /** + * Boolean representing whether or not the current browsing context is secure (https) + * @property isSecure + * @type Boolean + */ + isSecure : function() { + if (window.location.href.toLowerCase().indexOf("https") === 0) { + return true; + } else { + return false; + } + }(), + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + */ + initDefaultConfig : function() { + // Add properties // + + /** + * Specifies whether the Module is visible on the page. + * @config visible + * @type Boolean + * @default true + */ + this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } ); + + /** + * Object or array of objects representing the ContainerEffect classes that are active for animating the container. + * @config effect + * @type Object + * @default null + */ + this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } ); + + /** + * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document + * @config monitorresize + * @type Boolean + * @default true + */ + this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } ); + }, + + /** + * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. + * @method init + * @param {String} el The element ID representing the Module <em>OR</em> + * @param {HTMLElement} el The element representing the Module + * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. + */ + init : function(el, userConfig) { + + this.initEvents(); + + this.beforeInitEvent.fire(YAHOO.widget.Module); + + /** + * The Module's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + if (this.isSecure) { + this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL; + } + + if (typeof el == "string") { + var elId = el; + + el = document.getElementById(el); + if (! el) { + el = document.createElement("div"); + el.id = elId; + } + } + + this.element = el; + + if (el.id) { + this.id = el.id; + } + + var childNodes = this.element.childNodes; + + if (childNodes) { + for (var i=0;i<childNodes.length;i++) { + var child = childNodes[i]; + switch (child.className) { + case YAHOO.widget.Module.CSS_HEADER: + this.header = child; + break; + case YAHOO.widget.Module.CSS_BODY: + this.body = child; + break; + case YAHOO.widget.Module.CSS_FOOTER: + this.footer = child; + break; + } + } + } + + this.initDefaultConfig(); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Module.CSS_MODULE); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + // Subscribe to the fireQueue() method of Config so that any queued configuration changes are + // excecuted upon render of the Module + if (! YAHOO.util.Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) { + this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true); + } + + this.initEvent.fire(YAHOO.widget.Module); + }, + + /** + * Initialized an empty IFRAME that is placed out of the visible area that can be used to detect text resize. + * @method initResizeMonitor + */ + initResizeMonitor : function() { + + if(this.browser != "opera") { + + var resizeMonitor = document.getElementById("_yuiResizeMonitor"); + + if (! resizeMonitor) { + + resizeMonitor = document.createElement("iframe"); + + var bIE = (this.browser.indexOf("ie") === 0); + + if(this.isSecure && YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL && bIE) { + resizeMonitor.src = YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL; + } + + resizeMonitor.id = "_yuiResizeMonitor"; + resizeMonitor.style.visibility = "hidden"; + + document.body.appendChild(resizeMonitor); + + resizeMonitor.style.width = "10em"; + resizeMonitor.style.height = "10em"; + resizeMonitor.style.position = "absolute"; + + var nLeft = -1 * resizeMonitor.offsetWidth; + var nTop = -1 * resizeMonitor.offsetHeight; + + resizeMonitor.style.top = nTop + "px"; + resizeMonitor.style.left = nLeft + "px"; + resizeMonitor.style.borderStyle = "none"; + resizeMonitor.style.borderWidth = "0"; + YAHOO.util.Dom.setStyle(resizeMonitor, "opacity", "0"); + + resizeMonitor.style.visibility = "visible"; + + if(!bIE) { + + var doc = resizeMonitor.contentWindow.document; + + doc.open(); + doc.close(); + + } + } + + var fireTextResize = function() { + YAHOO.widget.Module.textResizeEvent.fire(); + }; + + if(resizeMonitor && resizeMonitor.contentWindow) { + this.resizeMonitor = resizeMonitor; + + YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize, this, true); + + if (! YAHOO.widget.Module.textResizeInitialized) { + if (! YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow, "resize", fireTextResize)) { + // This will fail in IE if document.domain has changed, so we must change the listener to + // use the resizeMonitor element instead + YAHOO.util.Event.addListener(this.resizeMonitor, "resize", fireTextResize); + } + YAHOO.widget.Module.textResizeInitialized = true; + } + } + + } + + }, + + /** + * Event handler fired when the resize monitor element is resized. + * @method onDomResize + * @param {DOMEvent} e The DOM resize event + * @param {Object} obj The scope object passed to the handler + */ + onDomResize : function(e, obj) { + + var nLeft = -1 * this.resizeMonitor.offsetWidth, + nTop = -1 * this.resizeMonitor.offsetHeight; + + this.resizeMonitor.style.top = nTop + "px"; + this.resizeMonitor.style.left = nLeft + "px"; + + }, + + /** + * Sets the Module's header content to the HTML specified, or appends the passed element to the header. If no header is present, one will be automatically created. + * @method setHeader + * @param {String} headerContent The HTML used to set the header <em>OR</em> + * @param {HTMLElement} headerContent The HTMLElement to append to the header + */ + setHeader : function(headerContent) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + if (typeof headerContent == "string") { + this.header.innerHTML = headerContent; + } else { + this.header.innerHTML = ""; + this.header.appendChild(headerContent); + } + + this.changeHeaderEvent.fire(headerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the header. If no header is present, one will be automatically created. + * @method appendToHeader + * @param {HTMLElement} element The element to append to the header + */ + appendToHeader : function(element) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + this.header.appendChild(element); + this.changeHeaderEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created. + * @method setBody + * @param {String} bodyContent The HTML used to set the body <em>OR</em> + * @param {HTMLElement} bodyContent The HTMLElement to append to the body + */ + setBody : function(bodyContent) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + if (typeof bodyContent == "string") + { + this.body.innerHTML = bodyContent; + } else { + this.body.innerHTML = ""; + this.body.appendChild(bodyContent); + } + + this.changeBodyEvent.fire(bodyContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the body. If no body is present, one will be automatically created. + * @method appendToBody + * @param {HTMLElement} element The element to append to the body + */ + appendToBody : function(element) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + this.body.appendChild(element); + this.changeBodyEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method setFooter + * @param {String} footerContent The HTML used to set the footer <em>OR</em> + * @param {HTMLElement} footerContent The HTMLElement to append to the footer + */ + setFooter : function(footerContent) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + if (typeof footerContent == "string") { + this.footer.innerHTML = footerContent; + } else { + this.footer.innerHTML = ""; + this.footer.appendChild(footerContent); + } + + this.changeFooterEvent.fire(footerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method appendToFooter + * @param {HTMLElement} element The element to append to the footer + */ + appendToFooter : function(element) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + this.footer.appendChild(element); + this.changeFooterEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. + * @method render + * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> + * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering + * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container. + * @return {Boolean} Success or failure of the render + */ + render : function(appendToNode, moduleElement) { + this.beforeRenderEvent.fire(); + + if (! moduleElement) { + moduleElement = this.element; + } + + var me = this; + var appendTo = function(element) { + if (typeof element == "string") { + element = document.getElementById(element); + } + + if (element) { + element.appendChild(me.element); + me.appendEvent.fire(); + } + }; + + if (appendToNode) { + appendTo(appendToNode); + } else { // No node was passed in. If the element is not pre-marked up, this fails + if (! YAHOO.util.Dom.inDocument(this.element)) { + return false; + } + } + + // Need to get everything into the DOM if it isn't already + + if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) { + // There is a header, but it's not in the DOM yet... need to add it + var firstChild = moduleElement.firstChild; + if (firstChild) { // Insert before first child if exists + moduleElement.insertBefore(this.header, firstChild); + } else { // Append to empty body because there are no children + moduleElement.appendChild(this.header); + } + } + + if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) { + // There is a body, but it's not in the DOM yet... need to add it + if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM + moduleElement.insertBefore(this.body, this.footer); + } else { // Append to element because there is no footer + moduleElement.appendChild(this.body); + } + } + + if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) { + // There is a footer, but it's not in the DOM yet... need to add it + moduleElement.appendChild(this.footer); + } + + this.renderEvent.fire(); + return true; + }, + + /** + * Removes the Module element from the DOM and sets all child elements to null. + * @method destroy + */ + destroy : function() { + var parent; + + if (this.element) { + YAHOO.util.Event.purgeElement(this.element, true); + parent = this.element.parentNode; + } + if (parent) { + parent.removeChild(this.element); + } + + this.element = null; + this.header = null; + this.body = null; + this.footer = null; + + for (var e in this) { + if (e instanceof YAHOO.util.CustomEvent) { + e.unsubscribeAll(); + } + } + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this); + + this.destroyEvent.fire(); + }, + + /** + * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after. + * @method show + */ + show : function() { + this.cfg.setProperty("visible", true); + }, + + /** + * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after. + * @method hide + */ + hide : function() { + this.cfg.setProperty("visible", false); + }, + + // BUILT-IN EVENT HANDLERS FOR MODULE // + + /** + * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none". + * This method is responsible for firing showEvent and hideEvent. + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configVisible + */ + configVisible : function(type, args, obj) { + var visible = args[0]; + if (visible) { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } else { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + }, + + /** + * Default event handler for the "monitorresize" configuration property + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configMonitorResize + */ + configMonitorResize : function(type, args, obj) { + var monitor = args[0]; + if (monitor) { + this.initResizeMonitor(); + } else { + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true); + this.resizeMonitor = null; + } + } +}; + +/** +* Returns a String representation of the Object. +* @method toString +* @return {String} The string representation of the Module +*/ +YAHOO.widget.Module.prototype.toString = function() { + return "Module " + this.id; +}; + +/** +* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements. +* @namespace YAHOO.widget +* @class Overlay +* @extends YAHOO.widget.Module +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details. +* @constructor +*/ +YAHOO.widget.Overlay = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module); + +/** +* The URL that will be placed in the iframe +* @property YAHOO.widget.Overlay.IFRAME_SRC +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;"; + +/** +* Constant representing the top left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_LEFT = "tl"; + +/** +* Constant representing the top right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_RIGHT = "tr"; + +/** +* Constant representing the top bottom left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_LEFT = "bl"; + +/** +* Constant representing the bottom right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_RIGHT = "br"; + +/** +* Constant representing the default CSS class used for an Overlay +* @property YAHOO.widget.Overlay.CSS_OVERLAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Overlay.prototype.init = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Overlay); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + if (this.platform == "mac" && this.browser == "gecko") { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) { + this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) { + this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true); + } + } + + this.initEvent.fire(YAHOO.widget.Overlay); + +}; + +/** +* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class. +* @method initEvents +*/ +YAHOO.widget.Overlay.prototype.initEvents = function() { + YAHOO.widget.Overlay.superclass.initEvents.call(this); + + /** + * CustomEvent fired before the Overlay is moved. + * @event beforeMoveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this); + + /** + * CustomEvent fired after the Overlay is moved. + * @event moveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.moveEvent = new YAHOO.util.CustomEvent("move", this); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Overlay.prototype.initDefaultConfig = function() { + YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this); + + // Add overlay config properties // + + /** + * The absolute x-coordinate position of the Overlay + * @config x + * @type Number + * @default null + */ + this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The absolute y-coordinate position of the Overlay + * @config y + * @type Number + * @default null + */ + this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * An array with the absolute x and y positions of the Overlay + * @config xy + * @type Number[] + * @default null + */ + this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner. + * @config context + * @type Array + * @default null + */ + this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * True if the Overlay should be anchored to the center of the viewport. + * @config fixedcenter + * @type Boolean + * @default false + */ + this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } ); + + /** + * CSS width of the Overlay. + * @config width + * @type String + * @default null + */ + this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS height of the Overlay. + * @config height + * @type String + * @default null + */ + this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS z-index of the Overlay. + * @config zIndex + * @type Number + * @default null + */ + this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } ); + + /** + * True if the Overlay should be prevented from being positioned out of the viewport. + * @config constraintoviewport + * @type Boolean + * @default false + */ + this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } ); + + /** + * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below). + * @config iframe + * @type Boolean + * @default true for IE6 and below, false for all others + */ + this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } ); +}; + +/** +* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]); +* @method moveTo +* @param {Number} x The Overlay's new x position +* @param {Number} y The Overlay's new y position +*/ +YAHOO.widget.Overlay.prototype.moveTo = function(x, y) { + this.cfg.setProperty("xy",[x,y]); +}; + +/** +* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method hideMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "show-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "hide-scrollbars"); +}; + +/** +* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method showMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "show-scrollbars"); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent. +* @method configVisible +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) { + var visible = args[0]; + var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility"); + + if (currentVis == "inherit") { + var e = this.element.parentNode; + while (e.nodeType != 9 && e.nodeType != 11) { + currentVis = YAHOO.util.Dom.getStyle(e, "visibility"); + if (currentVis != "inherit") { break; } + e = e.parentNode; + } + if (currentVis == "inherit") { + currentVis = "visible"; + } + } + + var effect = this.cfg.getProperty("effect"); + + var effectInstances = []; + if (effect) { + if (effect instanceof Array) { + for (var i=0;i<effect.length;i++) { + var eff = effect[i]; + effectInstances[effectInstances.length] = eff.effect(this, eff.duration); + } + } else { + effectInstances[effectInstances.length] = effect.effect(this, effect.duration); + } + } + + var isMacGecko = (this.platform == "mac" && this.browser == "gecko"); + + if (visible) { // Show + if (isMacGecko) { + this.showMacGeckoScrollbars(); + } + + if (effect) { // Animate in + if (visible) { // Animate in if not showing + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + for (var j=0;j<effectInstances.length;j++) { + var ei = effectInstances[j]; + if (j === 0 && ! YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)) { + ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true); // Delegate showEvent until end of animateInComplete + } + ei.animateIn(); + } + } + } + } else { // Show + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "visible"); + this.cfg.refireEvent("iframe"); + this.showEvent.fire(); + } + } + + } else { // Hide + if (isMacGecko) { + this.hideMacGeckoScrollbars(); + } + + if (effect) { // Animate out if showing + if (currentVis == "visible") { + this.beforeHideEvent.fire(); + for (var k=0;k<effectInstances.length;k++) { + var h = effectInstances[k]; + if (k === 0 && ! YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)) { + h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true); // Delegate hideEvent until end of animateOutComplete + } + h.animateOut(); + } + } else if (currentVis === "") { + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + } + } else { // Simple hide + if (currentVis == "visible" || currentVis === "") { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + this.cfg.refireEvent("iframe"); + this.hideEvent.fire(); + } + } + } +}; + +/** +* Center event handler used for centering on scroll/resize, but only if the Overlay is visible +* @method doCenterOnDOMEvent +*/ +YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent = function() { + if (this.cfg.getProperty("visible")) { + this.center(); + } +}; + +/** +* The default event handler fired when the "fixedcenter" property is changed. +* @method configFixedCenter +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configFixedCenter = function(type, args, obj) { + var val = args[0]; + + if (val) { + this.center(); + + if (! YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent, this.center, this)) { + this.beforeShowEvent.subscribe(this.center, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowScrollEvent.subscribe( this.doCenterOnDOMEvent, this, true); + } + } else { + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configzIndex = function(type, args, obj) { + var zIndex = args[0]; + + var el = this.element; + + if (! zIndex) { + zIndex = YAHOO.util.Dom.getStyle(el, "zIndex"); + if (! zIndex || isNaN(zIndex)) { + zIndex = 0; + } + } + + if (this.iframe) { + if (zIndex <= 0) { + zIndex = 1; + } + YAHOO.util.Dom.setStyle(this.iframe, "zIndex", (zIndex-1)); + } + + YAHOO.util.Dom.setStyle(el, "zIndex", zIndex); + this.cfg.setProperty("zIndex", zIndex, true); +}; + +/** +* The default event handler fired when the "xy" property is changed. +* @method configXY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configXY = function(type, args, obj) { + var pos = args[0]; + var x = pos[0]; + var y = pos[1]; + + this.cfg.setProperty("x", x); + this.cfg.setProperty("y", y); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x,y]); +}; + +/** +* The default event handler fired when the "x" property is changed. +* @method configX +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configX = function(type, args, obj) { + var x = args[0]; + var y = this.cfg.getProperty("y"); + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setX(this.element, x, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* The default event handler fired when the "y" property is changed. +* @method configY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configY = function(type, args, obj) { + var x = this.cfg.getProperty("x"); + var y = args[0]; + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setY(this.element, y, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* Shows the iframe shim, if it has been enabled +* @method showIframe +*/ +YAHOO.widget.Overlay.prototype.showIframe = function() { + if (this.iframe) { + this.iframe.style.display = "block"; + } +}; + +/** +* Hides the iframe shim, if it has been enabled +* @method hideIframe +*/ +YAHOO.widget.Overlay.prototype.hideIframe = function() { + if (this.iframe) { + this.iframe.style.display = "none"; + } +}; + +/** +* The default event handler fired when the "iframe" property is changed. +* @method configIframe +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configIframe = function(type, args, obj) { + + var val = args[0]; + + if (val) { // IFRAME shim is enabled + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, this.showIframe, this)) { + this.showEvent.subscribe(this.showIframe, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, this.hideIframe, this)) { + this.hideEvent.subscribe(this.hideIframe, this, true); + } + + var x = this.cfg.getProperty("x"); + var y = this.cfg.getProperty("y"); + + if (! x || ! y) { + this.syncPosition(); + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + } + + + if (! isNaN(x) && ! isNaN(y)) { + if (! this.iframe) { + this.iframe = document.createElement("iframe"); + if (this.isSecure) { + this.iframe.src = YAHOO.widget.Overlay.IFRAME_SRC; + } + + var parent = this.element.parentNode; + if (parent) { + parent.appendChild(this.iframe); + } else { + document.body.appendChild(this.iframe); + } + + YAHOO.util.Dom.setStyle(this.iframe, "position", "absolute"); + YAHOO.util.Dom.setStyle(this.iframe, "border", "none"); + YAHOO.util.Dom.setStyle(this.iframe, "margin", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "padding", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + if (this.cfg.getProperty("visible")) { + this.showIframe(); + } else { + this.hideIframe(); + } + } + + var iframeDisplay = YAHOO.util.Dom.getStyle(this.iframe, "display"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "block"; + } + + YAHOO.util.Dom.setXY(this.iframe, [x,y]); + + var width = this.element.clientWidth; + var height = this.element.clientHeight; + + YAHOO.util.Dom.setStyle(this.iframe, "width", (width+2) + "px"); + YAHOO.util.Dom.setStyle(this.iframe, "height", (height+2) + "px"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "none"; + } + } + } else { + if (this.iframe) { + this.iframe.style.display = "none"; + } + this.showEvent.unsubscribe(this.showIframe, this); + this.hideEvent.unsubscribe(this.hideIframe, this); + } +}; + + +/** +* The default event handler fired when the "constraintoviewport" property is changed. +* @method configConstrainToViewport +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configConstrainToViewport = function(type, args, obj) { + var val = args[0]; + if (val) { + if (! YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) { + this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true); + } + } else { + this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configContext = function(type, args, obj) { + var contextArgs = args[0]; + + if (contextArgs) { + var contextEl = contextArgs[0]; + var elementMagnetCorner = contextArgs[1]; + var contextMagnetCorner = contextArgs[2]; + + if (contextEl) { + if (typeof contextEl == "string") { + this.cfg.setProperty("context", [document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner], true); + } + + if (elementMagnetCorner && contextMagnetCorner) { + this.align(elementMagnetCorner, contextMagnetCorner); + } + } + } +}; + + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Aligns the Overlay to its context element using the specified corner points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, and BOTTOM_RIGHT. +* @method align +* @param {String} elementAlign The String representing the corner of the Overlay that should be aligned to the context element +* @param {String} contextAlign The corner of the context element that the elementAlign corner should stick to. +*/ +YAHOO.widget.Overlay.prototype.align = function(elementAlign, contextAlign) { + var contextArgs = this.cfg.getProperty("context"); + if (contextArgs) { + var context = contextArgs[0]; + + var element = this.element; + var me = this; + + if (! elementAlign) { + elementAlign = contextArgs[1]; + } + + if (! contextAlign) { + contextAlign = contextArgs[2]; + } + + if (element && context) { + var contextRegion = YAHOO.util.Dom.getRegion(context); + + var doAlign = function(v,h) { + switch (elementAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + me.moveTo(h,v); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + me.moveTo(h-element.offsetWidth,v); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + me.moveTo(h,v-element.offsetHeight); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + me.moveTo(h-element.offsetWidth,v-element.offsetHeight); + break; + } + }; + + switch (contextAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + doAlign(contextRegion.top, contextRegion.left); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + doAlign(contextRegion.top, contextRegion.right); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + doAlign(contextRegion.bottom, contextRegion.left); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + doAlign(contextRegion.bottom, contextRegion.right); + break; + } + } + } +}; + +/** +* The default event handler executed when the moveEvent is fired, if the "constraintoviewport" is set to true. +* @method enforceConstraints +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.enforceConstraints = function(type, args, obj) { + var pos = args[0]; + + var x = pos[0]; + var y = pos[1]; + + var offsetHeight = this.element.offsetHeight; + var offsetWidth = this.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + if (x < leftConstraint) { + x = leftConstraint; + } else if (x > rightConstraint) { + x = rightConstraint; + } + + if (y < topConstraint) { + y = topConstraint; + } else if (y > bottomConstraint) { + y = bottomConstraint; + } + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + this.cfg.setProperty("xy", [x,y], true); +}; + +/** +* Centers the container in the viewport. +* @method center +*/ +YAHOO.widget.Overlay.prototype.center = function() { + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var viewPortWidth = YAHOO.util.Dom.getClientWidth(); + var viewPortHeight = YAHOO.util.Dom.getClientHeight(); + + var elementWidth = this.element.offsetWidth; + var elementHeight = this.element.offsetHeight; + + var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX; + var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY; + + this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]); + + this.cfg.refireEvent("iframe"); +}; + +/** +* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop. +* @method syncPosition +*/ +YAHOO.widget.Overlay.prototype.syncPosition = function() { + var pos = YAHOO.util.Dom.getXY(this.element); + this.cfg.setProperty("x", pos[0], true); + this.cfg.setProperty("y", pos[1], true); + this.cfg.setProperty("xy", pos, true); +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + me.cfg.refireEvent("context"); + }, 0); +}; + +/** +* Removes the Overlay element from the DOM and sets all child elements to null. +* @method destroy +*/ +YAHOO.widget.Overlay.prototype.destroy = function() { + if (this.iframe) { + this.iframe.parentNode.removeChild(this.iframe); + } + + this.iframe = null; + + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + + YAHOO.widget.Overlay.superclass.destroy.call(this); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Overlay. +*/ +YAHOO.widget.Overlay.prototype.toString = function() { + return "Overlay " + this.id; +}; + +/** +* A singleton CustomEvent used for reacting to the DOM event for window scroll +* @event YAHOO.widget.Overlay.windowScrollEvent +*/ +YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll"); + +/** +* A singleton CustomEvent used for reacting to the DOM event for window resize +* @event YAHOO.widget.Overlay.windowResizeEvent +*/ +YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize"); + +/** +* The DOM event handler used to fire the CustomEvent for window scroll +* @method YAHOO.widget.Overlay.windowScrollHandler +* @static +* @param {DOMEvent} e The DOM scroll event +*/ +YAHOO.widget.Overlay.windowScrollHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.scrollEnd) { + window.scrollEnd = -1; + } + clearTimeout(window.scrollEnd); + window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1); + } else { + YAHOO.widget.Overlay.windowScrollEvent.fire(); + } +}; + +/** +* The DOM event handler used to fire the CustomEvent for window resize +* @method YAHOO.widget.Overlay.windowResizeHandler +* @static +* @param {DOMEvent} e The DOM resize event +*/ +YAHOO.widget.Overlay.windowResizeHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.resizeEnd) { + window.resizeEnd = -1; + } + clearTimeout(window.resizeEnd); + window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100); + } else { + YAHOO.widget.Overlay.windowResizeEvent.fire(); + } +}; + +/** +* A boolean that indicated whether the window resize and scroll events have already been subscribed to. +* @property YAHOO.widget.Overlay._initialized +* @private +* @type Boolean +*/ +YAHOO.widget.Overlay._initialized = null; + +if (YAHOO.widget.Overlay._initialized === null) { + YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler); + YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler); + + YAHOO.widget.Overlay._initialized = true; +} + +/** +* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget +* @namespace YAHOO.widget +* @class OverlayManager +* @constructor +* @param {Array} overlays Optional. A collection of Overlays to register with the manager. +* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager +*/ +YAHOO.widget.OverlayManager = function(userConfig) { + this.init(userConfig); +}; + +/** +* The CSS class representing a focused Overlay +* @property YAHOO.widget.OverlayManager.CSS_FOCUSED +* @static +* @final +* @type String +*/ +YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused"; + +YAHOO.widget.OverlayManager.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.OverlayManager, + + /** + * The array of Overlays that are currently registered + * @property overlays + * @type YAHOO.widget.Overlay[] + */ + overlays : null, + + /** + * Initializes the default configuration of the OverlayManager + * @method initDefaultConfig + */ + initDefaultConfig : function() { + /** + * The collection of registered Overlays in use by the OverlayManager + * @config overlays + * @type YAHOO.widget.Overlay[] + * @default null + */ + this.cfg.addProperty("overlays", { suppressEvent:true } ); + + /** + * The default DOM event that should be used to focus an Overlay + * @config focusevent + * @type String + * @default "mousedown" + */ + this.cfg.addProperty("focusevent", { value:"mousedown" } ); + }, + + /** + * Initializes the OverlayManager + * @method init + * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager. + * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager + */ + init : function(userConfig) { + /** + * The OverlayManager's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + this.cfg.fireQueue(); + + /** + * The currently activated Overlay + * @property activeOverlay + * @private + * @type YAHOO.widget.Overlay + */ + var activeOverlay = null; + + /** + * Returns the currently focused Overlay + * @method getActive + * @return {YAHOO.widget.Overlay} The currently focused Overlay + */ + this.getActive = function() { + return activeOverlay; + }; + + /** + * Focuses the specified Overlay + * @method focus + * @param {YAHOO.widget.Overlay} overlay The Overlay to focus + * @param {String} overlay The id of the Overlay to focus + */ + this.focus = function(overlay) { + var o = this.find(overlay); + if (o) { + this.blurAll(); + activeOverlay = o; + YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + this.overlays.sort(this.compareZIndexDesc); + var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex"); + if (! isNaN(topZIndex) && this.overlays[0] != overlay) { + activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2)); + } + this.overlays.sort(this.compareZIndexDesc); + } + }; + + /** + * Removes the specified Overlay from the manager + * @method remove + * @param {YAHOO.widget.Overlay} overlay The Overlay to remove + * @param {String} overlay The id of the Overlay to remove + */ + this.remove = function(overlay) { + var o = this.find(overlay); + if (o) { + var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex"); + o.cfg.setProperty("zIndex", -1000, true); + this.overlays.sort(this.compareZIndexDesc); + this.overlays = this.overlays.slice(0, this.overlays.length-1); + o.cfg.setProperty("zIndex", originalZ, true); + + o.cfg.setProperty("manager", null); + o.focusEvent = null; + o.blurEvent = null; + o.focus = null; + o.blur = null; + } + }; + + /** + * Removes focus from all registered Overlays in the manager + * @method blurAll + */ + this.blurAll = function() { + activeOverlay = null; + for (var o=0;o<this.overlays.length;o++) { + YAHOO.util.Dom.removeClass(this.overlays[o].element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + } + }; + + var overlays = this.cfg.getProperty("overlays"); + + if (! this.overlays) { + this.overlays = []; + } + + if (overlays) { + this.register(overlays); + this.overlays.sort(this.compareZIndexDesc); + } + }, + + /** + * Registers an Overlay or an array of Overlays with the manager. Upon registration, the Overlay receives functions for focus and blur, along with CustomEvents for each. + * @method register + * @param {YAHOO.widget.Overlay} overlay An Overlay to register with the manager. + * @param {YAHOO.widget.Overlay[]} overlay An array of Overlays to register with the manager. + * @return {Boolean} True if any Overlays are registered. + */ + register : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + overlay.cfg.addProperty("manager", { value:this } ); + + overlay.focusEvent = new YAHOO.util.CustomEvent("focus"); + overlay.blurEvent = new YAHOO.util.CustomEvent("blur"); + + var mgr=this; + + overlay.focus = function() { + mgr.focus(this); + this.focusEvent.fire(); + }; + + overlay.blur = function() { + mgr.blurAll(); + this.blurEvent.fire(); + }; + + var focusOnDomEvent = function(e,obj) { + overlay.focus(); + }; + + var focusevent = this.cfg.getProperty("focusevent"); + YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true); + + var zIndex = YAHOO.util.Dom.getStyle(overlay.element, "zIndex"); + if (! isNaN(zIndex)) { + overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10)); + } else { + overlay.cfg.setProperty("zIndex", 0); + } + + this.overlays.push(overlay); + return true; + } else if (overlay instanceof Array) { + var regcount = 0; + for (var i=0;i<overlay.length;i++) { + if (this.register(overlay[i])) { + regcount++; + } + } + if (regcount > 0) { + return true; + } + } else { + return false; + } + }, + + /** + * Attempts to locate an Overlay by instance or ID. + * @method find + * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager + * @param {String} overlay An Overlay id to locate within the manager + * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located. + */ + find : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + for (var o=0;o<this.overlays.length;o++) { + if (this.overlays[o] == overlay) { + return this.overlays[o]; + } + } + } else if (typeof overlay == "string") { + for (var p=0;p<this.overlays.length;p++) { + if (this.overlays[p].id == overlay) { + return this.overlays[p]; + } + } + } + return null; + }, + + /** + * Used for sorting the manager's Overlays by z-index. + * @method compareZIndexDesc + * @private + * @return {Number} 0, 1, or -1, depending on where the Overlay should fall in the stacking order. + */ + compareZIndexDesc : function(o1, o2) { + var zIndex1 = o1.cfg.getProperty("zIndex"); + var zIndex2 = o2.cfg.getProperty("zIndex"); + + if (zIndex1 > zIndex2) { + return -1; + } else if (zIndex1 < zIndex2) { + return 1; + } else { + return 0; + } + }, + + /** + * Shows all Overlays in the manager. + * @method showAll + */ + showAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].show(); + } + }, + + /** + * Hides all Overlays in the manager. + * @method hideAll + */ + hideAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].hide(); + } + }, + + /** + * Returns a string representation of the object. + * @method toString + * @return {String} The string representation of the OverlayManager + */ + toString : function() { + return "OverlayManager"; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key event should be attached +* @param {String} attachTo The element or element ID to which the key event should be attached +* @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (! attachTo) { + } + if (! keyData) { + } + if (! handler) { + } + + if (! event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; + +/** +* Tooltip is an implementation of Overlay that behaves like an OS tooltip, displaying when the user mouses over a particular element, and disappearing on mouse out. +* @namespace YAHOO.widget +* @class Tooltip +* @extends YAHOO.widget.Overlay +* @constructor +* @param {String} el The element ID representing the Tooltip <em>OR</em> +* @param {HTMLElement} el The element representing the Tooltip +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Tooltip = function(el, userConfig) { + YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Tooltip, YAHOO.widget.Overlay); + +/** +* Constant representing the Tooltip CSS class +* @property YAHOO.widget.Tooltip.CSS_TOOLTIP +* @static +* @final +* @type String +*/ +YAHOO.widget.Tooltip.CSS_TOOLTIP = "yui-tt"; + +/** +* The Tooltip initialization method. This method is automatically called by the constructor. A Tooltip is automatically rendered by the init method, and it also is set to be invisible by default, and constrained to viewport by default as well. +* @method init +* @param {String} el The element ID representing the Tooltip <em>OR</em> +* @param {HTMLElement} el The element representing the Tooltip +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Tooltip. See configuration documentation for more details. +*/ +YAHOO.widget.Tooltip.prototype.init = function(el, userConfig) { + + if (document.readyState && document.readyState != "complete") { + var deferredInit = function() { + this.init(el, userConfig); + }; + YAHOO.util.Event.addListener(window, "load", deferredInit, this, true); + } else { + YAHOO.widget.Tooltip.superclass.init.call(this, el); + + this.beforeInitEvent.fire(YAHOO.widget.Tooltip); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Tooltip.CSS_TOOLTIP); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.cfg.queueProperty("visible",false); + this.cfg.queueProperty("constraintoviewport",true); + + this.setBody(""); + this.render(this.cfg.getProperty("container")); + + this.initEvent.fire(YAHOO.widget.Tooltip); + } +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Tooltip.prototype.initDefaultConfig = function() { + YAHOO.widget.Tooltip.superclass.initDefaultConfig.call(this); + + /** + * Specifies whether the Tooltip should be kept from overlapping its context element. + * @config preventoverlap + * @type Boolean + * @default true + */ + this.cfg.addProperty("preventoverlap", { value:true, validator:this.cfg.checkBoolean, supercedes:["x","y","xy"] } ); + + /** + * The number of milliseconds to wait before showing a Tooltip on mouseover. + * @config showdelay + * @type Number + * @default 200 + */ + this.cfg.addProperty("showdelay", { value:200, handler:this.configShowDelay, validator:this.cfg.checkNumber } ); + + /** + * The number of milliseconds to wait before automatically dismissing a Tooltip after the mouse has been resting on the context element. + * @config autodismissdelay + * @type Number + * @default 5000 + */ + this.cfg.addProperty("autodismissdelay", { value:5000, handler:this.configAutoDismissDelay, validator:this.cfg.checkNumber } ); + + /** + * The number of milliseconds to wait before hiding a Tooltip on mouseover. + * @config hidedelay + * @type Number + * @default 250 + */ + this.cfg.addProperty("hidedelay", { value:250, handler:this.configHideDelay, validator:this.cfg.checkNumber } ); + + /** + * Specifies the Tooltip's text. + * @config text + * @type String + * @default null + */ + this.cfg.addProperty("text", { handler:this.configText, suppressEvent:true } ); + + /** + * Specifies the container element that the Tooltip's markup should be rendered into. + * @config container + * @type HTMLElement/String + * @default document.body + */ + this.cfg.addProperty("container", { value:document.body, handler:this.configContainer } ); + + /** + * Specifies the element or elements that the Tooltip should be anchored to on mouseover. + * @config context + * @type HTMLElement[]/String[] + * @default null + */ + +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "text" property is changed. +* @method configText +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configText = function(type, args, obj) { + var text = args[0]; + if (text) { + this.setBody(text); + } +}; + +/** +* The default event handler fired when the "container" property is changed. +* @method configContainer +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configContainer = function(type, args, obj) { + var container = args[0]; + if (typeof container == 'string') { + this.cfg.setProperty("container", document.getElementById(container), true); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Tooltip.prototype.configContext = function(type, args, obj) { + var context = args[0]; + if (context) { + + // Normalize parameter into an array + if (! (context instanceof Array)) { + if (typeof context == "string") { + this.cfg.setProperty("context", [document.getElementById(context)], true); + } else { // Assuming this is an element + this.cfg.setProperty("context", [context], true); + } + context = this.cfg.getProperty("context"); + } + + + // Remove any existing mouseover/mouseout listeners + if (this._context) { + for (var c=0;c<this._context.length;++c) { + var el = this._context[c]; + YAHOO.util.Event.removeListener(el, "mouseover", this.onContextMouseOver); + YAHOO.util.Event.removeListener(el, "mousemove", this.onContextMouseMove); + YAHOO.util.Event.removeListener(el, "mouseout", this.onContextMouseOut); + } + } + + // Add mouseover/mouseout listeners to context elements + this._context = context; + for (var d=0;d<this._context.length;++d) { + var el2 = this._context[d]; + YAHOO.util.Event.addListener(el2, "mouseover", this.onContextMouseOver, this); + YAHOO.util.Event.addListener(el2, "mousemove", this.onContextMouseMove, this); + YAHOO.util.Event.addListener(el2, "mouseout", this.onContextMouseOut, this); + } + } +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +// BEGIN BUILT-IN DOM EVENT HANDLERS // + +/** +* The default event handler fired when the user moves the mouse while over the context element. +* @method onContextMouseMove +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseMove = function(e, obj) { + obj.pageX = YAHOO.util.Event.getPageX(e); + obj.pageY = YAHOO.util.Event.getPageY(e); + +}; + +/** +* The default event handler fired when the user mouses over the context element. +* @method onContextMouseOver +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseOver = function(e, obj) { + + if (obj.hideProcId) { + clearTimeout(obj.hideProcId); + obj.hideProcId = null; + } + + var context = this; + YAHOO.util.Event.addListener(context, "mousemove", obj.onContextMouseMove, obj); + + if (context.title) { + obj._tempTitle = context.title; + context.title = ""; + } + + /** + * The unique process ID associated with the thread responsible for showing the Tooltip. + * @type int + */ + obj.showProcId = obj.doShow(e, context); +}; + +/** +* The default event handler fired when the user mouses out of the context element. +* @method onContextMouseOut +* @param {DOMEvent} e The current DOM event +* @param {Object} obj The object argument +*/ +YAHOO.widget.Tooltip.prototype.onContextMouseOut = function(e, obj) { + var el = this; + + if (obj._tempTitle) { + el.title = obj._tempTitle; + obj._tempTitle = null; + } + + if (obj.showProcId) { + clearTimeout(obj.showProcId); + obj.showProcId = null; + } + + if (obj.hideProcId) { + clearTimeout(obj.hideProcId); + obj.hideProcId = null; + } + + + obj.hideProcId = setTimeout(function() { + obj.hide(); + }, obj.cfg.getProperty("hidedelay")); +}; + +// END BUILT-IN DOM EVENT HANDLERS // + +/** +* Processes the showing of the Tooltip by setting the timeout delay and offset of the Tooltip. +* @method doShow +* @param {DOMEvent} e The current DOM event +* @return {Number} The process ID of the timeout function associated with doShow +*/ +YAHOO.widget.Tooltip.prototype.doShow = function(e, context) { + + var yOffset = 25; + if (this.browser == "opera" && context.tagName == "A") { + yOffset += 12; + } + + var me = this; + return setTimeout( + function() { + if (me._tempTitle) { + me.setBody(me._tempTitle); + } else { + me.cfg.refireEvent("text"); + } + + me.moveTo(me.pageX, me.pageY + yOffset); + if (me.cfg.getProperty("preventoverlap")) { + me.preventOverlap(me.pageX, me.pageY); + } + + YAHOO.util.Event.removeListener(context, "mousemove", me.onContextMouseMove); + + me.show(); + me.hideProcId = me.doHide(); + }, + this.cfg.getProperty("showdelay")); +}; + +/** +* Sets the timeout for the auto-dismiss delay, which by default is 5 seconds, meaning that a tooltip will automatically dismiss itself after 5 seconds of being displayed. +* @method doHide +*/ +YAHOO.widget.Tooltip.prototype.doHide = function() { + var me = this; + return setTimeout( + function() { + me.hide(); + }, + this.cfg.getProperty("autodismissdelay")); +}; + +/** +* Fired when the Tooltip is moved, this event handler is used to prevent the Tooltip from overlapping with its context element. +* @method preventOverlay +* @param {Number} pageX The x coordinate position of the mouse pointer +* @param {Number} pageY The y coordinate position of the mouse pointer +*/ +YAHOO.widget.Tooltip.prototype.preventOverlap = function(pageX, pageY) { + + var height = this.element.offsetHeight; + + var elementRegion = YAHOO.util.Dom.getRegion(this.element); + + elementRegion.top -= 5; + elementRegion.left -= 5; + elementRegion.right += 5; + elementRegion.bottom += 5; + + var mousePoint = new YAHOO.util.Point(pageX, pageY); + + + if (elementRegion.contains(mousePoint)) { + this.cfg.setProperty("y", (pageY-height-5)); + } +}; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the Tooltip +*/ +YAHOO.widget.Tooltip.prototype.toString = function() { + return "Tooltip " + this.id; +}; + +/** +* Panel is an implementation of Overlay that behaves like an OS window, with a draggable header and an optional close icon at the top right. +* @namespace YAHOO.widget +* @class Panel +* @extends YAHOO.widget.Overlay +* @constructor +* @param {String} el The element ID representing the Panel <em>OR</em> +* @param {HTMLElement} el The element representing the Panel +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Panel. See configuration documentation for more details. +*/ +YAHOO.widget.Panel = function(el, userConfig) { + YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Panel, YAHOO.widget.Overlay); + +/** +* Constant representing the default CSS class used for a Panel +* @property YAHOO.widget.Panel.CSS_PANEL +* @static +* @final +* @type String +*/ +YAHOO.widget.Panel.CSS_PANEL = "yui-panel"; + +/** +* Constant representing the default CSS class used for a Panel's wrapping container +* @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER +* @static +* @final +* @type String +*/ +YAHOO.widget.Panel.CSS_PANEL_CONTAINER = "yui-panel-container"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Panel.prototype.init = function(el, userConfig) { + YAHOO.widget.Panel.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Panel); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Panel.CSS_PANEL); + + this.buildWrapper(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.beforeRenderEvent.subscribe(function() { + var draggable = this.cfg.getProperty("draggable"); + if (draggable) { + if (! this.header) { + this.setHeader(" "); + } + } + }, this, true); + + var me = this; + + var doBlur = function() { + this.blur(); + }; + + this.showMaskEvent.subscribe(function() { + var checkFocusable = function(el) { + if ((el.tagName == "A" || el.tagName == "BUTTON" || el.tagName == "SELECT" || el.tagName == "INPUT" || el.tagName == "TEXTAREA") && el.type != "hidden") { + if (! YAHOO.util.Dom.isAncestor(me.element, el)) { + YAHOO.util.Event.addListener(el, "focus", doBlur, el, true); + return true; + } + } else { + return false; + } + }; + + this.focusableElements = YAHOO.util.Dom.getElementsBy(checkFocusable); + }, this, true); + + this.hideMaskEvent.subscribe(function() { + for (var i=0;i<this.focusableElements.length;i++) { + var el2 = this.focusableElements[i]; + YAHOO.util.Event.removeListener(el2, "focus", doBlur); + } + }, this, true); + + this.beforeShowEvent.subscribe(function() { + this.cfg.refireEvent("underlay"); + }, this, true); + this.initEvent.fire(YAHOO.widget.Panel); +}; + +/** +* Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. +*/ +YAHOO.widget.Panel.prototype.initEvents = function() { + YAHOO.widget.Panel.superclass.initEvents.call(this); + + /** + * CustomEvent fired after the modality mask is shown + * @event showMaskEvent + */ + this.showMaskEvent = new YAHOO.util.CustomEvent("showMask"); + + /** + * CustomEvent fired after the modality mask is hidden + * @event hideMaskEvent + */ + this.hideMaskEvent = new YAHOO.util.CustomEvent("hideMask"); + + /** + * CustomEvent when the Panel is dragged + * @event dragEvent + */ + this.dragEvent = new YAHOO.util.CustomEvent("drag"); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Panel's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Panel.prototype.initDefaultConfig = function() { + YAHOO.widget.Panel.superclass.initDefaultConfig.call(this); + + // Add panel config properties // + + /** + * True if the Panel should display a "close" button + * @config close + * @type Boolean + * @default true + */ + this.cfg.addProperty("close", { value:true, handler:this.configClose, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * True if the Panel should be draggable + * @config draggable + * @type Boolean + * @default true + */ + this.cfg.addProperty("draggable", { value:true, handler:this.configDraggable, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * Sets the type of underlay to display for the Panel. Valid values are "shadow", "matte", and "none". + * @config underlay + * @type String + * @default shadow + */ + this.cfg.addProperty("underlay", { value:"shadow", handler:this.configUnderlay, supercedes:["visible"] } ); + + /** + * True if the Panel should be displayed in a modal fashion, automatically creating a transparent mask over the document that will not be removed until the Panel is dismissed. + * @config modal + * @type Boolean + * @default false + */ + this.cfg.addProperty("modal", { value:false, handler:this.configModal, validator:this.cfg.checkBoolean, supercedes:["visible"] } ); + + /** + * A KeyListener (or array of KeyListeners) that will be enabled when the Panel is shown, and disabled when the Panel is hidden. + * @config keylisteners + * @type YAHOO.util.KeyListener[] + * @default null + */ + this.cfg.addProperty("keylisteners", { handler:this.configKeyListeners, suppressEvent:true, supercedes:["visible"] } ); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Panel. +* @method configClose +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configClose = function(type, args, obj) { + var val = args[0]; + + var doHide = function(e, obj) { + obj.hide(); + }; + + if (val) { + if (! this.close) { + this.close = document.createElement("span"); + YAHOO.util.Dom.addClass(this.close, "container-close"); + this.close.innerHTML = " "; + this.innerElement.appendChild(this.close); + YAHOO.util.Event.addListener(this.close, "click", doHide, this); + } else { + this.close.style.display = "block"; + } + } else { + if (this.close) { + this.close.style.display = "none"; + } + } +}; + +/** +* The default event handler fired when the "draggable" property is changed. +* @method configDraggable +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configDraggable = function(type, args, obj) { + var val = args[0]; + if (val) { + if (this.header) { + YAHOO.util.Dom.setStyle(this.header,"cursor","move"); + this.registerDragDrop(); + } + } else { + if (this.dd) { + this.dd.unreg(); + } + if (this.header) { + YAHOO.util.Dom.setStyle(this.header,"cursor","auto"); + } + } +}; + +/** +* The default event handler fired when the "underlay" property is changed. +* @method configUnderlay +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configUnderlay = function(type, args, obj) { + var val = args[0]; + + switch (val.toLowerCase()) { + case "shadow": + YAHOO.util.Dom.removeClass(this.element, "matte"); + YAHOO.util.Dom.addClass(this.element, "shadow"); + + if (! this.underlay) { // create if not already in DOM + this.underlay = document.createElement("div"); + this.underlay.className = "underlay"; + this.underlay.innerHTML = " "; + this.element.appendChild(this.underlay); + } + + this.sizeUnderlay(); + break; + case "matte": + YAHOO.util.Dom.removeClass(this.element, "shadow"); + YAHOO.util.Dom.addClass(this.element, "matte"); + break; + default: + YAHOO.util.Dom.removeClass(this.element, "shadow"); + YAHOO.util.Dom.removeClass(this.element, "matte"); + break; + } +}; + +/** +* The default event handler fired when the "modal" property is changed. This handler subscribes or unsubscribes to the show and hide events to handle the display or hide of the modality mask. +* @method configModal +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configModal = function(type, args, obj) { + var modal = args[0]; + + if (modal) { + this.buildMask(); + + if (! YAHOO.util.Config.alreadySubscribed( this.beforeShowEvent, this.showMask, this ) ) { + this.beforeShowEvent.subscribe(this.showMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( this.hideEvent, this.hideMask, this) ) { + this.hideEvent.subscribe(this.hideMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( YAHOO.widget.Overlay.windowResizeEvent, this.sizeMask, this ) ) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.sizeMask, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed( this.destroyEvent, this.removeMask, this) ) { + this.destroyEvent.subscribe(this.removeMask, this, true); + } + + this.cfg.refireEvent("zIndex"); + } else { + this.beforeShowEvent.unsubscribe(this.showMask, this); + this.hideEvent.unsubscribe(this.hideMask, this); + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this); + this.destroyEvent.unsubscribe(this.removeMask, this); + } +}; + +/** +* Removes the modality mask. +* @method removeMask +*/ +YAHOO.widget.Panel.prototype.removeMask = function() { + if (this.mask) { + if (this.mask.parentNode) { + this.mask.parentNode.removeChild(this.mask); + } + this.mask = null; + } +}; + +/** +* The default event handler fired when the "keylisteners" property is changed. +* @method configKeyListeners +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configKeyListeners = function(type, args, obj) { + var listeners = args[0]; + + if (listeners) { + if (listeners instanceof Array) { + for (var i=0;i<listeners.length;i++) { + var listener = listeners[i]; + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, listener.enable, listener)) { + this.showEvent.subscribe(listener.enable, listener, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, listener.disable, listener)) { + this.hideEvent.subscribe(listener.disable, listener, true); + this.destroyEvent.subscribe(listener.disable, listener, true); + } + } + } else { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, listeners.enable, listeners)) { + this.showEvent.subscribe(listeners.enable, listeners, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, listeners.disable, listeners)) { + this.hideEvent.subscribe(listeners.disable, listeners, true); + this.destroyEvent.subscribe(listeners.disable, listeners, true); + } + } + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.innerElement; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("underlay"); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.innerElement; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("underlay"); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Panel.prototype.configzIndex = function(type, args, obj) { + YAHOO.widget.Panel.superclass.configzIndex.call(this, type, args, obj); + + var maskZ = 0; + var currentZ = YAHOO.util.Dom.getStyle(this.element, "zIndex"); + + if (this.mask) { + if (! currentZ || isNaN(currentZ)) { + currentZ = 0; + } + + if (currentZ === 0) { + this.cfg.setProperty("zIndex", 1); + } else { + maskZ = currentZ - 1; + YAHOO.util.Dom.setStyle(this.mask, "zIndex", maskZ); + } + + } +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + + +/** +* Builds the wrapping container around the Panel that is used for positioning the shadow and matte underlays. The container element is assigned to a local instance variable called container, and the element is reinserted inside of it. +* @method buildWrapper +*/ +YAHOO.widget.Panel.prototype.buildWrapper = function() { + var elementParent = this.element.parentNode; + var originalElement = this.element; + + var wrapper = document.createElement("div"); + wrapper.className = YAHOO.widget.Panel.CSS_PANEL_CONTAINER; + wrapper.id = originalElement.id + "_c"; + + if (elementParent) { + elementParent.insertBefore(wrapper, originalElement); + } + + wrapper.appendChild(originalElement); + + this.element = wrapper; + this.innerElement = originalElement; + + YAHOO.util.Dom.setStyle(this.innerElement, "visibility", "inherit"); +}; + +/** +* Adjusts the size of the shadow based on the size of the element. +* @method sizeUnderlay +*/ +YAHOO.widget.Panel.prototype.sizeUnderlay = function() { + if (this.underlay && this.browser != "gecko" && this.browser != "safari") { + this.underlay.style.width = this.innerElement.offsetWidth + "px"; + this.underlay.style.height = this.innerElement.offsetHeight + "px"; + } +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Panel.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Panel.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.sizeUnderlay(); + }, 0); +}; + +/** +* Registers the Panel's header for drag & drop capability. +* @method registerDragDrop +*/ +YAHOO.widget.Panel.prototype.registerDragDrop = function() { + if (this.header) { + this.dd = new YAHOO.util.DD(this.element.id, this.id); + + if (! this.header.id) { + this.header.id = this.id + "_h"; + } + + var me = this; + + this.dd.startDrag = function() { + + if (me.browser == "ie") { + YAHOO.util.Dom.addClass(me.element,"drag"); + } + + if (me.cfg.getProperty("constraintoviewport")) { + var offsetHeight = me.element.offsetHeight; + var offsetWidth = me.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = window.scrollX || document.documentElement.scrollLeft; + var scrollY = window.scrollY || document.documentElement.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + this.minX = leftConstraint; + this.maxX = rightConstraint; + this.constrainX = true; + + this.minY = topConstraint; + this.maxY = bottomConstraint; + this.constrainY = true; + } else { + this.constrainX = false; + this.constrainY = false; + } + + me.dragEvent.fire("startDrag", arguments); + }; + + this.dd.onDrag = function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + if (this.platform == "mac" && this.browser == "gecko") { + this.showMacGeckoScrollbars(); + } + + me.dragEvent.fire("onDrag", arguments); + }; + + this.dd.endDrag = function() { + if (me.browser == "ie") { + YAHOO.util.Dom.removeClass(me.element,"drag"); + } + + me.dragEvent.fire("endDrag", arguments); + }; + + this.dd.setHandleElId(this.header.id); + this.dd.addInvalidHandleType("INPUT"); + this.dd.addInvalidHandleType("SELECT"); + this.dd.addInvalidHandleType("TEXTAREA"); + } +}; + +/** +* Builds the mask that is laid over the document when the Panel is configured to be modal. +* @method buildMask +*/ +YAHOO.widget.Panel.prototype.buildMask = function() { + if (! this.mask) { + this.mask = document.createElement("div"); + this.mask.id = this.id + "_mask"; + this.mask.className = "mask"; + this.mask.innerHTML = " "; + + var maskClick = function(e, obj) { + YAHOO.util.Event.stopEvent(e); + }; + + var firstChild = document.body.firstChild; + if (firstChild) { + document.body.insertBefore(this.mask, document.body.firstChild); + } else { + document.body.appendChild(this.mask); + } + } +}; + +/** +* Hides the modality mask. +* @method hideMask +*/ +YAHOO.widget.Panel.prototype.hideMask = function() { + if (this.cfg.getProperty("modal") && this.mask) { + this.mask.style.display = "none"; + this.hideMaskEvent.fire(); + YAHOO.util.Dom.removeClass(document.body, "masked"); + } +}; + +/** +* Shows the modality mask. +* @method showMask +*/ +YAHOO.widget.Panel.prototype.showMask = function() { + if (this.cfg.getProperty("modal") && this.mask) { + YAHOO.util.Dom.addClass(document.body, "masked"); + this.sizeMask(); + this.mask.style.display = "block"; + this.showMaskEvent.fire(); + } +}; + +/** +* Sets the size of the modality mask to cover the entire scrollable area of the document +* @method sizeMask +*/ +YAHOO.widget.Panel.prototype.sizeMask = function() { + if (this.mask) { + this.mask.style.height = YAHOO.util.Dom.getDocumentHeight()+"px"; + this.mask.style.width = YAHOO.util.Dom.getDocumentWidth()+"px"; + } +}; + +/** +* Renders the Panel by inserting the elements that are not already in the main Panel into their correct places. Optionally appends the Panel to the specified node prior to the render's execution. NOTE: For Panels without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. +* @method render +* @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> +* @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering +* @return {boolean} Success or failure of the render +*/ +YAHOO.widget.Panel.prototype.render = function(appendToNode) { + return YAHOO.widget.Panel.superclass.render.call(this, appendToNode, this.innerElement); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Panel. +*/ +YAHOO.widget.Panel.prototype.toString = function() { + return "Panel " + this.id; +}; + +/** +* Dialog is an implementation of Panel that can be used to submit form data. Built-in functionality for buttons with event handlers is included, and button sets can be build dynamically, or the preincluded ones for Submit/Cancel and OK/Cancel can be utilized. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually. +* @namespace YAHOO.widget +* @class Dialog +* @extends YAHOO.widget.Panel +* @constructor +* @param {String} el The element ID representing the Dialog <em>OR</em> +* @param {HTMLElement} el The element representing the Dialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details. +*/ +YAHOO.widget.Dialog = function(el, userConfig) { + YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Dialog, YAHOO.widget.Panel); + +/** +* Constant representing the default CSS class used for a Dialog +* @property YAHOO.widget.Dialog.CSS_DIALOG +* @static +* @final +* @type String +*/ +YAHOO.widget.Dialog.CSS_DIALOG = "yui-dialog"; + +/** +* Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Dialog.prototype.initDefaultConfig = function() { + YAHOO.widget.Dialog.superclass.initDefaultConfig.call(this); + + /** + * The internally maintained callback object for use with the Connection utility + * @property callback + * @type Object + */ + this.callback = { + /** + * The function to execute upon success of the Connection submission + * @property callback.success + * @type Function + */ + success : null, + /** + * The function to execute upon failure of the Connection submission + * @property callback.failure + * @type Function + */ + failure : null, + /** + * The arbitraty argument or arguments to pass to the Connection callback functions + * @property callback.argument + * @type Object + */ + argument: null + }; + + // Add form dialog config properties // + + /** + * The method to use for posting the Dialog's form. Possible values are "async", "form", and "manual". + * @config postmethod + * @type String + * @default async + */ + this.cfg.addProperty("postmethod", { value:"async", handler:this.configPostMethod, validator:function(val) { + if (val != "form" && val != "async" && val != "none" && val != "manual") { + return false; + } else { + return true; + } + } }); + + /** + * Object literal(s) defining the buttons for the Dialog's footer. + * @config buttons + * @type Object[] + * @default "none" + */ + this.cfg.addProperty("buttons", { value:"none", handler:this.configButtons } ); +}; + +/** +* Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class. +* @method initEvents +*/ +YAHOO.widget.Dialog.prototype.initEvents = function() { + YAHOO.widget.Dialog.superclass.initEvents.call(this); + + /** + * CustomEvent fired prior to submission + * @event beforeSumitEvent + */ + this.beforeSubmitEvent = new YAHOO.util.CustomEvent("beforeSubmit"); + + /** + * CustomEvent fired after submission + * @event submitEvent + */ + this.submitEvent = new YAHOO.util.CustomEvent("submit"); + + /** + * CustomEvent fired prior to manual submission + * @event manualSubmitEvent + */ + this.manualSubmitEvent = new YAHOO.util.CustomEvent("manualSubmit"); + + /** + * CustomEvent fired prior to asynchronous submission + * @event asyncSubmitEvent + */ + this.asyncSubmitEvent = new YAHOO.util.CustomEvent("asyncSubmit"); + + /** + * CustomEvent fired prior to form-based submission + * @event formSubmitEvent + */ + this.formSubmitEvent = new YAHOO.util.CustomEvent("formSubmit"); + + /** + * CustomEvent fired after cancel + * @event cancelEvent + */ + this.cancelEvent = new YAHOO.util.CustomEvent("cancel"); +}; + +/** +* The Dialog initialization method, which is executed for Dialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Dialog <em>OR</em> +* @param {HTMLElement} el The element representing the Dialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details. +*/ +YAHOO.widget.Dialog.prototype.init = function(el, userConfig) { + YAHOO.widget.Dialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Dialog); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Dialog.CSS_DIALOG); + + this.cfg.setProperty("visible", false); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.showEvent.subscribe(this.focusFirst, this, true); + this.beforeHideEvent.subscribe(this.blurButtons, this, true); + + this.beforeRenderEvent.subscribe(function() { + var buttonCfg = this.cfg.getProperty("buttons"); + if (buttonCfg && buttonCfg != "none") { + if (! this.footer) { + this.setFooter(""); + } + } + }, this, true); + + this.initEvent.fire(YAHOO.widget.Dialog); +}; + +/** +* Performs the submission of the Dialog form depending on the value of "postmethod" property. +* @method doSubmit +*/ +YAHOO.widget.Dialog.prototype.doSubmit = function() { + var pm = this.cfg.getProperty("postmethod"); + switch (pm) { + case "async": + var method = this.form.getAttribute("method") || 'POST'; + method = method.toUpperCase(); + YAHOO.util.Connect.setForm(this.form); + var cObj = YAHOO.util.Connect.asyncRequest(method, this.form.getAttribute("action"), this.callback); + this.asyncSubmitEvent.fire(); + break; + case "form": + this.form.submit(); + this.formSubmitEvent.fire(); + break; + case "none": + case "manual": + this.manualSubmitEvent.fire(); + break; + } +}; + +/** +* Prepares the Dialog's internal FORM object, creating one if one is not currently present. +* @method registerForm +*/ +YAHOO.widget.Dialog.prototype.registerForm = function() { + var form = this.element.getElementsByTagName("form")[0]; + + if (! form) { + var formHTML = "<form name=\"frm_" + this.id + "\" action=\"\"></form>"; + this.body.innerHTML += formHTML; + form = this.element.getElementsByTagName("form")[0]; + } + + this.firstFormElement = function() { + for (var f=0;f<form.elements.length;f++ ) { + var el = form.elements[f]; + if (el.focus && ! el.disabled) { + if (el.type && el.type != "hidden") { + return el; + } + } + } + return null; + }(); + + this.lastFormElement = function() { + for (var f=form.elements.length-1;f>=0;f-- ) { + var el = form.elements[f]; + if (el.focus && ! el.disabled) { + if (el.type && el.type != "hidden") { + return el; + } + } + } + return null; + }(); + + this.form = form; + + if (this.cfg.getProperty("modal") && this.form) { + + var me = this; + + var firstElement = this.firstFormElement || this.firstButton; + if (firstElement) { + this.preventBackTab = new YAHOO.util.KeyListener(firstElement, { shift:true, keys:9 }, {fn:me.focusLast, scope:me, correctScope:true} ); + this.showEvent.subscribe(this.preventBackTab.enable, this.preventBackTab, true); + this.hideEvent.subscribe(this.preventBackTab.disable, this.preventBackTab, true); + } + + var lastElement = this.lastButton || this.lastFormElement; + if (lastElement) { + this.preventTabOut = new YAHOO.util.KeyListener(lastElement, { shift:false, keys:9 }, {fn:me.focusFirst, scope:me, correctScope:true} ); + this.showEvent.subscribe(this.preventTabOut.enable, this.preventTabOut, true); + this.hideEvent.subscribe(this.preventTabOut.disable, this.preventTabOut, true); + } + } +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Dialog. +* @method configClose +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configClose = function(type, args, obj) { + var val = args[0]; + + var doCancel = function(e, obj) { + obj.cancel(); + }; + + if (val) { + if (! this.close) { + this.close = document.createElement("div"); + YAHOO.util.Dom.addClass(this.close, "container-close"); + + this.close.innerHTML = " "; + this.innerElement.appendChild(this.close); + YAHOO.util.Event.addListener(this.close, "click", doCancel, this); + } else { + this.close.style.display = "block"; + } + } else { + if (this.close) { + this.close.style.display = "none"; + } + } +}; + +/** +* The default event handler for the "buttons" configuration property +* @method configButtons +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configButtons = function(type, args, obj) { + var buttons = args[0]; + if (buttons != "none") { + this.buttonSpan = null; + this.buttonSpan = document.createElement("span"); + this.buttonSpan.className = "button-group"; + + for (var b=0;b<buttons.length;b++) { + var button = buttons[b]; + + var htmlButton = document.createElement("button"); + htmlButton.setAttribute("type", "button"); + + if (button.isDefault) { + htmlButton.className = "default"; + this.defaultHtmlButton = htmlButton; + } + + htmlButton.appendChild(document.createTextNode(button.text)); + YAHOO.util.Event.addListener(htmlButton, "click", button.handler, this, true); + + this.buttonSpan.appendChild(htmlButton); + button.htmlButton = htmlButton; + + if (b === 0) { + this.firstButton = button.htmlButton; + } + + if (b == (buttons.length-1)) { + this.lastButton = button.htmlButton; + } + + } + + this.setFooter(this.buttonSpan); + + this.cfg.refireEvent("iframe"); + this.cfg.refireEvent("underlay"); + } else { // Do cleanup + if (this.buttonSpan) { + if (this.buttonSpan.parentNode) { + this.buttonSpan.parentNode.removeChild(this.buttonSpan); + } + + this.buttonSpan = null; + this.firstButton = null; + this.lastButton = null; + this.defaultHtmlButton = null; + } + } +}; + + +/** +* The default event handler used to focus the first field of the form when the Dialog is shown. +* @method focusFirst +*/ +YAHOO.widget.Dialog.prototype.focusFirst = function(type,args,obj) { + if (args) { + var e = args[1]; + if (e) { + YAHOO.util.Event.stopEvent(e); + } + } + + if (this.firstFormElement) { + this.firstFormElement.focus(); + } else { + this.focusDefaultButton(); + } +}; + +/** +* Sets the focus to the last button in the button or form element in the Dialog +* @method focusLast +*/ +YAHOO.widget.Dialog.prototype.focusLast = function(type,args,obj) { + if (args) { + var e = args[1]; + if (e) { + YAHOO.util.Event.stopEvent(e); + } + } + + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + this.focusLastButton(); + } else { + if (this.lastFormElement) { + this.lastFormElement.focus(); + } + } +}; + +/** +* Sets the focus to the button that is designated as the default. By default, his handler is executed when the show event is fired. +* @method focusDefaultButton +*/ +YAHOO.widget.Dialog.prototype.focusDefaultButton = function() { + if (this.defaultHtmlButton) { + this.defaultHtmlButton.focus(); + } +}; + +/** +* Blurs all the html buttons +* @method blurButtons +*/ +YAHOO.widget.Dialog.prototype.blurButtons = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[0].htmlButton; + if (html) { + html.blur(); + } + } +}; + +/** +* Sets the focus to the first button in the button list +* @method focusFirstButton +*/ +YAHOO.widget.Dialog.prototype.focusFirstButton = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[0].htmlButton; + if (html) { + html.focus(); + } + } +}; + +/** +* Sets the focus to the first button in the button list +* @method focusLastButton +*/ +YAHOO.widget.Dialog.prototype.focusLastButton = function() { + var buttons = this.cfg.getProperty("buttons"); + if (buttons && buttons instanceof Array) { + var html = buttons[buttons.length-1].htmlButton; + if (html) { + html.focus(); + } + } +}; + +/** +* The default event handler for the "postmethod" configuration property +* @method configPostMethod +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Dialog.prototype.configPostMethod = function(type, args, obj) { + var postmethod = args[0]; + + this.registerForm(); + YAHOO.util.Event.addListener(this.form, "submit", function(e) { + YAHOO.util.Event.stopEvent(e); + this.submit(); + this.form.blur(); + }, this, true); +}; + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Built-in function hook for writing a validation function that will be checked for a "true" value prior to a submit. This function, as implemented by default, always returns true, so it should be overridden if validation is necessary. +* @method validate +*/ +YAHOO.widget.Dialog.prototype.validate = function() { + return true; +}; + +/** +* Executes a submit of the Dialog followed by a hide, if validation is successful. +* @method submit +*/ +YAHOO.widget.Dialog.prototype.submit = function() { + if (this.validate()) { + this.beforeSubmitEvent.fire(); + this.doSubmit(); + this.submitEvent.fire(); + this.hide(); + return true; + } else { + return false; + } +}; + +/** +* Executes the cancel of the Dialog followed by a hide. +* @method cancel +*/ +YAHOO.widget.Dialog.prototype.cancel = function() { + this.cancelEvent.fire(); + this.hide(); +}; + +/** +* Returns a JSON-compatible data structure representing the data currently contained in the form. +* @method getData +* @return {Object} A JSON object reprsenting the data of the current form. +*/ +YAHOO.widget.Dialog.prototype.getData = function() { + + var oForm = this.form; + + if(oForm) { + + var aElements = oForm.elements, + nTotalElements = aElements.length, + oData = {}, + sName, + oElement; + + + for(var i=0; i<nTotalElements; i++) { + + sName = aElements[i].name, + oElement = aElements[sName]; + + + if(oElement) { + + if(oElement.tagName) { + + var sType = oElement.type, + sTagName = oElement.tagName.toUpperCase(); + + switch(sTagName) { + + case "INPUT": + + if(sType == "checkbox") { + + oData[sName] = oElement.checked; + + } + else if(sType != "radio") { + + oData[sName] = oElement.value; + + } + + break; + + case "TEXTAREA": + + oData[sName] = oElement.value; + + break; + + case "SELECT": + + var aOptions = oElement.options, + nOptions = aOptions.length, + aValues = [], + oOption, + sValue; + + + for(var n=0; n<nOptions; n++) { + + oOption = aOptions[n]; + + if(oOption.selected) { + + sValue = oOption.value; + + if(!sValue || sValue === "") { + + sValue = oOption.text; + + } + + aValues[aValues.length] = sValue; + + } + + } + + oData[sName] = aValues; + + break; + + } + + + } + else { + + var nElements = oElement.length, + sType = oElement[0].type, + sTagName = oElement[0].tagName.toUpperCase(); + + + switch(sType) { + + case "radio": + + var oRadio; + + for(var n=0; n<nElements; n++) { + + oRadio = oElement[n]; + + if(oRadio.checked) { + + oData[sName] = oRadio.value; + break; + + } + + } + + break; + + case "checkbox": + + var aValues = [], + oCheckbox; + + for(var n=0; n<nElements; n++) { + + oCheckbox = oElement[n]; + + if(oCheckbox.checked) { + + aValues[aValues.length] = oCheckbox.value; + + } + + } + + oData[sName] = aValues; + + break; + + } + + } + + } + + } + + } + + + return oData; + +}; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the Dialog +*/ +YAHOO.widget.Dialog.prototype.toString = function() { + return "Dialog " + this.id; +}; + +/** +* SimpleDialog is a simple implementation of Dialog that can be used to submit a single value. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually. +* @namespace YAHOO.widget +* @class SimpleDialog +* @extends YAHOO.widget.Dialog +* @constructor +* @param {String} el The element ID representing the SimpleDialog <em>OR</em> +* @param {HTMLElement} el The element representing the SimpleDialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details. +*/ +YAHOO.widget.SimpleDialog = function(el, userConfig) { + YAHOO.widget.SimpleDialog.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.SimpleDialog, YAHOO.widget.Dialog); + +/** +* Constant for the standard network icon for a blocking action +* @property YAHOO.widget.SimpleDialog.ICON_BLOCK +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_BLOCK = "blckicon"; + +/** +* Constant for the standard network icon for alarm +* @property YAHOO.widget.SimpleDialog.ICON_ALARM +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_ALARM = "alrticon"; + +/** +* Constant for the standard network icon for help +* @property YAHOO.widget.SimpleDialog.ICON_HELP +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_HELP = "hlpicon"; + +/** +* Constant for the standard network icon for info +* @property YAHOO.widget.SimpleDialog.ICON_INFO +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_INFO = "infoicon"; + +/** +* Constant for the standard network icon for warn +* @property YAHOO.widget.SimpleDialog.ICON_WARN +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_WARN = "warnicon"; + +/** +* Constant for the standard network icon for a tip +* @property YAHOO.widget.SimpleDialog.ICON_TIP +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.ICON_TIP = "tipicon"; + +/** +* Constant representing the default CSS class used for a SimpleDialog +* @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG +* @static +* @final +* @type String +*/ +YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog"; + +/** +* Initializes the class's configurable properties which can be changed using the SimpleDialog's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.SimpleDialog.prototype.initDefaultConfig = function() { + YAHOO.widget.SimpleDialog.superclass.initDefaultConfig.call(this); + + // Add dialog config properties // + + /** + * Sets the informational icon for the SimpleDialog + * @config icon + * @type String + * @default "none" + */ + this.cfg.addProperty("icon", { value:"none", handler:this.configIcon, suppressEvent:true } ); + + /** + * Sets the text for the SimpleDialog + * @config text + * @type String + * @default "" + */ + this.cfg.addProperty("text", { value:"", handler:this.configText, suppressEvent:true, supercedes:["icon"] } ); +}; + + +/** +* The SimpleDialog initialization method, which is executed for SimpleDialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the SimpleDialog <em>OR</em> +* @param {HTMLElement} el The element representing the SimpleDialog +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details. +*/ +YAHOO.widget.SimpleDialog.prototype.init = function(el, userConfig) { + YAHOO.widget.SimpleDialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.SimpleDialog); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG); + + this.cfg.queueProperty("postmethod", "manual"); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + this.beforeRenderEvent.subscribe(function() { + if (! this.body) { + this.setBody(""); + } + }, this, true); + + this.initEvent.fire(YAHOO.widget.SimpleDialog); + +}; +/** +* Prepares the SimpleDialog's internal FORM object, creating one if one is not currently present, and adding the value hidden field. +* @method registerForm +*/ +YAHOO.widget.SimpleDialog.prototype.registerForm = function() { + YAHOO.widget.SimpleDialog.superclass.registerForm.call(this); + this.form.innerHTML += "<input type=\"hidden\" name=\"" + this.id + "\" value=\"\"/>"; +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Fired when the "icon" property is set. +* @method configIcon +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.SimpleDialog.prototype.configIcon = function(type,args,obj) { + var icon = args[0]; + if (icon && icon != "none") { + var iconHTML = ""; + if (icon.indexOf(".") == -1) { + iconHTML = "<span class=\"yui-icon " + icon +"\" > </span>"; + } else { + iconHTML = "<img src=\"" + this.imageRoot + icon + "\" class=\"yui-icon\" />"; + } + this.body.innerHTML = iconHTML + this.body.innerHTML; + } +}; + +/** +* Fired when the "text" property is set. +* @method configText +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.SimpleDialog.prototype.configText = function(type,args,obj) { + var text = args[0]; + if (text) { + this.setBody(text); + this.cfg.refireEvent("icon"); + } +}; +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the SimpleDialog +*/ +YAHOO.widget.SimpleDialog.prototype.toString = function() { + return "SimpleDialog " + this.id; +}; + +/** +* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden. +* @namespace YAHOO.widget +* @class ContainerEffect +* @constructor +* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with +* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element. +* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion. +*/ +YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) { + if (! animClass) { + animClass = YAHOO.util.Anim; + } + + /** + * The overlay to animate + * @property overlay + * @type YAHOO.widget.Overlay + */ + this.overlay = overlay; + /** + * The animation attributes to use when transitioning into view + * @property attrIn + * @type Object + */ + this.attrIn = attrIn; + /** + * The animation attributes to use when transitioning out of view + * @property attrOut + * @type Object + */ + this.attrOut = attrOut; + /** + * The target element to be animated + * @property targetElement + * @type HTMLElement + */ + this.targetElement = targetElement || overlay.element; + /** + * The animation class to use for animating the overlay + * @property animClass + * @type class + */ + this.animClass = animClass; +}; + +/** +* Initializes the animation classes and events. +* @method init +*/ +YAHOO.widget.ContainerEffect.prototype.init = function() { + this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn"); + this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut"); + + this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete"); + this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete"); + + this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method); + this.animIn.onStart.subscribe(this.handleStartAnimateIn, this); + this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this); + this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this); + + this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method); + this.animOut.onStart.subscribe(this.handleStartAnimateOut, this); + this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this); + this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this); +}; + +/** +* Triggers the in-animation. +* @method animateIn +*/ +YAHOO.widget.ContainerEffect.prototype.animateIn = function() { + this.beforeAnimateInEvent.fire(); + this.animIn.animate(); +}; + +/** +* Triggers the out-animation. +* @method animateOut +*/ +YAHOO.widget.ContainerEffect.prototype.animateOut = function() { + this.beforeAnimateOutEvent.fire(); + this.animOut.animate(); +}; + +/** +* The default onStart handler for the in-animation. +* @method handleStartAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { }; +/** +* The default onTween handler for the in-animation. +* @method handleTweenAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { }; +/** +* The default onComplete handler for the in-animation. +* @method handleCompleteAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { }; + +/** +* The default onStart handler for the out-animation. +* @method handleStartAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { }; +/** +* The default onTween handler for the out-animation. +* @method handleTweenAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { }; +/** +* The default onComplete handler for the out-animation. +* @method handleCompleteAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { }; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the ContainerEffect +*/ +YAHOO.widget.ContainerEffect.prototype.toString = function() { + var output = "ContainerEffect"; + if (this.overlay) { + output += " [" + this.overlay.toString() + "]"; + } + return output; +}; + +/** +* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out. +* @method FADE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) { + var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element ); + + fade.handleStartAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (! obj.overlay.underlay) { + obj.overlay.cfg.refireEvent("underlay"); + } + + if (obj.overlay.underlay) { + obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity"); + obj.overlay.underlay.style.filter = null; + } + + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0); + }; + + fade.handleCompleteAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + + if (obj.overlay.underlay) { + YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity); + } + + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + fade.handleStartAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.underlay) { + obj.overlay.underlay.style.filter = null; + } + }; + + fade.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1); + + obj.overlay.cfg.refireEvent("iframe"); + + obj.animateOutCompleteEvent.fire(); + }; + + fade.init(); + return fade; +}; + + +/** +* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out. +* @method SLIDE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) { + var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element); + var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element); + + var clientWidth = YAHOO.util.Dom.getClientWidth(); + var offsetWidth = overlay.element.offsetWidth; + + var slide = new YAHOO.widget.ContainerEffect(overlay, { + attributes:{ points: { to:[x, y] } }, + duration:dur, + method:YAHOO.util.Easing.easeIn + }, + { + attributes:{ points: { to:[(clientWidth+25), y] } }, + duration:dur, + method:YAHOO.util.Easing.easeOut + }, + overlay.element, + YAHOO.util.Motion); + + + slide.handleStartAnimateIn = function(type,args,obj) { + obj.overlay.element.style.left = (-25-offsetWidth) + "px"; + obj.overlay.element.style.top = y + "px"; + }; + + slide.handleTweenAnimateIn = function(type, args, obj) { + + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var currentX = pos[0]; + var currentY = pos[1]; + + if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + } + + obj.overlay.cfg.setProperty("xy", [currentX,currentY], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateIn = function(type, args, obj) { + obj.overlay.cfg.setProperty("xy", [x,y], true); + obj.startX = x; + obj.startY = y; + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + slide.handleStartAnimateOut = function(type, args, obj) { + var vw = YAHOO.util.Dom.getViewportWidth(); + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var yso = pos[1]; + + var currentTo = obj.animOut.attributes.points.to; + obj.animOut.attributes.points.to = [(vw+25), yso]; + }; + + slide.handleTweenAnimateOut = function(type, args, obj) { + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var xto = pos[0]; + var yto = pos[1]; + + obj.overlay.cfg.setProperty("xy", [xto,yto], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + + obj.overlay.cfg.setProperty("xy", [x,y]); + obj.animateOutCompleteEvent.fire(); + }; + + slide.init(); + return slide; +}; + +YAHOO.register("container", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/container/container_core-debug.js b/interface/ispconfig/interface/js/yui/container/container_core-debug.js new file mode 100644 index 0000000..3524f7c --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container_core-debug.js @@ -0,0 +1,2932 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } + if (!owner) { YAHOO.log("No owner specified for Config object", "error"); } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + YAHOO.log("Firing Config event: " + key + "=" + value, "info"); + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + YAHOO.log("Added property: " + key, "info"); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + YAHOO.log("setProperty: " + key + "=" + value, "info"); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + YAHOO.log("queueProperty: " + key + "=" + value, "info"); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + YAHOO.log("Config event queue: " + this.outputEventQueue(), "info"); + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* The Container family of components is designed to enable developers to create different kinds of content-containing modules on the web. Module and Overlay are the most basic containers, and they can be used directly or extended to build custom containers. Also part of the Container family are four UI controls that extend Module and Overlay: Tooltip, Panel, Dialog, and SimpleDialog. +* @module container +* @title Container +* @requires yahoo,dom,event,dragdrop,animation +*/ + +/** +* Module is a JavaScript representation of the Standard Module Format. Standard Module Format is a simple standard for markup containers where child nodes representing the header, body, and footer of the content are denoted using the CSS classes "hd", "bd", and "ft" respectively. Module is the base class for all other classes in the YUI Container package. +* @namespace YAHOO.widget +* @class Module +* @constructor +* @param {String} el The element ID representing the Module <em>OR</em> +* @param {HTMLElement} el The element representing the Module +* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. +*/ +YAHOO.widget.Module = function(el, userConfig) { + if (el) { + this.init(el, userConfig); + } else { + YAHOO.log("No element or element ID specified for Module instantiation", "error"); + } +}; + +/** +* Constant representing the prefix path to use for non-secure images +* @property YAHOO.widget.Module.IMG_ROOT +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT = null; + +/** +* Constant representing the prefix path to use for securely served images +* @property YAHOO.widget.Module.IMG_ROOT_SSL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT_SSL = null; + +/** +* Constant for the default CSS class name that represents a Module +* @property YAHOO.widget.Module.CSS_MODULE +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_MODULE = "module"; + +/** +* Constant representing the module header +* @property YAHOO.widget.Module.CSS_HEADER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_HEADER = "hd"; + +/** +* Constant representing the module body +* @property YAHOO.widget.Module.CSS_BODY +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_BODY = "bd"; + +/** +* Constant representing the module footer +* @property YAHOO.widget.Module.CSS_FOOTER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_FOOTER = "ft"; + +/** +* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size +* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;"; + +/** +* Singleton CustomEvent fired when the font size is changed in the browser. +* Opera's "zoom" functionality currently does not support text size detection. +* @event YAHOO.widget.Module.textResizeEvent +*/ +YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize"); + +YAHOO.widget.Module.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.Module, + + /** + * The main module element that contains the header, body, and footer + * @property element + * @type HTMLElement + */ + element : null, + + /** + * The header element, denoted with CSS class "hd" + * @property header + * @type HTMLElement + */ + header : null, + + /** + * The body element, denoted with CSS class "bd" + * @property body + * @type HTMLElement + */ + body : null, + + /** + * The footer element, denoted with CSS class "ft" + * @property footer + * @type HTMLElement + */ + footer : null, + + /** + * The id of the element + * @property id + * @type String + */ + id : null, + + /** + * The String representing the image root + * @property imageRoot + * @type String + */ + imageRoot : YAHOO.widget.Module.IMG_ROOT, + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + * @method initEvents + */ + initEvents : function() { + + /** + * CustomEvent fired prior to class initalization. + * @event beforeInitEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit"); + + /** + * CustomEvent fired after class initalization. + * @event initEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.initEvent = new YAHOO.util.CustomEvent("init"); + + /** + * CustomEvent fired when the Module is appended to the DOM + * @event appendEvent + */ + this.appendEvent = new YAHOO.util.CustomEvent("append"); + + /** + * CustomEvent fired before the Module is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * CustomEvent fired after the Module is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * CustomEvent fired when the header content of the Module is modified + * @event changeHeaderEvent + * @param {String/HTMLElement} content String/element representing the new header content + */ + this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader"); + + /** + * CustomEvent fired when the body content of the Module is modified + * @event changeBodyEvent + * @param {String/HTMLElement} content String/element representing the new body content + */ + this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody"); + + /** + * CustomEvent fired when the footer content of the Module is modified + * @event changeFooterEvent + * @param {String/HTMLElement} content String/element representing the new footer content + */ + this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter"); + + /** + * CustomEvent fired when the content of the Module is modified + * @event changeContentEvent + */ + this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent"); + + /** + * CustomEvent fired when the Module is destroyed + * @event destroyEvent + */ + this.destroyEvent = new YAHOO.util.CustomEvent("destroy"); + + /** + * CustomEvent fired before the Module is shown + * @event beforeShowEvent + */ + this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow"); + + /** + * CustomEvent fired after the Module is shown + * @event showEvent + */ + this.showEvent = new YAHOO.util.CustomEvent("show"); + + /** + * CustomEvent fired before the Module is hidden + * @event beforeHideEvent + */ + this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide"); + + /** + * CustomEvent fired after the Module is hidden + * @event hideEvent + */ + this.hideEvent = new YAHOO.util.CustomEvent("hide"); + }, + + /** + * String representing the current user-agent platform + * @property platform + * @type String + */ + platform : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) { + return "windows"; + } else if (ua.indexOf("macintosh") != -1) { + return "mac"; + } else { + return false; + } + }(), + + /** + * String representing the current user-agent browser + * @property browser + * @type String + */ + browser : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(), + + /** + * Boolean representing whether or not the current browsing context is secure (https) + * @property isSecure + * @type Boolean + */ + isSecure : function() { + if (window.location.href.toLowerCase().indexOf("https") === 0) { + return true; + } else { + return false; + } + }(), + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + */ + initDefaultConfig : function() { + // Add properties // + + /** + * Specifies whether the Module is visible on the page. + * @config visible + * @type Boolean + * @default true + */ + this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } ); + + /** + * Object or array of objects representing the ContainerEffect classes that are active for animating the container. + * @config effect + * @type Object + * @default null + */ + this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } ); + + /** + * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document + * @config monitorresize + * @type Boolean + * @default true + */ + this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } ); + }, + + /** + * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. + * @method init + * @param {String} el The element ID representing the Module <em>OR</em> + * @param {HTMLElement} el The element representing the Module + * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. + */ + init : function(el, userConfig) { + + this.initEvents(); + + this.beforeInitEvent.fire(YAHOO.widget.Module); + + /** + * The Module's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + if (this.isSecure) { + this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL; + } + + if (typeof el == "string") { + var elId = el; + + el = document.getElementById(el); + if (! el) { + el = document.createElement("div"); + el.id = elId; + } + } + + this.element = el; + + if (el.id) { + this.id = el.id; + } + + var childNodes = this.element.childNodes; + + if (childNodes) { + for (var i=0;i<childNodes.length;i++) { + var child = childNodes[i]; + switch (child.className) { + case YAHOO.widget.Module.CSS_HEADER: + this.header = child; + break; + case YAHOO.widget.Module.CSS_BODY: + this.body = child; + break; + case YAHOO.widget.Module.CSS_FOOTER: + this.footer = child; + break; + } + } + } + + this.initDefaultConfig(); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Module.CSS_MODULE); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + // Subscribe to the fireQueue() method of Config so that any queued configuration changes are + // excecuted upon render of the Module + if (! YAHOO.util.Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) { + this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true); + } + + this.initEvent.fire(YAHOO.widget.Module); + }, + + /** + * Initialized an empty IFRAME that is placed out of the visible area that can be used to detect text resize. + * @method initResizeMonitor + */ + initResizeMonitor : function() { + + if(this.browser != "opera") { + + var resizeMonitor = document.getElementById("_yuiResizeMonitor"); + + if (! resizeMonitor) { + + resizeMonitor = document.createElement("iframe"); + + var bIE = (this.browser.indexOf("ie") === 0); + + if(this.isSecure && YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL && bIE) { + resizeMonitor.src = YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL; + } + + resizeMonitor.id = "_yuiResizeMonitor"; + resizeMonitor.style.visibility = "hidden"; + + document.body.appendChild(resizeMonitor); + + resizeMonitor.style.width = "10em"; + resizeMonitor.style.height = "10em"; + resizeMonitor.style.position = "absolute"; + + var nLeft = -1 * resizeMonitor.offsetWidth; + var nTop = -1 * resizeMonitor.offsetHeight; + + resizeMonitor.style.top = nTop + "px"; + resizeMonitor.style.left = nLeft + "px"; + resizeMonitor.style.borderStyle = "none"; + resizeMonitor.style.borderWidth = "0"; + YAHOO.util.Dom.setStyle(resizeMonitor, "opacity", "0"); + + resizeMonitor.style.visibility = "visible"; + + if(!bIE) { + + var doc = resizeMonitor.contentWindow.document; + + doc.open(); + doc.close(); + + } + } + + var fireTextResize = function() { + YAHOO.widget.Module.textResizeEvent.fire(); + }; + + if(resizeMonitor && resizeMonitor.contentWindow) { + this.resizeMonitor = resizeMonitor; + + YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize, this, true); + + if (! YAHOO.widget.Module.textResizeInitialized) { + if (! YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow, "resize", fireTextResize)) { + // This will fail in IE if document.domain has changed, so we must change the listener to + // use the resizeMonitor element instead + YAHOO.util.Event.addListener(this.resizeMonitor, "resize", fireTextResize); + } + YAHOO.widget.Module.textResizeInitialized = true; + } + } + + } + + }, + + /** + * Event handler fired when the resize monitor element is resized. + * @method onDomResize + * @param {DOMEvent} e The DOM resize event + * @param {Object} obj The scope object passed to the handler + */ + onDomResize : function(e, obj) { + + var nLeft = -1 * this.resizeMonitor.offsetWidth, + nTop = -1 * this.resizeMonitor.offsetHeight; + + this.resizeMonitor.style.top = nTop + "px"; + this.resizeMonitor.style.left = nLeft + "px"; + + }, + + /** + * Sets the Module's header content to the HTML specified, or appends the passed element to the header. If no header is present, one will be automatically created. + * @method setHeader + * @param {String} headerContent The HTML used to set the header <em>OR</em> + * @param {HTMLElement} headerContent The HTMLElement to append to the header + */ + setHeader : function(headerContent) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + if (typeof headerContent == "string") { + this.header.innerHTML = headerContent; + } else { + this.header.innerHTML = ""; + this.header.appendChild(headerContent); + } + + this.changeHeaderEvent.fire(headerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the header. If no header is present, one will be automatically created. + * @method appendToHeader + * @param {HTMLElement} element The element to append to the header + */ + appendToHeader : function(element) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + this.header.appendChild(element); + this.changeHeaderEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created. + * @method setBody + * @param {String} bodyContent The HTML used to set the body <em>OR</em> + * @param {HTMLElement} bodyContent The HTMLElement to append to the body + */ + setBody : function(bodyContent) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + if (typeof bodyContent == "string") + { + this.body.innerHTML = bodyContent; + } else { + this.body.innerHTML = ""; + this.body.appendChild(bodyContent); + } + + this.changeBodyEvent.fire(bodyContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the body. If no body is present, one will be automatically created. + * @method appendToBody + * @param {HTMLElement} element The element to append to the body + */ + appendToBody : function(element) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + this.body.appendChild(element); + this.changeBodyEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method setFooter + * @param {String} footerContent The HTML used to set the footer <em>OR</em> + * @param {HTMLElement} footerContent The HTMLElement to append to the footer + */ + setFooter : function(footerContent) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + if (typeof footerContent == "string") { + this.footer.innerHTML = footerContent; + } else { + this.footer.innerHTML = ""; + this.footer.appendChild(footerContent); + } + + this.changeFooterEvent.fire(footerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method appendToFooter + * @param {HTMLElement} element The element to append to the footer + */ + appendToFooter : function(element) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + this.footer.appendChild(element); + this.changeFooterEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. + * @method render + * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> + * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering + * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container. + * @return {Boolean} Success or failure of the render + */ + render : function(appendToNode, moduleElement) { + this.beforeRenderEvent.fire(); + + if (! moduleElement) { + moduleElement = this.element; + } + + var me = this; + var appendTo = function(element) { + if (typeof element == "string") { + element = document.getElementById(element); + } + + if (element) { + element.appendChild(me.element); + me.appendEvent.fire(); + } + }; + + if (appendToNode) { + appendTo(appendToNode); + } else { // No node was passed in. If the element is not pre-marked up, this fails + if (! YAHOO.util.Dom.inDocument(this.element)) { + YAHOO.log("Render failed. Must specify appendTo node if Module isn't already in the DOM.", "error"); + return false; + } + } + + // Need to get everything into the DOM if it isn't already + + if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) { + // There is a header, but it's not in the DOM yet... need to add it + var firstChild = moduleElement.firstChild; + if (firstChild) { // Insert before first child if exists + moduleElement.insertBefore(this.header, firstChild); + } else { // Append to empty body because there are no children + moduleElement.appendChild(this.header); + } + } + + if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) { + // There is a body, but it's not in the DOM yet... need to add it + if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM + moduleElement.insertBefore(this.body, this.footer); + } else { // Append to element because there is no footer + moduleElement.appendChild(this.body); + } + } + + if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) { + // There is a footer, but it's not in the DOM yet... need to add it + moduleElement.appendChild(this.footer); + } + + this.renderEvent.fire(); + return true; + }, + + /** + * Removes the Module element from the DOM and sets all child elements to null. + * @method destroy + */ + destroy : function() { + var parent; + + if (this.element) { + YAHOO.util.Event.purgeElement(this.element, true); + parent = this.element.parentNode; + } + if (parent) { + parent.removeChild(this.element); + } + + this.element = null; + this.header = null; + this.body = null; + this.footer = null; + + for (var e in this) { + if (e instanceof YAHOO.util.CustomEvent) { + e.unsubscribeAll(); + } + } + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this); + + this.destroyEvent.fire(); + }, + + /** + * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after. + * @method show + */ + show : function() { + this.cfg.setProperty("visible", true); + }, + + /** + * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after. + * @method hide + */ + hide : function() { + this.cfg.setProperty("visible", false); + }, + + // BUILT-IN EVENT HANDLERS FOR MODULE // + + /** + * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none". + * This method is responsible for firing showEvent and hideEvent. + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configVisible + */ + configVisible : function(type, args, obj) { + var visible = args[0]; + if (visible) { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } else { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + }, + + /** + * Default event handler for the "monitorresize" configuration property + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configMonitorResize + */ + configMonitorResize : function(type, args, obj) { + var monitor = args[0]; + if (monitor) { + this.initResizeMonitor(); + } else { + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true); + this.resizeMonitor = null; + } + } +}; + +/** +* Returns a String representation of the Object. +* @method toString +* @return {String} The string representation of the Module +*/ +YAHOO.widget.Module.prototype.toString = function() { + return "Module " + this.id; +}; + +/** +* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements. +* @namespace YAHOO.widget +* @class Overlay +* @extends YAHOO.widget.Module +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details. +* @constructor +*/ +YAHOO.widget.Overlay = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module); + +/** +* The URL that will be placed in the iframe +* @property YAHOO.widget.Overlay.IFRAME_SRC +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;"; + +/** +* Constant representing the top left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_LEFT = "tl"; + +/** +* Constant representing the top right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_RIGHT = "tr"; + +/** +* Constant representing the top bottom left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_LEFT = "bl"; + +/** +* Constant representing the bottom right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_RIGHT = "br"; + +/** +* Constant representing the default CSS class used for an Overlay +* @property YAHOO.widget.Overlay.CSS_OVERLAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Overlay.prototype.init = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Overlay); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + if (this.platform == "mac" && this.browser == "gecko") { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) { + this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) { + this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true); + } + } + + this.initEvent.fire(YAHOO.widget.Overlay); + +}; + +/** +* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class. +* @method initEvents +*/ +YAHOO.widget.Overlay.prototype.initEvents = function() { + YAHOO.widget.Overlay.superclass.initEvents.call(this); + + /** + * CustomEvent fired before the Overlay is moved. + * @event beforeMoveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this); + + /** + * CustomEvent fired after the Overlay is moved. + * @event moveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.moveEvent = new YAHOO.util.CustomEvent("move", this); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Overlay.prototype.initDefaultConfig = function() { + YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this); + + // Add overlay config properties // + + /** + * The absolute x-coordinate position of the Overlay + * @config x + * @type Number + * @default null + */ + this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The absolute y-coordinate position of the Overlay + * @config y + * @type Number + * @default null + */ + this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * An array with the absolute x and y positions of the Overlay + * @config xy + * @type Number[] + * @default null + */ + this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner. + * @config context + * @type Array + * @default null + */ + this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * True if the Overlay should be anchored to the center of the viewport. + * @config fixedcenter + * @type Boolean + * @default false + */ + this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } ); + + /** + * CSS width of the Overlay. + * @config width + * @type String + * @default null + */ + this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS height of the Overlay. + * @config height + * @type String + * @default null + */ + this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS z-index of the Overlay. + * @config zIndex + * @type Number + * @default null + */ + this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } ); + + /** + * True if the Overlay should be prevented from being positioned out of the viewport. + * @config constraintoviewport + * @type Boolean + * @default false + */ + this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } ); + + /** + * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below). + * @config iframe + * @type Boolean + * @default true for IE6 and below, false for all others + */ + this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } ); +}; + +/** +* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]); +* @method moveTo +* @param {Number} x The Overlay's new x position +* @param {Number} y The Overlay's new y position +*/ +YAHOO.widget.Overlay.prototype.moveTo = function(x, y) { + this.cfg.setProperty("xy",[x,y]); +}; + +/** +* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method hideMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "show-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "hide-scrollbars"); +}; + +/** +* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method showMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "show-scrollbars"); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent. +* @method configVisible +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) { + var visible = args[0]; + var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility"); + + if (currentVis == "inherit") { + var e = this.element.parentNode; + while (e.nodeType != 9 && e.nodeType != 11) { + currentVis = YAHOO.util.Dom.getStyle(e, "visibility"); + if (currentVis != "inherit") { break; } + e = e.parentNode; + } + if (currentVis == "inherit") { + currentVis = "visible"; + } + } + + var effect = this.cfg.getProperty("effect"); + + var effectInstances = []; + if (effect) { + if (effect instanceof Array) { + for (var i=0;i<effect.length;i++) { + var eff = effect[i]; + effectInstances[effectInstances.length] = eff.effect(this, eff.duration); + } + } else { + effectInstances[effectInstances.length] = effect.effect(this, effect.duration); + } + } + + var isMacGecko = (this.platform == "mac" && this.browser == "gecko"); + + if (visible) { // Show + if (isMacGecko) { + this.showMacGeckoScrollbars(); + } + + if (effect) { // Animate in + if (visible) { // Animate in if not showing + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + for (var j=0;j<effectInstances.length;j++) { + var ei = effectInstances[j]; + if (j === 0 && ! YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)) { + ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true); // Delegate showEvent until end of animateInComplete + } + ei.animateIn(); + } + } + } + } else { // Show + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "visible"); + this.cfg.refireEvent("iframe"); + this.showEvent.fire(); + } + } + + } else { // Hide + if (isMacGecko) { + this.hideMacGeckoScrollbars(); + } + + if (effect) { // Animate out if showing + if (currentVis == "visible") { + this.beforeHideEvent.fire(); + for (var k=0;k<effectInstances.length;k++) { + var h = effectInstances[k]; + if (k === 0 && ! YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)) { + h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true); // Delegate hideEvent until end of animateOutComplete + } + h.animateOut(); + } + } else if (currentVis === "") { + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + } + } else { // Simple hide + if (currentVis == "visible" || currentVis === "") { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + this.cfg.refireEvent("iframe"); + this.hideEvent.fire(); + } + } + } +}; + +/** +* Center event handler used for centering on scroll/resize, but only if the Overlay is visible +* @method doCenterOnDOMEvent +*/ +YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent = function() { + if (this.cfg.getProperty("visible")) { + this.center(); + } +}; + +/** +* The default event handler fired when the "fixedcenter" property is changed. +* @method configFixedCenter +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configFixedCenter = function(type, args, obj) { + var val = args[0]; + + if (val) { + this.center(); + + if (! YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent, this.center, this)) { + this.beforeShowEvent.subscribe(this.center, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowScrollEvent.subscribe( this.doCenterOnDOMEvent, this, true); + } + } else { + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configzIndex = function(type, args, obj) { + var zIndex = args[0]; + + var el = this.element; + + if (! zIndex) { + zIndex = YAHOO.util.Dom.getStyle(el, "zIndex"); + if (! zIndex || isNaN(zIndex)) { + zIndex = 0; + } + } + + if (this.iframe) { + if (zIndex <= 0) { + zIndex = 1; + } + YAHOO.util.Dom.setStyle(this.iframe, "zIndex", (zIndex-1)); + } + + YAHOO.util.Dom.setStyle(el, "zIndex", zIndex); + this.cfg.setProperty("zIndex", zIndex, true); +}; + +/** +* The default event handler fired when the "xy" property is changed. +* @method configXY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configXY = function(type, args, obj) { + var pos = args[0]; + var x = pos[0]; + var y = pos[1]; + + this.cfg.setProperty("x", x); + this.cfg.setProperty("y", y); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.log("xy: " + [x,y], "iframe"); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x,y]); +}; + +/** +* The default event handler fired when the "x" property is changed. +* @method configX +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configX = function(type, args, obj) { + var x = args[0]; + var y = this.cfg.getProperty("y"); + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setX(this.element, x, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* The default event handler fired when the "y" property is changed. +* @method configY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configY = function(type, args, obj) { + var x = this.cfg.getProperty("x"); + var y = args[0]; + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setY(this.element, y, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* Shows the iframe shim, if it has been enabled +* @method showIframe +*/ +YAHOO.widget.Overlay.prototype.showIframe = function() { + if (this.iframe) { + this.iframe.style.display = "block"; + } +}; + +/** +* Hides the iframe shim, if it has been enabled +* @method hideIframe +*/ +YAHOO.widget.Overlay.prototype.hideIframe = function() { + if (this.iframe) { + this.iframe.style.display = "none"; + } +}; + +/** +* The default event handler fired when the "iframe" property is changed. +* @method configIframe +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configIframe = function(type, args, obj) { + + var val = args[0]; + + if (val) { // IFRAME shim is enabled + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, this.showIframe, this)) { + this.showEvent.subscribe(this.showIframe, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, this.hideIframe, this)) { + this.hideEvent.subscribe(this.hideIframe, this, true); + } + + var x = this.cfg.getProperty("x"); + var y = this.cfg.getProperty("y"); + + if (! x || ! y) { + this.syncPosition(); + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + } + + YAHOO.log("iframe positioning to: " + [x,y], "iframe"); + + if (! isNaN(x) && ! isNaN(y)) { + if (! this.iframe) { + this.iframe = document.createElement("iframe"); + if (this.isSecure) { + this.iframe.src = YAHOO.widget.Overlay.IFRAME_SRC; + } + + var parent = this.element.parentNode; + if (parent) { + parent.appendChild(this.iframe); + } else { + document.body.appendChild(this.iframe); + } + + YAHOO.util.Dom.setStyle(this.iframe, "position", "absolute"); + YAHOO.util.Dom.setStyle(this.iframe, "border", "none"); + YAHOO.util.Dom.setStyle(this.iframe, "margin", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "padding", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + if (this.cfg.getProperty("visible")) { + this.showIframe(); + } else { + this.hideIframe(); + } + } + + var iframeDisplay = YAHOO.util.Dom.getStyle(this.iframe, "display"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "block"; + } + + YAHOO.util.Dom.setXY(this.iframe, [x,y]); + + var width = this.element.clientWidth; + var height = this.element.clientHeight; + + YAHOO.util.Dom.setStyle(this.iframe, "width", (width+2) + "px"); + YAHOO.util.Dom.setStyle(this.iframe, "height", (height+2) + "px"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "none"; + } + } + } else { + if (this.iframe) { + this.iframe.style.display = "none"; + } + this.showEvent.unsubscribe(this.showIframe, this); + this.hideEvent.unsubscribe(this.hideIframe, this); + } +}; + + +/** +* The default event handler fired when the "constraintoviewport" property is changed. +* @method configConstrainToViewport +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configConstrainToViewport = function(type, args, obj) { + var val = args[0]; + if (val) { + if (! YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) { + this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true); + } + } else { + this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configContext = function(type, args, obj) { + var contextArgs = args[0]; + + if (contextArgs) { + var contextEl = contextArgs[0]; + var elementMagnetCorner = contextArgs[1]; + var contextMagnetCorner = contextArgs[2]; + + if (contextEl) { + if (typeof contextEl == "string") { + this.cfg.setProperty("context", [document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner], true); + } + + if (elementMagnetCorner && contextMagnetCorner) { + this.align(elementMagnetCorner, contextMagnetCorner); + } + } + } +}; + + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Aligns the Overlay to its context element using the specified corner points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, and BOTTOM_RIGHT. +* @method align +* @param {String} elementAlign The String representing the corner of the Overlay that should be aligned to the context element +* @param {String} contextAlign The corner of the context element that the elementAlign corner should stick to. +*/ +YAHOO.widget.Overlay.prototype.align = function(elementAlign, contextAlign) { + var contextArgs = this.cfg.getProperty("context"); + if (contextArgs) { + var context = contextArgs[0]; + + var element = this.element; + var me = this; + + if (! elementAlign) { + elementAlign = contextArgs[1]; + } + + if (! contextAlign) { + contextAlign = contextArgs[2]; + } + + if (element && context) { + var contextRegion = YAHOO.util.Dom.getRegion(context); + + var doAlign = function(v,h) { + switch (elementAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + me.moveTo(h,v); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + me.moveTo(h-element.offsetWidth,v); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + me.moveTo(h,v-element.offsetHeight); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + me.moveTo(h-element.offsetWidth,v-element.offsetHeight); + break; + } + }; + + switch (contextAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + doAlign(contextRegion.top, contextRegion.left); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + doAlign(contextRegion.top, contextRegion.right); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + doAlign(contextRegion.bottom, contextRegion.left); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + doAlign(contextRegion.bottom, contextRegion.right); + break; + } + } + } +}; + +/** +* The default event handler executed when the moveEvent is fired, if the "constraintoviewport" is set to true. +* @method enforceConstraints +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.enforceConstraints = function(type, args, obj) { + var pos = args[0]; + + var x = pos[0]; + var y = pos[1]; + + var offsetHeight = this.element.offsetHeight; + var offsetWidth = this.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + if (x < leftConstraint) { + x = leftConstraint; + } else if (x > rightConstraint) { + x = rightConstraint; + } + + if (y < topConstraint) { + y = topConstraint; + } else if (y > bottomConstraint) { + y = bottomConstraint; + } + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + this.cfg.setProperty("xy", [x,y], true); +}; + +/** +* Centers the container in the viewport. +* @method center +*/ +YAHOO.widget.Overlay.prototype.center = function() { + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var viewPortWidth = YAHOO.util.Dom.getClientWidth(); + var viewPortHeight = YAHOO.util.Dom.getClientHeight(); + + var elementWidth = this.element.offsetWidth; + var elementHeight = this.element.offsetHeight; + + var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX; + var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY; + + this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]); + + this.cfg.refireEvent("iframe"); +}; + +/** +* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop. +* @method syncPosition +*/ +YAHOO.widget.Overlay.prototype.syncPosition = function() { + var pos = YAHOO.util.Dom.getXY(this.element); + this.cfg.setProperty("x", pos[0], true); + this.cfg.setProperty("y", pos[1], true); + this.cfg.setProperty("xy", pos, true); +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + me.cfg.refireEvent("context"); + }, 0); +}; + +/** +* Removes the Overlay element from the DOM and sets all child elements to null. +* @method destroy +*/ +YAHOO.widget.Overlay.prototype.destroy = function() { + if (this.iframe) { + this.iframe.parentNode.removeChild(this.iframe); + } + + this.iframe = null; + + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + + YAHOO.widget.Overlay.superclass.destroy.call(this); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Overlay. +*/ +YAHOO.widget.Overlay.prototype.toString = function() { + return "Overlay " + this.id; +}; + +/** +* A singleton CustomEvent used for reacting to the DOM event for window scroll +* @event YAHOO.widget.Overlay.windowScrollEvent +*/ +YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll"); + +/** +* A singleton CustomEvent used for reacting to the DOM event for window resize +* @event YAHOO.widget.Overlay.windowResizeEvent +*/ +YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize"); + +/** +* The DOM event handler used to fire the CustomEvent for window scroll +* @method YAHOO.widget.Overlay.windowScrollHandler +* @static +* @param {DOMEvent} e The DOM scroll event +*/ +YAHOO.widget.Overlay.windowScrollHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.scrollEnd) { + window.scrollEnd = -1; + } + clearTimeout(window.scrollEnd); + window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1); + } else { + YAHOO.widget.Overlay.windowScrollEvent.fire(); + } +}; + +/** +* The DOM event handler used to fire the CustomEvent for window resize +* @method YAHOO.widget.Overlay.windowResizeHandler +* @static +* @param {DOMEvent} e The DOM resize event +*/ +YAHOO.widget.Overlay.windowResizeHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.resizeEnd) { + window.resizeEnd = -1; + } + clearTimeout(window.resizeEnd); + window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100); + } else { + YAHOO.widget.Overlay.windowResizeEvent.fire(); + } +}; + +/** +* A boolean that indicated whether the window resize and scroll events have already been subscribed to. +* @property YAHOO.widget.Overlay._initialized +* @private +* @type Boolean +*/ +YAHOO.widget.Overlay._initialized = null; + +if (YAHOO.widget.Overlay._initialized === null) { + YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler); + YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler); + + YAHOO.widget.Overlay._initialized = true; +} + +/** +* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget +* @namespace YAHOO.widget +* @class OverlayManager +* @constructor +* @param {Array} overlays Optional. A collection of Overlays to register with the manager. +* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager +*/ +YAHOO.widget.OverlayManager = function(userConfig) { + this.init(userConfig); +}; + +/** +* The CSS class representing a focused Overlay +* @property YAHOO.widget.OverlayManager.CSS_FOCUSED +* @static +* @final +* @type String +*/ +YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused"; + +YAHOO.widget.OverlayManager.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.OverlayManager, + + /** + * The array of Overlays that are currently registered + * @property overlays + * @type YAHOO.widget.Overlay[] + */ + overlays : null, + + /** + * Initializes the default configuration of the OverlayManager + * @method initDefaultConfig + */ + initDefaultConfig : function() { + /** + * The collection of registered Overlays in use by the OverlayManager + * @config overlays + * @type YAHOO.widget.Overlay[] + * @default null + */ + this.cfg.addProperty("overlays", { suppressEvent:true } ); + + /** + * The default DOM event that should be used to focus an Overlay + * @config focusevent + * @type String + * @default "mousedown" + */ + this.cfg.addProperty("focusevent", { value:"mousedown" } ); + }, + + /** + * Initializes the OverlayManager + * @method init + * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager. + * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager + */ + init : function(userConfig) { + /** + * The OverlayManager's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + this.cfg.fireQueue(); + + /** + * The currently activated Overlay + * @property activeOverlay + * @private + * @type YAHOO.widget.Overlay + */ + var activeOverlay = null; + + /** + * Returns the currently focused Overlay + * @method getActive + * @return {YAHOO.widget.Overlay} The currently focused Overlay + */ + this.getActive = function() { + return activeOverlay; + }; + + /** + * Focuses the specified Overlay + * @method focus + * @param {YAHOO.widget.Overlay} overlay The Overlay to focus + * @param {String} overlay The id of the Overlay to focus + */ + this.focus = function(overlay) { + var o = this.find(overlay); + if (o) { + this.blurAll(); + activeOverlay = o; + YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + this.overlays.sort(this.compareZIndexDesc); + var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex"); + if (! isNaN(topZIndex) && this.overlays[0] != overlay) { + activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2)); + } + this.overlays.sort(this.compareZIndexDesc); + } + }; + + /** + * Removes the specified Overlay from the manager + * @method remove + * @param {YAHOO.widget.Overlay} overlay The Overlay to remove + * @param {String} overlay The id of the Overlay to remove + */ + this.remove = function(overlay) { + var o = this.find(overlay); + if (o) { + var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex"); + o.cfg.setProperty("zIndex", -1000, true); + this.overlays.sort(this.compareZIndexDesc); + this.overlays = this.overlays.slice(0, this.overlays.length-1); + o.cfg.setProperty("zIndex", originalZ, true); + + o.cfg.setProperty("manager", null); + o.focusEvent = null; + o.blurEvent = null; + o.focus = null; + o.blur = null; + } + }; + + /** + * Removes focus from all registered Overlays in the manager + * @method blurAll + */ + this.blurAll = function() { + activeOverlay = null; + for (var o=0;o<this.overlays.length;o++) { + YAHOO.util.Dom.removeClass(this.overlays[o].element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + } + }; + + var overlays = this.cfg.getProperty("overlays"); + + if (! this.overlays) { + this.overlays = []; + } + + if (overlays) { + this.register(overlays); + this.overlays.sort(this.compareZIndexDesc); + } + }, + + /** + * Registers an Overlay or an array of Overlays with the manager. Upon registration, the Overlay receives functions for focus and blur, along with CustomEvents for each. + * @method register + * @param {YAHOO.widget.Overlay} overlay An Overlay to register with the manager. + * @param {YAHOO.widget.Overlay[]} overlay An array of Overlays to register with the manager. + * @return {Boolean} True if any Overlays are registered. + */ + register : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + overlay.cfg.addProperty("manager", { value:this } ); + + overlay.focusEvent = new YAHOO.util.CustomEvent("focus"); + overlay.blurEvent = new YAHOO.util.CustomEvent("blur"); + + var mgr=this; + + overlay.focus = function() { + mgr.focus(this); + this.focusEvent.fire(); + }; + + overlay.blur = function() { + mgr.blurAll(); + this.blurEvent.fire(); + }; + + var focusOnDomEvent = function(e,obj) { + overlay.focus(); + }; + + var focusevent = this.cfg.getProperty("focusevent"); + YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true); + + var zIndex = YAHOO.util.Dom.getStyle(overlay.element, "zIndex"); + if (! isNaN(zIndex)) { + overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10)); + } else { + overlay.cfg.setProperty("zIndex", 0); + } + + this.overlays.push(overlay); + return true; + } else if (overlay instanceof Array) { + var regcount = 0; + for (var i=0;i<overlay.length;i++) { + if (this.register(overlay[i])) { + regcount++; + } + } + if (regcount > 0) { + return true; + } + } else { + return false; + } + }, + + /** + * Attempts to locate an Overlay by instance or ID. + * @method find + * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager + * @param {String} overlay An Overlay id to locate within the manager + * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located. + */ + find : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + for (var o=0;o<this.overlays.length;o++) { + if (this.overlays[o] == overlay) { + return this.overlays[o]; + } + } + } else if (typeof overlay == "string") { + for (var p=0;p<this.overlays.length;p++) { + if (this.overlays[p].id == overlay) { + return this.overlays[p]; + } + } + } + return null; + }, + + /** + * Used for sorting the manager's Overlays by z-index. + * @method compareZIndexDesc + * @private + * @return {Number} 0, 1, or -1, depending on where the Overlay should fall in the stacking order. + */ + compareZIndexDesc : function(o1, o2) { + var zIndex1 = o1.cfg.getProperty("zIndex"); + var zIndex2 = o2.cfg.getProperty("zIndex"); + + if (zIndex1 > zIndex2) { + return -1; + } else if (zIndex1 < zIndex2) { + return 1; + } else { + return 0; + } + }, + + /** + * Shows all Overlays in the manager. + * @method showAll + */ + showAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].show(); + } + }, + + /** + * Hides all Overlays in the manager. + * @method hideAll + */ + hideAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].hide(); + } + }, + + /** + * Returns a string representation of the object. + * @method toString + * @return {String} The string representation of the OverlayManager + */ + toString : function() { + return "OverlayManager"; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key event should be attached +* @param {String} attachTo The element or element ID to which the key event should be attached +* @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (! attachTo) { + YAHOO.log("No attachTo element specified", "error"); + } + if (! keyData) { + YAHOO.log("No keyData specified", "error"); + } + if (! handler) { + YAHOO.log("No handler specified", "error"); + } + + if (! event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; + +/** +* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden. +* @namespace YAHOO.widget +* @class ContainerEffect +* @constructor +* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with +* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element. +* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion. +*/ +YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) { + if (! animClass) { + animClass = YAHOO.util.Anim; + } + + /** + * The overlay to animate + * @property overlay + * @type YAHOO.widget.Overlay + */ + this.overlay = overlay; + /** + * The animation attributes to use when transitioning into view + * @property attrIn + * @type Object + */ + this.attrIn = attrIn; + /** + * The animation attributes to use when transitioning out of view + * @property attrOut + * @type Object + */ + this.attrOut = attrOut; + /** + * The target element to be animated + * @property targetElement + * @type HTMLElement + */ + this.targetElement = targetElement || overlay.element; + /** + * The animation class to use for animating the overlay + * @property animClass + * @type class + */ + this.animClass = animClass; +}; + +/** +* Initializes the animation classes and events. +* @method init +*/ +YAHOO.widget.ContainerEffect.prototype.init = function() { + this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn"); + this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut"); + + this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete"); + this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete"); + + this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method); + this.animIn.onStart.subscribe(this.handleStartAnimateIn, this); + this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this); + this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this); + + this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method); + this.animOut.onStart.subscribe(this.handleStartAnimateOut, this); + this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this); + this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this); +}; + +/** +* Triggers the in-animation. +* @method animateIn +*/ +YAHOO.widget.ContainerEffect.prototype.animateIn = function() { + this.beforeAnimateInEvent.fire(); + this.animIn.animate(); +}; + +/** +* Triggers the out-animation. +* @method animateOut +*/ +YAHOO.widget.ContainerEffect.prototype.animateOut = function() { + this.beforeAnimateOutEvent.fire(); + this.animOut.animate(); +}; + +/** +* The default onStart handler for the in-animation. +* @method handleStartAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { }; +/** +* The default onTween handler for the in-animation. +* @method handleTweenAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { }; +/** +* The default onComplete handler for the in-animation. +* @method handleCompleteAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { }; + +/** +* The default onStart handler for the out-animation. +* @method handleStartAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { }; +/** +* The default onTween handler for the out-animation. +* @method handleTweenAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { }; +/** +* The default onComplete handler for the out-animation. +* @method handleCompleteAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { }; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the ContainerEffect +*/ +YAHOO.widget.ContainerEffect.prototype.toString = function() { + var output = "ContainerEffect"; + if (this.overlay) { + output += " [" + this.overlay.toString() + "]"; + } + return output; +}; + +/** +* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out. +* @method FADE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) { + var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element ); + + fade.handleStartAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (! obj.overlay.underlay) { + obj.overlay.cfg.refireEvent("underlay"); + } + + if (obj.overlay.underlay) { + obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity"); + obj.overlay.underlay.style.filter = null; + } + + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0); + }; + + fade.handleCompleteAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + + if (obj.overlay.underlay) { + YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity); + } + + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + fade.handleStartAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.underlay) { + obj.overlay.underlay.style.filter = null; + } + }; + + fade.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1); + + obj.overlay.cfg.refireEvent("iframe"); + + obj.animateOutCompleteEvent.fire(); + }; + + fade.init(); + return fade; +}; + + +/** +* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out. +* @method SLIDE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) { + var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element); + var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element); + + var clientWidth = YAHOO.util.Dom.getClientWidth(); + var offsetWidth = overlay.element.offsetWidth; + + var slide = new YAHOO.widget.ContainerEffect(overlay, { + attributes:{ points: { to:[x, y] } }, + duration:dur, + method:YAHOO.util.Easing.easeIn + }, + { + attributes:{ points: { to:[(clientWidth+25), y] } }, + duration:dur, + method:YAHOO.util.Easing.easeOut + }, + overlay.element, + YAHOO.util.Motion); + + + slide.handleStartAnimateIn = function(type,args,obj) { + obj.overlay.element.style.left = (-25-offsetWidth) + "px"; + obj.overlay.element.style.top = y + "px"; + }; + + slide.handleTweenAnimateIn = function(type, args, obj) { + + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var currentX = pos[0]; + var currentY = pos[1]; + + if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + } + + obj.overlay.cfg.setProperty("xy", [currentX,currentY], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateIn = function(type, args, obj) { + obj.overlay.cfg.setProperty("xy", [x,y], true); + obj.startX = x; + obj.startY = y; + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + slide.handleStartAnimateOut = function(type, args, obj) { + var vw = YAHOO.util.Dom.getViewportWidth(); + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var yso = pos[1]; + + var currentTo = obj.animOut.attributes.points.to; + obj.animOut.attributes.points.to = [(vw+25), yso]; + }; + + slide.handleTweenAnimateOut = function(type, args, obj) { + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var xto = pos[0]; + var yto = pos[1]; + + obj.overlay.cfg.setProperty("xy", [xto,yto], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + + obj.overlay.cfg.setProperty("xy", [x,y]); + obj.animateOutCompleteEvent.fire(); + }; + + slide.init(); + return slide; +}; + +YAHOO.register("container_core", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/container/container_core-min.js b/interface/ispconfig/interface/js/yui/container/container_core-min.js new file mode 100644 index 0000000..bdbc247 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container_core-min.js @@ -0,0 +1,109 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.Config=function(owner){if(owner){this.init(owner);}};YAHOO.util.Config.prototype={owner:null,queueInProgress:false,checkBoolean:function(val){if(typeof val=='boolean'){return true;}else{return false;}},checkNumber:function(val){if(isNaN(val)){return false;}else{return true;}}};YAHOO.util.Config.prototype.init=function(owner){this.owner=owner;this.configChangedEvent=new YAHOO.util.CustomEvent("configChanged");this.queueInProgress=false;var config={};var initialConfig={};var eventQueue=[];var fireEvent=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){property.event.fire(value);}};this.addProperty=function(key,propertyObject){key=key.toLowerCase();config[key]=propertyObject;propertyObject.event=new YAHOO.util.CustomEvent(key);propertyObject.key=key;if(propertyObject.handler){propertyObject.event.subscribe(propertyObject.handler,this.owner,true);} +this.setProperty(key,propertyObject.value,true);if(!propertyObject.suppressEvent){this.queueProperty(key,propertyObject.value);}};this.getConfig=function(){var cfg={};for(var prop in config){var property=config[prop];if(typeof property!='undefined'&&property.event){cfg[prop]=property.value;}} +return cfg;};this.getProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.value;}else{return undefined;}};this.resetProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(initialConfig[key]&&initialConfig[key]!='undefined'){this.setProperty(key,initialConfig[key]);} +return true;}else{return false;}};this.setProperty=function(key,value,silent){key=key.toLowerCase();if(this.queueInProgress&&!silent){this.queueProperty(key,value);return true;}else{var property=config[key];if(typeof property!='undefined'&&property.event){if(property.validator&&!property.validator(value)){return false;}else{property.value=value;if(!silent){fireEvent(key,value);this.configChangedEvent.fire([key,value]);} +return true;}}else{return false;}}};this.queueProperty=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(typeof value!='undefined'&&property.validator&&!property.validator(value)){return false;}else{if(typeof value!='undefined'){property.value=value;}else{value=property.value;} +var foundDuplicate=false;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var queueItemKey=queueItem[0];var queueItemValue=queueItem[1];if(queueItemKey.toLowerCase()==key){eventQueue[i]=null;eventQueue.push([key,(typeof value!='undefined'?value:queueItemValue)]);foundDuplicate=true;break;}}} +if(!foundDuplicate&&typeof value!='undefined'){eventQueue.push([key,value]);}} +if(property.supercedes){for(var s=0;s<property.supercedes.length;s++){var supercedesCheck=property.supercedes[s];for(var q=0;q<eventQueue.length;q++){var queueItemCheck=eventQueue[q];if(queueItemCheck){var queueItemCheckKey=queueItemCheck[0];var queueItemCheckValue=queueItemCheck[1];if(queueItemCheckKey.toLowerCase()==supercedesCheck.toLowerCase()){eventQueue.push([queueItemCheckKey,queueItemCheckValue]);eventQueue[q]=null;break;}}}}} +return true;}else{return false;}};this.refireEvent=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event&&typeof property.value!='undefined'){if(this.queueInProgress){this.queueProperty(key);}else{fireEvent(key,property.value);}}};this.applyConfig=function(userConfig,init){if(init){initialConfig=userConfig;} +for(var prop in userConfig){this.queueProperty(prop,userConfig[prop]);}};this.refresh=function(){for(var prop in config){this.refireEvent(prop);}};this.fireQueue=function(){this.queueInProgress=true;for(var i=0;i<eventQueue.length;i++){var queueItem=eventQueue[i];if(queueItem){var key=queueItem[0];var value=queueItem[1];var property=config[key];property.value=value;fireEvent(key,value);}} +this.queueInProgress=false;eventQueue=[];};this.subscribeToConfigEvent=function(key,handler,obj,override){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(!YAHOO.util.Config.alreadySubscribed(property.event,handler,obj)){property.event.subscribe(handler,obj,override);} +return true;}else{return false;}};this.unsubscribeFromConfigEvent=function(key,handler,obj){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.event.unsubscribe(handler,obj);}else{return false;}};this.toString=function(){var output="Config";if(this.owner){output+=" ["+this.owner.toString()+"]";} +return output;};this.outputEventQueue=function(){var output="";for(var q=0;q<eventQueue.length;q++){var queueItem=eventQueue[q];if(queueItem){output+=queueItem[0]+"="+queueItem[1]+", ";}} +return output;};};YAHOO.util.Config.alreadySubscribed=function(evt,fn,obj){for(var e=0;e<evt.subscribers.length;e++){var subsc=evt.subscribers[e];if(subsc&&subsc.obj==obj&&subsc.fn==fn){return true;}} +return false;};YAHOO.widget.Module=function(el,userConfig){if(el){this.init(el,userConfig);}else{}};YAHOO.widget.Module.IMG_ROOT=null;YAHOO.widget.Module.IMG_ROOT_SSL=null;YAHOO.widget.Module.CSS_MODULE="module";YAHOO.widget.Module.CSS_HEADER="hd";YAHOO.widget.Module.CSS_BODY="bd";YAHOO.widget.Module.CSS_FOOTER="ft";YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL="javascript:false;";YAHOO.widget.Module.textResizeEvent=new YAHOO.util.CustomEvent("textResize");YAHOO.widget.Module.prototype={constructor:YAHOO.widget.Module,element:null,header:null,body:null,footer:null,id:null,imageRoot:YAHOO.widget.Module.IMG_ROOT,initEvents:function(){this.beforeInitEvent=new YAHOO.util.CustomEvent("beforeInit");this.initEvent=new YAHOO.util.CustomEvent("init");this.appendEvent=new YAHOO.util.CustomEvent("append");this.beforeRenderEvent=new YAHOO.util.CustomEvent("beforeRender");this.renderEvent=new YAHOO.util.CustomEvent("render");this.changeHeaderEvent=new YAHOO.util.CustomEvent("changeHeader");this.changeBodyEvent=new YAHOO.util.CustomEvent("changeBody");this.changeFooterEvent=new YAHOO.util.CustomEvent("changeFooter");this.changeContentEvent=new YAHOO.util.CustomEvent("changeContent");this.destroyEvent=new YAHOO.util.CustomEvent("destroy");this.beforeShowEvent=new YAHOO.util.CustomEvent("beforeShow");this.showEvent=new YAHOO.util.CustomEvent("show");this.beforeHideEvent=new YAHOO.util.CustomEvent("beforeHide");this.hideEvent=new YAHOO.util.CustomEvent("hide");},platform:function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1){return"windows";}else if(ua.indexOf("macintosh")!=-1){return"mac";}else{return false;}}(),browser:function(){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('opera')!=-1){return'opera';}else if(ua.indexOf('msie 7')!=-1){return'ie7';}else if(ua.indexOf('msie')!=-1){return'ie';}else if(ua.indexOf('safari')!=-1){return'safari';}else if(ua.indexOf('gecko')!=-1){return'gecko';}else{return false;}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty("visible",{value:true,handler:this.configVisible,validator:this.cfg.checkBoolean});this.cfg.addProperty("effect",{suppressEvent:true,supercedes:["visible"]});this.cfg.addProperty("monitorresize",{value:true,handler:this.configMonitorResize});},init:function(el,userConfig){this.initEvents();this.beforeInitEvent.fire(YAHOO.widget.Module);this.cfg=new YAHOO.util.Config(this);if(this.isSecure){this.imageRoot=YAHOO.widget.Module.IMG_ROOT_SSL;} +if(typeof el=="string"){var elId=el;el=document.getElementById(el);if(!el){el=document.createElement("div");el.id=elId;}} +this.element=el;if(el.id){this.id=el.id;} +var childNodes=this.element.childNodes;if(childNodes){for(var i=0;i<childNodes.length;i++){var child=childNodes[i];switch(child.className){case YAHOO.widget.Module.CSS_HEADER:this.header=child;break;case YAHOO.widget.Module.CSS_BODY:this.body=child;break;case YAHOO.widget.Module.CSS_FOOTER:this.footer=child;break;}}} +this.initDefaultConfig();YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Module.CSS_MODULE);if(userConfig){this.cfg.applyConfig(userConfig,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);} +this.initEvent.fire(YAHOO.widget.Module);},initResizeMonitor:function(){if(this.browser!="opera"){var resizeMonitor=document.getElementById("_yuiResizeMonitor");if(!resizeMonitor){resizeMonitor=document.createElement("iframe");var bIE=(this.browser.indexOf("ie")===0);if(this.isSecure&&YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL&&bIE){resizeMonitor.src=YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL;} +resizeMonitor.id="_yuiResizeMonitor";resizeMonitor.style.visibility="hidden";document.body.appendChild(resizeMonitor);resizeMonitor.style.width="10em";resizeMonitor.style.height="10em";resizeMonitor.style.position="absolute";var nLeft=-1*resizeMonitor.offsetWidth;var nTop=-1*resizeMonitor.offsetHeight;resizeMonitor.style.top=nTop+"px";resizeMonitor.style.left=nLeft+"px";resizeMonitor.style.borderStyle="none";resizeMonitor.style.borderWidth="0";YAHOO.util.Dom.setStyle(resizeMonitor,"opacity","0");resizeMonitor.style.visibility="visible";if(!bIE){var doc=resizeMonitor.contentWindow.document;doc.open();doc.close();}} +var fireTextResize=function(){YAHOO.widget.Module.textResizeEvent.fire();};if(resizeMonitor&&resizeMonitor.contentWindow){this.resizeMonitor=resizeMonitor;YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize,this,true);if(!YAHOO.widget.Module.textResizeInitialized){if(!YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow,"resize",fireTextResize)){YAHOO.util.Event.addListener(this.resizeMonitor,"resize",fireTextResize);} +YAHOO.widget.Module.textResizeInitialized=true;}}}},onDomResize:function(e,obj){var nLeft=-1*this.resizeMonitor.offsetWidth,nTop=-1*this.resizeMonitor.offsetHeight;this.resizeMonitor.style.top=nTop+"px";this.resizeMonitor.style.left=nLeft+"px";},setHeader:function(headerContent){if(!this.header){this.header=document.createElement("div");this.header.className=YAHOO.widget.Module.CSS_HEADER;} +if(typeof headerContent=="string"){this.header.innerHTML=headerContent;}else{this.header.innerHTML="";this.header.appendChild(headerContent);} +this.changeHeaderEvent.fire(headerContent);this.changeContentEvent.fire();},appendToHeader:function(element){if(!this.header){this.header=document.createElement("div");this.header.className=YAHOO.widget.Module.CSS_HEADER;} +this.header.appendChild(element);this.changeHeaderEvent.fire(element);this.changeContentEvent.fire();},setBody:function(bodyContent){if(!this.body){this.body=document.createElement("div");this.body.className=YAHOO.widget.Module.CSS_BODY;} +if(typeof bodyContent=="string") +{this.body.innerHTML=bodyContent;}else{this.body.innerHTML="";this.body.appendChild(bodyContent);} +this.changeBodyEvent.fire(bodyContent);this.changeContentEvent.fire();},appendToBody:function(element){if(!this.body){this.body=document.createElement("div");this.body.className=YAHOO.widget.Module.CSS_BODY;} +this.body.appendChild(element);this.changeBodyEvent.fire(element);this.changeContentEvent.fire();},setFooter:function(footerContent){if(!this.footer){this.footer=document.createElement("div");this.footer.className=YAHOO.widget.Module.CSS_FOOTER;} +if(typeof footerContent=="string"){this.footer.innerHTML=footerContent;}else{this.footer.innerHTML="";this.footer.appendChild(footerContent);} +this.changeFooterEvent.fire(footerContent);this.changeContentEvent.fire();},appendToFooter:function(element){if(!this.footer){this.footer=document.createElement("div");this.footer.className=YAHOO.widget.Module.CSS_FOOTER;} +this.footer.appendChild(element);this.changeFooterEvent.fire(element);this.changeContentEvent.fire();},render:function(appendToNode,moduleElement){this.beforeRenderEvent.fire();if(!moduleElement){moduleElement=this.element;} +var me=this;var appendTo=function(element){if(typeof element=="string"){element=document.getElementById(element);} +if(element){element.appendChild(me.element);me.appendEvent.fire();}};if(appendToNode){appendTo(appendToNode);}else{if(!YAHOO.util.Dom.inDocument(this.element)){return false;}} +if(this.header&&!YAHOO.util.Dom.inDocument(this.header)){var firstChild=moduleElement.firstChild;if(firstChild){moduleElement.insertBefore(this.header,firstChild);}else{moduleElement.appendChild(this.header);}} +if(this.body&&!YAHOO.util.Dom.inDocument(this.body)){if(this.footer&&YAHOO.util.Dom.isAncestor(this.moduleElement,this.footer)){moduleElement.insertBefore(this.body,this.footer);}else{moduleElement.appendChild(this.body);}} +if(this.footer&&!YAHOO.util.Dom.inDocument(this.footer)){moduleElement.appendChild(this.footer);} +this.renderEvent.fire();return true;},destroy:function(){var parent;if(this.element){YAHOO.util.Event.purgeElement(this.element,true);parent=this.element.parentNode;} +if(parent){parent.removeChild(this.element);} +this.element=null;this.header=null;this.body=null;this.footer=null;for(var e in this){if(e instanceof YAHOO.util.CustomEvent){e.unsubscribeAll();}} +YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize,this);this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(type,args,obj){var visible=args[0];if(visible){this.beforeShowEvent.fire();YAHOO.util.Dom.setStyle(this.element,"display","block");this.showEvent.fire();}else{this.beforeHideEvent.fire();YAHOO.util.Dom.setStyle(this.element,"display","none");this.hideEvent.fire();}},configMonitorResize:function(type,args,obj){var monitor=args[0];if(monitor){this.initResizeMonitor();}else{YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}}};YAHOO.widget.Module.prototype.toString=function(){return"Module "+this.id;};YAHOO.widget.Overlay=function(el,userConfig){YAHOO.widget.Overlay.superclass.constructor.call(this,el,userConfig);};YAHOO.extend(YAHOO.widget.Overlay,YAHOO.widget.Module);YAHOO.widget.Overlay.IFRAME_SRC="javascript:false;";YAHOO.widget.Overlay.TOP_LEFT="tl";YAHOO.widget.Overlay.TOP_RIGHT="tr";YAHOO.widget.Overlay.BOTTOM_LEFT="bl";YAHOO.widget.Overlay.BOTTOM_RIGHT="br";YAHOO.widget.Overlay.CSS_OVERLAY="yui-overlay";YAHOO.widget.Overlay.prototype.init=function(el,userConfig){YAHOO.widget.Overlay.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.Overlay);YAHOO.util.Dom.addClass(this.element,YAHOO.widget.Overlay.CSS_OVERLAY);if(userConfig){this.cfg.applyConfig(userConfig,true);} +if(this.platform=="mac"&&this.browser=="gecko"){if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}} +this.initEvent.fire(YAHOO.widget.Overlay);};YAHOO.widget.Overlay.prototype.initEvents=function(){YAHOO.widget.Overlay.superclass.initEvents.call(this);this.beforeMoveEvent=new YAHOO.util.CustomEvent("beforeMove",this);this.moveEvent=new YAHOO.util.CustomEvent("move",this);};YAHOO.widget.Overlay.prototype.initDefaultConfig=function(){YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);this.cfg.addProperty("x",{handler:this.configX,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("y",{handler:this.configY,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("xy",{handler:this.configXY,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("context",{handler:this.configContext,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("fixedcenter",{value:false,handler:this.configFixedCenter,validator:this.cfg.checkBoolean,supercedes:["iframe","visible"]});this.cfg.addProperty("width",{handler:this.configWidth,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("height",{handler:this.configHeight,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("zIndex",{value:null,handler:this.configzIndex});this.cfg.addProperty("constraintoviewport",{value:false,handler:this.configConstrainToViewport,validator:this.cfg.checkBoolean,supercedes:["iframe","x","y","xy"]});this.cfg.addProperty("iframe",{value:(this.browser=="ie"?true:false),handler:this.configIframe,validator:this.cfg.checkBoolean,supercedes:["zIndex"]});};YAHOO.widget.Overlay.prototype.moveTo=function(x,y){this.cfg.setProperty("xy",[x,y]);};YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars=function(){YAHOO.util.Dom.removeClass(this.element,"show-scrollbars");YAHOO.util.Dom.addClass(this.element,"hide-scrollbars");};YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars=function(){YAHOO.util.Dom.removeClass(this.element,"hide-scrollbars");YAHOO.util.Dom.addClass(this.element,"show-scrollbars");};YAHOO.widget.Overlay.prototype.configVisible=function(type,args,obj){var visible=args[0];var currentVis=YAHOO.util.Dom.getStyle(this.element,"visibility");if(currentVis=="inherit"){var e=this.element.parentNode;while(e.nodeType!=9&&e.nodeType!=11){currentVis=YAHOO.util.Dom.getStyle(e,"visibility");if(currentVis!="inherit"){break;} +e=e.parentNode;} +if(currentVis=="inherit"){currentVis="visible";}} +var effect=this.cfg.getProperty("effect");var effectInstances=[];if(effect){if(effect instanceof Array){for(var i=0;i<effect.length;i++){var eff=effect[i];effectInstances[effectInstances.length]=eff.effect(this,eff.duration);}}else{effectInstances[effectInstances.length]=effect.effect(this,effect.duration);}} +var isMacGecko=(this.platform=="mac"&&this.browser=="gecko");if(visible){if(isMacGecko){this.showMacGeckoScrollbars();} +if(effect){if(visible){if(currentVis!="visible"||currentVis===""){this.beforeShowEvent.fire();for(var j=0;j<effectInstances.length;j++){var ei=effectInstances[j];if(j===0&&!YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);} +ei.animateIn();}}}}else{if(currentVis!="visible"||currentVis===""){this.beforeShowEvent.fire();YAHOO.util.Dom.setStyle(this.element,"visibility","visible");this.cfg.refireEvent("iframe");this.showEvent.fire();}}}else{if(isMacGecko){this.hideMacGeckoScrollbars();} +if(effect){if(currentVis=="visible"){this.beforeHideEvent.fire();for(var k=0;k<effectInstances.length;k++){var h=effectInstances[k];if(k===0&&!YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);} +h.animateOut();}}else if(currentVis===""){YAHOO.util.Dom.setStyle(this.element,"visibility","hidden");}}else{if(currentVis=="visible"||currentVis===""){this.beforeHideEvent.fire();YAHOO.util.Dom.setStyle(this.element,"visibility","hidden");this.cfg.refireEvent("iframe");this.hideEvent.fire();}}}};YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent=function(){if(this.cfg.getProperty("visible")){this.center();}};YAHOO.widget.Overlay.prototype.configFixedCenter=function(type,args,obj){var val=args[0];if(val){this.center();if(!YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent,this.center,this)){this.beforeShowEvent.subscribe(this.center,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent,this.doCenterOnDOMEvent,this)){YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent,this.doCenterOnDOMEvent,this)){YAHOO.widget.Overlay.windowScrollEvent.subscribe(this.doCenterOnDOMEvent,this,true);}}else{YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);}};YAHOO.widget.Overlay.prototype.configHeight=function(type,args,obj){var height=args[0];var el=this.element;YAHOO.util.Dom.setStyle(el,"height",height);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.configWidth=function(type,args,obj){var width=args[0];var el=this.element;YAHOO.util.Dom.setStyle(el,"width",width);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.configzIndex=function(type,args,obj){var zIndex=args[0];var el=this.element;if(!zIndex){zIndex=YAHOO.util.Dom.getStyle(el,"zIndex");if(!zIndex||isNaN(zIndex)){zIndex=0;}} +if(this.iframe){if(zIndex<=0){zIndex=1;} +YAHOO.util.Dom.setStyle(this.iframe,"zIndex",(zIndex-1));} +YAHOO.util.Dom.setStyle(el,"zIndex",zIndex);this.cfg.setProperty("zIndex",zIndex,true);};YAHOO.widget.Overlay.prototype.configXY=function(type,args,obj){var pos=args[0];var x=pos[0];var y=pos[1];this.cfg.setProperty("x",x);this.cfg.setProperty("y",y);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.configX=function(type,args,obj){var x=args[0];var y=this.cfg.getProperty("y");this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");YAHOO.util.Dom.setX(this.element,x,true);this.cfg.setProperty("xy",[x,y],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.configY=function(type,args,obj){var x=this.cfg.getProperty("x");var y=args[0];this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.beforeMoveEvent.fire([x,y]);x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");YAHOO.util.Dom.setY(this.element,y,true);this.cfg.setProperty("xy",[x,y],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([x,y]);};YAHOO.widget.Overlay.prototype.showIframe=function(){if(this.iframe){this.iframe.style.display="block";}};YAHOO.widget.Overlay.prototype.hideIframe=function(){if(this.iframe){this.iframe.style.display="none";}};YAHOO.widget.Overlay.prototype.configIframe=function(type,args,obj){var val=args[0];if(val){if(!YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showIframe,this)){this.showEvent.subscribe(this.showIframe,this,true);} +if(!YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideIframe,this)){this.hideEvent.subscribe(this.hideIframe,this,true);} +var x=this.cfg.getProperty("x");var y=this.cfg.getProperty("y");if(!x||!y){this.syncPosition();x=this.cfg.getProperty("x");y=this.cfg.getProperty("y");} +if(!isNaN(x)&&!isNaN(y)){if(!this.iframe){this.iframe=document.createElement("iframe");if(this.isSecure){this.iframe.src=YAHOO.widget.Overlay.IFRAME_SRC;} +var parent=this.element.parentNode;if(parent){parent.appendChild(this.iframe);}else{document.body.appendChild(this.iframe);} +YAHOO.util.Dom.setStyle(this.iframe,"position","absolute");YAHOO.util.Dom.setStyle(this.iframe,"border","none");YAHOO.util.Dom.setStyle(this.iframe,"margin","0");YAHOO.util.Dom.setStyle(this.iframe,"padding","0");YAHOO.util.Dom.setStyle(this.iframe,"opacity","0");if(this.cfg.getProperty("visible")){this.showIframe();}else{this.hideIframe();}} +var iframeDisplay=YAHOO.util.Dom.getStyle(this.iframe,"display");if(iframeDisplay=="none"){this.iframe.style.display="block";} +YAHOO.util.Dom.setXY(this.iframe,[x,y]);var width=this.element.clientWidth;var height=this.element.clientHeight;YAHOO.util.Dom.setStyle(this.iframe,"width",(width+2)+"px");YAHOO.util.Dom.setStyle(this.iframe,"height",(height+2)+"px");if(iframeDisplay=="none"){this.iframe.style.display="none";}}}else{if(this.iframe){this.iframe.style.display="none";} +this.showEvent.unsubscribe(this.showIframe,this);this.hideEvent.unsubscribe(this.hideIframe,this);}};YAHOO.widget.Overlay.prototype.configConstrainToViewport=function(type,args,obj){var val=args[0];if(val){if(!YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}}else{this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}};YAHOO.widget.Overlay.prototype.configContext=function(type,args,obj){var contextArgs=args[0];if(contextArgs){var contextEl=contextArgs[0];var elementMagnetCorner=contextArgs[1];var contextMagnetCorner=contextArgs[2];if(contextEl){if(typeof contextEl=="string"){this.cfg.setProperty("context",[document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner],true);} +if(elementMagnetCorner&&contextMagnetCorner){this.align(elementMagnetCorner,contextMagnetCorner);}}}};YAHOO.widget.Overlay.prototype.align=function(elementAlign,contextAlign){var contextArgs=this.cfg.getProperty("context");if(contextArgs){var context=contextArgs[0];var element=this.element;var me=this;if(!elementAlign){elementAlign=contextArgs[1];} +if(!contextAlign){contextAlign=contextArgs[2];} +if(element&&context){var contextRegion=YAHOO.util.Dom.getRegion(context);var doAlign=function(v,h){switch(elementAlign){case YAHOO.widget.Overlay.TOP_LEFT:me.moveTo(h,v);break;case YAHOO.widget.Overlay.TOP_RIGHT:me.moveTo(h-element.offsetWidth,v);break;case YAHOO.widget.Overlay.BOTTOM_LEFT:me.moveTo(h,v-element.offsetHeight);break;case YAHOO.widget.Overlay.BOTTOM_RIGHT:me.moveTo(h-element.offsetWidth,v-element.offsetHeight);break;}};switch(contextAlign){case YAHOO.widget.Overlay.TOP_LEFT:doAlign(contextRegion.top,contextRegion.left);break;case YAHOO.widget.Overlay.TOP_RIGHT:doAlign(contextRegion.top,contextRegion.right);break;case YAHOO.widget.Overlay.BOTTOM_LEFT:doAlign(contextRegion.bottom,contextRegion.left);break;case YAHOO.widget.Overlay.BOTTOM_RIGHT:doAlign(contextRegion.bottom,contextRegion.right);break;}}}};YAHOO.widget.Overlay.prototype.enforceConstraints=function(type,args,obj){var pos=args[0];var x=pos[0];var y=pos[1];var offsetHeight=this.element.offsetHeight;var offsetWidth=this.element.offsetWidth;var viewPortWidth=YAHOO.util.Dom.getViewportWidth();var viewPortHeight=YAHOO.util.Dom.getViewportHeight();var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var topConstraint=scrollY+10;var leftConstraint=scrollX+10;var bottomConstraint=scrollY+viewPortHeight-offsetHeight-10;var rightConstraint=scrollX+viewPortWidth-offsetWidth-10;if(x<leftConstraint){x=leftConstraint;}else if(x>rightConstraint){x=rightConstraint;} +if(y<topConstraint){y=topConstraint;}else if(y>bottomConstraint){y=bottomConstraint;} +this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.cfg.setProperty("xy",[x,y],true);};YAHOO.widget.Overlay.prototype.center=function(){var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var viewPortWidth=YAHOO.util.Dom.getClientWidth();var viewPortHeight=YAHOO.util.Dom.getClientHeight();var elementWidth=this.element.offsetWidth;var elementHeight=this.element.offsetHeight;var x=(viewPortWidth/2)-(elementWidth/2)+scrollX;var y=(viewPortHeight/2)-(elementHeight/2)+scrollY;this.cfg.setProperty("xy",[parseInt(x,10),parseInt(y,10)]);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.syncPosition=function(){var pos=YAHOO.util.Dom.getXY(this.element);this.cfg.setProperty("x",pos[0],true);this.cfg.setProperty("y",pos[1],true);this.cfg.setProperty("xy",pos,true);};YAHOO.widget.Overlay.prototype.onDomResize=function(e,obj){YAHOO.widget.Overlay.superclass.onDomResize.call(this,e,obj);var me=this;setTimeout(function(){me.syncPosition();me.cfg.refireEvent("iframe");me.cfg.refireEvent("context");},0);};YAHOO.widget.Overlay.prototype.destroy=function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);} +this.iframe=null;YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.superclass.destroy.call(this);};YAHOO.widget.Overlay.prototype.toString=function(){return"Overlay "+this.id;};YAHOO.widget.Overlay.windowScrollEvent=new YAHOO.util.CustomEvent("windowScroll");YAHOO.widget.Overlay.windowResizeEvent=new YAHOO.util.CustomEvent("windowResize");YAHOO.widget.Overlay.windowScrollHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.scrollEnd){window.scrollEnd=-1;} +clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){YAHOO.widget.Overlay.windowScrollEvent.fire();},1);}else{YAHOO.widget.Overlay.windowScrollEvent.fire();}};YAHOO.widget.Overlay.windowResizeHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.resizeEnd){window.resizeEnd=-1;} +clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){YAHOO.widget.Overlay.windowResizeEvent.fire();},100);}else{YAHOO.widget.Overlay.windowResizeEvent.fire();}};YAHOO.widget.Overlay._initialized=null;if(YAHOO.widget.Overlay._initialized===null){YAHOO.util.Event.addListener(window,"scroll",YAHOO.widget.Overlay.windowScrollHandler);YAHOO.util.Event.addListener(window,"resize",YAHOO.widget.Overlay.windowResizeHandler);YAHOO.widget.Overlay._initialized=true;} +YAHOO.widget.OverlayManager=function(userConfig){this.init(userConfig);};YAHOO.widget.OverlayManager.CSS_FOCUSED="focused";YAHOO.widget.OverlayManager.prototype={constructor:YAHOO.widget.OverlayManager,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(userConfig){this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();if(userConfig){this.cfg.applyConfig(userConfig,true);} +this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){return activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);if(o){this.blurAll();activeOverlay=o;YAHOO.util.Dom.addClass(activeOverlay.element,YAHOO.widget.OverlayManager.CSS_FOCUSED);this.overlays.sort(this.compareZIndexDesc);var topZIndex=YAHOO.util.Dom.getStyle(this.overlays[0].element,"zIndex");if(!isNaN(topZIndex)&&this.overlays[0]!=overlay){activeOverlay.cfg.setProperty("zIndex",(parseInt(topZIndex,10)+2));} +this.overlays.sort(this.compareZIndexDesc);}};this.remove=function(overlay){var o=this.find(overlay);if(o){var originalZ=YAHOO.util.Dom.getStyle(o.element,"zIndex");o.cfg.setProperty("zIndex",-1000,true);this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,this.overlays.length-1);o.cfg.setProperty("zIndex",originalZ,true);o.cfg.setProperty("manager",null);o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){activeOverlay=null;for(var o=0;o<this.overlays.length;o++){YAHOO.util.Dom.removeClass(this.overlays[o].element,YAHOO.widget.OverlayManager.CSS_FOCUSED);}};var overlays=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];} +if(overlays){this.register(overlays);this.overlays.sort(this.compareZIndexDesc);}},register:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){overlay.cfg.addProperty("manager",{value:this});overlay.focusEvent=new YAHOO.util.CustomEvent("focus");overlay.blurEvent=new YAHOO.util.CustomEvent("blur");var mgr=this;overlay.focus=function(){mgr.focus(this);this.focusEvent.fire();};overlay.blur=function(){mgr.blurAll();this.blurEvent.fire();};var focusOnDomEvent=function(e,obj){overlay.focus();};var focusevent=this.cfg.getProperty("focusevent");YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true);var zIndex=YAHOO.util.Dom.getStyle(overlay.element,"zIndex");if(!isNaN(zIndex)){overlay.cfg.setProperty("zIndex",parseInt(zIndex,10));}else{overlay.cfg.setProperty("zIndex",0);} +this.overlays.push(overlay);return true;}else if(overlay instanceof Array){var regcount=0;for(var i=0;i<overlay.length;i++){if(this.register(overlay[i])){regcount++;}} +if(regcount>0){return true;}}else{return false;}},find:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){for(var o=0;o<this.overlays.length;o++){if(this.overlays[o]==overlay){return this.overlays[o];}}}else if(typeof overlay=="string"){for(var p=0;p<this.overlays.length;p++){if(this.overlays[p].id==overlay){return this.overlays[p];}}} +return null;},compareZIndexDesc:function(o1,o2){var zIndex1=o1.cfg.getProperty("zIndex");var zIndex2=o2.cfg.getProperty("zIndex");if(zIndex1>zIndex2){return-1;}else if(zIndex1<zIndex2){return 1;}else{return 0;}},showAll:function(){for(var o=0;o<this.overlays.length;o++){this.overlays[o].show();}},hideAll:function(){for(var o=0;o<this.overlays.length;o++){this.overlays[o].hide();}},toString:function(){return"OverlayManager";}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){} +if(!keyData){} +if(!handler){} +if(!event){event=YAHOO.util.KeyListener.KEYDOWN;} +var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);} +if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);} +function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;} +if(!keyData.alt){keyData.alt=false;} +if(!keyData.ctrl){keyData.ctrl=false;} +if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}} +this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);} +this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);} +this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.widget.ContainerEffect=function(overlay,attrIn,attrOut,targetElement,animClass){if(!animClass){animClass=YAHOO.util.Anim;} +this.overlay=overlay;this.attrIn=attrIn;this.attrOut=attrOut;this.targetElement=targetElement||overlay.element;this.animClass=animClass;};YAHOO.widget.ContainerEffect.prototype.init=function(){this.beforeAnimateInEvent=new YAHOO.util.CustomEvent("beforeAnimateIn");this.beforeAnimateOutEvent=new YAHOO.util.CustomEvent("beforeAnimateOut");this.animateInCompleteEvent=new YAHOO.util.CustomEvent("animateInComplete");this.animateOutCompleteEvent=new YAHOO.util.CustomEvent("animateOutComplete");this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);};YAHOO.widget.ContainerEffect.prototype.animateIn=function(){this.beforeAnimateInEvent.fire();this.animIn.animate();};YAHOO.widget.ContainerEffect.prototype.animateOut=function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.toString=function(){var output="ContainerEffect";if(this.overlay){output+=" ["+this.overlay.toString()+"]";} +return output;};YAHOO.widget.ContainerEffect.FADE=function(overlay,dur){var fade=new YAHOO.widget.ContainerEffect(overlay,{attributes:{opacity:{from:0,to:1}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{opacity:{to:0}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element);fade.handleStartAnimateIn=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(!obj.overlay.underlay){obj.overlay.cfg.refireEvent("underlay");} +if(obj.overlay.underlay){obj.initialUnderlayOpacity=YAHOO.util.Dom.getStyle(obj.overlay.underlay,"opacity");obj.overlay.underlay.style.filter=null;} +YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","visible");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",0);};fade.handleCompleteAnimateIn=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;} +if(obj.overlay.underlay){YAHOO.util.Dom.setStyle(obj.overlay.underlay,"opacity",obj.initialUnderlayOpacity);} +obj.overlay.cfg.refireEvent("iframe");obj.animateInCompleteEvent.fire();};fade.handleStartAnimateOut=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(obj.overlay.underlay){obj.overlay.underlay.style.filter=null;}};fade.handleCompleteAnimateOut=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;} +YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","hidden");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",1);obj.overlay.cfg.refireEvent("iframe");obj.animateOutCompleteEvent.fire();};fade.init();return fade;};YAHOO.widget.ContainerEffect.SLIDE=function(overlay,dur){var x=overlay.cfg.getProperty("x")||YAHOO.util.Dom.getX(overlay.element);var y=overlay.cfg.getProperty("y")||YAHOO.util.Dom.getY(overlay.element);var clientWidth=YAHOO.util.Dom.getClientWidth();var offsetWidth=overlay.element.offsetWidth;var slide=new YAHOO.widget.ContainerEffect(overlay,{attributes:{points:{to:[x,y]}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{points:{to:[(clientWidth+25),y]}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element,YAHOO.util.Motion);slide.handleStartAnimateIn=function(type,args,obj){obj.overlay.element.style.left=(-25-offsetWidth)+"px";obj.overlay.element.style.top=y+"px";};slide.handleTweenAnimateIn=function(type,args,obj){var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var currentX=pos[0];var currentY=pos[1];if(YAHOO.util.Dom.getStyle(obj.overlay.element,"visibility")=="hidden"&¤tX<x){YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","visible");} +obj.overlay.cfg.setProperty("xy",[currentX,currentY],true);obj.overlay.cfg.refireEvent("iframe");};slide.handleCompleteAnimateIn=function(type,args,obj){obj.overlay.cfg.setProperty("xy",[x,y],true);obj.startX=x;obj.startY=y;obj.overlay.cfg.refireEvent("iframe");obj.animateInCompleteEvent.fire();};slide.handleStartAnimateOut=function(type,args,obj){var vw=YAHOO.util.Dom.getViewportWidth();var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var yso=pos[1];var currentTo=obj.animOut.attributes.points.to;obj.animOut.attributes.points.to=[(vw+25),yso];};slide.handleTweenAnimateOut=function(type,args,obj){var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var xto=pos[0];var yto=pos[1];obj.overlay.cfg.setProperty("xy",[xto,yto],true);obj.overlay.cfg.refireEvent("iframe");};slide.handleCompleteAnimateOut=function(type,args,obj){YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","hidden");obj.overlay.cfg.setProperty("xy",[x,y]);obj.animateOutCompleteEvent.fire();};slide.init();return slide;};YAHOO.register("container_core",YAHOO.widget.Module,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/container/container_core.js b/interface/ispconfig/interface/js/yui/container/container_core.js new file mode 100644 index 0000000..a78e1c6 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/container/container_core.js @@ -0,0 +1,2919 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** +* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state. +* @namespace YAHOO.util +* @class Config +* @constructor +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config = function(owner) { + if (owner) { + this.init(owner); + } +}; + +YAHOO.util.Config.prototype = { + + /** + * Object reference to the owner of this Config Object + * @property owner + * @type Object + */ + owner : null, + + /** + * Boolean flag that specifies whether a queue is currently being executed + * @property queueInProgress + * @type Boolean + */ + queueInProgress : false, + + + /** + * Validates that the value passed in is a Boolean. + * @method checkBoolean + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkBoolean: function(val) { + if (typeof val == 'boolean') { + return true; + } else { + return false; + } + }, + + /** + * Validates that the value passed in is a number. + * @method checkNumber + * @param {Object} val The value to validate + * @return {Boolean} true, if the value is valid + */ + checkNumber: function(val) { + if (isNaN(val)) { + return false; + } else { + return true; + } + } +}; + + +/** +* Initializes the configuration Object and all of its local members. +* @method init +* @param {Object} owner The owner Object to which this Config Object belongs +*/ +YAHOO.util.Config.prototype.init = function(owner) { + + this.owner = owner; + + /** + * Object reference to the owner of this Config Object + * @event configChangedEvent + */ + this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged"); + this.queueInProgress = false; + + /* Private Members */ + + /** + * Maintains the local collection of configuration property objects and their specified values + * @property config + * @private + * @type Object + */ + var config = {}; + + /** + * Maintains the local collection of configuration property objects as they were initially applied. + * This object is used when resetting a property. + * @property initialConfig + * @private + * @type Object + */ + var initialConfig = {}; + + /** + * Maintains the local, normalized CustomEvent queue + * @property eventQueue + * @private + * @type Object + */ + var eventQueue = []; + + /** + * Fires a configuration property event using the specified value. + * @method fireEvent + * @private + * @param {String} key The configuration property's name + * @param {value} Object The value of the correct type for the property + */ + var fireEvent = function( key, value ) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + property.event.fire(value); + } + }; + /* End Private Members */ + + /** + * Adds a property to the Config Object's private config hash. + * @method addProperty + * @param {String} key The configuration property's name + * @param {Object} propertyObject The Object containing all of this property's arguments + */ + this.addProperty = function( key, propertyObject ) { + key = key.toLowerCase(); + + config[key] = propertyObject; + + propertyObject.event = new YAHOO.util.CustomEvent(key); + propertyObject.key = key; + + if (propertyObject.handler) { + propertyObject.event.subscribe(propertyObject.handler, this.owner, true); + } + + this.setProperty(key, propertyObject.value, true); + + if (! propertyObject.suppressEvent) { + this.queueProperty(key, propertyObject.value); + } + }; + + /** + * Returns a key-value configuration map of the values currently set in the Config Object. + * @method getConfig + * @return {Object} The current config, represented in a key-value map + */ + this.getConfig = function() { + var cfg = {}; + + for (var prop in config) { + var property = config[prop]; + if (typeof property != 'undefined' && property.event) { + cfg[prop] = property.value; + } + } + + return cfg; + }; + + /** + * Returns the value of specified property. + * @method getProperty + * @param {String} key The name of the property + * @return {Object} The value of the specified property + */ + this.getProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.value; + } else { + return undefined; + } + }; + + /** + * Resets the specified property's value to its initial value. + * @method resetProperty + * @param {String} key The name of the property + * @return {Boolean} True is the property was reset, false if not + */ + this.resetProperty = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (initialConfig[key] && initialConfig[key] != 'undefined') { + this.setProperty(key, initialConfig[key]); + } + return true; + } else { + return false; + } + }; + + /** + * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired. + * @method setProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @param {Boolean} silent Whether the value should be set silently, without firing the property event. + * @return {Boolean} True, if the set was successful, false if it failed. + */ + this.setProperty = function(key, value, silent) { + key = key.toLowerCase(); + + if (this.queueInProgress && ! silent) { + this.queueProperty(key,value); // Currently running through a queue... + return true; + } else { + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (property.validator && ! property.validator(value)) { // validator + return false; + } else { + property.value = value; + if (! silent) { + fireEvent(key, value); + this.configChangedEvent.fire([key, value]); + } + return true; + } + } else { + return false; + } + } + }; + + /** + * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is + * moved from its current position to the end of the queue. + * @method queueProperty + * @param {String} key The name of the property + * @param {String} value The value to set the property to + * @return {Boolean} true, if the set was successful, false if it failed. + */ + this.queueProperty = function(key, value) { + key = key.toLowerCase(); + + var property = config[key]; + + if (typeof property != 'undefined' && property.event) { + if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator + return false; + } else { + + if (typeof value != 'undefined') { + property.value = value; + } else { + value = property.value; + } + + var foundDuplicate = false; + + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + + if (queueItem) { + var queueItemKey = queueItem[0]; + var queueItemValue = queueItem[1]; + + if (queueItemKey.toLowerCase() == key) { + // found a dupe... push to end of queue, null current item, and break + eventQueue[i] = null; + eventQueue.push([key, (typeof value != 'undefined' ? value : queueItemValue)]); + foundDuplicate = true; + break; + } + } + } + + if (! foundDuplicate && typeof value != 'undefined') { // this is a refire, or a new property in the queue + eventQueue.push([key, value]); + } + } + + if (property.supercedes) { + for (var s=0;s<property.supercedes.length;s++) { + var supercedesCheck = property.supercedes[s]; + + for (var q=0;q<eventQueue.length;q++) { + var queueItemCheck = eventQueue[q]; + + if (queueItemCheck) { + var queueItemCheckKey = queueItemCheck[0]; + var queueItemCheckValue = queueItemCheck[1]; + + if ( queueItemCheckKey.toLowerCase() == supercedesCheck.toLowerCase() ) { + eventQueue.push([queueItemCheckKey, queueItemCheckValue]); + eventQueue[q] = null; + break; + } + } + } + } + } + + return true; + } else { + return false; + } + }; + + /** + * Fires the event for a property using the property's current value. + * @method refireEvent + * @param {String} key The name of the property + */ + this.refireEvent = function(key) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event && typeof property.value != 'undefined') { + if (this.queueInProgress) { + this.queueProperty(key); + } else { + fireEvent(key, property.value); + } + } + }; + + /** + * Applies a key-value Object literal to the configuration, replacing any existing values, and queueing the property events. + * Although the values will be set, fireQueue() must be called for their associated events to execute. + * @method applyConfig + * @param {Object} userConfig The configuration Object literal + * @param {Boolean} init When set to true, the initialConfig will be set to the userConfig passed in, so that calling a reset will reset the properties to the passed values. + */ + this.applyConfig = function(userConfig, init) { + if (init) { + initialConfig = userConfig; + } + for (var prop in userConfig) { + this.queueProperty(prop, userConfig[prop]); + } + }; + + /** + * Refires the events for all configuration properties using their current values. + * @method refresh + */ + this.refresh = function() { + for (var prop in config) { + this.refireEvent(prop); + } + }; + + /** + * Fires the normalized list of queued property change events + * @method fireQueue + */ + this.fireQueue = function() { + this.queueInProgress = true; + for (var i=0;i<eventQueue.length;i++) { + var queueItem = eventQueue[i]; + if (queueItem) { + var key = queueItem[0]; + var value = queueItem[1]; + + var property = config[key]; + property.value = value; + + fireEvent(key,value); + } + } + + this.queueInProgress = false; + eventQueue = []; + }; + + /** + * Subscribes an external handler to the change event for any given property. + * @method subscribeToConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @param {Boolean} override Optional. If true, will override "this" within the handler to map to the scope Object passed into the method. + * @return {Boolean} True, if the subscription was successful, otherwise false. + */ + this.subscribeToConfigEvent = function(key, handler, obj, override) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + if (! YAHOO.util.Config.alreadySubscribed(property.event, handler, obj)) { + property.event.subscribe(handler, obj, override); + } + return true; + } else { + return false; + } + }; + + /** + * Unsubscribes an external handler from the change event for any given property. + * @method unsubscribeFromConfigEvent + * @param {String} key The property name + * @param {Function} handler The handler function to use subscribe to the property's event + * @param {Object} obj The Object to use for scoping the event handler (see CustomEvent documentation) + * @return {Boolean} True, if the unsubscription was successful, otherwise false. + */ + this.unsubscribeFromConfigEvent = function(key, handler, obj) { + key = key.toLowerCase(); + + var property = config[key]; + if (typeof property != 'undefined' && property.event) { + return property.event.unsubscribe(handler, obj); + } else { + return false; + } + }; + + /** + * Returns a string representation of the Config object + * @method toString + * @return {String} The Config object in string format. + */ + this.toString = function() { + var output = "Config"; + if (this.owner) { + output += " [" + this.owner.toString() + "]"; + } + return output; + }; + + /** + * Returns a string representation of the Config object's current CustomEvent queue + * @method outputEventQueue + * @return {String} The string list of CustomEvents currently queued for execution + */ + this.outputEventQueue = function() { + var output = ""; + for (var q=0;q<eventQueue.length;q++) { + var queueItem = eventQueue[q]; + if (queueItem) { + output += queueItem[0] + "=" + queueItem[1] + ", "; + } + } + return output; + }; +}; + +/** +* Checks to determine if a particular function/Object pair are already subscribed to the specified CustomEvent +* @method YAHOO.util.Config.alreadySubscribed +* @static +* @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check the subscriptions +* @param {Function} fn The function to look for in the subscribers list +* @param {Object} obj The execution scope Object for the subscription +* @return {Boolean} true, if the function/Object pair is already subscribed to the CustomEvent passed in +*/ +YAHOO.util.Config.alreadySubscribed = function(evt, fn, obj) { + for (var e=0;e<evt.subscribers.length;e++) { + var subsc = evt.subscribers[e]; + if (subsc && subsc.obj == obj && subsc.fn == fn) { + return true; + } + } + return false; +}; + +/** +* The Container family of components is designed to enable developers to create different kinds of content-containing modules on the web. Module and Overlay are the most basic containers, and they can be used directly or extended to build custom containers. Also part of the Container family are four UI controls that extend Module and Overlay: Tooltip, Panel, Dialog, and SimpleDialog. +* @module container +* @title Container +* @requires yahoo,dom,event,dragdrop,animation +*/ + +/** +* Module is a JavaScript representation of the Standard Module Format. Standard Module Format is a simple standard for markup containers where child nodes representing the header, body, and footer of the content are denoted using the CSS classes "hd", "bd", and "ft" respectively. Module is the base class for all other classes in the YUI Container package. +* @namespace YAHOO.widget +* @class Module +* @constructor +* @param {String} el The element ID representing the Module <em>OR</em> +* @param {HTMLElement} el The element representing the Module +* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. +*/ +YAHOO.widget.Module = function(el, userConfig) { + if (el) { + this.init(el, userConfig); + } else { + } +}; + +/** +* Constant representing the prefix path to use for non-secure images +* @property YAHOO.widget.Module.IMG_ROOT +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT = null; + +/** +* Constant representing the prefix path to use for securely served images +* @property YAHOO.widget.Module.IMG_ROOT_SSL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.IMG_ROOT_SSL = null; + +/** +* Constant for the default CSS class name that represents a Module +* @property YAHOO.widget.Module.CSS_MODULE +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_MODULE = "module"; + +/** +* Constant representing the module header +* @property YAHOO.widget.Module.CSS_HEADER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_HEADER = "hd"; + +/** +* Constant representing the module body +* @property YAHOO.widget.Module.CSS_BODY +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_BODY = "bd"; + +/** +* Constant representing the module footer +* @property YAHOO.widget.Module.CSS_FOOTER +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.CSS_FOOTER = "ft"; + +/** +* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size +* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL +* @static +* @final +* @type String +*/ +YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;"; + +/** +* Singleton CustomEvent fired when the font size is changed in the browser. +* Opera's "zoom" functionality currently does not support text size detection. +* @event YAHOO.widget.Module.textResizeEvent +*/ +YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize"); + +YAHOO.widget.Module.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.Module, + + /** + * The main module element that contains the header, body, and footer + * @property element + * @type HTMLElement + */ + element : null, + + /** + * The header element, denoted with CSS class "hd" + * @property header + * @type HTMLElement + */ + header : null, + + /** + * The body element, denoted with CSS class "bd" + * @property body + * @type HTMLElement + */ + body : null, + + /** + * The footer element, denoted with CSS class "ft" + * @property footer + * @type HTMLElement + */ + footer : null, + + /** + * The id of the element + * @property id + * @type String + */ + id : null, + + /** + * The String representing the image root + * @property imageRoot + * @type String + */ + imageRoot : YAHOO.widget.Module.IMG_ROOT, + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + * @method initEvents + */ + initEvents : function() { + + /** + * CustomEvent fired prior to class initalization. + * @event beforeInitEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit"); + + /** + * CustomEvent fired after class initalization. + * @event initEvent + * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module) + */ + this.initEvent = new YAHOO.util.CustomEvent("init"); + + /** + * CustomEvent fired when the Module is appended to the DOM + * @event appendEvent + */ + this.appendEvent = new YAHOO.util.CustomEvent("append"); + + /** + * CustomEvent fired before the Module is rendered + * @event beforeRenderEvent + */ + this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender"); + + /** + * CustomEvent fired after the Module is rendered + * @event renderEvent + */ + this.renderEvent = new YAHOO.util.CustomEvent("render"); + + /** + * CustomEvent fired when the header content of the Module is modified + * @event changeHeaderEvent + * @param {String/HTMLElement} content String/element representing the new header content + */ + this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader"); + + /** + * CustomEvent fired when the body content of the Module is modified + * @event changeBodyEvent + * @param {String/HTMLElement} content String/element representing the new body content + */ + this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody"); + + /** + * CustomEvent fired when the footer content of the Module is modified + * @event changeFooterEvent + * @param {String/HTMLElement} content String/element representing the new footer content + */ + this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter"); + + /** + * CustomEvent fired when the content of the Module is modified + * @event changeContentEvent + */ + this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent"); + + /** + * CustomEvent fired when the Module is destroyed + * @event destroyEvent + */ + this.destroyEvent = new YAHOO.util.CustomEvent("destroy"); + + /** + * CustomEvent fired before the Module is shown + * @event beforeShowEvent + */ + this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow"); + + /** + * CustomEvent fired after the Module is shown + * @event showEvent + */ + this.showEvent = new YAHOO.util.CustomEvent("show"); + + /** + * CustomEvent fired before the Module is hidden + * @event beforeHideEvent + */ + this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide"); + + /** + * CustomEvent fired after the Module is hidden + * @event hideEvent + */ + this.hideEvent = new YAHOO.util.CustomEvent("hide"); + }, + + /** + * String representing the current user-agent platform + * @property platform + * @type String + */ + platform : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) { + return "windows"; + } else if (ua.indexOf("macintosh") != -1) { + return "mac"; + } else { + return false; + } + }(), + + /** + * String representing the current user-agent browser + * @property browser + * @type String + */ + browser : function() { + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof) + return 'opera'; + } else if (ua.indexOf('msie 7')!=-1) { // IE7 + return 'ie7'; + } else if (ua.indexOf('msie') !=-1) { // IE + return 'ie'; + } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko") + return 'safari'; + } else if (ua.indexOf('gecko') != -1) { // Gecko + return 'gecko'; + } else { + return false; + } + }(), + + /** + * Boolean representing whether or not the current browsing context is secure (https) + * @property isSecure + * @type Boolean + */ + isSecure : function() { + if (window.location.href.toLowerCase().indexOf("https") === 0) { + return true; + } else { + return false; + } + }(), + + /** + * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class. + */ + initDefaultConfig : function() { + // Add properties // + + /** + * Specifies whether the Module is visible on the page. + * @config visible + * @type Boolean + * @default true + */ + this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } ); + + /** + * Object or array of objects representing the ContainerEffect classes that are active for animating the container. + * @config effect + * @type Object + * @default null + */ + this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } ); + + /** + * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document + * @config monitorresize + * @type Boolean + * @default true + */ + this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } ); + }, + + /** + * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. + * @method init + * @param {String} el The element ID representing the Module <em>OR</em> + * @param {HTMLElement} el The element representing the Module + * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details. + */ + init : function(el, userConfig) { + + this.initEvents(); + + this.beforeInitEvent.fire(YAHOO.widget.Module); + + /** + * The Module's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + if (this.isSecure) { + this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL; + } + + if (typeof el == "string") { + var elId = el; + + el = document.getElementById(el); + if (! el) { + el = document.createElement("div"); + el.id = elId; + } + } + + this.element = el; + + if (el.id) { + this.id = el.id; + } + + var childNodes = this.element.childNodes; + + if (childNodes) { + for (var i=0;i<childNodes.length;i++) { + var child = childNodes[i]; + switch (child.className) { + case YAHOO.widget.Module.CSS_HEADER: + this.header = child; + break; + case YAHOO.widget.Module.CSS_BODY: + this.body = child; + break; + case YAHOO.widget.Module.CSS_FOOTER: + this.footer = child; + break; + } + } + } + + this.initDefaultConfig(); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Module.CSS_MODULE); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + // Subscribe to the fireQueue() method of Config so that any queued configuration changes are + // excecuted upon render of the Module + if (! YAHOO.util.Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) { + this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true); + } + + this.initEvent.fire(YAHOO.widget.Module); + }, + + /** + * Initialized an empty IFRAME that is placed out of the visible area that can be used to detect text resize. + * @method initResizeMonitor + */ + initResizeMonitor : function() { + + if(this.browser != "opera") { + + var resizeMonitor = document.getElementById("_yuiResizeMonitor"); + + if (! resizeMonitor) { + + resizeMonitor = document.createElement("iframe"); + + var bIE = (this.browser.indexOf("ie") === 0); + + if(this.isSecure && YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL && bIE) { + resizeMonitor.src = YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL; + } + + resizeMonitor.id = "_yuiResizeMonitor"; + resizeMonitor.style.visibility = "hidden"; + + document.body.appendChild(resizeMonitor); + + resizeMonitor.style.width = "10em"; + resizeMonitor.style.height = "10em"; + resizeMonitor.style.position = "absolute"; + + var nLeft = -1 * resizeMonitor.offsetWidth; + var nTop = -1 * resizeMonitor.offsetHeight; + + resizeMonitor.style.top = nTop + "px"; + resizeMonitor.style.left = nLeft + "px"; + resizeMonitor.style.borderStyle = "none"; + resizeMonitor.style.borderWidth = "0"; + YAHOO.util.Dom.setStyle(resizeMonitor, "opacity", "0"); + + resizeMonitor.style.visibility = "visible"; + + if(!bIE) { + + var doc = resizeMonitor.contentWindow.document; + + doc.open(); + doc.close(); + + } + } + + var fireTextResize = function() { + YAHOO.widget.Module.textResizeEvent.fire(); + }; + + if(resizeMonitor && resizeMonitor.contentWindow) { + this.resizeMonitor = resizeMonitor; + + YAHOO.widget.Module.textResizeEvent.subscribe(this.onDomResize, this, true); + + if (! YAHOO.widget.Module.textResizeInitialized) { + if (! YAHOO.util.Event.addListener(this.resizeMonitor.contentWindow, "resize", fireTextResize)) { + // This will fail in IE if document.domain has changed, so we must change the listener to + // use the resizeMonitor element instead + YAHOO.util.Event.addListener(this.resizeMonitor, "resize", fireTextResize); + } + YAHOO.widget.Module.textResizeInitialized = true; + } + } + + } + + }, + + /** + * Event handler fired when the resize monitor element is resized. + * @method onDomResize + * @param {DOMEvent} e The DOM resize event + * @param {Object} obj The scope object passed to the handler + */ + onDomResize : function(e, obj) { + + var nLeft = -1 * this.resizeMonitor.offsetWidth, + nTop = -1 * this.resizeMonitor.offsetHeight; + + this.resizeMonitor.style.top = nTop + "px"; + this.resizeMonitor.style.left = nLeft + "px"; + + }, + + /** + * Sets the Module's header content to the HTML specified, or appends the passed element to the header. If no header is present, one will be automatically created. + * @method setHeader + * @param {String} headerContent The HTML used to set the header <em>OR</em> + * @param {HTMLElement} headerContent The HTMLElement to append to the header + */ + setHeader : function(headerContent) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + if (typeof headerContent == "string") { + this.header.innerHTML = headerContent; + } else { + this.header.innerHTML = ""; + this.header.appendChild(headerContent); + } + + this.changeHeaderEvent.fire(headerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the header. If no header is present, one will be automatically created. + * @method appendToHeader + * @param {HTMLElement} element The element to append to the header + */ + appendToHeader : function(element) { + if (! this.header) { + this.header = document.createElement("div"); + this.header.className = YAHOO.widget.Module.CSS_HEADER; + } + + this.header.appendChild(element); + this.changeHeaderEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created. + * @method setBody + * @param {String} bodyContent The HTML used to set the body <em>OR</em> + * @param {HTMLElement} bodyContent The HTMLElement to append to the body + */ + setBody : function(bodyContent) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + if (typeof bodyContent == "string") + { + this.body.innerHTML = bodyContent; + } else { + this.body.innerHTML = ""; + this.body.appendChild(bodyContent); + } + + this.changeBodyEvent.fire(bodyContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the body. If no body is present, one will be automatically created. + * @method appendToBody + * @param {HTMLElement} element The element to append to the body + */ + appendToBody : function(element) { + if (! this.body) { + this.body = document.createElement("div"); + this.body.className = YAHOO.widget.Module.CSS_BODY; + } + + this.body.appendChild(element); + this.changeBodyEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method setFooter + * @param {String} footerContent The HTML used to set the footer <em>OR</em> + * @param {HTMLElement} footerContent The HTMLElement to append to the footer + */ + setFooter : function(footerContent) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + if (typeof footerContent == "string") { + this.footer.innerHTML = footerContent; + } else { + this.footer.innerHTML = ""; + this.footer.appendChild(footerContent); + } + + this.changeFooterEvent.fire(footerContent); + this.changeContentEvent.fire(); + }, + + /** + * Appends the passed element to the footer. If no footer is present, one will be automatically created. + * @method appendToFooter + * @param {HTMLElement} element The element to append to the footer + */ + appendToFooter : function(element) { + if (! this.footer) { + this.footer = document.createElement("div"); + this.footer.className = YAHOO.widget.Module.CSS_FOOTER; + } + + this.footer.appendChild(element); + this.changeFooterEvent.fire(element); + this.changeContentEvent.fire(); + }, + + /** + * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure. + * @method render + * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering <em>OR</em> + * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering + * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container. + * @return {Boolean} Success or failure of the render + */ + render : function(appendToNode, moduleElement) { + this.beforeRenderEvent.fire(); + + if (! moduleElement) { + moduleElement = this.element; + } + + var me = this; + var appendTo = function(element) { + if (typeof element == "string") { + element = document.getElementById(element); + } + + if (element) { + element.appendChild(me.element); + me.appendEvent.fire(); + } + }; + + if (appendToNode) { + appendTo(appendToNode); + } else { // No node was passed in. If the element is not pre-marked up, this fails + if (! YAHOO.util.Dom.inDocument(this.element)) { + return false; + } + } + + // Need to get everything into the DOM if it isn't already + + if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) { + // There is a header, but it's not in the DOM yet... need to add it + var firstChild = moduleElement.firstChild; + if (firstChild) { // Insert before first child if exists + moduleElement.insertBefore(this.header, firstChild); + } else { // Append to empty body because there are no children + moduleElement.appendChild(this.header); + } + } + + if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) { + // There is a body, but it's not in the DOM yet... need to add it + if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM + moduleElement.insertBefore(this.body, this.footer); + } else { // Append to element because there is no footer + moduleElement.appendChild(this.body); + } + } + + if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) { + // There is a footer, but it's not in the DOM yet... need to add it + moduleElement.appendChild(this.footer); + } + + this.renderEvent.fire(); + return true; + }, + + /** + * Removes the Module element from the DOM and sets all child elements to null. + * @method destroy + */ + destroy : function() { + var parent; + + if (this.element) { + YAHOO.util.Event.purgeElement(this.element, true); + parent = this.element.parentNode; + } + if (parent) { + parent.removeChild(this.element); + } + + this.element = null; + this.header = null; + this.body = null; + this.footer = null; + + for (var e in this) { + if (e instanceof YAHOO.util.CustomEvent) { + e.unsubscribeAll(); + } + } + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this); + + this.destroyEvent.fire(); + }, + + /** + * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after. + * @method show + */ + show : function() { + this.cfg.setProperty("visible", true); + }, + + /** + * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after. + * @method hide + */ + hide : function() { + this.cfg.setProperty("visible", false); + }, + + // BUILT-IN EVENT HANDLERS FOR MODULE // + + /** + * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none". + * This method is responsible for firing showEvent and hideEvent. + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configVisible + */ + configVisible : function(type, args, obj) { + var visible = args[0]; + if (visible) { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } else { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + }, + + /** + * Default event handler for the "monitorresize" configuration property + * @param {String} type The CustomEvent type (usually the property name) + * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. + * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. + * @method configMonitorResize + */ + configMonitorResize : function(type, args, obj) { + var monitor = args[0]; + if (monitor) { + this.initResizeMonitor(); + } else { + YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true); + this.resizeMonitor = null; + } + } +}; + +/** +* Returns a String representation of the Object. +* @method toString +* @return {String} The string representation of the Module +*/ +YAHOO.widget.Module.prototype.toString = function() { + return "Module " + this.id; +}; + +/** +* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements. +* @namespace YAHOO.widget +* @class Overlay +* @extends YAHOO.widget.Module +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details. +* @constructor +*/ +YAHOO.widget.Overlay = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig); +}; + +YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module); + +/** +* The URL that will be placed in the iframe +* @property YAHOO.widget.Overlay.IFRAME_SRC +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;"; + +/** +* Constant representing the top left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_LEFT = "tl"; + +/** +* Constant representing the top right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.TOP_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.TOP_RIGHT = "tr"; + +/** +* Constant representing the top bottom left corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_LEFT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_LEFT = "bl"; + +/** +* Constant representing the bottom right corner of an element, used for configuring the context element alignment +* @property YAHOO.widget.Overlay.BOTTOM_RIGHT +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.BOTTOM_RIGHT = "br"; + +/** +* Constant representing the default CSS class used for an Overlay +* @property YAHOO.widget.Overlay.CSS_OVERLAY +* @static +* @final +* @type String +*/ +YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay"; + +/** +* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present. +* @method init +* @param {String} el The element ID representing the Overlay <em>OR</em> +* @param {HTMLElement} el The element representing the Overlay +* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details. +*/ +YAHOO.widget.Overlay.prototype.init = function(el, userConfig) { + YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level + + this.beforeInitEvent.fire(YAHOO.widget.Overlay); + + YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + + if (this.platform == "mac" && this.browser == "gecko") { + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) { + this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) { + this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true); + } + } + + this.initEvent.fire(YAHOO.widget.Overlay); + +}; + +/** +* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class. +* @method initEvents +*/ +YAHOO.widget.Overlay.prototype.initEvents = function() { + YAHOO.widget.Overlay.superclass.initEvents.call(this); + + /** + * CustomEvent fired before the Overlay is moved. + * @event beforeMoveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this); + + /** + * CustomEvent fired after the Overlay is moved. + * @event moveEvent + * @param {Number} x x coordinate + * @param {Number} y y coordinate + */ + this.moveEvent = new YAHOO.util.CustomEvent("move", this); +}; + +/** +* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg). +* @method initDefaultConfig +*/ +YAHOO.widget.Overlay.prototype.initDefaultConfig = function() { + YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this); + + // Add overlay config properties // + + /** + * The absolute x-coordinate position of the Overlay + * @config x + * @type Number + * @default null + */ + this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The absolute y-coordinate position of the Overlay + * @config y + * @type Number + * @default null + */ + this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * An array with the absolute x and y positions of the Overlay + * @config xy + * @type Number[] + * @default null + */ + this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner. + * @config context + * @type Array + * @default null + */ + this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * True if the Overlay should be anchored to the center of the viewport. + * @config fixedcenter + * @type Boolean + * @default false + */ + this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } ); + + /** + * CSS width of the Overlay. + * @config width + * @type String + * @default null + */ + this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS height of the Overlay. + * @config height + * @type String + * @default null + */ + this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } ); + + /** + * CSS z-index of the Overlay. + * @config zIndex + * @type Number + * @default null + */ + this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } ); + + /** + * True if the Overlay should be prevented from being positioned out of the viewport. + * @config constraintoviewport + * @type Boolean + * @default false + */ + this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } ); + + /** + * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below). + * @config iframe + * @type Boolean + * @default true for IE6 and below, false for all others + */ + this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } ); +}; + +/** +* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]); +* @method moveTo +* @param {Number} x The Overlay's new x position +* @param {Number} y The Overlay's new y position +*/ +YAHOO.widget.Overlay.prototype.moveTo = function(x, y) { + this.cfg.setProperty("xy",[x,y]); +}; + +/** +* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method hideMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "show-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "hide-scrollbars"); +}; + +/** +* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where +* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435 +* @method showMacGeckoScrollbars +*/ +YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() { + YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars"); + YAHOO.util.Dom.addClass(this.element, "show-scrollbars"); +}; + +// BEGIN BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent. +* @method configVisible +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) { + var visible = args[0]; + var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility"); + + if (currentVis == "inherit") { + var e = this.element.parentNode; + while (e.nodeType != 9 && e.nodeType != 11) { + currentVis = YAHOO.util.Dom.getStyle(e, "visibility"); + if (currentVis != "inherit") { break; } + e = e.parentNode; + } + if (currentVis == "inherit") { + currentVis = "visible"; + } + } + + var effect = this.cfg.getProperty("effect"); + + var effectInstances = []; + if (effect) { + if (effect instanceof Array) { + for (var i=0;i<effect.length;i++) { + var eff = effect[i]; + effectInstances[effectInstances.length] = eff.effect(this, eff.duration); + } + } else { + effectInstances[effectInstances.length] = effect.effect(this, effect.duration); + } + } + + var isMacGecko = (this.platform == "mac" && this.browser == "gecko"); + + if (visible) { // Show + if (isMacGecko) { + this.showMacGeckoScrollbars(); + } + + if (effect) { // Animate in + if (visible) { // Animate in if not showing + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + for (var j=0;j<effectInstances.length;j++) { + var ei = effectInstances[j]; + if (j === 0 && ! YAHOO.util.Config.alreadySubscribed(ei.animateInCompleteEvent,this.showEvent.fire,this.showEvent)) { + ei.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true); // Delegate showEvent until end of animateInComplete + } + ei.animateIn(); + } + } + } + } else { // Show + if (currentVis != "visible" || currentVis === "") { + this.beforeShowEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "visible"); + this.cfg.refireEvent("iframe"); + this.showEvent.fire(); + } + } + + } else { // Hide + if (isMacGecko) { + this.hideMacGeckoScrollbars(); + } + + if (effect) { // Animate out if showing + if (currentVis == "visible") { + this.beforeHideEvent.fire(); + for (var k=0;k<effectInstances.length;k++) { + var h = effectInstances[k]; + if (k === 0 && ! YAHOO.util.Config.alreadySubscribed(h.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)) { + h.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true); // Delegate hideEvent until end of animateOutComplete + } + h.animateOut(); + } + } else if (currentVis === "") { + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + } + } else { // Simple hide + if (currentVis == "visible" || currentVis === "") { + this.beforeHideEvent.fire(); + YAHOO.util.Dom.setStyle(this.element, "visibility", "hidden"); + this.cfg.refireEvent("iframe"); + this.hideEvent.fire(); + } + } + } +}; + +/** +* Center event handler used for centering on scroll/resize, but only if the Overlay is visible +* @method doCenterOnDOMEvent +*/ +YAHOO.widget.Overlay.prototype.doCenterOnDOMEvent = function() { + if (this.cfg.getProperty("visible")) { + this.center(); + } +}; + +/** +* The default event handler fired when the "fixedcenter" property is changed. +* @method configFixedCenter +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configFixedCenter = function(type, args, obj) { + var val = args[0]; + + if (val) { + this.center(); + + if (! YAHOO.util.Config.alreadySubscribed(this.beforeShowEvent, this.center, this)) { + this.beforeShowEvent.subscribe(this.center, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowResizeEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true); + } + + if (! YAHOO.util.Config.alreadySubscribed(YAHOO.widget.Overlay.windowScrollEvent, this.doCenterOnDOMEvent, this)) { + YAHOO.widget.Overlay.windowScrollEvent.subscribe( this.doCenterOnDOMEvent, this, true); + } + } else { + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + } +}; + +/** +* The default event handler fired when the "height" property is changed. +* @method configHeight +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configHeight = function(type, args, obj) { + var height = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "height", height); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "width" property is changed. +* @method configWidth +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configWidth = function(type, args, obj) { + var width = args[0]; + var el = this.element; + YAHOO.util.Dom.setStyle(el, "width", width); + this.cfg.refireEvent("iframe"); +}; + +/** +* The default event handler fired when the "zIndex" property is changed. +* @method configzIndex +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configzIndex = function(type, args, obj) { + var zIndex = args[0]; + + var el = this.element; + + if (! zIndex) { + zIndex = YAHOO.util.Dom.getStyle(el, "zIndex"); + if (! zIndex || isNaN(zIndex)) { + zIndex = 0; + } + } + + if (this.iframe) { + if (zIndex <= 0) { + zIndex = 1; + } + YAHOO.util.Dom.setStyle(this.iframe, "zIndex", (zIndex-1)); + } + + YAHOO.util.Dom.setStyle(el, "zIndex", zIndex); + this.cfg.setProperty("zIndex", zIndex, true); +}; + +/** +* The default event handler fired when the "xy" property is changed. +* @method configXY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configXY = function(type, args, obj) { + var pos = args[0]; + var x = pos[0]; + var y = pos[1]; + + this.cfg.setProperty("x", x); + this.cfg.setProperty("y", y); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x,y]); +}; + +/** +* The default event handler fired when the "x" property is changed. +* @method configX +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configX = function(type, args, obj) { + var x = args[0]; + var y = this.cfg.getProperty("y"); + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setX(this.element, x, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* The default event handler fired when the "y" property is changed. +* @method configY +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configY = function(type, args, obj) { + var x = this.cfg.getProperty("x"); + var y = args[0]; + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + + this.beforeMoveEvent.fire([x,y]); + + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + + YAHOO.util.Dom.setY(this.element, y, true); + + this.cfg.setProperty("xy", [x, y], true); + + this.cfg.refireEvent("iframe"); + this.moveEvent.fire([x, y]); +}; + +/** +* Shows the iframe shim, if it has been enabled +* @method showIframe +*/ +YAHOO.widget.Overlay.prototype.showIframe = function() { + if (this.iframe) { + this.iframe.style.display = "block"; + } +}; + +/** +* Hides the iframe shim, if it has been enabled +* @method hideIframe +*/ +YAHOO.widget.Overlay.prototype.hideIframe = function() { + if (this.iframe) { + this.iframe.style.display = "none"; + } +}; + +/** +* The default event handler fired when the "iframe" property is changed. +* @method configIframe +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configIframe = function(type, args, obj) { + + var val = args[0]; + + if (val) { // IFRAME shim is enabled + + if (! YAHOO.util.Config.alreadySubscribed(this.showEvent, this.showIframe, this)) { + this.showEvent.subscribe(this.showIframe, this, true); + } + if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent, this.hideIframe, this)) { + this.hideEvent.subscribe(this.hideIframe, this, true); + } + + var x = this.cfg.getProperty("x"); + var y = this.cfg.getProperty("y"); + + if (! x || ! y) { + this.syncPosition(); + x = this.cfg.getProperty("x"); + y = this.cfg.getProperty("y"); + } + + + if (! isNaN(x) && ! isNaN(y)) { + if (! this.iframe) { + this.iframe = document.createElement("iframe"); + if (this.isSecure) { + this.iframe.src = YAHOO.widget.Overlay.IFRAME_SRC; + } + + var parent = this.element.parentNode; + if (parent) { + parent.appendChild(this.iframe); + } else { + document.body.appendChild(this.iframe); + } + + YAHOO.util.Dom.setStyle(this.iframe, "position", "absolute"); + YAHOO.util.Dom.setStyle(this.iframe, "border", "none"); + YAHOO.util.Dom.setStyle(this.iframe, "margin", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "padding", "0"); + YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0"); + if (this.cfg.getProperty("visible")) { + this.showIframe(); + } else { + this.hideIframe(); + } + } + + var iframeDisplay = YAHOO.util.Dom.getStyle(this.iframe, "display"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "block"; + } + + YAHOO.util.Dom.setXY(this.iframe, [x,y]); + + var width = this.element.clientWidth; + var height = this.element.clientHeight; + + YAHOO.util.Dom.setStyle(this.iframe, "width", (width+2) + "px"); + YAHOO.util.Dom.setStyle(this.iframe, "height", (height+2) + "px"); + + if (iframeDisplay == "none") { + this.iframe.style.display = "none"; + } + } + } else { + if (this.iframe) { + this.iframe.style.display = "none"; + } + this.showEvent.unsubscribe(this.showIframe, this); + this.hideEvent.unsubscribe(this.hideIframe, this); + } +}; + + +/** +* The default event handler fired when the "constraintoviewport" property is changed. +* @method configConstrainToViewport +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configConstrainToViewport = function(type, args, obj) { + var val = args[0]; + if (val) { + if (! YAHOO.util.Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) { + this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true); + } + } else { + this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this); + } +}; + +/** +* The default event handler fired when the "context" property is changed. +* @method configContext +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.configContext = function(type, args, obj) { + var contextArgs = args[0]; + + if (contextArgs) { + var contextEl = contextArgs[0]; + var elementMagnetCorner = contextArgs[1]; + var contextMagnetCorner = contextArgs[2]; + + if (contextEl) { + if (typeof contextEl == "string") { + this.cfg.setProperty("context", [document.getElementById(contextEl),elementMagnetCorner,contextMagnetCorner], true); + } + + if (elementMagnetCorner && contextMagnetCorner) { + this.align(elementMagnetCorner, contextMagnetCorner); + } + } + } +}; + + +// END BUILT-IN PROPERTY EVENT HANDLERS // + +/** +* Aligns the Overlay to its context element using the specified corner points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, and BOTTOM_RIGHT. +* @method align +* @param {String} elementAlign The String representing the corner of the Overlay that should be aligned to the context element +* @param {String} contextAlign The corner of the context element that the elementAlign corner should stick to. +*/ +YAHOO.widget.Overlay.prototype.align = function(elementAlign, contextAlign) { + var contextArgs = this.cfg.getProperty("context"); + if (contextArgs) { + var context = contextArgs[0]; + + var element = this.element; + var me = this; + + if (! elementAlign) { + elementAlign = contextArgs[1]; + } + + if (! contextAlign) { + contextAlign = contextArgs[2]; + } + + if (element && context) { + var contextRegion = YAHOO.util.Dom.getRegion(context); + + var doAlign = function(v,h) { + switch (elementAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + me.moveTo(h,v); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + me.moveTo(h-element.offsetWidth,v); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + me.moveTo(h,v-element.offsetHeight); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + me.moveTo(h-element.offsetWidth,v-element.offsetHeight); + break; + } + }; + + switch (contextAlign) { + case YAHOO.widget.Overlay.TOP_LEFT: + doAlign(contextRegion.top, contextRegion.left); + break; + case YAHOO.widget.Overlay.TOP_RIGHT: + doAlign(contextRegion.top, contextRegion.right); + break; + case YAHOO.widget.Overlay.BOTTOM_LEFT: + doAlign(contextRegion.bottom, contextRegion.left); + break; + case YAHOO.widget.Overlay.BOTTOM_RIGHT: + doAlign(contextRegion.bottom, contextRegion.right); + break; + } + } + } +}; + +/** +* The default event handler executed when the moveEvent is fired, if the "constraintoviewport" is set to true. +* @method enforceConstraints +* @param {String} type The CustomEvent type (usually the property name) +* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property. +* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner. +*/ +YAHOO.widget.Overlay.prototype.enforceConstraints = function(type, args, obj) { + var pos = args[0]; + + var x = pos[0]; + var y = pos[1]; + + var offsetHeight = this.element.offsetHeight; + var offsetWidth = this.element.offsetWidth; + + var viewPortWidth = YAHOO.util.Dom.getViewportWidth(); + var viewPortHeight = YAHOO.util.Dom.getViewportHeight(); + + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + if (x < leftConstraint) { + x = leftConstraint; + } else if (x > rightConstraint) { + x = rightConstraint; + } + + if (y < topConstraint) { + y = topConstraint; + } else if (y > bottomConstraint) { + y = bottomConstraint; + } + + this.cfg.setProperty("x", x, true); + this.cfg.setProperty("y", y, true); + this.cfg.setProperty("xy", [x,y], true); +}; + +/** +* Centers the container in the viewport. +* @method center +*/ +YAHOO.widget.Overlay.prototype.center = function() { + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + + var viewPortWidth = YAHOO.util.Dom.getClientWidth(); + var viewPortHeight = YAHOO.util.Dom.getClientHeight(); + + var elementWidth = this.element.offsetWidth; + var elementHeight = this.element.offsetHeight; + + var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX; + var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY; + + this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]); + + this.cfg.refireEvent("iframe"); +}; + +/** +* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop. +* @method syncPosition +*/ +YAHOO.widget.Overlay.prototype.syncPosition = function() { + var pos = YAHOO.util.Dom.getXY(this.element); + this.cfg.setProperty("x", pos[0], true); + this.cfg.setProperty("y", pos[1], true); + this.cfg.setProperty("xy", pos, true); +}; + +/** +* Event handler fired when the resize monitor element is resized. +* @method onDomResize +* @param {DOMEvent} e The resize DOM event +* @param {Object} obj The scope object +*/ +YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) { + YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj); + var me = this; + setTimeout(function() { + me.syncPosition(); + me.cfg.refireEvent("iframe"); + me.cfg.refireEvent("context"); + }, 0); +}; + +/** +* Removes the Overlay element from the DOM and sets all child elements to null. +* @method destroy +*/ +YAHOO.widget.Overlay.prototype.destroy = function() { + if (this.iframe) { + this.iframe.parentNode.removeChild(this.iframe); + } + + this.iframe = null; + + YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this); + YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this); + + YAHOO.widget.Overlay.superclass.destroy.call(this); +}; + +/** +* Returns a String representation of the object. +* @method toString +* @return {String} The string representation of the Overlay. +*/ +YAHOO.widget.Overlay.prototype.toString = function() { + return "Overlay " + this.id; +}; + +/** +* A singleton CustomEvent used for reacting to the DOM event for window scroll +* @event YAHOO.widget.Overlay.windowScrollEvent +*/ +YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll"); + +/** +* A singleton CustomEvent used for reacting to the DOM event for window resize +* @event YAHOO.widget.Overlay.windowResizeEvent +*/ +YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize"); + +/** +* The DOM event handler used to fire the CustomEvent for window scroll +* @method YAHOO.widget.Overlay.windowScrollHandler +* @static +* @param {DOMEvent} e The DOM scroll event +*/ +YAHOO.widget.Overlay.windowScrollHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.scrollEnd) { + window.scrollEnd = -1; + } + clearTimeout(window.scrollEnd); + window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1); + } else { + YAHOO.widget.Overlay.windowScrollEvent.fire(); + } +}; + +/** +* The DOM event handler used to fire the CustomEvent for window resize +* @method YAHOO.widget.Overlay.windowResizeHandler +* @static +* @param {DOMEvent} e The DOM resize event +*/ +YAHOO.widget.Overlay.windowResizeHandler = function(e) { + if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") { + if (! window.resizeEnd) { + window.resizeEnd = -1; + } + clearTimeout(window.resizeEnd); + window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100); + } else { + YAHOO.widget.Overlay.windowResizeEvent.fire(); + } +}; + +/** +* A boolean that indicated whether the window resize and scroll events have already been subscribed to. +* @property YAHOO.widget.Overlay._initialized +* @private +* @type Boolean +*/ +YAHOO.widget.Overlay._initialized = null; + +if (YAHOO.widget.Overlay._initialized === null) { + YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler); + YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler); + + YAHOO.widget.Overlay._initialized = true; +} + +/** +* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget +* @namespace YAHOO.widget +* @class OverlayManager +* @constructor +* @param {Array} overlays Optional. A collection of Overlays to register with the manager. +* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager +*/ +YAHOO.widget.OverlayManager = function(userConfig) { + this.init(userConfig); +}; + +/** +* The CSS class representing a focused Overlay +* @property YAHOO.widget.OverlayManager.CSS_FOCUSED +* @static +* @final +* @type String +*/ +YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused"; + +YAHOO.widget.OverlayManager.prototype = { + /** + * The class's constructor function + * @property contructor + * @type Function + */ + constructor : YAHOO.widget.OverlayManager, + + /** + * The array of Overlays that are currently registered + * @property overlays + * @type YAHOO.widget.Overlay[] + */ + overlays : null, + + /** + * Initializes the default configuration of the OverlayManager + * @method initDefaultConfig + */ + initDefaultConfig : function() { + /** + * The collection of registered Overlays in use by the OverlayManager + * @config overlays + * @type YAHOO.widget.Overlay[] + * @default null + */ + this.cfg.addProperty("overlays", { suppressEvent:true } ); + + /** + * The default DOM event that should be used to focus an Overlay + * @config focusevent + * @type String + * @default "mousedown" + */ + this.cfg.addProperty("focusevent", { value:"mousedown" } ); + }, + + /** + * Initializes the OverlayManager + * @method init + * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager. + * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager + */ + init : function(userConfig) { + /** + * The OverlayManager's Config object used for monitoring configuration properties. + * @property cfg + * @type YAHOO.util.Config + */ + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + if (userConfig) { + this.cfg.applyConfig(userConfig, true); + } + this.cfg.fireQueue(); + + /** + * The currently activated Overlay + * @property activeOverlay + * @private + * @type YAHOO.widget.Overlay + */ + var activeOverlay = null; + + /** + * Returns the currently focused Overlay + * @method getActive + * @return {YAHOO.widget.Overlay} The currently focused Overlay + */ + this.getActive = function() { + return activeOverlay; + }; + + /** + * Focuses the specified Overlay + * @method focus + * @param {YAHOO.widget.Overlay} overlay The Overlay to focus + * @param {String} overlay The id of the Overlay to focus + */ + this.focus = function(overlay) { + var o = this.find(overlay); + if (o) { + this.blurAll(); + activeOverlay = o; + YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + this.overlays.sort(this.compareZIndexDesc); + var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex"); + if (! isNaN(topZIndex) && this.overlays[0] != overlay) { + activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2)); + } + this.overlays.sort(this.compareZIndexDesc); + } + }; + + /** + * Removes the specified Overlay from the manager + * @method remove + * @param {YAHOO.widget.Overlay} overlay The Overlay to remove + * @param {String} overlay The id of the Overlay to remove + */ + this.remove = function(overlay) { + var o = this.find(overlay); + if (o) { + var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex"); + o.cfg.setProperty("zIndex", -1000, true); + this.overlays.sort(this.compareZIndexDesc); + this.overlays = this.overlays.slice(0, this.overlays.length-1); + o.cfg.setProperty("zIndex", originalZ, true); + + o.cfg.setProperty("manager", null); + o.focusEvent = null; + o.blurEvent = null; + o.focus = null; + o.blur = null; + } + }; + + /** + * Removes focus from all registered Overlays in the manager + * @method blurAll + */ + this.blurAll = function() { + activeOverlay = null; + for (var o=0;o<this.overlays.length;o++) { + YAHOO.util.Dom.removeClass(this.overlays[o].element, YAHOO.widget.OverlayManager.CSS_FOCUSED); + } + }; + + var overlays = this.cfg.getProperty("overlays"); + + if (! this.overlays) { + this.overlays = []; + } + + if (overlays) { + this.register(overlays); + this.overlays.sort(this.compareZIndexDesc); + } + }, + + /** + * Registers an Overlay or an array of Overlays with the manager. Upon registration, the Overlay receives functions for focus and blur, along with CustomEvents for each. + * @method register + * @param {YAHOO.widget.Overlay} overlay An Overlay to register with the manager. + * @param {YAHOO.widget.Overlay[]} overlay An array of Overlays to register with the manager. + * @return {Boolean} True if any Overlays are registered. + */ + register : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + overlay.cfg.addProperty("manager", { value:this } ); + + overlay.focusEvent = new YAHOO.util.CustomEvent("focus"); + overlay.blurEvent = new YAHOO.util.CustomEvent("blur"); + + var mgr=this; + + overlay.focus = function() { + mgr.focus(this); + this.focusEvent.fire(); + }; + + overlay.blur = function() { + mgr.blurAll(); + this.blurEvent.fire(); + }; + + var focusOnDomEvent = function(e,obj) { + overlay.focus(); + }; + + var focusevent = this.cfg.getProperty("focusevent"); + YAHOO.util.Event.addListener(overlay.element,focusevent,focusOnDomEvent,this,true); + + var zIndex = YAHOO.util.Dom.getStyle(overlay.element, "zIndex"); + if (! isNaN(zIndex)) { + overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10)); + } else { + overlay.cfg.setProperty("zIndex", 0); + } + + this.overlays.push(overlay); + return true; + } else if (overlay instanceof Array) { + var regcount = 0; + for (var i=0;i<overlay.length;i++) { + if (this.register(overlay[i])) { + regcount++; + } + } + if (regcount > 0) { + return true; + } + } else { + return false; + } + }, + + /** + * Attempts to locate an Overlay by instance or ID. + * @method find + * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager + * @param {String} overlay An Overlay id to locate within the manager + * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located. + */ + find : function(overlay) { + if (overlay instanceof YAHOO.widget.Overlay) { + for (var o=0;o<this.overlays.length;o++) { + if (this.overlays[o] == overlay) { + return this.overlays[o]; + } + } + } else if (typeof overlay == "string") { + for (var p=0;p<this.overlays.length;p++) { + if (this.overlays[p].id == overlay) { + return this.overlays[p]; + } + } + } + return null; + }, + + /** + * Used for sorting the manager's Overlays by z-index. + * @method compareZIndexDesc + * @private + * @return {Number} 0, 1, or -1, depending on where the Overlay should fall in the stacking order. + */ + compareZIndexDesc : function(o1, o2) { + var zIndex1 = o1.cfg.getProperty("zIndex"); + var zIndex2 = o2.cfg.getProperty("zIndex"); + + if (zIndex1 > zIndex2) { + return -1; + } else if (zIndex1 < zIndex2) { + return 1; + } else { + return 0; + } + }, + + /** + * Shows all Overlays in the manager. + * @method showAll + */ + showAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].show(); + } + }, + + /** + * Hides all Overlays in the manager. + * @method hideAll + */ + hideAll : function() { + for (var o=0;o<this.overlays.length;o++) { + this.overlays[o].hide(); + } + }, + + /** + * Returns a string representation of the object. + * @method toString + * @return {String} The string representation of the OverlayManager + */ + toString : function() { + return "OverlayManager"; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key event should be attached +* @param {String} attachTo The element or element ID to which the key event should be attached +* @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (! attachTo) { + } + if (! keyData) { + } + if (! handler) { + } + + if (! event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to detect. Possible attributes are shift(boolean), alt(boolean), ctrl(boolean) and keys(either an int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; + +/** +* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden. +* @namespace YAHOO.widget +* @class ContainerEffect +* @constructor +* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with +* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn). +* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element. +* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion. +*/ +YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) { + if (! animClass) { + animClass = YAHOO.util.Anim; + } + + /** + * The overlay to animate + * @property overlay + * @type YAHOO.widget.Overlay + */ + this.overlay = overlay; + /** + * The animation attributes to use when transitioning into view + * @property attrIn + * @type Object + */ + this.attrIn = attrIn; + /** + * The animation attributes to use when transitioning out of view + * @property attrOut + * @type Object + */ + this.attrOut = attrOut; + /** + * The target element to be animated + * @property targetElement + * @type HTMLElement + */ + this.targetElement = targetElement || overlay.element; + /** + * The animation class to use for animating the overlay + * @property animClass + * @type class + */ + this.animClass = animClass; +}; + +/** +* Initializes the animation classes and events. +* @method init +*/ +YAHOO.widget.ContainerEffect.prototype.init = function() { + this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn"); + this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut"); + + this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete"); + this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete"); + + this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method); + this.animIn.onStart.subscribe(this.handleStartAnimateIn, this); + this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this); + this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this); + + this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method); + this.animOut.onStart.subscribe(this.handleStartAnimateOut, this); + this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this); + this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this); +}; + +/** +* Triggers the in-animation. +* @method animateIn +*/ +YAHOO.widget.ContainerEffect.prototype.animateIn = function() { + this.beforeAnimateInEvent.fire(); + this.animIn.animate(); +}; + +/** +* Triggers the out-animation. +* @method animateOut +*/ +YAHOO.widget.ContainerEffect.prototype.animateOut = function() { + this.beforeAnimateOutEvent.fire(); + this.animOut.animate(); +}; + +/** +* The default onStart handler for the in-animation. +* @method handleStartAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { }; +/** +* The default onTween handler for the in-animation. +* @method handleTweenAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { }; +/** +* The default onComplete handler for the in-animation. +* @method handleCompleteAnimateIn +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { }; + +/** +* The default onStart handler for the out-animation. +* @method handleStartAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { }; +/** +* The default onTween handler for the out-animation. +* @method handleTweenAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { }; +/** +* The default onComplete handler for the out-animation. +* @method handleCompleteAnimateOut +* @param {String} type The CustomEvent type +* @param {Object[]} args The CustomEvent arguments +* @param {Object} obj The scope object +*/ +YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { }; + +/** +* Returns a string representation of the object. +* @method toString +* @return {String} The string representation of the ContainerEffect +*/ +YAHOO.widget.ContainerEffect.prototype.toString = function() { + var output = "ContainerEffect"; + if (this.overlay) { + output += " [" + this.overlay.toString() + "]"; + } + return output; +}; + +/** +* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out. +* @method FADE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) { + var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element ); + + fade.handleStartAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (! obj.overlay.underlay) { + obj.overlay.cfg.refireEvent("underlay"); + } + + if (obj.overlay.underlay) { + obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity"); + obj.overlay.underlay.style.filter = null; + } + + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0); + }; + + fade.handleCompleteAnimateIn = function(type,args,obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + + if (obj.overlay.underlay) { + YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity); + } + + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + fade.handleStartAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select"); + + if (obj.overlay.underlay) { + obj.overlay.underlay.style.filter = null; + } + }; + + fade.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select"); + if (obj.overlay.element.style.filter) { + obj.overlay.element.style.filter = null; + } + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1); + + obj.overlay.cfg.refireEvent("iframe"); + + obj.animateOutCompleteEvent.fire(); + }; + + fade.init(); + return fade; +}; + + +/** +* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out. +* @method SLIDE +* @static +* @param {Overlay} overlay The Overlay object to animate +* @param {Number} dur The duration of the animation +* @return {ContainerEffect} The configured ContainerEffect object +*/ +YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) { + var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element); + var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element); + + var clientWidth = YAHOO.util.Dom.getClientWidth(); + var offsetWidth = overlay.element.offsetWidth; + + var slide = new YAHOO.widget.ContainerEffect(overlay, { + attributes:{ points: { to:[x, y] } }, + duration:dur, + method:YAHOO.util.Easing.easeIn + }, + { + attributes:{ points: { to:[(clientWidth+25), y] } }, + duration:dur, + method:YAHOO.util.Easing.easeOut + }, + overlay.element, + YAHOO.util.Motion); + + + slide.handleStartAnimateIn = function(type,args,obj) { + obj.overlay.element.style.left = (-25-offsetWidth) + "px"; + obj.overlay.element.style.top = y + "px"; + }; + + slide.handleTweenAnimateIn = function(type, args, obj) { + + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var currentX = pos[0]; + var currentY = pos[1]; + + if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible"); + } + + obj.overlay.cfg.setProperty("xy", [currentX,currentY], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateIn = function(type, args, obj) { + obj.overlay.cfg.setProperty("xy", [x,y], true); + obj.startX = x; + obj.startY = y; + obj.overlay.cfg.refireEvent("iframe"); + obj.animateInCompleteEvent.fire(); + }; + + slide.handleStartAnimateOut = function(type, args, obj) { + var vw = YAHOO.util.Dom.getViewportWidth(); + + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var yso = pos[1]; + + var currentTo = obj.animOut.attributes.points.to; + obj.animOut.attributes.points.to = [(vw+25), yso]; + }; + + slide.handleTweenAnimateOut = function(type, args, obj) { + var pos = YAHOO.util.Dom.getXY(obj.overlay.element); + + var xto = pos[0]; + var yto = pos[1]; + + obj.overlay.cfg.setProperty("xy", [xto,yto], true); + obj.overlay.cfg.refireEvent("iframe"); + }; + + slide.handleCompleteAnimateOut = function(type, args, obj) { + YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden"); + + obj.overlay.cfg.setProperty("xy", [x,y]); + obj.animateOutCompleteEvent.fire(); + }; + + slide.init(); + return slide; +}; + +YAHOO.register("container_core", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/datasource/README b/interface/ispconfig/interface/js/yui/datasource/README new file mode 100644 index 0000000..e5a18c4 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datasource/README @@ -0,0 +1,5 @@ +DataSource Release Notes + +*** version 2.2.0 *** + +* Beta release. diff --git a/interface/ispconfig/interface/js/yui/datasource/datasource-beta-debug.js b/interface/ispconfig/interface/js/yui/datasource/datasource-beta-debug.js new file mode 100644 index 0000000..497e2e7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datasource/datasource-beta-debug.js @@ -0,0 +1,912 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The DataSource utility provides a common configurable interface for widgets + * to access a variety of data, from JavaScript arrays to online servers over + * XHR. + * + * @module datasource + * @requires yahoo, event + * @optional xhr + * @title DataSource Utility + * @beta + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The DataSource class defines and manages a live set of data for widgets to + * interact with. Examples of live databases include in-memory + * local data such as a JavaScript array, a JavaScript function, or JSON, or + * remote data such as data retrieved through an XHR connection. + * + * @class DataSource + * @uses YAHOO.util.EventProvider + * @constructor + * @param oLiveData {Object} Pointer to live database + * @param oConfigs {Object} (optional) Object literal of configuration values + */ +YAHOO.util.DataSource = function(oLiveData, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if (sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + if(!oLiveData) { + YAHOO.log("Could not instantiate DataSource due to invalid live database.","error",this.toString()); + return; + } + else { + switch(oLiveData.constructor) { + case Function: + this.dataType = YAHOO.util.DataSource.TYPE_JSFUNCTION; + break; + case Array: + this.dataType = YAHOO.util.DataSource.TYPE_JSARRAY; + break; + case String: + this.dataType = YAHOO.util.DataSource.TYPE_XHR; + break; + case Object: + this.dataType = YAHOO.util.DataSource.TYPE_JSON; + break; + default: + this.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN; + break; + } + this.liveData = oLiveData; + } + + // Validate and initialize public configs + var maxCacheEntries = this.maxCacheEntries; + if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) { + maxCacheEntries = 0; + } + + // Initialize local cache + if(maxCacheEntries > 0 && !this._aCache) { + this._aCache = []; + YAHOO.log("Cache initialized","info",this.toString()); + } + + this._sName = "instance" + YAHOO.util.DataSource._nIndex; + YAHOO.util.DataSource._nIndex++; + YAHOO.log("DataSource initialized", "info", this.toString()); + + + ///////////////////////////////////////////////////////////////////////////// + // + // Custom Events + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a request is made to the local cache. + * + * @event cacheRequestEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("cacheRequestEvent"); + + /** + * Fired when data is retrieved from the local cache. + * + * @event getCachedResponseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("cacheResponseEvent"); + + /** + * Fired when a request is sent to the live data source. + * + * @event requestEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("requestEvent"); + + /** + * Fired when live data source sends response. + * + * @event parseResponseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The raw response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseEvent"); + + /** + * Fired when response is parsed. + * + * @event responseParseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The parsed response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseParseEvent"); + + /** + * Fired when response is cached. + * + * @event responseCacheEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The parsed response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseCacheEvent"); + /** + * Fired when an error is encountered with the live data source. + * + * @event dataErrorEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + * @param oArgs.message {String} The error message. + */ + this.createEvent("dataErrorEvent"); + + /** + * Fired when the local cache is flushed. + * + * @event cacheFlushEvent + */ + this.createEvent("cacheFlushEvent"); +}; + +YAHOO.augment(YAHOO.util.DataSource, YAHOO.util.EventProvider); + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Type is unknown. + * + * @property TYPE_UNKNOWN + * @type Number + * @final + * @default -1 + */ +YAHOO.util.DataSource.TYPE_UNKNOWN = -1; + +/** + * Type is a JavaScript Array. + * + * @property TYPE_JSARRAY + * @type Number + * @final + * @default 0 + */ +YAHOO.util.DataSource.TYPE_JSARRAY = 0; + +/** + * Type is a JavaScript Function. + * + * @property TYPE_JSFUNCTIOn + * @type Number + * @final + * @default 1 + */ +YAHOO.util.DataSource.TYPE_JSFUNCTION = 1; + +/** + * Type is hosted on a server via an XHR connection. + * + * @property TYPE_XHR + * @type Number + * @final + * @default 2 + */ +YAHOO.util.DataSource.TYPE_XHR = 2; + +/** + * Type is JSON. + * + * @property TYPE_JSON + * @type Number + * @final + * @default 3 + */ +YAHOO.util.DataSource.TYPE_JSON = 3; + +/** + * Type is XML. + * + * @property TYPE_XML + * @type Number + * @final + * @default 4 + */ +YAHOO.util.DataSource.TYPE_XML = 4; + +/** + * Type is plain text. + * + * @property TYPE_TEXT + * @type Number + * @final + * @default 5 + */ +YAHOO.util.DataSource.TYPE_TEXT = 5; +/** + * Error message for invalid data responses. + * + * @property ERROR_DATAINVALID + * @type String + * @final + * @default "Invalid data" + */ +YAHOO.util.DataSource.ERROR_DATAINVALID = "Invalid data"; + +/** + * Error message for null data responses. + * + * @property ERROR_DATANULL + * @type String + * @final + * @default "Null data" + */ +YAHOO.util.DataSource.ERROR_DATANULL = "Null data"; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataSource instances. + * + * @property _nIndex + * @type Number + * @private + */ +YAHOO.util.DataSource._nIndex = 0; + +/** + * Name of DataSource instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.util.DataSource.prototype._sName = null; + +/** + * Local cache of data result objects indexed chronologically. + * + * @property _aCache + * @type Object[] + * @private + */ +YAHOO.util.DataSource.prototype._aCache = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + + + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Max size of the local cache. Set to 0 to turn off caching. Caching is + * useful to reduce the number of server connections. Recommended only for data + * sources that return comprehensive results for queries or when stale data is + * not an issue. + * + * @property maxCacheEntries + * @type Number + * @default 0 + */ +YAHOO.util.DataSource.prototype.maxCacheEntries = 0; + + /** + * Pointer to live database. + * + * @property liveData + * @type Object + */ +YAHOO.util.DataSource.prototype.liveData = null; + + /** + * If data is accessed over XHR via Connection Manager, the connection timeout is + * configurable in milliseconds the XHR connection will wait for a server + * response. A a value of zero indicates the XHR connection will wait forever. + * Any value greater than zero will use the Connection utility's Auto-Abort + * feature. + * + * @property connTimeout + * @type Number + * @default 0 + */ +YAHOO.util.DataSource.prototype.connTimeout = null; + + /** + * Alias to YUI Connection Manager. Allows implementers to specify their own + * subclasses of the YUI Connection Manager utility. + * + * @property connMgr + * @type Object + * @default YAHOO.util.Connect + */ +YAHOO.util.DataSource.prototype.connMgr = YAHOO.util.Connect || null; + +/** + * Where the live data is held. + * + * @property dataType + * @type Number + * @default YAHOO.util.DataSource.TYPE_UNKNOWN + * + */ +YAHOO.util.DataSource.prototype.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN; + +/** + * Format of response. + * + * @property responseType + * @type Number + * @default YAHOO.util.DataSource.TYPE_UNKNOWN + */ +YAHOO.util.DataSource.prototype.responseType = YAHOO.util.DataSource.TYPE_UNKNOWN; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance. + */ +YAHOO.util.DataSource.prototype.toString = function() { + return "DataSource " + this._sName; +}; + +/** + * Overridable method passes request to cache and returns cached response if any, + * refreshing the hit in the cache as the newest item. Returns null if there is + * no cache hit. + * + * @method getCachedResponse + * @param oRequest {Object} Request object. + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + * @return {Object} Cached response object or null. + */ +YAHOO.util.DataSource.prototype.getCachedResponse = function(oRequest, oCallback, oCaller) { + var aCache = this._aCache; + var nCacheLength = (aCache) ? aCache.length : 0; + var oResponse = null; + + // If cache is enabled... + if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) { + this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller}); + + // Loop through each cached element + for(var i = nCacheLength-1; i >= 0; i--) { + var oCacheElem = aCache[i]; + + // Defer cache hit logic to a public overridable method + if(this.isCacheHit(oRequest,oCacheElem.request)) { + // Grab the cached response + oResponse = oCacheElem.response; + // The cache returned a hit! + // Remove element from its original location + aCache.splice(i,1); + // Add as newest + this.addToCache(oRequest, oResponse); + this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller}); + break; + } + } + } + return oResponse; +}; + +/** + * Default overridable method matches given request to given cached request. + * Returns true if is a hit, returns false otherwise. Implementers should + * override this method to customize the cache-matching algorithm. + * + * @method isCacheHit + * @param oRequest {Object} Request object. + * @param oCachedRequest {Object} Cached request object. + * @return {Boolean} True if given request matches cached request, false otherwise. + */ +YAHOO.util.DataSource.prototype.isCacheHit = function(oRequest, oCachedRequest) { + return (oRequest === oCachedRequest); +}; + +/** + * Adds a new item to the cache. If cache is full, evicts the stalest item + * before adding the new item. + * + * @method addToCache + * @param oRequest {Object} Request object. + * @param oResponse {Object} Response object to cache. + */ +YAHOO.util.DataSource.prototype.addToCache = function(oRequest, oResponse) { + //TODO: check for duplicate entries + var aCache = this._aCache; + // Don't add if anything important is missing. + if(!aCache || !oRequest || !oResponse) { + return; + } + + // If the cache is full, make room by removing stalest element (index=0) + while(aCache.length >= this.maxCacheEntries) { + aCache.shift(); + } + + // Add to cache in the newest position, at the end of the array + var oCacheElem = {request:oRequest,response:oResponse}; + aCache.push(oCacheElem); + this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse}); + +}; + +/** + * Flushes cache. + * + * @method flushCache + */ +YAHOO.util.DataSource.prototype.flushCache = function() { + if(this._aCache) { + this._aCache = []; + } + this.fireEvent("cacheFlushEvent"); +}; + +/** + * First looks for cached response, then sends request to live data. + * + * @method sendRequest + * @param oRequest {Object} Request object + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + */ +YAHOO.util.DataSource.prototype.sendRequest = function(oRequest, oCallback, oCaller) { + // First look in cache + var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller); + if(oCachedResponse) { + oCallback.call(oCaller, oRequest, oCachedResponse); + return; + } + + // Not in cache, so forward request to live data + this.makeConnection(oRequest, oCallback, oCaller); +}; + +/** + * Overridable method provides default functionality to make a connection to + * live data in order to send request. The response coming back is then + * forwarded to the handleResponse function. This method should be customized + * for more complex implementations. + * + * @method makeConnection + * @param oRequest {Object} Request object. + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + */ +YAHOO.util.DataSource.prototype.makeConnection = function(oRequest, oCallback, oCaller) { + this.fireEvent("requestEvent", {request:oRequest,callback:oCallback,caller:oCaller}); + var oRawResponse = null; + + // How to make the connection depends on the type of data + switch(this.dataType) { + + // If the live data is a JavaScript Array + // simply forward the entire array to the handler + case YAHOO.util.DataSource.TYPE_JSARRAY: + case YAHOO.util.DataSource.TYPE_JSON: + oRawResponse = this.liveData; + this.handleResponse(oRequest, oRawResponse, oCallback, oCaller); + break; + + // If the live data is a JavaScript Function + // pass the request in as a parameter and + // forward the return value to the handler + case YAHOO.util.DataSource.TYPE_JSFUNCTION: + oRawResponse = this.liveData(oRequest); + this.handleResponse(oRequest, oRawResponse, oCallback, oCaller); + break; + + // If the live data is over Connection Manager + // set up the callback object and + // pass the request in as a URL query and + // forward the response to the handler + case YAHOO.util.DataSource.TYPE_XHR: + /** + * Connection Manager success handler + * + * @method _xhrSuccess + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrSuccess = function(oResponse) { + // Error if no response + if(!oResponse) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL}); + YAHOO.log(YAHOO.util.DataSource.ERROR_DATANULL, "error", this.toString()); + return null; + } + // Error if response ID does not match last made request ID. + else if(!this._oConn || (oResponse.tId != this._oConn.tId)) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID}); + YAHOO.log(YAHOO.util.DataSource.ERROR_DATAINVALID, "error", this.toString()); + return null; + } + // Forward to handler + else { + this.handleResponse(oRequest, oResponse, oCallback, oCaller); + } + }; + + /** + * Connection Manager failure handler + * + * @method _xhrFailure + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrFailure = function(oResponse) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR}); + YAHOO.log(this.ERROR_DATAXHR + ": " + oResp.statusText, "error", this.toString()); + return null; + }; + + /** + * Connection Manager callback object + * + * @property _xhrCallback + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrCallback = { + success:_xhrSuccess, + failure:_xhrFailure, + scope: this + }; + + //TODO: connTimeout config + if(this.connTimeout && !isNaN(this.connTimeout) && this.connTimeout > 0) { + _xhrCallback.timeout = this.connTimeout; + } + + //TODO: oConn config + if(this._oConn && this.connMgr) { + this.connMgr.abort(this._oConn); + } + + var sUri = this.liveData+"?"+oRequest; + if(this.connMgr) { + this._oConn = this.connMgr.asyncRequest("GET", sUri, _xhrCallback, null); + } + else { + YAHOO.log("Could not find a valid Connection Manager","error",this.toString()); + } + + break; + default: + //TODO: any default? + break; + } +}; + +/** + * Handles raw data response from live data source. + * + * @method handleResponse + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The calling object that is making the request + */ +YAHOO.util.DataSource.prototype.handleResponse = function(oRequest, oRawResponse, oCallback, oCaller) { + this.fireEvent("responseEvent", {request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller}); + var xhr = (this.dataType == YAHOO.util.DataSource.TYPE_XHR) ? true : false; + var oParsedResponse = null; + //TODO: break out into overridable methods + switch(this.responseType) { + case YAHOO.util.DataSource.TYPE_JSARRAY: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseArrayData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_JSON: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseJSONData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_XML: + if(xhr && oRawResponse.responseXML) { + oRawResponse = oRawResponse.responseXML; + } + oParsedResponse = this.parseXMLData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_TEXT: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseTextData(oRequest, oRawResponse); + break; + default: + //TODO: pass off to custom function + //var contentType = oRawResponse.getResponseHeader["Content-Type"]; + YAHOO.log("Unknown response type","warn",this.toStrin()); + break; + } + + if(oParsedResponse) { + this.fireEvent("responseParseEvent", {request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller}); + // Cache the response + this.addToCache(oRequest, oParsedResponse); + } + else { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL}); + YAHOO.log(YAHOO.util.DataSource.ERROR_DATANULL, "error", this.toString()); + } + + // Send the response back to the caller + oCallback.call(oCaller, oRequest, oParsedResponse); +}; + +/** + * Overridable method parses raw array data into a response object. + * + * @method parseArrayData + * @param oRequest {Object} Request object. + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseArrayData = function(oRequest, oRawResponse) { + var oParsedResponse = []; + var fields = this.responseSchema.fields; + for(var i=oRawResponse.length-1; i>-1; i--) { + var oResult = {}; + for(var j=fields.length; j>-1; j--) { + oResult[fields[j]] = oRawResponse[i][j] || oRawResponse[i][fields[j]]; + } + oParsedResponse.unshift(oResult); + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw plain text data into a response object. + * + * @method parseTextData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseTextData = function(oRequest, oRawResponse) { + var oParsedResponse = []; + var recDelim = this.responseSchema.recordDelim; + var fieldDelim = this.responseSchema.fieldDelim; + var aSchema = this.responseSchema.fields; + if(oRawResponse.length > 0) { + // Delete the last line delimiter at the end of the data if it exists + var newLength = oRawResponse.length-recDelim.length; + if(oRawResponse.substr(newLength) == recDelim) { + oRawResponse = oRawResponse.substr(0, newLength); + } + // Split along record delimiter to get an array of strings + var recordsarray = oRawResponse.split(recDelim); + // Cycle through each record, except the first which contains header info + for(var i = recordsarray.length-1; i >= 1; i--) { + var dataobject = {}; + for(var j=aSchema.length-1; j >= 0; j--) { + // Split along field delimter to get each data value + var fielddataarray = recordsarray[i].split(fieldDelim); + + // Remove quotation marks from edges, if applicable + var string = fielddataarray[j]; + if(string.charAt(0) == "\"") { + string = string.substr(1); + } + if(string.charAt(string.length-1) == "\"") { + string = string.substr(0,string.length-1); + } + dataobject[aSchema[j]] = string; + } + oParsedResponse.push(dataobject); + } + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw XML data into a response object. + * + * @method parseXMLData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseXMLData = function(oRequest, oRawResponse) { + var bError = false; + var oParsedResponse = []; + var xmlList = oRawResponse.getElementsByTagName(this.responseSchema.resultNode); + if(!xmlList) { + bError = true; + } + // Loop through each result + else { + for(var k = xmlList.length-1; k >= 0 ; k--) { + var result = xmlList.item(k); + var oResult = {}; + // Loop through each data field in each result using the schema + for(var m = this.responseSchema.fields.length-1; m >= 0 ; m--) { + var field = this.responseSchema.fields[m]; + var sValue = null; + // Values may be held in an attribute... + var xmlAttr = result.attributes.getNamedItem(field); + if(xmlAttr) { + sValue = xmlAttr.value; + } + // ...or in a node + else { + var xmlNode = result.getElementsByTagName(field); + if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) { + sValue = xmlNode.item(0).firstChild.nodeValue; + } + else { + sValue = ""; + } + } + // Capture the schema-mapped data field values into an array + oResult[field] = sValue; + } + // Capture each array of values into an array of results + oParsedResponse.unshift(oResult); + } + } + if(bError) { + return null; + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw JSON data into a response object. + * + * @method parseJSONData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseJSONData = function(oRequest, oRawResponse) { + //TODO: validate oRawResponse + var bError = false; + var oParsedResponse = []; + var aSchema = this.responseSchema.fields; + + var jsonObj,jsonList; + if(oRawResponse) { + // Parse JSON object out if it's a string + if(oRawResponse.constructor == String) { + // Check for latest JSON lib but divert KHTML clients + if(oRawResponse.parseJSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the new JSON utility if available + jsonObj = oRawResponse.parseJSON(); + if(!jsonObj) { + bError = true; + } + } + // Check for older JSON lib but divert KHTML clients + else if(window.JSON && JSON.parse && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the JSON utility if available + jsonObj = JSON.parse(oRawResponse); + if(!jsonObj) { + bError = true; + } + } + // No JSON lib found so parse the string + else { + try { + // Trim leading spaces + while (oRawResponse.length > 0 && + (oRawResponse.charAt(0) != "{") && + (oRawResponse.charAt(0) != "[")) { + oRawResponse = oRawResponse.substring(1, oResponse.length); + } + + if(oRawResponse.length > 0) { + // Strip extraneous stuff at the end + var objEnd = Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}")); + oRawResponse = oRawResponse.substring(0,objEnd+1); + + // Turn the string into an object literal... + // ...eval is necessary here + jsonObj = eval("(" + oRawResponse + ")"); + if(!jsonObj) { + bError = true; + } + + } + } + catch(e) { + bError = true; + } + } + } + // Response must already be a JSON object + else if(oRawResponse.constructor == Object) { + jsonObj = oRawResponse; + } + // Now that we have a JSON object, parse a jsonList out of it + if(jsonObj && jsonObj.constructor == Object) { + try { + // eval is necessary here since schema can be of unknown depth + jsonList = eval("jsonObj." + this.responseSchema.resultsList); + } + catch(e) { + bError = true; + } + } + } + if(bError || !jsonList) { + // Something went wrong + return null; + } + + if(jsonList.constructor != Array) { + jsonList = [jsonList]; + } + + // Loop through the array of all responses... + for(var i = jsonList.length-1; i >= 0 ; i--) { + var oResult = {}; + var jsonResult = jsonList[i]; + // ...and loop through each data field value of each response + for(var j = aSchema.length-1; j >= 0 ; j--) { + // ...and capture data into an array mapped according to the schema... + var dataFieldValue = jsonResult[aSchema[j]]; + if(!dataFieldValue) { + dataFieldValue = ""; + } + //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString()); + oResult[aSchema[j]] = dataFieldValue; + } + // Capture the array of data field values in an array of results + oParsedResponse.unshift(oResult); + } + return oParsedResponse; +}; + +YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js b/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js new file mode 100644 index 0000000..80209a0 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js @@ -0,0 +1,59 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.DataSource=function(oLiveData,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}} +if(!oLiveData){return;} +else{switch(oLiveData.constructor){case Function:this.dataType=YAHOO.util.DataSource.TYPE_JSFUNCTION;break;case Array:this.dataType=YAHOO.util.DataSource.TYPE_JSARRAY;break;case String:this.dataType=YAHOO.util.DataSource.TYPE_XHR;break;case Object:this.dataType=YAHOO.util.DataSource.TYPE_JSON;break;default:this.dataType=YAHOO.util.DataSource.TYPE_UNKNOWN;break;} +this.liveData=oLiveData;} +var maxCacheEntries=this.maxCacheEntries;if(isNaN(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;} +if(maxCacheEntries>0&&!this._aCache){this._aCache=[];} +this._sName="instance"+YAHOO.util.DataSource._nIndex;YAHOO.util.DataSource._nIndex++;this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");};YAHOO.augment(YAHOO.util.DataSource,YAHOO.util.EventProvider);YAHOO.util.DataSource.TYPE_UNKNOWN=-1;YAHOO.util.DataSource.TYPE_JSARRAY=0;YAHOO.util.DataSource.TYPE_JSFUNCTION=1;YAHOO.util.DataSource.TYPE_XHR=2;YAHOO.util.DataSource.TYPE_JSON=3;YAHOO.util.DataSource.TYPE_XML=4;YAHOO.util.DataSource.TYPE_TEXT=5;YAHOO.util.DataSource.ERROR_DATAINVALID="Invalid data";YAHOO.util.DataSource.ERROR_DATANULL="Null data";YAHOO.util.DataSource._nIndex=0;YAHOO.util.DataSource.prototype._sName=null;YAHOO.util.DataSource.prototype._aCache=null;YAHOO.util.DataSource.prototype.maxCacheEntries=0;YAHOO.util.DataSource.prototype.liveData=null;YAHOO.util.DataSource.prototype.connTimeout=null;YAHOO.util.DataSource.prototype.connMgr=YAHOO.util.Connect||null;YAHOO.util.DataSource.prototype.dataType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.responseType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.toString=function(){return"DataSource "+this._sName;};YAHOO.util.DataSource.prototype.getCachedResponse=function(oRequest,oCallback,oCaller){var aCache=this._aCache;var nCacheLength=(aCache)?aCache.length:0;var oResponse=null;if((this.maxCacheEntries>0)&&aCache&&(nCacheLength>0)){this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;aCache.splice(i,1);this.addToCache(oRequest,oResponse);this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});break;}}} +return oResponse;};YAHOO.util.DataSource.prototype.isCacheHit=function(oRequest,oCachedRequest){return(oRequest===oCachedRequest);};YAHOO.util.DataSource.prototype.addToCache=function(oRequest,oResponse){var aCache=this._aCache;if(!aCache||!oRequest||!oResponse){return;} +while(aCache.length>=this.maxCacheEntries){aCache.shift();} +var oCacheElem={request:oRequest,response:oResponse};aCache.push(oCacheElem);this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});};YAHOO.util.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[];} +this.fireEvent("cacheFlushEvent");};YAHOO.util.DataSource.prototype.sendRequest=function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){oCallback.call(oCaller,oRequest,oCachedResponse);return;} +this.makeConnection(oRequest,oCallback,oCaller);};YAHOO.util.DataSource.prototype.makeConnection=function(oRequest,oCallback,oCaller){this.fireEvent("requestEvent",{request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=null;switch(this.dataType){case YAHOO.util.DataSource.TYPE_JSARRAY:case YAHOO.util.DataSource.TYPE_JSON:oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller);break;case YAHOO.util.DataSource.TYPE_JSFUNCTION:oRawResponse=this.liveData(oRequest);this.handleResponse(oRequest,oRawResponse,oCallback,oCaller);break;case YAHOO.util.DataSource.TYPE_XHR:var _xhrSuccess=function(oResponse){if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});return null;} +else if(!this._oConn||(oResponse.tId!=this._oConn.tId)){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID});return null;} +else{this.handleResponse(oRequest,oResponse,oCallback,oCaller);}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR});return null;};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(this.connTimeout&&!isNaN(this.connTimeout)&&this.connTimeout>0){_xhrCallback.timeout=this.connTimeout;} +if(this._oConn&&this.connMgr){this.connMgr.abort(this._oConn);} +var sUri=this.liveData+"?"+oRequest;if(this.connMgr){this._oConn=this.connMgr.asyncRequest("GET",sUri,_xhrCallback,null);} +else{} +break;default:break;}};YAHOO.util.DataSource.prototype.handleResponse=function(oRequest,oRawResponse,oCallback,oCaller){this.fireEvent("responseEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=(this.dataType==YAHOO.util.DataSource.TYPE_XHR)?true:false;var oParsedResponse=null;switch(this.responseType){case YAHOO.util.DataSource.TYPE_JSARRAY:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;} +oParsedResponse=this.parseArrayData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_JSON:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;} +oParsedResponse=this.parseJSONData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_XML:if(xhr&&oRawResponse.responseXML){oRawResponse=oRawResponse.responseXML;} +oParsedResponse=this.parseXMLData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_TEXT:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;} +oParsedResponse=this.parseTextData(oRequest,oRawResponse);break;default:break;} +if(oParsedResponse){this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse);} +else{this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});} +oCallback.call(oCaller,oRequest,oParsedResponse);};YAHOO.util.DataSource.prototype.parseArrayData=function(oRequest,oRawResponse){var oParsedResponse=[];var fields=this.responseSchema.fields;for(var i=oRawResponse.length-1;i>-1;i--){var oResult={};for(var j=fields.length;j>-1;j--){oResult[fields[j]]=oRawResponse[i][j]||oRawResponse[i][fields[j]];} +oParsedResponse.unshift(oResult);} +return oParsedResponse;};YAHOO.util.DataSource.prototype.parseTextData=function(oRequest,oRawResponse){var oParsedResponse=[];var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;var aSchema=this.responseSchema.fields;if(oRawResponse.length>0){var newLength=oRawResponse.length-recDelim.length;if(oRawResponse.substr(newLength)==recDelim){oRawResponse=oRawResponse.substr(0,newLength);} +var recordsarray=oRawResponse.split(recDelim);for(var i=recordsarray.length-1;i>=1;i--){var dataobject={};for(var j=aSchema.length-1;j>=0;j--){var fielddataarray=recordsarray[i].split(fieldDelim);var string=fielddataarray[j];if(string.charAt(0)=="\""){string=string.substr(1);} +if(string.charAt(string.length-1)=="\""){string=string.substr(0,string.length-1);} +dataobject[aSchema[j]]=string;} +oParsedResponse.push(dataobject);}} +return oParsedResponse;};YAHOO.util.DataSource.prototype.parseXMLData=function(oRequest,oRawResponse){var bError=false;var oParsedResponse=[];var xmlList=oRawResponse.getElementsByTagName(this.responseSchema.resultNode);if(!xmlList){bError=true;} +else{for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var oResult={};for(var m=this.responseSchema.fields.length-1;m>=0;m--){var field=this.responseSchema.fields[m];var sValue=null;var xmlAttr=result.attributes.getNamedItem(field);if(xmlAttr){sValue=xmlAttr.value;} +else{var xmlNode=result.getElementsByTagName(field);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue;} +else{sValue="";}} +oResult[field]=sValue;} +oParsedResponse.unshift(oResult);}} +if(bError){return null;} +return oParsedResponse;};YAHOO.util.DataSource.prototype.parseJSONData=function(oRequest,oRawResponse){var bError=false;var oParsedResponse=[];var aSchema=this.responseSchema.fields;var jsonObj,jsonList;if(oRawResponse){if(oRawResponse.constructor==String){if(oRawResponse.parseJSON&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){jsonObj=oRawResponse.parseJSON();if(!jsonObj){bError=true;}} +else if(window.JSON&&JSON.parse&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){jsonObj=JSON.parse(oRawResponse);if(!jsonObj){bError=true;}} +else{try{while(oRawResponse.length>0&&(oRawResponse.charAt(0)!="{")&&(oRawResponse.charAt(0)!="[")){oRawResponse=oRawResponse.substring(1,oResponse.length);} +if(oRawResponse.length>0){var objEnd=Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}"));oRawResponse=oRawResponse.substring(0,objEnd+1);jsonObj=eval("("+oRawResponse+")");if(!jsonObj){bError=true;}}} +catch(e){bError=true;}}} +else if(oRawResponse.constructor==Object){jsonObj=oRawResponse;} +if(jsonObj&&jsonObj.constructor==Object){try{jsonList=eval("jsonObj."+this.responseSchema.resultsList);} +catch(e){bError=true;}}} +if(bError||!jsonList){return null;} +if(jsonList.constructor!=Array){jsonList=[jsonList];} +for(var i=jsonList.length-1;i>=0;i--){var oResult={};var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=0;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";} +oResult[aSchema[j]]=dataFieldValue;} +oParsedResponse.unshift(oResult);} +return oParsedResponse;};YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js b/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js new file mode 100644 index 0000000..cf145df --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js @@ -0,0 +1,902 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The DataSource utility provides a common configurable interface for widgets + * to access a variety of data, from JavaScript arrays to online servers over + * XHR. + * + * @module datasource + * @requires yahoo, event + * @optional xhr + * @title DataSource Utility + * @beta + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The DataSource class defines and manages a live set of data for widgets to + * interact with. Examples of live databases include in-memory + * local data such as a JavaScript array, a JavaScript function, or JSON, or + * remote data such as data retrieved through an XHR connection. + * + * @class DataSource + * @uses YAHOO.util.EventProvider + * @constructor + * @param oLiveData {Object} Pointer to live database + * @param oConfigs {Object} (optional) Object literal of configuration values + */ +YAHOO.util.DataSource = function(oLiveData, oConfigs) { + // Set any config params passed in to override defaults + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if (sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + if(!oLiveData) { + return; + } + else { + switch(oLiveData.constructor) { + case Function: + this.dataType = YAHOO.util.DataSource.TYPE_JSFUNCTION; + break; + case Array: + this.dataType = YAHOO.util.DataSource.TYPE_JSARRAY; + break; + case String: + this.dataType = YAHOO.util.DataSource.TYPE_XHR; + break; + case Object: + this.dataType = YAHOO.util.DataSource.TYPE_JSON; + break; + default: + this.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN; + break; + } + this.liveData = oLiveData; + } + + // Validate and initialize public configs + var maxCacheEntries = this.maxCacheEntries; + if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) { + maxCacheEntries = 0; + } + + // Initialize local cache + if(maxCacheEntries > 0 && !this._aCache) { + this._aCache = []; + } + + this._sName = "instance" + YAHOO.util.DataSource._nIndex; + YAHOO.util.DataSource._nIndex++; + + + ///////////////////////////////////////////////////////////////////////////// + // + // Custom Events + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a request is made to the local cache. + * + * @event cacheRequestEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("cacheRequestEvent"); + + /** + * Fired when data is retrieved from the local cache. + * + * @event getCachedResponseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("cacheResponseEvent"); + + /** + * Fired when a request is sent to the live data source. + * + * @event requestEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("requestEvent"); + + /** + * Fired when live data source sends response. + * + * @event parseResponseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The raw response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseEvent"); + + /** + * Fired when response is parsed. + * + * @event responseParseEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The parsed response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseParseEvent"); + + /** + * Fired when response is cached. + * + * @event responseCacheEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.response {Object} The parsed response object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + */ + this.createEvent("responseCacheEvent"); + /** + * Fired when an error is encountered with the live data source. + * + * @event dataErrorEvent + * @param oArgs.request {Object} The request object. + * @param oArgs.callback {Function} The callback function. + * @param oArgs.caller {Object} The parent object of the callback function. + * @param oArgs.message {String} The error message. + */ + this.createEvent("dataErrorEvent"); + + /** + * Fired when the local cache is flushed. + * + * @event cacheFlushEvent + */ + this.createEvent("cacheFlushEvent"); +}; + +YAHOO.augment(YAHOO.util.DataSource, YAHOO.util.EventProvider); + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Type is unknown. + * + * @property TYPE_UNKNOWN + * @type Number + * @final + * @default -1 + */ +YAHOO.util.DataSource.TYPE_UNKNOWN = -1; + +/** + * Type is a JavaScript Array. + * + * @property TYPE_JSARRAY + * @type Number + * @final + * @default 0 + */ +YAHOO.util.DataSource.TYPE_JSARRAY = 0; + +/** + * Type is a JavaScript Function. + * + * @property TYPE_JSFUNCTIOn + * @type Number + * @final + * @default 1 + */ +YAHOO.util.DataSource.TYPE_JSFUNCTION = 1; + +/** + * Type is hosted on a server via an XHR connection. + * + * @property TYPE_XHR + * @type Number + * @final + * @default 2 + */ +YAHOO.util.DataSource.TYPE_XHR = 2; + +/** + * Type is JSON. + * + * @property TYPE_JSON + * @type Number + * @final + * @default 3 + */ +YAHOO.util.DataSource.TYPE_JSON = 3; + +/** + * Type is XML. + * + * @property TYPE_XML + * @type Number + * @final + * @default 4 + */ +YAHOO.util.DataSource.TYPE_XML = 4; + +/** + * Type is plain text. + * + * @property TYPE_TEXT + * @type Number + * @final + * @default 5 + */ +YAHOO.util.DataSource.TYPE_TEXT = 5; +/** + * Error message for invalid data responses. + * + * @property ERROR_DATAINVALID + * @type String + * @final + * @default "Invalid data" + */ +YAHOO.util.DataSource.ERROR_DATAINVALID = "Invalid data"; + +/** + * Error message for null data responses. + * + * @property ERROR_DATANULL + * @type String + * @final + * @default "Null data" + */ +YAHOO.util.DataSource.ERROR_DATANULL = "Null data"; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataSource instances. + * + * @property _nIndex + * @type Number + * @private + */ +YAHOO.util.DataSource._nIndex = 0; + +/** + * Name of DataSource instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.util.DataSource.prototype._sName = null; + +/** + * Local cache of data result objects indexed chronologically. + * + * @property _aCache + * @type Object[] + * @private + */ +YAHOO.util.DataSource.prototype._aCache = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + + + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Max size of the local cache. Set to 0 to turn off caching. Caching is + * useful to reduce the number of server connections. Recommended only for data + * sources that return comprehensive results for queries or when stale data is + * not an issue. + * + * @property maxCacheEntries + * @type Number + * @default 0 + */ +YAHOO.util.DataSource.prototype.maxCacheEntries = 0; + + /** + * Pointer to live database. + * + * @property liveData + * @type Object + */ +YAHOO.util.DataSource.prototype.liveData = null; + + /** + * If data is accessed over XHR via Connection Manager, the connection timeout is + * configurable in milliseconds the XHR connection will wait for a server + * response. A a value of zero indicates the XHR connection will wait forever. + * Any value greater than zero will use the Connection utility's Auto-Abort + * feature. + * + * @property connTimeout + * @type Number + * @default 0 + */ +YAHOO.util.DataSource.prototype.connTimeout = null; + + /** + * Alias to YUI Connection Manager. Allows implementers to specify their own + * subclasses of the YUI Connection Manager utility. + * + * @property connMgr + * @type Object + * @default YAHOO.util.Connect + */ +YAHOO.util.DataSource.prototype.connMgr = YAHOO.util.Connect || null; + +/** + * Where the live data is held. + * + * @property dataType + * @type Number + * @default YAHOO.util.DataSource.TYPE_UNKNOWN + * + */ +YAHOO.util.DataSource.prototype.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN; + +/** + * Format of response. + * + * @property responseType + * @type Number + * @default YAHOO.util.DataSource.TYPE_UNKNOWN + */ +YAHOO.util.DataSource.prototype.responseType = YAHOO.util.DataSource.TYPE_UNKNOWN; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance. + */ +YAHOO.util.DataSource.prototype.toString = function() { + return "DataSource " + this._sName; +}; + +/** + * Overridable method passes request to cache and returns cached response if any, + * refreshing the hit in the cache as the newest item. Returns null if there is + * no cache hit. + * + * @method getCachedResponse + * @param oRequest {Object} Request object. + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + * @return {Object} Cached response object or null. + */ +YAHOO.util.DataSource.prototype.getCachedResponse = function(oRequest, oCallback, oCaller) { + var aCache = this._aCache; + var nCacheLength = (aCache) ? aCache.length : 0; + var oResponse = null; + + // If cache is enabled... + if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) { + this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller}); + + // Loop through each cached element + for(var i = nCacheLength-1; i >= 0; i--) { + var oCacheElem = aCache[i]; + + // Defer cache hit logic to a public overridable method + if(this.isCacheHit(oRequest,oCacheElem.request)) { + // Grab the cached response + oResponse = oCacheElem.response; + // The cache returned a hit! + // Remove element from its original location + aCache.splice(i,1); + // Add as newest + this.addToCache(oRequest, oResponse); + this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller}); + break; + } + } + } + return oResponse; +}; + +/** + * Default overridable method matches given request to given cached request. + * Returns true if is a hit, returns false otherwise. Implementers should + * override this method to customize the cache-matching algorithm. + * + * @method isCacheHit + * @param oRequest {Object} Request object. + * @param oCachedRequest {Object} Cached request object. + * @return {Boolean} True if given request matches cached request, false otherwise. + */ +YAHOO.util.DataSource.prototype.isCacheHit = function(oRequest, oCachedRequest) { + return (oRequest === oCachedRequest); +}; + +/** + * Adds a new item to the cache. If cache is full, evicts the stalest item + * before adding the new item. + * + * @method addToCache + * @param oRequest {Object} Request object. + * @param oResponse {Object} Response object to cache. + */ +YAHOO.util.DataSource.prototype.addToCache = function(oRequest, oResponse) { + //TODO: check for duplicate entries + var aCache = this._aCache; + // Don't add if anything important is missing. + if(!aCache || !oRequest || !oResponse) { + return; + } + + // If the cache is full, make room by removing stalest element (index=0) + while(aCache.length >= this.maxCacheEntries) { + aCache.shift(); + } + + // Add to cache in the newest position, at the end of the array + var oCacheElem = {request:oRequest,response:oResponse}; + aCache.push(oCacheElem); + this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse}); + +}; + +/** + * Flushes cache. + * + * @method flushCache + */ +YAHOO.util.DataSource.prototype.flushCache = function() { + if(this._aCache) { + this._aCache = []; + } + this.fireEvent("cacheFlushEvent"); +}; + +/** + * First looks for cached response, then sends request to live data. + * + * @method sendRequest + * @param oRequest {Object} Request object + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + */ +YAHOO.util.DataSource.prototype.sendRequest = function(oRequest, oCallback, oCaller) { + // First look in cache + var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller); + if(oCachedResponse) { + oCallback.call(oCaller, oRequest, oCachedResponse); + return; + } + + // Not in cache, so forward request to live data + this.makeConnection(oRequest, oCallback, oCaller); +}; + +/** + * Overridable method provides default functionality to make a connection to + * live data in order to send request. The response coming back is then + * forwarded to the handleResponse function. This method should be customized + * for more complex implementations. + * + * @method makeConnection + * @param oRequest {Object} Request object. + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The Calling object that is making the request + */ +YAHOO.util.DataSource.prototype.makeConnection = function(oRequest, oCallback, oCaller) { + this.fireEvent("requestEvent", {request:oRequest,callback:oCallback,caller:oCaller}); + var oRawResponse = null; + + // How to make the connection depends on the type of data + switch(this.dataType) { + + // If the live data is a JavaScript Array + // simply forward the entire array to the handler + case YAHOO.util.DataSource.TYPE_JSARRAY: + case YAHOO.util.DataSource.TYPE_JSON: + oRawResponse = this.liveData; + this.handleResponse(oRequest, oRawResponse, oCallback, oCaller); + break; + + // If the live data is a JavaScript Function + // pass the request in as a parameter and + // forward the return value to the handler + case YAHOO.util.DataSource.TYPE_JSFUNCTION: + oRawResponse = this.liveData(oRequest); + this.handleResponse(oRequest, oRawResponse, oCallback, oCaller); + break; + + // If the live data is over Connection Manager + // set up the callback object and + // pass the request in as a URL query and + // forward the response to the handler + case YAHOO.util.DataSource.TYPE_XHR: + /** + * Connection Manager success handler + * + * @method _xhrSuccess + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrSuccess = function(oResponse) { + // Error if no response + if(!oResponse) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL}); + return null; + } + // Error if response ID does not match last made request ID. + else if(!this._oConn || (oResponse.tId != this._oConn.tId)) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID}); + return null; + } + // Forward to handler + else { + this.handleResponse(oRequest, oResponse, oCallback, oCaller); + } + }; + + /** + * Connection Manager failure handler + * + * @method _xhrFailure + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrFailure = function(oResponse) { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR}); + return null; + }; + + /** + * Connection Manager callback object + * + * @property _xhrCallback + * @param oResponse {Object} HTTPXMLRequest object + * @private + */ + var _xhrCallback = { + success:_xhrSuccess, + failure:_xhrFailure, + scope: this + }; + + //TODO: connTimeout config + if(this.connTimeout && !isNaN(this.connTimeout) && this.connTimeout > 0) { + _xhrCallback.timeout = this.connTimeout; + } + + //TODO: oConn config + if(this._oConn && this.connMgr) { + this.connMgr.abort(this._oConn); + } + + var sUri = this.liveData+"?"+oRequest; + if(this.connMgr) { + this._oConn = this.connMgr.asyncRequest("GET", sUri, _xhrCallback, null); + } + else { + } + + break; + default: + //TODO: any default? + break; + } +}; + +/** + * Handles raw data response from live data source. + * + * @method handleResponse + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @param oCallback {Function} Handler function to receive the response + * @param oCaller {Object} The calling object that is making the request + */ +YAHOO.util.DataSource.prototype.handleResponse = function(oRequest, oRawResponse, oCallback, oCaller) { + this.fireEvent("responseEvent", {request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller}); + var xhr = (this.dataType == YAHOO.util.DataSource.TYPE_XHR) ? true : false; + var oParsedResponse = null; + //TODO: break out into overridable methods + switch(this.responseType) { + case YAHOO.util.DataSource.TYPE_JSARRAY: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseArrayData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_JSON: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseJSONData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_XML: + if(xhr && oRawResponse.responseXML) { + oRawResponse = oRawResponse.responseXML; + } + oParsedResponse = this.parseXMLData(oRequest, oRawResponse); + break; + case YAHOO.util.DataSource.TYPE_TEXT: + if(xhr && oRawResponse.responseText) { + oRawResponse = oRawResponse.responseText; + } + oParsedResponse = this.parseTextData(oRequest, oRawResponse); + break; + default: + //TODO: pass off to custom function + //var contentType = oRawResponse.getResponseHeader["Content-Type"]; + break; + } + + if(oParsedResponse) { + this.fireEvent("responseParseEvent", {request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller}); + // Cache the response + this.addToCache(oRequest, oParsedResponse); + } + else { + this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL}); + } + + // Send the response back to the caller + oCallback.call(oCaller, oRequest, oParsedResponse); +}; + +/** + * Overridable method parses raw array data into a response object. + * + * @method parseArrayData + * @param oRequest {Object} Request object. + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseArrayData = function(oRequest, oRawResponse) { + var oParsedResponse = []; + var fields = this.responseSchema.fields; + for(var i=oRawResponse.length-1; i>-1; i--) { + var oResult = {}; + for(var j=fields.length; j>-1; j--) { + oResult[fields[j]] = oRawResponse[i][j] || oRawResponse[i][fields[j]]; + } + oParsedResponse.unshift(oResult); + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw plain text data into a response object. + * + * @method parseTextData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseTextData = function(oRequest, oRawResponse) { + var oParsedResponse = []; + var recDelim = this.responseSchema.recordDelim; + var fieldDelim = this.responseSchema.fieldDelim; + var aSchema = this.responseSchema.fields; + if(oRawResponse.length > 0) { + // Delete the last line delimiter at the end of the data if it exists + var newLength = oRawResponse.length-recDelim.length; + if(oRawResponse.substr(newLength) == recDelim) { + oRawResponse = oRawResponse.substr(0, newLength); + } + // Split along record delimiter to get an array of strings + var recordsarray = oRawResponse.split(recDelim); + // Cycle through each record, except the first which contains header info + for(var i = recordsarray.length-1; i >= 1; i--) { + var dataobject = {}; + for(var j=aSchema.length-1; j >= 0; j--) { + // Split along field delimter to get each data value + var fielddataarray = recordsarray[i].split(fieldDelim); + + // Remove quotation marks from edges, if applicable + var string = fielddataarray[j]; + if(string.charAt(0) == "\"") { + string = string.substr(1); + } + if(string.charAt(string.length-1) == "\"") { + string = string.substr(0,string.length-1); + } + dataobject[aSchema[j]] = string; + } + oParsedResponse.push(dataobject); + } + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw XML data into a response object. + * + * @method parseXMLData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseXMLData = function(oRequest, oRawResponse) { + var bError = false; + var oParsedResponse = []; + var xmlList = oRawResponse.getElementsByTagName(this.responseSchema.resultNode); + if(!xmlList) { + bError = true; + } + // Loop through each result + else { + for(var k = xmlList.length-1; k >= 0 ; k--) { + var result = xmlList.item(k); + var oResult = {}; + // Loop through each data field in each result using the schema + for(var m = this.responseSchema.fields.length-1; m >= 0 ; m--) { + var field = this.responseSchema.fields[m]; + var sValue = null; + // Values may be held in an attribute... + var xmlAttr = result.attributes.getNamedItem(field); + if(xmlAttr) { + sValue = xmlAttr.value; + } + // ...or in a node + else { + var xmlNode = result.getElementsByTagName(field); + if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) { + sValue = xmlNode.item(0).firstChild.nodeValue; + } + else { + sValue = ""; + } + } + // Capture the schema-mapped data field values into an array + oResult[field] = sValue; + } + // Capture each array of values into an array of results + oParsedResponse.unshift(oResult); + } + } + if(bError) { + return null; + } + return oParsedResponse; +}; + +/** + * Overridable method parses raw JSON data into a response object. + * + * @method parseJSONData + * @param oRequest {Object} Request object + * @param oRawResponse {Object} The raw response from the live database + * @return {Object} Parsed response object + */ +YAHOO.util.DataSource.prototype.parseJSONData = function(oRequest, oRawResponse) { + //TODO: validate oRawResponse + var bError = false; + var oParsedResponse = []; + var aSchema = this.responseSchema.fields; + + var jsonObj,jsonList; + if(oRawResponse) { + // Parse JSON object out if it's a string + if(oRawResponse.constructor == String) { + // Check for latest JSON lib but divert KHTML clients + if(oRawResponse.parseJSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the new JSON utility if available + jsonObj = oRawResponse.parseJSON(); + if(!jsonObj) { + bError = true; + } + } + // Check for older JSON lib but divert KHTML clients + else if(window.JSON && JSON.parse && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) { + // Use the JSON utility if available + jsonObj = JSON.parse(oRawResponse); + if(!jsonObj) { + bError = true; + } + } + // No JSON lib found so parse the string + else { + try { + // Trim leading spaces + while (oRawResponse.length > 0 && + (oRawResponse.charAt(0) != "{") && + (oRawResponse.charAt(0) != "[")) { + oRawResponse = oRawResponse.substring(1, oResponse.length); + } + + if(oRawResponse.length > 0) { + // Strip extraneous stuff at the end + var objEnd = Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}")); + oRawResponse = oRawResponse.substring(0,objEnd+1); + + // Turn the string into an object literal... + // ...eval is necessary here + jsonObj = eval("(" + oRawResponse + ")"); + if(!jsonObj) { + bError = true; + } + + } + } + catch(e) { + bError = true; + } + } + } + // Response must already be a JSON object + else if(oRawResponse.constructor == Object) { + jsonObj = oRawResponse; + } + // Now that we have a JSON object, parse a jsonList out of it + if(jsonObj && jsonObj.constructor == Object) { + try { + // eval is necessary here since schema can be of unknown depth + jsonList = eval("jsonObj." + this.responseSchema.resultsList); + } + catch(e) { + bError = true; + } + } + } + if(bError || !jsonList) { + // Something went wrong + return null; + } + + if(jsonList.constructor != Array) { + jsonList = [jsonList]; + } + + // Loop through the array of all responses... + for(var i = jsonList.length-1; i >= 0 ; i--) { + var oResult = {}; + var jsonResult = jsonList[i]; + // ...and loop through each data field value of each response + for(var j = aSchema.length-1; j >= 0 ; j--) { + // ...and capture data into an array mapped according to the schema... + var dataFieldValue = jsonResult[aSchema[j]]; + if(!dataFieldValue) { + dataFieldValue = ""; + } + oResult[aSchema[j]] = dataFieldValue; + } + // Capture the array of data field values in an array of results + oParsedResponse.unshift(oResult); + } + return oParsedResponse; +}; + +YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/datatable/README b/interface/ispconfig/interface/js/yui/datatable/README new file mode 100644 index 0000000..be684ec --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datatable/README @@ -0,0 +1,9 @@ +DataTable Release Notes + +*** version 2.2.0 *** + +* Beta release. + +* Caption is not supported when scrolling is enabled. + +* Resizeability is not supported for fixed-width DataTables. diff --git a/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css b/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css new file mode 100644 index 0000000..f869586 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css @@ -0,0 +1,82 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/*debug css +.example span, .example .yui-dt-columntext {border:1px solid red;}*/ + +/*foundational css*/ +td { + overflow:hidden; +} + +.yui-dt-headcontainer { + position:relative; + +} + +.yui-dt-headtext { + position:relative; + border-right:10px; +} + +.yui-dt-headresizer { + position:absolute; + margin-right:-6px; + right:0; + bottom:0; + width:6px; + height:100%; + cursor:w-resize; + cursor:col-resize; +} + +.yui-dt-firstlink,.yui-dt-prevlink,.yui-dt-nextlink,.yui-dt-lastlink,.yui-dt-pagelink { + cursor:hand; + cursor:pointer; + text-decoration:underline; +} + +.yui-dt-scrollable { + width:20em; + margin-bottom:3em; +} + + +.yui-dt-scrollable thead { + background:#696969; /* IE needs a bgcolor to hide tbody as it scrolls */ + border:1px solid #000; + display:block; /* enables tbody scrolling for safari and opera */ +} + +.yui-dt-scrollable thead th { + width:10em; /* any value seems to here, just need something */ +} + +tbody.yui-dt-scrollable { + display:block; /* enables tbody scrolling for safari and opera */ + height:10em; + overflow:auto; /* for scrolling other than IE */ +} + +/* IE specific */ +.yui-dt-scrollable { + height:10em; + *overflow-y:auto; +} + +.yui-dt-scrollable tbody { + *height:auto; /* override the non IE height */ +} + +.yui-dt-scrollable thead tr { + position:relative; /* IE cant scroll tbody, so trick it into fixing thead */ +} + +.yui-dt-scrollable tbody td { + width:10em; +} + + diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js new file mode 100644 index 0000000..c49963e --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js @@ -0,0 +1,4956 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The DataTable widget provides a progressively enhanced DHTML control for + * displaying tabular data across A-grade browsers. + * + * @module datatable + * @requires yahoo, dom, event, datasource + * @optional dragdrop + * @title DataTable Widget + * @beta + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * DataTable class for the YUI DataTable widget. + * + * @class DataTable + * @uses YAHOO.util.EventProvider + * @constructor + * @param elContainer {HTMLElement} Container element for the TABLE. + * @param oColumnSet {YAHOO.widget.ColumnSet} ColumnSet instance. + * @param oDataSource {YAHOO.util.DataSource} DataSource instance. + * @param oConfigs {object} (optional) Object literal of configuration values. + */ +YAHOO.widget.DataTable = function(elContainer,oColumnSet,oDataSource,oConfigs) { + // Internal vars + var i; + this._nIndex = YAHOO.widget.DataTable._nCount; + this._sName = "instance" + this._nIndex; + this.id = "yui-dt"+this._nIndex; + + // Validate configs + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Validate DataSource + if(oDataSource) { + if(oDataSource instanceof YAHOO.util.DataSource) { + this.dataSource = oDataSource; + } + else { + YAHOO.log("Invalid DataSource", "warn", this.toString()); + } + } + + // Validate ColumnSet + if(oColumnSet && (oColumnSet instanceof YAHOO.widget.ColumnSet)) { + this._oColumnSet = oColumnSet; + } + else { + YAHOO.log("Could not instantiate DataTable due to an invalid ColumnSet", "error", this.toString()); + return; + } + + // Create RecordSet + this._oRecordSet = new YAHOO.widget.RecordSet(); + + // Validate HTML Element + elContainer = YAHOO.util.Dom.get(elContainer); + if(elContainer && elContainer.tagName && (elContainer.tagName.toLowerCase() == "div")) { + this._elContainer = elContainer; + // Peek in container child nodes to see if TABLE already exists + var elTable = null; + if(elContainer.hasChildNodes()) { + var children = elContainer.childNodes; + for(i=0; i<children.length; i++) { + if(children[i].tagName && children[i].tagName.toLowerCase() == "table") { + elTable = children[i]; + break; + } + } + } + + // Progressively enhance an existing table from markup... + // while using the markup as the source of data + if(elTable && !this.dataSource) { + // Fill RecordSet with data parsed out of table + var aRecords = []; + + // Iterate through each TBODY + for(i=0; i<elTable.tBodies.length; i++) { + var elBody = elTable.tBodies[i]; + + // Iterate through each TR + for(var j=0; j<elBody.rows.length; j++) { + var elRow = elBody.rows[j]; + var oRecord = {}; + + // Iterate through each TD + for(var k=0; k<elRow.cells.length; k++) { + + //var elCell = elRow.cells[l]; + //elCell.id = this.id+"-bdrow"+k+"-cell"+l; + //TODO: can we parse a column with null key? + oRecord[oColumnSet.keys[k].key] = oColumnSet.keys[k].parse(elRow.cells[k].innerHTML); + } + aRecords.push(oRecord); + } + } + + this._initTable(); + + var ok = this.doBeforeLoadData(aRecords); + if(ok) { + this._oRecordSet.addRecords(aRecords); + this.paginateRows(); + } + } + // Create markup from scratch using the provided DataSource + else if(this.dataSource) { + this._initTable(); + // Send out for data in an asynchronous request + oDataSource.sendRequest(this.initialRequest, this.onDataReturnPaginateRows, this); + } + // Else there is no data + else { + this._initTable(); + this.showEmptyMessage(); + } + } + // Container element not found in document + else { + YAHOO.log("Could not instantiate DataTable due to an invalid container element", "error", this.toString()); + return; + } + + // Set up sort + this.subscribe("headCellClickEvent",this.onEventSortColumn); + + // Set up context menu + //TODO: does trigger have to exist? can trigger be TBODY rather than rows? + if(this.contextMenu && this.contextMenuOptions) { + this.contextMenu = new YAHOO.widget.ContextMenu(this.id+"-cm", { trigger: this._elBody.rows } ); + this.contextMenu.addItem("delete item"); + this.contextMenu.render(document.body); + } + + // Set up event model + elTable = this._elTable; + ///////////////////////////////////////////////////////////////////////////// + // + // DOM Events + // + ///////////////////////////////////////////////////////////////////////////// + //YAHOO.util.Event.addListener(this._elContainer, "focus", this._onFocus, this); + YAHOO.util.Event.addListener(elTable, "click", this._onClick, this); + YAHOO.util.Event.addListener(elTable, "dblclick", this._onDoubleclick, this); + YAHOO.util.Event.addListener(elTable, "mouseout", this._onMouseout, this); + YAHOO.util.Event.addListener(elTable, "mouseover", this._onMouseover, this); + YAHOO.util.Event.addListener(elTable, "mousedown", this._onMousedown, this); + //YAHOO.util.Event.addListener(elTable, "mouseup", this._onMouseup, this); + //YAHOO.util.Event.addListener(elTable, "mousemove", this._onMousemove, this); + YAHOO.util.Event.addListener(elTable, "keydown", this._onKeydown, this); + YAHOO.util.Event.addListener(elTable, "keypress", this._onKeypress, this); + YAHOO.util.Event.addListener(document, "keyup", this._onDocumentKeyup, this); + YAHOO.util.Event.addListener(elTable, "keyup", this._onKeyup, this); + //YAHOO.util.Event.addListener(elTable, "focus", this._onFocus, this); + YAHOO.util.Event.addListener(elTable, "blur", this._onBlur, this); + + ///////////////////////////////////////////////////////////////////////////// + // + // Custom Events + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a mouseover occurs on a TD element. + * + * @event cellMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMouseoverEvent"); + + /** + * Fired when a mouseout occurs on a TD element. + * + * @event cellMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMouseoutEvent"); + + /** + * Fired when a TH cell element is mouseover. + * + * @event headCellMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + * + */ + this.createEvent("headCellMouseoverEvent"); + + /** + * Fired when a TH cell element is mouseout. + * + * @event headCellMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + * + */ + this.createEvent("headCellMouseoutEvent"); + + /** + * Fired when a TABLE element is mouseover. + * + * @event tableMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMouseoverEvent"); + + /** + * Fired when a TABLE element is mouseout. + * + * @event tableMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMouseoutEvent"); + + /** + * Fired when a mousedown occurs on a TD element. + * + * @event cellMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMousedownEvent"); + + /** + * Fired when a TH cell element is mousedown. + * + * @event headCellMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellMousedownEvent"); + + /** + * Fired when a TABLE element is mousedown. + * + * @event tableMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMousedownEvent"); + + /** + * Fired when a CHECKBOX element is clicked. + * + * @event checkboxClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The CHECKBOX element. + */ + this.checkboxClickEvent = this.createEvent("checkboxClickEvent"); + //this.checkboxClickEvent.subscribeEvent.subscribe(this._registerEvent,{type:"checkboxClickEvent"},this); + + /** + * Fired when a RADIO element is clicked. + * + * @event radioClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The RADIO element. + */ + this.createEvent("radioClickEvent"); + + /** + * Fired when a TD element is clicked. + * + * @event cellClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellClickEvent"); + + /** + * Fired when a TH cell element is clicked. + * + * @event headCellClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellClickEvent"); + + /** + * Fired when a TABLE element is clicked. + * + * @event tableClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableClickEvent"); + + /** + * Fired when a TD element is doubleclicked. + * + * @event cellDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellDoubleclickEvent"); + + /** + * Fired when a TH cell element is doubleclicked. + * + * @event headCellDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellDoubleclickEvent"); + + /** + * Fired when a TABLE element is doubleclicked. + * + * @event tableDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableDoubleclickEvent"); + + /** + * Fired when a column is sorted. + * + * @event columnSortEvent + * @param oArgs.column {YAHOO.widget.Column} The Column instance. + * @param oArgs.dir {String} Sort direction "asc" or "desc". + */ + this.createEvent("columnSortEvent"); + + /** + * Fired when an editor is activated. + * + * @event editorShowEvent + * @param oArgs.target {HTMLElement} The TD element. + * @param oArgs.column {YAHOO.widget.Column} The Column instance. + */ + this.createEvent("editorShowEvent"); + + + /** + * Fired when a cell is edited. + * + * @event cellEditEvent + * @param oArgs.target {HTMLElement} The TD element. + * @param oArgs.newData {Object} New data value. + * @param oArgs.oldData {Object} Old data value. + */ + this.createEvent("cellEditEvent"); + + /** + * Fired when a column is resized. + * + * @event columnResizeEvent + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("columnResizeEvent"); + + /** + * Fired when DataTable instance is first initialized. + * + * @event tableInitEvent + */ + this.createEvent("tableInitEvent"); + + /** + * Fired when DataTable instance is focused. + * + * @event tableFocusEvent + */ + this.createEvent("tableFocusEvent"); + + /** + * Fired when data is returned from DataSource. + * + * @event dataReturnEvent + * @param oArgs.request {String} Original request. + * @param oArgs.response {Object} Response object. + */ + this.createEvent("dataReturnEvent"); + + /** + * Fired when DataTable is paginated. + * + * @event paginateEvent + */ + this.createEvent("paginateEvent"); + + /** + * Fired when a TD element is formatted. + * + * @event cellFormatEvent + * @param oArgs.el {HTMLElement} Reference to the TD element. + */ + this.createEvent("cellFormatEvent"); + + /** + * Fired when an element is selected. + * + * @event selectEvent + * @param oArgs.els {Array} An array of the selected element(s). + */ + this.createEvent("selectEvent"); + + /** + * Fired when an element is unselected. + * + * @event unselectEvent + * @param oArgs.els {Array} An array of the unselected element(s). + */ + this.createEvent("unselectEvent"); + + /** + * Fired when an element is highlighted. + * + * @event highlightEvent + * @param oArgs.els {Array} An array of the highlighted element(s). + */ + this.createEvent("highlightEvent"); + + /** + * Fired when an element is unhighlighted. + * + * @event unhighlightEvent + * @param oArgs.els {Array} An array of the unhighlighted element(s). + */ + this.createEvent("unhighlightEvent"); + + /** + * Fired when one or more TR elements are deleted. + * + * @event rowDeleteEvent + * @param oArgs.rowIndexes {Array} The indexes of the deleted rows. + */ + this.createEvent("rowDeleteEvent"); + this.subscribe("rowDeleteEvent", this._onRowDelete); + + /** + * Fired when one or more TR elements are appended. + * + * @event rowAppendEvent + * @param oArgs.rowIds {Array} The IDs of the appended rows. + */ + this.createEvent("rowAppendEvent"); + + /** + * Fired when a Record is updated in the RecordSet. + * + * @event recordSetUpdateEvent + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} New data. + */ + this.createEvent("recordSetUpdateEvent"); + this._oRecordSet.subscribe("recordUpdateEvent", this._onRecordUpdate, this, true); + + + YAHOO.widget.DataTable._nCount++; + YAHOO.log("DataTable initialized", "info", this.toString()); + this.fireEvent("tableInitEvent"); +}; + +if(YAHOO.util.EventProvider) { + YAHOO.augment(YAHOO.widget.DataTable, YAHOO.util.EventProvider); +} +else { + YAHOO.log("Missing dependency: YAHOO.util.EventProvider","error",this.toString()); +} + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Class name assigned to TBODY element that holds data rows. + * + * @property CLASS_BODY + * @type String + * @static + * @final + * @default "yui-dt-body" + */ +YAHOO.widget.DataTable.CLASS_BODY = "yui-dt-body"; + +/** + * Class name assigned to container element within THEAD. + * + * @property CLASS_HEADCONTAINER + * @type String + * @static + * @final + */ +YAHOO.widget.DataTable.CLASS_HEADCONTAINER = "yui-dt-headcontainer"; + +/** + * Class name assigned to resizer handle element within THEAD. + * + * @property CLASS_HEADRESIZER + * @type String + * @static + * @final + * @default "yui-dt-headresizer" + */ +YAHOO.widget.DataTable.CLASS_HEADRESIZER = "yui-dt-headresizer"; + +/** + * Class name assigned to text displayed within THEAD. + * + * @property CLASS_HEADTEXT + * @type String + * @static + * @final + * @default "yui-dt-headtext" + */ +YAHOO.widget.DataTable.CLASS_HEADTEXT = "yui-dt-headtext"; + +/** + * Class name assigned to even TR elements. + * + * @property CLASS_EVEN + * @type String + * @static + * @final + * @default "yui-dt-even + */ +YAHOO.widget.DataTable.CLASS_EVEN = "yui-dt-even"; + +/** + * Class name assigned to odd TR elements. + * + * @property CLASS_ODD + * @type String + * @static + * @final + * @default "yui-dt-odd" + */ +YAHOO.widget.DataTable.CLASS_ODD = "yui-dt-odd"; + +/** + * Class name assigned to empty elements. + * + * @property CLASS_EMPTY + * @type String + * @static + * @final + * @default "yui-dt-empty" + */ +YAHOO.widget.DataTable.CLASS_EMPTY = "yui-dt-empty"; + +/** + * Class name assigned to loading message. + * + * @property CLASS_LOADING + * @type String + * @static + * @final + * @default "yui-dt-loading" + */ +YAHOO.widget.DataTable.CLASS_LOADING = "yui-dt-loading"; + +/** + * Class name assigned to selected elements. + * + * @property CLASS_SELECTED + * @type String + * @static + * @final + * @default "yui-dt-selected" + */ +YAHOO.widget.DataTable.CLASS_SELECTED = "yui-dt-selected"; + +/** + * Class name assigned to highlighted element. + * + * @property CLASS_HIGHLIGHT + * @type String + * @static + * @final + * @default "yui-dt-highlight" + */ +YAHOO.widget.DataTable.CLASS_HIGHLIGHT = "yui-dt-highlight"; + +/** + * Class name assigned to certain elements of a scrollable DataTable. + * + * @property CLASS_SCROLLABLE + * @type String + * @static + * @final + * @default "yui-dt-scrollable" + */ +YAHOO.widget.DataTable.CLASS_SCROLLABLE = "yui-dt-scrollable"; + +/** + * Class name assigned to column headers of sortable Columns. + * + * @property CLASS_SORTABLE + * @type String + * @static + * @final + * @default "yui-dt-sortable" + */ +YAHOO.widget.DataTable.CLASS_SORTABLE = "yui-dt-sortable"; + +/** + * Class name assigned to column headers when sorted in ascending order. + * + * @property CLASS_SORTEDBYASC + * @type String + * @static + * @final + * @default "yui-dt-sortedbyasc" + */ +YAHOO.widget.DataTable.CLASS_SORTEDBYASC = "yui-dt-sortedbyasc"; + +/** + * Class name assigned to column headers when sorted in descending order. + * + * @property CLASS_SORTEDBYDESC + * @type String + * @static + * @final + * @default "yui-dt-sortedbydesc" + */ +YAHOO.widget.DataTable.CLASS_SORTEDBYDESC = "yui-dt-sortedbydesc"; + +/** + * Class name assigned to the pagination link "<<". + * + * @property CLASS_FIRSTLINK + * @type String + * @static + * @final + * @default "yui-dt-firstlink" + */ +YAHOO.widget.DataTable.CLASS_FIRSTLINK = "yui-dt-firstlink"; + +/** + * Class name assigned to the pagination link "<<" when it is disabled. + * + * @property CLASS_FIRSTPAGE + * @type String + * @static + * @final + * @default "yui-dt-firstpage" + */ +YAHOO.widget.DataTable.CLASS_FIRSTPAGE = "yui-dt-firstpage"; + +/** + * Class name assigned to the pagination link ">>". + * + * @property CLASS_LASTLINK + * @type String + * @static + * @final + * @default "yui-dt-lastlink" + */ +YAHOO.widget.DataTable.CLASS_LASTLINK = "yui-dt-lastlink"; + +/** + * Class name assigned to the pagination link ">>" when it is disabled. + * + * @property CLASS_LASTPAGE + * @type String + * @static + * @final + * @default "yui-dt-lastpage" + */ +YAHOO.widget.DataTable.CLASS_LASTPAGE = "yui-dt-lastpage"; + +/** + * Class name assigned to the pagination link "<". + * + * @property CLASS_PREVLINK + * @type String + * @static + * @final + * @default "yui-dt-prevlink" + */ +YAHOO.widget.DataTable.CLASS_PREVLINK = "yui-dt-prevlink"; + +/** + * Class name assigned to the pagination link "<" when it is disabled. + * + * @property CLASS_PREVPAGE + * @type String + * @static + * @final + * @default "yui-dt-prevpage" + */ +YAHOO.widget.DataTable.CLASS_PREVPAGE = "yui-dt-prevpage"; + +/** + * Class name assigned to the pagination link ">". + * + * @property CLASS_NEXTLINK + * @type String + * @static + * @final + * @default "yui-dt-nextlink" + */ +YAHOO.widget.DataTable.CLASS_NEXTLINK = "yui-dt-nextlink"; + +/** + * Class name assigned to the pagination link ">" when it is disabled. + * + * @property CLASS_NEXTPAGE + * @type String + * @static + * @final + * @default "yui-dt-nextpage" + */ +YAHOO.widget.DataTable.CLASS_NEXTPAGE = "yui-dt-nextpage"; + + +/** + * Class name assigned to pagination links to specific page numbers. + * + * @property CLASS_PAGELINK + * @type String + * @static + * @final + * @default "yui-dt-pagelink" + */ +YAHOO.widget.DataTable.CLASS_PAGELINK = "yui-dt-pagelink"; + +/** + * Class name assigned to pagination links for specific page numbers that are disabled. + * + * @property CLASS_CURRENTPAGE + * @type String + * @static + * @final + * @default "yui-dt-currentpage" + */ +YAHOO.widget.DataTable.CLASS_CURRENTPAGE = "yui-dt-currentpage"; + +/** + * Class name assigned to the pagination SELECT element. + * + * @property CLASS_PAGESELECT + * @type String + * @static + * @final + * @default "yui-dt-pageselect" + */ +YAHOO.widget.DataTable.CLASS_PAGESELECT = "yui-dt-pageselect"; + +/** + * Class name assigned to the pagination links container element. + * + * @property CLASS_PAGELINKS + * @type String + * @static + * @final + * @default "yui-dt-pagelinks" + */ +YAHOO.widget.DataTable.CLASS_PAGELINKS = "yui-dt-pagelinks"; + +/** + * Class name assigned to editable TD elements. + * + * @property CLASS_EDITABLE + * @type String + * @static + * @final + * @default "yui-dt-editable" + */ +YAHOO.widget.DataTable.CLASS_EDITABLE = "yui-dt-editable"; + +/** + * Class name assigned to TD elements of type "checkbox". + * + * @property CLASS_CHECKBOX + * @type String + * @static + * @final + * @default "yui-dt-checkbox" + */ +YAHOO.widget.DataTable.CLASS_CHECKBOX = "yui-dt-checkbox"; + +/** + * Class name assigned to TD elements of type "currency". + * + * @property CLASS_CURRENCY + * @type String + * @static + * @final + * @default "yui-dt-currency" + */ +YAHOO.widget.DataTable.CLASS_CURRENCY = "yui-dt-currency"; + +/** + * Class name assigned to TD elements of type "date". + * + * @property CLASS_DATE + * @type String + * @static + * @final + * @default "yui-dt-date" + */ +YAHOO.widget.DataTable.CLASS_DATE = "yui-dt-date"; + +/** + * Class name assigned to TD elements of type "email". + * + * @property CLASS_EMAIL + * @type String + * @static + * @final + * @default "yui-dt-email" + */ +YAHOO.widget.DataTable.CLASS_EMAIL = "yui-dt-email"; + +/** + * Class name assigned to TD elements of type "link". + * + * @property CLASS_LINK + * @type String + * @static + * @final + * @default "yui-dt-link" + */ +YAHOO.widget.DataTable.CLASS_LINK = "yui-dt-link"; + +/** + * Class name assigned to TD elements of type "number". + * + * @property CLASS_NUMBER + * @type String + * @static + * @final + * @default "yui-dt-number" + */ +YAHOO.widget.DataTable.CLASS_NUMBER = "yui-dt-number"; + +/** + * Class name assigned to TD elements of type "string". + * + * @property CLASS_STRING + * @type String + * @static + * @final + * @default "yui-dt-string" + */ +YAHOO.widget.DataTable.CLASS_STRING = "yui-dt-string"; + +/** + * Message to display if DataTable has no data. + * + * @property MSG_EMPTY + * @type String + * @static + * @final + * @default "No records found." + */ +YAHOO.widget.DataTable.MSG_EMPTY = "No records found."; + +/** + * Message to display while DataTable is loading data. + * + * @property MSG_LOADING + * @type String + * @static + * @final + * @default "Loading data..." + */ +YAHOO.widget.DataTable.MSG_LOADING = "Loading data..."; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataTable instances. + * + * @property _nCount + * @type Number + * @private + * @static + */ +YAHOO.widget.DataTable._nCount = 0; + +/** + * Instance index. + * + * @property _nIndex + * @type Number + * @private + */ +YAHOO.widget.DataTable.prototype._nIndex = null; + +/** + * Unique instance name. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.DataTable.prototype._sName = null; + +//TODO: convert these to public members + +/** + * Container element reference. Is null unless the TABLE is built from scratch into the + * provided container. + * + * @property _elContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elContainer = null; + +/** + * TABLE element reference. + * + * @property _elTable + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elTable = null; + +/** + * TBODY element reference. + * + * @property _elBody + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elBody = null; + +/** + * ColumnSet instance. + * + * @property _oColumnSet + * @type YAHOO.widget.ColumnSet + * @private + */ +YAHOO.widget.DataTable.prototype._oColumnSet = null; + +/** + * RecordSet instance. + * + * @property _oRecordSet + * @type YAHOO.widget.RecordSet + * @private + */ +YAHOO.widget.DataTable.prototype._oRecordSet = null; + +/** + * Array of Records that are in the selected state. + * + * @property _aSelectedRecords + * @type YAHOO.widget.Record[] + * @private + */ +YAHOO.widget.DataTable.prototype._aSelectedRecords = null; + +/** + * Internal variable to track whether widget has focus. + * + * @property _bFocused + * @type Boolean + * @private + */ +YAHOO.widget.DataTable.prototype._bFocused = false; + +/** + * Total number of pages, calculated on the fly. + * + * @property _totalPages + * @type Number + * @private + */ +YAHOO.widget.DataTable.prototype._totalPages = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates HTML markup for TABLE, THEAD, TBODY. + * + * @method _initTable + * @private + */ +YAHOO.widget.DataTable.prototype._initTable = function() { + // Clear the container + this._elContainer.innerHTML = ""; + + // Set up scrolling + if(this.scrollable) { + //TODO: conf height + YAHOO.util.Dom.addClass(this._elContainer,YAHOO.widget.DataTable.CLASS_SCROLLABLE); + } + + // Create TABLE + this._elTable = this._elContainer.appendChild(document.createElement("table")); + var elTable = this._elTable; + elTable.tabIndex = 0; + + // Create SUMMARY, if applicable + if(this.summary) { + elTable.summary = this.summary; + } + + // Create CAPTION, if applicable + if(this.caption) { + this._elCaption = elTable.appendChild(document.createElement("caption")); + this._elCaption.innerHTML = this.caption; + } + + // Create THEAD + this._initHead(elTable, this._oColumnSet); + + + // Create TBODY for messages + var elMsgBody = document.createElement("tbody"); + elMsgBody.tabIndex = -1; + this._elMsgRow = elMsgBody.appendChild(document.createElement("tr")); + var elMsgRow = this._elMsgRow; + var elMsgCell = elMsgRow.appendChild(document.createElement("td")); + elMsgCell.colSpan = this._oColumnSet.keys.length; + this._elMsgCell = elMsgCell; + this._elMsgBody = elTable.appendChild(elMsgBody); + this.showLoadingMessage(); + + // Create TBODY for data + this._elBody = elTable.appendChild(document.createElement("tbody")); + this._elBody.tabIndex = -1; + YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_BODY); + if(this.scrollable) { + YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_SCROLLABLE); + } +}; + +/** + * Populates THEAD element with TH cells as defined by ColumnSet. + * + * @method _initHead + * @private + */ +YAHOO.widget.DataTable.prototype._initHead = function() { + var i,oColumn; + + // Create THEAD + var elHead = document.createElement("thead"); + elHead.tabIndex = -1; + + // Iterate through each row of Column headers... + var colTree = this._oColumnSet.tree; + for(i=0; i<colTree.length; i++) { + var elHeadRow = elHead.appendChild(document.createElement("tr")); + elHeadRow.id = this.id+"-hdrow"+i; + + // ...and create THEAD cells + for(var j=0; j<colTree[i].length; j++) { + oColumn = colTree[i][j]; + var elHeadCell = elHeadRow.appendChild(document.createElement("th")); + elHeadCell.id = oColumn.getId(); + this._initHeadCell(elHeadCell,oColumn,i,j); + } + } + + this._elHead = this._elTable.appendChild(elHead); + + // Add Resizer only after DOM has been updated... + // ...and skip the last column + for(i=0; i<this._oColumnSet.keys.length-1; i++) { + oColumn = this._oColumnSet.keys[i]; + if(oColumn.resizeable && YAHOO.util.DD) { + //TODO: deal with fixed width tables + //TODO: no more oColumn.isLast + if(!this.fixedWidth || (this.fixedwidth && !oColumn.isLast)) { + // TODO: better way to get elHeadContainer + var elHeadContainer = (YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_HEADCONTAINER,"div",YAHOO.util.Dom.get(oColumn.getId())))[0]; + var elHeadResizer = elHeadContainer.appendChild(document.createElement("span")); + elHeadResizer.id = oColumn.getId() + "-resizer"; + YAHOO.util.Dom.addClass(elHeadResizer,YAHOO.widget.DataTable.CLASS_HEADRESIZER); + oColumn.ddResizer = new YAHOO.util.WidthResizer( + this, oColumn.getId(), elHeadResizer.id, elHeadResizer.id); + var cancelClick = function(e) { + YAHOO.util.Event.stopPropagation(e); + }; + YAHOO.util.Event.addListener(elHeadResizer,"click",cancelClick); + } + if(this.fixedWidth) { + elHeadContainer.style.overflow = "hidden"; + elHeadContent.style.overflow = "hidden"; + } + } + } + + YAHOO.log("THEAD with " + this._oColumnSet.keys.length + " columns created","info",this.toString()); +}; + +/** + * Populates TH cell as defined by Column. + * + * @method _initHeadCell + * @param elHeadCell {HTMLElement} TH cell element reference. + * @param oColumn {YAHOO.widget.Column} Column object. + * @param row {number} Row index. + * @param col {number} Column index. + * @private + */ +YAHOO.widget.DataTable.prototype._initHeadCell = function(elHeadCell,oColumn,row,col) { + // Clear out the cell of prior content + // TODO: purgeListeners and other validation-related things + var index = this._nIndex; + elHeadCell.columnIndex = col; + if(oColumn.abbr) { + elHeadCell.abbr = oColumn.abbr; + } + if(oColumn.width) { + elHeadCell.style.width = oColumn.width; + } + if(oColumn.className) { + YAHOO.util.Dom.addClass(elHeadCell,oColumn.className); + } + // Apply CSS for sorted tables + if(this.sortedBy && this.sortedBy.colKey) { + if(this.sortedBy.colKey == oColumn.key) { + var sortClass = (this.sortedBy.dir && (this.sortedBy.dir != "asc")) ? + YAHOO.widget.DataTable.CLASS_SORTEDBYDESC : + YAHOO.widget.DataTable.CLASS_SORTEDBYASC; + YAHOO.util.Dom.addClass(elHeadCell,sortClass); + this.sortedBy._id = elHeadCell.id; + } + } + + elHeadCell.innerHTML = ""; + + var elHeadContainer = elHeadCell.appendChild(document.createElement("div")); + elHeadContainer.id = this.id+"-hdrow"+row+"-container"+col; + YAHOO.util.Dom.addClass(elHeadContainer,YAHOO.widget.DataTable.CLASS_HEADCONTAINER); + var elHeadContent = elHeadContainer.appendChild(document.createElement("span")); + elHeadContent.id = this.id+"-hdrow"+row+"-text"+col; + YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_HEADTEXT); + + elHeadCell.rowSpan = oColumn.getRowSpan(); + elHeadCell.colSpan = oColumn.getColSpan(); + + var contentText = oColumn.text || oColumn.key || ""; + if(oColumn.sortable) { + YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_SORTABLE); + //TODO: Make hash configurable to be a server link + //TODO: Make title configurable + //TODO: Separate contentText from an accessibility link that says + // Click to sort ascending and push it offscreen + elHeadContent.innerHTML = "<a href=\"#\" title=\"Click to sort\">" + contentText + "</a>"; + //elHeadContent.innerHTML = contentText; + + } + else { + elHeadContent.innerHTML = contentText; + } +}; + +/** + * Add a new row to table body at position i if given, or to the bottom + * otherwise. Does not fire any events. + * + * @method _addRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to add row. + * @return {String} ID of the added TR element. + * @private + */ +YAHOO.widget.DataTable.prototype._addRow = function(oRecord, index) { + this.hideTableMessages(); + + // Is this an insert or an append? + var insert = (isNaN(index)) ? false : true; + if(!insert) { + index = this._elBody.rows.length; + } + + var oColumnSet = this._oColumnSet; + var oRecordSet = this._oRecordSet; + + var elRow = (insert && this._elBody.rows[index]) ? + this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]) : + this._elBody.appendChild(document.createElement("tr")); + var recId = oRecord.id; + elRow.id = this.id+"-bdrow"+index; + elRow.recordId = recId; + + // Create TBODY cells + for(var j=0; j<oColumnSet.keys.length; j++) { + var oColumn = oColumnSet.keys[j]; + var elCell = elRow.appendChild(document.createElement("td")); + elCell.id = this.id+"-bdrow"+index+"-cell"+j; + elCell.headers = oColumn.id; + elCell.columnIndex = j; + elCell.headers = oColumnSet.headers[j]; + + oColumn.format(elCell, oRecord); + /*p.abx {word-wrap:break-word;} +ought to solve the problem for Safari (the long words will wrap in your +tds, instead of overflowing to the next td. +(this is supported by IE win as well, so hide it if needed). + +One thing, though: it doesn't work in combination with +'white-space:nowrap'.*/ + +// need a div wrapper for safari? + if(this.fixedWidth) { + elCell.style.overflow = "hidden"; + //elCell.style.width = "20px"; + } + } + + if(this.isEmpty && (this._elBody.rows.length > 0)) { + //TODO: hideMessages() + //this._initRows() + //this.isEmpty = false; + } + + // Striping + if(!insert) { + if(index%2) { + YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_ODD); + } + else { + YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_EVEN); + } + } + else { + //TODO: pass in a subset for better performance + this._restripeRows(); + } + + return elRow.id; +}; + +/** + * Restripes rows by applying class YAHOO.widget.DataTable.CLASS_EVEN or + * YAHOO.widget.DataTable.CLASS_ODD. + * + * @method _restripeRows + * @param range {Number} (optional) Range defines a subset of rows to restripe. + * @private + */ +YAHOO.widget.DataTable.prototype._restripeRows = function(range) { + if(!range) { + var rows = this._elBody.rows; + for(var i=0; i<rows.length; i++) { + if(i%2) { + YAHOO.util.Dom.removeClass(rows[i], YAHOO.widget.DataTable.CLASS_EVEN); + YAHOO.util.Dom.addClass(rows[i], YAHOO.widget.DataTable.CLASS_ODD); + } + else { + YAHOO.util.Dom.removeClass(rows[i], YAHOO.widget.DataTable.CLASS_ODD); + YAHOO.util.Dom.addClass(rows[i], YAHOO.widget.DataTable.CLASS_EVEN); + } + } + } + else { + //TODO: allow restriping of a subset of rows for performance + } +}; + +/** + * Updates existing row at position i with data from the given Record. Does not + * fire any events. + * + * @method _updateRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to update row. + * @return {String} ID of the updated TR element. + * @private + */ +YAHOO.widget.DataTable.prototype._updateRow = function(oRecord, index) { + this.hideTableMessages(); + + var elRow = this._elBody.rows[index]; + elRow.recordId = oRecord.id; + + var columns = this._oColumnSet.keys; + // ...Update TBODY cells with new data + for(var j=0; j<columns.length; j++) { + columns[j].format(elRow.cells[j], oRecord); + } + return elRow.id; +}; + +/** + * Sets elements to selected state. Does not fire any events. Does not affect + * internal tracker. + * + * @method _select + * @param els {HTMLElement[] | String[]} Array of HTML elements by reference or ID string. + * @private + */ +YAHOO.widget.DataTable.prototype._select = function(els) { +//TODO: put els in an array if it is just one element? + for(var i=0; i<els.length; i++) { + // Set the style + YAHOO.util.Dom.addClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED); + } + this._lastSelected = els[els.length-1]; +}; + +/** + * Sets elements to the unselected state. Does not fire any events. Does not + * affect internal tracker. + * + * @method _unselect + * @param els {HTMLElement[] | String[]} Array of HTML elements by reference or ID string. + * @private + */ +YAHOO.widget.DataTable.prototype._unselect = function(els) { + for(var i=0; i<els.length; i++) { + // Remove the style + YAHOO.util.Dom.removeClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED); + } +}; + +/** + * Unselects all selected rows. Does not fire any events. Does not affect internal + * tracker. + * + * @method _unselectAllRows + * @private + */ +YAHOO.widget.DataTable.prototype._unselectAllRows = function() { + var selectedRows = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); + this._unselect(selectedRows); +}; + +/** + * Unselects all selected cells. + * + * @method _unselectAllCells + * @private + */ +YAHOO.widget.DataTable.prototype._unselectAllCells = function() { + var selectedCells = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); + this._unselect(selectedCells); +}; + +/** + * Deletes a given row element as well its corresponding Record in the RecordSet. + * Does not fire any events. + * + * @method _deleteRow + * @param elRow {element} HTML table row element reference. + * @private + */ +YAHOO.widget.DataTable.prototype._deleteRow = function(elRow) { +//TODO: sniff elRow.rowIndex + var allRows = this._elBody.rows; + var id = elRow.id; + var recordId = elRow.recordId; + for(var i=0; i< allRows.length; i++) { + if(id == allRows[i].id) { + this._elBody.deleteRow(i); + + // Update the RecordSet + this._oRecordSet.deleteRecord(i); + break; + } + } + if(this._elBody.rows.length === 0) { + this.showEmptyMessage(); + } +}; +///////////////////////////////////////////////////////////////////////////// +// +// Private DOM Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles blur events on the TABLE element. + * + * @method _onBlur + * @param e {HTMLEvent} The blur event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onBlur = function(e, oSelf) { + this._bFocused = false; +}; + +/** + * Handles mouseover events on the TABLE element. + * + * @method _onMouseover + * @param e {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMouseover = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + oSelf.fireEvent("headCellMouseoverEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMouseoverEvent",{target:elTarget,event:e}); +}; + +/** + * Handles mouseout events on the TABLE element. + * + * @method _onMouseout + * @param e {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMouseout = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + oSelf.fireEvent("headCellMouseoutEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMouseoutEvent",{target:elTarget,event:e}); +}; + +/** + * Handles mousedown events on the TABLE element. + * + * @method _onMousedown + * @param e {HTMLEvent} The mousedown event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMousedown = function(e, oSelf) { + //YAHOO.util.Event.stopEvent(e); + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellMousedownEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMousedownEvent",{target:elTarget,event:e}); +}; + +/** + * Handles click events on the TABLE element. + * + * @method _onClick + * @param e {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onClick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; // True if event should stop propagating + + if(oSelf.activeEditor) { //&& (oSelf.activeEditor.column != column) + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "input": + if(elTarget.type.toLowerCase() == "checkbox") { + oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e}); + } + else if(elTarget.type.toLowerCase() == "radio") { + oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e}); + } + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellClickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + elTag = elTarget.tagName.toLowerCase(); + } + } + oSelf.focusTable(); + oSelf.fireEvent("tableClickEvent",{target:elTarget,event:e}); +}; + +/** + * Handles doubleclick events on the TABLE element. + * + * @method _onDoubleclick + * @param e {HTMLEvent} The doubleclick event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onDoubleclick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if(oSelf.activeEditor) { //&& (oSelf.activeEditor.column != column) + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellDoubleclickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellDoubleclickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + elTag = elTarget.tagName.toLowerCase(); + } + } + oSelf.fireEvent("tableDoubleclickEvent",{target:elTarget,event:e}); +}; + +/** + * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac. + * + * @method _onKeypress + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeypress = function(e, oSelf) { + var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1); + if(isMac) { + // arrow down + if(e.keyCode == 40) { + YAHOO.util.Event.stopEvent(e); + } + // arrow up + else if(e.keyCode == 38) { + YAHOO.util.Event.stopEvent(e); + } + } +}; + +/** + * Handles keydown events on the TABLE. Executes arrow selection. + * + * @method _onKeydown + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeydown = function(e, oSelf) { + var oldSelected = oSelf._lastSelected; + // Only move selection if one is already selected + // TODO: config to allow selection even if one is NOT already selected + // TODO: if something isn't selected already, arrow key should select first or last one + if(oldSelected && oSelf.isSelected(oldSelected)) { + var newSelected; + // arrow down + if(e.keyCode == 40) { + YAHOO.util.Event.stopEvent(e); + // row mode + if(oldSelected.tagName.toLowerCase() == "tr") { + // We have room to move down + if(oldSelected.sectionRowIndex+1 < oSelf._elBody.rows.length) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex+1]; + oSelf.select(newSelected); + + } + } + // cell mode + else if(oldSelected.tagName.toLowerCase() == "td") { + /*// We have room to move down + if(oldSelected.sectionRowIndex+1 < oSelf._elBody.rows.length) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex+1]; + oSelf.select(newSelected); + }*/ + } + // Arrows can cause widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + // arrow up + else if(e.keyCode == 38) { + YAHOO.util.Event.stopEvent(e); + // row mode + if(oldSelected.tagName.toLowerCase() == "tr") { + // We have room to move up + if((oldSelected.sectionRowIndex > 0)) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1]; + oSelf.select(newSelected); + } + } + // cell mode + else if(oldSelected.tagName.toLowerCase() == "td") { + // We have room to move up + if((oldSelected.sectionRowIndex > 0)) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1]; + oSelf.select(newSelected); + } + } + // Arrows can cause widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + } +}; + +/** + * Handles keyup events on the TABLE. Executes deletion + * + * @method _onKeyup + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeyup = function(e, oSelf) { + var key = YAHOO.util.Event.getCharCode(e); + // delete + if(key == 46) {//TODO: && this.isFocused + //TODO: delete row + } +}; + +/** + * Handles keyup events on the DOCUMENT. Executes interaction with editor. + * + * @method _onDocumentKeyup + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onDocumentKeyup = function(e, oSelf) { + // esc Clears active editor + if((e.keyCode == 27) && (oSelf.activeEditor)) { + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + // enter Saves active editor data + if((e.keyCode == 13) && (oSelf.activeEditor)) { + var elCell = oSelf.activeEditor.cell; + var oColumn = oSelf.activeEditor.column; + var oRecord = oSelf.activeEditor.record; + var oldValue = oRecord[oColumn.key]; + var newValue = oSelf.activeEditor.getValue(); + + //Update Record + //TODO: Column.key may be null! + oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue); + + //Update cell + oSelf.formatCell(elCell); + + // Hide editor + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue}); + } +}; + +/** + * Handles click events on paginator links. + * + * @method _onPagerClick + * @param e {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onPagerClick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; // True if event should stop propagating + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "a": + YAHOO.util.Event.stopEvent(e); + switch(elTarget.className) { + case YAHOO.widget.DataTable.CLASS_PAGELINK: + oSelf.showPage(parseInt(elTarget.innerHTML,10)); + break; + case YAHOO.widget.DataTable.CLASS_FIRSTLINK: + oSelf.showPage(1); + break; + case YAHOO.widget.DataTable.CLASS_LASTLINK: + oSelf.showPage(oSelf._totalPages); + break; + case YAHOO.widget.DataTable.CLASS_PREVLINK: + oSelf.showPage(oSelf.pageCurrent-1); + break; + case YAHOO.widget.DataTable.CLASS_NEXTLINK: + oSelf.showPage(oSelf.pageCurrent+1); + break; + } + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } +}; + +/** + * Handles change events on paginator SELECT. + * + * @method _onPagerSelect + * @param e {HTMLEvent} The change event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onPagerSelect = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + + // How many rows per page + var oldRowsPerPage = oSelf.rowsPerPage; + var rowsPerPage = parseInt(elTarget[elTarget.selectedIndex].text,10); + if(rowsPerPage && (rowsPerPage != oSelf.rowsPerPage)) { + if(rowsPerPage > oldRowsPerPage) { + oSelf.pageCurrent = 1; + } + oSelf.rowsPerPage = rowsPerPage; + oSelf.paginateRows(); + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private Custom Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles row delete events. + * + * @method _onRowDelete + * @param oArgs.rowIndexes {Number[]} The indexes of the deleted rows. + * @private + */ +YAHOO.widget.DataTable.prototype._onRowDelete = function(oArgs) { + this._restripeRows(); +}; + +/** + * Passes along recordSetUpdate Event when recordUpdateEvent is caught from RecordSet. + * + * @event _onRecordUpdate + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} New data. + * @private + */ +YAHOO.widget.DataTable.prototype._onRecordUpdate = function(oArgs) { + this.fireEvent("recordSetUpdateEvent",oArgs); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * DataSource instance. + * + * @property dataSource + * @type YAHOO.util.DataSource + */ +YAHOO.widget.DataTable.prototype.dataSource = null; + +/** + * Initial request to send to DataSource. + * + * @property initialRequest + * @type String + * @default "" + */ +YAHOO.widget.DataTable.prototype.initialRequest = ""; + +/** + * Defines value of CAPTION attribute. + * + * @property caption + * @type String + */ +YAHOO.widget.DataTable.prototype.caption = null; + +/** + * Defines value of SUMMARY attribute. + * + * @property summary + * @type String + */ +YAHOO.widget.DataTable.prototype.summary = null; + +/** + * True if DataTable's width is a fixed size. + * + * @property fixedWidth + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.fixedWidth = false; + +/** + * True if TBODY should scroll while THEAD remains fixed. + * + * @property scrollable + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.scrollable = false; + +/** + * True if only one row may be selected at a time. + * + * @property rowSingleSelect + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.rowSingleSelect = false; + +/** + * ContextMenu instance. + * + * @property contextMenu + * @type YAHOO.widget.ContextMenu + */ +YAHOO.widget.DataTable.prototype.contextMenu = null; + +/** + * Current page number. + * + * @property pageCurrent + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.pageCurrent = 1; + +/** + * Rows per page. + * + * @property rowsPerPage + * @type Number + * @default 500 + */ +YAHOO.widget.DataTable.prototype.rowsPerPage = 500; + +/** + * Record index of first row of current page. + * + * @property startRecordIndex + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.startRecordIndex = 1; + +/** + * Maximum number of pagination page links to show. Any page links beyond this number are + * available through the "<" and ">" links. A negative value will display all page links. + * + * @property pageLinksLength + * @type Number + * @default -1 + */ +YAHOO.widget.DataTable.prototype.pageLinksLength = -1; + +/** + * Options to show in the rows-per-page pagination dropdown, should be an array + * of numbers. Null or an empty array causes no dropdown to be displayed. + * + * @property rowsPerPageDropdown + * @type Number[] + */ +YAHOO.widget.DataTable.prototype.rowsPerPageDropdown = null; + +/** + * First pagination page link. + * + * @property pageLinksStart + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.pageLinksStart = 1; + +/** + * An array of DIV elements into which pagination elements can go. + * + * @property pagers + * @type HTMLElement[] + */ +YAHOO.widget.DataTable.prototype.pagers = null; + +/** + * True if the DataTable is empty of data. False if DataTable is populated with + * data from RecordSet. + * + * @property isEmpty + * @type Boolean + */ +YAHOO.widget.DataTable.prototype.isEmpty = false; + +/** + * Object literal holds sort metadata: + * sortedBy.colKey + * sortedBy.dir + * + * + * @property sortedBy + * @type Object + */ +YAHOO.widget.DataTable.prototype.sortedBy = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance. + */ + +YAHOO.widget.DataTable.prototype.toString = function() { + return "DataTable " + this._sName; +}; + +/** + * Returns element reference to TABLE. + * + * @method getTable + * @return {HTMLElement} Reference to TABLE element. + */ +YAHOO.widget.DataTable.prototype.getTable = function() { + return(this._elTable); +}; + +/** + * Returns element reference to THEAD. + * + * @method getHead + * @return {HTMLElement} Reference to THEAD element. + */ +YAHOO.widget.DataTable.prototype.getHead = function() { + return(this._elHead); +}; + +/** + * Returns element reference to TBODY. + * + * @method getBody + * @return {HTMLElement} Reference to TBODY element. + */ +YAHOO.widget.DataTable.prototype.getBody = function() { + return(this._elBody); +}; + +/** + * Returns element reference to given TR cell. + * + * @method getRow + * @param index {Number} Row number. + * @return {HTMLElement} Reference to TR element. + */ +YAHOO.widget.DataTable.prototype.getRow = function(index) { + return(this._elBody.rows[index]); +}; + +/** + * Returns element reference to given TD cell. + * + * @method getCell + * @param row {Number} Row number. + * @param col {Number} Column number. + * @return {HTMLElement} Reference to TD element. + */ +YAHOO.widget.DataTable.prototype.getCell = function(row, col) { + return(this._elBody.rows[row].cells[col]); +}; + +/** + * Placeholder row to indicate table data is empty. + * + * @method showEmptyMessage + */ +YAHOO.widget.DataTable.prototype.showEmptyMessage = function() { + if(this.isEmpty) { + return; + } + if(this.isLoading) { + this.hideTableMessages(); + } + + this._elMsgBody.style.display = ""; + var elCell = this._elMsgCell; + elCell.className = YAHOO.widget.DataTable.CLASS_EMPTY; + elCell.innerHTML = YAHOO.widget.DataTable.MSG_EMPTY; + this.isEmpty = true; +}; + +/** + * Placeholder row to indicate table data is loading. + * + * @method showLoadingMessage + */ +YAHOO.widget.DataTable.prototype.showLoadingMessage = function() { + if(this.isLoading) { + return; + } + if(this.isEmpty) { + this.hideTableMessages(); + } + + this._elMsgBody.style.display = ""; + var elCell = this._elMsgCell; + elCell.className = YAHOO.widget.DataTable.CLASS_LOADING; + elCell.innerHTML = YAHOO.widget.DataTable.MSG_LOADING; + this.isLoading = true; +}; + +/** + * Hide any placeholder message row. + * + * @method hideTableMessages + */ +YAHOO.widget.DataTable.prototype.hideTableMessages = function() { + if(!this.isEmpty && !this.isLoading) { + return; + } + + this._elMsgBody.style.display = "none"; + + this.isEmpty = false; + this.isLoading = false; +}; + +/** + * Sets focus on the TABLE element. + * + * @method focusTable + */ +YAHOO.widget.DataTable.prototype.focusTable = function() { + var elTable = this._elTable; + if(!this._bFocused) { + // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets + // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing + // strange unexpected things as the user clicks on buttons and other controls. + setTimeout(function() { elTable.focus(); },0); + this._bFocused = true; + this.fireEvent("tableFocusEvent"); + } +}; + +/** + * Overridable method gives implementers a hook to access data before + * it gets added to RecordSet and rendered to the TBODY. + * + * @method doBeforeLoadData + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + * @return {Boolean} Return true to continue loading data into RecordSet and + * updating DataTable with new Records, false to cancel. + */ +YAHOO.widget.DataTable.prototype.doBeforeLoadData = function(sRequest, oResponse) { + return true; +}; + +/** + * Add rows to bottom of table body. + * + * @method appendRow + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.appendRows = function(aRecords) { + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var rowIds = []; + for(var i=0; i<aRecords.length; i++) { + var rowId = this._addRow(aRecords[i]); + rowIds.push(rowId); + } + + this.fireEvent("rowAppendEvent", {rowIds:rowIds}); + } +}; + +/** + * Add rows to top of table body. + * + * @method insertRows + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.insertRows = function(aRecords) { + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var rowIds = []; + for(var i=0; i<aRecords.length; i++) { + var rowId = this._addRow(aRecords[i],0); + rowIds.push(rowId); + } + + this.fireEvent("rowInsertEvent", {rowIds:rowIds}); + } +}; + +/** + * Replaces existing rows of table body with new Records. + * + * @method replaceRows + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.replaceRows = function(aRecords) { + var i; + + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var elBody = this._elBody; + var elRows = this._elBody.rows; + + // Remove extra rows + while(elBody.hasChildNodes() && (elRows.length > aRecords.length)) { + elBody.deleteRow(0); + } + + // Unselect rows in the UI but keep tracking selected rows + var selectedRecords = this.getSelectedRecordIds(); + if(selectedRecords.length > 0) { + this._unselectAllRows(); + } + + var rowIds = []; + // Format in-place existing rows + for(i=0; i<elRows.length; i++) { + if(aRecords[i]) { + var oRecord = aRecords[i]; + rowIds.push(this._updateRow(oRecord,i)); + } + } + + // Add rows as necessary + for(i=elRows.length; i<aRecords.length; i++) { + rowIds.push(this._addRow(aRecords[i])); + } + + // Select any rows as necessary + for(i=0; i<selectedRecords.length; i++) { + var allRows = elBody.rows; + for(var j=0; j<allRows.length; j++) { + if(selectedRecords[i] == allRows[j].recordId) { + this._select([allRows[j]]); + } + } + } + + this.fireEvent("rowReplaceEvent", {rowIds:rowIds}); + } +}; + +/** + * Convenience method to add a new row to table body at position index if given, + * or to the bottom otherwise. + * + * @method addRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to add row. + */ +YAHOO.widget.DataTable.prototype.addRow = function(oRecord, index) { + if(oRecord) { + var rowId = this._addRow(oRecord, index); + if(index !== undefined) { + this.fireEvent("rowInsertEvent", {rowIds:[rowId]}); + } + else { + this.fireEvent("rowAppendEvent", {rowIds:[rowId]}); + } + } +}; + +/** + * Updates existing row at position index with data from the given Record. + * + * @method updateRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to update row. + */ +YAHOO.widget.DataTable.prototype.updateRow = function(oRecord, index) { + if(oRecord) { + var rowId = this._updateRow(oRecord, index); + this.fireEvent("rowUpdateEvent", {rowIds:[rowId]}); + } +}; + +/** + * Calls delete on selected rows. + * + * @method deleteSelectedRows + */ +YAHOO.widget.DataTable.prototype.deleteRows = function(rows) { + var rowIndexes = []; + for(var i=0; i<rows.length; i++) { + var rowIndex = (rows[i].sectionRowIndex !== undefined) ? rows[i].sectionRowIndex : null; + rowIndexes.push(rowIndex); + this._deleteRow(rows[i]); + this.fireEvent("rowDeleteEvent", {rowIndexes:rowIndexes}); + } +}; + +/** + * Deletes a given row element as well its corresponding Record in the RecordSet. + * + * @method deleteRow + * @param elRow {element} HTML table row element reference. + */ +YAHOO.widget.DataTable.prototype.deleteRow = function(elRow) { + if(elRow) { + var rowIndex = (elRow.sectionRowIndex !== undefined) ? elRow.sectionRowIndex : null; + this._deleteRow(elRow); + this.fireEvent("rowDeleteEvent", {rowIndexes:[rowIndex]}); + } +}; + +/** + * Sets one or more elements to the highlighted state. + * + * @method highlight + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.highlight = function(els) { + if(els.constructor != Array) { + els = [els]; + } + YAHOO.util.Dom.addClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT); + this.fireEvent("highlightEvent",{els:els}); +}; + +/** + * Sets one or more elements to the unhighlighted state. + * + * @method unhighlight + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.unhighlight = function(els) { + if(els.constructor != Array) { + els = [els]; + } + YAHOO.util.Dom.removeClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT); + this.fireEvent("unhighlightEvent",{els:els}); +}; + + +/** + * Sets one or more elements to the selected state. + * + * @method select + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.select = function(els) { + if(els) { + if(els.constructor != Array) { + els = [els]; + } + this._select(els); + + // Add Record ID to internal tracker + var tracker = this._aSelectedRecords || []; + for(var i=0; i<els.length; i++) { + var id = els[i].recordId; + // Remove if already there + // Use Array.indexOf if available... + if(tracker.indexOf && (tracker.indexOf(id) > -1)) { + tracker.splice(tracker.indexOf(id),1); + } + // ...or do it the old-fashioned way + else { + for(var j=0; j<tracker.length; j++) { + if(tracker[j] === id){ + tracker.splice(j,1); + } + } + } + // Add to the end + tracker.push(id); + } + this._aSelectedRecords = tracker; + this.fireEvent("selectEvent",{els:els}); + } +}; + +/** + * Sets one or more elements to the unselected state. + * + * @method unselect + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML element + * reference, element ID, array of HTML elements, or array of element IDs + */ +YAHOO.widget.DataTable.prototype.unselect = function(els) { + if(els) { + if(els.constructor != Array) { + els = [els]; + } + this._unselect(els); + // Remove Record ID from internal tracker + var tracker = this._aSelectedRecords || []; + for(var i=0; i<els.length; i++) { + var id = els[i].recordId; + + // Use Array.indexOf if available... + if(tracker.indexOf && (tracker.indexOf(id) > -1)) { + tracker.splice(tracker.indexOf(id),1); + } + // ...or do it the old-fashioned way + else { + for(var j=0; j<tracker.length; j++) { + if(tracker[j] === id){ + tracker.splice(j,1); + } + } + } + } + this._aSelectedRecords = tracker; + this.fireEvent("unselectEvent",{els:els}); + } +}; + +/** + * Unselects all selected rows. + * + * @method unselectAllRows + */ +YAHOO.widget.DataTable.prototype.unselectAllRows = function() { + var selectedRows = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); + this.unselect(selectedRows); + this.fireEvent("unselectEvent", {els:selectedRows}); +}; + +/** + * Unselects all selected cells. + * + * @method unselectAllCells + */ +YAHOO.widget.DataTable.prototype.unselectAllCells = function() { + var selectedCells = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); + this.unselect(selectedCells); + this.fireEvent("unselectEvent", {els:selectedCells}); +}; + + +/** + * Returns true if given element is select, false otherwise. + * + * @method isSelected + * @param el {element} HTML element reference. + * @return {boolean} True if element is selected. + */ +YAHOO.widget.DataTable.prototype.isSelected = function(el) { + return YAHOO.util.Dom.hasClass(el,YAHOO.widget.DataTable.CLASS_SELECTED); +}; + +/** + * Returns array of selected Record IDs. + * + * @method getSelectedRecordIds + * @return {HTMLElement[]} Array of selected TR elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedRecordIds = function() { + return this._aSelectedRecords || []; +}; + +/** + * Returns array of selected rows. + * + * @method getSelectedRows + * @return {HTMLElement[]} Array of selected TR elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedRows = function() { + //TODO: keep internal array if this is non performant + return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); +}; + +/** + * Returns array of selected TD cells. + * + * @method getSelectedCells + * @return {HTMLElement[]} Array of selected TD elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedCells = function() { + //TODO: keep internal array + return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); +}; + +/** + * Returns pointer to the DataTable instance's ColumnSet instance. + * + * @method getColumnSet + * @return {YAHOO.widget.ColumnSet} ColumnSet instance. + */ +YAHOO.widget.DataTable.prototype.getColumnSet = function() { + return this._oColumnSet; +}; + +/** + * Returns pointer to the DataTable instance's RecordSet instance. + * + * @method getRecordSet + * @return {YAHOO.widget.RecordSet} RecordSet instance. + */ +YAHOO.widget.DataTable.prototype.getRecordSet = function() { + return this._oRecordSet; +}; + +/** + * Displays a specific page of a paginated DataTable. + * + * @method showPage + * @param nPage {Number} Which page. + */ +YAHOO.widget.DataTable.prototype.showPage = function(nPage) { + // Validate input + if(!nPage || isNaN(nPage) || (nPage < 1) || (nPage > this._totalPages)) { + nPage = 1; + } + this.pageCurrent = nPage; + this.paginateRows(); +}; + +/** + * If pagination is enabled, paginates all data in RecordSet and renders + * paginator UI, others renders normal TBODY without any paginator UI. + * + * @method paginateRows + */ +YAHOO.widget.DataTable.prototype.paginateRows = function() { + var i; + + // How many total Records + var recordsLength = this._oRecordSet.getLength(); + + // How many rows this page + var maxRows = (this.rowsPerPage < recordsLength) ? + this.rowsPerPage : recordsLength; + + // How many total pages + this._totalPages = Math.ceil(recordsLength / maxRows); + + // First row of this page + this.startRecordIndex = (this.pageCurrent-1) * this.rowsPerPage; + + // How many page links to display + var pageLinksLength = + ((this.pageLinksLength > 0) && (this.pageLinksLength < this._totalPages)) ? + this.pageLinksLength : this._totalPages; + + // First link of this page + this.pageLinksStart = (Math.ceil(this.pageCurrent/pageLinksLength-1) * pageLinksLength) + 1; + + // Show Records for this page + var pageRecords = this._oRecordSet.getRecords(this.startRecordIndex, this.rowsPerPage); + this.replaceRows(pageRecords); + + if(this.rowsPerPage < recordsLength) { + // Markup for page links + var isFirstPage = (this.pageCurrent == 1) ? true : false; + var isLastPage = (this.pageCurrent == this._totalPages) ? true : false; + var firstPageLink = (isFirstPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_FIRSTPAGE + "\"><<</span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_FIRSTLINK + "\"><<</a> "; + var prevPageLink = (isFirstPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_PREVPAGE + "\"><</span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_PREVLINK + "\"><</a> " ; + var nextPageLink = (isLastPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_NEXTPAGE + "\">></span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_NEXTLINK + "\">></a> " ; + var lastPageLink = (isLastPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_LASTPAGE + "\">>></span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_LASTLINK + "\">>></a> "; + var markup = firstPageLink + prevPageLink; + var maxLinks = (this.pageLinksStart+pageLinksLength < this._totalPages) ? + this.pageLinksStart+pageLinksLength-1 : this._totalPages; + for(i=this.pageLinksStart; i<=maxLinks; i++) { + if(i != this.pageCurrent) { + markup += " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_PAGELINK + "\">" + i + "</a> "; + } + else { + markup += " <span class=\"" + YAHOO.widget.DataTable.CLASS_CURRENTPAGE + "\">" + i + "</span>"; + } + } + markup += nextPageLink + lastPageLink; + + // Markup for rows-per-page dropdowns + var dropdown = this.rowsPerPageDropdown; + var select1, select2; + if(dropdown && (dropdown.constructor == Array) && (dropdown.length > 0)) { + select1 = document.createElement("select"); + select1.className = YAHOO.widget.DataTable.CLASS_PAGESELECT; + select2 = document.createElement("select"); + select2.className = YAHOO.widget.DataTable.CLASS_PAGESELECT; + + for(i=0; i<dropdown.length; i++) { + var option1 = document.createElement("option"); + var option2 = document.createElement("option"); + option1.value = dropdown[i]; + option2.value = dropdown[i]; + option1.innerHTML = dropdown[i]; + option2.innerHTML = dropdown[i]; + + if(this.rowsPerPage === dropdown[i]) { + option1.selected = true; + option2.selected = true; + } + option1 = select1.appendChild(option1); + option2 = select2.appendChild(option2); + } + } + + // Populate each pager container with markup + if(!this.pagers || (this.pagers.length === 0)) { + var pager1 = document.createElement("span"); + pager1.className = YAHOO.widget.DataTable.CLASS_PAGELINKS; + + var pager2 = document.createElement("span"); + pager2.className = YAHOO.widget.DataTable.CLASS_PAGELINKS; + + pager1 = this._elContainer.insertBefore(pager1, this._elTable); + select1 = (select1 === undefined) ? null : + this._elContainer.insertBefore(select1, this._elTable); + select2 = (select2 === undefined) ? null : + this._elContainer.insertBefore(select2, this._elTable.nextSibling); + pager2 = this._elContainer.insertBefore(pager2, this._elTable.nextSibling); + this.pagers = [ + {links:pager1,select:select1}, + {links:pager2,select:select2} + ]; + } + for(i=0; i<this.pagers.length; i++) { + this.pagers[i].links.innerHTML = markup; + YAHOO.util.Event.purgeElement(this.pagers[i].links); + if(this.pagers[i].select) { + YAHOO.util.Event.purgeElement(this.pagers[i].select); + } + this.pagers[i].innerHTML = markup; + YAHOO.util.Event.addListener(this.pagers[i].links,"click",this._onPagerClick,this); + if(this.pagers[i].select) { + YAHOO.util.Event.addListener(this.pagers[i].select,"change",this._onPagerSelect,this); + } + } + } + this.fireEvent("paginateEvent"); +}; + +/** + * Sort given column. + * + * @method sortColumn + * @param oColumn {YAHOO.widget.Column} Column to sort. TODO: accept the TH or TH.key + */ +YAHOO.widget.DataTable.prototype.sortColumn = function(oColumn) { + if(!oColumn) { + return; + } + if(!oColumn instanceof YAHOO.widget.Column) { + //TODO: Figure out the column based on TH ref or TH.key + return; + } + if(oColumn.sortable) { + // What is the default sort direction? + var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultOrder) ? oColumn.sortOptions.defaultOrder : "asc"; + + //TODO: what if column doesn't have key? + // Is this column sorted already? + if(oColumn.key && this.sortedBy && (this.sortedBy.colKey == oColumn.key)) { + if(this.sortedBy.dir) { + sortDir = (this.sortedBy.dir == "asc") ? "desc" : "asc"; + } + else { + sortDir = (sortDir == "asc") ? "desc" : "asc"; + } + } + else if(!this.sortedBy) { + this.sortedBy = {}; + } + + // Define the sort handler function based on the direction + var sortFnc = null; + if((sortDir == "desc") && oColumn.sortOptions && oColumn.sortOptions.descFunction) { + sortFnc = oColumn.sortOptions.descFunction; + } + else if((sortDir == "asc") && oColumn.sortOptions && oColumn.sortOptions.ascFunction) { + sortFnc = oColumn.sortOptions.ascFunction; + } + + // Custom function was not provided so use the built-in sorter + // ONLY IF column key is defined + // TODO: use diff default functions based on column data type + // TODO: nested/cumulative/hierarchical sorting + if(!sortFnc && oColumn.key) { + var sorted; + sortFnc = function(a, b) { + if(sortDir == "desc") { + sorted = YAHOO.util.Sort.compareDesc(a[oColumn.key],b[oColumn.key]); + if(sorted === 0) { + return YAHOO.util.Sort.compareDesc(a.id,b.id); + } + else { + return sorted; + } + } + else { + sorted = YAHOO.util.Sort.compareAsc(a[oColumn.key],b[oColumn.key]); + if(sorted === 0) { + return YAHOO.util.Sort.compareAsc(a.id,b.id); + } + else { + return sorted; + } + } + }; + } + + if(sortFnc) { + // Do the actual sort + this._oRecordSet.sort(sortFnc); + + // Update the UI + this.paginateRows(); + + // Update classes + YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYASC); + YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYDESC); + var newClass = (sortDir == "asc") ? YAHOO.widget.DataTable.CLASS_SORTEDBYASC : YAHOO.widget.DataTable.CLASS_SORTEDBYDESC; + YAHOO.util.Dom.addClass(oColumn.getId(), newClass); + + // Keep track of currently sorted column + this.sortedBy.colKey = oColumn.key; + this.sortedBy.dir = sortDir; + this.sortedBy._id = oColumn.getId(); + + this.fireEvent("columnSortEvent",{column:oColumn,dir:sortDir}); + } + } + else { + //TODO + YAHOO.log("Column is not sortable", "info", this.toString()); + } +}; + +/** + * Shows editor for given cell. + * + * @method editCell + */ +YAHOO.widget.DataTable.prototype.editCell = function(elCell) { + if(elCell && !isNaN(elCell.columnIndex)) { + var column = this._oColumnSet.keys[elCell.columnIndex]; + if(column && column.editor) { + this.activeEditor = column.getEditor(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId)); + } + this._bFocused = true; + this.fireEvent("editorShowEvent",{target:elCell,column:column}); + } +}; + +/** + * Formats given cell. + * + * @method formatCell + */ +YAHOO.widget.DataTable.prototype.formatCell = function(elCell) { + if(elCell && !isNaN(elCell.columnIndex)) { + var column = this._oColumnSet.keys[elCell.columnIndex]; + column.format(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId)); + this.fireEvent("cellFormatEvent", {el:elCell}); + } +}; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public Custom Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Overridable custom event handler to sort column. + * + * @method onEventSortColumn + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSortColumn = function(oArgs) { + var evt = oArgs.event; + var target = oArgs.target; + YAHOO.util.Event.stopEvent(evt); + + //TODO: traverse DOM to find a columnIndex, incl safety net if none exists + var columnIndex = target.columnIndex; + if(!isNaN(columnIndex)) { + this.sortColumn(this._oColumnSet.keys[columnIndex]); + } +}; + +/** + * Overridable custom event handler to select row. + * + * @method onEventSelectRow + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSelectRow = function(oArgs) { + var i; + var evt = oArgs.event; + var target = oArgs.target; + + //TODO: add a safety net in case TR is never reached + // Walk up the DOM until we get to the TR + while(target.tagName.toLowerCase() != "tr") { + target = target.parentNode; + } + + if(this.isSelected(target)) { + this.unselect(target); + } + else { + if(this.rowSingleSelect && !evt.ctrlKey && !evt.shiftKey) { + this.unselectAllRows(); + } + if(evt.shiftKey) { + var startRow = this._lastSelected; + if(startRow && this.isSelected(startRow)) { + this.unselectAllRows(); + if(startRow.sectionRowIndex < target.sectionRowIndex) { + for(i=startRow.sectionRowIndex; i<=target.sectionRowIndex; i++) { + this.select(this._elBody.rows[i]); + } + } + else { + for(i=target.sectionRowIndex; i<=startRow.sectionRowIndex; i++) { + this.select(this._elBody.rows[i]); + } + } + } + else { + this.select(target); + } + } + else { + this.select(target); + } + } +}; + +/** + * Overridable custom event handler to select cell. + * + * @method onEventSelectCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSelectCell = function(oArgs) { + var evt = oArgs.event; + var target = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(target.tagName.toLowerCase() != "td") { + target = target.parentNode; + } + + if(this.isSelected(target)) { + this.unselect(target); + } + else { + if(this.rowSingleSelect && !evt.ctrlKey) { + this.unselectAllCells(); + } + this.select(target); + } +}; + +/** + * Overridable custom event handler to format cell. + * + * @method onEventFormatCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventFormatCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.formatCell(element); +}; + +/** + * Overridable custom event handler to highlight cell. + * + * @method onEventHighlightCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventHighlightCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + this.highlight(element); +}; + +/** + * Overridable custom event handler to unhighlight cell. + * + * @method onEventUnhighlightCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventUnhighlightCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.unhighlight(element); +}; +/** + * Overridable custom event handler to edit cell. + * + * @method onEventEditCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventEditCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.editCell(element); +}; + +/** + * Handles data return for adding new rows to table, including updating pagination. + * + * @method onDataReturnPaginateRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnPaginateRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.append(oResponse); + if(newRecords) { + // Update markup + this.paginateRows(); + YAHOO.log("Data returned for " + newRecords.length + " rows","info",this.toString()); + } + } +}; + +/** + * Handles data return for adding new rows to bottom of table. + * + * @method onDataReturnAppendRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnAppendRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.append(oResponse); + if(newRecords) { + // Update markup + this.appendRows(newRecords); + YAHOO.log("Data returned for " + newRecords.length + " rows","info",this.toString()); + } + } +}; + +/** + * Handles data return for inserting new rows to top of table. + * + * @method onDataReturnInsertRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnInsertRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.insert(oResponse); + if(newRecords) { + // Update markup + this.insertRows(newRecords); + YAHOO.log("Data returned for " + newRecords.length + " rows","info",this.toString()); + } + } +}; + +/** + * Handles data return for replacing all existing of table with new rows. + * + * @method onDataReturnReplaceRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnReplaceRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.replace(oResponse); + if(newRecords) { + this.replaceRows(newRecords); + YAHOO.log("Data returned for " + newRecords.length + " rows","info",this.toString()); + } + } +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The ColumnSet class defines and manages a DataTable's Columns, + * including nested hierarchies and access to individual Column instances. + * + * @class ColumnSet + * @uses YAHOO.util.EventProvider + * @constructor + * @param aHeaders {Object[]} Array of object literals that define header cells. + */ +YAHOO.widget.ColumnSet = function(aHeaders) { +//TODO: break out nested functions into private methods + this._sName = "instance" + YAHOO.widget.ColumnSet._nCount; + + // Top-down tree representation of all Columns + var tree = []; + // Flat representation of all Columns + var flat = []; + // Flat representation of only Columns that display data + var keys = []; + // ID index of nested parent heirarchies for HEADERS attribute + var headers = []; + + var nodelevel = -1; + + // Internal recursive function to parse Columns out of object literal defs + var parseColumns = function(nodeList, parent) { + nodelevel++; + // A node level is an array of Columns + if(!tree[nodelevel]) { + tree[nodelevel] = []; + } + + // Determine depth of descendants at this level for node's rowspan + var nodeLevelMaxChildren = 0; + var recurseChildren = function(nodeList) { + var tmpMax = 0; + for(var i=0; i<nodeList.length; i++) { + if(nodeList[i].children) { + tmpMax++; + recurseChildren(nodeList[i].children); + } + if(tmpMax > nodeLevelMaxChildren) { + nodeLevelMaxChildren = tmpMax; + } + } + }; + recurseChildren(nodeList); + + // Parse each node for attributes and any children + for(var j=0; j<nodeList.length; j++) { + // Instantiate a Column for each node + var oColumn = new YAHOO.widget.Column(nodeList[j]); + flat.push(oColumn); + + // Assign parent, if applicable + if(parent) { + oColumn._parent = parent; + } + + // Start with default values + oColumn._rowspan = 1; + oColumn._colspan = 1; + + // Column may have children + if(nodeList[j].children) { + var children = nodeList[j].children; + var length = children.length; + + // Cascade certain properties to children if not defined on their own + for(var k=0; k<length; k++) { + var child = children[k]; + if(oColumn.className && (child.className === undefined)) { + child.className = oColumn.className; + } + if(oColumn.editor && (child.editor === undefined)) { + child.editor = oColumn.editor; + } + if(oColumn.formatter && (child.formatter === undefined)) { + child.formatter = oColumn.formatter; + } + if(oColumn.parser && (child.parser === undefined)) { + child.parser = oColumn.parser; + } + if(oColumn.resizeable && (child.resizeable === undefined)) { + child.resizeable = oColumn.resizeable; + } + if(oColumn.type && (child.type === undefined)) { + child.type = oColumn.type; + } + if(oColumn.width && (child.width === undefined)) { + child.width = oColumn.width; + } + } + + // Children increase colspan of the Column + oColumn._colspan = length; + + // Children increase colspan of the Column's parent + if (parent && parent._colspan) { + parent._colspan += length-1; + parent._children = []; + parent._children.push(oColumn); + } + + // Children must also be parsed + if(!tree[nodelevel+1]) { + tree[nodelevel+1] = []; + } + parseColumns(children, oColumn); + } + + // This Column does not have children, + // but other Columns at this level do + else if(nodeLevelMaxChildren > 0) { + // Children of siblings increase the rowspan of the Column + oColumn._rowspan += nodeLevelMaxChildren; + //if(oColumn.key) { + oColumn._index = keys.length; + keys.push(oColumn); + //} + } + // This entire node level does not have any children + else { + //if(oColumn.key) { + oColumn._index = keys.length; + keys.push(oColumn); + //} + } + + // Add the Column to the top-down tree + tree[nodelevel].push(oColumn); + } + nodelevel--; + }; + + // Do the parsing + if(aHeaders.length > 0) { + parseColumns(aHeaders); + } + + // Store header nesting in an array + var recurseAncestors = function(i, oColumn) { + headers[i].push(oColumn._id); + if(oColumn._parent) { + recurseAncestors(i, oColumn._parent); + } + }; + for(var i=0; i<keys.length; i++) { + headers[i] = []; + recurseAncestors(i, keys[i]); + headers[i] = headers[i].reverse(); + headers[i] = headers[i].join(" "); + } + + this.tree = tree; + this.flat = flat; + this.keys = keys; + this.headers = headers; + + YAHOO.widget.ColumnSet._nCount++; + YAHOO.log("ColumnSet initialized", "info", this.toString()); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.ColumnSet._nCount = 0; + +/** + * Unique instance name. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.ColumnSet.prototype._sName = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Top-down tree representation of Column hierarchy. + * + * @property tree + * @type YAHOO.widget.Column[] + */ +YAHOO.widget.ColumnSet.prototype.tree = null; + +/** + * Flattened representation of all Columns. + * + * @property flat + * @type YAHOO.widget.Column[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.flat = null; + +/** + * Array of Columns that map one-to-one to a table column. + * + * @property keys + * @type YAHOO.widget.Column[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.keys = null; + +/** + * ID index of nested parent heirarchies for HEADERS accessibility attribute. + * + * @property headers + * @type String[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.headers = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the ColumnSet instance. + * + * @method toString + * @return {String} Unique name of the ColumnSet instance. + */ + +YAHOO.widget.ColumnSet.prototype.toString = function() { + return "ColumnSet " + this._sName; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The Column class defines and manages attributes of DataTable Columns + * + * + * @class Column + * @constructor + * @param oConfigs {Object} Object literal of configuration values. + */ +YAHOO.widget.Column = function(oConfigs) { + // Internal variables + this._id = "yui-dtcol"+YAHOO.widget.Column._nCount; + + // Object literal defines Column attributes + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if(sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + YAHOO.widget.Column._nCount++; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal instance counter. + * + * @property _nCount + * @type Number + * @static + * @default 0 + */ +YAHOO.widget.Column._nCount = 0; + + +/** + * Unique ID, also assigned as DOM ID. + * + * @property _id + * @type String + * @private + */ +YAHOO.widget.Column.prototype._id = null; + +/** + * Reference to Column's index within its ColumnSet's key array, or null if not applicable. + * + * @property _index + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._index = null; + +/** + * Number of table cells the Column spans. + * + * @property _colspan + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._colspan = 1; + +/** + * Number of table rows the Column spans. + * + * @property _rowspan + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._rowspan = 1; + +/** + * Column's parent, or null. + * + * @property _parent + * @type YAHOO.widget.Column + * @private + */ +YAHOO.widget.Column.prototype._parent = null; + +/** + * Array of Column's chilren, or null. + * + * @property _children + * @type YAHOO.widget.Column[] + * @private + */ +YAHOO.widget.Column.prototype._children = null; + +//TODO: clean these up + +/** + * Current offsetWidth of the Column (in pixels). + * + * @property _width + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._width = null; + +/** + * Minimum width the Column can support (in pixels). Value is populated only if table + * is fixedwidth, null otherwise. + * + * @property _minWidth + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._minWidth = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Associated database field, or null. + * + * @property key + * @type String + */ +YAHOO.widget.Column.prototype.key = null; + +/** + * Text or HTML for display in Column's assocated TH element. + * + * @property text + * @type String + */ +YAHOO.widget.Column.prototype.text = null; + +/** + * Data types: "string", "number", "date", "currency", "checkbox", "select", + * "email", "link". + * + * @property type + * @type String + * @default "string" + */ +YAHOO.widget.Column.prototype.type = "string"; + +/** + * Column head cell ABBR for accessibility. + * + * @property abbr + * @type String + */ +YAHOO.widget.Column.prototype.abbr = null; + +/** + * Array of object literals that define children (nested headers) of a Column. + * + * @property children + * @type Object[] + */ +YAHOO.widget.Column.prototype.children = null; + +/** + * Column width. + * + * @property width + * @type String + */ +YAHOO.widget.Column.prototype.width = null; + +/** + * Custom CSS class to be applied to every cell in the Column. + * + * @property className + * @type String + */ +YAHOO.widget.Column.prototype.className = null; + +/** + * Defines a custom format function for Column, otherwise default is used, + * according to Column type. + * + * @property formatter + * @type HTMLFunction + */ +YAHOO.widget.Column.prototype.formatter = null; + +/** + * Defines a custom parse function for Column, otherwise default is used, + * according to Column type. + * + * @property parser + * @type HTMLFunction + */ +YAHOO.widget.Column.prototype.parser = null; + +/** + * Defines the type of editor for Column, otherwise Column is not editable. + * + * @property editor + * @type String + */ +YAHOO.widget.Column.prototype.editor = null; + +/** + * True if Column is resizeable, false otherwise. + * + * @property resizeable + * @type Boolean + * @default false + */ +YAHOO.widget.Column.prototype.resizeable = false; + +/** + * True if Column is sortable, false otherwise. + * + * @property sortable + * @type Boolean + * @default false + */ +YAHOO.widget.Column.prototype.sortable = false; + +/** + * Custom sort handler to arrange Column in descending order. + * + * @property sortOptions.descFunction + * @type Function + * @default null + */ +YAHOO.widget.Column.prototype.descFunction = null; + +/** + * Custom sort handler to arrange Column in ascending order. + * + * @property sortOptions.ascFunction + * @type Function + * @default null + */ +YAHOO.widget.Column.prototype.ascFunction = null; + + + + + + + + + + + + + + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor returns Column's ID string. + * + * @method getId + * @return {String} Column's ID string. + */ +YAHOO.widget.Column.prototype.getId = function() { + return this._id; +}; + +/** + * Public accessor returns Column's colspan number. + * + * @method getColSpan + * @return {Number} Column's colspan number. + */ +YAHOO.widget.Column.prototype.getColSpan = function() { + return this._colspan; +}; + +/** + * Public accessor returns Column's rowspan number. + * + * @method getRowSpan + * @return {Number} Column's rowspan number. + */ +YAHOO.widget.Column.prototype.getRowSpan = function() { + return this._rowspan; +}; + + +/** + * Outputs markup into the given TD based on given Record. + * + * @method format + * @param elCell {HTMLElement} TD to format for display. + * @param oRecord {YAHOO.widget.Record} Record that holds data for the row. + * @return {HTML} Markup. + */ +YAHOO.widget.Column.prototype.format = function(elCell,oRecord) { + var oData = (this.key) ? oRecord[this.key] : null; + if(this.formatter) { + this.formatter(elCell, oRecord, this, oData); + } + else { + var type = this.type; + var markup = ""; + var classname = ""; + switch(type) { + case "checkbox": + YAHOO.widget.Column.formatCheckbox(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_CHECKBOX; + break; + case "currency": + YAHOO.widget.Column.formatCurrency(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_CURRENCY; + break; + case "date": + YAHOO.widget.Column.formatDate(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_DATE; + break; + case "email": + YAHOO.widget.Column.formatEmail(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_EMAIL; + break; + case "link": + YAHOO.widget.Column.formatLink(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_LINK; + break; + case "number": + YAHOO.widget.Column.formatNumber(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_NUMBER; + break; + case "select": + YAHOO.widget.Column.formatSelect(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_SELECT; + break; + default: + elCell.innerHTML = (oData) ? oData.toString() : ""; + //elCell.innerHTML = (oData) ? "<a href=\"#\">"+oData.toString()+"</a>" : ""; + classname = YAHOO.widget.DataTable.CLASS_STRING; + break; + } + + YAHOO.util.Dom.addClass(elCell, classname); + if(this.className) { + YAHOO.util.Dom.addClass(elCell, this.className); + } + } + + if(this.editor) { + YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_EDITABLE); + } +}; + + +/** + * Formats cells in Columns of type "checkbox". + * + * @method formatCheckbox + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatCheckbox = function(elCell, oRecord, oColumn, oData) { + var bChecked = oData; + bChecked = (bChecked) ? " checked" : ""; + elCell.innerHTML = "<input type=\"checkbox\"" + bChecked + + " class=\"" + YAHOO.widget.DataTable.CLASS_CHECKBOX + "\">"; +}; + +/** + * Formats cells in Columns of type "currency". Can be overridden for custom formatting. + * + * @method formatCurrency + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatCurrency = function(elCell, oRecord, oColumn, oData) { + // Make it dollars + var nAmount = oData; + var markup; + if(nAmount) { + markup = "$"+nAmount; + + // Normalize to the penny + var dotIndex = markup.indexOf("."); + if(dotIndex < 0) { + markup += ".00"; + } + else { + while(dotIndex != markup.length-3) { + markup += "0"; + } + } + } + else { + markup = ""; + } + elCell.innerHTML = markup; +}; + +/** + * Formats cells in Columns of type "date". + * + * @method formatDate + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatDate = function(elCell, oRecord, oColumn, oData) { + var oDate = oData; + if(oDate) { + elCell.innerHTML = oDate.getMonth() + "/" + oDate.getDate() + "/" + oDate.getFullYear(); + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "email". + * + * @method formatEmail + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatEmail = function(elCell, oRecord, oColumn, oData) { + var sEmail = oData; + if(sEmail) { + elCell.innerHTML = "<a href=\"mailto:" + sEmail + "\">" + sEmail + "</a>"; + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "link". + * + * @method formatLink + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatLink = function(elCell, oRecord, oColumn, oData) { + var sLink = oData; + if(sLink) { + elCell.innerHTML = "<a href=\"" + sLink + "\">" + sLink + "</a>"; + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "number". + * + * @method formatNumber + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatNumber = function(elCell, oRecord, oColumn, oData) { + var nNumber = oData; + if(nNumber) { + elCell.innerHTML = nNumber.toString(); + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "select". + * + * @method formatSelect + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatSelect = function(elCell, oRecord, oColumn, oData) { + var selectedValue = oData; + var options = oColumn.selectOptions; + + var markup = "<select>"; + if(options) { + for(var i=0; i<options.length; i++) { + var option = options[i]; + markup += "<option value=\"" + option + "\""; + if(selectedValue === option) { + markup += " selected"; + } + markup += ">" + option + "</option>"; + } + } + else { + if(selectedValue) { + markup += "<option value=\"" + selectedValue + "\" selected>" + selectedValue + "</option>"; + } + } + markup += "</select>"; + elCell.innerHTML = markup; +}; + +/** + * Takes innerHTML from TD and parses out data for storage in RecordSet. + * + * @method parse + * @param sMarkup {String} The TD's innerHTML value. + * @return {Object} Data. + */ +YAHOO.widget.Column.prototype.parse = function(sMarkup) { + if(this.parser) { + return this.parser(sMarkup); + } + else { + var data = null; + switch(this.type) { + case "checkbox": + data = YAHOO.widget.Column.parseCheckbox(sMarkup); + break; + case "currency": + data = YAHOO.widget.Column.parseCurrency(sMarkup); + break; + case "date": + data = YAHOO.widget.Column.parseDate(sMarkup); + break; + case "number": + data = YAHOO.widget.Column.parseNumber(sMarkup); + break; + case "select": + data = YAHOO.widget.Column.parseSelect(sMarkup); + break; + default: + if(sMarkup) { + data = sMarkup; + } + break; + } + return data; + } +}; + +/** + * Default parse function for Columns of type "checkbox" takes markup and + * extracts data. Can be overridden for custom parsing. + * + * @method parseCheckbox + * @param sMarkup + * @return {bChecked} True if checkbox is checked. + */ +YAHOO.widget.Column.parseCheckbox = function(sMarkup) { + return (sMarkup.indexOf("checked") < 0) ? false : true; +}; + +/** + * Default parse function for Columns of type "currency" takes markup and + * extracts data. Can be overridden for custom parsing. + * + * @method parseCurrency + * @param sMarkup + * @return {nAmount} Floating point amount. + */ +YAHOO.widget.Column.parseCurrency = function(sMarkup) { + return parseFloat(sMarkup.substring(1)); +}; + +/** + * Default parse function for Columns of type "date" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseDate + * @param sMarkup + * @return {oDate} Date instance. + */ +YAHOO.widget.Column.parseDate = function(sMarkup) { + var mm = sMarkup.substring(0,sMarkup.indexOf("/")); + sMarkup = sMarkup.substring(sMarkup.indexOf("/")+1); + var dd = sMarkup.substring(0,sMarkup.indexOf("/")); + var yy = sMarkup.substring(sMarkup.indexOf("/")+1); + return new Date(yy, mm, dd); +}; + +/** + * Default parse function for Columns of type "number" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseNumber + * @param sMarkup + * @return {nNumber} Number. + */ +YAHOO.widget.Column.parseNumber = function(sMarkup) { + return parseFloat(sMarkup); +}; + +/** + * Default parse function for Columns of type "select" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseSelect + * @param sMarkup + * @return {sValue} Value of selected option. + */ +YAHOO.widget.Column.parseSelect = function(sMarkup) { + //return (sMarkup.indexOf("checked") < 0) ? false : true; +}; + +/** + * Outputs editor markup into the given TD based on given Record. + * + * @method showEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @return YAHOO.widget.ColumnEditor + */ +YAHOO.widget.Column.prototype.getEditor = function(elCell, oRecord) { +//Sync up the arg signature for ColumnEditor constructor and show() + var oEditor = this.editor; + if(oEditor.constructor == String) { + oEditor = new YAHOO.widget.ColumnEditor(this.editor); + oEditor.show(elCell, oRecord, this); + this.editor = oEditor; + } + else if(oEditor instanceof YAHOO.widget.ColumnEditor) { + oEditor.show(elCell, oRecord, this); + } + return oEditor; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The ColumnEditor defines and manages inline editing functionality for a + * DataTable Column. + * + * @class ColumnEditor + * @constructor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + * @parem sType {String} Type identifier + */ +YAHOO.widget.ColumnEditor = function(sType) { + this.type = sType; + + //TODO: make sure ColumnEditors get destroyed if widget gets destroyed + // Works better to attach ColumnEditor to document.body + // rather than the DataTable container + // elTable comes in as a cell. Traverse up DOM to find the table. + // TODO: safety net in case table is never found. + //while(elCell.nodeName.toLowerCase() != "table") { + // elCell = elCell.parentNode; + //} + //this.tableContainer = elCell.parentNode; + + var container = document.body.appendChild(document.createElement("div"));//this.tableContainer.appendChild(document.createElement("div")); + container.style.position = "absolute"; + container.style.zIndex = 9000; + container.id = "yui-dt-coled" + YAHOO.widget.ColumnEditor._nCount; + this.container = container; + + switch(this.type) { + case "textbox": + this.createTextboxEditor(); + break; + case "textarea": + this.createTextareaEditor(); + break; + default: + break; + } + + YAHOO.widget.ColumnEditor._nCount++; +}; + + + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal instance counter. + * + * @property _nCount + * @type Number + * @static + * @default 0 + */ +YAHOO.widget.ColumnEditor._nCount =0; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Reference to the container DOM element for the ColumnEditor. + * + * @property container + * @type HTMLElement + */ +YAHOO.widget.ColumnEditor.prototype.container = null; + +/** + * Reference to the ColumnEditor's Column instance. + * + * @property column + * @type YAHOO.widget.Column + */ +YAHOO.widget.ColumnEditor.prototype.column = null; + +/** + * Type of editor: "textbox", etc. + * + * @property type + * @type String + */ +YAHOO.widget.ColumnEditor.prototype.type = null; + + + +/** + * Reference to form element(s) of the ColumnEditor. + * + * @property input + * @type HTMLElement || HTMLElement[] + */ +YAHOO.widget.ColumnEditor.prototype.input = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Shows ColumnEditor. + * + * @method show + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.show = function(elCell, oRecord, oColumn) { + this.cell = elCell; + this.record = oRecord; + this.column = oColumn; + switch(this.type) { + case "textbox": + this.showTextboxEditor(elCell, oRecord, oColumn); + break; + case "textarea": + this.showTextareaEditor(elCell, oRecord, oColumn); + break; + default: + break; + } +}; + +/** + * Returns ColumnEditor data value. + * + * @method getValue + * @return Object + */ +YAHOO.widget.ColumnEditor.prototype.getValue = function() { + var value; + switch(this.type) { + case "textbox": + value = this.getTextboxEditorValue(); + break; + case "textarea": + value = this.getTextareaEditorValue(); + break; + default: + break; + } + return value; +}; + +/** + * Creates a textbox editor in the DOM. + * + * @method createTextboxEditor + * @return {HTML} ??? + */ +YAHOO.widget.ColumnEditor.prototype.createTextboxEditor = function() { + var elTextbox = this.container.appendChild(document.createElement("input")); + // For FF bug 236791 + elTextbox.setAttribute("autocomplete","off"); + this.input = elTextbox; +}; + +/** + * Creates a textarea editor in the DOM. + * + * @method createTextareaEditor + * @return {HTML} ??? + */ +YAHOO.widget.ColumnEditor.prototype.createTextareaEditor = function() { + var elTextarea = this.container.appendChild(document.createElement("textarea")); + this.input = elTextarea; +}; + +/** + * Shows ColumnEditor + * + * @method showTextboxEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.showTextboxEditor = function(elCell, oRecord, oColumn) { + // Size and value + this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px"; + this.input.style.height = (parseInt(elCell.offsetHeight,10)-7) + "px"; + this.input.value = elCell.innerHTML; + + // Position and show + var x,y; + + // Don't use getXY for Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + x = elCell.offsetLeft; + y = elCell.offsetTop; + while(elCell.offsetParent) { + x += elCell.offsetParent.offsetLeft; + y += elCell.offsetParent.offsetTop; + elCell = elCell.offsetParent; + } + } + else { + var xy = YAHOO.util.Dom.getXY(elCell); + x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1; + y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1; + } + this.container.style.left = x + "px"; + this.container.style.top = y + "px"; + this.container.style.display = "block"; + + this.input.tabIndex = 0; + this.input.focus(); + this.input.select(); +}; + +/** + * Shows ColumnEditor + * + * @method showTextareaEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.showTextareaEditor = function(elCell, oRecord, oColumn) { + // Size and value + this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px"; + this.input.style.height = 4*(parseInt(elCell.offsetHeight,10)-7) + "px"; + this.input.value = elCell.innerHTML; + + // Position and show + var x,y; + + // Don't use getXY for Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + x = elCell.offsetLeft; + y = elCell.offsetTop; + while(elCell.offsetParent) { + x += elCell.offsetParent.offsetLeft; + y += elCell.offsetParent.offsetTop; + elCell = elCell.offsetParent; + } + } + else { + var xy = YAHOO.util.Dom.getXY(elCell); + x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1; + y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1; + } + this.container.style.left = x + "px"; + this.container.style.top = y + "px"; + this.container.style.display = "block"; + + this.input.tabIndex = 0; + this.input.focus(); + this.input.select(); +}; + +/** + * Hides ColumnEditor + * + * @method hide + */ +YAHOO.widget.ColumnEditor.prototype.hide = function() { + this.input.tabIndex = -1; + this.container.style.display = "none"; +}; + +/** + * Returns ColumnEditor value + * + * @method getTextboxEditorValue + * @return String + */ +YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue = function() { + return this.input.value; +}; + +/** + * Returns ColumnEditor value + * + * @method getTextareaEditorValue + * @return String + */ +YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue = function() { + return this.input.value; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Sort static utility to support Column sorting. + * + * @class Sort + * @static + */ +YAHOO.util.Sort = { + ///////////////////////////////////////////////////////////////////////////// + // + // Public methods + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Comparator function for sort in ascending order. String sorting is case insensitive. + * + * @method compareAsc + * @param a {object} First sort argument. + * @param b {object} Second sort argument. + */ + compareAsc: function(a, b) { + //TODO: is typeof better or is constructor property better? + if(a.constructor == String) { + a = a.toLowerCase(); + } + if(b.constructor == String) { + b = b.toLowerCase(); + } + if(a < b) { + return -1; + } + else if (a > b) { + return 1; + } + else { + return 0; + } + }, + + /** + * Comparator function for sort in descending order. String sorting is case insensitive. + * + * @method compareDesc + * @param a {object} First sort argument. + * @param b {object} Second sort argument. + */ + compareDesc: function(a, b) { + //TODO: is typeof better or is constructor property better? + if(a.constructor == String) { + a = a.toLowerCase(); + } + if(b.constructor == String) { + b = b.toLowerCase(); + } + if(a < b) { + return 1; + } + else if (a > b) { + return -1; + } + else { + return 0; + } + } +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * WidthResizer subclasses DragDrop to support resizeable Columns. + * + * @class WidthResizer + * @extends YAHOO.util.DragDrop + * @constructor + * @param colElId {string} ID of the Column's TH element being resized + * @param handleElId {string} ID of the handle element that causes the resize + * @param sGroup {string} Group name of related DragDrop items + */ +YAHOO.util.WidthResizer = function(oDataTable, colId, handleId, sGroup, config) { + if (colId) { + this.cell = YAHOO.util.Dom.get(colId); + this.init(handleId, sGroup, config); + //this.initFrame(); + this.datatable = oDataTable; + this.setYConstraint(0,0); + } + else { + YAHOO.log("Column resizer could not be created due to invalid colElId","warn"); + } +}; + +if(YAHOO.util.DD) { + YAHOO.extend(YAHOO.util.WidthResizer, YAHOO.util.DD); +} + +///////////////////////////////////////////////////////////////////////////// +// +// Public DOM event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles mousedown events on the Column resizer. + * + * @method onMouseDown + * @param e {string} The mousedown event + */ +YAHOO.util.WidthResizer.prototype.onMouseDown = function(e) { + this.startWidth = this.cell.offsetWidth; + this.startPos = YAHOO.util.Dom.getX(this.getDragEl()); + + if(this.datatable.fixedwidth) { + var cellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0]; + this.minWidth = cellText.offsetWidth + 6; + var sib = this.cell.nextSibling; + var sibCellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0]; + this.sibMinWidth = sibCellText.offsetWidth + 6; +//!! + var left = ((this.startWidth - this.minWidth) < 0) ? 0 : (this.startWidth - this.minWidth); + var right = ((sib.offsetWidth - this.sibMinWidth) < 0) ? 0 : (sib.offsetWidth - this.sibMinWidth); + this.setXConstraint(left, right); + YAHOO.log("cellstartwidth:" + this.startWidth,"time"); + YAHOO.log("cellminwidth:" + this.minWidth,"time"); + YAHOO.log("sibstartwidth:" + sib.offsetWidth,"time"); + YAHOO.log("sibminwidth:" + this.sibMinWidth,"time"); + YAHOO.log("l:" + left + " AND r:" + right,"time"); + } + +}; + +/** + * Handles mouseup events on the Column resizer. + * + * @method onMouseUp + * @param e {string} The mouseup event + */ +YAHOO.util.WidthResizer.prototype.onMouseUp = function(e) { + //TODO: replace the resizer where it belongs: + var resizeStyle = YAHOO.util.Dom.get(this.handleElId).style; + resizeStyle.left = "auto"; + resizeStyle.right = 0; + resizeStyle.marginRight = "-6px"; + resizeStyle.width = "6px"; + //.yui-dt-headresizer {position:absolute;margin-right:-6px;right:0;bottom:0;width:6px;height:100%;cursor:w-resize;cursor:col-resize;} + + + //var cells = this.datatable._elTable.tHead.rows[this.datatable._elTable.tHead.rows.length-1].cells; + //for(var i=0; i<cells.length; i++) { + //cells[i].style.width = "5px"; + //} + + //TODO: set new ColumnSet width values + this.datatable.fireEvent("columnResizeEvent",{datatable:this.datatable,target:YAHOO.util.Dom.get(this.id)}); +}; + +/** + * Handles drag events on the Column resizer. + * + * @method onDrag + * @param e {string} The drag event + */ +YAHOO.util.WidthResizer.prototype.onDrag = function(e) { + var newPos = YAHOO.util.Dom.getX(this.getDragEl());//YAHOO.log("newpos:"+newPos,"warn");//YAHOO.util.Event.getPageX(e); + var offsetX = newPos - this.startPos;//YAHOO.log("offset:"+offsetX,"warn"); + //YAHOO.log("startwidth:"+this.startWidth + " and offset:"+offsetX,"warn"); + var newWidth = this.startWidth + offsetX;//YAHOO.log("newwidth:"+newWidth,"warn"); + + if(newWidth < this.minWidth) { + newWidth = this.minWidth; + } + + // Resize the Column + var oDataTable = this.datatable; + var elCell = this.cell; + + //YAHOO.log("newwidth" + newWidth,"warn"); + //YAHOO.log(newWidth + " AND "+ elColumn.offsetWidth + " AND " + elColumn.id,"warn"); + + // Resize the other Columns + if(oDataTable.fixedwidth) { + // Moving right or left? + var sib = elCell.nextSibling; + //var sibIndex = elCell.index + 1; + var sibnewwidth = sib.offsetWidth - offsetX; + if(sibnewwidth < this.sibMinWidth) { + sibnewwidth = this.sibMinWidth; + } + + //TODO: how else to cycle through all the Columns without having to use an index property? + for(var i=0; i<oDataTable._oColumnSet.length; i++) { + if((i != elCell.index) && (i!=sibIndex)) { + YAHOO.util.Dom.get(oDataTable._oColumnSet.keys[i].id).style.width = oDataTable._oColumnSet.keys[i].width + "px"; + } + } + sib.style.width = sibnewwidth; + elCell.style.width = newWidth + "px"; + //oDataTable._oColumnSet.flat[sibIndex].width = sibnewwidth; + //oDataTable._oColumnSet.flat[elCell.index].width = newWidth; + + } + else { + elCell.style.width = newWidth + "px"; + } +}; + + + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * A RecordSet defines and manages a set of Records. + * + * @class RecordSet + * @param data {Object || Object[]} An object literal or an array of data. + * @constructor + */ +YAHOO.widget.RecordSet = function(data) { + // Internal variables + this._nIndex = YAHOO.widget.RecordSet._nCount; + this._records = []; + + if(data) { + if(data.constructor == Array) { + this.addRecords(data); + } + else if(data.constructor == Object) { + this.addRecord(data); + } + } + + /** + * Fired when a Record is updated with new data. + * + * @event recordUpdateEvent + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} Old data. + * + */ + this.createEvent("recordUpdateEvent"); + + + YAHOO.widget.RecordSet._nCount++; + YAHOO.log("RecordSet initialized", "info", this.toString()); +}; + +if(YAHOO.util.EventProvider) { + YAHOO.augment(YAHOO.widget.RecordSet, YAHOO.util.EventProvider); +} +else { + YAHOO.log("Missing dependency: YAHOO.util.EventProvider","error",this.toString()); +} + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.RecordSet._nCount = 0; + +/** + * Instance index. + * + * @property _nIndex + * @type number + * @private + */ +YAHOO.widget.RecordSet.prototype._nIndex = null; + +/** + * Internal counter of how many records are in the RecordSet + * + * @property _length + * @private + */ +YAHOO.widget.RecordSet.prototype._length = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the RecordSet instance. + * + * @method toString + * @return {string} Unique name of the RecordSet instance + */ +YAHOO.widget.RecordSet.prototype.toString = function() { + return "RecordSet instance " + this._nIndex; +}; + +/** + * Returns the number of non-null records in the sparse RecordSet + * + * @method getLength + * @return {Number} Number records in the RecordSet + */ +YAHOO.widget.RecordSet.prototype.getLength = function() { + return this._length; +}; + +/** + * Returns record with given name, at the given index, or null. + * + * @method getRecord + * @param identifier {String || Number} Record ID or record index + * @return {Object} Record object + */ +YAHOO.widget.RecordSet.prototype.getRecord = function(identifier) { + if(identifier) { + if(identifier.constructor == String) { + for(var i=0; i<this._records.length; i++) { + if(this._records[i].id == identifier) { + return this._records[i]; + } + } + return null; + } + else { + return this._records[identifier]; + } + } + return null; +}; + +/** + * Returns an array of Records from the RecordSet. + * + * @method getRecords + * @param i {number} Index of which record to start at + * @param range {number} (optional) Number of records to get + * @return {Array} Array of records starting at given index and lenth equal to + * given range. If range is null, entire RecordSet array is returned. + */ +YAHOO.widget.RecordSet.prototype.getRecords = function(i, range) { + if(i === undefined) { + return this._records; + } + i = parseInt(i,10); + if(isNaN(i)) { + return null; + } + if(range === undefined) { + return this._records.slice(i); + } + range = parseInt(range,10); + if(isNaN(range)) { + return null; + } + return this._records.slice(i, i+range); +}; + +/** + * Returns index for the given record. + * + * @method getRecordIndex + * @param oRecord {object} Record object + * @return {number} index + */ + +/*YAHOO.widget.RecordSet.prototype.getRecordIndex = function(oRecord) { + //TODO: return i; +};*/ + +/** + * Returns the record(2) with the given value at the given key. + * + * @method getRecordBy + * @param sKey {String} Key to search. + * @param oValue {Object} to match against. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} Record or array of + * Records with the given value at the given key, or null. + */ +/*YAHOO.widget.RecordSet.prototype.getRecordBy = function(sKey, oValue) { + TODO: redo to match new algorithm + var record = null; + var length = this._records.length; + for(var i=length-1; i>0; i--) { + record = this._records[i]; + if(record && (record.extid == extId)) { + return record; + } + } + return null; + +};*/ + +/** + * Updates given Record at given key with given data. + * + * @method updateRecord + * @param oRecord {YAHOO.widget.Record} A Record instance. + * @param sKey {String} Key. + * @param oData {Object) New data. + */ +YAHOO.widget.RecordSet.prototype.updateRecord = function(oRecord, sKey, oData) { + var oldData = oRecord[sKey]; + oRecord[sKey] = oData; + this.fireEvent("recordUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData}); +}; + +/** + * Adds one Record to the RecordSet at the given index. If index is null, + * then adds the Record to the end of the RecordSet. + * + * @method addRecord + * @param oObjectLiteral {Object} An object literal of data. + * @param index {Number} (optional) Position index. + * @return {YAHOO.widget.Record} A Record instance. + */ +YAHOO.widget.RecordSet.prototype.addRecord = function(oObjectLiteral, index) { + if(oObjectLiteral) { + var oRecord = new YAHOO.widget.Record(oObjectLiteral); + if(!isNaN(index) && (index > -1)) { + this._records.splice(index,0,oRecord); + } + else { + this._records.push(oRecord); + } + this._length++; + return oRecord; + } + else { + return null; + } +}; + +/** + * Adds multiple Records to the RecordSet at the given index. If index is null, + * then adds the Records to the end of the RecordSet. + * + * @method addRecords + * @param data {Object[]} An array of object literal data. + * @param index {Number} (optional) Position index. + * @return {YAHOO.widget.Record} An array of Record instances. + */ +YAHOO.widget.RecordSet.prototype.addRecords = function(data, index) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Can't go backwards bc we need to preserve order + for(var i=0; i<data.length; i++) { + var record = this.addRecord(data[i], index); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data); + } + } + else { + return null; + } +}; + +/** + * Convenience method to append the given data to the end of the RecordSet. + * + * @method append + * @param data {Object || Object[]} An object literal or array of data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.append = function(data) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Cant't go backwards bc we need to preserve order + for(var i=0; i<data.length; i++) { + var record = this.addRecord(data[i]); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data); + } + } + else { + return null; + } + +}; + +/** + * Convenience method to insert the given data into the beginning of the RecordSet. + * + * @method insert + * @param data {Object || Object[]} An object literal or array of data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.insert = function(data) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Can't go backwards bc we need to preserve order + for(var i=data.length-1; i>-1; i--) { + var record = this.addRecord(data[i], 0); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data, 0); + } + } + else { + return null; + } +}; + +/** + * Replaces all Records in RecordSet with new data. + * + * @method replace + * @param data {Object || Object[]} An object literal or array or data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.replace = function(data) { + if(data) { + this.reset(); + return this.append(data); + } + else { + return null; + } +}; + +/** + * Sorts RecordSet by given function. + * + * @method sort + * @param fnSort {Function} Reference to a sort function. + * @return {Array} Sorted array of Records + */ +YAHOO.widget.RecordSet.prototype.sort = function(fnSort) { + return this._records.sort(fnSort); +}; + + +/** + * Removes the record at the given index from the RecordSet. If a range is + * given, starts at the given index and removes all records in the range. + * + * @method deleteRecord + * @param i {Number} Record index + * @param range {Number} (optional) Range of records to remove, or null. + */ +YAHOO.widget.RecordSet.prototype.deleteRecord = function(i, range) { + if(!range || isNaN(range)) { + range = 1; + } + if(i && !isNaN(i)) { + this._records.splice(i, range); + this._length = this._length - range; + } +}; + +/** + * Removes all Records from the RecordSet. + * + * @method reset + */ +YAHOO.widget.RecordSet.prototype.reset = function() { + this._records = []; + this._length = 0; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The Record class defines a DataTable record. + * + * @class Record + * @constructor + * @param oConfigs {Object} (optional) Object literal of key/value pairs. + */ +YAHOO.widget.Record = function(oLiteral) { + if(typeof oLiteral == "object") { + for(var sKey in oLiteral) { + if(sKey) { + this[sKey] = oLiteral[sKey]; + } + } + } + this.id = "yui-dtrec"+YAHOO.widget.Record._nCount; + YAHOO.widget.Record._nCount++; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.Record._nCount = 0; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Unique name assigned at instantation, indicates original order. + * + * @property id + * @type string + */ +YAHOO.widget.Record.prototype.id = null; + +YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js new file mode 100644 index 0000000..1a140a0 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js @@ -0,0 +1,214 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.widget.DataTable=function(elContainer,oColumnSet,oDataSource,oConfigs){var i;this._nIndex=YAHOO.widget.DataTable._nCount;this._sName="instance"+this._nIndex;this.id="yui-dt"+this._nIndex;if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}} +if(oDataSource){if(oDataSource instanceof YAHOO.util.DataSource){this.dataSource=oDataSource;} +else{}} +if(oColumnSet&&(oColumnSet instanceof YAHOO.widget.ColumnSet)){this._oColumnSet=oColumnSet;} +else{return;} +this._oRecordSet=new YAHOO.widget.RecordSet();elContainer=YAHOO.util.Dom.get(elContainer);if(elContainer&&elContainer.tagName&&(elContainer.tagName.toLowerCase()=="div")){this._elContainer=elContainer;var elTable=null;if(elContainer.hasChildNodes()){var children=elContainer.childNodes;for(i=0;i<children.length;i++){if(children[i].tagName&&children[i].tagName.toLowerCase()=="table"){elTable=children[i];break;}}} +if(elTable&&!this.dataSource){var aRecords=[];for(i=0;i<elTable.tBodies.length;i++){var elBody=elTable.tBodies[i];for(var j=0;j<elBody.rows.length;j++){var elRow=elBody.rows[j];var oRecord={};for(var k=0;k<elRow.cells.length;k++){oRecord[oColumnSet.keys[k].key]=oColumnSet.keys[k].parse(elRow.cells[k].innerHTML);} +aRecords.push(oRecord);}} +this._initTable();var ok=this.doBeforeLoadData(aRecords);if(ok){this._oRecordSet.addRecords(aRecords);this.paginateRows();}} +else if(this.dataSource){this._initTable();oDataSource.sendRequest(this.initialRequest,this.onDataReturnPaginateRows,this);} +else{this._initTable();this.showEmptyMessage();}} +else{return;} +this.subscribe("headCellClickEvent",this.onEventSortColumn);if(this.contextMenu&&this.contextMenuOptions){this.contextMenu=new YAHOO.widget.ContextMenu(this.id+"-cm",{trigger:this._elBody.rows});this.contextMenu.addItem("delete item");this.contextMenu.render(document.body);} +elTable=this._elTable;YAHOO.util.Event.addListener(elTable,"click",this._onClick,this);YAHOO.util.Event.addListener(elTable,"dblclick",this._onDoubleclick,this);YAHOO.util.Event.addListener(elTable,"mouseout",this._onMouseout,this);YAHOO.util.Event.addListener(elTable,"mouseover",this._onMouseover,this);YAHOO.util.Event.addListener(elTable,"mousedown",this._onMousedown,this);YAHOO.util.Event.addListener(elTable,"keydown",this._onKeydown,this);YAHOO.util.Event.addListener(elTable,"keypress",this._onKeypress,this);YAHOO.util.Event.addListener(document,"keyup",this._onDocumentKeyup,this);YAHOO.util.Event.addListener(elTable,"keyup",this._onKeyup,this);YAHOO.util.Event.addListener(elTable,"blur",this._onBlur,this);this.createEvent("cellMouseoverEvent");this.createEvent("cellMouseoutEvent");this.createEvent("headCellMouseoverEvent");this.createEvent("headCellMouseoutEvent");this.createEvent("tableMouseoverEvent");this.createEvent("tableMouseoutEvent");this.createEvent("cellMousedownEvent");this.createEvent("headCellMousedownEvent");this.createEvent("tableMousedownEvent");this.checkboxClickEvent=this.createEvent("checkboxClickEvent");this.createEvent("radioClickEvent");this.createEvent("cellClickEvent");this.createEvent("headCellClickEvent");this.createEvent("tableClickEvent");this.createEvent("cellDoubleclickEvent");this.createEvent("headCellDoubleclickEvent");this.createEvent("tableDoubleclickEvent");this.createEvent("columnSortEvent");this.createEvent("editorShowEvent");this.createEvent("cellEditEvent");this.createEvent("columnResizeEvent");this.createEvent("tableInitEvent");this.createEvent("tableFocusEvent");this.createEvent("dataReturnEvent");this.createEvent("paginateEvent");this.createEvent("cellFormatEvent");this.createEvent("selectEvent");this.createEvent("unselectEvent");this.createEvent("highlightEvent");this.createEvent("unhighlightEvent");this.createEvent("rowDeleteEvent");this.subscribe("rowDeleteEvent",this._onRowDelete);this.createEvent("rowAppendEvent");this.createEvent("recordSetUpdateEvent");this._oRecordSet.subscribe("recordUpdateEvent",this._onRecordUpdate,this,true);YAHOO.widget.DataTable._nCount++;this.fireEvent("tableInitEvent");};if(YAHOO.util.EventProvider){YAHOO.augment(YAHOO.widget.DataTable,YAHOO.util.EventProvider);} +else{} +YAHOO.widget.DataTable.CLASS_BODY="yui-dt-body";YAHOO.widget.DataTable.CLASS_HEADCONTAINER="yui-dt-headcontainer";YAHOO.widget.DataTable.CLASS_HEADRESIZER="yui-dt-headresizer";YAHOO.widget.DataTable.CLASS_HEADTEXT="yui-dt-headtext";YAHOO.widget.DataTable.CLASS_EVEN="yui-dt-even";YAHOO.widget.DataTable.CLASS_ODD="yui-dt-odd";YAHOO.widget.DataTable.CLASS_EMPTY="yui-dt-empty";YAHOO.widget.DataTable.CLASS_LOADING="yui-dt-loading";YAHOO.widget.DataTable.CLASS_SELECTED="yui-dt-selected";YAHOO.widget.DataTable.CLASS_HIGHLIGHT="yui-dt-highlight";YAHOO.widget.DataTable.CLASS_SCROLLABLE="yui-dt-scrollable";YAHOO.widget.DataTable.CLASS_SORTABLE="yui-dt-sortable";YAHOO.widget.DataTable.CLASS_SORTEDBYASC="yui-dt-sortedbyasc";YAHOO.widget.DataTable.CLASS_SORTEDBYDESC="yui-dt-sortedbydesc";YAHOO.widget.DataTable.CLASS_FIRSTLINK="yui-dt-firstlink";YAHOO.widget.DataTable.CLASS_FIRSTPAGE="yui-dt-firstpage";YAHOO.widget.DataTable.CLASS_LASTLINK="yui-dt-lastlink";YAHOO.widget.DataTable.CLASS_LASTPAGE="yui-dt-lastpage";YAHOO.widget.DataTable.CLASS_PREVLINK="yui-dt-prevlink";YAHOO.widget.DataTable.CLASS_PREVPAGE="yui-dt-prevpage";YAHOO.widget.DataTable.CLASS_NEXTLINK="yui-dt-nextlink";YAHOO.widget.DataTable.CLASS_NEXTPAGE="yui-dt-nextpage";YAHOO.widget.DataTable.CLASS_PAGELINK="yui-dt-pagelink";YAHOO.widget.DataTable.CLASS_CURRENTPAGE="yui-dt-currentpage";YAHOO.widget.DataTable.CLASS_PAGESELECT="yui-dt-pageselect";YAHOO.widget.DataTable.CLASS_PAGELINKS="yui-dt-pagelinks";YAHOO.widget.DataTable.CLASS_EDITABLE="yui-dt-editable";YAHOO.widget.DataTable.CLASS_CHECKBOX="yui-dt-checkbox";YAHOO.widget.DataTable.CLASS_CURRENCY="yui-dt-currency";YAHOO.widget.DataTable.CLASS_DATE="yui-dt-date";YAHOO.widget.DataTable.CLASS_EMAIL="yui-dt-email";YAHOO.widget.DataTable.CLASS_LINK="yui-dt-link";YAHOO.widget.DataTable.CLASS_NUMBER="yui-dt-number";YAHOO.widget.DataTable.CLASS_STRING="yui-dt-string";YAHOO.widget.DataTable.MSG_EMPTY="No records found.";YAHOO.widget.DataTable.MSG_LOADING="Loading data...";YAHOO.widget.DataTable._nCount=0;YAHOO.widget.DataTable.prototype._nIndex=null;YAHOO.widget.DataTable.prototype._sName=null;YAHOO.widget.DataTable.prototype._elContainer=null;YAHOO.widget.DataTable.prototype._elTable=null;YAHOO.widget.DataTable.prototype._elBody=null;YAHOO.widget.DataTable.prototype._oColumnSet=null;YAHOO.widget.DataTable.prototype._oRecordSet=null;YAHOO.widget.DataTable.prototype._aSelectedRecords=null;YAHOO.widget.DataTable.prototype._bFocused=false;YAHOO.widget.DataTable.prototype._totalPages=null;YAHOO.widget.DataTable.prototype._initTable=function(){this._elContainer.innerHTML="";if(this.scrollable){YAHOO.util.Dom.addClass(this._elContainer,YAHOO.widget.DataTable.CLASS_SCROLLABLE);} +this._elTable=this._elContainer.appendChild(document.createElement("table"));var elTable=this._elTable;elTable.tabIndex=0;if(this.summary){elTable.summary=this.summary;} +if(this.caption){this._elCaption=elTable.appendChild(document.createElement("caption"));this._elCaption.innerHTML=this.caption;} +this._initHead(elTable,this._oColumnSet);var elMsgBody=document.createElement("tbody");elMsgBody.tabIndex=-1;this._elMsgRow=elMsgBody.appendChild(document.createElement("tr"));var elMsgRow=this._elMsgRow;var elMsgCell=elMsgRow.appendChild(document.createElement("td"));elMsgCell.colSpan=this._oColumnSet.keys.length;this._elMsgCell=elMsgCell;this._elMsgBody=elTable.appendChild(elMsgBody);this.showLoadingMessage();this._elBody=elTable.appendChild(document.createElement("tbody"));this._elBody.tabIndex=-1;YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_BODY);if(this.scrollable){YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_SCROLLABLE);}};YAHOO.widget.DataTable.prototype._initHead=function(){var i,oColumn;var elHead=document.createElement("thead");elHead.tabIndex=-1;var colTree=this._oColumnSet.tree;for(i=0;i<colTree.length;i++){var elHeadRow=elHead.appendChild(document.createElement("tr"));elHeadRow.id=this.id+"-hdrow"+i;for(var j=0;j<colTree[i].length;j++){oColumn=colTree[i][j];var elHeadCell=elHeadRow.appendChild(document.createElement("th"));elHeadCell.id=oColumn.getId();this._initHeadCell(elHeadCell,oColumn,i,j);}} +this._elHead=this._elTable.appendChild(elHead);for(i=0;i<this._oColumnSet.keys.length-1;i++){oColumn=this._oColumnSet.keys[i];if(oColumn.resizeable&&YAHOO.util.DD){if(!this.fixedWidth||(this.fixedwidth&&!oColumn.isLast)){var elHeadContainer=(YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_HEADCONTAINER,"div",YAHOO.util.Dom.get(oColumn.getId())))[0];var elHeadResizer=elHeadContainer.appendChild(document.createElement("span"));elHeadResizer.id=oColumn.getId()+"-resizer";YAHOO.util.Dom.addClass(elHeadResizer,YAHOO.widget.DataTable.CLASS_HEADRESIZER);oColumn.ddResizer=new YAHOO.util.WidthResizer(this,oColumn.getId(),elHeadResizer.id,elHeadResizer.id);var cancelClick=function(e){YAHOO.util.Event.stopPropagation(e);};YAHOO.util.Event.addListener(elHeadResizer,"click",cancelClick);} +if(this.fixedWidth){elHeadContainer.style.overflow="hidden";elHeadContent.style.overflow="hidden";}}}};YAHOO.widget.DataTable.prototype._initHeadCell=function(elHeadCell,oColumn,row,col){var index=this._nIndex;elHeadCell.columnIndex=col;if(oColumn.abbr){elHeadCell.abbr=oColumn.abbr;} +if(oColumn.width){elHeadCell.style.width=oColumn.width;} +if(oColumn.className){YAHOO.util.Dom.addClass(elHeadCell,oColumn.className);} +if(this.sortedBy&&this.sortedBy.colKey){if(this.sortedBy.colKey==oColumn.key){var sortClass=(this.sortedBy.dir&&(this.sortedBy.dir!="asc"))?YAHOO.widget.DataTable.CLASS_SORTEDBYDESC:YAHOO.widget.DataTable.CLASS_SORTEDBYASC;YAHOO.util.Dom.addClass(elHeadCell,sortClass);this.sortedBy._id=elHeadCell.id;}} +elHeadCell.innerHTML="";var elHeadContainer=elHeadCell.appendChild(document.createElement("div"));elHeadContainer.id=this.id+"-hdrow"+row+"-container"+col;YAHOO.util.Dom.addClass(elHeadContainer,YAHOO.widget.DataTable.CLASS_HEADCONTAINER);var elHeadContent=elHeadContainer.appendChild(document.createElement("span"));elHeadContent.id=this.id+"-hdrow"+row+"-text"+col;YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_HEADTEXT);elHeadCell.rowSpan=oColumn.getRowSpan();elHeadCell.colSpan=oColumn.getColSpan();var contentText=oColumn.text||oColumn.key||"";if(oColumn.sortable){YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_SORTABLE);elHeadContent.innerHTML="<a href=\"#\" title=\"Click to sort\">"+contentText+"</a>";} +else{elHeadContent.innerHTML=contentText;}};YAHOO.widget.DataTable.prototype._addRow=function(oRecord,index){this.hideTableMessages();var insert=(isNaN(index))?false:true;if(!insert){index=this._elBody.rows.length;} +var oColumnSet=this._oColumnSet;var oRecordSet=this._oRecordSet;var elRow=(insert&&this._elBody.rows[index])?this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]):this._elBody.appendChild(document.createElement("tr"));var recId=oRecord.id;elRow.id=this.id+"-bdrow"+index;elRow.recordId=recId;for(var j=0;j<oColumnSet.keys.length;j++){var oColumn=oColumnSet.keys[j];var elCell=elRow.appendChild(document.createElement("td"));elCell.id=this.id+"-bdrow"+index+"-cell"+j;elCell.headers=oColumn.id;elCell.columnIndex=j;elCell.headers=oColumnSet.headers[j];oColumn.format(elCell,oRecord);if(this.fixedWidth){elCell.style.overflow="hidden";}} +if(this.isEmpty&&(this._elBody.rows.length>0)){} +if(!insert){if(index%2){YAHOO.util.Dom.addClass(elRow,YAHOO.widget.DataTable.CLASS_ODD);} +else{YAHOO.util.Dom.addClass(elRow,YAHOO.widget.DataTable.CLASS_EVEN);}} +else{this._restripeRows();} +return elRow.id;};YAHOO.widget.DataTable.prototype._restripeRows=function(range){if(!range){var rows=this._elBody.rows;for(var i=0;i<rows.length;i++){if(i%2){YAHOO.util.Dom.removeClass(rows[i],YAHOO.widget.DataTable.CLASS_EVEN);YAHOO.util.Dom.addClass(rows[i],YAHOO.widget.DataTable.CLASS_ODD);} +else{YAHOO.util.Dom.removeClass(rows[i],YAHOO.widget.DataTable.CLASS_ODD);YAHOO.util.Dom.addClass(rows[i],YAHOO.widget.DataTable.CLASS_EVEN);}}} +else{}};YAHOO.widget.DataTable.prototype._updateRow=function(oRecord,index){this.hideTableMessages();var elRow=this._elBody.rows[index];elRow.recordId=oRecord.id;var columns=this._oColumnSet.keys;for(var j=0;j<columns.length;j++){columns[j].format(elRow.cells[j],oRecord);} +return elRow.id;};YAHOO.widget.DataTable.prototype._select=function(els){for(var i=0;i<els.length;i++){YAHOO.util.Dom.addClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED);} +this._lastSelected=els[els.length-1];};YAHOO.widget.DataTable.prototype._unselect=function(els){for(var i=0;i<els.length;i++){YAHOO.util.Dom.removeClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED);}};YAHOO.widget.DataTable.prototype._unselectAllRows=function(){var selectedRows=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody);this._unselect(selectedRows);};YAHOO.widget.DataTable.prototype._unselectAllCells=function(){var selectedCells=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody);this._unselect(selectedCells);};YAHOO.widget.DataTable.prototype._deleteRow=function(elRow){var allRows=this._elBody.rows;var id=elRow.id;var recordId=elRow.recordId;for(var i=0;i<allRows.length;i++){if(id==allRows[i].id){this._elBody.deleteRow(i);this._oRecordSet.deleteRecord(i);break;}} +if(this._elBody.rows.length===0){this.showEmptyMessage();}};YAHOO.widget.DataTable.prototype._onBlur=function(e,oSelf){this._bFocused=false;};YAHOO.widget.DataTable.prototype._onMouseover=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"td":oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e});knownTag=true;break;case"th":oSelf.fireEvent("headCellMouseoverEvent",{target:elTarget,event:e});knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;if(elTarget){elTag=elTarget.tagName.toLowerCase();} +else{break;}}} +oSelf.fireEvent("tableMouseoverEvent",{target:elTarget,event:e});};YAHOO.widget.DataTable.prototype._onMouseout=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"td":oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e});knownTag=true;break;case"th":oSelf.fireEvent("headCellMouseoutEvent",{target:elTarget,event:e});knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;if(elTarget){elTag=elTarget.tagName.toLowerCase();} +else{break;}}} +oSelf.fireEvent("tableMouseoutEvent",{target:elTarget,event:e});};YAHOO.widget.DataTable.prototype._onMousedown=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"td":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e});knownTag=true;break;case"th":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("headCellMousedownEvent",{target:elTarget,event:e});knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;if(elTarget){elTag=elTarget.tagName.toLowerCase();} +else{break;}}} +oSelf.fireEvent("tableMousedownEvent",{target:elTarget,event:e});};YAHOO.widget.DataTable.prototype._onClick=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(oSelf.activeEditor){oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();} +if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"input":if(elTarget.type.toLowerCase()=="checkbox"){oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e});} +else if(elTarget.type.toLowerCase()=="radio"){oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e});} +knownTag=true;break;case"td":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e});knownTag=true;break;case"th":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("headCellClickEvent",{target:elTarget,event:e});knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;elTag=elTarget.tagName.toLowerCase();}} +oSelf.focusTable();oSelf.fireEvent("tableClickEvent",{target:elTarget,event:e});};YAHOO.widget.DataTable.prototype._onDoubleclick=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(oSelf.activeEditor){oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();} +if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"td":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("cellDoubleclickEvent",{target:elTarget,event:e});knownTag=true;break;case"th":YAHOO.util.Event.stopEvent(e);oSelf.fireEvent("headCellDoubleclickEvent",{target:elTarget,event:e});knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;elTag=elTarget.tagName.toLowerCase();}} +oSelf.fireEvent("tableDoubleclickEvent",{target:elTarget,event:e});};YAHOO.widget.DataTable.prototype._onKeypress=function(e,oSelf){var isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);if(isMac){if(e.keyCode==40){YAHOO.util.Event.stopEvent(e);} +else if(e.keyCode==38){YAHOO.util.Event.stopEvent(e);}}};YAHOO.widget.DataTable.prototype._onKeydown=function(e,oSelf){var oldSelected=oSelf._lastSelected;if(oldSelected&&oSelf.isSelected(oldSelected)){var newSelected;if(e.keyCode==40){YAHOO.util.Event.stopEvent(e);if(oldSelected.tagName.toLowerCase()=="tr"){if(oldSelected.sectionRowIndex+1<oSelf._elBody.rows.length){if(!e.shiftKey){oSelf.unselectAllRows();} +newSelected=oSelf._elBody.rows[oldSelected.sectionRowIndex+1];oSelf.select(newSelected);}} +else if(oldSelected.tagName.toLowerCase()=="td"){} +oSelf._bFocused=false;oSelf.focusTable();} +else if(e.keyCode==38){YAHOO.util.Event.stopEvent(e);if(oldSelected.tagName.toLowerCase()=="tr"){if((oldSelected.sectionRowIndex>0)){if(!e.shiftKey){oSelf.unselectAllRows();} +newSelected=oSelf._elBody.rows[oldSelected.sectionRowIndex-1];oSelf.select(newSelected);}} +else if(oldSelected.tagName.toLowerCase()=="td"){if((oldSelected.sectionRowIndex>0)){if(!e.shiftKey){oSelf.unselectAllRows();} +newSelected=oSelf._elBody.rows[oldSelected.sectionRowIndex-1];oSelf.select(newSelected);}} +oSelf._bFocused=false;oSelf.focusTable();}}};YAHOO.widget.DataTable.prototype._onKeyup=function(e,oSelf){var key=YAHOO.util.Event.getCharCode(e);if(key==46){}};YAHOO.widget.DataTable.prototype._onDocumentKeyup=function(e,oSelf){if((e.keyCode==27)&&(oSelf.activeEditor)){oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();} +if((e.keyCode==13)&&(oSelf.activeEditor)){var elCell=oSelf.activeEditor.cell;var oColumn=oSelf.activeEditor.column;var oRecord=oSelf.activeEditor.record;var oldValue=oRecord[oColumn.key];var newValue=oSelf.activeEditor.getValue();oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue);oSelf.formatCell(elCell);oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue});}};YAHOO.widget.DataTable.prototype._onPagerClick=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"a":YAHOO.util.Event.stopEvent(e);switch(elTarget.className){case YAHOO.widget.DataTable.CLASS_PAGELINK:oSelf.showPage(parseInt(elTarget.innerHTML,10));break;case YAHOO.widget.DataTable.CLASS_FIRSTLINK:oSelf.showPage(1);break;case YAHOO.widget.DataTable.CLASS_LASTLINK:oSelf.showPage(oSelf._totalPages);break;case YAHOO.widget.DataTable.CLASS_PREVLINK:oSelf.showPage(oSelf.pageCurrent-1);break;case YAHOO.widget.DataTable.CLASS_NEXTLINK:oSelf.showPage(oSelf.pageCurrent+1);break;} +knownTag=true;break;default:break;} +elTarget=elTarget.parentNode;if(elTarget){elTag=elTarget.tagName.toLowerCase();} +else{break;}}}};YAHOO.widget.DataTable.prototype._onPagerSelect=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var oldRowsPerPage=oSelf.rowsPerPage;var rowsPerPage=parseInt(elTarget[elTarget.selectedIndex].text,10);if(rowsPerPage&&(rowsPerPage!=oSelf.rowsPerPage)){if(rowsPerPage>oldRowsPerPage){oSelf.pageCurrent=1;} +oSelf.rowsPerPage=rowsPerPage;oSelf.paginateRows();}};YAHOO.widget.DataTable.prototype._onRowDelete=function(oArgs){this._restripeRows();};YAHOO.widget.DataTable.prototype._onRecordUpdate=function(oArgs){this.fireEvent("recordSetUpdateEvent",oArgs);};YAHOO.widget.DataTable.prototype.dataSource=null;YAHOO.widget.DataTable.prototype.initialRequest="";YAHOO.widget.DataTable.prototype.caption=null;YAHOO.widget.DataTable.prototype.summary=null;YAHOO.widget.DataTable.prototype.fixedWidth=false;YAHOO.widget.DataTable.prototype.scrollable=false;YAHOO.widget.DataTable.prototype.rowSingleSelect=false;YAHOO.widget.DataTable.prototype.contextMenu=null;YAHOO.widget.DataTable.prototype.pageCurrent=1;YAHOO.widget.DataTable.prototype.rowsPerPage=500;YAHOO.widget.DataTable.prototype.startRecordIndex=1;YAHOO.widget.DataTable.prototype.pageLinksLength=-1;YAHOO.widget.DataTable.prototype.rowsPerPageDropdown=null;YAHOO.widget.DataTable.prototype.pageLinksStart=1;YAHOO.widget.DataTable.prototype.pagers=null;YAHOO.widget.DataTable.prototype.isEmpty=false;YAHOO.widget.DataTable.prototype.sortedBy=null;YAHOO.widget.DataTable.prototype.toString=function(){return"DataTable "+this._sName;};YAHOO.widget.DataTable.prototype.getTable=function(){return(this._elTable);};YAHOO.widget.DataTable.prototype.getHead=function(){return(this._elHead);};YAHOO.widget.DataTable.prototype.getBody=function(){return(this._elBody);};YAHOO.widget.DataTable.prototype.getRow=function(index){return(this._elBody.rows[index]);};YAHOO.widget.DataTable.prototype.getCell=function(row,col){return(this._elBody.rows[row].cells[col]);};YAHOO.widget.DataTable.prototype.showEmptyMessage=function(){if(this.isEmpty){return;} +if(this.isLoading){this.hideTableMessages();} +this._elMsgBody.style.display="";var elCell=this._elMsgCell;elCell.className=YAHOO.widget.DataTable.CLASS_EMPTY;elCell.innerHTML=YAHOO.widget.DataTable.MSG_EMPTY;this.isEmpty=true;};YAHOO.widget.DataTable.prototype.showLoadingMessage=function(){if(this.isLoading){return;} +if(this.isEmpty){this.hideTableMessages();} +this._elMsgBody.style.display="";var elCell=this._elMsgCell;elCell.className=YAHOO.widget.DataTable.CLASS_LOADING;elCell.innerHTML=YAHOO.widget.DataTable.MSG_LOADING;this.isLoading=true;};YAHOO.widget.DataTable.prototype.hideTableMessages=function(){if(!this.isEmpty&&!this.isLoading){return;} +this._elMsgBody.style.display="none";this.isEmpty=false;this.isLoading=false;};YAHOO.widget.DataTable.prototype.focusTable=function(){var elTable=this._elTable;if(!this._bFocused){setTimeout(function(){elTable.focus();},0);this._bFocused=true;this.fireEvent("tableFocusEvent");}};YAHOO.widget.DataTable.prototype.doBeforeLoadData=function(sRequest,oResponse){return true;};YAHOO.widget.DataTable.prototype.appendRows=function(aRecords){if(aRecords&&aRecords.length>0){this.hideTableMessages();var rowIds=[];for(var i=0;i<aRecords.length;i++){var rowId=this._addRow(aRecords[i]);rowIds.push(rowId);} +this.fireEvent("rowAppendEvent",{rowIds:rowIds});}};YAHOO.widget.DataTable.prototype.insertRows=function(aRecords){if(aRecords&&aRecords.length>0){this.hideTableMessages();var rowIds=[];for(var i=0;i<aRecords.length;i++){var rowId=this._addRow(aRecords[i],0);rowIds.push(rowId);} +this.fireEvent("rowInsertEvent",{rowIds:rowIds});}};YAHOO.widget.DataTable.prototype.replaceRows=function(aRecords){var i;if(aRecords&&aRecords.length>0){this.hideTableMessages();var elBody=this._elBody;var elRows=this._elBody.rows;while(elBody.hasChildNodes()&&(elRows.length>aRecords.length)){elBody.deleteRow(0);} +var selectedRecords=this.getSelectedRecordIds();if(selectedRecords.length>0){this._unselectAllRows();} +var rowIds=[];for(i=0;i<elRows.length;i++){if(aRecords[i]){var oRecord=aRecords[i];rowIds.push(this._updateRow(oRecord,i));}} +for(i=elRows.length;i<aRecords.length;i++){rowIds.push(this._addRow(aRecords[i]));} +for(i=0;i<selectedRecords.length;i++){var allRows=elBody.rows;for(var j=0;j<allRows.length;j++){if(selectedRecords[i]==allRows[j].recordId){this._select([allRows[j]]);}}} +this.fireEvent("rowReplaceEvent",{rowIds:rowIds});}};YAHOO.widget.DataTable.prototype.addRow=function(oRecord,index){if(oRecord){var rowId=this._addRow(oRecord,index);if(index!==undefined){this.fireEvent("rowInsertEvent",{rowIds:[rowId]});} +else{this.fireEvent("rowAppendEvent",{rowIds:[rowId]});}}};YAHOO.widget.DataTable.prototype.updateRow=function(oRecord,index){if(oRecord){var rowId=this._updateRow(oRecord,index);this.fireEvent("rowUpdateEvent",{rowIds:[rowId]});}};YAHOO.widget.DataTable.prototype.deleteRows=function(rows){var rowIndexes=[];for(var i=0;i<rows.length;i++){var rowIndex=(rows[i].sectionRowIndex!==undefined)?rows[i].sectionRowIndex:null;rowIndexes.push(rowIndex);this._deleteRow(rows[i]);this.fireEvent("rowDeleteEvent",{rowIndexes:rowIndexes});}};YAHOO.widget.DataTable.prototype.deleteRow=function(elRow){if(elRow){var rowIndex=(elRow.sectionRowIndex!==undefined)?elRow.sectionRowIndex:null;this._deleteRow(elRow);this.fireEvent("rowDeleteEvent",{rowIndexes:[rowIndex]});}};YAHOO.widget.DataTable.prototype.highlight=function(els){if(els.constructor!=Array){els=[els];} +YAHOO.util.Dom.addClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT);this.fireEvent("highlightEvent",{els:els});};YAHOO.widget.DataTable.prototype.unhighlight=function(els){if(els.constructor!=Array){els=[els];} +YAHOO.util.Dom.removeClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT);this.fireEvent("unhighlightEvent",{els:els});};YAHOO.widget.DataTable.prototype.select=function(els){if(els){if(els.constructor!=Array){els=[els];} +this._select(els);var tracker=this._aSelectedRecords||[];for(var i=0;i<els.length;i++){var id=els[i].recordId;if(tracker.indexOf&&(tracker.indexOf(id)>-1)){tracker.splice(tracker.indexOf(id),1);} +else{for(var j=0;j<tracker.length;j++){if(tracker[j]===id){tracker.splice(j,1);}}} +tracker.push(id);} +this._aSelectedRecords=tracker;this.fireEvent("selectEvent",{els:els});}};YAHOO.widget.DataTable.prototype.unselect=function(els){if(els){if(els.constructor!=Array){els=[els];} +this._unselect(els);var tracker=this._aSelectedRecords||[];for(var i=0;i<els.length;i++){var id=els[i].recordId;if(tracker.indexOf&&(tracker.indexOf(id)>-1)){tracker.splice(tracker.indexOf(id),1);} +else{for(var j=0;j<tracker.length;j++){if(tracker[j]===id){tracker.splice(j,1);}}}} +this._aSelectedRecords=tracker;this.fireEvent("unselectEvent",{els:els});}};YAHOO.widget.DataTable.prototype.unselectAllRows=function(){var selectedRows=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody);this.unselect(selectedRows);this.fireEvent("unselectEvent",{els:selectedRows});};YAHOO.widget.DataTable.prototype.unselectAllCells=function(){var selectedCells=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody);this.unselect(selectedCells);this.fireEvent("unselectEvent",{els:selectedCells});};YAHOO.widget.DataTable.prototype.isSelected=function(el){return YAHOO.util.Dom.hasClass(el,YAHOO.widget.DataTable.CLASS_SELECTED);};YAHOO.widget.DataTable.prototype.getSelectedRecordIds=function(){return this._aSelectedRecords||[];};YAHOO.widget.DataTable.prototype.getSelectedRows=function(){return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody);};YAHOO.widget.DataTable.prototype.getSelectedCells=function(){return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody);};YAHOO.widget.DataTable.prototype.getColumnSet=function(){return this._oColumnSet;};YAHOO.widget.DataTable.prototype.getRecordSet=function(){return this._oRecordSet;};YAHOO.widget.DataTable.prototype.showPage=function(nPage){if(!nPage||isNaN(nPage)||(nPage<1)||(nPage>this._totalPages)){nPage=1;} +this.pageCurrent=nPage;this.paginateRows();};YAHOO.widget.DataTable.prototype.paginateRows=function(){var i;var recordsLength=this._oRecordSet.getLength();var maxRows=(this.rowsPerPage<recordsLength)?this.rowsPerPage:recordsLength;this._totalPages=Math.ceil(recordsLength/maxRows);this.startRecordIndex=(this.pageCurrent-1)*this.rowsPerPage;var pageLinksLength=((this.pageLinksLength>0)&&(this.pageLinksLength<this._totalPages))?this.pageLinksLength:this._totalPages;this.pageLinksStart=(Math.ceil(this.pageCurrent/pageLinksLength-1)*pageLinksLength)+1;var pageRecords=this._oRecordSet.getRecords(this.startRecordIndex,this.rowsPerPage);this.replaceRows(pageRecords);if(this.rowsPerPage<recordsLength){var isFirstPage=(this.pageCurrent==1)?true:false;var isLastPage=(this.pageCurrent==this._totalPages)?true:false;var firstPageLink=(isFirstPage)?" <span class=\""+YAHOO.widget.DataTable.CLASS_FIRSTPAGE+"\"><<</span> ":" <a href=\"#\" class=\""+YAHOO.widget.DataTable.CLASS_FIRSTLINK+"\"><<</a> ";var prevPageLink=(isFirstPage)?" <span class=\""+YAHOO.widget.DataTable.CLASS_PREVPAGE+"\"><</span> ":" <a href=\"#\" class=\""+YAHOO.widget.DataTable.CLASS_PREVLINK+"\"><</a> ";var nextPageLink=(isLastPage)?" <span class=\""+YAHOO.widget.DataTable.CLASS_NEXTPAGE+"\">></span> ":" <a href=\"#\" class=\""+YAHOO.widget.DataTable.CLASS_NEXTLINK+"\">></a> ";var lastPageLink=(isLastPage)?" <span class=\""+YAHOO.widget.DataTable.CLASS_LASTPAGE+"\">>></span> ":" <a href=\"#\" class=\""+YAHOO.widget.DataTable.CLASS_LASTLINK+"\">>></a> ";var markup=firstPageLink+prevPageLink;var maxLinks=(this.pageLinksStart+pageLinksLength<this._totalPages)?this.pageLinksStart+pageLinksLength-1:this._totalPages;for(i=this.pageLinksStart;i<=maxLinks;i++){if(i!=this.pageCurrent){markup+=" <a href=\"#\" class=\""+YAHOO.widget.DataTable.CLASS_PAGELINK+"\">"+i+"</a> ";} +else{markup+=" <span class=\""+YAHOO.widget.DataTable.CLASS_CURRENTPAGE+"\">"+i+"</span>";}} +markup+=nextPageLink+lastPageLink;var dropdown=this.rowsPerPageDropdown;var select1,select2;if(dropdown&&(dropdown.constructor==Array)&&(dropdown.length>0)){select1=document.createElement("select");select1.className=YAHOO.widget.DataTable.CLASS_PAGESELECT;select2=document.createElement("select");select2.className=YAHOO.widget.DataTable.CLASS_PAGESELECT;for(i=0;i<dropdown.length;i++){var option1=document.createElement("option");var option2=document.createElement("option");option1.value=dropdown[i];option2.value=dropdown[i];option1.innerHTML=dropdown[i];option2.innerHTML=dropdown[i];if(this.rowsPerPage===dropdown[i]){option1.selected=true;option2.selected=true;} +option1=select1.appendChild(option1);option2=select2.appendChild(option2);}} +if(!this.pagers||(this.pagers.length===0)){var pager1=document.createElement("span");pager1.className=YAHOO.widget.DataTable.CLASS_PAGELINKS;var pager2=document.createElement("span");pager2.className=YAHOO.widget.DataTable.CLASS_PAGELINKS;pager1=this._elContainer.insertBefore(pager1,this._elTable);select1=(select1===undefined)?null:this._elContainer.insertBefore(select1,this._elTable);select2=(select2===undefined)?null:this._elContainer.insertBefore(select2,this._elTable.nextSibling);pager2=this._elContainer.insertBefore(pager2,this._elTable.nextSibling);this.pagers=[{links:pager1,select:select1},{links:pager2,select:select2}];} +for(i=0;i<this.pagers.length;i++){this.pagers[i].links.innerHTML=markup;YAHOO.util.Event.purgeElement(this.pagers[i].links);if(this.pagers[i].select){YAHOO.util.Event.purgeElement(this.pagers[i].select);} +this.pagers[i].innerHTML=markup;YAHOO.util.Event.addListener(this.pagers[i].links,"click",this._onPagerClick,this);if(this.pagers[i].select){YAHOO.util.Event.addListener(this.pagers[i].select,"change",this._onPagerSelect,this);}}} +this.fireEvent("paginateEvent");};YAHOO.widget.DataTable.prototype.sortColumn=function(oColumn){if(!oColumn){return;} +if(!oColumn instanceof YAHOO.widget.Column){return;} +if(oColumn.sortable){var sortDir=(oColumn.sortOptions&&oColumn.sortOptions.defaultOrder)?oColumn.sortOptions.defaultOrder:"asc";if(oColumn.key&&this.sortedBy&&(this.sortedBy.colKey==oColumn.key)){if(this.sortedBy.dir){sortDir=(this.sortedBy.dir=="asc")?"desc":"asc";} +else{sortDir=(sortDir=="asc")?"desc":"asc";}} +else if(!this.sortedBy){this.sortedBy={};} +var sortFnc=null;if((sortDir=="desc")&&oColumn.sortOptions&&oColumn.sortOptions.descFunction){sortFnc=oColumn.sortOptions.descFunction;} +else if((sortDir=="asc")&&oColumn.sortOptions&&oColumn.sortOptions.ascFunction){sortFnc=oColumn.sortOptions.ascFunction;} +if(!sortFnc&&oColumn.key){var sorted;sortFnc=function(a,b){if(sortDir=="desc"){sorted=YAHOO.util.Sort.compareDesc(a[oColumn.key],b[oColumn.key]);if(sorted===0){return YAHOO.util.Sort.compareDesc(a.id,b.id);} +else{return sorted;}} +else{sorted=YAHOO.util.Sort.compareAsc(a[oColumn.key],b[oColumn.key]);if(sorted===0){return YAHOO.util.Sort.compareAsc(a.id,b.id);} +else{return sorted;}}};} +if(sortFnc){this._oRecordSet.sort(sortFnc);this.paginateRows();YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYASC);YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYDESC);var newClass=(sortDir=="asc")?YAHOO.widget.DataTable.CLASS_SORTEDBYASC:YAHOO.widget.DataTable.CLASS_SORTEDBYDESC;YAHOO.util.Dom.addClass(oColumn.getId(),newClass);this.sortedBy.colKey=oColumn.key;this.sortedBy.dir=sortDir;this.sortedBy._id=oColumn.getId();this.fireEvent("columnSortEvent",{column:oColumn,dir:sortDir});}} +else{}};YAHOO.widget.DataTable.prototype.editCell=function(elCell){if(elCell&&!isNaN(elCell.columnIndex)){var column=this._oColumnSet.keys[elCell.columnIndex];if(column&&column.editor){this.activeEditor=column.getEditor(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId));} +this._bFocused=true;this.fireEvent("editorShowEvent",{target:elCell,column:column});}};YAHOO.widget.DataTable.prototype.formatCell=function(elCell){if(elCell&&!isNaN(elCell.columnIndex)){var column=this._oColumnSet.keys[elCell.columnIndex];column.format(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId));this.fireEvent("cellFormatEvent",{el:elCell});}};YAHOO.widget.DataTable.prototype.onEventSortColumn=function(oArgs){var evt=oArgs.event;var target=oArgs.target;YAHOO.util.Event.stopEvent(evt);var columnIndex=target.columnIndex;if(!isNaN(columnIndex)){this.sortColumn(this._oColumnSet.keys[columnIndex]);}};YAHOO.widget.DataTable.prototype.onEventSelectRow=function(oArgs){var i;var evt=oArgs.event;var target=oArgs.target;while(target.tagName.toLowerCase()!="tr"){target=target.parentNode;} +if(this.isSelected(target)){this.unselect(target);} +else{if(this.rowSingleSelect&&!evt.ctrlKey&&!evt.shiftKey){this.unselectAllRows();} +if(evt.shiftKey){var startRow=this._lastSelected;if(startRow&&this.isSelected(startRow)){this.unselectAllRows();if(startRow.sectionRowIndex<target.sectionRowIndex){for(i=startRow.sectionRowIndex;i<=target.sectionRowIndex;i++){this.select(this._elBody.rows[i]);}} +else{for(i=target.sectionRowIndex;i<=startRow.sectionRowIndex;i++){this.select(this._elBody.rows[i]);}}} +else{this.select(target);}} +else{this.select(target);}}};YAHOO.widget.DataTable.prototype.onEventSelectCell=function(oArgs){var evt=oArgs.event;var target=oArgs.target;while(target.tagName.toLowerCase()!="td"){target=target.parentNode;} +if(this.isSelected(target)){this.unselect(target);} +else{if(this.rowSingleSelect&&!evt.ctrlKey){this.unselectAllCells();} +this.select(target);}};YAHOO.widget.DataTable.prototype.onEventFormatCell=function(oArgs){var evt=oArgs.event;var element=oArgs.target;while(element.tagName.toLowerCase()!="td"){element=element.parentNode;} +this.formatCell(element);};YAHOO.widget.DataTable.prototype.onEventHighlightCell=function(oArgs){var evt=oArgs.event;var element=oArgs.target;while(element.tagName.toLowerCase()!="td"){element=element.parentNode;} +this.highlight(element);};YAHOO.widget.DataTable.prototype.onEventUnhighlightCell=function(oArgs){var evt=oArgs.event;var element=oArgs.target;while(element.tagName.toLowerCase()!="td"){element=element.parentNode;} +this.unhighlight(element);};YAHOO.widget.DataTable.prototype.onEventEditCell=function(oArgs){var evt=oArgs.event;var element=oArgs.target;while(element.tagName.toLowerCase()!="td"){element=element.parentNode;} +this.editCell(element);};YAHOO.widget.DataTable.prototype.onDataReturnPaginateRows=function(sRequest,oResponse){this.fireEvent("dataReturnEvent",{request:sRequest,response:oResponse});var ok=this.doBeforeLoadData(sRequest,oResponse);if(ok){var newRecords=this._oRecordSet.append(oResponse);if(newRecords){this.paginateRows();}}};YAHOO.widget.DataTable.prototype.onDataReturnAppendRows=function(sRequest,oResponse){this.fireEvent("dataReturnEvent",{request:sRequest,response:oResponse});var ok=this.doBeforeLoadData(sRequest,oResponse);if(ok){var newRecords=this._oRecordSet.append(oResponse);if(newRecords){this.appendRows(newRecords);}}};YAHOO.widget.DataTable.prototype.onDataReturnInsertRows=function(sRequest,oResponse){this.fireEvent("dataReturnEvent",{request:sRequest,response:oResponse});var ok=this.doBeforeLoadData(sRequest,oResponse);if(ok){var newRecords=this._oRecordSet.insert(oResponse);if(newRecords){this.insertRows(newRecords);}}};YAHOO.widget.DataTable.prototype.onDataReturnReplaceRows=function(sRequest,oResponse){this.fireEvent("dataReturnEvent",{request:sRequest,response:oResponse});var ok=this.doBeforeLoadData(sRequest,oResponse);if(ok){var newRecords=this._oRecordSet.replace(oResponse);if(newRecords){this.replaceRows(newRecords);}}};YAHOO.widget.ColumnSet=function(aHeaders){this._sName="instance"+YAHOO.widget.ColumnSet._nCount;var tree=[];var flat=[];var keys=[];var headers=[];var nodelevel=-1;var parseColumns=function(nodeList,parent){nodelevel++;if(!tree[nodelevel]){tree[nodelevel]=[];} +var nodeLevelMaxChildren=0;var recurseChildren=function(nodeList){var tmpMax=0;for(var i=0;i<nodeList.length;i++){if(nodeList[i].children){tmpMax++;recurseChildren(nodeList[i].children);} +if(tmpMax>nodeLevelMaxChildren){nodeLevelMaxChildren=tmpMax;}}};recurseChildren(nodeList);for(var j=0;j<nodeList.length;j++){var oColumn=new YAHOO.widget.Column(nodeList[j]);flat.push(oColumn);if(parent){oColumn._parent=parent;} +oColumn._rowspan=1;oColumn._colspan=1;if(nodeList[j].children){var children=nodeList[j].children;var length=children.length;for(var k=0;k<length;k++){var child=children[k];if(oColumn.className&&(child.className===undefined)){child.className=oColumn.className;} +if(oColumn.editor&&(child.editor===undefined)){child.editor=oColumn.editor;} +if(oColumn.formatter&&(child.formatter===undefined)){child.formatter=oColumn.formatter;} +if(oColumn.parser&&(child.parser===undefined)){child.parser=oColumn.parser;} +if(oColumn.resizeable&&(child.resizeable===undefined)){child.resizeable=oColumn.resizeable;} +if(oColumn.type&&(child.type===undefined)){child.type=oColumn.type;} +if(oColumn.width&&(child.width===undefined)){child.width=oColumn.width;}} +oColumn._colspan=length;if(parent&&parent._colspan){parent._colspan+=length-1;parent._children=[];parent._children.push(oColumn);} +if(!tree[nodelevel+1]){tree[nodelevel+1]=[];} +parseColumns(children,oColumn);} +else if(nodeLevelMaxChildren>0){oColumn._rowspan+=nodeLevelMaxChildren;oColumn._index=keys.length;keys.push(oColumn);} +else{oColumn._index=keys.length;keys.push(oColumn);} +tree[nodelevel].push(oColumn);} +nodelevel--;};if(aHeaders.length>0){parseColumns(aHeaders);} +var recurseAncestors=function(i,oColumn){headers[i].push(oColumn._id);if(oColumn._parent){recurseAncestors(i,oColumn._parent);}};for(var i=0;i<keys.length;i++){headers[i]=[];recurseAncestors(i,keys[i]);headers[i]=headers[i].reverse();headers[i]=headers[i].join(" ");} +this.tree=tree;this.flat=flat;this.keys=keys;this.headers=headers;YAHOO.widget.ColumnSet._nCount++;};YAHOO.widget.ColumnSet._nCount=0;YAHOO.widget.ColumnSet.prototype._sName=null;YAHOO.widget.ColumnSet.prototype.tree=null;YAHOO.widget.ColumnSet.prototype.flat=null;YAHOO.widget.ColumnSet.prototype.keys=null;YAHOO.widget.ColumnSet.prototype.headers=null;YAHOO.widget.ColumnSet.prototype.toString=function(){return"ColumnSet "+this._sName;};YAHOO.widget.Column=function(oConfigs){this._id="yui-dtcol"+YAHOO.widget.Column._nCount;if(typeof oConfigs=="object"){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}} +YAHOO.widget.Column._nCount++;};YAHOO.widget.Column._nCount=0;YAHOO.widget.Column.prototype._id=null;YAHOO.widget.Column.prototype._index=null;YAHOO.widget.Column.prototype._colspan=1;YAHOO.widget.Column.prototype._rowspan=1;YAHOO.widget.Column.prototype._parent=null;YAHOO.widget.Column.prototype._children=null;YAHOO.widget.Column.prototype._width=null;YAHOO.widget.Column.prototype._minWidth=null;YAHOO.widget.Column.prototype.key=null;YAHOO.widget.Column.prototype.text=null;YAHOO.widget.Column.prototype.type="string";YAHOO.widget.Column.prototype.abbr=null;YAHOO.widget.Column.prototype.children=null;YAHOO.widget.Column.prototype.width=null;YAHOO.widget.Column.prototype.className=null;YAHOO.widget.Column.prototype.formatter=null;YAHOO.widget.Column.prototype.parser=null;YAHOO.widget.Column.prototype.editor=null;YAHOO.widget.Column.prototype.resizeable=false;YAHOO.widget.Column.prototype.sortable=false;YAHOO.widget.Column.prototype.descFunction=null;YAHOO.widget.Column.prototype.ascFunction=null;YAHOO.widget.Column.prototype.getId=function(){return this._id;};YAHOO.widget.Column.prototype.getColSpan=function(){return this._colspan;};YAHOO.widget.Column.prototype.getRowSpan=function(){return this._rowspan;};YAHOO.widget.Column.prototype.format=function(elCell,oRecord){var oData=(this.key)?oRecord[this.key]:null;if(this.formatter){this.formatter(elCell,oRecord,this,oData);} +else{var type=this.type;var markup="";var classname="";switch(type){case"checkbox":YAHOO.widget.Column.formatCheckbox(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_CHECKBOX;break;case"currency":YAHOO.widget.Column.formatCurrency(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_CURRENCY;break;case"date":YAHOO.widget.Column.formatDate(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_DATE;break;case"email":YAHOO.widget.Column.formatEmail(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_EMAIL;break;case"link":YAHOO.widget.Column.formatLink(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_LINK;break;case"number":YAHOO.widget.Column.formatNumber(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_NUMBER;break;case"select":YAHOO.widget.Column.formatSelect(elCell,oRecord,this,oData);classname=YAHOO.widget.DataTable.CLASS_SELECT;break;default:elCell.innerHTML=(oData)?oData.toString():"";classname=YAHOO.widget.DataTable.CLASS_STRING;break;} +YAHOO.util.Dom.addClass(elCell,classname);if(this.className){YAHOO.util.Dom.addClass(elCell,this.className);}} +if(this.editor){YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_EDITABLE);}};YAHOO.widget.Column.formatCheckbox=function(elCell,oRecord,oColumn,oData){var bChecked=oData;bChecked=(bChecked)?" checked":"";elCell.innerHTML="<input type=\"checkbox\""+bChecked+" class=\""+YAHOO.widget.DataTable.CLASS_CHECKBOX+"\">";};YAHOO.widget.Column.formatCurrency=function(elCell,oRecord,oColumn,oData){var nAmount=oData;var markup;if(nAmount){markup="$"+nAmount;var dotIndex=markup.indexOf(".");if(dotIndex<0){markup+=".00";} +else{while(dotIndex!=markup.length-3){markup+="0";}}} +else{markup="";} +elCell.innerHTML=markup;};YAHOO.widget.Column.formatDate=function(elCell,oRecord,oColumn,oData){var oDate=oData;if(oDate){elCell.innerHTML=oDate.getMonth()+"/"+oDate.getDate()+"/"+oDate.getFullYear();} +else{elCell.innerHTML="";}};YAHOO.widget.Column.formatEmail=function(elCell,oRecord,oColumn,oData){var sEmail=oData;if(sEmail){elCell.innerHTML="<a href=\"mailto:"+sEmail+"\">"+sEmail+"</a>";} +else{elCell.innerHTML="";}};YAHOO.widget.Column.formatLink=function(elCell,oRecord,oColumn,oData){var sLink=oData;if(sLink){elCell.innerHTML="<a href=\""+sLink+"\">"+sLink+"</a>";} +else{elCell.innerHTML="";}};YAHOO.widget.Column.formatNumber=function(elCell,oRecord,oColumn,oData){var nNumber=oData;if(nNumber){elCell.innerHTML=nNumber.toString();} +else{elCell.innerHTML="";}};YAHOO.widget.Column.formatSelect=function(elCell,oRecord,oColumn,oData){var selectedValue=oData;var options=oColumn.selectOptions;var markup="<select>";if(options){for(var i=0;i<options.length;i++){var option=options[i];markup+="<option value=\""+option+"\"";if(selectedValue===option){markup+=" selected";} +markup+=">"+option+"</option>";}} +else{if(selectedValue){markup+="<option value=\""+selectedValue+"\" selected>"+selectedValue+"</option>";}} +markup+="</select>";elCell.innerHTML=markup;};YAHOO.widget.Column.prototype.parse=function(sMarkup){if(this.parser){return this.parser(sMarkup);} +else{var data=null;switch(this.type){case"checkbox":data=YAHOO.widget.Column.parseCheckbox(sMarkup);break;case"currency":data=YAHOO.widget.Column.parseCurrency(sMarkup);break;case"date":data=YAHOO.widget.Column.parseDate(sMarkup);break;case"number":data=YAHOO.widget.Column.parseNumber(sMarkup);break;case"select":data=YAHOO.widget.Column.parseSelect(sMarkup);break;default:if(sMarkup){data=sMarkup;} +break;} +return data;}};YAHOO.widget.Column.parseCheckbox=function(sMarkup){return(sMarkup.indexOf("checked")<0)?false:true;};YAHOO.widget.Column.parseCurrency=function(sMarkup){return parseFloat(sMarkup.substring(1));};YAHOO.widget.Column.parseDate=function(sMarkup){var mm=sMarkup.substring(0,sMarkup.indexOf("/"));sMarkup=sMarkup.substring(sMarkup.indexOf("/")+1);var dd=sMarkup.substring(0,sMarkup.indexOf("/"));var yy=sMarkup.substring(sMarkup.indexOf("/")+1);return new Date(yy,mm,dd);};YAHOO.widget.Column.parseNumber=function(sMarkup){return parseFloat(sMarkup);};YAHOO.widget.Column.parseSelect=function(sMarkup){};YAHOO.widget.Column.prototype.getEditor=function(elCell,oRecord){var oEditor=this.editor;if(oEditor.constructor==String){oEditor=new YAHOO.widget.ColumnEditor(this.editor);oEditor.show(elCell,oRecord,this);this.editor=oEditor;} +else if(oEditor instanceof YAHOO.widget.ColumnEditor){oEditor.show(elCell,oRecord,this);} +return oEditor;};YAHOO.widget.ColumnEditor=function(sType){this.type=sType;var container=document.body.appendChild(document.createElement("div"));container.style.position="absolute";container.style.zIndex=9000;container.id="yui-dt-coled"+YAHOO.widget.ColumnEditor._nCount;this.container=container;switch(this.type){case"textbox":this.createTextboxEditor();break;case"textarea":this.createTextareaEditor();break;default:break;} +YAHOO.widget.ColumnEditor._nCount++;};YAHOO.widget.ColumnEditor._nCount=0;YAHOO.widget.ColumnEditor.prototype.container=null;YAHOO.widget.ColumnEditor.prototype.column=null;YAHOO.widget.ColumnEditor.prototype.type=null;YAHOO.widget.ColumnEditor.prototype.input=null;YAHOO.widget.ColumnEditor.prototype.show=function(elCell,oRecord,oColumn){this.cell=elCell;this.record=oRecord;this.column=oColumn;switch(this.type){case"textbox":this.showTextboxEditor(elCell,oRecord,oColumn);break;case"textarea":this.showTextareaEditor(elCell,oRecord,oColumn);break;default:break;}};YAHOO.widget.ColumnEditor.prototype.getValue=function(){var value;switch(this.type){case"textbox":value=this.getTextboxEditorValue();break;case"textarea":value=this.getTextareaEditorValue();break;default:break;} +return value;};YAHOO.widget.ColumnEditor.prototype.createTextboxEditor=function(){var elTextbox=this.container.appendChild(document.createElement("input"));elTextbox.setAttribute("autocomplete","off");this.input=elTextbox;};YAHOO.widget.ColumnEditor.prototype.createTextareaEditor=function(){var elTextarea=this.container.appendChild(document.createElement("textarea"));this.input=elTextarea;};YAHOO.widget.ColumnEditor.prototype.showTextboxEditor=function(elCell,oRecord,oColumn){this.input.style.width=(parseInt(elCell.offsetWidth,10)-7)+"px";this.input.style.height=(parseInt(elCell.offsetHeight,10)-7)+"px";this.input.value=elCell.innerHTML;var x,y;if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){x=elCell.offsetLeft;y=elCell.offsetTop;while(elCell.offsetParent){x+=elCell.offsetParent.offsetLeft;y+=elCell.offsetParent.offsetTop;elCell=elCell.offsetParent;}} +else{var xy=YAHOO.util.Dom.getXY(elCell);x=parseInt(YAHOO.util.Dom.getX(elCell),10);y=parseInt(YAHOO.util.Dom.getY(elCell),10);} +this.container.style.left=x+"px";this.container.style.top=y+"px";this.container.style.display="block";this.input.tabIndex=0;this.input.focus();this.input.select();};YAHOO.widget.ColumnEditor.prototype.showTextareaEditor=function(elCell,oRecord,oColumn){this.input.style.width=(parseInt(elCell.offsetWidth,10)-7)+"px";this.input.style.height=4*(parseInt(elCell.offsetHeight,10)-7)+"px";this.input.value=elCell.innerHTML;var x,y;if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){x=elCell.offsetLeft;y=elCell.offsetTop;while(elCell.offsetParent){x+=elCell.offsetParent.offsetLeft;y+=elCell.offsetParent.offsetTop;elCell=elCell.offsetParent;}} +else{var xy=YAHOO.util.Dom.getXY(elCell);x=parseInt(YAHOO.util.Dom.getX(elCell),10);y=parseInt(YAHOO.util.Dom.getY(elCell),10);} +this.container.style.left=x+"px";this.container.style.top=y+"px";this.container.style.display="block";this.input.tabIndex=0;this.input.focus();this.input.select();};YAHOO.widget.ColumnEditor.prototype.hide=function(){this.input.tabIndex=-1;this.container.style.display="none";};YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue=function(){return this.input.value;};YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue=function(){return this.input.value;};YAHOO.util.Sort={compareAsc:function(a,b){if(a.constructor==String){a=a.toLowerCase();} +if(b.constructor==String){b=b.toLowerCase();} +if(a<b){return-1;} +else if(a>b){return 1;} +else{return 0;}},compareDesc:function(a,b){if(a.constructor==String){a=a.toLowerCase();} +if(b.constructor==String){b=b.toLowerCase();} +if(a<b){return 1;} +else if(a>b){return-1;} +else{return 0;}}};YAHOO.util.WidthResizer=function(oDataTable,colId,handleId,sGroup,config){if(colId){this.cell=YAHOO.util.Dom.get(colId);this.init(handleId,sGroup,config);this.datatable=oDataTable;this.setYConstraint(0,0);} +else{}};if(YAHOO.util.DD){YAHOO.extend(YAHOO.util.WidthResizer,YAHOO.util.DD);} +YAHOO.util.WidthResizer.prototype.onMouseDown=function(e){this.startWidth=this.cell.offsetWidth;this.startPos=YAHOO.util.Dom.getX(this.getDragEl());if(this.datatable.fixedwidth){var cellText=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0];this.minWidth=cellText.offsetWidth+6;var sib=this.cell.nextSibling;var sibCellText=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0];this.sibMinWidth=sibCellText.offsetWidth+6;var left=((this.startWidth-this.minWidth)<0)?0:(this.startWidth-this.minWidth);var right=((sib.offsetWidth-this.sibMinWidth)<0)?0:(sib.offsetWidth-this.sibMinWidth);this.setXConstraint(left,right);}};YAHOO.util.WidthResizer.prototype.onMouseUp=function(e){var resizeStyle=YAHOO.util.Dom.get(this.handleElId).style;resizeStyle.left="auto";resizeStyle.right=0;resizeStyle.marginRight="-6px";resizeStyle.width="6px";this.datatable.fireEvent("columnResizeEvent",{datatable:this.datatable,target:YAHOO.util.Dom.get(this.id)});};YAHOO.util.WidthResizer.prototype.onDrag=function(e){if(newWidth<this.minWidth){newWidth=this.minWidth;} +var oDataTable=this.datatable;var elCell=this.cell;if(oDataTable.fixedwidth){var sib=elCell.nextSibling;var sibnewwidth=sib.offsetWidth-offsetX;if(sibnewwidth<this.sibMinWidth){sibnewwidth=this.sibMinWidth;} +for(var i=0;i<oDataTable._oColumnSet.length;i++){if((i!=elCell.index)&&(i!=sibIndex)){YAHOO.util.Dom.get(oDataTable._oColumnSet.keys[i].id).style.width=oDataTable._oColumnSet.keys[i].width+"px";}} +sib.style.width=sibnewwidth;elCell.style.width=newWidth+"px";} +else{elCell.style.width=newWidth+"px";}};YAHOO.widget.RecordSet=function(data){this._nIndex=YAHOO.widget.RecordSet._nCount;this._records=[];if(data){if(data.constructor==Array){this.addRecords(data);} +else if(data.constructor==Object){this.addRecord(data);}} +this.createEvent("recordUpdateEvent");YAHOO.widget.RecordSet._nCount++;};if(YAHOO.util.EventProvider){YAHOO.augment(YAHOO.widget.RecordSet,YAHOO.util.EventProvider);} +else{} +YAHOO.widget.RecordSet._nCount=0;YAHOO.widget.RecordSet.prototype._nIndex=null;YAHOO.widget.RecordSet.prototype._length=null;YAHOO.widget.RecordSet.prototype.toString=function(){return"RecordSet instance "+this._nIndex;};YAHOO.widget.RecordSet.prototype.getLength=function(){return this._length;};YAHOO.widget.RecordSet.prototype.getRecord=function(identifier){if(identifier){if(identifier.constructor==String){for(var i=0;i<this._records.length;i++){if(this._records[i].id==identifier){return this._records[i];}} +return null;} +else{return this._records[identifier];}} +return null;};YAHOO.widget.RecordSet.prototype.getRecords=function(i,range){if(i===undefined){return this._records;} +i=parseInt(i,10);if(isNaN(i)){return null;} +if(range===undefined){return this._records.slice(i);} +range=parseInt(range,10);if(isNaN(range)){return null;} +return this._records.slice(i,i+range);};YAHOO.widget.RecordSet.prototype.updateRecord=function(oRecord,sKey,oData){var oldData=oRecord[sKey];oRecord[sKey]=oData;this.fireEvent("recordUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});};YAHOO.widget.RecordSet.prototype.addRecord=function(oObjectLiteral,index){if(oObjectLiteral){var oRecord=new YAHOO.widget.Record(oObjectLiteral);if(!isNaN(index)&&(index>-1)){this._records.splice(index,0,oRecord);} +else{this._records.push(oRecord);} +this._length++;return oRecord;} +else{return null;}};YAHOO.widget.RecordSet.prototype.addRecords=function(data,index){if(data){if(data.constructor==Array){var newRecords=[];for(var i=0;i<data.length;i++){var record=this.addRecord(data[i],index);newRecords.push(record);} +return newRecords;} +else if(data.constructor==Object){return this.addRecord(data);}} +else{return null;}};YAHOO.widget.RecordSet.prototype.append=function(data){if(data){if(data.constructor==Array){var newRecords=[];for(var i=0;i<data.length;i++){var record=this.addRecord(data[i]);newRecords.push(record);} +return newRecords;} +else if(data.constructor==Object){return this.addRecord(data);}} +else{return null;}};YAHOO.widget.RecordSet.prototype.insert=function(data){if(data){if(data.constructor==Array){var newRecords=[];for(var i=data.length-1;i>-1;i--){var record=this.addRecord(data[i],0);newRecords.push(record);} +return newRecords;} +else if(data.constructor==Object){return this.addRecord(data,0);}} +else{return null;}};YAHOO.widget.RecordSet.prototype.replace=function(data){if(data){this.reset();return this.append(data);} +else{return null;}};YAHOO.widget.RecordSet.prototype.sort=function(fnSort){return this._records.sort(fnSort);};YAHOO.widget.RecordSet.prototype.deleteRecord=function(i,range){if(!range||isNaN(range)){range=1;} +if(i&&!isNaN(i)){this._records.splice(i,range);this._length=this._length-range;}};YAHOO.widget.RecordSet.prototype.reset=function(){this._records=[];this._length=0;};YAHOO.widget.Record=function(oLiteral){if(typeof oLiteral=="object"){for(var sKey in oLiteral){if(sKey){this[sKey]=oLiteral[sKey];}}} +this.id="yui-dtrec"+YAHOO.widget.Record._nCount;YAHOO.widget.Record._nCount++;};YAHOO.widget.Record._nCount=0;YAHOO.widget.Record.prototype.id=null;YAHOO.register("datatable",YAHOO.widget.DataTable,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js new file mode 100644 index 0000000..fedc95a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js @@ -0,0 +1,4930 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The DataTable widget provides a progressively enhanced DHTML control for + * displaying tabular data across A-grade browsers. + * + * @module datatable + * @requires yahoo, dom, event, datasource + * @optional dragdrop + * @title DataTable Widget + * @beta + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * DataTable class for the YUI DataTable widget. + * + * @class DataTable + * @uses YAHOO.util.EventProvider + * @constructor + * @param elContainer {HTMLElement} Container element for the TABLE. + * @param oColumnSet {YAHOO.widget.ColumnSet} ColumnSet instance. + * @param oDataSource {YAHOO.util.DataSource} DataSource instance. + * @param oConfigs {object} (optional) Object literal of configuration values. + */ +YAHOO.widget.DataTable = function(elContainer,oColumnSet,oDataSource,oConfigs) { + // Internal vars + var i; + this._nIndex = YAHOO.widget.DataTable._nCount; + this._sName = "instance" + this._nIndex; + this.id = "yui-dt"+this._nIndex; + + // Validate configs + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + this[sConfig] = oConfigs[sConfig]; + } + } + + // Validate DataSource + if(oDataSource) { + if(oDataSource instanceof YAHOO.util.DataSource) { + this.dataSource = oDataSource; + } + else { + } + } + + // Validate ColumnSet + if(oColumnSet && (oColumnSet instanceof YAHOO.widget.ColumnSet)) { + this._oColumnSet = oColumnSet; + } + else { + return; + } + + // Create RecordSet + this._oRecordSet = new YAHOO.widget.RecordSet(); + + // Validate HTML Element + elContainer = YAHOO.util.Dom.get(elContainer); + if(elContainer && elContainer.tagName && (elContainer.tagName.toLowerCase() == "div")) { + this._elContainer = elContainer; + // Peek in container child nodes to see if TABLE already exists + var elTable = null; + if(elContainer.hasChildNodes()) { + var children = elContainer.childNodes; + for(i=0; i<children.length; i++) { + if(children[i].tagName && children[i].tagName.toLowerCase() == "table") { + elTable = children[i]; + break; + } + } + } + + // Progressively enhance an existing table from markup... + // while using the markup as the source of data + if(elTable && !this.dataSource) { + // Fill RecordSet with data parsed out of table + var aRecords = []; + + // Iterate through each TBODY + for(i=0; i<elTable.tBodies.length; i++) { + var elBody = elTable.tBodies[i]; + + // Iterate through each TR + for(var j=0; j<elBody.rows.length; j++) { + var elRow = elBody.rows[j]; + var oRecord = {}; + + // Iterate through each TD + for(var k=0; k<elRow.cells.length; k++) { + + //var elCell = elRow.cells[l]; + //elCell.id = this.id+"-bdrow"+k+"-cell"+l; + //TODO: can we parse a column with null key? + oRecord[oColumnSet.keys[k].key] = oColumnSet.keys[k].parse(elRow.cells[k].innerHTML); + } + aRecords.push(oRecord); + } + } + + this._initTable(); + + var ok = this.doBeforeLoadData(aRecords); + if(ok) { + this._oRecordSet.addRecords(aRecords); + this.paginateRows(); + } + } + // Create markup from scratch using the provided DataSource + else if(this.dataSource) { + this._initTable(); + // Send out for data in an asynchronous request + oDataSource.sendRequest(this.initialRequest, this.onDataReturnPaginateRows, this); + } + // Else there is no data + else { + this._initTable(); + this.showEmptyMessage(); + } + } + // Container element not found in document + else { + return; + } + + // Set up sort + this.subscribe("headCellClickEvent",this.onEventSortColumn); + + // Set up context menu + //TODO: does trigger have to exist? can trigger be TBODY rather than rows? + if(this.contextMenu && this.contextMenuOptions) { + this.contextMenu = new YAHOO.widget.ContextMenu(this.id+"-cm", { trigger: this._elBody.rows } ); + this.contextMenu.addItem("delete item"); + this.contextMenu.render(document.body); + } + + // Set up event model + elTable = this._elTable; + ///////////////////////////////////////////////////////////////////////////// + // + // DOM Events + // + ///////////////////////////////////////////////////////////////////////////// + //YAHOO.util.Event.addListener(this._elContainer, "focus", this._onFocus, this); + YAHOO.util.Event.addListener(elTable, "click", this._onClick, this); + YAHOO.util.Event.addListener(elTable, "dblclick", this._onDoubleclick, this); + YAHOO.util.Event.addListener(elTable, "mouseout", this._onMouseout, this); + YAHOO.util.Event.addListener(elTable, "mouseover", this._onMouseover, this); + YAHOO.util.Event.addListener(elTable, "mousedown", this._onMousedown, this); + //YAHOO.util.Event.addListener(elTable, "mouseup", this._onMouseup, this); + //YAHOO.util.Event.addListener(elTable, "mousemove", this._onMousemove, this); + YAHOO.util.Event.addListener(elTable, "keydown", this._onKeydown, this); + YAHOO.util.Event.addListener(elTable, "keypress", this._onKeypress, this); + YAHOO.util.Event.addListener(document, "keyup", this._onDocumentKeyup, this); + YAHOO.util.Event.addListener(elTable, "keyup", this._onKeyup, this); + //YAHOO.util.Event.addListener(elTable, "focus", this._onFocus, this); + YAHOO.util.Event.addListener(elTable, "blur", this._onBlur, this); + + ///////////////////////////////////////////////////////////////////////////// + // + // Custom Events + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a mouseover occurs on a TD element. + * + * @event cellMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMouseoverEvent"); + + /** + * Fired when a mouseout occurs on a TD element. + * + * @event cellMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMouseoutEvent"); + + /** + * Fired when a TH cell element is mouseover. + * + * @event headCellMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + * + */ + this.createEvent("headCellMouseoverEvent"); + + /** + * Fired when a TH cell element is mouseout. + * + * @event headCellMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + * + */ + this.createEvent("headCellMouseoutEvent"); + + /** + * Fired when a TABLE element is mouseover. + * + * @event tableMouseoverEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMouseoverEvent"); + + /** + * Fired when a TABLE element is mouseout. + * + * @event tableMouseoutEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMouseoutEvent"); + + /** + * Fired when a mousedown occurs on a TD element. + * + * @event cellMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellMousedownEvent"); + + /** + * Fired when a TH cell element is mousedown. + * + * @event headCellMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellMousedownEvent"); + + /** + * Fired when a TABLE element is mousedown. + * + * @event tableMousedownEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableMousedownEvent"); + + /** + * Fired when a CHECKBOX element is clicked. + * + * @event checkboxClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The CHECKBOX element. + */ + this.checkboxClickEvent = this.createEvent("checkboxClickEvent"); + //this.checkboxClickEvent.subscribeEvent.subscribe(this._registerEvent,{type:"checkboxClickEvent"},this); + + /** + * Fired when a RADIO element is clicked. + * + * @event radioClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The RADIO element. + */ + this.createEvent("radioClickEvent"); + + /** + * Fired when a TD element is clicked. + * + * @event cellClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellClickEvent"); + + /** + * Fired when a TH cell element is clicked. + * + * @event headCellClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellClickEvent"); + + /** + * Fired when a TABLE element is clicked. + * + * @event tableClickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableClickEvent"); + + /** + * Fired when a TD element is doubleclicked. + * + * @event cellDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TD element. + */ + this.createEvent("cellDoubleclickEvent"); + + /** + * Fired when a TH cell element is doubleclicked. + * + * @event headCellDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("headCellDoubleclickEvent"); + + /** + * Fired when a TABLE element is doubleclicked. + * + * @event tableDoubleclickEvent + * @param oArgs.event {HTMLEvent} The event object. + * @param oArgs.target {HTMLElement} The TABLE element. + * + */ + this.createEvent("tableDoubleclickEvent"); + + /** + * Fired when a column is sorted. + * + * @event columnSortEvent + * @param oArgs.column {YAHOO.widget.Column} The Column instance. + * @param oArgs.dir {String} Sort direction "asc" or "desc". + */ + this.createEvent("columnSortEvent"); + + /** + * Fired when an editor is activated. + * + * @event editorShowEvent + * @param oArgs.target {HTMLElement} The TD element. + * @param oArgs.column {YAHOO.widget.Column} The Column instance. + */ + this.createEvent("editorShowEvent"); + + + /** + * Fired when a cell is edited. + * + * @event cellEditEvent + * @param oArgs.target {HTMLElement} The TD element. + * @param oArgs.newData {Object} New data value. + * @param oArgs.oldData {Object} Old data value. + */ + this.createEvent("cellEditEvent"); + + /** + * Fired when a column is resized. + * + * @event columnResizeEvent + * @param oArgs.target {HTMLElement} The TH element. + */ + this.createEvent("columnResizeEvent"); + + /** + * Fired when DataTable instance is first initialized. + * + * @event tableInitEvent + */ + this.createEvent("tableInitEvent"); + + /** + * Fired when DataTable instance is focused. + * + * @event tableFocusEvent + */ + this.createEvent("tableFocusEvent"); + + /** + * Fired when data is returned from DataSource. + * + * @event dataReturnEvent + * @param oArgs.request {String} Original request. + * @param oArgs.response {Object} Response object. + */ + this.createEvent("dataReturnEvent"); + + /** + * Fired when DataTable is paginated. + * + * @event paginateEvent + */ + this.createEvent("paginateEvent"); + + /** + * Fired when a TD element is formatted. + * + * @event cellFormatEvent + * @param oArgs.el {HTMLElement} Reference to the TD element. + */ + this.createEvent("cellFormatEvent"); + + /** + * Fired when an element is selected. + * + * @event selectEvent + * @param oArgs.els {Array} An array of the selected element(s). + */ + this.createEvent("selectEvent"); + + /** + * Fired when an element is unselected. + * + * @event unselectEvent + * @param oArgs.els {Array} An array of the unselected element(s). + */ + this.createEvent("unselectEvent"); + + /** + * Fired when an element is highlighted. + * + * @event highlightEvent + * @param oArgs.els {Array} An array of the highlighted element(s). + */ + this.createEvent("highlightEvent"); + + /** + * Fired when an element is unhighlighted. + * + * @event unhighlightEvent + * @param oArgs.els {Array} An array of the unhighlighted element(s). + */ + this.createEvent("unhighlightEvent"); + + /** + * Fired when one or more TR elements are deleted. + * + * @event rowDeleteEvent + * @param oArgs.rowIndexes {Array} The indexes of the deleted rows. + */ + this.createEvent("rowDeleteEvent"); + this.subscribe("rowDeleteEvent", this._onRowDelete); + + /** + * Fired when one or more TR elements are appended. + * + * @event rowAppendEvent + * @param oArgs.rowIds {Array} The IDs of the appended rows. + */ + this.createEvent("rowAppendEvent"); + + /** + * Fired when a Record is updated in the RecordSet. + * + * @event recordSetUpdateEvent + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} New data. + */ + this.createEvent("recordSetUpdateEvent"); + this._oRecordSet.subscribe("recordUpdateEvent", this._onRecordUpdate, this, true); + + + YAHOO.widget.DataTable._nCount++; + this.fireEvent("tableInitEvent"); +}; + +if(YAHOO.util.EventProvider) { + YAHOO.augment(YAHOO.widget.DataTable, YAHOO.util.EventProvider); +} +else { +} + +///////////////////////////////////////////////////////////////////////////// +// +// Public constants +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Class name assigned to TBODY element that holds data rows. + * + * @property CLASS_BODY + * @type String + * @static + * @final + * @default "yui-dt-body" + */ +YAHOO.widget.DataTable.CLASS_BODY = "yui-dt-body"; + +/** + * Class name assigned to container element within THEAD. + * + * @property CLASS_HEADCONTAINER + * @type String + * @static + * @final + */ +YAHOO.widget.DataTable.CLASS_HEADCONTAINER = "yui-dt-headcontainer"; + +/** + * Class name assigned to resizer handle element within THEAD. + * + * @property CLASS_HEADRESIZER + * @type String + * @static + * @final + * @default "yui-dt-headresizer" + */ +YAHOO.widget.DataTable.CLASS_HEADRESIZER = "yui-dt-headresizer"; + +/** + * Class name assigned to text displayed within THEAD. + * + * @property CLASS_HEADTEXT + * @type String + * @static + * @final + * @default "yui-dt-headtext" + */ +YAHOO.widget.DataTable.CLASS_HEADTEXT = "yui-dt-headtext"; + +/** + * Class name assigned to even TR elements. + * + * @property CLASS_EVEN + * @type String + * @static + * @final + * @default "yui-dt-even + */ +YAHOO.widget.DataTable.CLASS_EVEN = "yui-dt-even"; + +/** + * Class name assigned to odd TR elements. + * + * @property CLASS_ODD + * @type String + * @static + * @final + * @default "yui-dt-odd" + */ +YAHOO.widget.DataTable.CLASS_ODD = "yui-dt-odd"; + +/** + * Class name assigned to empty elements. + * + * @property CLASS_EMPTY + * @type String + * @static + * @final + * @default "yui-dt-empty" + */ +YAHOO.widget.DataTable.CLASS_EMPTY = "yui-dt-empty"; + +/** + * Class name assigned to loading message. + * + * @property CLASS_LOADING + * @type String + * @static + * @final + * @default "yui-dt-loading" + */ +YAHOO.widget.DataTable.CLASS_LOADING = "yui-dt-loading"; + +/** + * Class name assigned to selected elements. + * + * @property CLASS_SELECTED + * @type String + * @static + * @final + * @default "yui-dt-selected" + */ +YAHOO.widget.DataTable.CLASS_SELECTED = "yui-dt-selected"; + +/** + * Class name assigned to highlighted element. + * + * @property CLASS_HIGHLIGHT + * @type String + * @static + * @final + * @default "yui-dt-highlight" + */ +YAHOO.widget.DataTable.CLASS_HIGHLIGHT = "yui-dt-highlight"; + +/** + * Class name assigned to certain elements of a scrollable DataTable. + * + * @property CLASS_SCROLLABLE + * @type String + * @static + * @final + * @default "yui-dt-scrollable" + */ +YAHOO.widget.DataTable.CLASS_SCROLLABLE = "yui-dt-scrollable"; + +/** + * Class name assigned to column headers of sortable Columns. + * + * @property CLASS_SORTABLE + * @type String + * @static + * @final + * @default "yui-dt-sortable" + */ +YAHOO.widget.DataTable.CLASS_SORTABLE = "yui-dt-sortable"; + +/** + * Class name assigned to column headers when sorted in ascending order. + * + * @property CLASS_SORTEDBYASC + * @type String + * @static + * @final + * @default "yui-dt-sortedbyasc" + */ +YAHOO.widget.DataTable.CLASS_SORTEDBYASC = "yui-dt-sortedbyasc"; + +/** + * Class name assigned to column headers when sorted in descending order. + * + * @property CLASS_SORTEDBYDESC + * @type String + * @static + * @final + * @default "yui-dt-sortedbydesc" + */ +YAHOO.widget.DataTable.CLASS_SORTEDBYDESC = "yui-dt-sortedbydesc"; + +/** + * Class name assigned to the pagination link "<<". + * + * @property CLASS_FIRSTLINK + * @type String + * @static + * @final + * @default "yui-dt-firstlink" + */ +YAHOO.widget.DataTable.CLASS_FIRSTLINK = "yui-dt-firstlink"; + +/** + * Class name assigned to the pagination link "<<" when it is disabled. + * + * @property CLASS_FIRSTPAGE + * @type String + * @static + * @final + * @default "yui-dt-firstpage" + */ +YAHOO.widget.DataTable.CLASS_FIRSTPAGE = "yui-dt-firstpage"; + +/** + * Class name assigned to the pagination link ">>". + * + * @property CLASS_LASTLINK + * @type String + * @static + * @final + * @default "yui-dt-lastlink" + */ +YAHOO.widget.DataTable.CLASS_LASTLINK = "yui-dt-lastlink"; + +/** + * Class name assigned to the pagination link ">>" when it is disabled. + * + * @property CLASS_LASTPAGE + * @type String + * @static + * @final + * @default "yui-dt-lastpage" + */ +YAHOO.widget.DataTable.CLASS_LASTPAGE = "yui-dt-lastpage"; + +/** + * Class name assigned to the pagination link "<". + * + * @property CLASS_PREVLINK + * @type String + * @static + * @final + * @default "yui-dt-prevlink" + */ +YAHOO.widget.DataTable.CLASS_PREVLINK = "yui-dt-prevlink"; + +/** + * Class name assigned to the pagination link "<" when it is disabled. + * + * @property CLASS_PREVPAGE + * @type String + * @static + * @final + * @default "yui-dt-prevpage" + */ +YAHOO.widget.DataTable.CLASS_PREVPAGE = "yui-dt-prevpage"; + +/** + * Class name assigned to the pagination link ">". + * + * @property CLASS_NEXTLINK + * @type String + * @static + * @final + * @default "yui-dt-nextlink" + */ +YAHOO.widget.DataTable.CLASS_NEXTLINK = "yui-dt-nextlink"; + +/** + * Class name assigned to the pagination link ">" when it is disabled. + * + * @property CLASS_NEXTPAGE + * @type String + * @static + * @final + * @default "yui-dt-nextpage" + */ +YAHOO.widget.DataTable.CLASS_NEXTPAGE = "yui-dt-nextpage"; + + +/** + * Class name assigned to pagination links to specific page numbers. + * + * @property CLASS_PAGELINK + * @type String + * @static + * @final + * @default "yui-dt-pagelink" + */ +YAHOO.widget.DataTable.CLASS_PAGELINK = "yui-dt-pagelink"; + +/** + * Class name assigned to pagination links for specific page numbers that are disabled. + * + * @property CLASS_CURRENTPAGE + * @type String + * @static + * @final + * @default "yui-dt-currentpage" + */ +YAHOO.widget.DataTable.CLASS_CURRENTPAGE = "yui-dt-currentpage"; + +/** + * Class name assigned to the pagination SELECT element. + * + * @property CLASS_PAGESELECT + * @type String + * @static + * @final + * @default "yui-dt-pageselect" + */ +YAHOO.widget.DataTable.CLASS_PAGESELECT = "yui-dt-pageselect"; + +/** + * Class name assigned to the pagination links container element. + * + * @property CLASS_PAGELINKS + * @type String + * @static + * @final + * @default "yui-dt-pagelinks" + */ +YAHOO.widget.DataTable.CLASS_PAGELINKS = "yui-dt-pagelinks"; + +/** + * Class name assigned to editable TD elements. + * + * @property CLASS_EDITABLE + * @type String + * @static + * @final + * @default "yui-dt-editable" + */ +YAHOO.widget.DataTable.CLASS_EDITABLE = "yui-dt-editable"; + +/** + * Class name assigned to TD elements of type "checkbox". + * + * @property CLASS_CHECKBOX + * @type String + * @static + * @final + * @default "yui-dt-checkbox" + */ +YAHOO.widget.DataTable.CLASS_CHECKBOX = "yui-dt-checkbox"; + +/** + * Class name assigned to TD elements of type "currency". + * + * @property CLASS_CURRENCY + * @type String + * @static + * @final + * @default "yui-dt-currency" + */ +YAHOO.widget.DataTable.CLASS_CURRENCY = "yui-dt-currency"; + +/** + * Class name assigned to TD elements of type "date". + * + * @property CLASS_DATE + * @type String + * @static + * @final + * @default "yui-dt-date" + */ +YAHOO.widget.DataTable.CLASS_DATE = "yui-dt-date"; + +/** + * Class name assigned to TD elements of type "email". + * + * @property CLASS_EMAIL + * @type String + * @static + * @final + * @default "yui-dt-email" + */ +YAHOO.widget.DataTable.CLASS_EMAIL = "yui-dt-email"; + +/** + * Class name assigned to TD elements of type "link". + * + * @property CLASS_LINK + * @type String + * @static + * @final + * @default "yui-dt-link" + */ +YAHOO.widget.DataTable.CLASS_LINK = "yui-dt-link"; + +/** + * Class name assigned to TD elements of type "number". + * + * @property CLASS_NUMBER + * @type String + * @static + * @final + * @default "yui-dt-number" + */ +YAHOO.widget.DataTable.CLASS_NUMBER = "yui-dt-number"; + +/** + * Class name assigned to TD elements of type "string". + * + * @property CLASS_STRING + * @type String + * @static + * @final + * @default "yui-dt-string" + */ +YAHOO.widget.DataTable.CLASS_STRING = "yui-dt-string"; + +/** + * Message to display if DataTable has no data. + * + * @property MSG_EMPTY + * @type String + * @static + * @final + * @default "No records found." + */ +YAHOO.widget.DataTable.MSG_EMPTY = "No records found."; + +/** + * Message to display while DataTable is loading data. + * + * @property MSG_LOADING + * @type String + * @static + * @final + * @default "Loading data..." + */ +YAHOO.widget.DataTable.MSG_LOADING = "Loading data..."; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple DataTable instances. + * + * @property _nCount + * @type Number + * @private + * @static + */ +YAHOO.widget.DataTable._nCount = 0; + +/** + * Instance index. + * + * @property _nIndex + * @type Number + * @private + */ +YAHOO.widget.DataTable.prototype._nIndex = null; + +/** + * Unique instance name. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.DataTable.prototype._sName = null; + +//TODO: convert these to public members + +/** + * Container element reference. Is null unless the TABLE is built from scratch into the + * provided container. + * + * @property _elContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elContainer = null; + +/** + * TABLE element reference. + * + * @property _elTable + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elTable = null; + +/** + * TBODY element reference. + * + * @property _elBody + * @type HTMLElement + * @private + */ +YAHOO.widget.DataTable.prototype._elBody = null; + +/** + * ColumnSet instance. + * + * @property _oColumnSet + * @type YAHOO.widget.ColumnSet + * @private + */ +YAHOO.widget.DataTable.prototype._oColumnSet = null; + +/** + * RecordSet instance. + * + * @property _oRecordSet + * @type YAHOO.widget.RecordSet + * @private + */ +YAHOO.widget.DataTable.prototype._oRecordSet = null; + +/** + * Array of Records that are in the selected state. + * + * @property _aSelectedRecords + * @type YAHOO.widget.Record[] + * @private + */ +YAHOO.widget.DataTable.prototype._aSelectedRecords = null; + +/** + * Internal variable to track whether widget has focus. + * + * @property _bFocused + * @type Boolean + * @private + */ +YAHOO.widget.DataTable.prototype._bFocused = false; + +/** + * Total number of pages, calculated on the fly. + * + * @property _totalPages + * @type Number + * @private + */ +YAHOO.widget.DataTable.prototype._totalPages = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates HTML markup for TABLE, THEAD, TBODY. + * + * @method _initTable + * @private + */ +YAHOO.widget.DataTable.prototype._initTable = function() { + // Clear the container + this._elContainer.innerHTML = ""; + + // Set up scrolling + if(this.scrollable) { + //TODO: conf height + YAHOO.util.Dom.addClass(this._elContainer,YAHOO.widget.DataTable.CLASS_SCROLLABLE); + } + + // Create TABLE + this._elTable = this._elContainer.appendChild(document.createElement("table")); + var elTable = this._elTable; + elTable.tabIndex = 0; + + // Create SUMMARY, if applicable + if(this.summary) { + elTable.summary = this.summary; + } + + // Create CAPTION, if applicable + if(this.caption) { + this._elCaption = elTable.appendChild(document.createElement("caption")); + this._elCaption.innerHTML = this.caption; + } + + // Create THEAD + this._initHead(elTable, this._oColumnSet); + + + // Create TBODY for messages + var elMsgBody = document.createElement("tbody"); + elMsgBody.tabIndex = -1; + this._elMsgRow = elMsgBody.appendChild(document.createElement("tr")); + var elMsgRow = this._elMsgRow; + var elMsgCell = elMsgRow.appendChild(document.createElement("td")); + elMsgCell.colSpan = this._oColumnSet.keys.length; + this._elMsgCell = elMsgCell; + this._elMsgBody = elTable.appendChild(elMsgBody); + this.showLoadingMessage(); + + // Create TBODY for data + this._elBody = elTable.appendChild(document.createElement("tbody")); + this._elBody.tabIndex = -1; + YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_BODY); + if(this.scrollable) { + YAHOO.util.Dom.addClass(this._elBody,YAHOO.widget.DataTable.CLASS_SCROLLABLE); + } +}; + +/** + * Populates THEAD element with TH cells as defined by ColumnSet. + * + * @method _initHead + * @private + */ +YAHOO.widget.DataTable.prototype._initHead = function() { + var i,oColumn; + + // Create THEAD + var elHead = document.createElement("thead"); + elHead.tabIndex = -1; + + // Iterate through each row of Column headers... + var colTree = this._oColumnSet.tree; + for(i=0; i<colTree.length; i++) { + var elHeadRow = elHead.appendChild(document.createElement("tr")); + elHeadRow.id = this.id+"-hdrow"+i; + + // ...and create THEAD cells + for(var j=0; j<colTree[i].length; j++) { + oColumn = colTree[i][j]; + var elHeadCell = elHeadRow.appendChild(document.createElement("th")); + elHeadCell.id = oColumn.getId(); + this._initHeadCell(elHeadCell,oColumn,i,j); + } + } + + this._elHead = this._elTable.appendChild(elHead); + + // Add Resizer only after DOM has been updated... + // ...and skip the last column + for(i=0; i<this._oColumnSet.keys.length-1; i++) { + oColumn = this._oColumnSet.keys[i]; + if(oColumn.resizeable && YAHOO.util.DD) { + //TODO: deal with fixed width tables + //TODO: no more oColumn.isLast + if(!this.fixedWidth || (this.fixedwidth && !oColumn.isLast)) { + // TODO: better way to get elHeadContainer + var elHeadContainer = (YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_HEADCONTAINER,"div",YAHOO.util.Dom.get(oColumn.getId())))[0]; + var elHeadResizer = elHeadContainer.appendChild(document.createElement("span")); + elHeadResizer.id = oColumn.getId() + "-resizer"; + YAHOO.util.Dom.addClass(elHeadResizer,YAHOO.widget.DataTable.CLASS_HEADRESIZER); + oColumn.ddResizer = new YAHOO.util.WidthResizer( + this, oColumn.getId(), elHeadResizer.id, elHeadResizer.id); + var cancelClick = function(e) { + YAHOO.util.Event.stopPropagation(e); + }; + YAHOO.util.Event.addListener(elHeadResizer,"click",cancelClick); + } + if(this.fixedWidth) { + elHeadContainer.style.overflow = "hidden"; + elHeadContent.style.overflow = "hidden"; + } + } + } + +}; + +/** + * Populates TH cell as defined by Column. + * + * @method _initHeadCell + * @param elHeadCell {HTMLElement} TH cell element reference. + * @param oColumn {YAHOO.widget.Column} Column object. + * @param row {number} Row index. + * @param col {number} Column index. + * @private + */ +YAHOO.widget.DataTable.prototype._initHeadCell = function(elHeadCell,oColumn,row,col) { + // Clear out the cell of prior content + // TODO: purgeListeners and other validation-related things + var index = this._nIndex; + elHeadCell.columnIndex = col; + if(oColumn.abbr) { + elHeadCell.abbr = oColumn.abbr; + } + if(oColumn.width) { + elHeadCell.style.width = oColumn.width; + } + if(oColumn.className) { + YAHOO.util.Dom.addClass(elHeadCell,oColumn.className); + } + // Apply CSS for sorted tables + if(this.sortedBy && this.sortedBy.colKey) { + if(this.sortedBy.colKey == oColumn.key) { + var sortClass = (this.sortedBy.dir && (this.sortedBy.dir != "asc")) ? + YAHOO.widget.DataTable.CLASS_SORTEDBYDESC : + YAHOO.widget.DataTable.CLASS_SORTEDBYASC; + YAHOO.util.Dom.addClass(elHeadCell,sortClass); + this.sortedBy._id = elHeadCell.id; + } + } + + elHeadCell.innerHTML = ""; + + var elHeadContainer = elHeadCell.appendChild(document.createElement("div")); + elHeadContainer.id = this.id+"-hdrow"+row+"-container"+col; + YAHOO.util.Dom.addClass(elHeadContainer,YAHOO.widget.DataTable.CLASS_HEADCONTAINER); + var elHeadContent = elHeadContainer.appendChild(document.createElement("span")); + elHeadContent.id = this.id+"-hdrow"+row+"-text"+col; + YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_HEADTEXT); + + elHeadCell.rowSpan = oColumn.getRowSpan(); + elHeadCell.colSpan = oColumn.getColSpan(); + + var contentText = oColumn.text || oColumn.key || ""; + if(oColumn.sortable) { + YAHOO.util.Dom.addClass(elHeadContent,YAHOO.widget.DataTable.CLASS_SORTABLE); + //TODO: Make hash configurable to be a server link + //TODO: Make title configurable + //TODO: Separate contentText from an accessibility link that says + // Click to sort ascending and push it offscreen + elHeadContent.innerHTML = "<a href=\"#\" title=\"Click to sort\">" + contentText + "</a>"; + //elHeadContent.innerHTML = contentText; + + } + else { + elHeadContent.innerHTML = contentText; + } +}; + +/** + * Add a new row to table body at position i if given, or to the bottom + * otherwise. Does not fire any events. + * + * @method _addRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to add row. + * @return {String} ID of the added TR element. + * @private + */ +YAHOO.widget.DataTable.prototype._addRow = function(oRecord, index) { + this.hideTableMessages(); + + // Is this an insert or an append? + var insert = (isNaN(index)) ? false : true; + if(!insert) { + index = this._elBody.rows.length; + } + + var oColumnSet = this._oColumnSet; + var oRecordSet = this._oRecordSet; + + var elRow = (insert && this._elBody.rows[index]) ? + this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]) : + this._elBody.appendChild(document.createElement("tr")); + var recId = oRecord.id; + elRow.id = this.id+"-bdrow"+index; + elRow.recordId = recId; + + // Create TBODY cells + for(var j=0; j<oColumnSet.keys.length; j++) { + var oColumn = oColumnSet.keys[j]; + var elCell = elRow.appendChild(document.createElement("td")); + elCell.id = this.id+"-bdrow"+index+"-cell"+j; + elCell.headers = oColumn.id; + elCell.columnIndex = j; + elCell.headers = oColumnSet.headers[j]; + + oColumn.format(elCell, oRecord); + /*p.abx {word-wrap:break-word;} +ought to solve the problem for Safari (the long words will wrap in your +tds, instead of overflowing to the next td. +(this is supported by IE win as well, so hide it if needed). + +One thing, though: it doesn't work in combination with +'white-space:nowrap'.*/ + +// need a div wrapper for safari? + if(this.fixedWidth) { + elCell.style.overflow = "hidden"; + //elCell.style.width = "20px"; + } + } + + if(this.isEmpty && (this._elBody.rows.length > 0)) { + //TODO: hideMessages() + //this._initRows() + //this.isEmpty = false; + } + + // Striping + if(!insert) { + if(index%2) { + YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_ODD); + } + else { + YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_EVEN); + } + } + else { + //TODO: pass in a subset for better performance + this._restripeRows(); + } + + return elRow.id; +}; + +/** + * Restripes rows by applying class YAHOO.widget.DataTable.CLASS_EVEN or + * YAHOO.widget.DataTable.CLASS_ODD. + * + * @method _restripeRows + * @param range {Number} (optional) Range defines a subset of rows to restripe. + * @private + */ +YAHOO.widget.DataTable.prototype._restripeRows = function(range) { + if(!range) { + var rows = this._elBody.rows; + for(var i=0; i<rows.length; i++) { + if(i%2) { + YAHOO.util.Dom.removeClass(rows[i], YAHOO.widget.DataTable.CLASS_EVEN); + YAHOO.util.Dom.addClass(rows[i], YAHOO.widget.DataTable.CLASS_ODD); + } + else { + YAHOO.util.Dom.removeClass(rows[i], YAHOO.widget.DataTable.CLASS_ODD); + YAHOO.util.Dom.addClass(rows[i], YAHOO.widget.DataTable.CLASS_EVEN); + } + } + } + else { + //TODO: allow restriping of a subset of rows for performance + } +}; + +/** + * Updates existing row at position i with data from the given Record. Does not + * fire any events. + * + * @method _updateRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to update row. + * @return {String} ID of the updated TR element. + * @private + */ +YAHOO.widget.DataTable.prototype._updateRow = function(oRecord, index) { + this.hideTableMessages(); + + var elRow = this._elBody.rows[index]; + elRow.recordId = oRecord.id; + + var columns = this._oColumnSet.keys; + // ...Update TBODY cells with new data + for(var j=0; j<columns.length; j++) { + columns[j].format(elRow.cells[j], oRecord); + } + return elRow.id; +}; + +/** + * Sets elements to selected state. Does not fire any events. Does not affect + * internal tracker. + * + * @method _select + * @param els {HTMLElement[] | String[]} Array of HTML elements by reference or ID string. + * @private + */ +YAHOO.widget.DataTable.prototype._select = function(els) { +//TODO: put els in an array if it is just one element? + for(var i=0; i<els.length; i++) { + // Set the style + YAHOO.util.Dom.addClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED); + } + this._lastSelected = els[els.length-1]; +}; + +/** + * Sets elements to the unselected state. Does not fire any events. Does not + * affect internal tracker. + * + * @method _unselect + * @param els {HTMLElement[] | String[]} Array of HTML elements by reference or ID string. + * @private + */ +YAHOO.widget.DataTable.prototype._unselect = function(els) { + for(var i=0; i<els.length; i++) { + // Remove the style + YAHOO.util.Dom.removeClass(YAHOO.util.Dom.get(els[i]),YAHOO.widget.DataTable.CLASS_SELECTED); + } +}; + +/** + * Unselects all selected rows. Does not fire any events. Does not affect internal + * tracker. + * + * @method _unselectAllRows + * @private + */ +YAHOO.widget.DataTable.prototype._unselectAllRows = function() { + var selectedRows = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); + this._unselect(selectedRows); +}; + +/** + * Unselects all selected cells. + * + * @method _unselectAllCells + * @private + */ +YAHOO.widget.DataTable.prototype._unselectAllCells = function() { + var selectedCells = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); + this._unselect(selectedCells); +}; + +/** + * Deletes a given row element as well its corresponding Record in the RecordSet. + * Does not fire any events. + * + * @method _deleteRow + * @param elRow {element} HTML table row element reference. + * @private + */ +YAHOO.widget.DataTable.prototype._deleteRow = function(elRow) { +//TODO: sniff elRow.rowIndex + var allRows = this._elBody.rows; + var id = elRow.id; + var recordId = elRow.recordId; + for(var i=0; i< allRows.length; i++) { + if(id == allRows[i].id) { + this._elBody.deleteRow(i); + + // Update the RecordSet + this._oRecordSet.deleteRecord(i); + break; + } + } + if(this._elBody.rows.length === 0) { + this.showEmptyMessage(); + } +}; +///////////////////////////////////////////////////////////////////////////// +// +// Private DOM Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles blur events on the TABLE element. + * + * @method _onBlur + * @param e {HTMLEvent} The blur event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onBlur = function(e, oSelf) { + this._bFocused = false; +}; + +/** + * Handles mouseover events on the TABLE element. + * + * @method _onMouseover + * @param e {HTMLEvent} The mouseover event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMouseover = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + oSelf.fireEvent("headCellMouseoverEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMouseoverEvent",{target:elTarget,event:e}); +}; + +/** + * Handles mouseout events on the TABLE element. + * + * @method _onMouseout + * @param e {HTMLEvent} The mouseout event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMouseout = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + oSelf.fireEvent("headCellMouseoutEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMouseoutEvent",{target:elTarget,event:e}); +}; + +/** + * Handles mousedown events on the TABLE element. + * + * @method _onMousedown + * @param e {HTMLEvent} The mousedown event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onMousedown = function(e, oSelf) { + //YAHOO.util.Event.stopEvent(e); + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellMousedownEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } + oSelf.fireEvent("tableMousedownEvent",{target:elTarget,event:e}); +}; + +/** + * Handles click events on the TABLE element. + * + * @method _onClick + * @param e {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onClick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; // True if event should stop propagating + + if(oSelf.activeEditor) { //&& (oSelf.activeEditor.column != column) + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "input": + if(elTarget.type.toLowerCase() == "checkbox") { + oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e}); + } + else if(elTarget.type.toLowerCase() == "radio") { + oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e}); + } + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellClickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + elTag = elTarget.tagName.toLowerCase(); + } + } + oSelf.focusTable(); + oSelf.fireEvent("tableClickEvent",{target:elTarget,event:e}); +}; + +/** + * Handles doubleclick events on the TABLE element. + * + * @method _onDoubleclick + * @param e {HTMLEvent} The doubleclick event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onDoubleclick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; + + if(oSelf.activeEditor) { //&& (oSelf.activeEditor.column != column) + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "td": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("cellDoubleclickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + case "th": + YAHOO.util.Event.stopEvent(e); + oSelf.fireEvent("headCellDoubleclickEvent",{target:elTarget,event:e}); + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + elTag = elTarget.tagName.toLowerCase(); + } + } + oSelf.fireEvent("tableDoubleclickEvent",{target:elTarget,event:e}); +}; + +/** + * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac. + * + * @method _onKeypress + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeypress = function(e, oSelf) { + var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1); + if(isMac) { + // arrow down + if(e.keyCode == 40) { + YAHOO.util.Event.stopEvent(e); + } + // arrow up + else if(e.keyCode == 38) { + YAHOO.util.Event.stopEvent(e); + } + } +}; + +/** + * Handles keydown events on the TABLE. Executes arrow selection. + * + * @method _onKeydown + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeydown = function(e, oSelf) { + var oldSelected = oSelf._lastSelected; + // Only move selection if one is already selected + // TODO: config to allow selection even if one is NOT already selected + // TODO: if something isn't selected already, arrow key should select first or last one + if(oldSelected && oSelf.isSelected(oldSelected)) { + var newSelected; + // arrow down + if(e.keyCode == 40) { + YAHOO.util.Event.stopEvent(e); + // row mode + if(oldSelected.tagName.toLowerCase() == "tr") { + // We have room to move down + if(oldSelected.sectionRowIndex+1 < oSelf._elBody.rows.length) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex+1]; + oSelf.select(newSelected); + + } + } + // cell mode + else if(oldSelected.tagName.toLowerCase() == "td") { + /*// We have room to move down + if(oldSelected.sectionRowIndex+1 < oSelf._elBody.rows.length) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex+1]; + oSelf.select(newSelected); + }*/ + } + // Arrows can cause widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + // arrow up + else if(e.keyCode == 38) { + YAHOO.util.Event.stopEvent(e); + // row mode + if(oldSelected.tagName.toLowerCase() == "tr") { + // We have room to move up + if((oldSelected.sectionRowIndex > 0)) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1]; + oSelf.select(newSelected); + } + } + // cell mode + else if(oldSelected.tagName.toLowerCase() == "td") { + // We have room to move up + if((oldSelected.sectionRowIndex > 0)) { + if(!e.shiftKey) { + oSelf.unselectAllRows(); + } + newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1]; + oSelf.select(newSelected); + } + } + // Arrows can cause widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + } +}; + +/** + * Handles keyup events on the TABLE. Executes deletion + * + * @method _onKeyup + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onKeyup = function(e, oSelf) { + var key = YAHOO.util.Event.getCharCode(e); + // delete + if(key == 46) {//TODO: && this.isFocused + //TODO: delete row + } +}; + +/** + * Handles keyup events on the DOCUMENT. Executes interaction with editor. + * + * @method _onDocumentKeyup + * @param e {HTMLEvent} The key event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onDocumentKeyup = function(e, oSelf) { + // esc Clears active editor + if((e.keyCode == 27) && (oSelf.activeEditor)) { + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + } + // enter Saves active editor data + if((e.keyCode == 13) && (oSelf.activeEditor)) { + var elCell = oSelf.activeEditor.cell; + var oColumn = oSelf.activeEditor.column; + var oRecord = oSelf.activeEditor.record; + var oldValue = oRecord[oColumn.key]; + var newValue = oSelf.activeEditor.getValue(); + + //Update Record + //TODO: Column.key may be null! + oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue); + + //Update cell + oSelf.formatCell(elCell); + + // Hide editor + oSelf.activeEditor.hide(); + oSelf.activeEditor = null; + + // Editor causes widget to lose focus + oSelf._bFocused = false; + oSelf.focusTable(); + oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue}); + } +}; + +/** + * Handles click events on paginator links. + * + * @method _onPagerClick + * @param e {HTMLEvent} The click event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onPagerClick = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + var knownTag = false; // True if event should stop propagating + + if (elTag != "table") { + while(!knownTag) { + switch(elTag) { + case "body": + knownTag = true; + break; + case "a": + YAHOO.util.Event.stopEvent(e); + switch(elTarget.className) { + case YAHOO.widget.DataTable.CLASS_PAGELINK: + oSelf.showPage(parseInt(elTarget.innerHTML,10)); + break; + case YAHOO.widget.DataTable.CLASS_FIRSTLINK: + oSelf.showPage(1); + break; + case YAHOO.widget.DataTable.CLASS_LASTLINK: + oSelf.showPage(oSelf._totalPages); + break; + case YAHOO.widget.DataTable.CLASS_PREVLINK: + oSelf.showPage(oSelf.pageCurrent-1); + break; + case YAHOO.widget.DataTable.CLASS_NEXTLINK: + oSelf.showPage(oSelf.pageCurrent+1); + break; + } + knownTag = true; + break; + default: + break; + } + elTarget = elTarget.parentNode; + if(elTarget) { + elTag = elTarget.tagName.toLowerCase(); + } + else { + break; + } + } + } +}; + +/** + * Handles change events on paginator SELECT. + * + * @method _onPagerSelect + * @param e {HTMLEvent} The change event. + * @param oSelf {YAHOO.widget.DataTable} DataTable instance. + * @private + */ +YAHOO.widget.DataTable.prototype._onPagerSelect = function(e, oSelf) { + var elTarget = YAHOO.util.Event.getTarget(e); + var elTag = elTarget.tagName.toLowerCase(); + + // How many rows per page + var oldRowsPerPage = oSelf.rowsPerPage; + var rowsPerPage = parseInt(elTarget[elTarget.selectedIndex].text,10); + if(rowsPerPage && (rowsPerPage != oSelf.rowsPerPage)) { + if(rowsPerPage > oldRowsPerPage) { + oSelf.pageCurrent = 1; + } + oSelf.rowsPerPage = rowsPerPage; + oSelf.paginateRows(); + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private Custom Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles row delete events. + * + * @method _onRowDelete + * @param oArgs.rowIndexes {Number[]} The indexes of the deleted rows. + * @private + */ +YAHOO.widget.DataTable.prototype._onRowDelete = function(oArgs) { + this._restripeRows(); +}; + +/** + * Passes along recordSetUpdate Event when recordUpdateEvent is caught from RecordSet. + * + * @event _onRecordUpdate + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} New data. + * @private + */ +YAHOO.widget.DataTable.prototype._onRecordUpdate = function(oArgs) { + this.fireEvent("recordSetUpdateEvent",oArgs); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * DataSource instance. + * + * @property dataSource + * @type YAHOO.util.DataSource + */ +YAHOO.widget.DataTable.prototype.dataSource = null; + +/** + * Initial request to send to DataSource. + * + * @property initialRequest + * @type String + * @default "" + */ +YAHOO.widget.DataTable.prototype.initialRequest = ""; + +/** + * Defines value of CAPTION attribute. + * + * @property caption + * @type String + */ +YAHOO.widget.DataTable.prototype.caption = null; + +/** + * Defines value of SUMMARY attribute. + * + * @property summary + * @type String + */ +YAHOO.widget.DataTable.prototype.summary = null; + +/** + * True if DataTable's width is a fixed size. + * + * @property fixedWidth + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.fixedWidth = false; + +/** + * True if TBODY should scroll while THEAD remains fixed. + * + * @property scrollable + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.scrollable = false; + +/** + * True if only one row may be selected at a time. + * + * @property rowSingleSelect + * @type Boolean + * @default false + */ +YAHOO.widget.DataTable.prototype.rowSingleSelect = false; + +/** + * ContextMenu instance. + * + * @property contextMenu + * @type YAHOO.widget.ContextMenu + */ +YAHOO.widget.DataTable.prototype.contextMenu = null; + +/** + * Current page number. + * + * @property pageCurrent + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.pageCurrent = 1; + +/** + * Rows per page. + * + * @property rowsPerPage + * @type Number + * @default 500 + */ +YAHOO.widget.DataTable.prototype.rowsPerPage = 500; + +/** + * Record index of first row of current page. + * + * @property startRecordIndex + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.startRecordIndex = 1; + +/** + * Maximum number of pagination page links to show. Any page links beyond this number are + * available through the "<" and ">" links. A negative value will display all page links. + * + * @property pageLinksLength + * @type Number + * @default -1 + */ +YAHOO.widget.DataTable.prototype.pageLinksLength = -1; + +/** + * Options to show in the rows-per-page pagination dropdown, should be an array + * of numbers. Null or an empty array causes no dropdown to be displayed. + * + * @property rowsPerPageDropdown + * @type Number[] + */ +YAHOO.widget.DataTable.prototype.rowsPerPageDropdown = null; + +/** + * First pagination page link. + * + * @property pageLinksStart + * @type Number + * @default 1 + */ +YAHOO.widget.DataTable.prototype.pageLinksStart = 1; + +/** + * An array of DIV elements into which pagination elements can go. + * + * @property pagers + * @type HTMLElement[] + */ +YAHOO.widget.DataTable.prototype.pagers = null; + +/** + * True if the DataTable is empty of data. False if DataTable is populated with + * data from RecordSet. + * + * @property isEmpty + * @type Boolean + */ +YAHOO.widget.DataTable.prototype.isEmpty = false; + +/** + * Object literal holds sort metadata: + * sortedBy.colKey + * sortedBy.dir + * + * + * @property sortedBy + * @type Object + */ +YAHOO.widget.DataTable.prototype.sortedBy = null; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the DataSource instance. + * + * @method toString + * @return {String} Unique name of the DataSource instance. + */ + +YAHOO.widget.DataTable.prototype.toString = function() { + return "DataTable " + this._sName; +}; + +/** + * Returns element reference to TABLE. + * + * @method getTable + * @return {HTMLElement} Reference to TABLE element. + */ +YAHOO.widget.DataTable.prototype.getTable = function() { + return(this._elTable); +}; + +/** + * Returns element reference to THEAD. + * + * @method getHead + * @return {HTMLElement} Reference to THEAD element. + */ +YAHOO.widget.DataTable.prototype.getHead = function() { + return(this._elHead); +}; + +/** + * Returns element reference to TBODY. + * + * @method getBody + * @return {HTMLElement} Reference to TBODY element. + */ +YAHOO.widget.DataTable.prototype.getBody = function() { + return(this._elBody); +}; + +/** + * Returns element reference to given TR cell. + * + * @method getRow + * @param index {Number} Row number. + * @return {HTMLElement} Reference to TR element. + */ +YAHOO.widget.DataTable.prototype.getRow = function(index) { + return(this._elBody.rows[index]); +}; + +/** + * Returns element reference to given TD cell. + * + * @method getCell + * @param row {Number} Row number. + * @param col {Number} Column number. + * @return {HTMLElement} Reference to TD element. + */ +YAHOO.widget.DataTable.prototype.getCell = function(row, col) { + return(this._elBody.rows[row].cells[col]); +}; + +/** + * Placeholder row to indicate table data is empty. + * + * @method showEmptyMessage + */ +YAHOO.widget.DataTable.prototype.showEmptyMessage = function() { + if(this.isEmpty) { + return; + } + if(this.isLoading) { + this.hideTableMessages(); + } + + this._elMsgBody.style.display = ""; + var elCell = this._elMsgCell; + elCell.className = YAHOO.widget.DataTable.CLASS_EMPTY; + elCell.innerHTML = YAHOO.widget.DataTable.MSG_EMPTY; + this.isEmpty = true; +}; + +/** + * Placeholder row to indicate table data is loading. + * + * @method showLoadingMessage + */ +YAHOO.widget.DataTable.prototype.showLoadingMessage = function() { + if(this.isLoading) { + return; + } + if(this.isEmpty) { + this.hideTableMessages(); + } + + this._elMsgBody.style.display = ""; + var elCell = this._elMsgCell; + elCell.className = YAHOO.widget.DataTable.CLASS_LOADING; + elCell.innerHTML = YAHOO.widget.DataTable.MSG_LOADING; + this.isLoading = true; +}; + +/** + * Hide any placeholder message row. + * + * @method hideTableMessages + */ +YAHOO.widget.DataTable.prototype.hideTableMessages = function() { + if(!this.isEmpty && !this.isLoading) { + return; + } + + this._elMsgBody.style.display = "none"; + + this.isEmpty = false; + this.isLoading = false; +}; + +/** + * Sets focus on the TABLE element. + * + * @method focusTable + */ +YAHOO.widget.DataTable.prototype.focusTable = function() { + var elTable = this._elTable; + if(!this._bFocused) { + // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets + // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing + // strange unexpected things as the user clicks on buttons and other controls. + setTimeout(function() { elTable.focus(); },0); + this._bFocused = true; + this.fireEvent("tableFocusEvent"); + } +}; + +/** + * Overridable method gives implementers a hook to access data before + * it gets added to RecordSet and rendered to the TBODY. + * + * @method doBeforeLoadData + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + * @return {Boolean} Return true to continue loading data into RecordSet and + * updating DataTable with new Records, false to cancel. + */ +YAHOO.widget.DataTable.prototype.doBeforeLoadData = function(sRequest, oResponse) { + return true; +}; + +/** + * Add rows to bottom of table body. + * + * @method appendRow + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.appendRows = function(aRecords) { + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var rowIds = []; + for(var i=0; i<aRecords.length; i++) { + var rowId = this._addRow(aRecords[i]); + rowIds.push(rowId); + } + + this.fireEvent("rowAppendEvent", {rowIds:rowIds}); + } +}; + +/** + * Add rows to top of table body. + * + * @method insertRows + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.insertRows = function(aRecords) { + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var rowIds = []; + for(var i=0; i<aRecords.length; i++) { + var rowId = this._addRow(aRecords[i],0); + rowIds.push(rowId); + } + + this.fireEvent("rowInsertEvent", {rowIds:rowIds}); + } +}; + +/** + * Replaces existing rows of table body with new Records. + * + * @method replaceRows + * @param aRecords {YAHOO.widget.Record[]} Array of Records. + */ +YAHOO.widget.DataTable.prototype.replaceRows = function(aRecords) { + var i; + + if(aRecords && aRecords.length > 0) { + this.hideTableMessages(); + + var elBody = this._elBody; + var elRows = this._elBody.rows; + + // Remove extra rows + while(elBody.hasChildNodes() && (elRows.length > aRecords.length)) { + elBody.deleteRow(0); + } + + // Unselect rows in the UI but keep tracking selected rows + var selectedRecords = this.getSelectedRecordIds(); + if(selectedRecords.length > 0) { + this._unselectAllRows(); + } + + var rowIds = []; + // Format in-place existing rows + for(i=0; i<elRows.length; i++) { + if(aRecords[i]) { + var oRecord = aRecords[i]; + rowIds.push(this._updateRow(oRecord,i)); + } + } + + // Add rows as necessary + for(i=elRows.length; i<aRecords.length; i++) { + rowIds.push(this._addRow(aRecords[i])); + } + + // Select any rows as necessary + for(i=0; i<selectedRecords.length; i++) { + var allRows = elBody.rows; + for(var j=0; j<allRows.length; j++) { + if(selectedRecords[i] == allRows[j].recordId) { + this._select([allRows[j]]); + } + } + } + + this.fireEvent("rowReplaceEvent", {rowIds:rowIds}); + } +}; + +/** + * Convenience method to add a new row to table body at position index if given, + * or to the bottom otherwise. + * + * @method addRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to add row. + */ +YAHOO.widget.DataTable.prototype.addRow = function(oRecord, index) { + if(oRecord) { + var rowId = this._addRow(oRecord, index); + if(index !== undefined) { + this.fireEvent("rowInsertEvent", {rowIds:[rowId]}); + } + else { + this.fireEvent("rowAppendEvent", {rowIds:[rowId]}); + } + } +}; + +/** + * Updates existing row at position index with data from the given Record. + * + * @method updateRow + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param index {Number} Position at which to update row. + */ +YAHOO.widget.DataTable.prototype.updateRow = function(oRecord, index) { + if(oRecord) { + var rowId = this._updateRow(oRecord, index); + this.fireEvent("rowUpdateEvent", {rowIds:[rowId]}); + } +}; + +/** + * Calls delete on selected rows. + * + * @method deleteSelectedRows + */ +YAHOO.widget.DataTable.prototype.deleteRows = function(rows) { + var rowIndexes = []; + for(var i=0; i<rows.length; i++) { + var rowIndex = (rows[i].sectionRowIndex !== undefined) ? rows[i].sectionRowIndex : null; + rowIndexes.push(rowIndex); + this._deleteRow(rows[i]); + this.fireEvent("rowDeleteEvent", {rowIndexes:rowIndexes}); + } +}; + +/** + * Deletes a given row element as well its corresponding Record in the RecordSet. + * + * @method deleteRow + * @param elRow {element} HTML table row element reference. + */ +YAHOO.widget.DataTable.prototype.deleteRow = function(elRow) { + if(elRow) { + var rowIndex = (elRow.sectionRowIndex !== undefined) ? elRow.sectionRowIndex : null; + this._deleteRow(elRow); + this.fireEvent("rowDeleteEvent", {rowIndexes:[rowIndex]}); + } +}; + +/** + * Sets one or more elements to the highlighted state. + * + * @method highlight + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.highlight = function(els) { + if(els.constructor != Array) { + els = [els]; + } + YAHOO.util.Dom.addClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT); + this.fireEvent("highlightEvent",{els:els}); +}; + +/** + * Sets one or more elements to the unhighlighted state. + * + * @method unhighlight + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.unhighlight = function(els) { + if(els.constructor != Array) { + els = [els]; + } + YAHOO.util.Dom.removeClass(els,YAHOO.widget.DataTable.CLASS_HIGHLIGHT); + this.fireEvent("unhighlightEvent",{els:els}); +}; + + +/** + * Sets one or more elements to the selected state. + * + * @method select + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML TR element + * reference, TR String ID, array of HTML TR element, or array of TR element IDs. + */ +YAHOO.widget.DataTable.prototype.select = function(els) { + if(els) { + if(els.constructor != Array) { + els = [els]; + } + this._select(els); + + // Add Record ID to internal tracker + var tracker = this._aSelectedRecords || []; + for(var i=0; i<els.length; i++) { + var id = els[i].recordId; + // Remove if already there + // Use Array.indexOf if available... + if(tracker.indexOf && (tracker.indexOf(id) > -1)) { + tracker.splice(tracker.indexOf(id),1); + } + // ...or do it the old-fashioned way + else { + for(var j=0; j<tracker.length; j++) { + if(tracker[j] === id){ + tracker.splice(j,1); + } + } + } + // Add to the end + tracker.push(id); + } + this._aSelectedRecords = tracker; + this.fireEvent("selectEvent",{els:els}); + } +}; + +/** + * Sets one or more elements to the unselected state. + * + * @method unselect + * @param els {HTMLElement | String | HTMLElement[] | String[]} HTML element + * reference, element ID, array of HTML elements, or array of element IDs + */ +YAHOO.widget.DataTable.prototype.unselect = function(els) { + if(els) { + if(els.constructor != Array) { + els = [els]; + } + this._unselect(els); + // Remove Record ID from internal tracker + var tracker = this._aSelectedRecords || []; + for(var i=0; i<els.length; i++) { + var id = els[i].recordId; + + // Use Array.indexOf if available... + if(tracker.indexOf && (tracker.indexOf(id) > -1)) { + tracker.splice(tracker.indexOf(id),1); + } + // ...or do it the old-fashioned way + else { + for(var j=0; j<tracker.length; j++) { + if(tracker[j] === id){ + tracker.splice(j,1); + } + } + } + } + this._aSelectedRecords = tracker; + this.fireEvent("unselectEvent",{els:els}); + } +}; + +/** + * Unselects all selected rows. + * + * @method unselectAllRows + */ +YAHOO.widget.DataTable.prototype.unselectAllRows = function() { + var selectedRows = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); + this.unselect(selectedRows); + this.fireEvent("unselectEvent", {els:selectedRows}); +}; + +/** + * Unselects all selected cells. + * + * @method unselectAllCells + */ +YAHOO.widget.DataTable.prototype.unselectAllCells = function() { + var selectedCells = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); + this.unselect(selectedCells); + this.fireEvent("unselectEvent", {els:selectedCells}); +}; + + +/** + * Returns true if given element is select, false otherwise. + * + * @method isSelected + * @param el {element} HTML element reference. + * @return {boolean} True if element is selected. + */ +YAHOO.widget.DataTable.prototype.isSelected = function(el) { + return YAHOO.util.Dom.hasClass(el,YAHOO.widget.DataTable.CLASS_SELECTED); +}; + +/** + * Returns array of selected Record IDs. + * + * @method getSelectedRecordIds + * @return {HTMLElement[]} Array of selected TR elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedRecordIds = function() { + return this._aSelectedRecords || []; +}; + +/** + * Returns array of selected rows. + * + * @method getSelectedRows + * @return {HTMLElement[]} Array of selected TR elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedRows = function() { + //TODO: keep internal array if this is non performant + return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"tr",this._elBody); +}; + +/** + * Returns array of selected TD cells. + * + * @method getSelectedCells + * @return {HTMLElement[]} Array of selected TD elements. + */ +YAHOO.widget.DataTable.prototype.getSelectedCells = function() { + //TODO: keep internal array + return YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_SELECTED,"td",this._elBody); +}; + +/** + * Returns pointer to the DataTable instance's ColumnSet instance. + * + * @method getColumnSet + * @return {YAHOO.widget.ColumnSet} ColumnSet instance. + */ +YAHOO.widget.DataTable.prototype.getColumnSet = function() { + return this._oColumnSet; +}; + +/** + * Returns pointer to the DataTable instance's RecordSet instance. + * + * @method getRecordSet + * @return {YAHOO.widget.RecordSet} RecordSet instance. + */ +YAHOO.widget.DataTable.prototype.getRecordSet = function() { + return this._oRecordSet; +}; + +/** + * Displays a specific page of a paginated DataTable. + * + * @method showPage + * @param nPage {Number} Which page. + */ +YAHOO.widget.DataTable.prototype.showPage = function(nPage) { + // Validate input + if(!nPage || isNaN(nPage) || (nPage < 1) || (nPage > this._totalPages)) { + nPage = 1; + } + this.pageCurrent = nPage; + this.paginateRows(); +}; + +/** + * If pagination is enabled, paginates all data in RecordSet and renders + * paginator UI, others renders normal TBODY without any paginator UI. + * + * @method paginateRows + */ +YAHOO.widget.DataTable.prototype.paginateRows = function() { + var i; + + // How many total Records + var recordsLength = this._oRecordSet.getLength(); + + // How many rows this page + var maxRows = (this.rowsPerPage < recordsLength) ? + this.rowsPerPage : recordsLength; + + // How many total pages + this._totalPages = Math.ceil(recordsLength / maxRows); + + // First row of this page + this.startRecordIndex = (this.pageCurrent-1) * this.rowsPerPage; + + // How many page links to display + var pageLinksLength = + ((this.pageLinksLength > 0) && (this.pageLinksLength < this._totalPages)) ? + this.pageLinksLength : this._totalPages; + + // First link of this page + this.pageLinksStart = (Math.ceil(this.pageCurrent/pageLinksLength-1) * pageLinksLength) + 1; + + // Show Records for this page + var pageRecords = this._oRecordSet.getRecords(this.startRecordIndex, this.rowsPerPage); + this.replaceRows(pageRecords); + + if(this.rowsPerPage < recordsLength) { + // Markup for page links + var isFirstPage = (this.pageCurrent == 1) ? true : false; + var isLastPage = (this.pageCurrent == this._totalPages) ? true : false; + var firstPageLink = (isFirstPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_FIRSTPAGE + "\"><<</span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_FIRSTLINK + "\"><<</a> "; + var prevPageLink = (isFirstPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_PREVPAGE + "\"><</span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_PREVLINK + "\"><</a> " ; + var nextPageLink = (isLastPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_NEXTPAGE + "\">></span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_NEXTLINK + "\">></a> " ; + var lastPageLink = (isLastPage) ? + " <span class=\"" + YAHOO.widget.DataTable.CLASS_LASTPAGE + "\">>></span> " : + " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_LASTLINK + "\">>></a> "; + var markup = firstPageLink + prevPageLink; + var maxLinks = (this.pageLinksStart+pageLinksLength < this._totalPages) ? + this.pageLinksStart+pageLinksLength-1 : this._totalPages; + for(i=this.pageLinksStart; i<=maxLinks; i++) { + if(i != this.pageCurrent) { + markup += " <a href=\"#\" class=\"" + YAHOO.widget.DataTable.CLASS_PAGELINK + "\">" + i + "</a> "; + } + else { + markup += " <span class=\"" + YAHOO.widget.DataTable.CLASS_CURRENTPAGE + "\">" + i + "</span>"; + } + } + markup += nextPageLink + lastPageLink; + + // Markup for rows-per-page dropdowns + var dropdown = this.rowsPerPageDropdown; + var select1, select2; + if(dropdown && (dropdown.constructor == Array) && (dropdown.length > 0)) { + select1 = document.createElement("select"); + select1.className = YAHOO.widget.DataTable.CLASS_PAGESELECT; + select2 = document.createElement("select"); + select2.className = YAHOO.widget.DataTable.CLASS_PAGESELECT; + + for(i=0; i<dropdown.length; i++) { + var option1 = document.createElement("option"); + var option2 = document.createElement("option"); + option1.value = dropdown[i]; + option2.value = dropdown[i]; + option1.innerHTML = dropdown[i]; + option2.innerHTML = dropdown[i]; + + if(this.rowsPerPage === dropdown[i]) { + option1.selected = true; + option2.selected = true; + } + option1 = select1.appendChild(option1); + option2 = select2.appendChild(option2); + } + } + + // Populate each pager container with markup + if(!this.pagers || (this.pagers.length === 0)) { + var pager1 = document.createElement("span"); + pager1.className = YAHOO.widget.DataTable.CLASS_PAGELINKS; + + var pager2 = document.createElement("span"); + pager2.className = YAHOO.widget.DataTable.CLASS_PAGELINKS; + + pager1 = this._elContainer.insertBefore(pager1, this._elTable); + select1 = (select1 === undefined) ? null : + this._elContainer.insertBefore(select1, this._elTable); + select2 = (select2 === undefined) ? null : + this._elContainer.insertBefore(select2, this._elTable.nextSibling); + pager2 = this._elContainer.insertBefore(pager2, this._elTable.nextSibling); + this.pagers = [ + {links:pager1,select:select1}, + {links:pager2,select:select2} + ]; + } + for(i=0; i<this.pagers.length; i++) { + this.pagers[i].links.innerHTML = markup; + YAHOO.util.Event.purgeElement(this.pagers[i].links); + if(this.pagers[i].select) { + YAHOO.util.Event.purgeElement(this.pagers[i].select); + } + this.pagers[i].innerHTML = markup; + YAHOO.util.Event.addListener(this.pagers[i].links,"click",this._onPagerClick,this); + if(this.pagers[i].select) { + YAHOO.util.Event.addListener(this.pagers[i].select,"change",this._onPagerSelect,this); + } + } + } + this.fireEvent("paginateEvent"); +}; + +/** + * Sort given column. + * + * @method sortColumn + * @param oColumn {YAHOO.widget.Column} Column to sort. TODO: accept the TH or TH.key + */ +YAHOO.widget.DataTable.prototype.sortColumn = function(oColumn) { + if(!oColumn) { + return; + } + if(!oColumn instanceof YAHOO.widget.Column) { + //TODO: Figure out the column based on TH ref or TH.key + return; + } + if(oColumn.sortable) { + // What is the default sort direction? + var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultOrder) ? oColumn.sortOptions.defaultOrder : "asc"; + + //TODO: what if column doesn't have key? + // Is this column sorted already? + if(oColumn.key && this.sortedBy && (this.sortedBy.colKey == oColumn.key)) { + if(this.sortedBy.dir) { + sortDir = (this.sortedBy.dir == "asc") ? "desc" : "asc"; + } + else { + sortDir = (sortDir == "asc") ? "desc" : "asc"; + } + } + else if(!this.sortedBy) { + this.sortedBy = {}; + } + + // Define the sort handler function based on the direction + var sortFnc = null; + if((sortDir == "desc") && oColumn.sortOptions && oColumn.sortOptions.descFunction) { + sortFnc = oColumn.sortOptions.descFunction; + } + else if((sortDir == "asc") && oColumn.sortOptions && oColumn.sortOptions.ascFunction) { + sortFnc = oColumn.sortOptions.ascFunction; + } + + // Custom function was not provided so use the built-in sorter + // ONLY IF column key is defined + // TODO: use diff default functions based on column data type + // TODO: nested/cumulative/hierarchical sorting + if(!sortFnc && oColumn.key) { + var sorted; + sortFnc = function(a, b) { + if(sortDir == "desc") { + sorted = YAHOO.util.Sort.compareDesc(a[oColumn.key],b[oColumn.key]); + if(sorted === 0) { + return YAHOO.util.Sort.compareDesc(a.id,b.id); + } + else { + return sorted; + } + } + else { + sorted = YAHOO.util.Sort.compareAsc(a[oColumn.key],b[oColumn.key]); + if(sorted === 0) { + return YAHOO.util.Sort.compareAsc(a.id,b.id); + } + else { + return sorted; + } + } + }; + } + + if(sortFnc) { + // Do the actual sort + this._oRecordSet.sort(sortFnc); + + // Update the UI + this.paginateRows(); + + // Update classes + YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYASC); + YAHOO.util.Dom.removeClass(this.sortedBy._id,YAHOO.widget.DataTable.CLASS_SORTEDBYDESC); + var newClass = (sortDir == "asc") ? YAHOO.widget.DataTable.CLASS_SORTEDBYASC : YAHOO.widget.DataTable.CLASS_SORTEDBYDESC; + YAHOO.util.Dom.addClass(oColumn.getId(), newClass); + + // Keep track of currently sorted column + this.sortedBy.colKey = oColumn.key; + this.sortedBy.dir = sortDir; + this.sortedBy._id = oColumn.getId(); + + this.fireEvent("columnSortEvent",{column:oColumn,dir:sortDir}); + } + } + else { + //TODO + } +}; + +/** + * Shows editor for given cell. + * + * @method editCell + */ +YAHOO.widget.DataTable.prototype.editCell = function(elCell) { + if(elCell && !isNaN(elCell.columnIndex)) { + var column = this._oColumnSet.keys[elCell.columnIndex]; + if(column && column.editor) { + this.activeEditor = column.getEditor(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId)); + } + this._bFocused = true; + this.fireEvent("editorShowEvent",{target:elCell,column:column}); + } +}; + +/** + * Formats given cell. + * + * @method formatCell + */ +YAHOO.widget.DataTable.prototype.formatCell = function(elCell) { + if(elCell && !isNaN(elCell.columnIndex)) { + var column = this._oColumnSet.keys[elCell.columnIndex]; + column.format(elCell,this._oRecordSet.getRecord(elCell.parentNode.recordId)); + this.fireEvent("cellFormatEvent", {el:elCell}); + } +}; + + +///////////////////////////////////////////////////////////////////////////// +// +// Public Custom Event Handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Overridable custom event handler to sort column. + * + * @method onEventSortColumn + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSortColumn = function(oArgs) { + var evt = oArgs.event; + var target = oArgs.target; + YAHOO.util.Event.stopEvent(evt); + + //TODO: traverse DOM to find a columnIndex, incl safety net if none exists + var columnIndex = target.columnIndex; + if(!isNaN(columnIndex)) { + this.sortColumn(this._oColumnSet.keys[columnIndex]); + } +}; + +/** + * Overridable custom event handler to select row. + * + * @method onEventSelectRow + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSelectRow = function(oArgs) { + var i; + var evt = oArgs.event; + var target = oArgs.target; + + //TODO: add a safety net in case TR is never reached + // Walk up the DOM until we get to the TR + while(target.tagName.toLowerCase() != "tr") { + target = target.parentNode; + } + + if(this.isSelected(target)) { + this.unselect(target); + } + else { + if(this.rowSingleSelect && !evt.ctrlKey && !evt.shiftKey) { + this.unselectAllRows(); + } + if(evt.shiftKey) { + var startRow = this._lastSelected; + if(startRow && this.isSelected(startRow)) { + this.unselectAllRows(); + if(startRow.sectionRowIndex < target.sectionRowIndex) { + for(i=startRow.sectionRowIndex; i<=target.sectionRowIndex; i++) { + this.select(this._elBody.rows[i]); + } + } + else { + for(i=target.sectionRowIndex; i<=startRow.sectionRowIndex; i++) { + this.select(this._elBody.rows[i]); + } + } + } + else { + this.select(target); + } + } + else { + this.select(target); + } + } +}; + +/** + * Overridable custom event handler to select cell. + * + * @method onEventSelectCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventSelectCell = function(oArgs) { + var evt = oArgs.event; + var target = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(target.tagName.toLowerCase() != "td") { + target = target.parentNode; + } + + if(this.isSelected(target)) { + this.unselect(target); + } + else { + if(this.rowSingleSelect && !evt.ctrlKey) { + this.unselectAllCells(); + } + this.select(target); + } +}; + +/** + * Overridable custom event handler to format cell. + * + * @method onEventFormatCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventFormatCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.formatCell(element); +}; + +/** + * Overridable custom event handler to highlight cell. + * + * @method onEventHighlightCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventHighlightCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + this.highlight(element); +}; + +/** + * Overridable custom event handler to unhighlight cell. + * + * @method onEventUnhighlightCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventUnhighlightCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.unhighlight(element); +}; +/** + * Overridable custom event handler to edit cell. + * + * @method onEventEditCell + * @param oArgs.event {HTMLEvent} Event object. + * @param oArgs.target {HTMLElement} Target element. + */ +YAHOO.widget.DataTable.prototype.onEventEditCell = function(oArgs) { + var evt = oArgs.event; + var element = oArgs.target; + + //TODO: add a safety net in case TD is never reached + // Walk up the DOM until we get to the TD + while(element.tagName.toLowerCase() != "td") { + element = element.parentNode; + } + + this.editCell(element); +}; + +/** + * Handles data return for adding new rows to table, including updating pagination. + * + * @method onDataReturnPaginateRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnPaginateRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.append(oResponse); + if(newRecords) { + // Update markup + this.paginateRows(); + } + } +}; + +/** + * Handles data return for adding new rows to bottom of table. + * + * @method onDataReturnAppendRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnAppendRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.append(oResponse); + if(newRecords) { + // Update markup + this.appendRows(newRecords); + } + } +}; + +/** + * Handles data return for inserting new rows to top of table. + * + * @method onDataReturnInsertRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnInsertRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.insert(oResponse); + if(newRecords) { + // Update markup + this.insertRows(newRecords); + } + } +}; + +/** + * Handles data return for replacing all existing of table with new rows. + * + * @method onDataReturnReplaceRows + * @param sRequest {String} Original request. + * @param oResponse {Object} Response object. + */ +YAHOO.widget.DataTable.prototype.onDataReturnReplaceRows = function(sRequest, oResponse) { + this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse}); + + var ok = this.doBeforeLoadData(sRequest, oResponse); + if(ok) { + // Update the RecordSet from the response + var newRecords = this._oRecordSet.replace(oResponse); + if(newRecords) { + this.replaceRows(newRecords); + } + } +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The ColumnSet class defines and manages a DataTable's Columns, + * including nested hierarchies and access to individual Column instances. + * + * @class ColumnSet + * @uses YAHOO.util.EventProvider + * @constructor + * @param aHeaders {Object[]} Array of object literals that define header cells. + */ +YAHOO.widget.ColumnSet = function(aHeaders) { +//TODO: break out nested functions into private methods + this._sName = "instance" + YAHOO.widget.ColumnSet._nCount; + + // Top-down tree representation of all Columns + var tree = []; + // Flat representation of all Columns + var flat = []; + // Flat representation of only Columns that display data + var keys = []; + // ID index of nested parent heirarchies for HEADERS attribute + var headers = []; + + var nodelevel = -1; + + // Internal recursive function to parse Columns out of object literal defs + var parseColumns = function(nodeList, parent) { + nodelevel++; + // A node level is an array of Columns + if(!tree[nodelevel]) { + tree[nodelevel] = []; + } + + // Determine depth of descendants at this level for node's rowspan + var nodeLevelMaxChildren = 0; + var recurseChildren = function(nodeList) { + var tmpMax = 0; + for(var i=0; i<nodeList.length; i++) { + if(nodeList[i].children) { + tmpMax++; + recurseChildren(nodeList[i].children); + } + if(tmpMax > nodeLevelMaxChildren) { + nodeLevelMaxChildren = tmpMax; + } + } + }; + recurseChildren(nodeList); + + // Parse each node for attributes and any children + for(var j=0; j<nodeList.length; j++) { + // Instantiate a Column for each node + var oColumn = new YAHOO.widget.Column(nodeList[j]); + flat.push(oColumn); + + // Assign parent, if applicable + if(parent) { + oColumn._parent = parent; + } + + // Start with default values + oColumn._rowspan = 1; + oColumn._colspan = 1; + + // Column may have children + if(nodeList[j].children) { + var children = nodeList[j].children; + var length = children.length; + + // Cascade certain properties to children if not defined on their own + for(var k=0; k<length; k++) { + var child = children[k]; + if(oColumn.className && (child.className === undefined)) { + child.className = oColumn.className; + } + if(oColumn.editor && (child.editor === undefined)) { + child.editor = oColumn.editor; + } + if(oColumn.formatter && (child.formatter === undefined)) { + child.formatter = oColumn.formatter; + } + if(oColumn.parser && (child.parser === undefined)) { + child.parser = oColumn.parser; + } + if(oColumn.resizeable && (child.resizeable === undefined)) { + child.resizeable = oColumn.resizeable; + } + if(oColumn.type && (child.type === undefined)) { + child.type = oColumn.type; + } + if(oColumn.width && (child.width === undefined)) { + child.width = oColumn.width; + } + } + + // Children increase colspan of the Column + oColumn._colspan = length; + + // Children increase colspan of the Column's parent + if (parent && parent._colspan) { + parent._colspan += length-1; + parent._children = []; + parent._children.push(oColumn); + } + + // Children must also be parsed + if(!tree[nodelevel+1]) { + tree[nodelevel+1] = []; + } + parseColumns(children, oColumn); + } + + // This Column does not have children, + // but other Columns at this level do + else if(nodeLevelMaxChildren > 0) { + // Children of siblings increase the rowspan of the Column + oColumn._rowspan += nodeLevelMaxChildren; + //if(oColumn.key) { + oColumn._index = keys.length; + keys.push(oColumn); + //} + } + // This entire node level does not have any children + else { + //if(oColumn.key) { + oColumn._index = keys.length; + keys.push(oColumn); + //} + } + + // Add the Column to the top-down tree + tree[nodelevel].push(oColumn); + } + nodelevel--; + }; + + // Do the parsing + if(aHeaders.length > 0) { + parseColumns(aHeaders); + } + + // Store header nesting in an array + var recurseAncestors = function(i, oColumn) { + headers[i].push(oColumn._id); + if(oColumn._parent) { + recurseAncestors(i, oColumn._parent); + } + }; + for(var i=0; i<keys.length; i++) { + headers[i] = []; + recurseAncestors(i, keys[i]); + headers[i] = headers[i].reverse(); + headers[i] = headers[i].join(" "); + } + + this.tree = tree; + this.flat = flat; + this.keys = keys; + this.headers = headers; + + YAHOO.widget.ColumnSet._nCount++; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.ColumnSet._nCount = 0; + +/** + * Unique instance name. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.ColumnSet.prototype._sName = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Top-down tree representation of Column hierarchy. + * + * @property tree + * @type YAHOO.widget.Column[] + */ +YAHOO.widget.ColumnSet.prototype.tree = null; + +/** + * Flattened representation of all Columns. + * + * @property flat + * @type YAHOO.widget.Column[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.flat = null; + +/** + * Array of Columns that map one-to-one to a table column. + * + * @property keys + * @type YAHOO.widget.Column[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.keys = null; + +/** + * ID index of nested parent heirarchies for HEADERS accessibility attribute. + * + * @property headers + * @type String[] + * @default [] + */ +YAHOO.widget.ColumnSet.prototype.headers = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the ColumnSet instance. + * + * @method toString + * @return {String} Unique name of the ColumnSet instance. + */ + +YAHOO.widget.ColumnSet.prototype.toString = function() { + return "ColumnSet " + this._sName; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The Column class defines and manages attributes of DataTable Columns + * + * + * @class Column + * @constructor + * @param oConfigs {Object} Object literal of configuration values. + */ +YAHOO.widget.Column = function(oConfigs) { + // Internal variables + this._id = "yui-dtcol"+YAHOO.widget.Column._nCount; + + // Object literal defines Column attributes + if(typeof oConfigs == "object") { + for(var sConfig in oConfigs) { + if(sConfig) { + this[sConfig] = oConfigs[sConfig]; + } + } + } + + YAHOO.widget.Column._nCount++; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal instance counter. + * + * @property _nCount + * @type Number + * @static + * @default 0 + */ +YAHOO.widget.Column._nCount = 0; + + +/** + * Unique ID, also assigned as DOM ID. + * + * @property _id + * @type String + * @private + */ +YAHOO.widget.Column.prototype._id = null; + +/** + * Reference to Column's index within its ColumnSet's key array, or null if not applicable. + * + * @property _index + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._index = null; + +/** + * Number of table cells the Column spans. + * + * @property _colspan + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._colspan = 1; + +/** + * Number of table rows the Column spans. + * + * @property _rowspan + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._rowspan = 1; + +/** + * Column's parent, or null. + * + * @property _parent + * @type YAHOO.widget.Column + * @private + */ +YAHOO.widget.Column.prototype._parent = null; + +/** + * Array of Column's chilren, or null. + * + * @property _children + * @type YAHOO.widget.Column[] + * @private + */ +YAHOO.widget.Column.prototype._children = null; + +//TODO: clean these up + +/** + * Current offsetWidth of the Column (in pixels). + * + * @property _width + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._width = null; + +/** + * Minimum width the Column can support (in pixels). Value is populated only if table + * is fixedwidth, null otherwise. + * + * @property _minWidth + * @type Number + * @private + */ +YAHOO.widget.Column.prototype._minWidth = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Associated database field, or null. + * + * @property key + * @type String + */ +YAHOO.widget.Column.prototype.key = null; + +/** + * Text or HTML for display in Column's assocated TH element. + * + * @property text + * @type String + */ +YAHOO.widget.Column.prototype.text = null; + +/** + * Data types: "string", "number", "date", "currency", "checkbox", "select", + * "email", "link". + * + * @property type + * @type String + * @default "string" + */ +YAHOO.widget.Column.prototype.type = "string"; + +/** + * Column head cell ABBR for accessibility. + * + * @property abbr + * @type String + */ +YAHOO.widget.Column.prototype.abbr = null; + +/** + * Array of object literals that define children (nested headers) of a Column. + * + * @property children + * @type Object[] + */ +YAHOO.widget.Column.prototype.children = null; + +/** + * Column width. + * + * @property width + * @type String + */ +YAHOO.widget.Column.prototype.width = null; + +/** + * Custom CSS class to be applied to every cell in the Column. + * + * @property className + * @type String + */ +YAHOO.widget.Column.prototype.className = null; + +/** + * Defines a custom format function for Column, otherwise default is used, + * according to Column type. + * + * @property formatter + * @type HTMLFunction + */ +YAHOO.widget.Column.prototype.formatter = null; + +/** + * Defines a custom parse function for Column, otherwise default is used, + * according to Column type. + * + * @property parser + * @type HTMLFunction + */ +YAHOO.widget.Column.prototype.parser = null; + +/** + * Defines the type of editor for Column, otherwise Column is not editable. + * + * @property editor + * @type String + */ +YAHOO.widget.Column.prototype.editor = null; + +/** + * True if Column is resizeable, false otherwise. + * + * @property resizeable + * @type Boolean + * @default false + */ +YAHOO.widget.Column.prototype.resizeable = false; + +/** + * True if Column is sortable, false otherwise. + * + * @property sortable + * @type Boolean + * @default false + */ +YAHOO.widget.Column.prototype.sortable = false; + +/** + * Custom sort handler to arrange Column in descending order. + * + * @property sortOptions.descFunction + * @type Function + * @default null + */ +YAHOO.widget.Column.prototype.descFunction = null; + +/** + * Custom sort handler to arrange Column in ascending order. + * + * @property sortOptions.ascFunction + * @type Function + * @default null + */ +YAHOO.widget.Column.prototype.ascFunction = null; + + + + + + + + + + + + + + + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor returns Column's ID string. + * + * @method getId + * @return {String} Column's ID string. + */ +YAHOO.widget.Column.prototype.getId = function() { + return this._id; +}; + +/** + * Public accessor returns Column's colspan number. + * + * @method getColSpan + * @return {Number} Column's colspan number. + */ +YAHOO.widget.Column.prototype.getColSpan = function() { + return this._colspan; +}; + +/** + * Public accessor returns Column's rowspan number. + * + * @method getRowSpan + * @return {Number} Column's rowspan number. + */ +YAHOO.widget.Column.prototype.getRowSpan = function() { + return this._rowspan; +}; + + +/** + * Outputs markup into the given TD based on given Record. + * + * @method format + * @param elCell {HTMLElement} TD to format for display. + * @param oRecord {YAHOO.widget.Record} Record that holds data for the row. + * @return {HTML} Markup. + */ +YAHOO.widget.Column.prototype.format = function(elCell,oRecord) { + var oData = (this.key) ? oRecord[this.key] : null; + if(this.formatter) { + this.formatter(elCell, oRecord, this, oData); + } + else { + var type = this.type; + var markup = ""; + var classname = ""; + switch(type) { + case "checkbox": + YAHOO.widget.Column.formatCheckbox(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_CHECKBOX; + break; + case "currency": + YAHOO.widget.Column.formatCurrency(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_CURRENCY; + break; + case "date": + YAHOO.widget.Column.formatDate(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_DATE; + break; + case "email": + YAHOO.widget.Column.formatEmail(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_EMAIL; + break; + case "link": + YAHOO.widget.Column.formatLink(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_LINK; + break; + case "number": + YAHOO.widget.Column.formatNumber(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_NUMBER; + break; + case "select": + YAHOO.widget.Column.formatSelect(elCell, oRecord, this, oData); + classname = YAHOO.widget.DataTable.CLASS_SELECT; + break; + default: + elCell.innerHTML = (oData) ? oData.toString() : ""; + //elCell.innerHTML = (oData) ? "<a href=\"#\">"+oData.toString()+"</a>" : ""; + classname = YAHOO.widget.DataTable.CLASS_STRING; + break; + } + + YAHOO.util.Dom.addClass(elCell, classname); + if(this.className) { + YAHOO.util.Dom.addClass(elCell, this.className); + } + } + + if(this.editor) { + YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_EDITABLE); + } +}; + + +/** + * Formats cells in Columns of type "checkbox". + * + * @method formatCheckbox + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatCheckbox = function(elCell, oRecord, oColumn, oData) { + var bChecked = oData; + bChecked = (bChecked) ? " checked" : ""; + elCell.innerHTML = "<input type=\"checkbox\"" + bChecked + + " class=\"" + YAHOO.widget.DataTable.CLASS_CHECKBOX + "\">"; +}; + +/** + * Formats cells in Columns of type "currency". Can be overridden for custom formatting. + * + * @method formatCurrency + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatCurrency = function(elCell, oRecord, oColumn, oData) { + // Make it dollars + var nAmount = oData; + var markup; + if(nAmount) { + markup = "$"+nAmount; + + // Normalize to the penny + var dotIndex = markup.indexOf("."); + if(dotIndex < 0) { + markup += ".00"; + } + else { + while(dotIndex != markup.length-3) { + markup += "0"; + } + } + } + else { + markup = ""; + } + elCell.innerHTML = markup; +}; + +/** + * Formats cells in Columns of type "date". + * + * @method formatDate + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatDate = function(elCell, oRecord, oColumn, oData) { + var oDate = oData; + if(oDate) { + elCell.innerHTML = oDate.getMonth() + "/" + oDate.getDate() + "/" + oDate.getFullYear(); + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "email". + * + * @method formatEmail + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatEmail = function(elCell, oRecord, oColumn, oData) { + var sEmail = oData; + if(sEmail) { + elCell.innerHTML = "<a href=\"mailto:" + sEmail + "\">" + sEmail + "</a>"; + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "link". + * + * @method formatLink + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatLink = function(elCell, oRecord, oColumn, oData) { + var sLink = oData; + if(sLink) { + elCell.innerHTML = "<a href=\"" + sLink + "\">" + sLink + "</a>"; + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "number". + * + * @method formatNumber + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatNumber = function(elCell, oRecord, oColumn, oData) { + var nNumber = oData; + if(nNumber) { + elCell.innerHTML = nNumber.toString(); + } + else { + elCell.innerHTML = ""; + } +}; + +/** + * Formats cells in Columns of type "select". + * + * @method formatSelect + * @param elCell {HTMLElement} Table cell element. + * @param oRecord {YAHOO.widget.Record} Record instance. + * @param oColumn {YAHOO.widget.Column} Column instance. + * @param oData {Object} Data value for the cell, or null + * @static + */ +YAHOO.widget.Column.formatSelect = function(elCell, oRecord, oColumn, oData) { + var selectedValue = oData; + var options = oColumn.selectOptions; + + var markup = "<select>"; + if(options) { + for(var i=0; i<options.length; i++) { + var option = options[i]; + markup += "<option value=\"" + option + "\""; + if(selectedValue === option) { + markup += " selected"; + } + markup += ">" + option + "</option>"; + } + } + else { + if(selectedValue) { + markup += "<option value=\"" + selectedValue + "\" selected>" + selectedValue + "</option>"; + } + } + markup += "</select>"; + elCell.innerHTML = markup; +}; + +/** + * Takes innerHTML from TD and parses out data for storage in RecordSet. + * + * @method parse + * @param sMarkup {String} The TD's innerHTML value. + * @return {Object} Data. + */ +YAHOO.widget.Column.prototype.parse = function(sMarkup) { + if(this.parser) { + return this.parser(sMarkup); + } + else { + var data = null; + switch(this.type) { + case "checkbox": + data = YAHOO.widget.Column.parseCheckbox(sMarkup); + break; + case "currency": + data = YAHOO.widget.Column.parseCurrency(sMarkup); + break; + case "date": + data = YAHOO.widget.Column.parseDate(sMarkup); + break; + case "number": + data = YAHOO.widget.Column.parseNumber(sMarkup); + break; + case "select": + data = YAHOO.widget.Column.parseSelect(sMarkup); + break; + default: + if(sMarkup) { + data = sMarkup; + } + break; + } + return data; + } +}; + +/** + * Default parse function for Columns of type "checkbox" takes markup and + * extracts data. Can be overridden for custom parsing. + * + * @method parseCheckbox + * @param sMarkup + * @return {bChecked} True if checkbox is checked. + */ +YAHOO.widget.Column.parseCheckbox = function(sMarkup) { + return (sMarkup.indexOf("checked") < 0) ? false : true; +}; + +/** + * Default parse function for Columns of type "currency" takes markup and + * extracts data. Can be overridden for custom parsing. + * + * @method parseCurrency + * @param sMarkup + * @return {nAmount} Floating point amount. + */ +YAHOO.widget.Column.parseCurrency = function(sMarkup) { + return parseFloat(sMarkup.substring(1)); +}; + +/** + * Default parse function for Columns of type "date" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseDate + * @param sMarkup + * @return {oDate} Date instance. + */ +YAHOO.widget.Column.parseDate = function(sMarkup) { + var mm = sMarkup.substring(0,sMarkup.indexOf("/")); + sMarkup = sMarkup.substring(sMarkup.indexOf("/")+1); + var dd = sMarkup.substring(0,sMarkup.indexOf("/")); + var yy = sMarkup.substring(sMarkup.indexOf("/")+1); + return new Date(yy, mm, dd); +}; + +/** + * Default parse function for Columns of type "number" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseNumber + * @param sMarkup + * @return {nNumber} Number. + */ +YAHOO.widget.Column.parseNumber = function(sMarkup) { + return parseFloat(sMarkup); +}; + +/** + * Default parse function for Columns of type "select" takes markup and extracts + * data. Can be overridden for custom parsing. + * + * @method parseSelect + * @param sMarkup + * @return {sValue} Value of selected option. + */ +YAHOO.widget.Column.parseSelect = function(sMarkup) { + //return (sMarkup.indexOf("checked") < 0) ? false : true; +}; + +/** + * Outputs editor markup into the given TD based on given Record. + * + * @method showEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @return YAHOO.widget.ColumnEditor + */ +YAHOO.widget.Column.prototype.getEditor = function(elCell, oRecord) { +//Sync up the arg signature for ColumnEditor constructor and show() + var oEditor = this.editor; + if(oEditor.constructor == String) { + oEditor = new YAHOO.widget.ColumnEditor(this.editor); + oEditor.show(elCell, oRecord, this); + this.editor = oEditor; + } + else if(oEditor instanceof YAHOO.widget.ColumnEditor) { + oEditor.show(elCell, oRecord, this); + } + return oEditor; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The ColumnEditor defines and manages inline editing functionality for a + * DataTable Column. + * + * @class ColumnEditor + * @constructor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + * @parem sType {String} Type identifier + */ +YAHOO.widget.ColumnEditor = function(sType) { + this.type = sType; + + //TODO: make sure ColumnEditors get destroyed if widget gets destroyed + // Works better to attach ColumnEditor to document.body + // rather than the DataTable container + // elTable comes in as a cell. Traverse up DOM to find the table. + // TODO: safety net in case table is never found. + //while(elCell.nodeName.toLowerCase() != "table") { + // elCell = elCell.parentNode; + //} + //this.tableContainer = elCell.parentNode; + + var container = document.body.appendChild(document.createElement("div"));//this.tableContainer.appendChild(document.createElement("div")); + container.style.position = "absolute"; + container.style.zIndex = 9000; + container.id = "yui-dt-coled" + YAHOO.widget.ColumnEditor._nCount; + this.container = container; + + switch(this.type) { + case "textbox": + this.createTextboxEditor(); + break; + case "textarea": + this.createTextareaEditor(); + break; + default: + break; + } + + YAHOO.widget.ColumnEditor._nCount++; +}; + + + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal instance counter. + * + * @property _nCount + * @type Number + * @static + * @default 0 + */ +YAHOO.widget.ColumnEditor._nCount =0; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Reference to the container DOM element for the ColumnEditor. + * + * @property container + * @type HTMLElement + */ +YAHOO.widget.ColumnEditor.prototype.container = null; + +/** + * Reference to the ColumnEditor's Column instance. + * + * @property column + * @type YAHOO.widget.Column + */ +YAHOO.widget.ColumnEditor.prototype.column = null; + +/** + * Type of editor: "textbox", etc. + * + * @property type + * @type String + */ +YAHOO.widget.ColumnEditor.prototype.type = null; + + + +/** + * Reference to form element(s) of the ColumnEditor. + * + * @property input + * @type HTMLElement || HTMLElement[] + */ +YAHOO.widget.ColumnEditor.prototype.input = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Shows ColumnEditor. + * + * @method show + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.show = function(elCell, oRecord, oColumn) { + this.cell = elCell; + this.record = oRecord; + this.column = oColumn; + switch(this.type) { + case "textbox": + this.showTextboxEditor(elCell, oRecord, oColumn); + break; + case "textarea": + this.showTextareaEditor(elCell, oRecord, oColumn); + break; + default: + break; + } +}; + +/** + * Returns ColumnEditor data value. + * + * @method getValue + * @return Object + */ +YAHOO.widget.ColumnEditor.prototype.getValue = function() { + var value; + switch(this.type) { + case "textbox": + value = this.getTextboxEditorValue(); + break; + case "textarea": + value = this.getTextareaEditorValue(); + break; + default: + break; + } + return value; +}; + +/** + * Creates a textbox editor in the DOM. + * + * @method createTextboxEditor + * @return {HTML} ??? + */ +YAHOO.widget.ColumnEditor.prototype.createTextboxEditor = function() { + var elTextbox = this.container.appendChild(document.createElement("input")); + // For FF bug 236791 + elTextbox.setAttribute("autocomplete","off"); + this.input = elTextbox; +}; + +/** + * Creates a textarea editor in the DOM. + * + * @method createTextareaEditor + * @return {HTML} ??? + */ +YAHOO.widget.ColumnEditor.prototype.createTextareaEditor = function() { + var elTextarea = this.container.appendChild(document.createElement("textarea")); + this.input = elTextarea; +}; + +/** + * Shows ColumnEditor + * + * @method showTextboxEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.showTextboxEditor = function(elCell, oRecord, oColumn) { + // Size and value + this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px"; + this.input.style.height = (parseInt(elCell.offsetHeight,10)-7) + "px"; + this.input.value = elCell.innerHTML; + + // Position and show + var x,y; + + // Don't use getXY for Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + x = elCell.offsetLeft; + y = elCell.offsetTop; + while(elCell.offsetParent) { + x += elCell.offsetParent.offsetLeft; + y += elCell.offsetParent.offsetTop; + elCell = elCell.offsetParent; + } + } + else { + var xy = YAHOO.util.Dom.getXY(elCell); + x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1; + y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1; + } + this.container.style.left = x + "px"; + this.container.style.top = y + "px"; + this.container.style.display = "block"; + + this.input.tabIndex = 0; + this.input.focus(); + this.input.select(); +}; + +/** + * Shows ColumnEditor + * + * @method showTextareaEditor + * @param elCell {HTMLElement} The cell to edit. + * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell. + * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell. + */ +YAHOO.widget.ColumnEditor.prototype.showTextareaEditor = function(elCell, oRecord, oColumn) { + // Size and value + this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px"; + this.input.style.height = 4*(parseInt(elCell.offsetHeight,10)-7) + "px"; + this.input.value = elCell.innerHTML; + + // Position and show + var x,y; + + // Don't use getXY for Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + x = elCell.offsetLeft; + y = elCell.offsetTop; + while(elCell.offsetParent) { + x += elCell.offsetParent.offsetLeft; + y += elCell.offsetParent.offsetTop; + elCell = elCell.offsetParent; + } + } + else { + var xy = YAHOO.util.Dom.getXY(elCell); + x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1; + y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1; + } + this.container.style.left = x + "px"; + this.container.style.top = y + "px"; + this.container.style.display = "block"; + + this.input.tabIndex = 0; + this.input.focus(); + this.input.select(); +}; + +/** + * Hides ColumnEditor + * + * @method hide + */ +YAHOO.widget.ColumnEditor.prototype.hide = function() { + this.input.tabIndex = -1; + this.container.style.display = "none"; +}; + +/** + * Returns ColumnEditor value + * + * @method getTextboxEditorValue + * @return String + */ +YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue = function() { + return this.input.value; +}; + +/** + * Returns ColumnEditor value + * + * @method getTextareaEditorValue + * @return String + */ +YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue = function() { + return this.input.value; +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * Sort static utility to support Column sorting. + * + * @class Sort + * @static + */ +YAHOO.util.Sort = { + ///////////////////////////////////////////////////////////////////////////// + // + // Public methods + // + ///////////////////////////////////////////////////////////////////////////// + + /** + * Comparator function for sort in ascending order. String sorting is case insensitive. + * + * @method compareAsc + * @param a {object} First sort argument. + * @param b {object} Second sort argument. + */ + compareAsc: function(a, b) { + //TODO: is typeof better or is constructor property better? + if(a.constructor == String) { + a = a.toLowerCase(); + } + if(b.constructor == String) { + b = b.toLowerCase(); + } + if(a < b) { + return -1; + } + else if (a > b) { + return 1; + } + else { + return 0; + } + }, + + /** + * Comparator function for sort in descending order. String sorting is case insensitive. + * + * @method compareDesc + * @param a {object} First sort argument. + * @param b {object} Second sort argument. + */ + compareDesc: function(a, b) { + //TODO: is typeof better or is constructor property better? + if(a.constructor == String) { + a = a.toLowerCase(); + } + if(b.constructor == String) { + b = b.toLowerCase(); + } + if(a < b) { + return 1; + } + else if (a > b) { + return -1; + } + else { + return 0; + } + } +}; + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * WidthResizer subclasses DragDrop to support resizeable Columns. + * + * @class WidthResizer + * @extends YAHOO.util.DragDrop + * @constructor + * @param colElId {string} ID of the Column's TH element being resized + * @param handleElId {string} ID of the handle element that causes the resize + * @param sGroup {string} Group name of related DragDrop items + */ +YAHOO.util.WidthResizer = function(oDataTable, colId, handleId, sGroup, config) { + if (colId) { + this.cell = YAHOO.util.Dom.get(colId); + this.init(handleId, sGroup, config); + //this.initFrame(); + this.datatable = oDataTable; + this.setYConstraint(0,0); + } + else { + } +}; + +if(YAHOO.util.DD) { + YAHOO.extend(YAHOO.util.WidthResizer, YAHOO.util.DD); +} + +///////////////////////////////////////////////////////////////////////////// +// +// Public DOM event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles mousedown events on the Column resizer. + * + * @method onMouseDown + * @param e {string} The mousedown event + */ +YAHOO.util.WidthResizer.prototype.onMouseDown = function(e) { + this.startWidth = this.cell.offsetWidth; + this.startPos = YAHOO.util.Dom.getX(this.getDragEl()); + + if(this.datatable.fixedwidth) { + var cellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0]; + this.minWidth = cellText.offsetWidth + 6; + var sib = this.cell.nextSibling; + var sibCellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0]; + this.sibMinWidth = sibCellText.offsetWidth + 6; +//!! + var left = ((this.startWidth - this.minWidth) < 0) ? 0 : (this.startWidth - this.minWidth); + var right = ((sib.offsetWidth - this.sibMinWidth) < 0) ? 0 : (sib.offsetWidth - this.sibMinWidth); + this.setXConstraint(left, right); + } + +}; + +/** + * Handles mouseup events on the Column resizer. + * + * @method onMouseUp + * @param e {string} The mouseup event + */ +YAHOO.util.WidthResizer.prototype.onMouseUp = function(e) { + //TODO: replace the resizer where it belongs: + var resizeStyle = YAHOO.util.Dom.get(this.handleElId).style; + resizeStyle.left = "auto"; + resizeStyle.right = 0; + resizeStyle.marginRight = "-6px"; + resizeStyle.width = "6px"; + //.yui-dt-headresizer {position:absolute;margin-right:-6px;right:0;bottom:0;width:6px;height:100%;cursor:w-resize;cursor:col-resize;} + + + //var cells = this.datatable._elTable.tHead.rows[this.datatable._elTable.tHead.rows.length-1].cells; + //for(var i=0; i<cells.length; i++) { + //cells[i].style.width = "5px"; + //} + + //TODO: set new ColumnSet width values + this.datatable.fireEvent("columnResizeEvent",{datatable:this.datatable,target:YAHOO.util.Dom.get(this.id)}); +}; + +/** + * Handles drag events on the Column resizer. + * + * @method onDrag + * @param e {string} The drag event + */ +YAHOO.util.WidthResizer.prototype.onDrag = function(e) { + + if(newWidth < this.minWidth) { + newWidth = this.minWidth; + } + + // Resize the Column + var oDataTable = this.datatable; + var elCell = this.cell; + + + // Resize the other Columns + if(oDataTable.fixedwidth) { + // Moving right or left? + var sib = elCell.nextSibling; + //var sibIndex = elCell.index + 1; + var sibnewwidth = sib.offsetWidth - offsetX; + if(sibnewwidth < this.sibMinWidth) { + sibnewwidth = this.sibMinWidth; + } + + //TODO: how else to cycle through all the Columns without having to use an index property? + for(var i=0; i<oDataTable._oColumnSet.length; i++) { + if((i != elCell.index) && (i!=sibIndex)) { + YAHOO.util.Dom.get(oDataTable._oColumnSet.keys[i].id).style.width = oDataTable._oColumnSet.keys[i].width + "px"; + } + } + sib.style.width = sibnewwidth; + elCell.style.width = newWidth + "px"; + //oDataTable._oColumnSet.flat[sibIndex].width = sibnewwidth; + //oDataTable._oColumnSet.flat[elCell.index].width = newWidth; + + } + else { + elCell.style.width = newWidth + "px"; + } +}; + + + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * A RecordSet defines and manages a set of Records. + * + * @class RecordSet + * @param data {Object || Object[]} An object literal or an array of data. + * @constructor + */ +YAHOO.widget.RecordSet = function(data) { + // Internal variables + this._nIndex = YAHOO.widget.RecordSet._nCount; + this._records = []; + + if(data) { + if(data.constructor == Array) { + this.addRecords(data); + } + else if(data.constructor == Object) { + this.addRecord(data); + } + } + + /** + * Fired when a Record is updated with new data. + * + * @event recordUpdateEvent + * @param oArgs.record {YAHOO.widget.Record} The Record instance. + * @param oArgs.key {String} The Record key. + * @param oArgs.newData {Object} New data. + * @param oArgs.oldData {Object} Old data. + * + */ + this.createEvent("recordUpdateEvent"); + + + YAHOO.widget.RecordSet._nCount++; +}; + +if(YAHOO.util.EventProvider) { + YAHOO.augment(YAHOO.widget.RecordSet, YAHOO.util.EventProvider); +} +else { +} + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.RecordSet._nCount = 0; + +/** + * Instance index. + * + * @property _nIndex + * @type number + * @private + */ +YAHOO.widget.RecordSet.prototype._nIndex = null; + +/** + * Internal counter of how many records are in the RecordSet + * + * @property _length + * @private + */ +YAHOO.widget.RecordSet.prototype._length = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Public accessor to the unique name of the RecordSet instance. + * + * @method toString + * @return {string} Unique name of the RecordSet instance + */ +YAHOO.widget.RecordSet.prototype.toString = function() { + return "RecordSet instance " + this._nIndex; +}; + +/** + * Returns the number of non-null records in the sparse RecordSet + * + * @method getLength + * @return {Number} Number records in the RecordSet + */ +YAHOO.widget.RecordSet.prototype.getLength = function() { + return this._length; +}; + +/** + * Returns record with given name, at the given index, or null. + * + * @method getRecord + * @param identifier {String || Number} Record ID or record index + * @return {Object} Record object + */ +YAHOO.widget.RecordSet.prototype.getRecord = function(identifier) { + if(identifier) { + if(identifier.constructor == String) { + for(var i=0; i<this._records.length; i++) { + if(this._records[i].id == identifier) { + return this._records[i]; + } + } + return null; + } + else { + return this._records[identifier]; + } + } + return null; +}; + +/** + * Returns an array of Records from the RecordSet. + * + * @method getRecords + * @param i {number} Index of which record to start at + * @param range {number} (optional) Number of records to get + * @return {Array} Array of records starting at given index and lenth equal to + * given range. If range is null, entire RecordSet array is returned. + */ +YAHOO.widget.RecordSet.prototype.getRecords = function(i, range) { + if(i === undefined) { + return this._records; + } + i = parseInt(i,10); + if(isNaN(i)) { + return null; + } + if(range === undefined) { + return this._records.slice(i); + } + range = parseInt(range,10); + if(isNaN(range)) { + return null; + } + return this._records.slice(i, i+range); +}; + +/** + * Returns index for the given record. + * + * @method getRecordIndex + * @param oRecord {object} Record object + * @return {number} index + */ + +/*YAHOO.widget.RecordSet.prototype.getRecordIndex = function(oRecord) { + //TODO: return i; +};*/ + +/** + * Returns the record(2) with the given value at the given key. + * + * @method getRecordBy + * @param sKey {String} Key to search. + * @param oValue {Object} to match against. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} Record or array of + * Records with the given value at the given key, or null. + */ +/*YAHOO.widget.RecordSet.prototype.getRecordBy = function(sKey, oValue) { + TODO: redo to match new algorithm + var record = null; + var length = this._records.length; + for(var i=length-1; i>0; i--) { + record = this._records[i]; + if(record && (record.extid == extId)) { + return record; + } + } + return null; + +};*/ + +/** + * Updates given Record at given key with given data. + * + * @method updateRecord + * @param oRecord {YAHOO.widget.Record} A Record instance. + * @param sKey {String} Key. + * @param oData {Object) New data. + */ +YAHOO.widget.RecordSet.prototype.updateRecord = function(oRecord, sKey, oData) { + var oldData = oRecord[sKey]; + oRecord[sKey] = oData; + this.fireEvent("recordUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData}); +}; + +/** + * Adds one Record to the RecordSet at the given index. If index is null, + * then adds the Record to the end of the RecordSet. + * + * @method addRecord + * @param oObjectLiteral {Object} An object literal of data. + * @param index {Number} (optional) Position index. + * @return {YAHOO.widget.Record} A Record instance. + */ +YAHOO.widget.RecordSet.prototype.addRecord = function(oObjectLiteral, index) { + if(oObjectLiteral) { + var oRecord = new YAHOO.widget.Record(oObjectLiteral); + if(!isNaN(index) && (index > -1)) { + this._records.splice(index,0,oRecord); + } + else { + this._records.push(oRecord); + } + this._length++; + return oRecord; + } + else { + return null; + } +}; + +/** + * Adds multiple Records to the RecordSet at the given index. If index is null, + * then adds the Records to the end of the RecordSet. + * + * @method addRecords + * @param data {Object[]} An array of object literal data. + * @param index {Number} (optional) Position index. + * @return {YAHOO.widget.Record} An array of Record instances. + */ +YAHOO.widget.RecordSet.prototype.addRecords = function(data, index) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Can't go backwards bc we need to preserve order + for(var i=0; i<data.length; i++) { + var record = this.addRecord(data[i], index); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data); + } + } + else { + return null; + } +}; + +/** + * Convenience method to append the given data to the end of the RecordSet. + * + * @method append + * @param data {Object || Object[]} An object literal or array of data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.append = function(data) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Cant't go backwards bc we need to preserve order + for(var i=0; i<data.length; i++) { + var record = this.addRecord(data[i]); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data); + } + } + else { + return null; + } + +}; + +/** + * Convenience method to insert the given data into the beginning of the RecordSet. + * + * @method insert + * @param data {Object || Object[]} An object literal or array of data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.insert = function(data) { + if(data) { + if(data.constructor == Array) { + var newRecords = []; + // Can't go backwards bc we need to preserve order + for(var i=data.length-1; i>-1; i--) { + var record = this.addRecord(data[i], 0); + newRecords.push(record); + } + return newRecords; + } + else if(data.constructor == Object) { + return this.addRecord(data, 0); + } + } + else { + return null; + } +}; + +/** + * Replaces all Records in RecordSet with new data. + * + * @method replace + * @param data {Object || Object[]} An object literal or array or data. + * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records. + */ +YAHOO.widget.RecordSet.prototype.replace = function(data) { + if(data) { + this.reset(); + return this.append(data); + } + else { + return null; + } +}; + +/** + * Sorts RecordSet by given function. + * + * @method sort + * @param fnSort {Function} Reference to a sort function. + * @return {Array} Sorted array of Records + */ +YAHOO.widget.RecordSet.prototype.sort = function(fnSort) { + return this._records.sort(fnSort); +}; + + +/** + * Removes the record at the given index from the RecordSet. If a range is + * given, starts at the given index and removes all records in the range. + * + * @method deleteRecord + * @param i {Number} Record index + * @param range {Number} (optional) Range of records to remove, or null. + */ +YAHOO.widget.RecordSet.prototype.deleteRecord = function(i, range) { + if(!range || isNaN(range)) { + range = 1; + } + if(i && !isNaN(i)) { + this._records.splice(i, range); + this._length = this._length - range; + } +}; + +/** + * Removes all Records from the RecordSet. + * + * @method reset + */ +YAHOO.widget.RecordSet.prototype.reset = function() { + this._records = []; + this._length = 0; +}; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The Record class defines a DataTable record. + * + * @class Record + * @constructor + * @param oConfigs {Object} (optional) Object literal of key/value pairs. + */ +YAHOO.widget.Record = function(oLiteral) { + if(typeof oLiteral == "object") { + for(var sKey in oLiteral) { + if(sKey) { + this[sKey] = oLiteral[sKey]; + } + } + } + this.id = "yui-dtrec"+YAHOO.widget.Record._nCount; + YAHOO.widget.Record._nCount++; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class variable to index multiple data table instances. + * + * @property _nCount + * @type number + * @private + * @static + */ +YAHOO.widget.Record._nCount = 0; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Unique name assigned at instantation, indicates original order. + * + * @property id + * @type string + */ +YAHOO.widget.Record.prototype.id = null; + +YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/dom/README b/interface/ispconfig/interface/js/yui/dom/README new file mode 100644 index 0000000..c4b3104 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dom/README @@ -0,0 +1,79 @@ +Dom Release Notes + +** version 2.2.0 ** +* no change + + +*** version 0.12.2 *** +* no change + +*** version 0.12.1 *** + +* getElementsByClassName no longer reverts to document when "root" not found +* setXY no longer makes a second call to getXY unless noRetry is false +* minified version no longer strips line breaks + +*** version 0.12.0 *** + +* fixed getXY for IE null parent +* branching set/getStyle at load time instead of run time + +*** version 0.11.3 *** + +* fixed getX and getY returning incorrect values for collections +* fixed getXY incorrectly calculated for Opera inline elements +* fixed isAncestor failure in safari when 2nd arg is document.documentElement +* fixed infinite loop in replaceClass when oldClassName == newClassName +* getDocumentWidth no longer includes scrollbars + + +*** version 0.11.2 *** +* limit depth of parent.document crawl to 1 for getXY +* test offsetParent instead of parentNode for getXY +* return null if no el fo r get +* just addClass if no class to replace for replaceClass + + +*** version 0.11.1 *** + +* return null if el is null for get() +* test offsetParent rather than parentNode for getXY() +* limit depth of parent.document crawl for IE getXY() to 1 +* if no oldClassName to replace, just addClass for replaceClass() + + +*** version 0.11.0 *** +* Work around Opera 9 broken currentStyle +* Removed timeout wrapper from setXY retry +* Tagname tests now case-insensitive +* Internal "this" references changed to allow for method shorthand +* get/setStyle now accept both camel and hyphen case +* Gecko reverted to crawling offsets for getXY + + +*** version 0.10.0 *** + +* Safari now fails gracefully when querying computedStyle of an unavailable element + +* Class management functions added (hasClass, addClass, removeClass, replaceClass, getElementsByClassName) + +* All methods that accept HTMLElements or IDs now also accept arrays of HTMLElements and/or IDs + +* GenerateId method added + +* isAncestor method added + +* inDocument method added + +* getElementsBy method added + +* batch method added + +* getClientHeight/Width deprecated in favor of getViewportHeight/Width + +* getDocumentHeight/Width methods added + +*** version 0.9.0 *** + +* Initial release + diff --git a/interface/ispconfig/interface/js/yui/dom/dom-debug.js b/interface/ispconfig/interface/js/yui/dom/dom-debug.js new file mode 100644 index 0000000..dae66ea --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dom/dom-debug.js @@ -0,0 +1,935 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +*/ + +/** + * The dom module provides helper methods for manipulating Dom elements. + * @module dom + * + */ + +(function() { + var Y = YAHOO.util, // internal shorthand + getStyle, // for load time browser branching + setStyle, // ditto + id_counter = 0, // for use with generateId + propertyCache = {}; // for faster hyphen converts + + // brower detection + var ua = navigator.userAgent.toLowerCase(), + isOpera = (ua.indexOf('opera') > -1), + isSafari = (ua.indexOf('safari') > -1), + isGecko = (!isOpera && !isSafari && ua.indexOf('gecko') > -1), + isIE = (!isOpera && ua.indexOf('msie') > -1); + + // regex cache + var patterns = { + HYPHEN: /(-[a-z])/i + }; + + var logger = {}; + logger.log = function() { YAHOO.log.apply(window, arguments); }; + + var toCamel = function(property) { + if ( !patterns.HYPHEN.test(property) ) { + return property; // no hyphens + } + + if (propertyCache[property]) { // already converted + return propertyCache[property]; + } + + while( patterns.HYPHEN.exec(property) ) { + property = property.replace(RegExp.$1, + RegExp.$1.substr(1).toUpperCase()); + } + + propertyCache[property] = property; + return property; + //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug + }; + + // branching at load instead of runtime + if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method + getStyle = function(el, property) { + var value = null; + + var computed = document.defaultView.getComputedStyle(el, ''); + if (computed) { // test computed before touching for safari + value = computed[toCamel(property)]; + } + + return el.style[property] || value; + }; + } else if (document.documentElement.currentStyle && isIE) { // IE method + getStyle = function(el, property) { + switch( toCamel(property) ) { + case 'opacity' :// IE opacity uses filter + var val = 100; + try { // will error if no DXImageTransform + val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity; + + } catch(e) { + try { // make sure its in the document + val = el.filters('alpha').opacity; + } catch(e) { + logger.log('getStyle: IE filter failed', + 'error', 'Dom'); + } + } + return val / 100; + break; + default: + // test currentStyle before touching + var value = el.currentStyle ? el.currentStyle[property] : null; + return ( el.style[property] || value ); + } + }; + } else { // default to inline only + getStyle = function(el, property) { return el.style[property]; }; + } + + if (isIE) { + setStyle = function(el, property, val) { + switch (property) { + case 'opacity': + if ( typeof el.style.filter == 'string' ) { // in case not appended + el.style.filter = 'alpha(opacity=' + val * 100 + ')'; + + if (!el.currentStyle || !el.currentStyle.hasLayout) { + el.style.zoom = 1; // when no layout or cant tell + } + } + break; + default: + el.style[property] = val; + } + }; + } else { + setStyle = function(el, property, val) { + el.style[property] = val; + }; + } + + /** + * Provides helper methods for DOM elements. + * @namespace YAHOO.util + * @class Dom + */ + YAHOO.util.Dom = { + /** + * Returns an HTMLElement reference. + * @method get + * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements. + */ + get: function(el) { + if (!el) { return null; } // nothing to work with + + if (typeof el != 'string' && !(el instanceof Array) ) { // assuming HTMLElement or HTMLCollection, so pass back as is + logger.log('get(' + el + ') returning ' + el, 'info', 'Dom'); + return el; + } + + if (typeof el == 'string') { // ID + logger.log('get("' + el + '") returning ' + document.getElementById(el), 'info', 'Dom'); + return document.getElementById(el); + } + else { // array of ID's and/or elements + var collection = []; + for (var i = 0, len = el.length; i < len; ++i) { + collection[collection.length] = Y.Dom.get(el[i]); + } + + logger.log('get("' + el + '") returning ' + collection, 'info', 'Dom'); + return collection; + } + + logger.log('element ' + el + ' not found', 'error', 'Dom'); + return null; // safety, should never happen + }, + + /** + * Normalizes currentStyle and ComputedStyle. + * @method getStyle + * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {String} property The style property whose value is returned. + * @return {String | Array} The current value of the style property for the element(s). + */ + getStyle: function(el, property) { + property = toCamel(property); + + var f = function(element) { + return getStyle(element, property); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Wrapper for setting style properties of HTMLElements. Normalizes "opacity" across modern browsers. + * @method setStyle + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {String} property The style property to be set. + * @param {String} val The value to apply to the given property. + */ + setStyle: function(el, property, val) { + property = toCamel(property); + + var f = function(element) { + setStyle(element, property, val); + logger.log('setStyle setting ' + property + ' to ' + val, 'info', 'Dom'); + + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getXY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {Array} The XY position of the element(s) + */ + getXY: function(el) { + var f = function(el) { + + // has to be part of document to have pageXY + if (el.parentNode === null || el.offsetParent === null || + this.getStyle(el, 'display') == 'none') { + logger.log('getXY failed: element not available', 'error', 'Dom'); + return false; + } + + var parentNode = null; + var pos = []; + var box; + + if (el.getBoundingClientRect) { // IE + box = el.getBoundingClientRect(); + var doc = document; + if ( !this.inDocument(el) && parent.document != document) {// might be in a frame, need to get its scroll + doc = parent.document; + + if ( !this.isAncestor(doc.documentElement, el) ) { + logger.log('getXY failed: element not available', 'error', 'Dom'); + return false; + } + + } + + var scrollTop = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop); + var scrollLeft = Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft); + + return [box.left + scrollLeft, box.top + scrollTop]; + } + else { // safari, opera, & gecko + pos = [el.offsetLeft, el.offsetTop]; + parentNode = el.offsetParent; + if (parentNode != el) { + while (parentNode) { + pos[0] += parentNode.offsetLeft; + pos[1] += parentNode.offsetTop; + parentNode = parentNode.offsetParent; + } + } + if (isSafari && this.getStyle(el, 'position') == 'absolute' ) { // safari doubles in some cases + pos[0] -= document.body.offsetLeft; + pos[1] -= document.body.offsetTop; + } + } + + if (el.parentNode) { parentNode = el.parentNode; } + else { parentNode = null; } + + while (parentNode && parentNode.tagName.toUpperCase() != 'BODY' && parentNode.tagName.toUpperCase() != 'HTML') + { // account for any scrolled ancestors + if (Y.Dom.getStyle(parentNode, 'display') != 'inline') { // work around opera inline scrollLeft/Top bug + pos[0] -= parentNode.scrollLeft; + pos[1] -= parentNode.scrollTop; + } + + if (parentNode.parentNode) { + parentNode = parentNode.parentNode; + } else { parentNode = null; } + } + + logger.log('getXY returning ' + pos, 'info', 'Dom'); + + return pos; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current X position of an element based on page coordinates. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getX + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {String | Array} The X position of the element(s) + */ + getX: function(el) { + var f = function(el) { + return Y.Dom.getXY(el)[0]; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current Y position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {String | Array} The Y position of the element(s) + */ + getY: function(el) { + var f = function(el) { + return Y.Dom.getXY(el)[1]; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Set the position of an html element in page coordinates, regardless of how the element is positioned. + * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setXY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @param {Array} pos Contains X & Y values for new position (coordinates are page-based) + * @param {Boolean} noRetry By default we try and set the position a second time if the first fails + */ + setXY: function(el, pos, noRetry) { + var f = function(el) { + var style_pos = this.getStyle(el, 'position'); + if (style_pos == 'static') { // default to relative + this.setStyle(el, 'position', 'relative'); + style_pos = 'relative'; + } + + var pageXY = this.getXY(el); + if (pageXY === false) { // has to be part of doc to have pageXY + logger.log('setXY failed: element not available', 'error', 'Dom'); + return false; + } + + var delta = [ // assuming pixels; if not we will have to retry + parseInt( this.getStyle(el, 'left'), 10 ), + parseInt( this.getStyle(el, 'top'), 10 ) + ]; + + if ( isNaN(delta[0]) ) {// in case of 'auto' + delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft; + } + if ( isNaN(delta[1]) ) { // in case of 'auto' + delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop; + } + + if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; } + if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; } + + if (!noRetry) { + var newXY = this.getXY(el); + + // if retry is true, try one more time if we miss + if ( (pos[0] !== null && newXY[0] != pos[0]) || + (pos[1] !== null && newXY[1] != pos[1]) ) { + this.setXY(el, pos, true); + } + } + + logger.log('setXY setting position to ' + pos, 'info', 'Dom'); + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Set the X position of an html element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setX + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {Int} x The value to use as the X coordinate for the element(s). + */ + setX: function(el, x) { + Y.Dom.setXY(el, [x, null]); + }, + + /** + * Set the Y position of an html element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {Int} x To use as the Y coordinate for the element(s). + */ + setY: function(el, y) { + Y.Dom.setXY(el, [null, y]); + }, + + /** + * Returns the region position of the given element. + * The element must be part of the DOM tree to have a region (display:none or elements not appended return false). + * @method getRegion + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data. + */ + getRegion: function(el) { + var f = function(el) { + var region = new Y.Region.getRegion(el); + logger.log('getRegion returning ' + region, 'info', 'Dom'); + return region; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Returns the width of the client (viewport). + * @method getClientWidth + * @deprecated Now using getViewportWidth. This interface left intact for back compat. + * @return {Int} The width of the viewable area of the page. + */ + getClientWidth: function() { + return Y.Dom.getViewportWidth(); + }, + + /** + * Returns the height of the client (viewport). + * @method getClientHeight + * @deprecated Now using getViewportHeight. This interface left intact for back compat. + * @return {Int} The height of the viewable area of the page. + */ + getClientHeight: function() { + return Y.Dom.getViewportHeight(); + }, + + /** + * Returns a array of HTMLElements with the given class. + * For optimized performance, include a tag and/or root node when possible. + * @method getElementsByClassName + * @param {String} className The class name to match against + * @param {String} tag (optional) The tag name of the elements being collected + * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point + * @return {Array} An array of elements that have the given class name + */ + getElementsByClassName: function(className, tag, root) { + var method = function(el) { return Y.Dom.hasClass(el, className); }; + return Y.Dom.getElementsBy(method, tag, root); + }, + + /** + * Determines whether an HTMLElement has the given className. + * @method hasClass + * @param {String | HTMLElement | Array} el The element or collection to test + * @param {String} className the class name to search for + * @return {Boolean | Array} A boolean value or array of boolean values + */ + hasClass: function(el, className) { + var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)'); + + var f = function(el) { + logger.log('hasClass returning ' + re.test(el['className']), 'info', 'Dom'); + return re.test(el['className']); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Adds a class name to a given element or collection of elements. + * @method addClass + * @param {String | HTMLElement | Array} el The element or collection to add the class to + * @param {String} className the class name to add to the class attribute + */ + addClass: function(el, className) { + var f = function(el) { + if (this.hasClass(el, className)) { return; } // already present + + logger.log('addClass adding ' + className, 'info', 'Dom'); + + el['className'] = [el['className'], className].join(' '); + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Removes a class name from a given element or collection of elements. + * @method removeClass + * @param {String | HTMLElement | Array} el The element or collection to remove the class from + * @param {String} className the class name to remove from the class attribute + */ + removeClass: function(el, className) { + var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', 'g'); + + var f = function(el) { + if (!this.hasClass(el, className)) { return; } // not present + + logger.log('removeClass removing ' + className, 'info', 'Dom'); + + var c = el['className']; + el['className'] = c.replace(re, ' '); + if ( this.hasClass(el, className) ) { // in case of multiple adjacent + this.removeClass(el, className); + } + + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Replace a class with another class for a given element or collection of elements. + * If no oldClassName is present, the newClassName is simply added. + * @method replaceClass + * @param {String | HTMLElement | Array} el The element or collection to remove the class from + * @param {String} oldClassName the class name to be replaced + * @param {String} newClassName the class name that will be replacing the old class name + */ + replaceClass: function(el, oldClassName, newClassName) { + if (oldClassName === newClassName) { // avoid infinite loop + return false; + } + + var re = new RegExp('(?:^|\\s+)' + oldClassName + '(?:\\s+|$)', 'g'); + + var f = function(el) { + logger.log('replaceClass replacing ' + oldClassName + ' with ' + newClassName, 'info', 'Dom'); + + if ( !this.hasClass(el, oldClassName) ) { + this.addClass(el, newClassName); // just add it if nothing to replace + return; // note return + } + + el['className'] = el['className'].replace(re, ' ' + newClassName + ' '); + + if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent + this.replaceClass(el, oldClassName, newClassName); + } + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Generates a unique ID + * @method generateId + * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present). + * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen"). + * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element) + */ + generateId: function(el, prefix) { + prefix = prefix || 'yui-gen'; + el = el || {}; + + var f = function(el) { + if (el) { + el = Y.Dom.get(el); + } else { + el = {}; // just generating ID in this case + } + + if (!el.id) { + el.id = prefix + id_counter++; + logger.log('generateId generating ' + el.id, 'info', 'Dom'); + } // dont override existing + + logger.log('generateId returning ' + el.id, 'info', 'Dom'); + + return el.id; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy. + * @method isAncestor + * @param {String | HTMLElement} haystack The possible ancestor + * @param {String | HTMLElement} needle The possible descendent + * @return {Boolean} Whether or not the haystack is an ancestor of needle + */ + isAncestor: function(haystack, needle) { + haystack = Y.Dom.get(haystack); + if (!haystack || !needle) { return false; } + + var f = function(needle) { + if (haystack.contains && !isSafari) { // safari "contains" is broken + logger.log('isAncestor returning ' + haystack.contains(needle), 'info', 'Dom'); + return haystack.contains(needle); + } + else if ( haystack.compareDocumentPosition ) { + logger.log('isAncestor returning ' + !!(haystack.compareDocumentPosition(needle) & 16), 'info', 'Dom'); + return !!(haystack.compareDocumentPosition(needle) & 16); + } + else { // loop up and test each parent + var parent = needle.parentNode; + + while (parent) { + if (parent == haystack) { + logger.log('isAncestor returning true', 'info', 'Dom'); + return true; + } + else if (!parent.tagName || parent.tagName.toUpperCase() == 'HTML') { + logger.log('isAncestor returning false', 'info', 'Dom'); + return false; + } + + parent = parent.parentNode; + } + logger.log('isAncestor returning false', 'info', 'Dom'); + return false; + } + }; + + return Y.Dom.batch(needle, f, Y.Dom, true); + }, + + /** + * Determines whether an HTMLElement is present in the current document. + * @method inDocument + * @param {String | HTMLElement} el The element to search for + * @return {Boolean} Whether or not the element is present in the current document + */ + inDocument: function(el) { + var f = function(el) { + return this.isAncestor(document.documentElement, el); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Returns a array of HTMLElements that pass the test applied by supplied boolean method. + * For optimized performance, include a tag and/or root node when possible. + * @method getElementsBy + * @param {Function} method - A boolean method for testing elements which receives the element as its only argument. + + * @param {String} tag (optional) The tag name of the elements being collected + * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point + * @return {Array} Array of HTMLElements + */ + getElementsBy: function(method, tag, root) { + tag = tag || '*'; + + var nodes = []; + + if (root) { + root = Y.Dom.get(root); + if (!root) { // if no root node, then no children + return nodes; + } + } else { + root = document; + } + + var elements = root.getElementsByTagName(tag); + + if ( !elements.length && (tag == '*' && root.all) ) { + elements = root.all; // IE < 6 + } + + for (var i = 0, len = elements.length; i < len; ++i) { + if ( method(elements[i]) ) { nodes[nodes.length] = elements[i]; } + } + + logger.log('getElementsBy returning ' + nodes, 'info', 'Dom'); + + return nodes; + }, + + /** + * Returns an array of elements that have had the supplied method applied. + * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ). + * @method batch + * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to + * @param {Function} method The method to apply to the element(s) + * @param {Any} o (optional) An optional arg that is passed to the supplied method + * @param {Boolean} override (optional) Whether or not to override the scope of "method" with "o" + * @return {HTMLElement | Array} The element(s) with the method applied + */ + batch: function(el, method, o, override) { + var id = el; + el = Y.Dom.get(el); + + var scope = (override) ? o : window; + + if (!el || el.tagName || !el.length) { // is null or not a collection (tagName for SELECT and others that can be both an element and a collection) + if (!el) { + logger.log(id + ' not available', 'error', 'Dom'); + return false; + } + return method.call(scope, el, o); + } + + var collection = []; + + for (var i = 0, len = el.length; i < len; ++i) { + if (!el[i]) { + id = el[i]; + logger.log(id + ' not available', 'error', 'Dom'); + } + collection[collection.length] = method.call(scope, el[i], o); + } + + return collection; + }, + + /** + * Returns the height of the document. + * @method getDocumentHeight + * @return {Int} The height of the actual document (which includes the body and its margin). + */ + getDocumentHeight: function() { + var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight; + + var h = Math.max(scrollHeight, Y.Dom.getViewportHeight()); + logger.log('getDocumentHeight returning ' + h, 'info', 'Dom'); + return h; + }, + + /** + * Returns the width of the document. + * @method getDocumentWidth + * @return {Int} The width of the actual document (which includes the body and its margin). + */ + getDocumentWidth: function() { + var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth; + var w = Math.max(scrollWidth, Y.Dom.getViewportWidth()); + logger.log('getDocumentWidth returning ' + w, 'info', 'Dom'); + return w; + }, + + /** + * Returns the current height of the viewport. + * @method getViewportHeight + * @return {Int} The height of the viewable area of the page (excludes scrollbars). + */ + getViewportHeight: function() { + var height = self.innerHeight; // Safari, Opera + var mode = document.compatMode; + + if ( (mode || isIE) && !isOpera ) { // IE, Gecko + height = (mode == 'CSS1Compat') ? + document.documentElement.clientHeight : // Standards + document.body.clientHeight; // Quirks + } + + logger.log('getViewportHeight returning ' + height, 'info', 'Dom'); + return height; + }, + + /** + * Returns the current width of the viewport. + * @method getViewportWidth + * @return {Int} The width of the viewable area of the page (excludes scrollbars). + */ + + getViewportWidth: function() { + var width = self.innerWidth; // Safari + var mode = document.compatMode; + + if (mode || isIE) { // IE, Gecko, Opera + width = (mode == 'CSS1Compat') ? + document.documentElement.clientWidth : // Standards + document.body.clientWidth; // Quirks + } + logger.log('getViewportWidth returning ' + width, 'info', 'Dom'); + return width; + } + }; +})(); +/** + * A region is a representation of an object on a grid. It is defined + * by the top, right, bottom, left extents, so is rectangular by default. If + * other shapes are required, this class could be extended to support it. + * @namespace YAHOO.util + * @class Region + * @param {Int} t the top extent + * @param {Int} r the right extent + * @param {Int} b the bottom extent + * @param {Int} l the left extent + * @constructor + */ +YAHOO.util.Region = function(t, r, b, l) { + + /** + * The region's top extent + * @property top + * @type Int + */ + this.top = t; + + /** + * The region's top extent as index, for symmetry with set/getXY + * @property 1 + * @type Int + */ + this[1] = t; + + /** + * The region's right extent + * @property right + * @type int + */ + this.right = r; + + /** + * The region's bottom extent + * @property bottom + * @type Int + */ + this.bottom = b; + + /** + * The region's left extent + * @property left + * @type Int + */ + this.left = l; + + /** + * The region's left extent as index, for symmetry with set/getXY + * @property 0 + * @type Int + */ + this[0] = l; +}; + +/** + * Returns true if this region contains the region passed in + * @method contains + * @param {Region} region The region to evaluate + * @return {Boolean} True if the region is contained with this region, + * else false + */ +YAHOO.util.Region.prototype.contains = function(region) { + return ( region.left >= this.left && + region.right <= this.right && + region.top >= this.top && + region.bottom <= this.bottom ); + + // this.logger.debug("does " + this + " contain " + region + " ... " + ret); +}; + +/** + * Returns the area of the region + * @method getArea + * @return {Int} the region's area + */ +YAHOO.util.Region.prototype.getArea = function() { + return ( (this.bottom - this.top) * (this.right - this.left) ); +}; + +/** + * Returns the region where the passed in region overlaps with this one + * @method intersect + * @param {Region} region The region that intersects + * @return {Region} The overlap region, or null if there is no overlap + */ +YAHOO.util.Region.prototype.intersect = function(region) { + var t = Math.max( this.top, region.top ); + var r = Math.min( this.right, region.right ); + var b = Math.min( this.bottom, region.bottom ); + var l = Math.max( this.left, region.left ); + + if (b >= t && r >= l) { + return new YAHOO.util.Region(t, r, b, l); + } else { + return null; + } +}; + +/** + * Returns the region representing the smallest region that can contain both + * the passed in region and this region. + * @method union + * @param {Region} region The region that to create the union with + * @return {Region} The union region + */ +YAHOO.util.Region.prototype.union = function(region) { + var t = Math.min( this.top, region.top ); + var r = Math.max( this.right, region.right ); + var b = Math.max( this.bottom, region.bottom ); + var l = Math.min( this.left, region.left ); + + return new YAHOO.util.Region(t, r, b, l); +}; + +/** + * toString + * @method toString + * @return string the region properties + */ +YAHOO.util.Region.prototype.toString = function() { + return ( "Region {" + + "top: " + this.top + + ", right: " + this.right + + ", bottom: " + this.bottom + + ", left: " + this.left + + "}" ); +}; + +/** + * Returns a region that is occupied by the DOM element + * @method getRegion + * @param {HTMLElement} el The element + * @return {Region} The region that the element occupies + * @static + */ +YAHOO.util.Region.getRegion = function(el) { + var p = YAHOO.util.Dom.getXY(el); + + var t = p[1]; + var r = p[0] + el.offsetWidth; + var b = p[1] + el.offsetHeight; + var l = p[0]; + + return new YAHOO.util.Region(t, r, b, l); +}; + +///////////////////////////////////////////////////////////////////////////// + + +/** + * A point is a region that is special in that it represents a single point on + * the grid. + * @namespace YAHOO.util + * @class Point + * @param {Int} x The X position of the point + * @param {Int} y The Y position of the point + * @constructor + * @extends YAHOO.util.Region + */ +YAHOO.util.Point = function(x, y) { + if (x instanceof Array) { // accept output from Dom.getXY + y = x[1]; + x = x[0]; + } + + /** + * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry) + * @property x + * @type Int + */ + + this.x = this.right = this.left = this[0] = x; + + /** + * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry) + * @property y + * @type Int + */ + this.y = this.top = this.bottom = this[1] = y; +}; + +YAHOO.util.Point.prototype = new YAHOO.util.Region(); + +YAHOO.register("dom", YAHOO.util.Dom, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/dom/dom-min.js b/interface/ispconfig/interface/js/yui/dom/dom-min.js new file mode 100644 index 0000000..19ea227 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dom/dom-min.js @@ -0,0 +1,59 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;} +if(propertyCache[property]){return propertyCache[property];} +while(patterns.HYPHEN.exec(property)){property=property.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());} +propertyCache[property]=property;return property;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];} +return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}} +return val/100;break;default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};} +if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(typeof el.style.filter=='string'){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}} +break;default:el.style[property]=val;}};}else{setStyle=function(el,property,val){el.style[property]=val;};} +YAHOO.util.Dom={get:function(el){if(!el){return null;} +if(typeof el!='string'&&!(el instanceof Array)){return el;} +if(typeof el=='string'){return document.getElementById(el);} +else{var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=Y.Dom.get(el[i]);} +return collection;} +return null;},getStyle:function(el,property){property=toCamel(property);var f=function(element){return getStyle(element,property);};return Y.Dom.batch(el,f,Y.Dom,true);},setStyle:function(el,property,val){property=toCamel(property);var f=function(element){setStyle(element,property,val);};Y.Dom.batch(el,f,Y.Dom,true);},getXY:function(el){var f=function(el){if(el.parentNode===null||el.offsetParent===null||this.getStyle(el,'display')=='none'){return false;} +var parentNode=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var doc=document;if(!this.inDocument(el)&&parent.document!=document){doc=parent.document;if(!this.isAncestor(doc.documentElement,el)){return false;}} +var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);return[box.left+scrollLeft,box.top+scrollTop];} +else{pos=[el.offsetLeft,el.offsetTop];parentNode=el.offsetParent;if(parentNode!=el){while(parentNode){pos[0]+=parentNode.offsetLeft;pos[1]+=parentNode.offsetTop;parentNode=parentNode.offsetParent;}} +if(isSafari&&this.getStyle(el,'position')=='absolute'){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}} +if(el.parentNode){parentNode=el.parentNode;} +else{parentNode=null;} +while(parentNode&&parentNode.tagName.toUpperCase()!='BODY'&&parentNode.tagName.toUpperCase()!='HTML') +{if(Y.Dom.getStyle(parentNode,'display')!='inline'){pos[0]-=parentNode.scrollLeft;pos[1]-=parentNode.scrollTop;} +if(parentNode.parentNode){parentNode=parentNode.parentNode;}else{parentNode=null;}} +return pos;};return Y.Dom.batch(el,f,Y.Dom,true);},getX:function(el){var f=function(el){return Y.Dom.getXY(el)[0];};return Y.Dom.batch(el,f,Y.Dom,true);},getY:function(el){var f=function(el){return Y.Dom.getXY(el)[1];};return Y.Dom.batch(el,f,Y.Dom,true);},setXY:function(el,pos,noRetry){var f=function(el){var style_pos=this.getStyle(el,'position');if(style_pos=='static'){this.setStyle(el,'position','relative');style_pos='relative';} +var pageXY=this.getXY(el);if(pageXY===false){return false;} +var delta=[parseInt(this.getStyle(el,'left'),10),parseInt(this.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;} +if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;} +if(pos[0]!==null){el.style.left=pos[0]-pageXY[0]+delta[0]+'px';} +if(pos[1]!==null){el.style.top=pos[1]-pageXY[1]+delta[1]+'px';} +if(!noRetry){var newXY=this.getXY(el);if((pos[0]!==null&&newXY[0]!=pos[0])||(pos[1]!==null&&newXY[1]!=pos[1])){this.setXY(el,pos,true);}}};Y.Dom.batch(el,f,Y.Dom,true);},setX:function(el,x){Y.Dom.setXY(el,[x,null]);},setY:function(el,y){Y.Dom.setXY(el,[null,y]);},getRegion:function(el){var f=function(el){var region=new Y.Region.getRegion(el);return region;};return Y.Dom.batch(el,f,Y.Dom,true);},getClientWidth:function(){return Y.Dom.getViewportWidth();},getClientHeight:function(){return Y.Dom.getViewportHeight();},getElementsByClassName:function(className,tag,root){var method=function(el){return Y.Dom.hasClass(el,className);};return Y.Dom.getElementsBy(method,tag,root);},hasClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var f=function(el){return re.test(el['className']);};return Y.Dom.batch(el,f,Y.Dom,true);},addClass:function(el,className){var f=function(el){if(this.hasClass(el,className)){return;} +el['className']=[el['className'],className].join(' ');};Y.Dom.batch(el,f,Y.Dom,true);},removeClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,className)){return;} +var c=el['className'];el['className']=c.replace(re,' ');if(this.hasClass(el,className)){this.removeClass(el,className);}};Y.Dom.batch(el,f,Y.Dom,true);},replaceClass:function(el,oldClassName,newClassName){if(oldClassName===newClassName){return false;} +var re=new RegExp('(?:^|\\s+)'+oldClassName+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,oldClassName)){this.addClass(el,newClassName);return;} +el['className']=el['className'].replace(re,' '+newClassName+' ');if(this.hasClass(el,oldClassName)){this.replaceClass(el,oldClassName,newClassName);}};Y.Dom.batch(el,f,Y.Dom,true);},generateId:function(el,prefix){prefix=prefix||'yui-gen';el=el||{};var f=function(el){if(el){el=Y.Dom.get(el);}else{el={};} +if(!el.id){el.id=prefix+id_counter++;} +return el.id;};return Y.Dom.batch(el,f,Y.Dom,true);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;} +var f=function(needle){if(haystack.contains&&!isSafari){return haystack.contains(needle);} +else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);} +else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;} +else if(!parent.tagName||parent.tagName.toUpperCase()=='HTML'){return false;} +parent=parent.parentNode;} +return false;}};return Y.Dom.batch(needle,f,Y.Dom,true);},inDocument:function(el){var f=function(el){return this.isAncestor(document.documentElement,el);};return Y.Dom.batch(el,f,Y.Dom,true);},getElementsBy:function(method,tag,root){tag=tag||'*';var nodes=[];if(root){root=Y.Dom.get(root);if(!root){return nodes;}}else{root=document;} +var elements=root.getElementsByTagName(tag);if(!elements.length&&(tag=='*'&&root.all)){elements=root.all;} +for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}} +return nodes;},batch:function(el,method,o,override){var id=el;el=Y.Dom.get(el);var scope=(override)?o:window;if(!el||el.tagName||!el.length){if(!el){return false;} +return method.call(scope,el,o);} +var collection=[];for(var i=0,len=el.length;i<len;++i){if(!el[i]){id=el[i];} +collection[collection.length]=method.call(scope,el[i],o);} +return collection;},getDocumentHeight:function(){var scrollHeight=(document.compatMode!='CSS1Compat')?document.body.scrollHeight:document.documentElement.scrollHeight;var h=Math.max(scrollHeight,Y.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var scrollWidth=(document.compatMode!='CSS1Compat')?document.body.scrollWidth:document.documentElement.scrollWidth;var w=Math.max(scrollWidth,Y.Dom.getViewportWidth());return w;},getViewportHeight:function(){var height=self.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=(mode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;} +return height;},getViewportWidth:function(){var width=self.innerWidth;var mode=document.compatMode;if(mode||isIE){width=(mode=='CSS1Compat')?document.documentElement.clientWidth:document.body.clientWidth;} +return width;}};})();YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];} +this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/dom/dom.js b/interface/ispconfig/interface/js/yui/dom/dom.js new file mode 100644 index 0000000..18158d5 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dom/dom.js @@ -0,0 +1,901 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +*/ + +/** + * The dom module provides helper methods for manipulating Dom elements. + * @module dom + * + */ + +(function() { + var Y = YAHOO.util, // internal shorthand + getStyle, // for load time browser branching + setStyle, // ditto + id_counter = 0, // for use with generateId + propertyCache = {}; // for faster hyphen converts + + // brower detection + var ua = navigator.userAgent.toLowerCase(), + isOpera = (ua.indexOf('opera') > -1), + isSafari = (ua.indexOf('safari') > -1), + isGecko = (!isOpera && !isSafari && ua.indexOf('gecko') > -1), + isIE = (!isOpera && ua.indexOf('msie') > -1); + + // regex cache + var patterns = { + HYPHEN: /(-[a-z])/i + }; + + + var toCamel = function(property) { + if ( !patterns.HYPHEN.test(property) ) { + return property; // no hyphens + } + + if (propertyCache[property]) { // already converted + return propertyCache[property]; + } + + while( patterns.HYPHEN.exec(property) ) { + property = property.replace(RegExp.$1, + RegExp.$1.substr(1).toUpperCase()); + } + + propertyCache[property] = property; + return property; + //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug + }; + + // branching at load instead of runtime + if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method + getStyle = function(el, property) { + var value = null; + + var computed = document.defaultView.getComputedStyle(el, ''); + if (computed) { // test computed before touching for safari + value = computed[toCamel(property)]; + } + + return el.style[property] || value; + }; + } else if (document.documentElement.currentStyle && isIE) { // IE method + getStyle = function(el, property) { + switch( toCamel(property) ) { + case 'opacity' :// IE opacity uses filter + var val = 100; + try { // will error if no DXImageTransform + val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity; + + } catch(e) { + try { // make sure its in the document + val = el.filters('alpha').opacity; + } catch(e) { + } + } + return val / 100; + break; + default: + // test currentStyle before touching + var value = el.currentStyle ? el.currentStyle[property] : null; + return ( el.style[property] || value ); + } + }; + } else { // default to inline only + getStyle = function(el, property) { return el.style[property]; }; + } + + if (isIE) { + setStyle = function(el, property, val) { + switch (property) { + case 'opacity': + if ( typeof el.style.filter == 'string' ) { // in case not appended + el.style.filter = 'alpha(opacity=' + val * 100 + ')'; + + if (!el.currentStyle || !el.currentStyle.hasLayout) { + el.style.zoom = 1; // when no layout or cant tell + } + } + break; + default: + el.style[property] = val; + } + }; + } else { + setStyle = function(el, property, val) { + el.style[property] = val; + }; + } + + /** + * Provides helper methods for DOM elements. + * @namespace YAHOO.util + * @class Dom + */ + YAHOO.util.Dom = { + /** + * Returns an HTMLElement reference. + * @method get + * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements. + */ + get: function(el) { + if (!el) { return null; } // nothing to work with + + if (typeof el != 'string' && !(el instanceof Array) ) { // assuming HTMLElement or HTMLCollection, so pass back as is + return el; + } + + if (typeof el == 'string') { // ID + return document.getElementById(el); + } + else { // array of ID's and/or elements + var collection = []; + for (var i = 0, len = el.length; i < len; ++i) { + collection[collection.length] = Y.Dom.get(el[i]); + } + + return collection; + } + + return null; // safety, should never happen + }, + + /** + * Normalizes currentStyle and ComputedStyle. + * @method getStyle + * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {String} property The style property whose value is returned. + * @return {String | Array} The current value of the style property for the element(s). + */ + getStyle: function(el, property) { + property = toCamel(property); + + var f = function(element) { + return getStyle(element, property); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Wrapper for setting style properties of HTMLElements. Normalizes "opacity" across modern browsers. + * @method setStyle + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {String} property The style property to be set. + * @param {String} val The value to apply to the given property. + */ + setStyle: function(el, property, val) { + property = toCamel(property); + + var f = function(element) { + setStyle(element, property, val); + + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getXY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {Array} The XY position of the element(s) + */ + getXY: function(el) { + var f = function(el) { + + // has to be part of document to have pageXY + if (el.parentNode === null || el.offsetParent === null || + this.getStyle(el, 'display') == 'none') { + return false; + } + + var parentNode = null; + var pos = []; + var box; + + if (el.getBoundingClientRect) { // IE + box = el.getBoundingClientRect(); + var doc = document; + if ( !this.inDocument(el) && parent.document != document) {// might be in a frame, need to get its scroll + doc = parent.document; + + if ( !this.isAncestor(doc.documentElement, el) ) { + return false; + } + + } + + var scrollTop = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop); + var scrollLeft = Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft); + + return [box.left + scrollLeft, box.top + scrollTop]; + } + else { // safari, opera, & gecko + pos = [el.offsetLeft, el.offsetTop]; + parentNode = el.offsetParent; + if (parentNode != el) { + while (parentNode) { + pos[0] += parentNode.offsetLeft; + pos[1] += parentNode.offsetTop; + parentNode = parentNode.offsetParent; + } + } + if (isSafari && this.getStyle(el, 'position') == 'absolute' ) { // safari doubles in some cases + pos[0] -= document.body.offsetLeft; + pos[1] -= document.body.offsetTop; + } + } + + if (el.parentNode) { parentNode = el.parentNode; } + else { parentNode = null; } + + while (parentNode && parentNode.tagName.toUpperCase() != 'BODY' && parentNode.tagName.toUpperCase() != 'HTML') + { // account for any scrolled ancestors + if (Y.Dom.getStyle(parentNode, 'display') != 'inline') { // work around opera inline scrollLeft/Top bug + pos[0] -= parentNode.scrollLeft; + pos[1] -= parentNode.scrollTop; + } + + if (parentNode.parentNode) { + parentNode = parentNode.parentNode; + } else { parentNode = null; } + } + + + return pos; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current X position of an element based on page coordinates. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getX + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {String | Array} The X position of the element(s) + */ + getX: function(el) { + var f = function(el) { + return Y.Dom.getXY(el)[0]; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Gets the current Y position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method getY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @return {String | Array} The Y position of the element(s) + */ + getY: function(el) { + var f = function(el) { + return Y.Dom.getXY(el)[1]; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Set the position of an html element in page coordinates, regardless of how the element is positioned. + * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setXY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements + * @param {Array} pos Contains X & Y values for new position (coordinates are page-based) + * @param {Boolean} noRetry By default we try and set the position a second time if the first fails + */ + setXY: function(el, pos, noRetry) { + var f = function(el) { + var style_pos = this.getStyle(el, 'position'); + if (style_pos == 'static') { // default to relative + this.setStyle(el, 'position', 'relative'); + style_pos = 'relative'; + } + + var pageXY = this.getXY(el); + if (pageXY === false) { // has to be part of doc to have pageXY + return false; + } + + var delta = [ // assuming pixels; if not we will have to retry + parseInt( this.getStyle(el, 'left'), 10 ), + parseInt( this.getStyle(el, 'top'), 10 ) + ]; + + if ( isNaN(delta[0]) ) {// in case of 'auto' + delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft; + } + if ( isNaN(delta[1]) ) { // in case of 'auto' + delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop; + } + + if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; } + if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; } + + if (!noRetry) { + var newXY = this.getXY(el); + + // if retry is true, try one more time if we miss + if ( (pos[0] !== null && newXY[0] != pos[0]) || + (pos[1] !== null && newXY[1] != pos[1]) ) { + this.setXY(el, pos, true); + } + } + + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Set the X position of an html element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setX + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {Int} x The value to use as the X coordinate for the element(s). + */ + setX: function(el, x) { + Y.Dom.setXY(el, [x, null]); + }, + + /** + * Set the Y position of an html element in page coordinates, regardless of how the element is positioned. + * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). + * @method setY + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @param {Int} x To use as the Y coordinate for the element(s). + */ + setY: function(el, y) { + Y.Dom.setXY(el, [null, y]); + }, + + /** + * Returns the region position of the given element. + * The element must be part of the DOM tree to have a region (display:none or elements not appended return false). + * @method getRegion + * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements. + * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data. + */ + getRegion: function(el) { + var f = function(el) { + var region = new Y.Region.getRegion(el); + return region; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Returns the width of the client (viewport). + * @method getClientWidth + * @deprecated Now using getViewportWidth. This interface left intact for back compat. + * @return {Int} The width of the viewable area of the page. + */ + getClientWidth: function() { + return Y.Dom.getViewportWidth(); + }, + + /** + * Returns the height of the client (viewport). + * @method getClientHeight + * @deprecated Now using getViewportHeight. This interface left intact for back compat. + * @return {Int} The height of the viewable area of the page. + */ + getClientHeight: function() { + return Y.Dom.getViewportHeight(); + }, + + /** + * Returns a array of HTMLElements with the given class. + * For optimized performance, include a tag and/or root node when possible. + * @method getElementsByClassName + * @param {String} className The class name to match against + * @param {String} tag (optional) The tag name of the elements being collected + * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point + * @return {Array} An array of elements that have the given class name + */ + getElementsByClassName: function(className, tag, root) { + var method = function(el) { return Y.Dom.hasClass(el, className); }; + return Y.Dom.getElementsBy(method, tag, root); + }, + + /** + * Determines whether an HTMLElement has the given className. + * @method hasClass + * @param {String | HTMLElement | Array} el The element or collection to test + * @param {String} className the class name to search for + * @return {Boolean | Array} A boolean value or array of boolean values + */ + hasClass: function(el, className) { + var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)'); + + var f = function(el) { + return re.test(el['className']); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Adds a class name to a given element or collection of elements. + * @method addClass + * @param {String | HTMLElement | Array} el The element or collection to add the class to + * @param {String} className the class name to add to the class attribute + */ + addClass: function(el, className) { + var f = function(el) { + if (this.hasClass(el, className)) { return; } // already present + + + el['className'] = [el['className'], className].join(' '); + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Removes a class name from a given element or collection of elements. + * @method removeClass + * @param {String | HTMLElement | Array} el The element or collection to remove the class from + * @param {String} className the class name to remove from the class attribute + */ + removeClass: function(el, className) { + var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', 'g'); + + var f = function(el) { + if (!this.hasClass(el, className)) { return; } // not present + + + var c = el['className']; + el['className'] = c.replace(re, ' '); + if ( this.hasClass(el, className) ) { // in case of multiple adjacent + this.removeClass(el, className); + } + + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Replace a class with another class for a given element or collection of elements. + * If no oldClassName is present, the newClassName is simply added. + * @method replaceClass + * @param {String | HTMLElement | Array} el The element or collection to remove the class from + * @param {String} oldClassName the class name to be replaced + * @param {String} newClassName the class name that will be replacing the old class name + */ + replaceClass: function(el, oldClassName, newClassName) { + if (oldClassName === newClassName) { // avoid infinite loop + return false; + } + + var re = new RegExp('(?:^|\\s+)' + oldClassName + '(?:\\s+|$)', 'g'); + + var f = function(el) { + + if ( !this.hasClass(el, oldClassName) ) { + this.addClass(el, newClassName); // just add it if nothing to replace + return; // note return + } + + el['className'] = el['className'].replace(re, ' ' + newClassName + ' '); + + if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent + this.replaceClass(el, oldClassName, newClassName); + } + }; + + Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Generates a unique ID + * @method generateId + * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present). + * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen"). + * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element) + */ + generateId: function(el, prefix) { + prefix = prefix || 'yui-gen'; + el = el || {}; + + var f = function(el) { + if (el) { + el = Y.Dom.get(el); + } else { + el = {}; // just generating ID in this case + } + + if (!el.id) { + el.id = prefix + id_counter++; + } // dont override existing + + + return el.id; + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy. + * @method isAncestor + * @param {String | HTMLElement} haystack The possible ancestor + * @param {String | HTMLElement} needle The possible descendent + * @return {Boolean} Whether or not the haystack is an ancestor of needle + */ + isAncestor: function(haystack, needle) { + haystack = Y.Dom.get(haystack); + if (!haystack || !needle) { return false; } + + var f = function(needle) { + if (haystack.contains && !isSafari) { // safari "contains" is broken + return haystack.contains(needle); + } + else if ( haystack.compareDocumentPosition ) { + return !!(haystack.compareDocumentPosition(needle) & 16); + } + else { // loop up and test each parent + var parent = needle.parentNode; + + while (parent) { + if (parent == haystack) { + return true; + } + else if (!parent.tagName || parent.tagName.toUpperCase() == 'HTML') { + return false; + } + + parent = parent.parentNode; + } + return false; + } + }; + + return Y.Dom.batch(needle, f, Y.Dom, true); + }, + + /** + * Determines whether an HTMLElement is present in the current document. + * @method inDocument + * @param {String | HTMLElement} el The element to search for + * @return {Boolean} Whether or not the element is present in the current document + */ + inDocument: function(el) { + var f = function(el) { + return this.isAncestor(document.documentElement, el); + }; + + return Y.Dom.batch(el, f, Y.Dom, true); + }, + + /** + * Returns a array of HTMLElements that pass the test applied by supplied boolean method. + * For optimized performance, include a tag and/or root node when possible. + * @method getElementsBy + * @param {Function} method - A boolean method for testing elements which receives the element as its only argument. + + * @param {String} tag (optional) The tag name of the elements being collected + * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point + * @return {Array} Array of HTMLElements + */ + getElementsBy: function(method, tag, root) { + tag = tag || '*'; + + var nodes = []; + + if (root) { + root = Y.Dom.get(root); + if (!root) { // if no root node, then no children + return nodes; + } + } else { + root = document; + } + + var elements = root.getElementsByTagName(tag); + + if ( !elements.length && (tag == '*' && root.all) ) { + elements = root.all; // IE < 6 + } + + for (var i = 0, len = elements.length; i < len; ++i) { + if ( method(elements[i]) ) { nodes[nodes.length] = elements[i]; } + } + + + return nodes; + }, + + /** + * Returns an array of elements that have had the supplied method applied. + * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ). + * @method batch + * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to + * @param {Function} method The method to apply to the element(s) + * @param {Any} o (optional) An optional arg that is passed to the supplied method + * @param {Boolean} override (optional) Whether or not to override the scope of "method" with "o" + * @return {HTMLElement | Array} The element(s) with the method applied + */ + batch: function(el, method, o, override) { + var id = el; + el = Y.Dom.get(el); + + var scope = (override) ? o : window; + + if (!el || el.tagName || !el.length) { // is null or not a collection (tagName for SELECT and others that can be both an element and a collection) + if (!el) { + return false; + } + return method.call(scope, el, o); + } + + var collection = []; + + for (var i = 0, len = el.length; i < len; ++i) { + if (!el[i]) { + id = el[i]; + } + collection[collection.length] = method.call(scope, el[i], o); + } + + return collection; + }, + + /** + * Returns the height of the document. + * @method getDocumentHeight + * @return {Int} The height of the actual document (which includes the body and its margin). + */ + getDocumentHeight: function() { + var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight; + + var h = Math.max(scrollHeight, Y.Dom.getViewportHeight()); + return h; + }, + + /** + * Returns the width of the document. + * @method getDocumentWidth + * @return {Int} The width of the actual document (which includes the body and its margin). + */ + getDocumentWidth: function() { + var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth; + var w = Math.max(scrollWidth, Y.Dom.getViewportWidth()); + return w; + }, + + /** + * Returns the current height of the viewport. + * @method getViewportHeight + * @return {Int} The height of the viewable area of the page (excludes scrollbars). + */ + getViewportHeight: function() { + var height = self.innerHeight; // Safari, Opera + var mode = document.compatMode; + + if ( (mode || isIE) && !isOpera ) { // IE, Gecko + height = (mode == 'CSS1Compat') ? + document.documentElement.clientHeight : // Standards + document.body.clientHeight; // Quirks + } + + return height; + }, + + /** + * Returns the current width of the viewport. + * @method getViewportWidth + * @return {Int} The width of the viewable area of the page (excludes scrollbars). + */ + + getViewportWidth: function() { + var width = self.innerWidth; // Safari + var mode = document.compatMode; + + if (mode || isIE) { // IE, Gecko, Opera + width = (mode == 'CSS1Compat') ? + document.documentElement.clientWidth : // Standards + document.body.clientWidth; // Quirks + } + return width; + } + }; +})(); +/** + * A region is a representation of an object on a grid. It is defined + * by the top, right, bottom, left extents, so is rectangular by default. If + * other shapes are required, this class could be extended to support it. + * @namespace YAHOO.util + * @class Region + * @param {Int} t the top extent + * @param {Int} r the right extent + * @param {Int} b the bottom extent + * @param {Int} l the left extent + * @constructor + */ +YAHOO.util.Region = function(t, r, b, l) { + + /** + * The region's top extent + * @property top + * @type Int + */ + this.top = t; + + /** + * The region's top extent as index, for symmetry with set/getXY + * @property 1 + * @type Int + */ + this[1] = t; + + /** + * The region's right extent + * @property right + * @type int + */ + this.right = r; + + /** + * The region's bottom extent + * @property bottom + * @type Int + */ + this.bottom = b; + + /** + * The region's left extent + * @property left + * @type Int + */ + this.left = l; + + /** + * The region's left extent as index, for symmetry with set/getXY + * @property 0 + * @type Int + */ + this[0] = l; +}; + +/** + * Returns true if this region contains the region passed in + * @method contains + * @param {Region} region The region to evaluate + * @return {Boolean} True if the region is contained with this region, + * else false + */ +YAHOO.util.Region.prototype.contains = function(region) { + return ( region.left >= this.left && + region.right <= this.right && + region.top >= this.top && + region.bottom <= this.bottom ); + +}; + +/** + * Returns the area of the region + * @method getArea + * @return {Int} the region's area + */ +YAHOO.util.Region.prototype.getArea = function() { + return ( (this.bottom - this.top) * (this.right - this.left) ); +}; + +/** + * Returns the region where the passed in region overlaps with this one + * @method intersect + * @param {Region} region The region that intersects + * @return {Region} The overlap region, or null if there is no overlap + */ +YAHOO.util.Region.prototype.intersect = function(region) { + var t = Math.max( this.top, region.top ); + var r = Math.min( this.right, region.right ); + var b = Math.min( this.bottom, region.bottom ); + var l = Math.max( this.left, region.left ); + + if (b >= t && r >= l) { + return new YAHOO.util.Region(t, r, b, l); + } else { + return null; + } +}; + +/** + * Returns the region representing the smallest region that can contain both + * the passed in region and this region. + * @method union + * @param {Region} region The region that to create the union with + * @return {Region} The union region + */ +YAHOO.util.Region.prototype.union = function(region) { + var t = Math.min( this.top, region.top ); + var r = Math.max( this.right, region.right ); + var b = Math.max( this.bottom, region.bottom ); + var l = Math.min( this.left, region.left ); + + return new YAHOO.util.Region(t, r, b, l); +}; + +/** + * toString + * @method toString + * @return string the region properties + */ +YAHOO.util.Region.prototype.toString = function() { + return ( "Region {" + + "top: " + this.top + + ", right: " + this.right + + ", bottom: " + this.bottom + + ", left: " + this.left + + "}" ); +}; + +/** + * Returns a region that is occupied by the DOM element + * @method getRegion + * @param {HTMLElement} el The element + * @return {Region} The region that the element occupies + * @static + */ +YAHOO.util.Region.getRegion = function(el) { + var p = YAHOO.util.Dom.getXY(el); + + var t = p[1]; + var r = p[0] + el.offsetWidth; + var b = p[1] + el.offsetHeight; + var l = p[0]; + + return new YAHOO.util.Region(t, r, b, l); +}; + +///////////////////////////////////////////////////////////////////////////// + + +/** + * A point is a region that is special in that it represents a single point on + * the grid. + * @namespace YAHOO.util + * @class Point + * @param {Int} x The X position of the point + * @param {Int} y The Y position of the point + * @constructor + * @extends YAHOO.util.Region + */ +YAHOO.util.Point = function(x, y) { + if (x instanceof Array) { // accept output from Dom.getXY + y = x[1]; + x = x[0]; + } + + /** + * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry) + * @property x + * @type Int + */ + + this.x = this.right = this.left = this[0] = x; + + /** + * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry) + * @property y + * @type Int + */ + this.y = this.top = this.bottom = this[1] = y; +}; + +YAHOO.util.Point.prototype = new YAHOO.util.Region(); + +YAHOO.register("dom", YAHOO.util.Dom, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/dragdrop/README b/interface/ispconfig/interface/js/yui/dragdrop/README new file mode 100644 index 0000000..861174a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dragdrop/README @@ -0,0 +1,118 @@ +Drag and Drop Release Notes + +2.2.0 + + * onMouseDown event is executed before element positions are calculated + + * refreshCache refreshes everything if groups array is not provided + + * setX/setYConstraint doesn't fail when presented ints cast as strings + +0.12.2 + + * No change + +0.12.1 + + * Added a STRICT_INTERSECT drag and drop interaction mode. This alters the + behavior of DDM::getBestMatch. INTERSECT mode first tests the cursor + location, and if it is over the target that target wins, otherwise it + tests the overlap of the elements. STRICT_INTERSECT mode tests only + the overlap, the largest overlap wins. + + * getBestMatch will work for targeted elements that have no overlap. + +0.12.0 + + * The logic to determine if a drag should be initiated has been isolated + to the clickValidator method. This method can be overridden to provide + custom valdiation logic. For example, it is possible to specify hotspots + of any dimension or shape. The provided example shows how to make only + a circular region in the middle of the element initiate a drag. + + * Added a new drag and drop event: onInvalidDrop. This is executed when + the dragged element in dropped in a location without a target. Previously + this condition could only detected by implementing handlers for three + other events. + + * Now accepts an element reference in lieu of an id. Ids will + be generated if the element does not have one. + + * Fixed horizontal autoscroll when scrollTop is zero. + + * Added hasOuterHandles property to bypass the isOverTarget check in the + mousedown validation routine. Fixes setOuterHandleElId. + +0.11.4 + + * YAHOO.util.DragDropMgr.swapNode now handles adjacent nodes properly + + * Fixed missing variable declarations + +0.11.3 + + * Fixed a JavaScript error that would be generated when trying to implement + DDProxy using the default settings and a tiny element. + + * Fixed an error that resulted when constraints were applied to DragDrop + instances. + +0.11.2 + + * Drag and drop will no longer interfere with selecting text on elements + that are not involved in drag and drop. + + * The shared drag and drop proxy element now resizes correctly when autoResize + is enabled. + +0.11.1 + + * Fixes an issue where the setXY cache could get out of sync if the element's + offsetParent is changed during onDragDrop. + +0.11.0 + + * The Dom.util.setXY calculation for the initial placement of the dragged + element is cached during the drag, enhancing the drag performance. + + * DDProxy no longer enforces having a single proxy element for all instances. + dragElId can be set in the config object in the constructor. If the + element already exists it will use that element, otherwise a new one will + be created with that id. + + * DDProxy->borderWidth has been removed. The value is calculated on the fly + instead. + + * Added DragDrop->clearTicks and DragDrop->clearConstraints + + * All drag and drop constructors now have an additional, optional parameter + call "config". It is an object that can contain properties for a + number of configuration settings. + + * Drag and drop will not be disabled for elements that cannot have their + location determined. + + * isLegalTarget won't return dd objects that are not targetable. + + * Added DragDrop->removeFromGroup. + + * Constraints are now applied properly when determining which drag and drop + events should fire. + + +0.10.0 + + * Improved the performance when in intersect mode + + * It was possible for the drag and drop initialization to be skipped + for very slow loading pages. This was fixed. + + * New methods to exclude regions within your drag and drop element: + addInvalidHandleId(), addInvalidHandleClass() + + * Added an onAvailable handler that is executed after the initial state is set. + + * Drag and drop is more forgiving when the implementer attempts to create the + instance prior to the element being in the document, but after the window + load event has fired. + diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js new file mode 100644 index 0000000..b06b415 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js @@ -0,0 +1,3068 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The drag and drop utility provides a framework for building drag and drop + * applications. In addition to enabling drag and drop for specific elements, + * the drag and drop elements are tracked by the manager class, and the + * interactions between the various elements are tracked during the drag and + * the implementing code is notified about these important moments. + * @module dragdrop + * @title Drag and Drop + * @requires yahoo,dom,event + * @namespace YAHOO.util + */ + +// Only load the library once. Rewriting the manager class would orphan +// existing drag and drop instances. +if (!YAHOO.util.DragDropMgr) { + +/** + * DragDropMgr is a singleton that tracks the element interaction for + * all DragDrop items in the window. Generally, you will not call + * this class directly, but it does have helper methods that could + * be useful in your DragDrop implementations. + * @class DragDropMgr + * @static + */ +YAHOO.util.DragDropMgr = function() { + + var Event = YAHOO.util.Event; + + return { + + /** + * Two dimensional Array of registered DragDrop objects. The first + * dimension is the DragDrop item group, the second the DragDrop + * object. + * @property ids + * @type {string: string} + * @private + * @static + */ + ids: {}, + + /** + * Array of element ids defined as drag handles. Used to determine + * if the element that generated the mousedown event is actually the + * handle and not the html element itself. + * @property handleIds + * @type {string: string} + * @private + * @static + */ + handleIds: {}, + + /** + * the DragDrop object that is currently being dragged + * @property dragCurrent + * @type DragDrop + * @private + * @static + **/ + dragCurrent: null, + + /** + * the DragDrop object(s) that are being hovered over + * @property dragOvers + * @type Array + * @private + * @static + */ + dragOvers: {}, + + /** + * the X distance between the cursor and the object being dragged + * @property deltaX + * @type int + * @private + * @static + */ + deltaX: 0, + + /** + * the Y distance between the cursor and the object being dragged + * @property deltaY + * @type int + * @private + * @static + */ + deltaY: 0, + + /** + * Flag to determine if we should prevent the default behavior of the + * events we define. By default this is true, but this can be set to + * false if you need the default behavior (not recommended) + * @property preventDefault + * @type boolean + * @static + */ + preventDefault: true, + + /** + * Flag to determine if we should stop the propagation of the events + * we generate. This is true by default but you may want to set it to + * false if the html element contains other features that require the + * mouse click. + * @property stopPropagation + * @type boolean + * @static + */ + stopPropagation: true, + + /** + * Internal flag that is set to true when drag and drop has been + * intialized + * @property initialized + * @private + * @static + */ + initalized: false, + + /** + * All drag and drop can be disabled. + * @property locked + * @private + * @static + */ + locked: false, + + /** + * Called the first time an element is registered. + * @method init + * @private + * @static + */ + init: function() { + this.logger = new YAHOO.widget.LogWriter("DragDropMgr"); + this.initialized = true; + }, + + /** + * In point mode, drag and drop interaction is defined by the + * location of the cursor during the drag/drop + * @property POINT + * @type int + * @static + * @final + */ + POINT: 0, + + /** + * In intersect mode, drag and drop interaction is defined by the + * cursor position or the amount of overlap of two or more drag and + * drop objects. + * @property INTERSECT + * @type int + * @static + * @final + */ + INTERSECT: 1, + + /** + * In intersect mode, drag and drop interaction is defined only by the + * overlap of two or more drag and drop objects. + * @property STRICT_INTERSECT + * @type int + * @static + * @final + */ + STRICT_INTERSECT: 2, + + /** + * The current drag and drop mode. Default: POINT + * @property mode + * @type int + * @static + */ + mode: 0, + + /** + * Runs method on all drag and drop objects + * @method _execOnAll + * @private + * @static + */ + _execOnAll: function(sMethod, args) { + for (var i in this.ids) { + for (var j in this.ids[i]) { + var oDD = this.ids[i][j]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + oDD[sMethod].apply(oDD, args); + } + } + }, + + /** + * Drag and drop initialization. Sets up the global event handlers + * @method _onLoad + * @private + * @static + */ + _onLoad: function() { + + this.init(); + + this.logger.log("DDM onload"); + + Event.on(document, "mouseup", this.handleMouseUp, this, true); + Event.on(document, "mousemove", this.handleMouseMove, this, true); + Event.on(window, "unload", this._onUnload, this, true); + Event.on(window, "resize", this._onResize, this, true); + // Event.on(window, "mouseout", this._test); + + }, + + /** + * Reset constraints on all drag and drop objs + * @method _onResize + * @private + * @static + */ + _onResize: function(e) { + this.logger.log("window resize"); + this._execOnAll("resetConstraints", []); + }, + + /** + * Lock all drag and drop functionality + * @method lock + * @static + */ + lock: function() { this.locked = true; }, + + /** + * Unlock all drag and drop functionality + * @method unlock + * @static + */ + unlock: function() { this.locked = false; }, + + /** + * Is drag and drop locked? + * @method isLocked + * @return {boolean} True if drag and drop is locked, false otherwise. + * @static + */ + isLocked: function() { return this.locked; }, + + /** + * Location cache that is set for all drag drop objects when a drag is + * initiated, cleared when the drag is finished. + * @property locationCache + * @private + * @static + */ + locationCache: {}, + + /** + * Set useCache to false if you want to force object the lookup of each + * drag and drop linked element constantly during a drag. + * @property useCache + * @type boolean + * @static + */ + useCache: true, + + /** + * The number of pixels that the mouse needs to move after the + * mousedown before the drag is initiated. Default=3; + * @property clickPixelThresh + * @type int + * @static + */ + clickPixelThresh: 3, + + /** + * The number of milliseconds after the mousedown event to initiate the + * drag if we don't get a mouseup event. Default=1000 + * @property clickTimeThresh + * @type int + * @static + */ + clickTimeThresh: 1000, + + /** + * Flag that indicates that either the drag pixel threshold or the + * mousdown time threshold has been met + * @property dragThreshMet + * @type boolean + * @private + * @static + */ + dragThreshMet: false, + + /** + * Timeout used for the click time threshold + * @property clickTimeout + * @type Object + * @private + * @static + */ + clickTimeout: null, + + /** + * The X position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startX + * @type int + * @private + * @static + */ + startX: 0, + + /** + * The Y position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startY + * @type int + * @private + * @static + */ + startY: 0, + + /** + * Each DragDrop instance must be registered with the DragDropMgr. + * This is executed in DragDrop.init() + * @method regDragDrop + * @param {DragDrop} oDD the DragDrop object to register + * @param {String} sGroup the name of the group this element belongs to + * @static + */ + regDragDrop: function(oDD, sGroup) { + if (!this.initialized) { this.init(); } + + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + this.ids[sGroup][oDD.id] = oDD; + }, + + /** + * Removes the supplied dd instance from the supplied group. Executed + * by DragDrop.removeFromGroup, so don't call this function directly. + * @method removeDDFromGroup + * @private + * @static + */ + removeDDFromGroup: function(oDD, sGroup) { + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + + var obj = this.ids[sGroup]; + if (obj && obj[oDD.id]) { + delete obj[oDD.id]; + } + }, + + /** + * Unregisters a drag and drop item. This is executed in + * DragDrop.unreg, use that method instead of calling this directly. + * @method _remove + * @private + * @static + */ + _remove: function(oDD) { + for (var g in oDD.groups) { + if (g && this.ids[g][oDD.id]) { + delete this.ids[g][oDD.id]; + //this.logger.log("NEW LEN " + this.ids.length, "warn"); + } + } + delete this.handleIds[oDD.id]; + }, + + /** + * Each DragDrop handle element must be registered. This is done + * automatically when executing DragDrop.setHandleElId() + * @method regHandle + * @param {String} sDDId the DragDrop id this element is a handle for + * @param {String} sHandleId the id of the element that is the drag + * handle + * @static + */ + regHandle: function(sDDId, sHandleId) { + if (!this.handleIds[sDDId]) { + this.handleIds[sDDId] = {}; + } + this.handleIds[sDDId][sHandleId] = sHandleId; + }, + + /** + * Utility function to determine if a given element has been + * registered as a drag drop item. + * @method isDragDrop + * @param {String} id the element id to check + * @return {boolean} true if this element is a DragDrop item, + * false otherwise + * @static + */ + isDragDrop: function(id) { + return ( this.getDDById(id) ) ? true : false; + }, + + /** + * Returns the drag and drop instances that are in all groups the + * passed in instance belongs to. + * @method getRelated + * @param {DragDrop} p_oDD the obj to get related data for + * @param {boolean} bTargetsOnly if true, only return targetable objs + * @return {DragDrop[]} the related instances + * @static + */ + getRelated: function(p_oDD, bTargetsOnly) { + var oDDs = []; + for (var i in p_oDD.groups) { + for (j in this.ids[i]) { + var dd = this.ids[i][j]; + if (! this.isTypeOfDD(dd)) { + continue; + } + if (!bTargetsOnly || dd.isTarget) { + oDDs[oDDs.length] = dd; + } + } + } + + return oDDs; + }, + + /** + * Returns true if the specified dd target is a legal target for + * the specifice drag obj + * @method isLegalTarget + * @param {DragDrop} the drag obj + * @param {DragDrop} the target + * @return {boolean} true if the target is a legal target for the + * dd obj + * @static + */ + isLegalTarget: function (oDD, oTargetDD) { + var targets = this.getRelated(oDD, true); + for (var i=0, len=targets.length;i<len;++i) { + if (targets[i].id == oTargetDD.id) { + return true; + } + } + + return false; + }, + + /** + * My goal is to be able to transparently determine if an object is + * typeof DragDrop, and the exact subclass of DragDrop. typeof + * returns "object", oDD.constructor.toString() always returns + * "DragDrop" and not the name of the subclass. So for now it just + * evaluates a well-known variable in DragDrop. + * @method isTypeOfDD + * @param {Object} the object to evaluate + * @return {boolean} true if typeof oDD = DragDrop + * @static + */ + isTypeOfDD: function (oDD) { + return (oDD && oDD.__ygDragDrop); + }, + + /** + * Utility function to determine if a given element has been + * registered as a drag drop handle for the given Drag Drop object. + * @method isHandle + * @param {String} id the element id to check + * @return {boolean} true if this element is a DragDrop handle, false + * otherwise + * @static + */ + isHandle: function(sDDId, sHandleId) { + return ( this.handleIds[sDDId] && + this.handleIds[sDDId][sHandleId] ); + }, + + /** + * Returns the DragDrop instance for a given id + * @method getDDById + * @param {String} id the id of the DragDrop object + * @return {DragDrop} the drag drop object, null if it is not found + * @static + */ + getDDById: function(id) { + for (var i in this.ids) { + if (this.ids[i][id]) { + return this.ids[i][id]; + } + } + return null; + }, + + /** + * Fired after a registered DragDrop object gets the mousedown event. + * Sets up the events required to track the object being dragged + * @method handleMouseDown + * @param {Event} e the event + * @param oDD the DragDrop object being dragged + * @private + * @static + */ + handleMouseDown: function(e, oDD) { + + this.currentTarget = YAHOO.util.Event.getTarget(e); + + this.logger.log("mousedown - adding event handlers"); + this.dragCurrent = oDD; + + var el = oDD.getEl(); + + // track start position + this.startX = YAHOO.util.Event.getPageX(e); + this.startY = YAHOO.util.Event.getPageY(e); + + this.deltaX = this.startX - el.offsetLeft; + this.deltaY = this.startY - el.offsetTop; + + this.dragThreshMet = false; + + this.clickTimeout = setTimeout( + function() { + var DDM = YAHOO.util.DDM; + DDM.startDrag(DDM.startX, DDM.startY); + }, + this.clickTimeThresh ); + }, + + /** + * Fired when either the drag pixel threshol or the mousedown hold + * time threshold has been met. + * @method startDrag + * @param x {int} the X position of the original mousedown + * @param y {int} the Y position of the original mousedown + * @static + */ + startDrag: function(x, y) { + this.logger.log("firing drag start events"); + clearTimeout(this.clickTimeout); + if (this.dragCurrent) { + this.dragCurrent.b4StartDrag(x, y); + this.dragCurrent.startDrag(x, y); + } + this.dragThreshMet = true; + }, + + /** + * Internal function to handle the mouseup event. Will be invoked + * from the context of the document. + * @method handleMouseUp + * @param {Event} e the event + * @private + * @static + */ + handleMouseUp: function(e) { + + if (! this.dragCurrent) { + return; + } + + clearTimeout(this.clickTimeout); + + if (this.dragThreshMet) { + this.logger.log("mouseup detected - completing drag"); + this.fireEvents(e, true); + } else { + this.logger.log("drag threshold not met"); + } + + this.stopDrag(e); + + this.stopEvent(e); + }, + + /** + * Utility to stop event propagation and event default, if these + * features are turned on. + * @method stopEvent + * @param {Event} e the event as returned by this.getEvent() + * @static + */ + stopEvent: function(e) { + if (this.stopPropagation) { + YAHOO.util.Event.stopPropagation(e); + } + + if (this.preventDefault) { + YAHOO.util.Event.preventDefault(e); + } + }, + + /** + * Internal function to clean up event handlers after the drag + * operation is complete + * @method stopDrag + * @param {Event} e the event + * @private + * @static + */ + stopDrag: function(e) { + // this.logger.log("mouseup - removing event handlers"); + + // Fire the drag end event for the item that was dragged + if (this.dragCurrent) { + if (this.dragThreshMet) { + this.logger.log("firing endDrag events"); + this.dragCurrent.b4EndDrag(e); + this.dragCurrent.endDrag(e); + } + + this.logger.log("firing mouseUp event"); + this.dragCurrent.onMouseUp(e); + } + + this.dragCurrent = null; + this.dragOvers = {}; + }, + + + /** + * Internal function to handle the mousemove event. Will be invoked + * from the context of the html element. + * + * @TODO figure out what we can do about mouse events lost when the + * user drags objects beyond the window boundary. Currently we can + * detect this in internet explorer by verifying that the mouse is + * down during the mousemove event. Firefox doesn't give us the + * button state on the mousemove event. + * @method handleMouseMove + * @param {Event} e the event + * @private + * @static + */ + handleMouseMove: function(e) { + //this.logger.log("handlemousemove"); + if (! this.dragCurrent) { + // this.logger.log("no current drag obj"); + return true; + } + + // var button = e.which || e.button; + // this.logger.log("which: " + e.which + ", button: "+ e.button); + + // check for IE mouseup outside of page boundary + if (YAHOO.util.Event.isIE && !e.button) { + this.logger.log("button failure"); + this.stopEvent(e); + return this.handleMouseUp(e); + } + + if (!this.dragThreshMet) { + var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e)); + var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e)); + // this.logger.log("diffX: " + diffX + "diffY: " + diffY); + if (diffX > this.clickPixelThresh || + diffY > this.clickPixelThresh) { + this.logger.log("pixel threshold met"); + this.startDrag(this.startX, this.startY); + } + } + + if (this.dragThreshMet) { + this.dragCurrent.b4Drag(e); + this.dragCurrent.onDrag(e); + this.fireEvents(e, false); + } + + this.stopEvent(e); + + return true; + }, + + /** + * Iterates over all of the DragDrop elements to find ones we are + * hovering over or dropping on + * @method fireEvents + * @param {Event} e the event + * @param {boolean} isDrop is this a drop op or a mouseover op? + * @private + * @static + */ + fireEvents: function(e, isDrop) { + var dc = this.dragCurrent; + + // If the user did the mouse up outside of the window, we could + // get here even though we have ended the drag. + if (!dc || dc.isLocked()) { + return; + } + + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + var pt = new YAHOO.util.Point(x,y); + + // cache the previous dragOver array + var oldOvers = []; + + var outEvts = []; + var overEvts = []; + var dropEvts = []; + var enterEvts = []; + + // Check to see if the object(s) we were hovering over is no longer + // being hovered over so we can fire the onDragOut event + for (var i in this.dragOvers) { + + var ddo = this.dragOvers[i]; + + if (! this.isTypeOfDD(ddo)) { + continue; + } + + if (! this.isOverTarget(pt, ddo, this.mode)) { + outEvts.push( ddo ); + } + + oldOvers[i] = true; + delete this.dragOvers[i]; + } + + for (var sGroup in dc.groups) { + // this.logger.log("Processing group " + sGroup); + + if ("string" != typeof sGroup) { + continue; + } + + for (i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + + if (oDD.isTarget && !oDD.isLocked() && oDD != dc) { + if (this.isOverTarget(pt, oDD, this.mode)) { + // look for drop interactions + if (isDrop) { + dropEvts.push( oDD ); + // look for drag enter and drag over interactions + } else { + + // initial drag over: dragEnter fires + if (!oldOvers[oDD.id]) { + enterEvts.push( oDD ); + // subsequent drag overs: dragOver fires + } else { + overEvts.push( oDD ); + } + + this.dragOvers[oDD.id] = oDD; + } + } + } + } + } + + if (this.mode) { + if (outEvts.length) { + this.logger.log(dc.id+" onDragOut: " + outEvts); + dc.b4DragOut(e, outEvts); + dc.onDragOut(e, outEvts); + } + + if (enterEvts.length) { + this.logger.log(dc.id+" onDragEnter: " + enterEvts); + dc.onDragEnter(e, enterEvts); + } + + if (overEvts.length) { + this.logger.log(dc.id+" onDragOver: " + overEvts); + dc.b4DragOver(e, overEvts); + dc.onDragOver(e, overEvts); + } + + if (dropEvts.length) { + this.logger.log(dc.id+" onDragDrop: " + dropEvts); + dc.b4DragDrop(e, dropEvts); + dc.onDragDrop(e, dropEvts); + } + + } else { + // fire dragout events + var len = 0; + for (i=0, len=outEvts.length; i<len; ++i) { + this.logger.log(dc.id+" onDragOut: " + outEvts[i].id); + dc.b4DragOut(e, outEvts[i].id); + dc.onDragOut(e, outEvts[i].id); + } + + // fire enter events + for (i=0,len=enterEvts.length; i<len; ++i) { + this.logger.log(dc.id + " onDragEnter " + enterEvts[i].id); + // dc.b4DragEnter(e, oDD.id); + dc.onDragEnter(e, enterEvts[i].id); + } + + // fire over events + for (i=0,len=overEvts.length; i<len; ++i) { + this.logger.log(dc.id + " onDragOver " + overEvts[i].id); + dc.b4DragOver(e, overEvts[i].id); + dc.onDragOver(e, overEvts[i].id); + } + + // fire drop events + for (i=0, len=dropEvts.length; i<len; ++i) { + this.logger.log(dc.id + " dropped on " + dropEvts[i].id); + dc.b4DragDrop(e, dropEvts[i].id); + dc.onDragDrop(e, dropEvts[i].id); + } + + } + + // notify about a drop that did not find a target + if (isDrop && !dropEvts.length) { + this.logger.log(dc.id + " dropped, but not on a target"); + dc.onInvalidDrop(e); + } + + }, + + /** + * Helper function for getting the best match from the list of drag + * and drop objects returned by the drag and drop events when we are + * in INTERSECT mode. It returns either the first object that the + * cursor is over, or the object that has the greatest overlap with + * the dragged element. + * @method getBestMatch + * @param {DragDrop[]} dds The array of drag and drop objects + * targeted + * @return {DragDrop} The best single match + * @static + */ + getBestMatch: function(dds) { + var winner = null; + + var len = dds.length; + + if (len == 1) { + winner = dds[0]; + } else { + // Loop through the targeted items + for (var i=0; i<len; ++i) { + var dd = dds[i]; + // If the cursor is over the object, it wins. If the + // cursor is over multiple matches, the first one we come + // to wins. + if (this.mode == this.INTERSECT && dd.cursorIsOver) { + winner = dd; + break; + // Otherwise the object with the most overlap wins + } else { + if (!winner || !winner.overlap || (dd.overlap && + winner.overlap.getArea() < dd.overlap.getArea())) { + winner = dd; + } + } + } + } + + return winner; + }, + + /** + * Refreshes the cache of the top-left and bottom-right points of the + * drag and drop objects in the specified group(s). This is in the + * format that is stored in the drag and drop instance, so typical + * usage is: + * <code> + * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups); + * </code> + * Alternatively: + * <code> + * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true}); + * </code> + * @TODO this really should be an indexed array. Alternatively this + * method could accept both. + * @method refreshCache + * @param {Object} groups an associative array of groups to refresh + * @static + */ + refreshCache: function(groups) { + this.logger.log("refreshing element location cache"); + + // refresh everything if group array is not provided + var g = groups || this.ids; + + for (var sGroup in g) { + if ("string" != typeof sGroup) { + continue; + } + for (var i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + + if (this.isTypeOfDD(oDD)) { + var loc = this.getLocation(oDD); + if (loc) { + this.locationCache[oDD.id] = loc; + } else { + delete this.locationCache[oDD.id]; +this.logger.log("Could not get the loc for " + oDD.id, "warn"); + } + } + } + } + }, + + /** + * This checks to make sure an element exists and is in the DOM. The + * main purpose is to handle cases where innerHTML is used to remove + * drag and drop objects from the DOM. IE provides an 'unspecified + * error' when trying to access the offsetParent of such an element + * @method verifyEl + * @param {HTMLElement} el the element to check + * @return {boolean} true if the element looks usable + * @static + */ + verifyEl: function(el) { + try { + if (el) { + var parent = el.offsetParent; + if (parent) { + return true; + } + } + } catch(e) { + this.logger.log("detected problem with an element"); + } + + return false; + }, + + /** + * Returns a Region object containing the drag and drop element's position + * and size, including the padding configured for it + * @method getLocation + * @param {DragDrop} oDD the drag and drop object to get the + * location for + * @return {YAHOO.util.Region} a Region object representing the total area + * the element occupies, including any padding + * the instance is configured for. + * @static + */ + getLocation: function(oDD) { + if (! this.isTypeOfDD(oDD)) { + this.logger.log(oDD + " is not a DD obj"); + return null; + } + + var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l; + + try { + pos= YAHOO.util.Dom.getXY(el); + } catch (e) { } + + if (!pos) { + this.logger.log("getXY failed"); + return null; + } + + x1 = pos[0]; + x2 = x1 + el.offsetWidth; + y1 = pos[1]; + y2 = y1 + el.offsetHeight; + + t = y1 - oDD.padding[0]; + r = x2 + oDD.padding[1]; + b = y2 + oDD.padding[2]; + l = x1 - oDD.padding[3]; + + return new YAHOO.util.Region( t, r, b, l ); + }, + + /** + * Checks the cursor location to see if it over the target + * @method isOverTarget + * @param {YAHOO.util.Point} pt The point to evaluate + * @param {DragDrop} oTarget the DragDrop object we are inspecting + * @return {boolean} true if the mouse is over the target + * @private + * @static + */ + isOverTarget: function(pt, oTarget, intersect) { + // use cache if available + var loc = this.locationCache[oTarget.id]; + if (!loc || !this.useCache) { + this.logger.log("cache not populated"); + loc = this.getLocation(oTarget); + this.locationCache[oTarget.id] = loc; + + this.logger.log("cache: " + loc); + } + + if (!loc) { + this.logger.log("could not get the location of the element"); + return false; + } + + //this.logger.log("loc: " + loc + ", pt: " + pt); + oTarget.cursorIsOver = loc.contains( pt ); + + // DragDrop is using this as a sanity check for the initial mousedown + // in this case we are done. In POINT mode, if the drag obj has no + // contraints, we are done. Otherwise we need to evaluate the + // region the target as occupies to determine if the dragged element + // overlaps with it. + + var dc = this.dragCurrent; + if (!dc || !dc.getTargetCoord || + (!intersect && !dc.constrainX && !dc.constrainY)) { + + //if (oTarget.cursorIsOver) { + //this.logger.log("over " + oTarget + ", " + loc + ", " + pt, "warn"); + //} + return oTarget.cursorIsOver; + } + + oTarget.overlap = null; + + // Get the current location of the drag element, this is the + // location of the mouse event less the delta that represents + // where the original mousedown happened on the element. We + // need to consider constraints and ticks as well. + var pos = dc.getTargetCoord(pt.x, pt.y); + + var el = dc.getDragEl(); + var curRegion = new YAHOO.util.Region( pos.y, + pos.x + el.offsetWidth, + pos.y + el.offsetHeight, + pos.x ); + + var overlap = curRegion.intersect(loc); + + if (overlap) { + oTarget.overlap = overlap; + return (intersect) ? true : oTarget.cursorIsOver; + } else { + return false; + } + }, + + /** + * unload event handler + * @method _onUnload + * @private + * @static + */ + _onUnload: function(e, me) { + this.unregAll(); + }, + + /** + * Cleans up the drag and drop events and objects. + * @method unregAll + * @private + * @static + */ + unregAll: function() { + this.logger.log("unregister all"); + + if (this.dragCurrent) { + this.stopDrag(); + this.dragCurrent = null; + } + + this._execOnAll("unreg", []); + + for (i in this.elementCache) { + delete this.elementCache[i]; + } + + this.elementCache = {}; + this.ids = {}; + }, + + /** + * A cache of DOM elements + * @property elementCache + * @private + * @static + */ + elementCache: {}, + + /** + * Get the wrapper for the DOM element specified + * @method getElWrapper + * @param {String} id the id of the element to get + * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element + * @private + * @deprecated This wrapper isn't that useful + * @static + */ + getElWrapper: function(id) { + var oWrapper = this.elementCache[id]; + if (!oWrapper || !oWrapper.el) { + oWrapper = this.elementCache[id] = + new this.ElementWrapper(YAHOO.util.Dom.get(id)); + } + return oWrapper; + }, + + /** + * Returns the actual DOM element + * @method getElement + * @param {String} id the id of the elment to get + * @return {Object} The element + * @deprecated use YAHOO.util.Dom.get instead + * @static + */ + getElement: function(id) { + return YAHOO.util.Dom.get(id); + }, + + /** + * Returns the style property for the DOM element (i.e., + * document.getElById(id).style) + * @method getCss + * @param {String} id the id of the elment to get + * @return {Object} The style property of the element + * @deprecated use YAHOO.util.Dom instead + * @static + */ + getCss: function(id) { + var el = YAHOO.util.Dom.get(id); + return (el) ? el.style : null; + }, + + /** + * Inner class for cached elements + * @class DragDropMgr.ElementWrapper + * @for DragDropMgr + * @private + * @deprecated + */ + ElementWrapper: function(el) { + /** + * The element + * @property el + */ + this.el = el || null; + /** + * The element id + * @property id + */ + this.id = this.el && el.id; + /** + * A reference to the style property + * @property css + */ + this.css = this.el && el.style; + }, + + /** + * Returns the X position of an html element + * @method getPosX + * @param el the element for which to get the position + * @return {int} the X coordinate + * @for DragDropMgr + * @deprecated use YAHOO.util.Dom.getX instead + * @static + */ + getPosX: function(el) { + return YAHOO.util.Dom.getX(el); + }, + + /** + * Returns the Y position of an html element + * @method getPosY + * @param el the element for which to get the position + * @return {int} the Y coordinate + * @deprecated use YAHOO.util.Dom.getY instead + * @static + */ + getPosY: function(el) { + return YAHOO.util.Dom.getY(el); + }, + + /** + * Swap two nodes. In IE, we use the native method, for others we + * emulate the IE behavior + * @method swapNode + * @param n1 the first node to swap + * @param n2 the other node to swap + * @static + */ + swapNode: function(n1, n2) { + if (n1.swapNode) { + n1.swapNode(n2); + } else { + var p = n2.parentNode; + var s = n2.nextSibling; + + if (s == n1) { + p.insertBefore(n1, n2); + } else if (n2 == n1.nextSibling) { + p.insertBefore(n2, n1); + } else { + n1.parentNode.replaceChild(n2, n1); + p.insertBefore(n1, s); + } + } + }, + + /** + * Returns the current scroll position + * @method getScroll + * @private + * @static + */ + getScroll: function () { + var t, l, dde=document.documentElement, db=document.body; + if (dde && (dde.scrollTop || dde.scrollLeft)) { + t = dde.scrollTop; + l = dde.scrollLeft; + } else if (db) { + t = db.scrollTop; + l = db.scrollLeft; + } else { + YAHOO.log("could not get scroll property"); + } + return { top: t, left: l }; + }, + + /** + * Returns the specified element style property + * @method getStyle + * @param {HTMLElement} el the element + * @param {string} styleProp the style property + * @return {string} The value of the style property + * @deprecated use YAHOO.util.Dom.getStyle + * @static + */ + getStyle: function(el, styleProp) { + return YAHOO.util.Dom.getStyle(el, styleProp); + }, + + /** + * Gets the scrollTop + * @method getScrollTop + * @return {int} the document's scrollTop + * @static + */ + getScrollTop: function () { return this.getScroll().top; }, + + /** + * Gets the scrollLeft + * @method getScrollLeft + * @return {int} the document's scrollTop + * @static + */ + getScrollLeft: function () { return this.getScroll().left; }, + + /** + * Sets the x/y position of an element to the location of the + * target element. + * @method moveToEl + * @param {HTMLElement} moveEl The element to move + * @param {HTMLElement} targetEl The position reference element + * @static + */ + moveToEl: function (moveEl, targetEl) { + var aCoord = YAHOO.util.Dom.getXY(targetEl); + this.logger.log("moveToEl: " + aCoord); + YAHOO.util.Dom.setXY(moveEl, aCoord); + }, + + /** + * Gets the client height + * @method getClientHeight + * @return {int} client height in px + * @deprecated use YAHOO.util.Dom.getViewportHeight instead + * @static + */ + getClientHeight: function() { + return YAHOO.util.Dom.getViewportHeight(); + }, + + /** + * Gets the client width + * @method getClientWidth + * @return {int} client width in px + * @deprecated use YAHOO.util.Dom.getViewportWidth instead + * @static + */ + getClientWidth: function() { + return YAHOO.util.Dom.getViewportWidth(); + }, + + /** + * Numeric array sort function + * @method numericSort + * @static + */ + numericSort: function(a, b) { return (a - b); }, + + /** + * Internal counter + * @property _timeoutCount + * @private + * @static + */ + _timeoutCount: 0, + + /** + * Trying to make the load order less important. Without this we get + * an error if this file is loaded before the Event Utility. + * @method _addListeners + * @private + * @static + */ + _addListeners: function() { + var DDM = YAHOO.util.DDM; + if ( YAHOO.util.Event && document ) { + DDM._onLoad(); + } else { + if (DDM._timeoutCount > 2000) { + DDM.logger.log("DragDrop requires the Event Utility"); + } else { + setTimeout(DDM._addListeners, 10); + if (document && document.body) { + DDM._timeoutCount += 1; + } + } + } + }, + + /** + * Recursively searches the immediate parent and all child nodes for + * the handle element in order to determine wheter or not it was + * clicked. + * @method handleWasClicked + * @param node the html element to inspect + * @static + */ + handleWasClicked: function(node, id) { + if (this.isHandle(id, node.id)) { + this.logger.log("clicked node is a handle"); + return true; + } else { + // check to see if this is a text node child of the one we want + var p = node.parentNode; + // this.logger.log("p: " + p); + + while (p) { + if (this.isHandle(id, p.id)) { + return true; + } else { + this.logger.log(p.id + " is not a handle"); + p = p.parentNode; + } + } + } + + return false; + } + + }; + +}(); + +// shorter alias, save a few bytes +YAHOO.util.DDM = YAHOO.util.DragDropMgr; +YAHOO.util.DDM._addListeners(); + +} + +(function() { + +var Event=YAHOO.util.Event; +var Dom=YAHOO.util.Dom; + +/** + * Defines the interface and base operation of items that that can be + * dragged or can be drop targets. It was designed to be extended, overriding + * the event handlers for startDrag, onDrag, onDragOver, onDragOut. + * Up to three html elements can be associated with a DragDrop instance: + * <ul> + * <li>linked element: the element that is passed into the constructor. + * This is the element which defines the boundaries for interaction with + * other DragDrop objects.</li> + * <li>handle element(s): The drag operation only occurs if the element that + * was clicked matches a handle element. By default this is the linked + * element, but there are times that you will want only a portion of the + * linked element to initiate the drag operation, and the setHandleElId() + * method provides a way to define this.</li> + * <li>drag element: this represents an the element that would be moved along + * with the cursor during a drag operation. By default, this is the linked + * element itself as in {@link YAHOO.util.DD}. setDragElId() lets you define + * a separate element that would be moved, as in {@link YAHOO.util.DDProxy} + * </li> + * </ul> + * This class should not be instantiated until the onload event to ensure that + * the associated elements are available. + * The following would define a DragDrop obj that would interact with any + * other DragDrop obj in the "group1" group: + * <pre> + * dd = new YAHOO.util.DragDrop("div1", "group1"); + * </pre> + * Since none of the event handlers have been implemented, nothing would + * actually happen if you were to run the code above. Normally you would + * override this class or one of the default implementations, but you can + * also override the methods you want on an instance of the class... + * <pre> + * dd.onDragDrop = function(e, id) { + * alert("dd was dropped on " + id); + * } + * </pre> + * @namespace YAHOO.util + * @class DragDrop + * @constructor + * @param {String} id of the element that is linked to this instance + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DragDrop: + * padding, isTarget, maintainOffset, primaryButtonOnly, + */ +YAHOO.util.DragDrop = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}; + +YAHOO.util.DragDrop.prototype = { + + /** + * The id of the element associated with this object. This is what we + * refer to as the "linked element" because the size and position of + * this element is used to determine when the drag and drop objects have + * interacted. + * @property id + * @type String + */ + id: null, + + /** + * Configuration attributes passed into the constructor + * @property config + * @type object + */ + config: null, + + /** + * The id of the element that will be dragged. By default this is same + * as the linked element , but could be changed to another element. Ex: + * YAHOO.util.DDProxy + * @property dragElId + * @type String + * @private + */ + dragElId: null, + + /** + * the id of the element that initiates the drag operation. By default + * this is the linked element, but could be changed to be a child of this + * element. This lets us do things like only starting the drag when the + * header element within the linked html element is clicked. + * @property handleElId + * @type String + * @private + */ + handleElId: null, + + /** + * An associative array of HTML tags that will be ignored if clicked. + * @property invalidHandleTypes + * @type {string: string} + */ + invalidHandleTypes: null, + + /** + * An associative array of ids for elements that will be ignored if clicked + * @property invalidHandleIds + * @type {string: string} + */ + invalidHandleIds: null, + + /** + * An indexted array of css class names for elements that will be ignored + * if clicked. + * @property invalidHandleClasses + * @type string[] + */ + invalidHandleClasses: null, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageX + * @type int + * @private + */ + startPageX: 0, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageY + * @type int + * @private + */ + startPageY: 0, + + /** + * The group defines a logical collection of DragDrop objects that are + * related. Instances only get events when interacting with other + * DragDrop object in the same group. This lets us define multiple + * groups using a single DragDrop subclass if we want. + * @property groups + * @type {string: string} + */ + groups: null, + + /** + * Individual drag/drop instances can be locked. This will prevent + * onmousedown start drag. + * @property locked + * @type boolean + * @private + */ + locked: false, + + /** + * Lock this instance + * @method lock + */ + lock: function() { this.locked = true; }, + + /** + * Unlock this instace + * @method unlock + */ + unlock: function() { this.locked = false; }, + + /** + * By default, all insances can be a drop target. This can be disabled by + * setting isTarget to false. + * @method isTarget + * @type boolean + */ + isTarget: true, + + /** + * The padding configured for this drag and drop object for calculating + * the drop zone intersection with this object. + * @method padding + * @type int[] + */ + padding: null, + + /** + * Cached reference to the linked element + * @property _domRef + * @private + */ + _domRef: null, + + /** + * Internal typeof flag + * @property __ygDragDrop + * @private + */ + __ygDragDrop: true, + + /** + * Set to true when horizontal contraints are applied + * @property constrainX + * @type boolean + * @private + */ + constrainX: false, + + /** + * Set to true when vertical contraints are applied + * @property constrainY + * @type boolean + * @private + */ + constrainY: false, + + /** + * The left constraint + * @property minX + * @type int + * @private + */ + minX: 0, + + /** + * The right constraint + * @property maxX + * @type int + * @private + */ + maxX: 0, + + /** + * The up constraint + * @property minY + * @type int + * @type int + * @private + */ + minY: 0, + + /** + * The down constraint + * @property maxY + * @type int + * @private + */ + maxY: 0, + + /** + * Maintain offsets when we resetconstraints. Set to true when you want + * the position of the element relative to its parent to stay the same + * when the page changes + * + * @property maintainOffset + * @type boolean + */ + maintainOffset: false, + + /** + * Array of pixel locations the element will snap to if we specified a + * horizontal graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property xTicks + * @type int[] + */ + xTicks: null, + + /** + * Array of pixel locations the element will snap to if we specified a + * vertical graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property yTicks + * @type int[] + */ + yTicks: null, + + /** + * By default the drag and drop instance will only respond to the primary + * button click (left button for a right-handed mouse). Set to true to + * allow drag and drop to start with any mouse click that is propogated + * by the browser + * @property primaryButtonOnly + * @type boolean + */ + primaryButtonOnly: true, + + /** + * The availabe property is false until the linked dom element is accessible. + * @property available + * @type boolean + */ + available: false, + + /** + * By default, drags can only be initiated if the mousedown occurs in the + * region the linked element is. This is done in part to work around a + * bug in some browsers that mis-report the mousedown if the previous + * mouseup happened outside of the window. This property is set to true + * if outer handles are defined. + * + * @property hasOuterHandles + * @type boolean + * @default false + */ + hasOuterHandles: false, + + /** + * Code that executes immediately before the startDrag event + * @method b4StartDrag + * @private + */ + b4StartDrag: function(x, y) { }, + + /** + * Abstract method called after a drag/drop object is clicked + * and the drag or mousedown time thresholds have beeen met. + * @method startDrag + * @param {int} X click location + * @param {int} Y click location + */ + startDrag: function(x, y) { /* override this */ }, + + /** + * Code that executes immediately before the onDrag event + * @method b4Drag + * @private + */ + b4Drag: function(e) { }, + + /** + * Abstract method called during the onMouseMove event while dragging an + * object. + * @method onDrag + * @param {Event} e the mousemove event + */ + onDrag: function(e) { /* override this */ }, + + /** + * Abstract method called when this element fist begins hovering over + * another DragDrop obj + * @method onDragEnter + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of one or more + * dragdrop items being hovered over. + */ + onDragEnter: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOver event + * @method b4DragOver + * @private + */ + b4DragOver: function(e) { }, + + /** + * Abstract method called when this element is hovering over another + * DragDrop obj + * @method onDragOver + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of dd items + * being hovered over. + */ + onDragOver: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOut event + * @method b4DragOut + * @private + */ + b4DragOut: function(e) { }, + + /** + * Abstract method called when we are no longer hovering over an element + * @method onDragOut + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was hovering over. In INTERSECT mode, an array of dd items + * that the mouse is no longer over. + */ + onDragOut: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragDrop event + * @method b4DragDrop + * @private + */ + b4DragDrop: function(e) { }, + + /** + * Abstract method called when this item is dropped on another DragDrop + * obj + * @method onDragDrop + * @param {Event} e the mouseup event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was dropped on. In INTERSECT mode, an array of dd items this + * was dropped on. + */ + onDragDrop: function(e, id) { /* override this */ }, + + /** + * Abstract method called when this item is dropped on an area with no + * drop target + * @method onInvalidDrop + * @param {Event} e the mouseup event + */ + onInvalidDrop: function(e) { /* override this */ }, + + /** + * Code that executes immediately before the endDrag event + * @method b4EndDrag + * @private + */ + b4EndDrag: function(e) { }, + + /** + * Fired when we are done dragging the object + * @method endDrag + * @param {Event} e the mouseup event + */ + endDrag: function(e) { /* override this */ }, + + /** + * Code executed immediately before the onMouseDown event + * @method b4MouseDown + * @param {Event} e the mousedown event + * @private + */ + b4MouseDown: function(e) { }, + + /** + * Event handler that fires when a drag/drop obj gets a mousedown + * @method onMouseDown + * @param {Event} e the mousedown event + */ + onMouseDown: function(e) { /* override this */ }, + + /** + * Event handler that fires when a drag/drop obj gets a mouseup + * @method onMouseUp + * @param {Event} e the mouseup event + */ + onMouseUp: function(e) { /* override this */ }, + + /** + * Override the onAvailable method to do what is needed after the initial + * position was determined. + * @method onAvailable + */ + onAvailable: function () { + this.logger.log("onAvailable (base)"); + }, + + /** + * Returns a reference to the linked element + * @method getEl + * @return {HTMLElement} the html element + */ + getEl: function() { + if (!this._domRef) { + this._domRef = Dom.get(this.id); + } + + return this._domRef; + }, + + /** + * Returns a reference to the actual element to drag. By default this is + * the same as the html element, but it can be assigned to another + * element. An example of this can be found in YAHOO.util.DDProxy + * @method getDragEl + * @return {HTMLElement} the html element + */ + getDragEl: function() { + return Dom.get(this.dragElId); + }, + + /** + * Sets up the DragDrop object. Must be called in the constructor of any + * YAHOO.util.DragDrop subclass + * @method init + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + init: function(id, sGroup, config) { + this.initTarget(id, sGroup, config); + Event.on(this.id, "mousedown", this.handleMouseDown, this, true); + // Event.on(this.id, "selectstart", Event.preventDefault); + }, + + /** + * Initializes Targeting functionality only... the object does not + * get a mousedown handler. + * @method initTarget + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + initTarget: function(id, sGroup, config) { + + // configuration attributes + this.config = config || {}; + + // create a local reference to the drag and drop manager + this.DDM = YAHOO.util.DDM; + // initialize the groups array + this.groups = {}; + + // assume that we have an element reference instead of an id if the + // parameter is not a string + if (typeof id !== "string") { + YAHOO.log("id is not a string, assuming it is an HTMLElement"); + id = Dom.generateId(id); + } + + // set the id + this.id = id; + + // add to an interaction group + this.addToGroup((sGroup) ? sGroup : "default"); + + // We don't want to register this as the handle with the manager + // so we just set the id rather than calling the setter. + this.handleElId = id; + + Event.onAvailable(id, this.handleOnAvailable, this, true); + + // create a logger instance + this.logger = (YAHOO.widget.LogWriter) ? + new YAHOO.widget.LogWriter(this.toString()) : YAHOO; + + // the linked element is the element that gets dragged by default + this.setDragElId(id); + + // by default, clicked anchors will not start drag operations. + // @TODO what else should be here? Probably form fields. + this.invalidHandleTypes = { A: "A" }; + this.invalidHandleIds = {}; + this.invalidHandleClasses = []; + + this.applyConfig(); + }, + + /** + * Applies the configuration parameters that were passed into the constructor. + * This is supposed to happen at each level through the inheritance chain. So + * a DDProxy implentation will execute apply config on DDProxy, DD, and + * DragDrop in order to get all of the parameters that are available in + * each object. + * @method applyConfig + */ + applyConfig: function() { + + // configurable properties: + // padding, isTarget, maintainOffset, primaryButtonOnly + this.padding = this.config.padding || [0, 0, 0, 0]; + this.isTarget = (this.config.isTarget !== false); + this.maintainOffset = (this.config.maintainOffset); + this.primaryButtonOnly = (this.config.primaryButtonOnly !== false); + + }, + + /** + * Executed when the linked element is available + * @method handleOnAvailable + * @private + */ + handleOnAvailable: function() { + this.logger.log("handleOnAvailable"); + this.available = true; + this.resetConstraints(); + this.onAvailable(); + }, + + /** + * Configures the padding for the target zone in px. Effectively expands + * (or reduces) the virtual object size for targeting calculations. + * Supports css-style shorthand; if only one parameter is passed, all sides + * will have that padding, and if only two are passed, the top and bottom + * will have the first param, the left and right the second. + * @method setPadding + * @param {int} iTop Top pad + * @param {int} iRight Right pad + * @param {int} iBot Bot pad + * @param {int} iLeft Left pad + */ + setPadding: function(iTop, iRight, iBot, iLeft) { + // this.padding = [iLeft, iRight, iTop, iBot]; + if (!iRight && 0 !== iRight) { + this.padding = [iTop, iTop, iTop, iTop]; + } else if (!iBot && 0 !== iBot) { + this.padding = [iTop, iRight, iTop, iRight]; + } else { + this.padding = [iTop, iRight, iBot, iLeft]; + } + }, + + /** + * Stores the initial placement of the linked element. + * @method setInitialPosition + * @param {int} diffX the X offset, default 0 + * @param {int} diffY the Y offset, default 0 + */ + setInitPosition: function(diffX, diffY) { + var el = this.getEl(); + + if (!this.DDM.verifyEl(el)) { + this.logger.log(this.id + " element is broken"); + return; + } + + var dx = diffX || 0; + var dy = diffY || 0; + + var p = Dom.getXY( el ); + + this.initPageX = p[0] - dx; + this.initPageY = p[1] - dy; + + this.lastPageX = p[0]; + this.lastPageY = p[1]; + + this.logger.log(this.id + " inital position: " + this.initPageX + + ", " + this.initPageY); + + + this.setStartPosition(p); + }, + + /** + * Sets the start position of the element. This is set when the obj + * is initialized, the reset when a drag is started. + * @method setStartPosition + * @param pos current position (from previous lookup) + * @private + */ + setStartPosition: function(pos) { + var p = pos || Dom.getXY( this.getEl() ); + + this.deltaSetXY = null; + + this.startPageX = p[0]; + this.startPageY = p[1]; + }, + + /** + * Add this instance to a group of related drag/drop objects. All + * instances belong to at least one group, and can belong to as many + * groups as needed. + * @method addToGroup + * @param sGroup {string} the name of the group + */ + addToGroup: function(sGroup) { + this.groups[sGroup] = true; + this.DDM.regDragDrop(this, sGroup); + }, + + /** + * Remove's this instance from the supplied interaction group + * @method removeFromGroup + * @param {string} sGroup The group to drop + */ + removeFromGroup: function(sGroup) { + this.logger.log("Removing from group: " + sGroup); + if (this.groups[sGroup]) { + delete this.groups[sGroup]; + } + + this.DDM.removeDDFromGroup(this, sGroup); + }, + + /** + * Allows you to specify that an element other than the linked element + * will be moved with the cursor during a drag + * @method setDragElId + * @param id {string} the id of the element that will be used to initiate the drag + */ + setDragElId: function(id) { + this.dragElId = id; + }, + + /** + * Allows you to specify a child of the linked element that should be + * used to initiate the drag operation. An example of this would be if + * you have a content div with text and links. Clicking anywhere in the + * content area would normally start the drag operation. Use this method + * to specify that an element inside of the content div is the element + * that starts the drag operation. + * @method setHandleElId + * @param id {string} the id of the element that will be used to + * initiate the drag. + */ + setHandleElId: function(id) { + if (typeof id !== "string") { + YAHOO.log("id is not a string, assuming it is an HTMLElement"); + id = Dom.generateId(id); + } + this.handleElId = id; + this.DDM.regHandle(this.id, id); + }, + + /** + * Allows you to set an element outside of the linked element as a drag + * handle + * @method setOuterHandleElId + * @param id the id of the element that will be used to initiate the drag + */ + setOuterHandleElId: function(id) { + if (typeof id !== "string") { + YAHOO.log("id is not a string, assuming it is an HTMLElement"); + id = Dom.generateId(id); + } + this.logger.log("Adding outer handle event: " + id); + Event.on(id, "mousedown", + this.handleMouseDown, this, true); + this.setHandleElId(id); + + this.hasOuterHandles = true; + }, + + /** + * Remove all drag and drop hooks for this element + * @method unreg + */ + unreg: function() { + this.logger.log("DragDrop obj cleanup " + this.id); + Event.removeListener(this.id, "mousedown", + this.handleMouseDown); + this._domRef = null; + this.DDM._remove(this); + }, + + /** + * Returns true if this instance is locked, or the drag drop mgr is locked + * (meaning that all drag/drop is disabled on the page.) + * @method isLocked + * @return {boolean} true if this obj or all drag/drop is locked, else + * false + */ + isLocked: function() { + return (this.DDM.isLocked() || this.locked); + }, + + /** + * Fired when this object is clicked + * @method handleMouseDown + * @param {Event} e + * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj) + * @private + */ + handleMouseDown: function(e, oDD) { + + var button = e.which || e.button; + this.logger.log("button: " + button); + + if (this.primaryButtonOnly && button > 1) { + this.logger.log("Mousedown was not produced by the primary button"); + return; + } + + if (this.isLocked()) { + this.logger.log("Drag and drop is disabled, aborting"); + return; + } + + this.logger.log("mousedown " + this.id); + + this.logger.log("firing onMouseDown events"); + + // firing the mousedown events prior to calculating positions + this.b4MouseDown(e); + this.onMouseDown(e); + + this.DDM.refreshCache(this.groups); + // var self = this; + // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0); + + // Only process the event if we really clicked within the linked + // element. The reason we make this check is that in the case that + // another element was moved between the clicked element and the + // cursor in the time between the mousedown and mouseup events. When + // this happens, the element gets the next mousedown event + // regardless of where on the screen it happened. + var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e)); + if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) { + this.logger.log("Click was not over the element: " + this.id); + } else { + if (this.clickValidator(e)) { + + this.logger.log("click was a valid handle"); + + // set the initial element position + this.setStartPosition(); + + // start tracking mousemove distance and mousedown time to + // determine when to start the actual drag + this.DDM.handleMouseDown(e, this); + + // this mousedown is mine + this.DDM.stopEvent(e); + } else { + +this.logger.log("clickValidator returned false, drag not initiated"); + + } + } + }, + + clickValidator: function(e) { + var target = Event.getTarget(e); + return ( this.isValidHandleChild(target) && + (this.id == this.handleElId || + this.DDM.handleWasClicked(target, this.id)) ); + }, + + /** + * Allows you to specify a tag name that should not start a drag operation + * when clicked. This is designed to facilitate embedding links within a + * drag handle that do something other than start the drag. + * @method addInvalidHandleType + * @param {string} tagName the type of element to exclude + */ + addInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + this.invalidHandleTypes[type] = type; + }, + + /** + * Lets you to specify an element id for a child of a drag handle + * that should not initiate a drag + * @method addInvalidHandleId + * @param {string} id the element id of the element you wish to ignore + */ + addInvalidHandleId: function(id) { + if (typeof id !== "string") { + YAHOO.log("id is not a string, assuming it is an HTMLElement"); + id = Dom.generateId(id); + } + this.invalidHandleIds[id] = id; + }, + + + /** + * Lets you specify a css class of elements that will not initiate a drag + * @method addInvalidHandleClass + * @param {string} cssClass the class of the elements you wish to ignore + */ + addInvalidHandleClass: function(cssClass) { + this.invalidHandleClasses.push(cssClass); + }, + + /** + * Unsets an excluded tag name set by addInvalidHandleType + * @method removeInvalidHandleType + * @param {string} tagName the type of element to unexclude + */ + removeInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + // this.invalidHandleTypes[type] = null; + delete this.invalidHandleTypes[type]; + }, + + /** + * Unsets an invalid handle id + * @method removeInvalidHandleId + * @param {string} id the id of the element to re-enable + */ + removeInvalidHandleId: function(id) { + if (typeof id !== "string") { + YAHOO.log("id is not a string, assuming it is an HTMLElement"); + id = Dom.generateId(id); + } + delete this.invalidHandleIds[id]; + }, + + /** + * Unsets an invalid css class + * @method removeInvalidHandleClass + * @param {string} cssClass the class of the element(s) you wish to + * re-enable + */ + removeInvalidHandleClass: function(cssClass) { + for (var i=0, len=this.invalidHandleClasses.length; i<len; ++i) { + if (this.invalidHandleClasses[i] == cssClass) { + delete this.invalidHandleClasses[i]; + } + } + }, + + /** + * Checks the tag exclusion list to see if this click should be ignored + * @method isValidHandleChild + * @param {HTMLElement} node the HTMLElement to evaluate + * @return {boolean} true if this is a valid tag type, false if not + */ + isValidHandleChild: function(node) { + + var valid = true; + // var n = (node.nodeName == "#text") ? node.parentNode : node; + var nodeName; + try { + nodeName = node.nodeName.toUpperCase(); + } catch(e) { + nodeName = node.nodeName; + } + valid = valid && !this.invalidHandleTypes[nodeName]; + valid = valid && !this.invalidHandleIds[node.id]; + + for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) { + valid = !Dom.hasClass(node, this.invalidHandleClasses[i]); + } + + this.logger.log("Valid handle? ... " + valid); + + return valid; + + }, + + /** + * Create the array of horizontal tick marks if an interval was specified + * in setXConstraint(). + * @method setXTicks + * @private + */ + setXTicks: function(iStartX, iTickSize) { + this.xTicks = []; + this.xTickSize = iTickSize; + + var tickMap = {}; + + for (var i = this.initPageX; i >= this.minX; i = i - iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + this.xTicks.sort(this.DDM.numericSort) ; + this.logger.log("xTicks: " + this.xTicks.join()); + }, + + /** + * Create the array of vertical tick marks if an interval was specified in + * setYConstraint(). + * @method setYTicks + * @private + */ + setYTicks: function(iStartY, iTickSize) { + // this.logger.log("setYTicks: " + iStartY + ", " + iTickSize + // + ", " + this.initPageY + ", " + this.minY + ", " + this.maxY ); + this.yTicks = []; + this.yTickSize = iTickSize; + + var tickMap = {}; + + for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + this.yTicks.sort(this.DDM.numericSort) ; + this.logger.log("yTicks: " + this.yTicks.join()); + }, + + /** + * By default, the element can be dragged any place on the screen. Use + * this method to limit the horizontal travel of the element. Pass in + * 0,0 for the parameters if you want to lock the drag to the y axis. + * @method setXConstraint + * @param {int} iLeft the number of pixels the element can move to the left + * @param {int} iRight the number of pixels the element can move to the + * right + * @param {int} iTickSize optional parameter for specifying that the + * element + * should move iTickSize pixels at a time. + */ + setXConstraint: function(iLeft, iRight, iTickSize) { + this.leftConstraint = parseInt(iLeft, 10); + this.rightConstraint = parseInt(iRight, 10); + + this.minX = this.initPageX - this.leftConstraint; + this.maxX = this.initPageX + this.rightConstraint; + if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); } + + this.constrainX = true; + this.logger.log("initPageX:" + this.initPageX + " minX:" + this.minX + + " maxX:" + this.maxX); + }, + + /** + * Clears any constraints applied to this instance. Also clears ticks + * since they can't exist independent of a constraint at this time. + * @method clearConstraints + */ + clearConstraints: function() { + this.logger.log("Clearing constraints"); + this.constrainX = false; + this.constrainY = false; + this.clearTicks(); + }, + + /** + * Clears any tick interval defined for this instance + * @method clearTicks + */ + clearTicks: function() { + this.logger.log("Clearing ticks"); + this.xTicks = null; + this.yTicks = null; + this.xTickSize = 0; + this.yTickSize = 0; + }, + + /** + * By default, the element can be dragged any place on the screen. Set + * this to limit the vertical travel of the element. Pass in 0,0 for the + * parameters if you want to lock the drag to the x axis. + * @method setYConstraint + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the + * element should move iTickSize pixels at a time. + */ + setYConstraint: function(iUp, iDown, iTickSize) { + this.logger.log("setYConstraint: " + iUp + "," + iDown + "," + iTickSize); + this.topConstraint = parseInt(iUp, 10); + this.bottomConstraint = parseInt(iDown, 10); + + this.minY = this.initPageY - this.topConstraint; + this.maxY = this.initPageY + this.bottomConstraint; + if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); } + + this.constrainY = true; + + this.logger.log("initPageY:" + this.initPageY + " minY:" + this.minY + + " maxY:" + this.maxY); + }, + + /** + * resetConstraints must be called if you manually reposition a dd element. + * @method resetConstraints + * @param {boolean} maintainOffset + */ + resetConstraints: function() { + + this.logger.log("resetConstraints"); + + // Maintain offsets if necessary + if (this.initPageX || this.initPageX === 0) { + this.logger.log("init pagexy: " + this.initPageX + ", " + + this.initPageY); + this.logger.log("last pagexy: " + this.lastPageX + ", " + + this.lastPageY); + // figure out how much this thing has moved + var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0; + var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0; + + this.setInitPosition(dx, dy); + + // This is the first time we have detected the element's position + } else { + this.setInitPosition(); + } + + if (this.constrainX) { + this.setXConstraint( this.leftConstraint, + this.rightConstraint, + this.xTickSize ); + } + + if (this.constrainY) { + this.setYConstraint( this.topConstraint, + this.bottomConstraint, + this.yTickSize ); + } + }, + + /** + * Normally the drag element is moved pixel by pixel, but we can specify + * that it move a number of pixels at a time. This method resolves the + * location when we have it set up like this. + * @method getTick + * @param {int} val where we want to place the object + * @param {int[]} tickArray sorted array of valid points + * @return {int} the closest tick + * @private + */ + getTick: function(val, tickArray) { + + if (!tickArray) { + // If tick interval is not defined, it is effectively 1 pixel, + // so we return the value passed to us. + return val; + } else if (tickArray[0] >= val) { + // The value is lower than the first tick, so we return the first + // tick. + return tickArray[0]; + } else { + for (var i=0, len=tickArray.length; i<len; ++i) { + var next = i + 1; + if (tickArray[next] && tickArray[next] >= val) { + var diff1 = val - tickArray[i]; + var diff2 = tickArray[next] - val; + return (diff2 > diff1) ? tickArray[i] : tickArray[next]; + } + } + + // The value is larger than the last tick, so we return the last + // tick. + return tickArray[tickArray.length - 1]; + } + }, + + /** + * toString method + * @method toString + * @return {string} string representation of the dd obj + */ + toString: function() { + return ("DragDrop " + this.id); + } + +}; + +})(); +/** + * A DragDrop implementation where the linked element follows the + * mouse cursor during a drag. + * @class DD + * @extends YAHOO.util.DragDrop + * @constructor + * @param {String} id the id of the linked element + * @param {String} sGroup the group of related DragDrop items + * @param {object} config an object containing configurable attributes + * Valid properties for DD: + * scroll + */ +YAHOO.util.DD = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}; + +YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, { + + /** + * When set to true, the utility automatically tries to scroll the browser + * window wehn a drag and drop element is dragged near the viewport boundary. + * Defaults to true. + * @property scroll + * @type boolean + */ + scroll: true, + + /** + * Sets the pointer offset to the distance between the linked element's top + * left corner and the location the element was clicked + * @method autoOffset + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + */ + autoOffset: function(iPageX, iPageY) { + var x = iPageX - this.startPageX; + var y = iPageY - this.startPageY; + this.setDelta(x, y); + // this.logger.log("autoOffset el pos: " + aCoord + ", delta: " + x + "," + y); + }, + + /** + * Sets the pointer offset. You can call this directly to force the + * offset to be in a particular location (e.g., pass in 0,0 to set it + * to the center of the object, as done in YAHOO.widget.Slider) + * @method setDelta + * @param {int} iDeltaX the distance from the left + * @param {int} iDeltaY the distance from the top + */ + setDelta: function(iDeltaX, iDeltaY) { + this.deltaX = iDeltaX; + this.deltaY = iDeltaY; + this.logger.log("deltaX:" + this.deltaX + ", deltaY:" + this.deltaY); + }, + + /** + * Sets the drag element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method setDragElPos + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + setDragElPos: function(iPageX, iPageY) { + // the first time we do this, we are going to check to make sure + // the element has css positioning + + var el = this.getDragEl(); + this.alignElWithMouse(el, iPageX, iPageY); + }, + + /** + * Sets the element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method alignElWithMouse + * @param {HTMLElement} el the element to move + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + alignElWithMouse: function(el, iPageX, iPageY) { + var oCoord = this.getTargetCoord(iPageX, iPageY); + // this.logger.log("****alignElWithMouse : " + el.id + ", " + aCoord + ", " + el.style.display); + + if (!this.deltaSetXY) { + var aCoord = [oCoord.x, oCoord.y]; + YAHOO.util.Dom.setXY(el, aCoord); + var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ]; + } else { + YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px"); + YAHOO.util.Dom.setStyle(el, "top", (oCoord.y + this.deltaSetXY[1]) + "px"); + } + + this.cachePosition(oCoord.x, oCoord.y); + this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth); + }, + + /** + * Saves the most recent position so that we can reset the constraints and + * tick marks on-demand. We need to know this so that we can calculate the + * number of pixels the element is offset from its original position. + * @method cachePosition + * @param iPageX the current x position (optional, this just makes it so we + * don't have to look it up again) + * @param iPageY the current y position (optional, this just makes it so we + * don't have to look it up again) + */ + cachePosition: function(iPageX, iPageY) { + if (iPageX) { + this.lastPageX = iPageX; + this.lastPageY = iPageY; + } else { + var aCoord = YAHOO.util.Dom.getXY(this.getEl()); + this.lastPageX = aCoord[0]; + this.lastPageY = aCoord[1]; + } + }, + + /** + * Auto-scroll the window if the dragged object has been moved beyond the + * visible window boundary. + * @method autoScroll + * @param {int} x the drag element's x position + * @param {int} y the drag element's y position + * @param {int} h the height of the drag element + * @param {int} w the width of the drag element + * @private + */ + autoScroll: function(x, y, h, w) { + + if (this.scroll) { + // The client height + var clientH = this.DDM.getClientHeight(); + + // The client width + var clientW = this.DDM.getClientWidth(); + + // The amt scrolled down + var st = this.DDM.getScrollTop(); + + // The amt scrolled right + var sl = this.DDM.getScrollLeft(); + + // Location of the bottom of the element + var bot = h + y; + + // Location of the right of the element + var right = w + x; + + // The distance from the cursor to the bottom of the visible area, + // adjusted so that we don't scroll if the cursor is beyond the + // element drag constraints + var toBot = (clientH + st - y - this.deltaY); + + // The distance from the cursor to the right of the visible area + var toRight = (clientW + sl - x - this.deltaX); + + // this.logger.log( " x: " + x + " y: " + y + " h: " + h + + // " clientH: " + clientH + " clientW: " + clientW + + // " st: " + st + " sl: " + sl + " bot: " + bot + + // " right: " + right + " toBot: " + toBot + " toRight: " + toRight); + + // How close to the edge the cursor must be before we scroll + // var thresh = (document.all) ? 100 : 40; + var thresh = 40; + + // How many pixels to scroll per autoscroll op. This helps to reduce + // clunky scrolling. IE is more sensitive about this ... it needs this + // value to be higher. + var scrAmt = (document.all) ? 80 : 30; + + // Scroll down if we are near the bottom of the visible page and the + // obj extends below the crease + if ( bot > clientH && toBot < thresh ) { + window.scrollTo(sl, st + scrAmt); + } + + // Scroll up if the window is scrolled down and the top of the object + // goes above the top border + if ( y < st && st > 0 && y - st < thresh ) { + window.scrollTo(sl, st - scrAmt); + } + + // Scroll right if the obj is beyond the right border and the cursor is + // near the border. + if ( right > clientW && toRight < thresh ) { + window.scrollTo(sl + scrAmt, st); + } + + // Scroll left if the window has been scrolled to the right and the obj + // extends past the left border + if ( x < sl && sl > 0 && x - sl < thresh ) { + window.scrollTo(sl - scrAmt, st); + } + } + }, + + /** + * Finds the location the element should be placed if we want to move + * it to where the mouse location less the click offset would place us. + * @method getTargetCoord + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + * @return an object that contains the coordinates (Object.x and Object.y) + * @private + */ + getTargetCoord: function(iPageX, iPageY) { + + // this.logger.log("getTargetCoord: " + iPageX + ", " + iPageY); + + var x = iPageX - this.deltaX; + var y = iPageY - this.deltaY; + + if (this.constrainX) { + if (x < this.minX) { x = this.minX; } + if (x > this.maxX) { x = this.maxX; } + } + + if (this.constrainY) { + if (y < this.minY) { y = this.minY; } + if (y > this.maxY) { y = this.maxY; } + } + + x = this.getTick(x, this.xTicks); + y = this.getTick(y, this.yTicks); + + // this.logger.log("getTargetCoord " + + // " iPageX: " + iPageX + + // " iPageY: " + iPageY + + // " x: " + x + ", y: " + y); + + return {x:x, y:y}; + }, + + /* + * Sets up config options specific to this class. Overrides + * YAHOO.util.DragDrop, but all versions of this method through the + * inheritance chain are called + */ + applyConfig: function() { + YAHOO.util.DD.superclass.applyConfig.call(this); + this.scroll = (this.config.scroll !== false); + }, + + /* + * Event that fires prior to the onMouseDown event. Overrides + * YAHOO.util.DragDrop. + */ + b4MouseDown: function(e) { + this.setStartPosition(); + // this.resetConstraints(); + this.autoOffset(YAHOO.util.Event.getPageX(e), + YAHOO.util.Event.getPageY(e)); + }, + + /* + * Event that fires prior to the onDrag event. Overrides + * YAHOO.util.DragDrop. + */ + b4Drag: function(e) { + this.setDragElPos(YAHOO.util.Event.getPageX(e), + YAHOO.util.Event.getPageY(e)); + }, + + toString: function() { + return ("DD " + this.id); + } + + ////////////////////////////////////////////////////////////////////////// + // Debugging ygDragDrop events that can be overridden + ////////////////////////////////////////////////////////////////////////// + /* + startDrag: function(x, y) { + this.logger.log(this.id.toString() + " startDrag"); + }, + + onDrag: function(e) { + this.logger.log(this.id.toString() + " onDrag"); + }, + + onDragEnter: function(e, id) { + this.logger.log(this.id.toString() + " onDragEnter: " + id); + }, + + onDragOver: function(e, id) { + this.logger.log(this.id.toString() + " onDragOver: " + id); + }, + + onDragOut: function(e, id) { + this.logger.log(this.id.toString() + " onDragOut: " + id); + }, + + onDragDrop: function(e, id) { + this.logger.log(this.id.toString() + " onDragDrop: " + id); + }, + + endDrag: function(e) { + this.logger.log(this.id.toString() + " endDrag"); + } + + */ + +}); +/** + * A DragDrop implementation that inserts an empty, bordered div into + * the document that follows the cursor during drag operations. At the time of + * the click, the frame div is resized to the dimensions of the linked html + * element, and moved to the exact location of the linked element. + * + * References to the "frame" element refer to the single proxy element that + * was created to be dragged in place of all DDProxy elements on the + * page. + * + * @class DDProxy + * @extends YAHOO.util.DD + * @constructor + * @param {String} id the id of the linked html element + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDProxy in addition to those in DragDrop: + * resizeFrame, centerFrame, dragElId + */ +YAHOO.util.DDProxy = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + this.initFrame(); + } +}; + +/** + * The default drag frame div id + * @property YAHOO.util.DDProxy.dragElId + * @type String + * @static + */ +YAHOO.util.DDProxy.dragElId = "ygddfdiv"; + +YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, { + + /** + * By default we resize the drag frame to be the same size as the element + * we want to drag (this is to get the frame effect). We can turn it off + * if we want a different behavior. + * @property resizeFrame + * @type boolean + */ + resizeFrame: true, + + /** + * By default the frame is positioned exactly where the drag element is, so + * we use the cursor offset provided by YAHOO.util.DD. Another option that works only if + * you do not have constraints on the obj is to have the drag frame centered + * around the cursor. Set centerFrame to true for this effect. + * @property centerFrame + * @type boolean + */ + centerFrame: false, + + /** + * Creates the proxy element if it does not yet exist + * @method createFrame + */ + createFrame: function() { + var self = this; + var body = document.body; + + if (!body || !body.firstChild) { + setTimeout( function() { self.createFrame(); }, 50 ); + return; + } + + var div = this.getDragEl(); + + if (!div) { + div = document.createElement("div"); + div.id = this.dragElId; + var s = div.style; + + s.position = "absolute"; + s.visibility = "hidden"; + s.cursor = "move"; + s.border = "2px solid #aaa"; + s.zIndex = 999; + + // appendChild can blow up IE if invoked prior to the window load event + // while rendering a table. It is possible there are other scenarios + // that would cause this to happen as well. + body.insertBefore(div, body.firstChild); + } + }, + + /** + * Initialization for the drag frame element. Must be called in the + * constructor of all subclasses + * @method initFrame + */ + initFrame: function() { + this.createFrame(); + }, + + applyConfig: function() { + this.logger.log("DDProxy applyConfig"); + YAHOO.util.DDProxy.superclass.applyConfig.call(this); + + this.resizeFrame = (this.config.resizeFrame !== false); + this.centerFrame = (this.config.centerFrame); + this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId); + }, + + /** + * Resizes the drag frame to the dimensions of the clicked object, positions + * it over the object, and finally displays it + * @method showFrame + * @param {int} iPageX X click position + * @param {int} iPageY Y click position + * @private + */ + showFrame: function(iPageX, iPageY) { + var el = this.getEl(); + var dragEl = this.getDragEl(); + var s = dragEl.style; + + this._resizeProxy(); + + if (this.centerFrame) { + this.setDelta( Math.round(parseInt(s.width, 10)/2), + Math.round(parseInt(s.height, 10)/2) ); + } + + this.setDragElPos(iPageX, iPageY); + + YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible"); + }, + + /** + * The proxy is automatically resized to the dimensions of the linked + * element when a drag is initiated, unless resizeFrame is set to false + * @method _resizeProxy + * @private + */ + _resizeProxy: function() { + if (this.resizeFrame) { + var DOM = YAHOO.util.Dom; + var el = this.getEl(); + var dragEl = this.getDragEl(); + + var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth" ), 10); + var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth" ), 10); + var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10); + var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth" ), 10); + + if (isNaN(bt)) { bt = 0; } + if (isNaN(br)) { br = 0; } + if (isNaN(bb)) { bb = 0; } + if (isNaN(bl)) { bl = 0; } + + this.logger.log("proxy size: " + bt + " " + br + " " + bb + " " + bl); + + var newWidth = Math.max(0, el.offsetWidth - br - bl); + var newHeight = Math.max(0, el.offsetHeight - bt - bb); + + this.logger.log("Resizing proxy element"); + + DOM.setStyle( dragEl, "width", newWidth + "px" ); + DOM.setStyle( dragEl, "height", newHeight + "px" ); + } + }, + + // overrides YAHOO.util.DragDrop + b4MouseDown: function(e) { + this.setStartPosition(); + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.autoOffset(x, y); + this.setDragElPos(x, y); + }, + + // overrides YAHOO.util.DragDrop + b4StartDrag: function(x, y) { + // show the drag frame + this.logger.log("start drag show frame, x: " + x + ", y: " + y); + this.showFrame(x, y); + }, + + // overrides YAHOO.util.DragDrop + b4EndDrag: function(e) { + this.logger.log(this.id + " b4EndDrag"); + YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden"); + }, + + // overrides YAHOO.util.DragDrop + // By default we try to move the element to the last location of the frame. + // This is so that the default behavior mirrors that of YAHOO.util.DD. + endDrag: function(e) { + var DOM = YAHOO.util.Dom; + this.logger.log(this.id + " endDrag"); + var lel = this.getEl(); + var del = this.getDragEl(); + + // Show the drag frame briefly so we can get its position + // del.style.visibility = ""; + DOM.setStyle(del, "visibility", ""); + + // Hide the linked element before the move to get around a Safari + // rendering bug. + //lel.style.visibility = "hidden"; + DOM.setStyle(lel, "visibility", "hidden"); + YAHOO.util.DDM.moveToEl(lel, del); + //del.style.visibility = "hidden"; + DOM.setStyle(del, "visibility", "hidden"); + //lel.style.visibility = ""; + DOM.setStyle(lel, "visibility", ""); + }, + + toString: function() { + return ("DDProxy " + this.id); + } + +}); +/** + * A DragDrop implementation that does not move, but can be a drop + * target. You would get the same result by simply omitting implementation + * for the event callbacks, but this way we reduce the processing cost of the + * event listener and the callbacks. + * @class DDTarget + * @extends YAHOO.util.DragDrop + * @constructor + * @param {String} id the id of the element that is a drop target + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDTarget in addition to those in + * DragDrop: + * none + */ +YAHOO.util.DDTarget = function(id, sGroup, config) { + if (id) { + this.initTarget(id, sGroup, config); + } +}; + +// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop(); +YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, { + toString: function() { + return ("DDTarget " + this.id); + } +}); +YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js new file mode 100644 index 0000000..f890378 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js @@ -0,0 +1,93 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var Event=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initalized:false,locked:false,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(sMethod,args){for(var i in this.ids){for(var j in this.ids[i]){var oDD=this.ids[i][j];if(!this.isTypeOfDD(oDD)){continue;} +oDD[sMethod].apply(oDD,args);}}},_onLoad:function(){this.init();Event.on(document,"mouseup",this.handleMouseUp,this,true);Event.on(document,"mousemove",this.handleMouseMove,this,true);Event.on(window,"unload",this._onUnload,this,true);Event.on(window,"resize",this._onResize,this,true);},_onResize:function(e){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(oDD,sGroup){if(!this.initialized){this.init();} +if(!this.ids[sGroup]){this.ids[sGroup]={};} +this.ids[sGroup][oDD.id]=oDD;},removeDDFromGroup:function(oDD,sGroup){if(!this.ids[sGroup]){this.ids[sGroup]={};} +var obj=this.ids[sGroup];if(obj&&obj[oDD.id]){delete obj[oDD.id];}},_remove:function(oDD){for(var g in oDD.groups){if(g&&this.ids[g][oDD.id]){delete this.ids[g][oDD.id];}} +delete this.handleIds[oDD.id];},regHandle:function(sDDId,sHandleId){if(!this.handleIds[sDDId]){this.handleIds[sDDId]={};} +this.handleIds[sDDId][sHandleId]=sHandleId;},isDragDrop:function(id){return(this.getDDById(id))?true:false;},getRelated:function(p_oDD,bTargetsOnly){var oDDs=[];for(var i in p_oDD.groups){for(j in this.ids[i]){var dd=this.ids[i][j];if(!this.isTypeOfDD(dd)){continue;} +if(!bTargetsOnly||dd.isTarget){oDDs[oDDs.length]=dd;}}} +return oDDs;},isLegalTarget:function(oDD,oTargetDD){var targets=this.getRelated(oDD,true);for(var i=0,len=targets.length;i<len;++i){if(targets[i].id==oTargetDD.id){return true;}} +return false;},isTypeOfDD:function(oDD){return(oDD&&oDD.__ygDragDrop);},isHandle:function(sDDId,sHandleId){return(this.handleIds[sDDId]&&this.handleIds[sDDId][sHandleId]);},getDDById:function(id){for(var i in this.ids){if(this.ids[i][id]){return this.ids[i][id];}} +return null;},handleMouseDown:function(e,oDD){this.currentTarget=YAHOO.util.Event.getTarget(e);this.dragCurrent=oDD;var el=oDD.getEl();this.startX=YAHOO.util.Event.getPageX(e);this.startY=YAHOO.util.Event.getPageY(e);this.deltaX=this.startX-el.offsetLeft;this.deltaY=this.startY-el.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var DDM=YAHOO.util.DDM;DDM.startDrag(DDM.startX,DDM.startY);},this.clickTimeThresh);},startDrag:function(x,y){clearTimeout(this.clickTimeout);if(this.dragCurrent){this.dragCurrent.b4StartDrag(x,y);this.dragCurrent.startDrag(x,y);} +this.dragThreshMet=true;},handleMouseUp:function(e){if(!this.dragCurrent){return;} +clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(e,true);}else{} +this.stopDrag(e);this.stopEvent(e);},stopEvent:function(e){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(e);} +if(this.preventDefault){YAHOO.util.Event.preventDefault(e);}},stopDrag:function(e){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(e);this.dragCurrent.endDrag(e);} +this.dragCurrent.onMouseUp(e);} +this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(e){if(!this.dragCurrent){return true;} +if(YAHOO.util.Event.isIE&&!e.button){this.stopEvent(e);return this.handleMouseUp(e);} +if(!this.dragThreshMet){var diffX=Math.abs(this.startX-YAHOO.util.Event.getPageX(e));var diffY=Math.abs(this.startY-YAHOO.util.Event.getPageY(e));if(diffX>this.clickPixelThresh||diffY>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}} +if(this.dragThreshMet){this.dragCurrent.b4Drag(e);this.dragCurrent.onDrag(e);this.fireEvents(e,false);} +this.stopEvent(e);return true;},fireEvents:function(e,isDrop){var dc=this.dragCurrent;if(!dc||dc.isLocked()){return;} +var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);var pt=new YAHOO.util.Point(x,y);var oldOvers=[];var outEvts=[];var overEvts=[];var dropEvts=[];var enterEvts=[];for(var i in this.dragOvers){var ddo=this.dragOvers[i];if(!this.isTypeOfDD(ddo)){continue;} +if(!this.isOverTarget(pt,ddo,this.mode)){outEvts.push(ddo);} +oldOvers[i]=true;delete this.dragOvers[i];} +for(var sGroup in dc.groups){if("string"!=typeof sGroup){continue;} +for(i in this.ids[sGroup]){var oDD=this.ids[sGroup][i];if(!this.isTypeOfDD(oDD)){continue;} +if(oDD.isTarget&&!oDD.isLocked()&&oDD!=dc){if(this.isOverTarget(pt,oDD,this.mode)){if(isDrop){dropEvts.push(oDD);}else{if(!oldOvers[oDD.id]){enterEvts.push(oDD);}else{overEvts.push(oDD);} +this.dragOvers[oDD.id]=oDD;}}}}} +if(this.mode){if(outEvts.length){dc.b4DragOut(e,outEvts);dc.onDragOut(e,outEvts);} +if(enterEvts.length){dc.onDragEnter(e,enterEvts);} +if(overEvts.length){dc.b4DragOver(e,overEvts);dc.onDragOver(e,overEvts);} +if(dropEvts.length){dc.b4DragDrop(e,dropEvts);dc.onDragDrop(e,dropEvts);}}else{var len=0;for(i=0,len=outEvts.length;i<len;++i){dc.b4DragOut(e,outEvts[i].id);dc.onDragOut(e,outEvts[i].id);} +for(i=0,len=enterEvts.length;i<len;++i){dc.onDragEnter(e,enterEvts[i].id);} +for(i=0,len=overEvts.length;i<len;++i){dc.b4DragOver(e,overEvts[i].id);dc.onDragOver(e,overEvts[i].id);} +for(i=0,len=dropEvts.length;i<len;++i){dc.b4DragDrop(e,dropEvts[i].id);dc.onDragDrop(e,dropEvts[i].id);}} +if(isDrop&&!dropEvts.length){dc.onInvalidDrop(e);}},getBestMatch:function(dds){var winner=null;var len=dds.length;if(len==1){winner=dds[0];}else{for(var i=0;i<len;++i){var dd=dds[i];if(this.mode==this.INTERSECT&&dd.cursorIsOver){winner=dd;break;}else{if(!winner||!winner.overlap||(dd.overlap&&winner.overlap.getArea()<dd.overlap.getArea())){winner=dd;}}}} +return winner;},refreshCache:function(groups){var g=groups||this.ids;for(var sGroup in g){if("string"!=typeof sGroup){continue;} +for(var i in this.ids[sGroup]){var oDD=this.ids[sGroup][i];if(this.isTypeOfDD(oDD)){var loc=this.getLocation(oDD);if(loc){this.locationCache[oDD.id]=loc;}else{delete this.locationCache[oDD.id];}}}}},verifyEl:function(el){try{if(el){var parent=el.offsetParent;if(parent){return true;}}}catch(e){} +return false;},getLocation:function(oDD){if(!this.isTypeOfDD(oDD)){return null;} +var el=oDD.getEl(),pos,x1,x2,y1,y2,t,r,b,l;try{pos=YAHOO.util.Dom.getXY(el);}catch(e){} +if(!pos){return null;} +x1=pos[0];x2=x1+el.offsetWidth;y1=pos[1];y2=y1+el.offsetHeight;t=y1-oDD.padding[0];r=x2+oDD.padding[1];b=y2+oDD.padding[2];l=x1-oDD.padding[3];return new YAHOO.util.Region(t,r,b,l);},isOverTarget:function(pt,oTarget,intersect){var loc=this.locationCache[oTarget.id];if(!loc||!this.useCache){loc=this.getLocation(oTarget);this.locationCache[oTarget.id]=loc;} +if(!loc){return false;} +oTarget.cursorIsOver=loc.contains(pt);var dc=this.dragCurrent;if(!dc||!dc.getTargetCoord||(!intersect&&!dc.constrainX&&!dc.constrainY)){return oTarget.cursorIsOver;} +oTarget.overlap=null;var pos=dc.getTargetCoord(pt.x,pt.y);var el=dc.getDragEl();var curRegion=new YAHOO.util.Region(pos.y,pos.x+el.offsetWidth,pos.y+el.offsetHeight,pos.x);var overlap=curRegion.intersect(loc);if(overlap){oTarget.overlap=overlap;return(intersect)?true:oTarget.cursorIsOver;}else{return false;}},_onUnload:function(e,me){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;} +this._execOnAll("unreg",[]);for(i in this.elementCache){delete this.elementCache[i];} +this.elementCache={};this.ids={};},elementCache:{},getElWrapper:function(id){var oWrapper=this.elementCache[id];if(!oWrapper||!oWrapper.el){oWrapper=this.elementCache[id]=new this.ElementWrapper(YAHOO.util.Dom.get(id));} +return oWrapper;},getElement:function(id){return YAHOO.util.Dom.get(id);},getCss:function(id){var el=YAHOO.util.Dom.get(id);return(el)?el.style:null;},ElementWrapper:function(el){this.el=el||null;this.id=this.el&&el.id;this.css=this.el&&el.style;},getPosX:function(el){return YAHOO.util.Dom.getX(el);},getPosY:function(el){return YAHOO.util.Dom.getY(el);},swapNode:function(n1,n2){if(n1.swapNode){n1.swapNode(n2);}else{var p=n2.parentNode;var s=n2.nextSibling;if(s==n1){p.insertBefore(n1,n2);}else if(n2==n1.nextSibling){p.insertBefore(n2,n1);}else{n1.parentNode.replaceChild(n2,n1);p.insertBefore(n1,s);}}},getScroll:function(){var t,l,dde=document.documentElement,db=document.body;if(dde&&(dde.scrollTop||dde.scrollLeft)){t=dde.scrollTop;l=dde.scrollLeft;}else if(db){t=db.scrollTop;l=db.scrollLeft;}else{} +return{top:t,left:l};},getStyle:function(el,styleProp){return YAHOO.util.Dom.getStyle(el,styleProp);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(moveEl,targetEl){var aCoord=YAHOO.util.Dom.getXY(targetEl);YAHOO.util.Dom.setXY(moveEl,aCoord);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(a,b){return(a-b);},_timeoutCount:0,_addListeners:function(){var DDM=YAHOO.util.DDM;if(YAHOO.util.Event&&document){DDM._onLoad();}else{if(DDM._timeoutCount>2000){}else{setTimeout(DDM._addListeners,10);if(document&&document.body){DDM._timeoutCount+=1;}}}},handleWasClicked:function(node,id){if(this.isHandle(id,node.id)){return true;}else{var p=node.parentNode;while(p){if(this.isHandle(id,p.id)){return true;}else{p=p.parentNode;}}} +return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();} +(function(){var Event=YAHOO.util.Event;var Dom=YAHOO.util.Dom;YAHOO.util.DragDrop=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(x,y){},startDrag:function(x,y){},b4Drag:function(e){},onDrag:function(e){},onDragEnter:function(e,id){},b4DragOver:function(e){},onDragOver:function(e,id){},b4DragOut:function(e){},onDragOut:function(e,id){},b4DragDrop:function(e){},onDragDrop:function(e,id){},onInvalidDrop:function(e){},b4EndDrag:function(e){},endDrag:function(e){},b4MouseDown:function(e){},onMouseDown:function(e){},onMouseUp:function(e){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=Dom.get(this.id);} +return this._domRef;},getDragEl:function(){return Dom.get(this.dragElId);},init:function(id,sGroup,config){this.initTarget(id,sGroup,config);Event.on(this.id,"mousedown",this.handleMouseDown,this,true);},initTarget:function(id,sGroup,config){this.config=config||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof id!=="string"){id=Dom.generateId(id);} +this.id=id;this.addToGroup((sGroup)?sGroup:"default");this.handleElId=id;Event.onAvailable(id,this.handleOnAvailable,this,true);this.setDragElId(id);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(iTop,iRight,iBot,iLeft){if(!iRight&&0!==iRight){this.padding=[iTop,iTop,iTop,iTop];}else if(!iBot&&0!==iBot){this.padding=[iTop,iRight,iTop,iRight];}else{this.padding=[iTop,iRight,iBot,iLeft];}},setInitPosition:function(diffX,diffY){var el=this.getEl();if(!this.DDM.verifyEl(el)){return;} +var dx=diffX||0;var dy=diffY||0;var p=Dom.getXY(el);this.initPageX=p[0]-dx;this.initPageY=p[1]-dy;this.lastPageX=p[0];this.lastPageY=p[1];this.setStartPosition(p);},setStartPosition:function(pos){var p=pos||Dom.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=p[0];this.startPageY=p[1];},addToGroup:function(sGroup){this.groups[sGroup]=true;this.DDM.regDragDrop(this,sGroup);},removeFromGroup:function(sGroup){if(this.groups[sGroup]){delete this.groups[sGroup];} +this.DDM.removeDDFromGroup(this,sGroup);},setDragElId:function(id){this.dragElId=id;},setHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +this.handleElId=id;this.DDM.regHandle(this.id,id);},setOuterHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +Event.on(id,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(id);this.hasOuterHandles=true;},unreg:function(){Event.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(e,oDD){var button=e.which||e.button;if(this.primaryButtonOnly&&button>1){return;} +if(this.isLocked()){return;} +this.b4MouseDown(e);this.onMouseDown(e);this.DDM.refreshCache(this.groups);var pt=new YAHOO.util.Point(Event.getPageX(e),Event.getPageY(e));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(pt,this)){}else{if(this.clickValidator(e)){this.setStartPosition();this.DDM.handleMouseDown(e,this);this.DDM.stopEvent(e);}else{}}},clickValidator:function(e){var target=Event.getTarget(e);return(this.isValidHandleChild(target)&&(this.id==this.handleElId||this.DDM.handleWasClicked(target,this.id)));},addInvalidHandleType:function(tagName){var type=tagName.toUpperCase();this.invalidHandleTypes[type]=type;},addInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +this.invalidHandleIds[id]=id;},addInvalidHandleClass:function(cssClass){this.invalidHandleClasses.push(cssClass);},removeInvalidHandleType:function(tagName){var type=tagName.toUpperCase();delete this.invalidHandleTypes[type];},removeInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +delete this.invalidHandleIds[id];},removeInvalidHandleClass:function(cssClass){for(var i=0,len=this.invalidHandleClasses.length;i<len;++i){if(this.invalidHandleClasses[i]==cssClass){delete this.invalidHandleClasses[i];}}},isValidHandleChild:function(node){var valid=true;var nodeName;try{nodeName=node.nodeName.toUpperCase();}catch(e){nodeName=node.nodeName;} +valid=valid&&!this.invalidHandleTypes[nodeName];valid=valid&&!this.invalidHandleIds[node.id];for(var i=0,len=this.invalidHandleClasses.length;valid&&i<len;++i){valid=!Dom.hasClass(node,this.invalidHandleClasses[i]);} +return valid;},setXTicks:function(iStartX,iTickSize){this.xTicks=[];this.xTickSize=iTickSize;var tickMap={};for(var i=this.initPageX;i>=this.minX;i=i-iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}} +for(i=this.initPageX;i<=this.maxX;i=i+iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}} +this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(iStartY,iTickSize){this.yTicks=[];this.yTickSize=iTickSize;var tickMap={};for(var i=this.initPageY;i>=this.minY;i=i-iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}} +for(i=this.initPageY;i<=this.maxY;i=i+iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}} +this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(iLeft,iRight,iTickSize){this.leftConstraint=parseInt(iLeft,10);this.rightConstraint=parseInt(iRight,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(iTickSize){this.setXTicks(this.initPageX,iTickSize);} +this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(iUp,iDown,iTickSize){this.topConstraint=parseInt(iUp,10);this.bottomConstraint=parseInt(iDown,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(iTickSize){this.setYTicks(this.initPageY,iTickSize);} +this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var dx=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var dy=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(dx,dy);}else{this.setInitPosition();} +if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);} +if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(val,tickArray){if(!tickArray){return val;}else if(tickArray[0]>=val){return tickArray[0];}else{for(var i=0,len=tickArray.length;i<len;++i){var next=i+1;if(tickArray[next]&&tickArray[next]>=val){var diff1=val-tickArray[i];var diff2=tickArray[next]-val;return(diff2>diff1)?tickArray[i]:tickArray[next];}} +return tickArray[tickArray.length-1];}},toString:function(){return("DragDrop "+this.id);}};})();YAHOO.util.DD=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(iPageX,iPageY){var x=iPageX-this.startPageX;var y=iPageY-this.startPageY;this.setDelta(x,y);},setDelta:function(iDeltaX,iDeltaY){this.deltaX=iDeltaX;this.deltaY=iDeltaY;},setDragElPos:function(iPageX,iPageY){var el=this.getDragEl();this.alignElWithMouse(el,iPageX,iPageY);},alignElWithMouse:function(el,iPageX,iPageY){var oCoord=this.getTargetCoord(iPageX,iPageY);if(!this.deltaSetXY){var aCoord=[oCoord.x,oCoord.y];YAHOO.util.Dom.setXY(el,aCoord);var newLeft=parseInt(YAHOO.util.Dom.getStyle(el,"left"),10);var newTop=parseInt(YAHOO.util.Dom.getStyle(el,"top"),10);this.deltaSetXY=[newLeft-oCoord.x,newTop-oCoord.y];}else{YAHOO.util.Dom.setStyle(el,"left",(oCoord.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(el,"top",(oCoord.y+this.deltaSetXY[1])+"px");} +this.cachePosition(oCoord.x,oCoord.y);this.autoScroll(oCoord.x,oCoord.y,el.offsetHeight,el.offsetWidth);},cachePosition:function(iPageX,iPageY){if(iPageX){this.lastPageX=iPageX;this.lastPageY=iPageY;}else{var aCoord=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=aCoord[0];this.lastPageY=aCoord[1];}},autoScroll:function(x,y,h,w){if(this.scroll){var clientH=this.DDM.getClientHeight();var clientW=this.DDM.getClientWidth();var st=this.DDM.getScrollTop();var sl=this.DDM.getScrollLeft();var bot=h+y;var right=w+x;var toBot=(clientH+st-y-this.deltaY);var toRight=(clientW+sl-x-this.deltaX);var thresh=40;var scrAmt=(document.all)?80:30;if(bot>clientH&&toBot<thresh){window.scrollTo(sl,st+scrAmt);} +if(y<st&&st>0&&y-st<thresh){window.scrollTo(sl,st-scrAmt);} +if(right>clientW&&toRight<thresh){window.scrollTo(sl+scrAmt,st);} +if(x<sl&&sl>0&&x-sl<thresh){window.scrollTo(sl-scrAmt,st);}}},getTargetCoord:function(iPageX,iPageY){var x=iPageX-this.deltaX;var y=iPageY-this.deltaY;if(this.constrainX){if(x<this.minX){x=this.minX;} +if(x>this.maxX){x=this.maxX;}} +if(this.constrainY){if(y<this.minY){y=this.minY;} +if(y>this.maxY){y=this.maxY;}} +x=this.getTick(x,this.xTicks);y=this.getTick(y,this.yTicks);return{x:x,y:y};},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(e){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},b4Drag:function(e){this.setDragElPos(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(id,sGroup,config){if(id){this.init(id,sGroup,config);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var self=this;var body=document.body;if(!body||!body.firstChild){setTimeout(function(){self.createFrame();},50);return;} +var div=this.getDragEl();if(!div){div=document.createElement("div");div.id=this.dragElId;var s=div.style;s.position="absolute";s.visibility="hidden";s.cursor="move";s.border="2px solid #aaa";s.zIndex=999;body.insertBefore(div,body.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(iPageX,iPageY){var el=this.getEl();var dragEl=this.getDragEl();var s=dragEl.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(s.width,10)/2),Math.round(parseInt(s.height,10)/2));} +this.setDragElPos(iPageX,iPageY);YAHOO.util.Dom.setStyle(dragEl,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var DOM=YAHOO.util.Dom;var el=this.getEl();var dragEl=this.getDragEl();var bt=parseInt(DOM.getStyle(dragEl,"borderTopWidth"),10);var br=parseInt(DOM.getStyle(dragEl,"borderRightWidth"),10);var bb=parseInt(DOM.getStyle(dragEl,"borderBottomWidth"),10);var bl=parseInt(DOM.getStyle(dragEl,"borderLeftWidth"),10);if(isNaN(bt)){bt=0;} +if(isNaN(br)){br=0;} +if(isNaN(bb)){bb=0;} +if(isNaN(bl)){bl=0;} +var newWidth=Math.max(0,el.offsetWidth-br-bl);var newHeight=Math.max(0,el.offsetHeight-bt-bb);DOM.setStyle(dragEl,"width",newWidth+"px");DOM.setStyle(dragEl,"height",newHeight+"px");}},b4MouseDown:function(e){this.setStartPosition();var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);this.autoOffset(x,y);this.setDragElPos(x,y);},b4StartDrag:function(x,y){this.showFrame(x,y);},b4EndDrag:function(e){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(e){var DOM=YAHOO.util.Dom;var lel=this.getEl();var del=this.getDragEl();DOM.setStyle(del,"visibility","");DOM.setStyle(lel,"visibility","hidden");YAHOO.util.DDM.moveToEl(lel,del);DOM.setStyle(del,"visibility","hidden");DOM.setStyle(lel,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(id,sGroup,config){if(id){this.initTarget(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js new file mode 100644 index 0000000..025ffd7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js @@ -0,0 +1,2958 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The drag and drop utility provides a framework for building drag and drop + * applications. In addition to enabling drag and drop for specific elements, + * the drag and drop elements are tracked by the manager class, and the + * interactions between the various elements are tracked during the drag and + * the implementing code is notified about these important moments. + * @module dragdrop + * @title Drag and Drop + * @requires yahoo,dom,event + * @namespace YAHOO.util + */ + +// Only load the library once. Rewriting the manager class would orphan +// existing drag and drop instances. +if (!YAHOO.util.DragDropMgr) { + +/** + * DragDropMgr is a singleton that tracks the element interaction for + * all DragDrop items in the window. Generally, you will not call + * this class directly, but it does have helper methods that could + * be useful in your DragDrop implementations. + * @class DragDropMgr + * @static + */ +YAHOO.util.DragDropMgr = function() { + + var Event = YAHOO.util.Event; + + return { + + /** + * Two dimensional Array of registered DragDrop objects. The first + * dimension is the DragDrop item group, the second the DragDrop + * object. + * @property ids + * @type {string: string} + * @private + * @static + */ + ids: {}, + + /** + * Array of element ids defined as drag handles. Used to determine + * if the element that generated the mousedown event is actually the + * handle and not the html element itself. + * @property handleIds + * @type {string: string} + * @private + * @static + */ + handleIds: {}, + + /** + * the DragDrop object that is currently being dragged + * @property dragCurrent + * @type DragDrop + * @private + * @static + **/ + dragCurrent: null, + + /** + * the DragDrop object(s) that are being hovered over + * @property dragOvers + * @type Array + * @private + * @static + */ + dragOvers: {}, + + /** + * the X distance between the cursor and the object being dragged + * @property deltaX + * @type int + * @private + * @static + */ + deltaX: 0, + + /** + * the Y distance between the cursor and the object being dragged + * @property deltaY + * @type int + * @private + * @static + */ + deltaY: 0, + + /** + * Flag to determine if we should prevent the default behavior of the + * events we define. By default this is true, but this can be set to + * false if you need the default behavior (not recommended) + * @property preventDefault + * @type boolean + * @static + */ + preventDefault: true, + + /** + * Flag to determine if we should stop the propagation of the events + * we generate. This is true by default but you may want to set it to + * false if the html element contains other features that require the + * mouse click. + * @property stopPropagation + * @type boolean + * @static + */ + stopPropagation: true, + + /** + * Internal flag that is set to true when drag and drop has been + * intialized + * @property initialized + * @private + * @static + */ + initalized: false, + + /** + * All drag and drop can be disabled. + * @property locked + * @private + * @static + */ + locked: false, + + /** + * Called the first time an element is registered. + * @method init + * @private + * @static + */ + init: function() { + this.initialized = true; + }, + + /** + * In point mode, drag and drop interaction is defined by the + * location of the cursor during the drag/drop + * @property POINT + * @type int + * @static + * @final + */ + POINT: 0, + + /** + * In intersect mode, drag and drop interaction is defined by the + * cursor position or the amount of overlap of two or more drag and + * drop objects. + * @property INTERSECT + * @type int + * @static + * @final + */ + INTERSECT: 1, + + /** + * In intersect mode, drag and drop interaction is defined only by the + * overlap of two or more drag and drop objects. + * @property STRICT_INTERSECT + * @type int + * @static + * @final + */ + STRICT_INTERSECT: 2, + + /** + * The current drag and drop mode. Default: POINT + * @property mode + * @type int + * @static + */ + mode: 0, + + /** + * Runs method on all drag and drop objects + * @method _execOnAll + * @private + * @static + */ + _execOnAll: function(sMethod, args) { + for (var i in this.ids) { + for (var j in this.ids[i]) { + var oDD = this.ids[i][j]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + oDD[sMethod].apply(oDD, args); + } + } + }, + + /** + * Drag and drop initialization. Sets up the global event handlers + * @method _onLoad + * @private + * @static + */ + _onLoad: function() { + + this.init(); + + + Event.on(document, "mouseup", this.handleMouseUp, this, true); + Event.on(document, "mousemove", this.handleMouseMove, this, true); + Event.on(window, "unload", this._onUnload, this, true); + Event.on(window, "resize", this._onResize, this, true); + // Event.on(window, "mouseout", this._test); + + }, + + /** + * Reset constraints on all drag and drop objs + * @method _onResize + * @private + * @static + */ + _onResize: function(e) { + this._execOnAll("resetConstraints", []); + }, + + /** + * Lock all drag and drop functionality + * @method lock + * @static + */ + lock: function() { this.locked = true; }, + + /** + * Unlock all drag and drop functionality + * @method unlock + * @static + */ + unlock: function() { this.locked = false; }, + + /** + * Is drag and drop locked? + * @method isLocked + * @return {boolean} True if drag and drop is locked, false otherwise. + * @static + */ + isLocked: function() { return this.locked; }, + + /** + * Location cache that is set for all drag drop objects when a drag is + * initiated, cleared when the drag is finished. + * @property locationCache + * @private + * @static + */ + locationCache: {}, + + /** + * Set useCache to false if you want to force object the lookup of each + * drag and drop linked element constantly during a drag. + * @property useCache + * @type boolean + * @static + */ + useCache: true, + + /** + * The number of pixels that the mouse needs to move after the + * mousedown before the drag is initiated. Default=3; + * @property clickPixelThresh + * @type int + * @static + */ + clickPixelThresh: 3, + + /** + * The number of milliseconds after the mousedown event to initiate the + * drag if we don't get a mouseup event. Default=1000 + * @property clickTimeThresh + * @type int + * @static + */ + clickTimeThresh: 1000, + + /** + * Flag that indicates that either the drag pixel threshold or the + * mousdown time threshold has been met + * @property dragThreshMet + * @type boolean + * @private + * @static + */ + dragThreshMet: false, + + /** + * Timeout used for the click time threshold + * @property clickTimeout + * @type Object + * @private + * @static + */ + clickTimeout: null, + + /** + * The X position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startX + * @type int + * @private + * @static + */ + startX: 0, + + /** + * The Y position of the mousedown event stored for later use when a + * drag threshold is met. + * @property startY + * @type int + * @private + * @static + */ + startY: 0, + + /** + * Each DragDrop instance must be registered with the DragDropMgr. + * This is executed in DragDrop.init() + * @method regDragDrop + * @param {DragDrop} oDD the DragDrop object to register + * @param {String} sGroup the name of the group this element belongs to + * @static + */ + regDragDrop: function(oDD, sGroup) { + if (!this.initialized) { this.init(); } + + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + this.ids[sGroup][oDD.id] = oDD; + }, + + /** + * Removes the supplied dd instance from the supplied group. Executed + * by DragDrop.removeFromGroup, so don't call this function directly. + * @method removeDDFromGroup + * @private + * @static + */ + removeDDFromGroup: function(oDD, sGroup) { + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + + var obj = this.ids[sGroup]; + if (obj && obj[oDD.id]) { + delete obj[oDD.id]; + } + }, + + /** + * Unregisters a drag and drop item. This is executed in + * DragDrop.unreg, use that method instead of calling this directly. + * @method _remove + * @private + * @static + */ + _remove: function(oDD) { + for (var g in oDD.groups) { + if (g && this.ids[g][oDD.id]) { + delete this.ids[g][oDD.id]; + } + } + delete this.handleIds[oDD.id]; + }, + + /** + * Each DragDrop handle element must be registered. This is done + * automatically when executing DragDrop.setHandleElId() + * @method regHandle + * @param {String} sDDId the DragDrop id this element is a handle for + * @param {String} sHandleId the id of the element that is the drag + * handle + * @static + */ + regHandle: function(sDDId, sHandleId) { + if (!this.handleIds[sDDId]) { + this.handleIds[sDDId] = {}; + } + this.handleIds[sDDId][sHandleId] = sHandleId; + }, + + /** + * Utility function to determine if a given element has been + * registered as a drag drop item. + * @method isDragDrop + * @param {String} id the element id to check + * @return {boolean} true if this element is a DragDrop item, + * false otherwise + * @static + */ + isDragDrop: function(id) { + return ( this.getDDById(id) ) ? true : false; + }, + + /** + * Returns the drag and drop instances that are in all groups the + * passed in instance belongs to. + * @method getRelated + * @param {DragDrop} p_oDD the obj to get related data for + * @param {boolean} bTargetsOnly if true, only return targetable objs + * @return {DragDrop[]} the related instances + * @static + */ + getRelated: function(p_oDD, bTargetsOnly) { + var oDDs = []; + for (var i in p_oDD.groups) { + for (j in this.ids[i]) { + var dd = this.ids[i][j]; + if (! this.isTypeOfDD(dd)) { + continue; + } + if (!bTargetsOnly || dd.isTarget) { + oDDs[oDDs.length] = dd; + } + } + } + + return oDDs; + }, + + /** + * Returns true if the specified dd target is a legal target for + * the specifice drag obj + * @method isLegalTarget + * @param {DragDrop} the drag obj + * @param {DragDrop} the target + * @return {boolean} true if the target is a legal target for the + * dd obj + * @static + */ + isLegalTarget: function (oDD, oTargetDD) { + var targets = this.getRelated(oDD, true); + for (var i=0, len=targets.length;i<len;++i) { + if (targets[i].id == oTargetDD.id) { + return true; + } + } + + return false; + }, + + /** + * My goal is to be able to transparently determine if an object is + * typeof DragDrop, and the exact subclass of DragDrop. typeof + * returns "object", oDD.constructor.toString() always returns + * "DragDrop" and not the name of the subclass. So for now it just + * evaluates a well-known variable in DragDrop. + * @method isTypeOfDD + * @param {Object} the object to evaluate + * @return {boolean} true if typeof oDD = DragDrop + * @static + */ + isTypeOfDD: function (oDD) { + return (oDD && oDD.__ygDragDrop); + }, + + /** + * Utility function to determine if a given element has been + * registered as a drag drop handle for the given Drag Drop object. + * @method isHandle + * @param {String} id the element id to check + * @return {boolean} true if this element is a DragDrop handle, false + * otherwise + * @static + */ + isHandle: function(sDDId, sHandleId) { + return ( this.handleIds[sDDId] && + this.handleIds[sDDId][sHandleId] ); + }, + + /** + * Returns the DragDrop instance for a given id + * @method getDDById + * @param {String} id the id of the DragDrop object + * @return {DragDrop} the drag drop object, null if it is not found + * @static + */ + getDDById: function(id) { + for (var i in this.ids) { + if (this.ids[i][id]) { + return this.ids[i][id]; + } + } + return null; + }, + + /** + * Fired after a registered DragDrop object gets the mousedown event. + * Sets up the events required to track the object being dragged + * @method handleMouseDown + * @param {Event} e the event + * @param oDD the DragDrop object being dragged + * @private + * @static + */ + handleMouseDown: function(e, oDD) { + + this.currentTarget = YAHOO.util.Event.getTarget(e); + + this.dragCurrent = oDD; + + var el = oDD.getEl(); + + // track start position + this.startX = YAHOO.util.Event.getPageX(e); + this.startY = YAHOO.util.Event.getPageY(e); + + this.deltaX = this.startX - el.offsetLeft; + this.deltaY = this.startY - el.offsetTop; + + this.dragThreshMet = false; + + this.clickTimeout = setTimeout( + function() { + var DDM = YAHOO.util.DDM; + DDM.startDrag(DDM.startX, DDM.startY); + }, + this.clickTimeThresh ); + }, + + /** + * Fired when either the drag pixel threshol or the mousedown hold + * time threshold has been met. + * @method startDrag + * @param x {int} the X position of the original mousedown + * @param y {int} the Y position of the original mousedown + * @static + */ + startDrag: function(x, y) { + clearTimeout(this.clickTimeout); + if (this.dragCurrent) { + this.dragCurrent.b4StartDrag(x, y); + this.dragCurrent.startDrag(x, y); + } + this.dragThreshMet = true; + }, + + /** + * Internal function to handle the mouseup event. Will be invoked + * from the context of the document. + * @method handleMouseUp + * @param {Event} e the event + * @private + * @static + */ + handleMouseUp: function(e) { + + if (! this.dragCurrent) { + return; + } + + clearTimeout(this.clickTimeout); + + if (this.dragThreshMet) { + this.fireEvents(e, true); + } else { + } + + this.stopDrag(e); + + this.stopEvent(e); + }, + + /** + * Utility to stop event propagation and event default, if these + * features are turned on. + * @method stopEvent + * @param {Event} e the event as returned by this.getEvent() + * @static + */ + stopEvent: function(e) { + if (this.stopPropagation) { + YAHOO.util.Event.stopPropagation(e); + } + + if (this.preventDefault) { + YAHOO.util.Event.preventDefault(e); + } + }, + + /** + * Internal function to clean up event handlers after the drag + * operation is complete + * @method stopDrag + * @param {Event} e the event + * @private + * @static + */ + stopDrag: function(e) { + + // Fire the drag end event for the item that was dragged + if (this.dragCurrent) { + if (this.dragThreshMet) { + this.dragCurrent.b4EndDrag(e); + this.dragCurrent.endDrag(e); + } + + this.dragCurrent.onMouseUp(e); + } + + this.dragCurrent = null; + this.dragOvers = {}; + }, + + + /** + * Internal function to handle the mousemove event. Will be invoked + * from the context of the html element. + * + * @TODO figure out what we can do about mouse events lost when the + * user drags objects beyond the window boundary. Currently we can + * detect this in internet explorer by verifying that the mouse is + * down during the mousemove event. Firefox doesn't give us the + * button state on the mousemove event. + * @method handleMouseMove + * @param {Event} e the event + * @private + * @static + */ + handleMouseMove: function(e) { + if (! this.dragCurrent) { + return true; + } + + // var button = e.which || e.button; + + // check for IE mouseup outside of page boundary + if (YAHOO.util.Event.isIE && !e.button) { + this.stopEvent(e); + return this.handleMouseUp(e); + } + + if (!this.dragThreshMet) { + var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e)); + var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e)); + if (diffX > this.clickPixelThresh || + diffY > this.clickPixelThresh) { + this.startDrag(this.startX, this.startY); + } + } + + if (this.dragThreshMet) { + this.dragCurrent.b4Drag(e); + this.dragCurrent.onDrag(e); + this.fireEvents(e, false); + } + + this.stopEvent(e); + + return true; + }, + + /** + * Iterates over all of the DragDrop elements to find ones we are + * hovering over or dropping on + * @method fireEvents + * @param {Event} e the event + * @param {boolean} isDrop is this a drop op or a mouseover op? + * @private + * @static + */ + fireEvents: function(e, isDrop) { + var dc = this.dragCurrent; + + // If the user did the mouse up outside of the window, we could + // get here even though we have ended the drag. + if (!dc || dc.isLocked()) { + return; + } + + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + var pt = new YAHOO.util.Point(x,y); + + // cache the previous dragOver array + var oldOvers = []; + + var outEvts = []; + var overEvts = []; + var dropEvts = []; + var enterEvts = []; + + // Check to see if the object(s) we were hovering over is no longer + // being hovered over so we can fire the onDragOut event + for (var i in this.dragOvers) { + + var ddo = this.dragOvers[i]; + + if (! this.isTypeOfDD(ddo)) { + continue; + } + + if (! this.isOverTarget(pt, ddo, this.mode)) { + outEvts.push( ddo ); + } + + oldOvers[i] = true; + delete this.dragOvers[i]; + } + + for (var sGroup in dc.groups) { + + if ("string" != typeof sGroup) { + continue; + } + + for (i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + if (! this.isTypeOfDD(oDD)) { + continue; + } + + if (oDD.isTarget && !oDD.isLocked() && oDD != dc) { + if (this.isOverTarget(pt, oDD, this.mode)) { + // look for drop interactions + if (isDrop) { + dropEvts.push( oDD ); + // look for drag enter and drag over interactions + } else { + + // initial drag over: dragEnter fires + if (!oldOvers[oDD.id]) { + enterEvts.push( oDD ); + // subsequent drag overs: dragOver fires + } else { + overEvts.push( oDD ); + } + + this.dragOvers[oDD.id] = oDD; + } + } + } + } + } + + if (this.mode) { + if (outEvts.length) { + dc.b4DragOut(e, outEvts); + dc.onDragOut(e, outEvts); + } + + if (enterEvts.length) { + dc.onDragEnter(e, enterEvts); + } + + if (overEvts.length) { + dc.b4DragOver(e, overEvts); + dc.onDragOver(e, overEvts); + } + + if (dropEvts.length) { + dc.b4DragDrop(e, dropEvts); + dc.onDragDrop(e, dropEvts); + } + + } else { + // fire dragout events + var len = 0; + for (i=0, len=outEvts.length; i<len; ++i) { + dc.b4DragOut(e, outEvts[i].id); + dc.onDragOut(e, outEvts[i].id); + } + + // fire enter events + for (i=0,len=enterEvts.length; i<len; ++i) { + // dc.b4DragEnter(e, oDD.id); + dc.onDragEnter(e, enterEvts[i].id); + } + + // fire over events + for (i=0,len=overEvts.length; i<len; ++i) { + dc.b4DragOver(e, overEvts[i].id); + dc.onDragOver(e, overEvts[i].id); + } + + // fire drop events + for (i=0, len=dropEvts.length; i<len; ++i) { + dc.b4DragDrop(e, dropEvts[i].id); + dc.onDragDrop(e, dropEvts[i].id); + } + + } + + // notify about a drop that did not find a target + if (isDrop && !dropEvts.length) { + dc.onInvalidDrop(e); + } + + }, + + /** + * Helper function for getting the best match from the list of drag + * and drop objects returned by the drag and drop events when we are + * in INTERSECT mode. It returns either the first object that the + * cursor is over, or the object that has the greatest overlap with + * the dragged element. + * @method getBestMatch + * @param {DragDrop[]} dds The array of drag and drop objects + * targeted + * @return {DragDrop} The best single match + * @static + */ + getBestMatch: function(dds) { + var winner = null; + + var len = dds.length; + + if (len == 1) { + winner = dds[0]; + } else { + // Loop through the targeted items + for (var i=0; i<len; ++i) { + var dd = dds[i]; + // If the cursor is over the object, it wins. If the + // cursor is over multiple matches, the first one we come + // to wins. + if (this.mode == this.INTERSECT && dd.cursorIsOver) { + winner = dd; + break; + // Otherwise the object with the most overlap wins + } else { + if (!winner || !winner.overlap || (dd.overlap && + winner.overlap.getArea() < dd.overlap.getArea())) { + winner = dd; + } + } + } + } + + return winner; + }, + + /** + * Refreshes the cache of the top-left and bottom-right points of the + * drag and drop objects in the specified group(s). This is in the + * format that is stored in the drag and drop instance, so typical + * usage is: + * <code> + * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups); + * </code> + * Alternatively: + * <code> + * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true}); + * </code> + * @TODO this really should be an indexed array. Alternatively this + * method could accept both. + * @method refreshCache + * @param {Object} groups an associative array of groups to refresh + * @static + */ + refreshCache: function(groups) { + + // refresh everything if group array is not provided + var g = groups || this.ids; + + for (var sGroup in g) { + if ("string" != typeof sGroup) { + continue; + } + for (var i in this.ids[sGroup]) { + var oDD = this.ids[sGroup][i]; + + if (this.isTypeOfDD(oDD)) { + var loc = this.getLocation(oDD); + if (loc) { + this.locationCache[oDD.id] = loc; + } else { + delete this.locationCache[oDD.id]; + } + } + } + } + }, + + /** + * This checks to make sure an element exists and is in the DOM. The + * main purpose is to handle cases where innerHTML is used to remove + * drag and drop objects from the DOM. IE provides an 'unspecified + * error' when trying to access the offsetParent of such an element + * @method verifyEl + * @param {HTMLElement} el the element to check + * @return {boolean} true if the element looks usable + * @static + */ + verifyEl: function(el) { + try { + if (el) { + var parent = el.offsetParent; + if (parent) { + return true; + } + } + } catch(e) { + } + + return false; + }, + + /** + * Returns a Region object containing the drag and drop element's position + * and size, including the padding configured for it + * @method getLocation + * @param {DragDrop} oDD the drag and drop object to get the + * location for + * @return {YAHOO.util.Region} a Region object representing the total area + * the element occupies, including any padding + * the instance is configured for. + * @static + */ + getLocation: function(oDD) { + if (! this.isTypeOfDD(oDD)) { + return null; + } + + var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l; + + try { + pos= YAHOO.util.Dom.getXY(el); + } catch (e) { } + + if (!pos) { + return null; + } + + x1 = pos[0]; + x2 = x1 + el.offsetWidth; + y1 = pos[1]; + y2 = y1 + el.offsetHeight; + + t = y1 - oDD.padding[0]; + r = x2 + oDD.padding[1]; + b = y2 + oDD.padding[2]; + l = x1 - oDD.padding[3]; + + return new YAHOO.util.Region( t, r, b, l ); + }, + + /** + * Checks the cursor location to see if it over the target + * @method isOverTarget + * @param {YAHOO.util.Point} pt The point to evaluate + * @param {DragDrop} oTarget the DragDrop object we are inspecting + * @return {boolean} true if the mouse is over the target + * @private + * @static + */ + isOverTarget: function(pt, oTarget, intersect) { + // use cache if available + var loc = this.locationCache[oTarget.id]; + if (!loc || !this.useCache) { + loc = this.getLocation(oTarget); + this.locationCache[oTarget.id] = loc; + + } + + if (!loc) { + return false; + } + + oTarget.cursorIsOver = loc.contains( pt ); + + // DragDrop is using this as a sanity check for the initial mousedown + // in this case we are done. In POINT mode, if the drag obj has no + // contraints, we are done. Otherwise we need to evaluate the + // region the target as occupies to determine if the dragged element + // overlaps with it. + + var dc = this.dragCurrent; + if (!dc || !dc.getTargetCoord || + (!intersect && !dc.constrainX && !dc.constrainY)) { + + //if (oTarget.cursorIsOver) { + //} + return oTarget.cursorIsOver; + } + + oTarget.overlap = null; + + // Get the current location of the drag element, this is the + // location of the mouse event less the delta that represents + // where the original mousedown happened on the element. We + // need to consider constraints and ticks as well. + var pos = dc.getTargetCoord(pt.x, pt.y); + + var el = dc.getDragEl(); + var curRegion = new YAHOO.util.Region( pos.y, + pos.x + el.offsetWidth, + pos.y + el.offsetHeight, + pos.x ); + + var overlap = curRegion.intersect(loc); + + if (overlap) { + oTarget.overlap = overlap; + return (intersect) ? true : oTarget.cursorIsOver; + } else { + return false; + } + }, + + /** + * unload event handler + * @method _onUnload + * @private + * @static + */ + _onUnload: function(e, me) { + this.unregAll(); + }, + + /** + * Cleans up the drag and drop events and objects. + * @method unregAll + * @private + * @static + */ + unregAll: function() { + + if (this.dragCurrent) { + this.stopDrag(); + this.dragCurrent = null; + } + + this._execOnAll("unreg", []); + + for (i in this.elementCache) { + delete this.elementCache[i]; + } + + this.elementCache = {}; + this.ids = {}; + }, + + /** + * A cache of DOM elements + * @property elementCache + * @private + * @static + */ + elementCache: {}, + + /** + * Get the wrapper for the DOM element specified + * @method getElWrapper + * @param {String} id the id of the element to get + * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element + * @private + * @deprecated This wrapper isn't that useful + * @static + */ + getElWrapper: function(id) { + var oWrapper = this.elementCache[id]; + if (!oWrapper || !oWrapper.el) { + oWrapper = this.elementCache[id] = + new this.ElementWrapper(YAHOO.util.Dom.get(id)); + } + return oWrapper; + }, + + /** + * Returns the actual DOM element + * @method getElement + * @param {String} id the id of the elment to get + * @return {Object} The element + * @deprecated use YAHOO.util.Dom.get instead + * @static + */ + getElement: function(id) { + return YAHOO.util.Dom.get(id); + }, + + /** + * Returns the style property for the DOM element (i.e., + * document.getElById(id).style) + * @method getCss + * @param {String} id the id of the elment to get + * @return {Object} The style property of the element + * @deprecated use YAHOO.util.Dom instead + * @static + */ + getCss: function(id) { + var el = YAHOO.util.Dom.get(id); + return (el) ? el.style : null; + }, + + /** + * Inner class for cached elements + * @class DragDropMgr.ElementWrapper + * @for DragDropMgr + * @private + * @deprecated + */ + ElementWrapper: function(el) { + /** + * The element + * @property el + */ + this.el = el || null; + /** + * The element id + * @property id + */ + this.id = this.el && el.id; + /** + * A reference to the style property + * @property css + */ + this.css = this.el && el.style; + }, + + /** + * Returns the X position of an html element + * @method getPosX + * @param el the element for which to get the position + * @return {int} the X coordinate + * @for DragDropMgr + * @deprecated use YAHOO.util.Dom.getX instead + * @static + */ + getPosX: function(el) { + return YAHOO.util.Dom.getX(el); + }, + + /** + * Returns the Y position of an html element + * @method getPosY + * @param el the element for which to get the position + * @return {int} the Y coordinate + * @deprecated use YAHOO.util.Dom.getY instead + * @static + */ + getPosY: function(el) { + return YAHOO.util.Dom.getY(el); + }, + + /** + * Swap two nodes. In IE, we use the native method, for others we + * emulate the IE behavior + * @method swapNode + * @param n1 the first node to swap + * @param n2 the other node to swap + * @static + */ + swapNode: function(n1, n2) { + if (n1.swapNode) { + n1.swapNode(n2); + } else { + var p = n2.parentNode; + var s = n2.nextSibling; + + if (s == n1) { + p.insertBefore(n1, n2); + } else if (n2 == n1.nextSibling) { + p.insertBefore(n2, n1); + } else { + n1.parentNode.replaceChild(n2, n1); + p.insertBefore(n1, s); + } + } + }, + + /** + * Returns the current scroll position + * @method getScroll + * @private + * @static + */ + getScroll: function () { + var t, l, dde=document.documentElement, db=document.body; + if (dde && (dde.scrollTop || dde.scrollLeft)) { + t = dde.scrollTop; + l = dde.scrollLeft; + } else if (db) { + t = db.scrollTop; + l = db.scrollLeft; + } else { + } + return { top: t, left: l }; + }, + + /** + * Returns the specified element style property + * @method getStyle + * @param {HTMLElement} el the element + * @param {string} styleProp the style property + * @return {string} The value of the style property + * @deprecated use YAHOO.util.Dom.getStyle + * @static + */ + getStyle: function(el, styleProp) { + return YAHOO.util.Dom.getStyle(el, styleProp); + }, + + /** + * Gets the scrollTop + * @method getScrollTop + * @return {int} the document's scrollTop + * @static + */ + getScrollTop: function () { return this.getScroll().top; }, + + /** + * Gets the scrollLeft + * @method getScrollLeft + * @return {int} the document's scrollTop + * @static + */ + getScrollLeft: function () { return this.getScroll().left; }, + + /** + * Sets the x/y position of an element to the location of the + * target element. + * @method moveToEl + * @param {HTMLElement} moveEl The element to move + * @param {HTMLElement} targetEl The position reference element + * @static + */ + moveToEl: function (moveEl, targetEl) { + var aCoord = YAHOO.util.Dom.getXY(targetEl); + YAHOO.util.Dom.setXY(moveEl, aCoord); + }, + + /** + * Gets the client height + * @method getClientHeight + * @return {int} client height in px + * @deprecated use YAHOO.util.Dom.getViewportHeight instead + * @static + */ + getClientHeight: function() { + return YAHOO.util.Dom.getViewportHeight(); + }, + + /** + * Gets the client width + * @method getClientWidth + * @return {int} client width in px + * @deprecated use YAHOO.util.Dom.getViewportWidth instead + * @static + */ + getClientWidth: function() { + return YAHOO.util.Dom.getViewportWidth(); + }, + + /** + * Numeric array sort function + * @method numericSort + * @static + */ + numericSort: function(a, b) { return (a - b); }, + + /** + * Internal counter + * @property _timeoutCount + * @private + * @static + */ + _timeoutCount: 0, + + /** + * Trying to make the load order less important. Without this we get + * an error if this file is loaded before the Event Utility. + * @method _addListeners + * @private + * @static + */ + _addListeners: function() { + var DDM = YAHOO.util.DDM; + if ( YAHOO.util.Event && document ) { + DDM._onLoad(); + } else { + if (DDM._timeoutCount > 2000) { + } else { + setTimeout(DDM._addListeners, 10); + if (document && document.body) { + DDM._timeoutCount += 1; + } + } + } + }, + + /** + * Recursively searches the immediate parent and all child nodes for + * the handle element in order to determine wheter or not it was + * clicked. + * @method handleWasClicked + * @param node the html element to inspect + * @static + */ + handleWasClicked: function(node, id) { + if (this.isHandle(id, node.id)) { + return true; + } else { + // check to see if this is a text node child of the one we want + var p = node.parentNode; + + while (p) { + if (this.isHandle(id, p.id)) { + return true; + } else { + p = p.parentNode; + } + } + } + + return false; + } + + }; + +}(); + +// shorter alias, save a few bytes +YAHOO.util.DDM = YAHOO.util.DragDropMgr; +YAHOO.util.DDM._addListeners(); + +} + +(function() { + +var Event=YAHOO.util.Event; +var Dom=YAHOO.util.Dom; + +/** + * Defines the interface and base operation of items that that can be + * dragged or can be drop targets. It was designed to be extended, overriding + * the event handlers for startDrag, onDrag, onDragOver, onDragOut. + * Up to three html elements can be associated with a DragDrop instance: + * <ul> + * <li>linked element: the element that is passed into the constructor. + * This is the element which defines the boundaries for interaction with + * other DragDrop objects.</li> + * <li>handle element(s): The drag operation only occurs if the element that + * was clicked matches a handle element. By default this is the linked + * element, but there are times that you will want only a portion of the + * linked element to initiate the drag operation, and the setHandleElId() + * method provides a way to define this.</li> + * <li>drag element: this represents an the element that would be moved along + * with the cursor during a drag operation. By default, this is the linked + * element itself as in {@link YAHOO.util.DD}. setDragElId() lets you define + * a separate element that would be moved, as in {@link YAHOO.util.DDProxy} + * </li> + * </ul> + * This class should not be instantiated until the onload event to ensure that + * the associated elements are available. + * The following would define a DragDrop obj that would interact with any + * other DragDrop obj in the "group1" group: + * <pre> + * dd = new YAHOO.util.DragDrop("div1", "group1"); + * </pre> + * Since none of the event handlers have been implemented, nothing would + * actually happen if you were to run the code above. Normally you would + * override this class or one of the default implementations, but you can + * also override the methods you want on an instance of the class... + * <pre> + * dd.onDragDrop = function(e, id) { + * alert("dd was dropped on " + id); + * } + * </pre> + * @namespace YAHOO.util + * @class DragDrop + * @constructor + * @param {String} id of the element that is linked to this instance + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DragDrop: + * padding, isTarget, maintainOffset, primaryButtonOnly, + */ +YAHOO.util.DragDrop = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}; + +YAHOO.util.DragDrop.prototype = { + + /** + * The id of the element associated with this object. This is what we + * refer to as the "linked element" because the size and position of + * this element is used to determine when the drag and drop objects have + * interacted. + * @property id + * @type String + */ + id: null, + + /** + * Configuration attributes passed into the constructor + * @property config + * @type object + */ + config: null, + + /** + * The id of the element that will be dragged. By default this is same + * as the linked element , but could be changed to another element. Ex: + * YAHOO.util.DDProxy + * @property dragElId + * @type String + * @private + */ + dragElId: null, + + /** + * the id of the element that initiates the drag operation. By default + * this is the linked element, but could be changed to be a child of this + * element. This lets us do things like only starting the drag when the + * header element within the linked html element is clicked. + * @property handleElId + * @type String + * @private + */ + handleElId: null, + + /** + * An associative array of HTML tags that will be ignored if clicked. + * @property invalidHandleTypes + * @type {string: string} + */ + invalidHandleTypes: null, + + /** + * An associative array of ids for elements that will be ignored if clicked + * @property invalidHandleIds + * @type {string: string} + */ + invalidHandleIds: null, + + /** + * An indexted array of css class names for elements that will be ignored + * if clicked. + * @property invalidHandleClasses + * @type string[] + */ + invalidHandleClasses: null, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageX + * @type int + * @private + */ + startPageX: 0, + + /** + * The linked element's absolute X position at the time the drag was + * started + * @property startPageY + * @type int + * @private + */ + startPageY: 0, + + /** + * The group defines a logical collection of DragDrop objects that are + * related. Instances only get events when interacting with other + * DragDrop object in the same group. This lets us define multiple + * groups using a single DragDrop subclass if we want. + * @property groups + * @type {string: string} + */ + groups: null, + + /** + * Individual drag/drop instances can be locked. This will prevent + * onmousedown start drag. + * @property locked + * @type boolean + * @private + */ + locked: false, + + /** + * Lock this instance + * @method lock + */ + lock: function() { this.locked = true; }, + + /** + * Unlock this instace + * @method unlock + */ + unlock: function() { this.locked = false; }, + + /** + * By default, all insances can be a drop target. This can be disabled by + * setting isTarget to false. + * @method isTarget + * @type boolean + */ + isTarget: true, + + /** + * The padding configured for this drag and drop object for calculating + * the drop zone intersection with this object. + * @method padding + * @type int[] + */ + padding: null, + + /** + * Cached reference to the linked element + * @property _domRef + * @private + */ + _domRef: null, + + /** + * Internal typeof flag + * @property __ygDragDrop + * @private + */ + __ygDragDrop: true, + + /** + * Set to true when horizontal contraints are applied + * @property constrainX + * @type boolean + * @private + */ + constrainX: false, + + /** + * Set to true when vertical contraints are applied + * @property constrainY + * @type boolean + * @private + */ + constrainY: false, + + /** + * The left constraint + * @property minX + * @type int + * @private + */ + minX: 0, + + /** + * The right constraint + * @property maxX + * @type int + * @private + */ + maxX: 0, + + /** + * The up constraint + * @property minY + * @type int + * @type int + * @private + */ + minY: 0, + + /** + * The down constraint + * @property maxY + * @type int + * @private + */ + maxY: 0, + + /** + * Maintain offsets when we resetconstraints. Set to true when you want + * the position of the element relative to its parent to stay the same + * when the page changes + * + * @property maintainOffset + * @type boolean + */ + maintainOffset: false, + + /** + * Array of pixel locations the element will snap to if we specified a + * horizontal graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property xTicks + * @type int[] + */ + xTicks: null, + + /** + * Array of pixel locations the element will snap to if we specified a + * vertical graduation/interval. This array is generated automatically + * when you define a tick interval. + * @property yTicks + * @type int[] + */ + yTicks: null, + + /** + * By default the drag and drop instance will only respond to the primary + * button click (left button for a right-handed mouse). Set to true to + * allow drag and drop to start with any mouse click that is propogated + * by the browser + * @property primaryButtonOnly + * @type boolean + */ + primaryButtonOnly: true, + + /** + * The availabe property is false until the linked dom element is accessible. + * @property available + * @type boolean + */ + available: false, + + /** + * By default, drags can only be initiated if the mousedown occurs in the + * region the linked element is. This is done in part to work around a + * bug in some browsers that mis-report the mousedown if the previous + * mouseup happened outside of the window. This property is set to true + * if outer handles are defined. + * + * @property hasOuterHandles + * @type boolean + * @default false + */ + hasOuterHandles: false, + + /** + * Code that executes immediately before the startDrag event + * @method b4StartDrag + * @private + */ + b4StartDrag: function(x, y) { }, + + /** + * Abstract method called after a drag/drop object is clicked + * and the drag or mousedown time thresholds have beeen met. + * @method startDrag + * @param {int} X click location + * @param {int} Y click location + */ + startDrag: function(x, y) { /* override this */ }, + + /** + * Code that executes immediately before the onDrag event + * @method b4Drag + * @private + */ + b4Drag: function(e) { }, + + /** + * Abstract method called during the onMouseMove event while dragging an + * object. + * @method onDrag + * @param {Event} e the mousemove event + */ + onDrag: function(e) { /* override this */ }, + + /** + * Abstract method called when this element fist begins hovering over + * another DragDrop obj + * @method onDragEnter + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of one or more + * dragdrop items being hovered over. + */ + onDragEnter: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOver event + * @method b4DragOver + * @private + */ + b4DragOver: function(e) { }, + + /** + * Abstract method called when this element is hovering over another + * DragDrop obj + * @method onDragOver + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this is hovering over. In INTERSECT mode, an array of dd items + * being hovered over. + */ + onDragOver: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragOut event + * @method b4DragOut + * @private + */ + b4DragOut: function(e) { }, + + /** + * Abstract method called when we are no longer hovering over an element + * @method onDragOut + * @param {Event} e the mousemove event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was hovering over. In INTERSECT mode, an array of dd items + * that the mouse is no longer over. + */ + onDragOut: function(e, id) { /* override this */ }, + + /** + * Code that executes immediately before the onDragDrop event + * @method b4DragDrop + * @private + */ + b4DragDrop: function(e) { }, + + /** + * Abstract method called when this item is dropped on another DragDrop + * obj + * @method onDragDrop + * @param {Event} e the mouseup event + * @param {String|DragDrop[]} id In POINT mode, the element + * id this was dropped on. In INTERSECT mode, an array of dd items this + * was dropped on. + */ + onDragDrop: function(e, id) { /* override this */ }, + + /** + * Abstract method called when this item is dropped on an area with no + * drop target + * @method onInvalidDrop + * @param {Event} e the mouseup event + */ + onInvalidDrop: function(e) { /* override this */ }, + + /** + * Code that executes immediately before the endDrag event + * @method b4EndDrag + * @private + */ + b4EndDrag: function(e) { }, + + /** + * Fired when we are done dragging the object + * @method endDrag + * @param {Event} e the mouseup event + */ + endDrag: function(e) { /* override this */ }, + + /** + * Code executed immediately before the onMouseDown event + * @method b4MouseDown + * @param {Event} e the mousedown event + * @private + */ + b4MouseDown: function(e) { }, + + /** + * Event handler that fires when a drag/drop obj gets a mousedown + * @method onMouseDown + * @param {Event} e the mousedown event + */ + onMouseDown: function(e) { /* override this */ }, + + /** + * Event handler that fires when a drag/drop obj gets a mouseup + * @method onMouseUp + * @param {Event} e the mouseup event + */ + onMouseUp: function(e) { /* override this */ }, + + /** + * Override the onAvailable method to do what is needed after the initial + * position was determined. + * @method onAvailable + */ + onAvailable: function () { + }, + + /** + * Returns a reference to the linked element + * @method getEl + * @return {HTMLElement} the html element + */ + getEl: function() { + if (!this._domRef) { + this._domRef = Dom.get(this.id); + } + + return this._domRef; + }, + + /** + * Returns a reference to the actual element to drag. By default this is + * the same as the html element, but it can be assigned to another + * element. An example of this can be found in YAHOO.util.DDProxy + * @method getDragEl + * @return {HTMLElement} the html element + */ + getDragEl: function() { + return Dom.get(this.dragElId); + }, + + /** + * Sets up the DragDrop object. Must be called in the constructor of any + * YAHOO.util.DragDrop subclass + * @method init + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + init: function(id, sGroup, config) { + this.initTarget(id, sGroup, config); + Event.on(this.id, "mousedown", this.handleMouseDown, this, true); + // Event.on(this.id, "selectstart", Event.preventDefault); + }, + + /** + * Initializes Targeting functionality only... the object does not + * get a mousedown handler. + * @method initTarget + * @param id the id of the linked element + * @param {String} sGroup the group of related items + * @param {object} config configuration attributes + */ + initTarget: function(id, sGroup, config) { + + // configuration attributes + this.config = config || {}; + + // create a local reference to the drag and drop manager + this.DDM = YAHOO.util.DDM; + // initialize the groups array + this.groups = {}; + + // assume that we have an element reference instead of an id if the + // parameter is not a string + if (typeof id !== "string") { + id = Dom.generateId(id); + } + + // set the id + this.id = id; + + // add to an interaction group + this.addToGroup((sGroup) ? sGroup : "default"); + + // We don't want to register this as the handle with the manager + // so we just set the id rather than calling the setter. + this.handleElId = id; + + Event.onAvailable(id, this.handleOnAvailable, this, true); + + + // the linked element is the element that gets dragged by default + this.setDragElId(id); + + // by default, clicked anchors will not start drag operations. + // @TODO what else should be here? Probably form fields. + this.invalidHandleTypes = { A: "A" }; + this.invalidHandleIds = {}; + this.invalidHandleClasses = []; + + this.applyConfig(); + }, + + /** + * Applies the configuration parameters that were passed into the constructor. + * This is supposed to happen at each level through the inheritance chain. So + * a DDProxy implentation will execute apply config on DDProxy, DD, and + * DragDrop in order to get all of the parameters that are available in + * each object. + * @method applyConfig + */ + applyConfig: function() { + + // configurable properties: + // padding, isTarget, maintainOffset, primaryButtonOnly + this.padding = this.config.padding || [0, 0, 0, 0]; + this.isTarget = (this.config.isTarget !== false); + this.maintainOffset = (this.config.maintainOffset); + this.primaryButtonOnly = (this.config.primaryButtonOnly !== false); + + }, + + /** + * Executed when the linked element is available + * @method handleOnAvailable + * @private + */ + handleOnAvailable: function() { + this.available = true; + this.resetConstraints(); + this.onAvailable(); + }, + + /** + * Configures the padding for the target zone in px. Effectively expands + * (or reduces) the virtual object size for targeting calculations. + * Supports css-style shorthand; if only one parameter is passed, all sides + * will have that padding, and if only two are passed, the top and bottom + * will have the first param, the left and right the second. + * @method setPadding + * @param {int} iTop Top pad + * @param {int} iRight Right pad + * @param {int} iBot Bot pad + * @param {int} iLeft Left pad + */ + setPadding: function(iTop, iRight, iBot, iLeft) { + // this.padding = [iLeft, iRight, iTop, iBot]; + if (!iRight && 0 !== iRight) { + this.padding = [iTop, iTop, iTop, iTop]; + } else if (!iBot && 0 !== iBot) { + this.padding = [iTop, iRight, iTop, iRight]; + } else { + this.padding = [iTop, iRight, iBot, iLeft]; + } + }, + + /** + * Stores the initial placement of the linked element. + * @method setInitialPosition + * @param {int} diffX the X offset, default 0 + * @param {int} diffY the Y offset, default 0 + */ + setInitPosition: function(diffX, diffY) { + var el = this.getEl(); + + if (!this.DDM.verifyEl(el)) { + return; + } + + var dx = diffX || 0; + var dy = diffY || 0; + + var p = Dom.getXY( el ); + + this.initPageX = p[0] - dx; + this.initPageY = p[1] - dy; + + this.lastPageX = p[0]; + this.lastPageY = p[1]; + + + + this.setStartPosition(p); + }, + + /** + * Sets the start position of the element. This is set when the obj + * is initialized, the reset when a drag is started. + * @method setStartPosition + * @param pos current position (from previous lookup) + * @private + */ + setStartPosition: function(pos) { + var p = pos || Dom.getXY( this.getEl() ); + + this.deltaSetXY = null; + + this.startPageX = p[0]; + this.startPageY = p[1]; + }, + + /** + * Add this instance to a group of related drag/drop objects. All + * instances belong to at least one group, and can belong to as many + * groups as needed. + * @method addToGroup + * @param sGroup {string} the name of the group + */ + addToGroup: function(sGroup) { + this.groups[sGroup] = true; + this.DDM.regDragDrop(this, sGroup); + }, + + /** + * Remove's this instance from the supplied interaction group + * @method removeFromGroup + * @param {string} sGroup The group to drop + */ + removeFromGroup: function(sGroup) { + if (this.groups[sGroup]) { + delete this.groups[sGroup]; + } + + this.DDM.removeDDFromGroup(this, sGroup); + }, + + /** + * Allows you to specify that an element other than the linked element + * will be moved with the cursor during a drag + * @method setDragElId + * @param id {string} the id of the element that will be used to initiate the drag + */ + setDragElId: function(id) { + this.dragElId = id; + }, + + /** + * Allows you to specify a child of the linked element that should be + * used to initiate the drag operation. An example of this would be if + * you have a content div with text and links. Clicking anywhere in the + * content area would normally start the drag operation. Use this method + * to specify that an element inside of the content div is the element + * that starts the drag operation. + * @method setHandleElId + * @param id {string} the id of the element that will be used to + * initiate the drag. + */ + setHandleElId: function(id) { + if (typeof id !== "string") { + id = Dom.generateId(id); + } + this.handleElId = id; + this.DDM.regHandle(this.id, id); + }, + + /** + * Allows you to set an element outside of the linked element as a drag + * handle + * @method setOuterHandleElId + * @param id the id of the element that will be used to initiate the drag + */ + setOuterHandleElId: function(id) { + if (typeof id !== "string") { + id = Dom.generateId(id); + } + Event.on(id, "mousedown", + this.handleMouseDown, this, true); + this.setHandleElId(id); + + this.hasOuterHandles = true; + }, + + /** + * Remove all drag and drop hooks for this element + * @method unreg + */ + unreg: function() { + Event.removeListener(this.id, "mousedown", + this.handleMouseDown); + this._domRef = null; + this.DDM._remove(this); + }, + + /** + * Returns true if this instance is locked, or the drag drop mgr is locked + * (meaning that all drag/drop is disabled on the page.) + * @method isLocked + * @return {boolean} true if this obj or all drag/drop is locked, else + * false + */ + isLocked: function() { + return (this.DDM.isLocked() || this.locked); + }, + + /** + * Fired when this object is clicked + * @method handleMouseDown + * @param {Event} e + * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj) + * @private + */ + handleMouseDown: function(e, oDD) { + + var button = e.which || e.button; + + if (this.primaryButtonOnly && button > 1) { + return; + } + + if (this.isLocked()) { + return; + } + + + + // firing the mousedown events prior to calculating positions + this.b4MouseDown(e); + this.onMouseDown(e); + + this.DDM.refreshCache(this.groups); + // var self = this; + // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0); + + // Only process the event if we really clicked within the linked + // element. The reason we make this check is that in the case that + // another element was moved between the clicked element and the + // cursor in the time between the mousedown and mouseup events. When + // this happens, the element gets the next mousedown event + // regardless of where on the screen it happened. + var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e)); + if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) { + } else { + if (this.clickValidator(e)) { + + + // set the initial element position + this.setStartPosition(); + + // start tracking mousemove distance and mousedown time to + // determine when to start the actual drag + this.DDM.handleMouseDown(e, this); + + // this mousedown is mine + this.DDM.stopEvent(e); + } else { + + + } + } + }, + + clickValidator: function(e) { + var target = Event.getTarget(e); + return ( this.isValidHandleChild(target) && + (this.id == this.handleElId || + this.DDM.handleWasClicked(target, this.id)) ); + }, + + /** + * Allows you to specify a tag name that should not start a drag operation + * when clicked. This is designed to facilitate embedding links within a + * drag handle that do something other than start the drag. + * @method addInvalidHandleType + * @param {string} tagName the type of element to exclude + */ + addInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + this.invalidHandleTypes[type] = type; + }, + + /** + * Lets you to specify an element id for a child of a drag handle + * that should not initiate a drag + * @method addInvalidHandleId + * @param {string} id the element id of the element you wish to ignore + */ + addInvalidHandleId: function(id) { + if (typeof id !== "string") { + id = Dom.generateId(id); + } + this.invalidHandleIds[id] = id; + }, + + + /** + * Lets you specify a css class of elements that will not initiate a drag + * @method addInvalidHandleClass + * @param {string} cssClass the class of the elements you wish to ignore + */ + addInvalidHandleClass: function(cssClass) { + this.invalidHandleClasses.push(cssClass); + }, + + /** + * Unsets an excluded tag name set by addInvalidHandleType + * @method removeInvalidHandleType + * @param {string} tagName the type of element to unexclude + */ + removeInvalidHandleType: function(tagName) { + var type = tagName.toUpperCase(); + // this.invalidHandleTypes[type] = null; + delete this.invalidHandleTypes[type]; + }, + + /** + * Unsets an invalid handle id + * @method removeInvalidHandleId + * @param {string} id the id of the element to re-enable + */ + removeInvalidHandleId: function(id) { + if (typeof id !== "string") { + id = Dom.generateId(id); + } + delete this.invalidHandleIds[id]; + }, + + /** + * Unsets an invalid css class + * @method removeInvalidHandleClass + * @param {string} cssClass the class of the element(s) you wish to + * re-enable + */ + removeInvalidHandleClass: function(cssClass) { + for (var i=0, len=this.invalidHandleClasses.length; i<len; ++i) { + if (this.invalidHandleClasses[i] == cssClass) { + delete this.invalidHandleClasses[i]; + } + } + }, + + /** + * Checks the tag exclusion list to see if this click should be ignored + * @method isValidHandleChild + * @param {HTMLElement} node the HTMLElement to evaluate + * @return {boolean} true if this is a valid tag type, false if not + */ + isValidHandleChild: function(node) { + + var valid = true; + // var n = (node.nodeName == "#text") ? node.parentNode : node; + var nodeName; + try { + nodeName = node.nodeName.toUpperCase(); + } catch(e) { + nodeName = node.nodeName; + } + valid = valid && !this.invalidHandleTypes[nodeName]; + valid = valid && !this.invalidHandleIds[node.id]; + + for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) { + valid = !Dom.hasClass(node, this.invalidHandleClasses[i]); + } + + + return valid; + + }, + + /** + * Create the array of horizontal tick marks if an interval was specified + * in setXConstraint(). + * @method setXTicks + * @private + */ + setXTicks: function(iStartX, iTickSize) { + this.xTicks = []; + this.xTickSize = iTickSize; + + var tickMap = {}; + + for (var i = this.initPageX; i >= this.minX; i = i - iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + + this.xTicks.sort(this.DDM.numericSort) ; + }, + + /** + * Create the array of vertical tick marks if an interval was specified in + * setYConstraint(). + * @method setYTicks + * @private + */ + setYTicks: function(iStartY, iTickSize) { + this.yTicks = []; + this.yTickSize = iTickSize; + + var tickMap = {}; + + for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + + this.yTicks.sort(this.DDM.numericSort) ; + }, + + /** + * By default, the element can be dragged any place on the screen. Use + * this method to limit the horizontal travel of the element. Pass in + * 0,0 for the parameters if you want to lock the drag to the y axis. + * @method setXConstraint + * @param {int} iLeft the number of pixels the element can move to the left + * @param {int} iRight the number of pixels the element can move to the + * right + * @param {int} iTickSize optional parameter for specifying that the + * element + * should move iTickSize pixels at a time. + */ + setXConstraint: function(iLeft, iRight, iTickSize) { + this.leftConstraint = parseInt(iLeft, 10); + this.rightConstraint = parseInt(iRight, 10); + + this.minX = this.initPageX - this.leftConstraint; + this.maxX = this.initPageX + this.rightConstraint; + if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); } + + this.constrainX = true; + }, + + /** + * Clears any constraints applied to this instance. Also clears ticks + * since they can't exist independent of a constraint at this time. + * @method clearConstraints + */ + clearConstraints: function() { + this.constrainX = false; + this.constrainY = false; + this.clearTicks(); + }, + + /** + * Clears any tick interval defined for this instance + * @method clearTicks + */ + clearTicks: function() { + this.xTicks = null; + this.yTicks = null; + this.xTickSize = 0; + this.yTickSize = 0; + }, + + /** + * By default, the element can be dragged any place on the screen. Set + * this to limit the vertical travel of the element. Pass in 0,0 for the + * parameters if you want to lock the drag to the x axis. + * @method setYConstraint + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the + * element should move iTickSize pixels at a time. + */ + setYConstraint: function(iUp, iDown, iTickSize) { + this.topConstraint = parseInt(iUp, 10); + this.bottomConstraint = parseInt(iDown, 10); + + this.minY = this.initPageY - this.topConstraint; + this.maxY = this.initPageY + this.bottomConstraint; + if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); } + + this.constrainY = true; + + }, + + /** + * resetConstraints must be called if you manually reposition a dd element. + * @method resetConstraints + * @param {boolean} maintainOffset + */ + resetConstraints: function() { + + + // Maintain offsets if necessary + if (this.initPageX || this.initPageX === 0) { + // figure out how much this thing has moved + var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0; + var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0; + + this.setInitPosition(dx, dy); + + // This is the first time we have detected the element's position + } else { + this.setInitPosition(); + } + + if (this.constrainX) { + this.setXConstraint( this.leftConstraint, + this.rightConstraint, + this.xTickSize ); + } + + if (this.constrainY) { + this.setYConstraint( this.topConstraint, + this.bottomConstraint, + this.yTickSize ); + } + }, + + /** + * Normally the drag element is moved pixel by pixel, but we can specify + * that it move a number of pixels at a time. This method resolves the + * location when we have it set up like this. + * @method getTick + * @param {int} val where we want to place the object + * @param {int[]} tickArray sorted array of valid points + * @return {int} the closest tick + * @private + */ + getTick: function(val, tickArray) { + + if (!tickArray) { + // If tick interval is not defined, it is effectively 1 pixel, + // so we return the value passed to us. + return val; + } else if (tickArray[0] >= val) { + // The value is lower than the first tick, so we return the first + // tick. + return tickArray[0]; + } else { + for (var i=0, len=tickArray.length; i<len; ++i) { + var next = i + 1; + if (tickArray[next] && tickArray[next] >= val) { + var diff1 = val - tickArray[i]; + var diff2 = tickArray[next] - val; + return (diff2 > diff1) ? tickArray[i] : tickArray[next]; + } + } + + // The value is larger than the last tick, so we return the last + // tick. + return tickArray[tickArray.length - 1]; + } + }, + + /** + * toString method + * @method toString + * @return {string} string representation of the dd obj + */ + toString: function() { + return ("DragDrop " + this.id); + } + +}; + +})(); +/** + * A DragDrop implementation where the linked element follows the + * mouse cursor during a drag. + * @class DD + * @extends YAHOO.util.DragDrop + * @constructor + * @param {String} id the id of the linked element + * @param {String} sGroup the group of related DragDrop items + * @param {object} config an object containing configurable attributes + * Valid properties for DD: + * scroll + */ +YAHOO.util.DD = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}; + +YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, { + + /** + * When set to true, the utility automatically tries to scroll the browser + * window wehn a drag and drop element is dragged near the viewport boundary. + * Defaults to true. + * @property scroll + * @type boolean + */ + scroll: true, + + /** + * Sets the pointer offset to the distance between the linked element's top + * left corner and the location the element was clicked + * @method autoOffset + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + */ + autoOffset: function(iPageX, iPageY) { + var x = iPageX - this.startPageX; + var y = iPageY - this.startPageY; + this.setDelta(x, y); + }, + + /** + * Sets the pointer offset. You can call this directly to force the + * offset to be in a particular location (e.g., pass in 0,0 to set it + * to the center of the object, as done in YAHOO.widget.Slider) + * @method setDelta + * @param {int} iDeltaX the distance from the left + * @param {int} iDeltaY the distance from the top + */ + setDelta: function(iDeltaX, iDeltaY) { + this.deltaX = iDeltaX; + this.deltaY = iDeltaY; + }, + + /** + * Sets the drag element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method setDragElPos + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + setDragElPos: function(iPageX, iPageY) { + // the first time we do this, we are going to check to make sure + // the element has css positioning + + var el = this.getDragEl(); + this.alignElWithMouse(el, iPageX, iPageY); + }, + + /** + * Sets the element to the location of the mousedown or click event, + * maintaining the cursor location relative to the location on the element + * that was clicked. Override this if you want to place the element in a + * location other than where the cursor is. + * @method alignElWithMouse + * @param {HTMLElement} el the element to move + * @param {int} iPageX the X coordinate of the mousedown or drag event + * @param {int} iPageY the Y coordinate of the mousedown or drag event + */ + alignElWithMouse: function(el, iPageX, iPageY) { + var oCoord = this.getTargetCoord(iPageX, iPageY); + + if (!this.deltaSetXY) { + var aCoord = [oCoord.x, oCoord.y]; + YAHOO.util.Dom.setXY(el, aCoord); + var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ]; + } else { + YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px"); + YAHOO.util.Dom.setStyle(el, "top", (oCoord.y + this.deltaSetXY[1]) + "px"); + } + + this.cachePosition(oCoord.x, oCoord.y); + this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth); + }, + + /** + * Saves the most recent position so that we can reset the constraints and + * tick marks on-demand. We need to know this so that we can calculate the + * number of pixels the element is offset from its original position. + * @method cachePosition + * @param iPageX the current x position (optional, this just makes it so we + * don't have to look it up again) + * @param iPageY the current y position (optional, this just makes it so we + * don't have to look it up again) + */ + cachePosition: function(iPageX, iPageY) { + if (iPageX) { + this.lastPageX = iPageX; + this.lastPageY = iPageY; + } else { + var aCoord = YAHOO.util.Dom.getXY(this.getEl()); + this.lastPageX = aCoord[0]; + this.lastPageY = aCoord[1]; + } + }, + + /** + * Auto-scroll the window if the dragged object has been moved beyond the + * visible window boundary. + * @method autoScroll + * @param {int} x the drag element's x position + * @param {int} y the drag element's y position + * @param {int} h the height of the drag element + * @param {int} w the width of the drag element + * @private + */ + autoScroll: function(x, y, h, w) { + + if (this.scroll) { + // The client height + var clientH = this.DDM.getClientHeight(); + + // The client width + var clientW = this.DDM.getClientWidth(); + + // The amt scrolled down + var st = this.DDM.getScrollTop(); + + // The amt scrolled right + var sl = this.DDM.getScrollLeft(); + + // Location of the bottom of the element + var bot = h + y; + + // Location of the right of the element + var right = w + x; + + // The distance from the cursor to the bottom of the visible area, + // adjusted so that we don't scroll if the cursor is beyond the + // element drag constraints + var toBot = (clientH + st - y - this.deltaY); + + // The distance from the cursor to the right of the visible area + var toRight = (clientW + sl - x - this.deltaX); + + + // How close to the edge the cursor must be before we scroll + // var thresh = (document.all) ? 100 : 40; + var thresh = 40; + + // How many pixels to scroll per autoscroll op. This helps to reduce + // clunky scrolling. IE is more sensitive about this ... it needs this + // value to be higher. + var scrAmt = (document.all) ? 80 : 30; + + // Scroll down if we are near the bottom of the visible page and the + // obj extends below the crease + if ( bot > clientH && toBot < thresh ) { + window.scrollTo(sl, st + scrAmt); + } + + // Scroll up if the window is scrolled down and the top of the object + // goes above the top border + if ( y < st && st > 0 && y - st < thresh ) { + window.scrollTo(sl, st - scrAmt); + } + + // Scroll right if the obj is beyond the right border and the cursor is + // near the border. + if ( right > clientW && toRight < thresh ) { + window.scrollTo(sl + scrAmt, st); + } + + // Scroll left if the window has been scrolled to the right and the obj + // extends past the left border + if ( x < sl && sl > 0 && x - sl < thresh ) { + window.scrollTo(sl - scrAmt, st); + } + } + }, + + /** + * Finds the location the element should be placed if we want to move + * it to where the mouse location less the click offset would place us. + * @method getTargetCoord + * @param {int} iPageX the X coordinate of the click + * @param {int} iPageY the Y coordinate of the click + * @return an object that contains the coordinates (Object.x and Object.y) + * @private + */ + getTargetCoord: function(iPageX, iPageY) { + + + var x = iPageX - this.deltaX; + var y = iPageY - this.deltaY; + + if (this.constrainX) { + if (x < this.minX) { x = this.minX; } + if (x > this.maxX) { x = this.maxX; } + } + + if (this.constrainY) { + if (y < this.minY) { y = this.minY; } + if (y > this.maxY) { y = this.maxY; } + } + + x = this.getTick(x, this.xTicks); + y = this.getTick(y, this.yTicks); + + + return {x:x, y:y}; + }, + + /* + * Sets up config options specific to this class. Overrides + * YAHOO.util.DragDrop, but all versions of this method through the + * inheritance chain are called + */ + applyConfig: function() { + YAHOO.util.DD.superclass.applyConfig.call(this); + this.scroll = (this.config.scroll !== false); + }, + + /* + * Event that fires prior to the onMouseDown event. Overrides + * YAHOO.util.DragDrop. + */ + b4MouseDown: function(e) { + this.setStartPosition(); + // this.resetConstraints(); + this.autoOffset(YAHOO.util.Event.getPageX(e), + YAHOO.util.Event.getPageY(e)); + }, + + /* + * Event that fires prior to the onDrag event. Overrides + * YAHOO.util.DragDrop. + */ + b4Drag: function(e) { + this.setDragElPos(YAHOO.util.Event.getPageX(e), + YAHOO.util.Event.getPageY(e)); + }, + + toString: function() { + return ("DD " + this.id); + } + + ////////////////////////////////////////////////////////////////////////// + // Debugging ygDragDrop events that can be overridden + ////////////////////////////////////////////////////////////////////////// + /* + startDrag: function(x, y) { + }, + + onDrag: function(e) { + }, + + onDragEnter: function(e, id) { + }, + + onDragOver: function(e, id) { + }, + + onDragOut: function(e, id) { + }, + + onDragDrop: function(e, id) { + }, + + endDrag: function(e) { + } + + */ + +}); +/** + * A DragDrop implementation that inserts an empty, bordered div into + * the document that follows the cursor during drag operations. At the time of + * the click, the frame div is resized to the dimensions of the linked html + * element, and moved to the exact location of the linked element. + * + * References to the "frame" element refer to the single proxy element that + * was created to be dragged in place of all DDProxy elements on the + * page. + * + * @class DDProxy + * @extends YAHOO.util.DD + * @constructor + * @param {String} id the id of the linked html element + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDProxy in addition to those in DragDrop: + * resizeFrame, centerFrame, dragElId + */ +YAHOO.util.DDProxy = function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + this.initFrame(); + } +}; + +/** + * The default drag frame div id + * @property YAHOO.util.DDProxy.dragElId + * @type String + * @static + */ +YAHOO.util.DDProxy.dragElId = "ygddfdiv"; + +YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, { + + /** + * By default we resize the drag frame to be the same size as the element + * we want to drag (this is to get the frame effect). We can turn it off + * if we want a different behavior. + * @property resizeFrame + * @type boolean + */ + resizeFrame: true, + + /** + * By default the frame is positioned exactly where the drag element is, so + * we use the cursor offset provided by YAHOO.util.DD. Another option that works only if + * you do not have constraints on the obj is to have the drag frame centered + * around the cursor. Set centerFrame to true for this effect. + * @property centerFrame + * @type boolean + */ + centerFrame: false, + + /** + * Creates the proxy element if it does not yet exist + * @method createFrame + */ + createFrame: function() { + var self = this; + var body = document.body; + + if (!body || !body.firstChild) { + setTimeout( function() { self.createFrame(); }, 50 ); + return; + } + + var div = this.getDragEl(); + + if (!div) { + div = document.createElement("div"); + div.id = this.dragElId; + var s = div.style; + + s.position = "absolute"; + s.visibility = "hidden"; + s.cursor = "move"; + s.border = "2px solid #aaa"; + s.zIndex = 999; + + // appendChild can blow up IE if invoked prior to the window load event + // while rendering a table. It is possible there are other scenarios + // that would cause this to happen as well. + body.insertBefore(div, body.firstChild); + } + }, + + /** + * Initialization for the drag frame element. Must be called in the + * constructor of all subclasses + * @method initFrame + */ + initFrame: function() { + this.createFrame(); + }, + + applyConfig: function() { + YAHOO.util.DDProxy.superclass.applyConfig.call(this); + + this.resizeFrame = (this.config.resizeFrame !== false); + this.centerFrame = (this.config.centerFrame); + this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId); + }, + + /** + * Resizes the drag frame to the dimensions of the clicked object, positions + * it over the object, and finally displays it + * @method showFrame + * @param {int} iPageX X click position + * @param {int} iPageY Y click position + * @private + */ + showFrame: function(iPageX, iPageY) { + var el = this.getEl(); + var dragEl = this.getDragEl(); + var s = dragEl.style; + + this._resizeProxy(); + + if (this.centerFrame) { + this.setDelta( Math.round(parseInt(s.width, 10)/2), + Math.round(parseInt(s.height, 10)/2) ); + } + + this.setDragElPos(iPageX, iPageY); + + YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible"); + }, + + /** + * The proxy is automatically resized to the dimensions of the linked + * element when a drag is initiated, unless resizeFrame is set to false + * @method _resizeProxy + * @private + */ + _resizeProxy: function() { + if (this.resizeFrame) { + var DOM = YAHOO.util.Dom; + var el = this.getEl(); + var dragEl = this.getDragEl(); + + var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth" ), 10); + var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth" ), 10); + var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10); + var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth" ), 10); + + if (isNaN(bt)) { bt = 0; } + if (isNaN(br)) { br = 0; } + if (isNaN(bb)) { bb = 0; } + if (isNaN(bl)) { bl = 0; } + + + var newWidth = Math.max(0, el.offsetWidth - br - bl); + var newHeight = Math.max(0, el.offsetHeight - bt - bb); + + + DOM.setStyle( dragEl, "width", newWidth + "px" ); + DOM.setStyle( dragEl, "height", newHeight + "px" ); + } + }, + + // overrides YAHOO.util.DragDrop + b4MouseDown: function(e) { + this.setStartPosition(); + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.autoOffset(x, y); + this.setDragElPos(x, y); + }, + + // overrides YAHOO.util.DragDrop + b4StartDrag: function(x, y) { + // show the drag frame + this.showFrame(x, y); + }, + + // overrides YAHOO.util.DragDrop + b4EndDrag: function(e) { + YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden"); + }, + + // overrides YAHOO.util.DragDrop + // By default we try to move the element to the last location of the frame. + // This is so that the default behavior mirrors that of YAHOO.util.DD. + endDrag: function(e) { + var DOM = YAHOO.util.Dom; + var lel = this.getEl(); + var del = this.getDragEl(); + + // Show the drag frame briefly so we can get its position + // del.style.visibility = ""; + DOM.setStyle(del, "visibility", ""); + + // Hide the linked element before the move to get around a Safari + // rendering bug. + //lel.style.visibility = "hidden"; + DOM.setStyle(lel, "visibility", "hidden"); + YAHOO.util.DDM.moveToEl(lel, del); + //del.style.visibility = "hidden"; + DOM.setStyle(del, "visibility", "hidden"); + //lel.style.visibility = ""; + DOM.setStyle(lel, "visibility", ""); + }, + + toString: function() { + return ("DDProxy " + this.id); + } + +}); +/** + * A DragDrop implementation that does not move, but can be a drop + * target. You would get the same result by simply omitting implementation + * for the event callbacks, but this way we reduce the processing cost of the + * event listener and the callbacks. + * @class DDTarget + * @extends YAHOO.util.DragDrop + * @constructor + * @param {String} id the id of the element that is a drop target + * @param {String} sGroup the group of related DragDrop objects + * @param {object} config an object containing configurable attributes + * Valid properties for DDTarget in addition to those in + * DragDrop: + * none + */ +YAHOO.util.DDTarget = function(id, sGroup, config) { + if (id) { + this.initTarget(id, sGroup, config); + } +}; + +// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop(); +YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, { + toString: function() { + return ("DDTarget " + this.id); + } +}); +YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/element/README b/interface/ispconfig/interface/js/yui/element/README new file mode 100644 index 0000000..1076b61 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/element/README @@ -0,0 +1,7 @@ +Element Release Notes + +*** version 2.2.0 *** + +* beta introduction (broken out of TabView for general use) + + * The Element class provides a wrapper for HTMLElements in the DOM and makes simpler common tasks such as adding listeners, manipulating the DOM, and setting and getting attributes. diff --git a/interface/ispconfig/interface/js/yui/element/element-beta-debug.js b/interface/ispconfig/interface/js/yui/element/element-beta-debug.js new file mode 100644 index 0000000..f430460 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/element/element-beta-debug.js @@ -0,0 +1,906 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * Provides Attribute configurations. + * @namespace YAHOO.util + * @class Attribute + * @constructor + * @param hash {Object} The intial Attribute. + * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance. + */ + +YAHOO.util.Attribute = function(hash, owner) { + if (owner) { + this.owner = owner; + this.configure(hash, true); + } +}; + +YAHOO.util.Attribute.prototype = { + /** + * The name of the attribute. + * @property name + * @type String + */ + name: undefined, + + /** + * The value of the attribute. + * @property value + * @type String + */ + value: null, + + /** + * The owner of the attribute. + * @property owner + * @type YAHOO.util.AttributeProvider + */ + owner: null, + + /** + * Whether or not the attribute is read only. + * @property readOnly + * @type Boolean + */ + readOnly: false, + + /** + * Whether or not the attribute can only be written once. + * @property writeOnce + * @type Boolean + */ + writeOnce: false, + + /** + * The attribute's initial configuration. + * @private + * @property _initialConfig + * @type Object + */ + _initialConfig: null, + + /** + * Whether or not the attribute's value has been set. + * @private + * @property _written + * @type Boolean + */ + _written: false, + + /** + * The method to use when setting the attribute's value. + * The method recieves the new value as the only argument. + * @property method + * @type Function + */ + method: null, + + /** + * The validator to use when setting the attribute's value. + * @property validator + * @type Function + * @return Boolean + */ + validator: null, + + /** + * Retrieves the current value of the attribute. + * @method getValue + * @return {any} The current value of the attribute. + */ + getValue: function() { + return this.value; + }, + + /** + * Sets the value of the attribute and fires beforeChange and change events. + * @method setValue + * @param {Any} value The value to apply to the attribute. + * @param {Boolean} silent If true the change events will not be fired. + * @return {Boolean} Whether or not the value was set. + */ + setValue: function(value, silent) { + var beforeRetVal; + var owner = this.owner; + var name = this.name; + + var event = { + type: name, + prevValue: this.getValue(), + newValue: value + }; + + if (this.readOnly || ( this.writeOnce && this._written) ) { + return false; // write not allowed + } + + if (this.validator && !this.validator.call(owner, value) ) { + return false; // invalid value + } + + if (!silent) { + beforeRetVal = owner.fireBeforeChangeEvent(event); + if (beforeRetVal === false) { + YAHOO.log('setValue ' + name + + 'cancelled by beforeChange event', 'info', 'Attribute'); + return false; + } + } + + if (this.method) { + this.method.call(owner, value); + } + + this.value = value; + this._written = true; + + event.type = name; + + if (!silent) { + this.owner.fireChangeEvent(event); + } + + return true; + }, + + /** + * Allows for configuring the Attribute's properties. + * @method configure + * @param {Object} map A key-value map of Attribute properties. + * @param {Boolean} init Whether or not this should become the initial config. + */ + configure: function(map, init) { + map = map || {}; + this._written = false; // reset writeOnce + this._initialConfig = this._initialConfig || {}; + + for (var key in map) { + if ( key && YAHOO.lang.hasOwnProperty(map, key) ) { + this[key] = map[key]; + if (init) { + this._initialConfig[key] = map[key]; + } + } + } + }, + + /** + * Resets the value to the initial config value. + * @method resetValue + * @return {Boolean} Whether or not the value was set. + */ + resetValue: function() { + return this.setValue(this._initialConfig.value); + }, + + /** + * Resets the attribute config to the initial config state. + * @method resetConfig + */ + resetConfig: function() { + this.configure(this._initialConfig); + }, + + /** + * Resets the value to the current value. + * Useful when values may have gotten out of sync with actual properties. + * @method refresh + * @return {Boolean} Whether or not the value was set. + */ + refresh: function(silent) { + this.setValue(this.value, silent); + } +}; + +(function() { + var Lang = YAHOO.util.Lang; + + /* + Copyright (c) 2006, Yahoo! Inc. All rights reserved. + Code licensed under the BSD License: + http://developer.yahoo.net/yui/license.txt + */ + + /** + * Provides and manages YAHOO.util.Attribute instances + * @namespace YAHOO.util + * @class AttributeProvider + * @uses YAHOO.util.EventProvider + */ + YAHOO.util.AttributeProvider = function() {}; + + YAHOO.util.AttributeProvider.prototype = { + + /** + * A key-value map of Attribute configurations + * @property _configs + * @protected (may be used by subclasses and augmentors) + * @private + * @type {Object} + */ + _configs: null, + /** + * Returns the current value of the attribute. + * @method get + * @param {String} key The attribute whose value will be returned. + */ + get: function(key){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + YAHOO.log(key + ' not found', 'error', 'AttributeProvider'); + return undefined; + } + + return config.value; + }, + + /** + * Sets the value of a config. + * @method set + * @param {String} key The name of the attribute + * @param {Any} value The value to apply to the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set. + */ + set: function(key, value, silent){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + YAHOO.log('set failed: ' + key + ' not found', + 'error', 'AttributeProvider'); + return false; + } + + return config.setValue(value, silent); + }, + + /** + * Returns an array of attribute names. + * @method getAttributeKeys + * @return {Array} An array of attribute names. + */ + getAttributeKeys: function(){ + var configs = this._configs; + var keys = []; + var config; + for (var key in configs) { + config = configs[key]; + if ( Lang.hasOwnProperty(configs, key) && + !Lang.isUndefined(config) ) { + keys[keys.length] = key; + } + } + + return keys; + }, + + /** + * Sets multiple attribute values. + * @method setAttributes + * @param {Object} map A key-value map of attributes + * @param {Boolean} silent Whether or not to suppress change events + */ + setAttributes: function(map, silent){ + for (var key in map) { + if ( Lang.hasOwnProperty(map, key) ) { + this.set(key, map[key], silent); + } + } + }, + + /** + * Resets the specified attribute's value to its initial value. + * @method resetValue + * @param {String} key The name of the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set + */ + resetValue: function(key, silent){ + var configs = this._configs || {}; + if (configs[key]) { + this.set(key, configs[key]._initialConfig.value, silent); + return true; + } + return false; + }, + + /** + * Sets the attribute's value to its current value. + * @method refresh + * @param {String | Array} key The attribute(s) to refresh + * @param {Boolean} silent Whether or not to suppress change events + */ + refresh: function(key, silent){ + var configs = this._configs; + + key = ( ( Lang.isString(key) ) ? [key] : key ) || + this.getAttributeKeys(); + + for (var i = 0, len = key.length; i < len; ++i) { + if ( // only set if there is a value and not null + configs[key[i]] && + ! Lang.isUndefined(configs[key[i]].value) && + ! Lang.isNull(configs[key[i]].value) ) { + configs[key[i]].refresh(silent); + } + } + }, + + /** + * Adds an Attribute to the AttributeProvider instance. + * @method register + * @param {String} key The attribute's name + * @param {Object} map A key-value map containing the + * attribute's properties. + * @deprecated Use setAttributeConfig + */ + register: function(key, map) { + this.setAttributeConfig(key, map); + }, + + + /** + * Returns the attribute's properties. + * @method getAttributeConfig + * @param {String} key The attribute's name + * @private + * @return {object} A key-value map containing all of the + * attribute's properties. + */ + getAttributeConfig: function(key) { + var configs = this._configs || {}; + var config = configs[key] || {}; + var map = {}; // returning a copy to prevent overrides + + for (key in config) { + if ( Lang.hasOwnProperty(config, key) ) { + map[key] = config[key]; + } + } + + return map; + }, + + /** + * Sets or updates an Attribute instance's properties. + * @method setAttributeConfig + * @param {String} key The attribute's name. + * @param {Object} map A key-value map of attribute properties + * @param {Boolean} init Whether or not this should become the intial config. + */ + setAttributeConfig: function(key, map, init) { + var configs = this._configs || {}; + map = map || {}; + if (!configs[key]) { + map.name = key; + configs[key] = new YAHOO.util.Attribute(map, this); + } else { + configs[key].configure(map, init); + } + }, + + /** + * Sets or updates an Attribute instance's properties. + * @method configureAttribute + * @param {String} key The attribute's name. + * @param {Object} map A key-value map of attribute properties + * @param {Boolean} init Whether or not this should become the intial config. + */ + configureAttribute: function(key, map, init) { + this.setAttributeConfig(key, map, init); + }, + + /** + * Resets an attribute to its intial configuration. + * @method resetAttributeConfig + * @param {String} key The attribute's name. + * @private + */ + resetAttributeConfig: function(key){ + var configs = this._configs || {}; + configs[key].resetConfig(); + }, + + /** + * Fires the attribute's beforeChange event. + * @method fireBeforeChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to handlers. + */ + fireBeforeChangeEvent: function(e) { + var type = 'before'; + type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change'; + e.type = type; + return this.fireEvent(e.type, e); + }, + + /** + * Fires the attribute's change event. + * @method fireChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to the handlers. + */ + fireChangeEvent: function(e) { + e.type += 'Change'; + return this.fireEvent(e.type, e); + } + }; + + YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider); +})(); + +(function() { +// internal shorthand +var Dom = YAHOO.util.Dom, + EventPublisher = YAHOO.util.EventPublisher, + AttributeProvider = YAHOO.util.AttributeProvider; + +/** + * Element provides an wrapper object to simplify adding + * event listeners, using dom methods, and managing attributes. + * @module element + * @namespace YAHOO.util + * @requires yahoo, dom, event + * @beta + */ + +/** + * Element provides an wrapper object to simplify adding + * event listeners, using dom methods, and managing attributes. + * @class Element + * @uses YAHOO.util.AttributeProvider + * @constructor + * @param el {HTMLElement | String} The html element that + * represents the Element. + * @param {Object} map A key-value map of initial config names and values + */ +YAHOO.util.Element = function(el, map) { + if (arguments.length) { + this.init(el, map); + } +}; + +YAHOO.util.Element.prototype = { + /** + * Dom events supported by the Element instance. + * @property DOM_EVENTS + * @type Object + */ + DOM_EVENTS: null, + + /** + * Wrapper for HTMLElement method. + * @method appendChild + * @param {Boolean} deep Whether or not to do a deep clone + */ + appendChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').appendChild(child); + }, + + /** + * Wrapper for HTMLElement method. + * @method getElementsByTagName + * @param {String} tag The tagName to collect + */ + getElementsByTagName: function(tag) { + return this.get('element').getElementsByTagName(tag); + }, + + /** + * Wrapper for HTMLElement method. + * @method hasChildNodes + * @return {Boolean} Whether or not the element has childNodes + */ + hasChildNodes: function() { + return this.get('element').hasChildNodes(); + }, + + /** + * Wrapper for HTMLElement method. + * @method insertBefore + * @param {HTMLElement} element The HTMLElement to insert + * @param {HTMLElement} before The HTMLElement to insert + * the element before. + */ + insertBefore: function(element, before) { + element = element.get ? element.get('element') : element; + before = (before && before.get) ? before.get('element') : before; + + this.get('element').insertBefore(element, before); + }, + + /** + * Wrapper for HTMLElement method. + * @method removeChild + * @param {HTMLElement} child The HTMLElement to remove + */ + removeChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').removeChild(child); + return true; + }, + + /** + * Wrapper for HTMLElement method. + * @method replaceChild + * @param {HTMLElement} newNode The HTMLElement to insert + * @param {HTMLElement} oldNode The HTMLElement to replace + */ + replaceChild: function(newNode, oldNode) { + newNode = newNode.get ? newNode.get('element') : newNode; + oldNode = oldNode.get ? oldNode.get('element') : oldNode; + return this.get('element').replaceChild(newNode, oldNode); + }, + + + /** + * Registers Element specific attributes. + * @method initAttributes + * @param {Object} map A key-value map of initial attribute configs + */ + initAttributes: function(map) { + map = map || {}; + var element = Dom.get(map.element) || null; + + /** + * The HTMLElement the Element instance refers to. + * @config element + * @type HTMLElement + */ + this.setAttributeConfig('element', { + value: element, + readOnly: true + }); + }, + + /** + * Adds a listener for the given event. These may be DOM or + * customEvent listeners. Any event that is fired via fireEvent + * can be listened for. All handlers receive an event object. + * @method addListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The handler to call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + addListener: function(type, fn, obj, scope) { + var el = this.get('element'); + var scope = scope || this; + + el = this.get('id') || el; + + if (!this._events[type]) { // create on the fly + if ( this.DOM_EVENTS[type] ) { + YAHOO.util.Event.addListener(el, type, function(e) { + if (e.srcElement && !e.target) { // supplement IE with target + e.target = e.srcElement; + } + this.fireEvent(type, e); + }, obj, scope); + } + + this.createEvent(type, this); + this._events[type] = true; + } + + this.subscribe.apply(this, arguments); // notify via customEvent + }, + + + /** + * Alias for addListener + * @method on + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + on: function() { this.addListener.apply(this, arguments); }, + + + /** + * Remove an event listener + * @method removeListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + */ + removeListener: function(type, fn) { + this.unsubscribe.apply(this, arguments); + }, + + /** + * Wrapper for Dom method. + * @method addClass + * @param {String} className The className to add + */ + addClass: function(className) { + Dom.addClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method getElementsByClassName + * @param {String} className The className to collect + * @param {String} tag (optional) The tag to use in + * conjunction with class name + * @return {Array} Array of HTMLElements + */ + getElementsByClassName: function(className, tag) { + return Dom.getElementsByClassName(className, tag, + this.get('element') ); + }, + + /** + * Wrapper for Dom method. + * @method hasClass + * @param {String} className The className to add + * @return {Boolean} Whether or not the element has the class name + */ + hasClass: function(className) { + return Dom.hasClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method removeClass + * @param {String} className The className to remove + */ + removeClass: function(className) { + return Dom.removeClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method replaceClass + * @param {String} oldClassName The className to replace + * @param {String} newClassName The className to add + */ + replaceClass: function(oldClassName, newClassName) { + return Dom.replaceClass(this.get('element'), + oldClassName, newClassName); + }, + + /** + * Wrapper for Dom method. + * @method setStyle + * @param {String} property The style property to set + * @param {String} value The value to apply to the style property + */ + setStyle: function(property, value) { + var el = this.get('element'); + if (!el) { + this._queue[this._queue.length] = ['setStyle', arguments]; + return false; + } + return Dom.setStyle(this.get('element'), property, value); + }, + + /** + * Wrapper for Dom method. + * @method getStyle + * @param {String} property The style property to retrieve + * @return {String} The current value of the property + */ + getStyle: function(property) { + return Dom.getStyle(this.get('element'), property); + }, + + /** + * Apply any queued set calls. + * @method fireQueue + */ + fireQueue: function() { + var queue = this._queue; + for (var i = 0, len = queue.length; i < len; ++i) { + this[queue[i][0]].apply(this, queue[i][1]); + } + }, + + /** + * Appends the HTMLElement into either the supplied parentNode. + * @method appendTo + * @param {HTMLElement | Element} parentNode The node to append to + * @param {HTMLElement | Element} before An optional node to insert before + */ + appendTo: function(parent, before) { + parent = (parent.get) ? parent.get('element') : Dom.get(parent); + + this.fireEvent('beforeAppendTo', { + type: 'beforeAppendTo', + target: parent + }); + + + before = (before && before.get) ? + before.get('element') : Dom.get(before); + var element = this.get('element'); + + if (!element) { + YAHOO.log('appendTo failed: element not available', + 'error', 'Element'); + return false; + } + + if (!parent) { + YAHOO.log('appendTo failed: parent not available', + 'error', 'Element'); + return false; + } + + if (element.parent != parent) { + if (before) { + parent.insertBefore(element, before); + } else { + parent.appendChild(element); + } + } + + YAHOO.log(element + 'appended to ' + parent); + + this.fireEvent('appendTo', { + type: 'appendTo', + target: parent + }); + }, + + get: function(key) { + var configs = this._configs || {}; + var el = configs.element; // avoid loop due to 'element' + if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) { + return el.value[key]; + } + + return AttributeProvider.prototype.get.call(this, key); + }, + + set: function(key, value, silent) { + var el = this.get('element'); + if (!el) { + this._queue[this._queue.length] = ['set', arguments]; + if (this._configs[key]) { + this._configs[key].value = value; // so "get" works while queueing + + } + return; + } + + // set it on the element if not configured and is an HTML attribute + if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) { + _registerHTMLAttr.call(this, key); + } + + return AttributeProvider.prototype.set.apply(this, arguments); + }, + + setAttributeConfig: function(key, map, init) { + var el = this.get('element'); + + if (el && !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) { + _registerHTMLAttr.call(this, key, map); + } else { + AttributeProvider.prototype.setAttributeConfig.apply(this, arguments); + } + }, + + getAttributeKeys: function() { + var el = this.get('element'); + var keys = AttributeProvider.prototype.getAttributeKeys.call(this); + + //add any unconfigured element keys + for (var key in el) { + if (!this._configs[key]) { + keys[key] = keys[key] || el[key]; + } + } + + return keys; + }, + + init: function(el, attr) { + this._queue = this._queue || []; + this._events = this._events || {}; + this._configs = this._configs || {}; + attr = attr || {}; + attr.element = attr.element || el || null; + + this.DOM_EVENTS = { + 'click': true, + 'keydown': true, + 'keypress': true, + 'keyup': true, + 'mousedown': true, + 'mousemove': true, + 'mouseout': true, + 'mouseover': true, + 'mouseup': true + }; + + var readyHandler = function() { + this.initAttributes(attr); + this.setAttributes(attr, true); + this.fireQueue(); + this.fireEvent('contentReady', { + type: 'contentReady', + target: attr.element + }); + }; + + if ( YAHOO.lang.isString(el) ) { + _registerHTMLAttr.call(this, 'id', { value: el }); + YAHOO.util.Event.onAvailable(el, function() { + attr.element = Dom.get(el); + this.fireEvent('available', { + type: 'available', + target: attr.element + }); + }, this, true); + + YAHOO.util.Event.onContentReady(el, function() { + readyHandler.call(this); + }, this, true); + } else { + readyHandler.call(this); + } + } +}; + +/** + * Sets the value of the property and fires beforeChange and change events. + * @private + * @method _registerHTMLAttr + * @param {YAHOO.util.Element} element The Element instance to + * register the config to. + * @param {String} key The name of the config to register + * @param {Object} map A key-value map of the config's params + */ +var _registerHTMLAttr = function(key, map) { + var el = this.get('element'); + map = map || {}; + map.name = key; + map.method = map.method || function(value) { + el[key] = value; + }; + map.value = map.value || el[key]; + this._configs[key] = new YAHOO.util.Attribute(map, this); +}; + +/** + * Fires when the Element's HTMLElement can be retrieved by Id. + * <p>See: <a href="#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> available<br> + * <code><HTMLElement> + * target</code> the HTMLElement bound to this Element instance<br> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var target = e.target};<br> + * myTabs.addListener('available', handler);</code></p> + * @event available + */ + +/** + * Fires when the Element's HTMLElement subtree is rendered. + * <p>See: <a href="#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> contentReady<br> + * <code><HTMLElement> + * target</code> the HTMLElement bound to this Element instance<br> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var target = e.target};<br> + * myTabs.addListener('contentReady', handler);</code></p> + * @event contentReady + */ + + +YAHOO.augment(YAHOO.util.Element, AttributeProvider); +})(); + +YAHOO.register("element", YAHOO.util.Element, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/element/element-beta-min.js b/interface/ispconfig/interface/js/yui/element/element-beta-min.js new file mode 100644 index 0000000..621181e --- /dev/null +++ b/interface/ispconfig/interface/js/yui/element/element-beta-min.js @@ -0,0 +1,30 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.Attribute=function(hash,owner){if(owner){this.owner=owner;this.configure(hash,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(value,silent){var beforeRetVal;var owner=this.owner;var name=this.name;var event={type:name,prevValue:this.getValue(),newValue:value};if(this.readOnly||(this.writeOnce&&this._written)){return false;} +if(this.validator&&!this.validator.call(owner,value)){return false;} +if(!silent){beforeRetVal=owner.fireBeforeChangeEvent(event);if(beforeRetVal===false){return false;}} +if(this.method){this.method.call(owner,value);} +this.value=value;this._written=true;event.type=name;if(!silent){this.owner.fireChangeEvent(event);} +return true;},configure:function(map,init){map=map||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var key in map){if(key&&YAHOO.lang.hasOwnProperty(map,key)){this[key]=map[key];if(init){this._initialConfig[key]=map[key];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(silent){this.setValue(this.value,silent);}};(function(){var Lang=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(key){var configs=this._configs||{};var config=configs[key];if(!config){return undefined;} +return config.value;},set:function(key,value,silent){var configs=this._configs||{};var config=configs[key];if(!config){return false;} +return config.setValue(value,silent);},getAttributeKeys:function(){var configs=this._configs;var keys=[];var config;for(var key in configs){config=configs[key];if(Lang.hasOwnProperty(configs,key)&&!Lang.isUndefined(config)){keys[keys.length]=key;}} +return keys;},setAttributes:function(map,silent){for(var key in map){if(Lang.hasOwnProperty(map,key)){this.set(key,map[key],silent);}}},resetValue:function(key,silent){var configs=this._configs||{};if(configs[key]){this.set(key,configs[key]._initialConfig.value,silent);return true;} +return false;},refresh:function(key,silent){var configs=this._configs;key=((Lang.isString(key))?[key]:key)||this.getAttributeKeys();for(var i=0,len=key.length;i<len;++i){if(configs[key[i]]&&!Lang.isUndefined(configs[key[i]].value)&&!Lang.isNull(configs[key[i]].value)){configs[key[i]].refresh(silent);}}},register:function(key,map){this.setAttributeConfig(key,map);},getAttributeConfig:function(key){var configs=this._configs||{};var config=configs[key]||{};var map={};for(key in config){if(Lang.hasOwnProperty(config,key)){map[key]=config[key];}} +return map;},setAttributeConfig:function(key,map,init){var configs=this._configs||{};map=map||{};if(!configs[key]){map.name=key;configs[key]=new YAHOO.util.Attribute(map,this);}else{configs[key].configure(map,init);}},configureAttribute:function(key,map,init){this.setAttributeConfig(key,map,init);},resetAttributeConfig:function(key){var configs=this._configs||{};configs[key].resetConfig();},fireBeforeChangeEvent:function(e){var type='before';type+=e.type.charAt(0).toUpperCase()+e.type.substr(1)+'Change';e.type=type;return this.fireEvent(e.type,e);},fireChangeEvent:function(e){e.type+='Change';return this.fireEvent(e.type,e);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var Dom=YAHOO.util.Dom,EventPublisher=YAHOO.util.EventPublisher,AttributeProvider=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(el,map){if(arguments.length){this.init(el,map);}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(child){child=child.get?child.get('element'):child;this.get('element').appendChild(child);},getElementsByTagName:function(tag){return this.get('element').getElementsByTagName(tag);},hasChildNodes:function(){return this.get('element').hasChildNodes();},insertBefore:function(element,before){element=element.get?element.get('element'):element;before=(before&&before.get)?before.get('element'):before;this.get('element').insertBefore(element,before);},removeChild:function(child){child=child.get?child.get('element'):child;this.get('element').removeChild(child);return true;},replaceChild:function(newNode,oldNode){newNode=newNode.get?newNode.get('element'):newNode;oldNode=oldNode.get?oldNode.get('element'):oldNode;return this.get('element').replaceChild(newNode,oldNode);},initAttributes:function(map){map=map||{};var element=Dom.get(map.element)||null;this.setAttributeConfig('element',{value:element,readOnly:true});},addListener:function(type,fn,obj,scope){var el=this.get('element');var scope=scope||this;el=this.get('id')||el;if(!this._events[type]){if(this.DOM_EVENTS[type]){YAHOO.util.Event.addListener(el,type,function(e){if(e.srcElement&&!e.target){e.target=e.srcElement;} +this.fireEvent(type,e);},obj,scope);} +this.createEvent(type,this);this._events[type]=true;} +this.subscribe.apply(this,arguments);},on:function(){this.addListener.apply(this,arguments);},removeListener:function(type,fn){this.unsubscribe.apply(this,arguments);},addClass:function(className){Dom.addClass(this.get('element'),className);},getElementsByClassName:function(className,tag){return Dom.getElementsByClassName(className,tag,this.get('element'));},hasClass:function(className){return Dom.hasClass(this.get('element'),className);},removeClass:function(className){return Dom.removeClass(this.get('element'),className);},replaceClass:function(oldClassName,newClassName){return Dom.replaceClass(this.get('element'),oldClassName,newClassName);},setStyle:function(property,value){var el=this.get('element');if(!el){this._queue[this._queue.length]=['setStyle',arguments];return false;} +return Dom.setStyle(this.get('element'),property,value);},getStyle:function(property){return Dom.getStyle(this.get('element'),property);},fireQueue:function(){var queue=this._queue;for(var i=0,len=queue.length;i<len;++i){this[queue[i][0]].apply(this,queue[i][1]);}},appendTo:function(parent,before){parent=(parent.get)?parent.get('element'):Dom.get(parent);this.fireEvent('beforeAppendTo',{type:'beforeAppendTo',target:parent});before=(before&&before.get)?before.get('element'):Dom.get(before);var element=this.get('element');if(!element){return false;} +if(!parent){return false;} +if(element.parent!=parent){if(before){parent.insertBefore(element,before);}else{parent.appendChild(element);}} +this.fireEvent('appendTo',{type:'appendTo',target:parent});},get:function(key){var configs=this._configs||{};var el=configs.element;if(el&&!configs[key]&&!YAHOO.lang.isUndefined(el.value[key])){return el.value[key];} +return AttributeProvider.prototype.get.call(this,key);},set:function(key,value,silent){var el=this.get('element');if(!el){this._queue[this._queue.length]=['set',arguments];if(this._configs[key]){this._configs[key].value=value;} +return;} +if(!this._configs[key]&&!YAHOO.lang.isUndefined(el[key])){_registerHTMLAttr.call(this,key);} +return AttributeProvider.prototype.set.apply(this,arguments);},setAttributeConfig:function(key,map,init){var el=this.get('element');if(el&&!this._configs[key]&&!YAHOO.lang.isUndefined(el[key])){_registerHTMLAttr.call(this,key,map);}else{AttributeProvider.prototype.setAttributeConfig.apply(this,arguments);}},getAttributeKeys:function(){var el=this.get('element');var keys=AttributeProvider.prototype.getAttributeKeys.call(this);for(var key in el){if(!this._configs[key]){keys[key]=keys[key]||el[key];}} +return keys;},init:function(el,attr){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};attr=attr||{};attr.element=attr.element||el||null;this.DOM_EVENTS={'click':true,'keydown':true,'keypress':true,'keyup':true,'mousedown':true,'mousemove':true,'mouseout':true,'mouseover':true,'mouseup':true};var readyHandler=function(){this.initAttributes(attr);this.setAttributes(attr,true);this.fireQueue();this.fireEvent('contentReady',{type:'contentReady',target:attr.element});};if(YAHOO.lang.isString(el)){_registerHTMLAttr.call(this,'id',{value:el});YAHOO.util.Event.onAvailable(el,function(){attr.element=Dom.get(el);this.fireEvent('available',{type:'available',target:attr.element});},this,true);YAHOO.util.Event.onContentReady(el,function(){readyHandler.call(this);},this,true);}else{readyHandler.call(this);}}};var _registerHTMLAttr=function(key,map){var el=this.get('element');map=map||{};map.name=key;map.method=map.method||function(value){el[key]=value;};map.value=map.value||el[key];this._configs[key]=new YAHOO.util.Attribute(map,this);};YAHOO.augment(YAHOO.util.Element,AttributeProvider);})();YAHOO.register("element",YAHOO.util.Element,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/element/element-beta.js b/interface/ispconfig/interface/js/yui/element/element-beta.js new file mode 100644 index 0000000..c1013d6 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/element/element-beta.js @@ -0,0 +1,896 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * Provides Attribute configurations. + * @namespace YAHOO.util + * @class Attribute + * @constructor + * @param hash {Object} The intial Attribute. + * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance. + */ + +YAHOO.util.Attribute = function(hash, owner) { + if (owner) { + this.owner = owner; + this.configure(hash, true); + } +}; + +YAHOO.util.Attribute.prototype = { + /** + * The name of the attribute. + * @property name + * @type String + */ + name: undefined, + + /** + * The value of the attribute. + * @property value + * @type String + */ + value: null, + + /** + * The owner of the attribute. + * @property owner + * @type YAHOO.util.AttributeProvider + */ + owner: null, + + /** + * Whether or not the attribute is read only. + * @property readOnly + * @type Boolean + */ + readOnly: false, + + /** + * Whether or not the attribute can only be written once. + * @property writeOnce + * @type Boolean + */ + writeOnce: false, + + /** + * The attribute's initial configuration. + * @private + * @property _initialConfig + * @type Object + */ + _initialConfig: null, + + /** + * Whether or not the attribute's value has been set. + * @private + * @property _written + * @type Boolean + */ + _written: false, + + /** + * The method to use when setting the attribute's value. + * The method recieves the new value as the only argument. + * @property method + * @type Function + */ + method: null, + + /** + * The validator to use when setting the attribute's value. + * @property validator + * @type Function + * @return Boolean + */ + validator: null, + + /** + * Retrieves the current value of the attribute. + * @method getValue + * @return {any} The current value of the attribute. + */ + getValue: function() { + return this.value; + }, + + /** + * Sets the value of the attribute and fires beforeChange and change events. + * @method setValue + * @param {Any} value The value to apply to the attribute. + * @param {Boolean} silent If true the change events will not be fired. + * @return {Boolean} Whether or not the value was set. + */ + setValue: function(value, silent) { + var beforeRetVal; + var owner = this.owner; + var name = this.name; + + var event = { + type: name, + prevValue: this.getValue(), + newValue: value + }; + + if (this.readOnly || ( this.writeOnce && this._written) ) { + return false; // write not allowed + } + + if (this.validator && !this.validator.call(owner, value) ) { + return false; // invalid value + } + + if (!silent) { + beforeRetVal = owner.fireBeforeChangeEvent(event); + if (beforeRetVal === false) { + return false; + } + } + + if (this.method) { + this.method.call(owner, value); + } + + this.value = value; + this._written = true; + + event.type = name; + + if (!silent) { + this.owner.fireChangeEvent(event); + } + + return true; + }, + + /** + * Allows for configuring the Attribute's properties. + * @method configure + * @param {Object} map A key-value map of Attribute properties. + * @param {Boolean} init Whether or not this should become the initial config. + */ + configure: function(map, init) { + map = map || {}; + this._written = false; // reset writeOnce + this._initialConfig = this._initialConfig || {}; + + for (var key in map) { + if ( key && YAHOO.lang.hasOwnProperty(map, key) ) { + this[key] = map[key]; + if (init) { + this._initialConfig[key] = map[key]; + } + } + } + }, + + /** + * Resets the value to the initial config value. + * @method resetValue + * @return {Boolean} Whether or not the value was set. + */ + resetValue: function() { + return this.setValue(this._initialConfig.value); + }, + + /** + * Resets the attribute config to the initial config state. + * @method resetConfig + */ + resetConfig: function() { + this.configure(this._initialConfig); + }, + + /** + * Resets the value to the current value. + * Useful when values may have gotten out of sync with actual properties. + * @method refresh + * @return {Boolean} Whether or not the value was set. + */ + refresh: function(silent) { + this.setValue(this.value, silent); + } +}; + +(function() { + var Lang = YAHOO.util.Lang; + + /* + Copyright (c) 2006, Yahoo! Inc. All rights reserved. + Code licensed under the BSD License: + http://developer.yahoo.net/yui/license.txt + */ + + /** + * Provides and manages YAHOO.util.Attribute instances + * @namespace YAHOO.util + * @class AttributeProvider + * @uses YAHOO.util.EventProvider + */ + YAHOO.util.AttributeProvider = function() {}; + + YAHOO.util.AttributeProvider.prototype = { + + /** + * A key-value map of Attribute configurations + * @property _configs + * @protected (may be used by subclasses and augmentors) + * @private + * @type {Object} + */ + _configs: null, + /** + * Returns the current value of the attribute. + * @method get + * @param {String} key The attribute whose value will be returned. + */ + get: function(key){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + return undefined; + } + + return config.value; + }, + + /** + * Sets the value of a config. + * @method set + * @param {String} key The name of the attribute + * @param {Any} value The value to apply to the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set. + */ + set: function(key, value, silent){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + return false; + } + + return config.setValue(value, silent); + }, + + /** + * Returns an array of attribute names. + * @method getAttributeKeys + * @return {Array} An array of attribute names. + */ + getAttributeKeys: function(){ + var configs = this._configs; + var keys = []; + var config; + for (var key in configs) { + config = configs[key]; + if ( Lang.hasOwnProperty(configs, key) && + !Lang.isUndefined(config) ) { + keys[keys.length] = key; + } + } + + return keys; + }, + + /** + * Sets multiple attribute values. + * @method setAttributes + * @param {Object} map A key-value map of attributes + * @param {Boolean} silent Whether or not to suppress change events + */ + setAttributes: function(map, silent){ + for (var key in map) { + if ( Lang.hasOwnProperty(map, key) ) { + this.set(key, map[key], silent); + } + } + }, + + /** + * Resets the specified attribute's value to its initial value. + * @method resetValue + * @param {String} key The name of the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set + */ + resetValue: function(key, silent){ + var configs = this._configs || {}; + if (configs[key]) { + this.set(key, configs[key]._initialConfig.value, silent); + return true; + } + return false; + }, + + /** + * Sets the attribute's value to its current value. + * @method refresh + * @param {String | Array} key The attribute(s) to refresh + * @param {Boolean} silent Whether or not to suppress change events + */ + refresh: function(key, silent){ + var configs = this._configs; + + key = ( ( Lang.isString(key) ) ? [key] : key ) || + this.getAttributeKeys(); + + for (var i = 0, len = key.length; i < len; ++i) { + if ( // only set if there is a value and not null + configs[key[i]] && + ! Lang.isUndefined(configs[key[i]].value) && + ! Lang.isNull(configs[key[i]].value) ) { + configs[key[i]].refresh(silent); + } + } + }, + + /** + * Adds an Attribute to the AttributeProvider instance. + * @method register + * @param {String} key The attribute's name + * @param {Object} map A key-value map containing the + * attribute's properties. + * @deprecated Use setAttributeConfig + */ + register: function(key, map) { + this.setAttributeConfig(key, map); + }, + + + /** + * Returns the attribute's properties. + * @method getAttributeConfig + * @param {String} key The attribute's name + * @private + * @return {object} A key-value map containing all of the + * attribute's properties. + */ + getAttributeConfig: function(key) { + var configs = this._configs || {}; + var config = configs[key] || {}; + var map = {}; // returning a copy to prevent overrides + + for (key in config) { + if ( Lang.hasOwnProperty(config, key) ) { + map[key] = config[key]; + } + } + + return map; + }, + + /** + * Sets or updates an Attribute instance's properties. + * @method setAttributeConfig + * @param {String} key The attribute's name. + * @param {Object} map A key-value map of attribute properties + * @param {Boolean} init Whether or not this should become the intial config. + */ + setAttributeConfig: function(key, map, init) { + var configs = this._configs || {}; + map = map || {}; + if (!configs[key]) { + map.name = key; + configs[key] = new YAHOO.util.Attribute(map, this); + } else { + configs[key].configure(map, init); + } + }, + + /** + * Sets or updates an Attribute instance's properties. + * @method configureAttribute + * @param {String} key The attribute's name. + * @param {Object} map A key-value map of attribute properties + * @param {Boolean} init Whether or not this should become the intial config. + */ + configureAttribute: function(key, map, init) { + this.setAttributeConfig(key, map, init); + }, + + /** + * Resets an attribute to its intial configuration. + * @method resetAttributeConfig + * @param {String} key The attribute's name. + * @private + */ + resetAttributeConfig: function(key){ + var configs = this._configs || {}; + configs[key].resetConfig(); + }, + + /** + * Fires the attribute's beforeChange event. + * @method fireBeforeChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to handlers. + */ + fireBeforeChangeEvent: function(e) { + var type = 'before'; + type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change'; + e.type = type; + return this.fireEvent(e.type, e); + }, + + /** + * Fires the attribute's change event. + * @method fireChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to the handlers. + */ + fireChangeEvent: function(e) { + e.type += 'Change'; + return this.fireEvent(e.type, e); + } + }; + + YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider); +})(); + +(function() { +// internal shorthand +var Dom = YAHOO.util.Dom, + EventPublisher = YAHOO.util.EventPublisher, + AttributeProvider = YAHOO.util.AttributeProvider; + +/** + * Element provides an wrapper object to simplify adding + * event listeners, using dom methods, and managing attributes. + * @module element + * @namespace YAHOO.util + * @requires yahoo, dom, event + * @beta + */ + +/** + * Element provides an wrapper object to simplify adding + * event listeners, using dom methods, and managing attributes. + * @class Element + * @uses YAHOO.util.AttributeProvider + * @constructor + * @param el {HTMLElement | String} The html element that + * represents the Element. + * @param {Object} map A key-value map of initial config names and values + */ +YAHOO.util.Element = function(el, map) { + if (arguments.length) { + this.init(el, map); + } +}; + +YAHOO.util.Element.prototype = { + /** + * Dom events supported by the Element instance. + * @property DOM_EVENTS + * @type Object + */ + DOM_EVENTS: null, + + /** + * Wrapper for HTMLElement method. + * @method appendChild + * @param {Boolean} deep Whether or not to do a deep clone + */ + appendChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').appendChild(child); + }, + + /** + * Wrapper for HTMLElement method. + * @method getElementsByTagName + * @param {String} tag The tagName to collect + */ + getElementsByTagName: function(tag) { + return this.get('element').getElementsByTagName(tag); + }, + + /** + * Wrapper for HTMLElement method. + * @method hasChildNodes + * @return {Boolean} Whether or not the element has childNodes + */ + hasChildNodes: function() { + return this.get('element').hasChildNodes(); + }, + + /** + * Wrapper for HTMLElement method. + * @method insertBefore + * @param {HTMLElement} element The HTMLElement to insert + * @param {HTMLElement} before The HTMLElement to insert + * the element before. + */ + insertBefore: function(element, before) { + element = element.get ? element.get('element') : element; + before = (before && before.get) ? before.get('element') : before; + + this.get('element').insertBefore(element, before); + }, + + /** + * Wrapper for HTMLElement method. + * @method removeChild + * @param {HTMLElement} child The HTMLElement to remove + */ + removeChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').removeChild(child); + return true; + }, + + /** + * Wrapper for HTMLElement method. + * @method replaceChild + * @param {HTMLElement} newNode The HTMLElement to insert + * @param {HTMLElement} oldNode The HTMLElement to replace + */ + replaceChild: function(newNode, oldNode) { + newNode = newNode.get ? newNode.get('element') : newNode; + oldNode = oldNode.get ? oldNode.get('element') : oldNode; + return this.get('element').replaceChild(newNode, oldNode); + }, + + + /** + * Registers Element specific attributes. + * @method initAttributes + * @param {Object} map A key-value map of initial attribute configs + */ + initAttributes: function(map) { + map = map || {}; + var element = Dom.get(map.element) || null; + + /** + * The HTMLElement the Element instance refers to. + * @config element + * @type HTMLElement + */ + this.setAttributeConfig('element', { + value: element, + readOnly: true + }); + }, + + /** + * Adds a listener for the given event. These may be DOM or + * customEvent listeners. Any event that is fired via fireEvent + * can be listened for. All handlers receive an event object. + * @method addListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The handler to call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + addListener: function(type, fn, obj, scope) { + var el = this.get('element'); + var scope = scope || this; + + el = this.get('id') || el; + + if (!this._events[type]) { // create on the fly + if ( this.DOM_EVENTS[type] ) { + YAHOO.util.Event.addListener(el, type, function(e) { + if (e.srcElement && !e.target) { // supplement IE with target + e.target = e.srcElement; + } + this.fireEvent(type, e); + }, obj, scope); + } + + this.createEvent(type, this); + this._events[type] = true; + } + + this.subscribe.apply(this, arguments); // notify via customEvent + }, + + + /** + * Alias for addListener + * @method on + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + on: function() { this.addListener.apply(this, arguments); }, + + + /** + * Remove an event listener + * @method removeListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + */ + removeListener: function(type, fn) { + this.unsubscribe.apply(this, arguments); + }, + + /** + * Wrapper for Dom method. + * @method addClass + * @param {String} className The className to add + */ + addClass: function(className) { + Dom.addClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method getElementsByClassName + * @param {String} className The className to collect + * @param {String} tag (optional) The tag to use in + * conjunction with class name + * @return {Array} Array of HTMLElements + */ + getElementsByClassName: function(className, tag) { + return Dom.getElementsByClassName(className, tag, + this.get('element') ); + }, + + /** + * Wrapper for Dom method. + * @method hasClass + * @param {String} className The className to add + * @return {Boolean} Whether or not the element has the class name + */ + hasClass: function(className) { + return Dom.hasClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method removeClass + * @param {String} className The className to remove + */ + removeClass: function(className) { + return Dom.removeClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method replaceClass + * @param {String} oldClassName The className to replace + * @param {String} newClassName The className to add + */ + replaceClass: function(oldClassName, newClassName) { + return Dom.replaceClass(this.get('element'), + oldClassName, newClassName); + }, + + /** + * Wrapper for Dom method. + * @method setStyle + * @param {String} property The style property to set + * @param {String} value The value to apply to the style property + */ + setStyle: function(property, value) { + var el = this.get('element'); + if (!el) { + this._queue[this._queue.length] = ['setStyle', arguments]; + return false; + } + return Dom.setStyle(this.get('element'), property, value); + }, + + /** + * Wrapper for Dom method. + * @method getStyle + * @param {String} property The style property to retrieve + * @return {String} The current value of the property + */ + getStyle: function(property) { + return Dom.getStyle(this.get('element'), property); + }, + + /** + * Apply any queued set calls. + * @method fireQueue + */ + fireQueue: function() { + var queue = this._queue; + for (var i = 0, len = queue.length; i < len; ++i) { + this[queue[i][0]].apply(this, queue[i][1]); + } + }, + + /** + * Appends the HTMLElement into either the supplied parentNode. + * @method appendTo + * @param {HTMLElement | Element} parentNode The node to append to + * @param {HTMLElement | Element} before An optional node to insert before + */ + appendTo: function(parent, before) { + parent = (parent.get) ? parent.get('element') : Dom.get(parent); + + this.fireEvent('beforeAppendTo', { + type: 'beforeAppendTo', + target: parent + }); + + + before = (before && before.get) ? + before.get('element') : Dom.get(before); + var element = this.get('element'); + + if (!element) { + return false; + } + + if (!parent) { + return false; + } + + if (element.parent != parent) { + if (before) { + parent.insertBefore(element, before); + } else { + parent.appendChild(element); + } + } + + + this.fireEvent('appendTo', { + type: 'appendTo', + target: parent + }); + }, + + get: function(key) { + var configs = this._configs || {}; + var el = configs.element; // avoid loop due to 'element' + if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) { + return el.value[key]; + } + + return AttributeProvider.prototype.get.call(this, key); + }, + + set: function(key, value, silent) { + var el = this.get('element'); + if (!el) { + this._queue[this._queue.length] = ['set', arguments]; + if (this._configs[key]) { + this._configs[key].value = value; // so "get" works while queueing + + } + return; + } + + // set it on the element if not configured and is an HTML attribute + if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) { + _registerHTMLAttr.call(this, key); + } + + return AttributeProvider.prototype.set.apply(this, arguments); + }, + + setAttributeConfig: function(key, map, init) { + var el = this.get('element'); + + if (el && !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) { + _registerHTMLAttr.call(this, key, map); + } else { + AttributeProvider.prototype.setAttributeConfig.apply(this, arguments); + } + }, + + getAttributeKeys: function() { + var el = this.get('element'); + var keys = AttributeProvider.prototype.getAttributeKeys.call(this); + + //add any unconfigured element keys + for (var key in el) { + if (!this._configs[key]) { + keys[key] = keys[key] || el[key]; + } + } + + return keys; + }, + + init: function(el, attr) { + this._queue = this._queue || []; + this._events = this._events || {}; + this._configs = this._configs || {}; + attr = attr || {}; + attr.element = attr.element || el || null; + + this.DOM_EVENTS = { + 'click': true, + 'keydown': true, + 'keypress': true, + 'keyup': true, + 'mousedown': true, + 'mousemove': true, + 'mouseout': true, + 'mouseover': true, + 'mouseup': true + }; + + var readyHandler = function() { + this.initAttributes(attr); + this.setAttributes(attr, true); + this.fireQueue(); + this.fireEvent('contentReady', { + type: 'contentReady', + target: attr.element + }); + }; + + if ( YAHOO.lang.isString(el) ) { + _registerHTMLAttr.call(this, 'id', { value: el }); + YAHOO.util.Event.onAvailable(el, function() { + attr.element = Dom.get(el); + this.fireEvent('available', { + type: 'available', + target: attr.element + }); + }, this, true); + + YAHOO.util.Event.onContentReady(el, function() { + readyHandler.call(this); + }, this, true); + } else { + readyHandler.call(this); + } + } +}; + +/** + * Sets the value of the property and fires beforeChange and change events. + * @private + * @method _registerHTMLAttr + * @param {YAHOO.util.Element} element The Element instance to + * register the config to. + * @param {String} key The name of the config to register + * @param {Object} map A key-value map of the config's params + */ +var _registerHTMLAttr = function(key, map) { + var el = this.get('element'); + map = map || {}; + map.name = key; + map.method = map.method || function(value) { + el[key] = value; + }; + map.value = map.value || el[key]; + this._configs[key] = new YAHOO.util.Attribute(map, this); +}; + +/** + * Fires when the Element's HTMLElement can be retrieved by Id. + * <p>See: <a href="#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> available<br> + * <code><HTMLElement> + * target</code> the HTMLElement bound to this Element instance<br> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var target = e.target};<br> + * myTabs.addListener('available', handler);</code></p> + * @event available + */ + +/** + * Fires when the Element's HTMLElement subtree is rendered. + * <p>See: <a href="#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> contentReady<br> + * <code><HTMLElement> + * target</code> the HTMLElement bound to this Element instance<br> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var target = e.target};<br> + * myTabs.addListener('contentReady', handler);</code></p> + * @event contentReady + */ + + +YAHOO.augment(YAHOO.util.Element, AttributeProvider); +})(); + +YAHOO.register("element", YAHOO.util.Element, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/event/README b/interface/ispconfig/interface/js/yui/event/README new file mode 100644 index 0000000..99fb0e5 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/event/README @@ -0,0 +1,161 @@ + +YUI Library - Event - Release Notes + +2.2.0 + + * YAHOO.util.KeyListener was moved from the container package into event. + + * The Safari bug that made it so preventDefault would not work with click + and double-click listeners on anchor tags was resolved in version 2.0.4. + The workaround (using DOM0 events for these instead of the normal DOM2 + events) is now only used for releases prior to 2.0.4. + + * getListeners/purgeElement now work correctly with unload listeners + + * When legacyEvents are used (Safari<2.0.4 click events), if there was an + existing DOM0 event that the utility replaced, it is executed along with + the listeners that were added with the utility. + + * Restored Event.regCE for compatibility with a beta release of the library + that in use in an external API. + + * unsubscribe in CustomEvent and EventProvider will remove all listeners + if the listener is omitted. + + * Added unsubscribeAll to EventProvider + + * Added Event.lastError which stores the most recent error object if + a browser-specific add/remove listener call throws an exception. + +0.12.2 + + * Fixed a bug introduced in 0.12.1 release caused nested onAvailable + calls to fail. + +0.12.1 + + * If an error is thrown during the browser-specific add/remove lister call, + addListener/removeListener will catch the error and return false. + + * onAvailable array items are nulled out instead of deleted when completed to + get around an Opera issue introduced in a recent version of the browser. + +0.12.0 + + * If the function argument is not provided to Event.removeListener, all + all listeners for the specified event type on the element will be removed. + + * CustomEvent now has an optional parameter that defines the signature of + the listeners for this event. Two signatures are supported: + + YAHOO.util.CustomEvent.LIST: + param1: event name + param2: array of arguments provided to fire() + param3: <optional> the custom object supplied to subscribe() + + YAHOO.util.CustomEvent.FLAT: + param1: the first argument provided to fire() + param2: <optional> the custom object supplied to subscribe() + + The new flat signature makes it possible to provide a better API + when using custom events, and it makes it possible to transparently + wrap DOM events. + + * The parameters for overriding scope in both Event.addListener, and + CustomEvent.subscribe have been augmented. In addition to the + previous behavior where a true value would make the previous parameter + the execution scope, an object can be supplied instead. If an object + is provided, that object becomes the scope obj. This makes it possible + to pass a both a custom object and adjust the scope to a different object. + + * Added EventProvider, which is a wrapper for CustomEvent that makes it + possible to subscribe to events by name, whether or not the event has + been created. This class was designed to be used with YAHOO.augment. + EventProvider custom events are created with the new FLAT listener + signature. + + * CustomEvent subscribers can return false to stop the propagation of + the event. + + * CustomEvents now have an onSubscribe custom event that can used to the + case where a subscriber subscribes to an one-time event that has already + happened. Also provides a way for the implementer to defer initialization + logic until after the first subscription. + + * Event.getCharCode now always returns keyCode if charCode is not available. + + * Added Event.onContentReady, which is similar to onAvailable, but it also + checks simblings to try to determine when the element's children are + available. + +0.11.4 + + * Fixed a memory leak in IE6 that occurred when the utility was hosted in + an iframe. + + * Fixed an issue with Safari click listeners when listeners were removed. + +0.11.3 + + * The listener cache is now pruned when events are removed. This fixes + a performance issue when adding many listeners, removing them, and + adding them again repeatedly. + + * Safari click listeners will work correctly if a bound element is removed + from the DOM and a new element with the same ID is added. + + * Removed the code that automatically unsubscribed custom event listeners. + +0.11.0 + + * Added Event.purgeElement which will remove all listeners added via + addListener from the supplied element. If an optional "type" parameter + is supplied, only events of that type will be removed. Optionally, the + purge can be performed recursively on the element's children as well. + + * Added Event.getListeners which will return all listeners attached to + a given element.. either all listeners or listeners of a specific type. + + * getTarget now automatically resolves text nodes. The optional parameter + for this feature is now deprecated. + + * getRelatedTarget now resolves text nodes for the browsers that return the + text node rather than its host HTML element. + + * CustomEvent now logs the custom event activity if the logger widget is available + +0.10.0 + + * Added Safari dblclick to the list of legacy events. + + * When multiple identical event handlers are defined, multiple calls + to removeListener can now remove all of them. + + * removeListener works properly for unload events + + * Legacy event bookkeeping is more efficient, improving the performance for + adding Safari click events. + + * _unload() is more efficient, improving the page transition experience in + Safari in particular. + + * addListener, removeListener now return false if the function argument is + not valid. + + * Fixed an operator precedence issue in getCharCode. + + * Added Event.getXY, which returns [Event.getPageX(e), Event.getPageY(e)] + + * Added Event.onAvailable, which will execute the callback when the element + with the supplied id is found. Currently searches periodically until the + window load event or for up to 10 seconds after the onAvailable method + was executed. + + * The lazy listener attachment process now will poll beyond the window load + event in order to better handle the case when a listener is defined + late in the page but before the element is in the dom. + + * Fixed browser detection for Opera installations reporting as IE. + + * It is now possible to remove and re-add legacy events (Safari click event). + diff --git a/interface/ispconfig/interface/js/yui/event/event-debug.js b/interface/ispconfig/interface/js/yui/event/event-debug.js new file mode 100644 index 0000000..43d97a7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/event/event-debug.js @@ -0,0 +1,2076 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Event Utility provides utilities for managing DOM Events and tools + * for building event systems + * + * @module event + * @title Event Utility + * @namespace YAHOO.util + * @requires yahoo + */ + +// The first instance of Event will win if it is loaded more than once. +// @TODO this needs to be changed so that only the state data that needs to +// be preserved is kept, while methods are overwritten/added as needed. +// This means that the module pattern can't be used. +if (!YAHOO.util.Event) { + +/** + * The event utility provides functions to add and remove event listeners, + * event cleansing. It also tries to automatically remove listeners it + * registers during the unload event. + * + * @class Event + * @static + */ + YAHOO.util.Event = function() { + + /** + * True after the onload event has fired + * @property loadComplete + * @type boolean + * @static + * @private + */ + var loadComplete = false; + + /** + * Cache of wrapped listeners + * @property listeners + * @type array + * @static + * @private + */ + var listeners = []; + + /** + * User-defined unload function that will be fired before all events + * are detached + * @property unloadListeners + * @type array + * @static + * @private + */ + var unloadListeners = []; + + /** + * Cache of DOM0 event handlers to work around issues with DOM2 events + * in Safari + * @property legacyEvents + * @static + * @private + */ + var legacyEvents = []; + + /** + * Listener stack for DOM0 events + * @property legacyHandlers + * @static + * @private + */ + var legacyHandlers = []; + + /** + * The number of times to poll after window.onload. This number is + * increased if additional late-bound handlers are requested after + * the page load. + * @property retryCount + * @static + * @private + */ + var retryCount = 0; + + /** + * onAvailable listeners + * @property onAvailStack + * @static + * @private + */ + var onAvailStack = []; + + /** + * Lookup table for legacy events + * @property legacyMap + * @static + * @private + */ + var legacyMap = []; + + /** + * Counter for auto id generation + * @property counter + * @static + * @private + */ + var counter = 0; + + /** + * addListener/removeListener can throw errors in unexpected scenarios. + * These errors are suppressed, the method returns false, and this property + * is set + * @property lastError + * @type Error + */ + var lastError = null; + + return { + + /** + * The number of times we should look for elements that are not + * in the DOM at the time the event is requested after the document + * has been loaded. The default is 200@amp;50 ms, so it will poll + * for 10 seconds or until all outstanding handlers are bound + * (whichever comes first). + * @property POLL_RETRYS + * @type int + * @static + * @final + */ + POLL_RETRYS: 200, + + /** + * The poll interval in milliseconds + * @property POLL_INTERVAL + * @type int + * @static + * @final + */ + POLL_INTERVAL: 20, + + /** + * Element to bind, int constant + * @property EL + * @type int + * @static + * @final + */ + EL: 0, + + /** + * Type of event, int constant + * @property TYPE + * @type int + * @static + * @final + */ + TYPE: 1, + + /** + * Function to execute, int constant + * @property FN + * @type int + * @static + * @final + */ + FN: 2, + + /** + * Function wrapped for scope correction and cleanup, int constant + * @property WFN + * @type int + * @static + * @final + */ + WFN: 3, + + /** + * Object passed in by the user that will be returned as a + * parameter to the callback, int constant + * @property OBJ + * @type int + * @static + * @final + */ + OBJ: 3, + + /** + * Adjusted scope, either the element we are registering the event + * on or the custom object passed in by the listener, int constant + * @property ADJ_SCOPE + * @type int + * @static + * @final + */ + ADJ_SCOPE: 4, + + /** + * Safari detection is necessary to work around the preventDefault + * bug that makes it so you can't cancel a href click from the + * handler. Since this function has been used outside of this + * utility, it was changed to detect all KHTML browser to be more + * friendly towards the non-Safari browsers that share the engine. + * Internally, the preventDefault bug detection now uses the + * webkit property. + * @property isSafari + * @private + * @static + * @deprecated + */ + isSafari: (/KHTML/gi).test(navigator.userAgent), + + /** + * If WebKit is detected, we keep track of the version number of + * the engine. + * Safari 1.3.2 (312.6): 312.8.1 <-- currently the latest + * available on Mac OSX 10.3. + * Safari 2.0.2: 416 <-- hasOwnProperty introduced + * Safari 2.0.4: 418 <-- preventDefault fixed (I believe) + * Safari 2.0.4 (419.3): 418.9.1 <-- current release + * + * http://developer.apple.com/internet/safari/uamatrix.html + * @property webkit + */ + webkit: function() { + var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/); + if (v&&v[1]) { + return v[1]; + } + return null; + }(), + + /** + * IE detection needed to properly calculate pageX and pageY. + * capabilities checking didn't seem to work because another + * browser that does not provide the properties have the values + * calculated in a different manner than IE. + * @property isIE + * @private + * @static + */ + isIE: (!this.webkit && !navigator.userAgent.match(/opera/gi) && + navigator.userAgent.match(/msie/gi)), + + /** + * poll handle + * @property _interval + * @private + */ + _interval: null, + + /** + * @method startInterval + * @static + * @private + */ + startInterval: function() { + if (!this._interval) { + var self = this; + var callback = function() { self._tryPreloadAttach(); }; + this._interval = setInterval(callback, this.POLL_INTERVAL); + // this.timeout = setTimeout(callback, i); + } + }, + + /** + * Executes the supplied callback when the item with the supplied + * id is found. This is meant to be used to execute behavior as + * soon as possible as the page loads. If you use this after the + * initial page load it will poll for a fixed time for the element. + * The number of times it will poll and the frequency are + * configurable. By default it will poll for 10 seconds. + * + * @method onAvailable + * + * @param {string} p_id the id of the element to look for. + * @param {function} p_fn what to execute when the element is found. + * @param {object} p_obj an optional object to be passed back as + * a parameter to p_fn. + * @param {boolean} p_override If set to true, p_fn will execute + * in the scope of p_obj + * + * @static + */ + onAvailable: function(p_id, p_fn, p_obj, p_override) { + onAvailStack.push( { id: p_id, + fn: p_fn, + obj: p_obj, + override: p_override, + checkReady: false } ); + + retryCount = this.POLL_RETRYS; + this.startInterval(); + }, + + /** + * Works the same way as onAvailable, but additionally checks the + * state of sibling elements to determine if the content of the + * available element is safe to modify. + * + * @method onContentReady + * + * @param {string} p_id the id of the element to look for. + * @param {function} p_fn what to execute when the element is ready. + * @param {object} p_obj an optional object to be passed back as + * a parameter to p_fn. + * @param {boolean} p_override If set to true, p_fn will execute + * in the scope of p_obj + * + * @static + */ + onContentReady: function(p_id, p_fn, p_obj, p_override) { + onAvailStack.push( { id: p_id, + fn: p_fn, + obj: p_obj, + override: p_override, + checkReady: true } ); + + retryCount = this.POLL_RETRYS; + this.startInterval(); + }, + + /** + * Appends an event handler + * + * @method addListener + * + * @param {Object} el The html element to assign the + * event to + * @param {String} sType The type of event to append + * @param {Function} fn The method the event invokes + * @param {Object} obj An arbitrary object that will be + * passed as a parameter to the handler + * @param {boolean} override If true, the obj passed in becomes + * the execution scope of the listener + * @return {boolean} True if the action was successful or defered, + * false if one or more of the elements + * could not have the listener attached, + * or if the operation throws an exception. + * @static + */ + addListener: function(el, sType, fn, obj, override) { + + + if (!fn || !fn.call) { + // this.logger.debug("Error, function is not valid " + fn); + return false; + } + + // The el argument can be an array of elements or element ids. + if ( this._isValidCollection(el)) { + var ok = true; + for (var i=0,len=el.length; i<len; ++i) { + ok = this.on(el[i], + sType, + fn, + obj, + override) && ok; + } + return ok; + + } else if (typeof el == "string") { + var oEl = this.getEl(el); + // If the el argument is a string, we assume it is + // actually the id of the element. If the page is loaded + // we convert el to the actual element, otherwise we + // defer attaching the event until onload event fires + + // check to see if we need to delay hooking up the event + // until after the page loads. + if (oEl) { + el = oEl; + } else { + // defer adding the event until the element is available + this.onAvailable(el, function() { + YAHOO.util.Event.on(el, sType, fn, obj, override); + }); + + return true; + } + } + + // Element should be an html element or an array if we get + // here. + if (!el) { + // this.logger.debug("unable to attach event " + sType); + return false; + } + + // we need to make sure we fire registered unload events + // prior to automatically unhooking them. So we hang on to + // these instead of attaching them to the window and fire the + // handles explicitly during our one unload event. + if ("unload" == sType && obj !== this) { + unloadListeners[unloadListeners.length] = + [el, sType, fn, obj, override]; + return true; + } + + // this.logger.debug("Adding handler: " + el + ", " + sType); + + // if the user chooses to override the scope, we use the custom + // object passed in, otherwise the executing scope will be the + // HTML element that the event is registered on + var scope = el; + if (override) { + if (override === true) { + scope = obj; + } else { + scope = override; + } + } + + // wrap the function so we can return the obj object when + // the event fires; + var wrappedFn = function(e) { + return fn.call(scope, YAHOO.util.Event.getEvent(e), + obj); + }; + + var li = [el, sType, fn, wrappedFn, scope]; + var index = listeners.length; + // cache the listener so we can try to automatically unload + listeners[index] = li; + + if (this.useLegacyEvent(el, sType)) { + var legacyIndex = this.getLegacyIndex(el, sType); + + // Add a new dom0 wrapper if one is not detected for this + // element + if ( legacyIndex == -1 || + el != legacyEvents[legacyIndex][0] ) { + + legacyIndex = legacyEvents.length; + legacyMap[el.id + sType] = legacyIndex; + + // cache the signature for the DOM0 event, and + // include the existing handler for the event, if any + legacyEvents[legacyIndex] = + [el, sType, el["on" + sType]]; + legacyHandlers[legacyIndex] = []; + + el["on" + sType] = + function(e) { + YAHOO.util.Event.fireLegacyEvent( + YAHOO.util.Event.getEvent(e), legacyIndex); + }; + } + + // add a reference to the wrapped listener to our custom + // stack of events + //legacyHandlers[legacyIndex].push(index); + legacyHandlers[legacyIndex].push(li); + + } else { + try { + this._simpleAdd(el, sType, wrappedFn, false); + } catch(ex) { + // handle an error trying to attach an event. If it fails + // we need to clean up the cache + this.lastError = ex; + this.removeListener(el, sType, fn); + return false; + } + } + + return true; + + }, + + /** + * When using legacy events, the handler is routed to this object + * so we can fire our custom listener stack. + * @method fireLegacyEvent + * @static + * @private + */ + fireLegacyEvent: function(e, legacyIndex) { + // this.logger.debug("fireLegacyEvent " + legacyIndex); + var ok=true,le,lh,li,scope,ret; + + lh = legacyHandlers[legacyIndex]; + for (var i=0,len=lh.length; i<len; ++i) { + li = lh[i]; + if ( li && li[this.WFN] ) { + scope = li[this.ADJ_SCOPE]; + ret = li[this.WFN].call(scope, e); + ok = (ok && ret); + } + } + + // Fire the original handler if we replaced one. We fire this + // after the other events to keep stopPropagation/preventDefault + // that happened in the DOM0 handler from touching our DOM2 + // substitute + le = legacyEvents[legacyIndex]; + if (le && le[2]) { + le[2](e); + } + + return ok; + }, + + /** + * Returns the legacy event index that matches the supplied + * signature + * @method getLegacyIndex + * @static + * @private + */ + getLegacyIndex: function(el, sType) { + var key = this.generateId(el) + sType; + if (typeof legacyMap[key] == "undefined") { + return -1; + } else { + return legacyMap[key]; + } + }, + + /** + * Logic that determines when we should automatically use legacy + * events instead of DOM2 events. Currently this is limited to old + * Safari browsers with a broken preventDefault + * @method useLegacyEvent + * @static + * @private + */ + useLegacyEvent: function(el, sType) { + if (this.webkit && ("click"==sType || "dblclick"==sType)) { + var v = parseInt(this.webkit, 10); + if (!isNaN(v) && v<418) { + return true; + } + } + return false; + }, + + /** + * Removes an event handler + * + * @method removeListener + * + * @param {Object} el the html element or the id of the element to + * assign the event to. + * @param {String} sType the type of event to remove. + * @param {Function} fn the method the event invokes. If fn is + * undefined, then all event handlers for the type of event are + * removed. + * @return {boolean} true if the unbind was successful, false + * otherwise. + * @static + */ + removeListener: function(el, sType, fn) { + var i, len; + + // The el argument can be a string + if (typeof el == "string") { + el = this.getEl(el); + // The el argument can be an array of elements or element ids. + } else if ( this._isValidCollection(el)) { + var ok = true; + for (i=0,len=el.length; i<len; ++i) { + ok = ( this.removeListener(el[i], sType, fn) && ok ); + } + return ok; + } + + if (!fn || !fn.call) { + // this.logger.debug("Error, function is not valid " + fn); + //return false; + return this.purgeElement(el, false, sType); + } + + + if ("unload" == sType) { + + for (i=0, len=unloadListeners.length; i<len; i++) { + var li = unloadListeners[i]; + if (li && + li[0] == el && + li[1] == sType && + li[2] == fn) { + unloadListeners.splice(i, 1); + return true; + } + } + + return false; + } + + var cacheItem = null; + + // The index is a hidden parameter; needed to remove it from + // the method signature because it was tempting users to + // try and take advantage of it, which is not possible. + var index = arguments[3]; + + if ("undefined" == typeof index) { + index = this._getCacheIndex(el, sType, fn); + } + + if (index >= 0) { + cacheItem = listeners[index]; + } + + if (!el || !cacheItem) { + // this.logger.debug("cached listener not found"); + return false; + } + + // this.logger.debug("Removing handler: " + el + ", " + sType); + + if (this.useLegacyEvent(el, sType)) { + var legacyIndex = this.getLegacyIndex(el, sType); + var llist = legacyHandlers[legacyIndex]; + if (llist) { + for (i=0, len=llist.length; i<len; ++i) { + li = llist[i]; + if (li && + li[this.EL] == el && + li[this.TYPE] == sType && + li[this.FN] == fn) { + llist.splice(i, 1); + break; + } + } + } + + } else { + try { + this._simpleRemove(el, sType, cacheItem[this.WFN], false); + } catch(ex) { + this.lastError = ex; + return false; + } + } + + // removed the wrapped handler + delete listeners[index][this.WFN]; + delete listeners[index][this.FN]; + listeners.splice(index, 1); + + return true; + + }, + + /** + * Returns the event's target element + * @method getTarget + * @param {Event} ev the event + * @param {boolean} resolveTextNode when set to true the target's + * parent will be returned if the target is a + * text node. @deprecated, the text node is + * now resolved automatically + * @return {HTMLElement} the event's target + * @static + */ + getTarget: function(ev, resolveTextNode) { + var t = ev.target || ev.srcElement; + return this.resolveTextNode(t); + }, + + /** + * In some cases, some browsers will return a text node inside + * the actual element that was targeted. This normalizes the + * return value for getTarget and getRelatedTarget. + * @method resolveTextNode + * @param {HTMLElement} node node to resolve + * @return {HTMLElement} the normized node + * @static + */ + resolveTextNode: function(node) { + // if (node && node.nodeName && + // "#TEXT" == node.nodeName.toUpperCase()) { + if (node && 3 == node.nodeType) { + return node.parentNode; + } else { + return node; + } + }, + + /** + * Returns the event's pageX + * @method getPageX + * @param {Event} ev the event + * @return {int} the event's pageX + * @static + */ + getPageX: function(ev) { + var x = ev.pageX; + if (!x && 0 !== x) { + x = ev.clientX || 0; + + if ( this.isIE ) { + x += this._getScrollLeft(); + } + } + + return x; + }, + + /** + * Returns the event's pageY + * @method getPageY + * @param {Event} ev the event + * @return {int} the event's pageY + * @static + */ + getPageY: function(ev) { + var y = ev.pageY; + if (!y && 0 !== y) { + y = ev.clientY || 0; + + if ( this.isIE ) { + y += this._getScrollTop(); + } + } + + + return y; + }, + + /** + * Returns the pageX and pageY properties as an indexed array. + * @method getXY + * @param {Event} ev the event + * @return {[x, y]} the pageX and pageY properties of the event + * @static + */ + getXY: function(ev) { + return [this.getPageX(ev), this.getPageY(ev)]; + }, + + /** + * Returns the event's related target + * @method getRelatedTarget + * @param {Event} ev the event + * @return {HTMLElement} the event's relatedTarget + * @static + */ + getRelatedTarget: function(ev) { + var t = ev.relatedTarget; + if (!t) { + if (ev.type == "mouseout") { + t = ev.toElement; + } else if (ev.type == "mouseover") { + t = ev.fromElement; + } + } + + return this.resolveTextNode(t); + }, + + /** + * Returns the time of the event. If the time is not included, the + * event is modified using the current time. + * @method getTime + * @param {Event} ev the event + * @return {Date} the time of the event + * @static + */ + getTime: function(ev) { + if (!ev.time) { + var t = new Date().getTime(); + try { + ev.time = t; + } catch(ex) { + this.lastError = ex; + return t; + } + } + + return ev.time; + }, + + /** + * Convenience method for stopPropagation + preventDefault + * @method stopEvent + * @param {Event} ev the event + * @static + */ + stopEvent: function(ev) { + this.stopPropagation(ev); + this.preventDefault(ev); + }, + + /** + * Stops event propagation + * @method stopPropagation + * @param {Event} ev the event + * @static + */ + stopPropagation: function(ev) { + if (ev.stopPropagation) { + ev.stopPropagation(); + } else { + ev.cancelBubble = true; + } + }, + + /** + * Prevents the default behavior of the event + * @method preventDefault + * @param {Event} ev the event + * @static + */ + preventDefault: function(ev) { + if (ev.preventDefault) { + ev.preventDefault(); + } else { + ev.returnValue = false; + } + }, + + /** + * Finds the event in the window object, the caller's arguments, or + * in the arguments of another method in the callstack. This is + * executed automatically for events registered through the event + * manager, so the implementer should not normally need to execute + * this function at all. + * @method getEvent + * @param {Event} e the event parameter from the handler + * @return {Event} the event + * @static + */ + getEvent: function(e) { + var ev = e || window.event; + + if (!ev) { + var c = this.getEvent.caller; + while (c) { + ev = c.arguments[0]; + if (ev && Event == ev.constructor) { + break; + } + c = c.caller; + } + } + + return ev; + }, + + /** + * Returns the charcode for an event + * @method getCharCode + * @param {Event} ev the event + * @return {int} the event's charCode + * @static + */ + getCharCode: function(ev) { + return ev.charCode || ev.keyCode || 0; + }, + + /** + * Locating the saved event handler data by function ref + * + * @method _getCacheIndex + * @static + * @private + */ + _getCacheIndex: function(el, sType, fn) { + for (var i=0,len=listeners.length; i<len; ++i) { + var li = listeners[i]; + if ( li && + li[this.FN] == fn && + li[this.EL] == el && + li[this.TYPE] == sType ) { + return i; + } + } + + return -1; + }, + + /** + * Generates an unique ID for the element if it does not already + * have one. + * @method generateId + * @param el the element to create the id for + * @return {string} the resulting id of the element + * @static + */ + generateId: function(el) { + var id = el.id; + + if (!id) { + id = "yuievtautoid-" + counter; + ++counter; + el.id = id; + } + + return id; + }, + + + /** + * We want to be able to use getElementsByTagName as a collection + * to attach a group of events to. Unfortunately, different + * browsers return different types of collections. This function + * tests to determine if the object is array-like. It will also + * fail if the object is an array, but is empty. + * @method _isValidCollection + * @param o the object to test + * @return {boolean} true if the object is array-like and populated + * @static + * @private + */ + _isValidCollection: function(o) { + return ( o && // o is something + o.length && // o is indexed + typeof o != "string" && // o is not a string + !o.tagName && // o is not an HTML element + !o.alert && // o is not a window + typeof o[0] != "undefined" ); + + }, + + /** + * @private + * @property elCache + * DOM element cache + * @static + */ + elCache: {}, + + /** + * We cache elements bound by id because when the unload event + * fires, we can no longer use document.getElementById + * @method getEl + * @static + * @private + */ + getEl: function(id) { + return document.getElementById(id); + }, + + /** + * Clears the element cache + * @deprecated Elements are not cached any longer + * @method clearCache + * @static + * @private + */ + clearCache: function() { }, + + /** + * hook up any deferred listeners + * @method _load + * @static + * @private + */ + _load: function(e) { + loadComplete = true; + var EU = YAHOO.util.Event; + // Remove the listener to assist with the IE memory issue, but not + // for other browsers because FF 1.0x does not like it. + if (this.isIE) { + EU._simpleRemove(window, "load", EU._load); + } + }, + + /** + * Polling function that runs before the onload event fires, + * attempting to attach to DOM Nodes as soon as they are + * available + * @method _tryPreloadAttach + * @static + * @private + */ + _tryPreloadAttach: function() { + + if (this.locked) { + return false; + } + + this.locked = true; + + // this.logger.debug("tryPreloadAttach"); + + // keep trying until after the page is loaded. We need to + // check the page load state prior to trying to bind the + // elements so that we can be certain all elements have been + // tested appropriately + var tryAgain = !loadComplete; + if (!tryAgain) { + tryAgain = (retryCount > 0); + } + + // onAvailable + var notAvail = []; + for (var i=0,len=onAvailStack.length; i<len ; ++i) { + var item = onAvailStack[i]; + if (item) { + var el = this.getEl(item.id); + + if (el) { + // The element is available, but not necessarily ready + // @todo verify IE7 compatibility + // @todo should we test parentNode.nextSibling? + // @todo re-evaluate global content ready + if ( !item.checkReady || + loadComplete || + el.nextSibling || + (document && document.body) ) { + + var scope = el; + if (item.override) { + if (item.override === true) { + scope = item.obj; + } else { + scope = item.override; + } + } + item.fn.call(scope, item.obj); + //delete onAvailStack[i]; + // null out instead of delete for Opera + onAvailStack[i] = null; + } + } else { + notAvail.push(item); + } + } + } + + retryCount = (notAvail.length === 0) ? 0 : retryCount - 1; + + if (tryAgain) { + // we may need to strip the nulled out items here + this.startInterval(); + } else { + clearInterval(this._interval); + this._interval = null; + } + + this.locked = false; + + return true; + + }, + + /** + * Removes all listeners attached to the given element via addListener. + * Optionally, the node's children can also be purged. + * Optionally, you can specify a specific type of event to remove. + * @method purgeElement + * @param {HTMLElement} el the element to purge + * @param {boolean} recurse recursively purge this element's children + * as well. Use with caution. + * @param {string} sType optional type of listener to purge. If + * left out, all listeners will be removed + * @static + */ + purgeElement: function(el, recurse, sType) { + var elListeners = this.getListeners(el, sType); + if (elListeners) { + for (var i=0,len=elListeners.length; i<len ; ++i) { + var l = elListeners[i]; + // can't use the index on the changing collection + //this.removeListener(el, l.type, l.fn, l.index); + this.removeListener(el, l.type, l.fn); + } + } + + if (recurse && el && el.childNodes) { + for (i=0,len=el.childNodes.length; i<len ; ++i) { + this.purgeElement(el.childNodes[i], recurse, sType); + } + } + }, + + /** + * Returns all listeners attached to the given element via addListener. + * Optionally, you can specify a specific type of event to return. + * @method getListeners + * @param el {HTMLElement} the element to inspect + * @param sType {string} optional type of listener to return. If + * left out, all listeners will be returned + * @return {Object} the listener. Contains the following fields: + * type: (string) the type of event + * fn: (function) the callback supplied to addListener + * obj: (object) the custom object supplied to addListener + * adjust: (boolean) whether or not to adjust the default scope + * index: (int) its position in the Event util listener cache + * @static + */ + getListeners: function(el, sType) { + var results=[], searchLists; + if (!sType) { + searchLists = [listeners, unloadListeners]; + } else if (sType == "unload") { + searchLists = [unloadListeners]; + } else { + searchLists = [listeners]; + } + + for (var j=0;j<searchLists.length; ++j) { + var searchList = searchLists[j]; + if (searchList && searchList.length > 0) { + for (var i=0,len=searchList.length; i<len ; ++i) { + var l = searchList[i]; + if ( l && l[this.EL] === el && + (!sType || sType === l[this.TYPE]) ) { + results.push({ + type: l[this.TYPE], + fn: l[this.FN], + obj: l[this.OBJ], + adjust: l[this.ADJ_SCOPE], + index: i + }); + } + } + } + } + + return (results.length) ? results : null; + }, + + /** + * Removes all listeners registered by pe.event. Called + * automatically during the unload event. + * @method _unload + * @static + * @private + */ + _unload: function(e) { + + var EU = YAHOO.util.Event, i, j, l, len, index; + + for (i=0,len=unloadListeners.length; i<len; ++i) { + l = unloadListeners[i]; + if (l) { + var scope = window; + if (l[EU.ADJ_SCOPE]) { + if (l[EU.ADJ_SCOPE] === true) { + scope = l[EU.OBJ]; + } else { + scope = l[EU.ADJ_SCOPE]; + } + } + l[EU.FN].call(scope, EU.getEvent(e), l[EU.OBJ] ); + unloadListeners[i] = null; + l=null; + scope=null; + } + } + + unloadListeners = null; + + if (listeners && listeners.length > 0) { + j = listeners.length; + while (j) { + index = j-1; + l = listeners[index]; + if (l) { + EU.removeListener(l[EU.EL], l[EU.TYPE], + l[EU.FN], index); + } + j = j - 1; + } + l=null; + + EU.clearCache(); + } + + for (i=0,len=legacyEvents.length; i<len; ++i) { + // dereference the element + //delete legacyEvents[i][0]; + legacyEvents[i][0] = null; + + // delete the array item + //delete legacyEvents[i]; + legacyEvents[i] = null; + } + + legacyEvents = null; + + EU._simpleRemove(window, "unload", EU._unload); + + }, + + /** + * Returns scrollLeft + * @method _getScrollLeft + * @static + * @private + */ + _getScrollLeft: function() { + return this._getScroll()[1]; + }, + + /** + * Returns scrollTop + * @method _getScrollTop + * @static + * @private + */ + _getScrollTop: function() { + return this._getScroll()[0]; + }, + + /** + * Returns the scrollTop and scrollLeft. Used to calculate the + * pageX and pageY in Internet Explorer + * @method _getScroll + * @static + * @private + */ + _getScroll: function() { + var dd = document.documentElement, db = document.body; + if (dd && (dd.scrollTop || dd.scrollLeft)) { + return [dd.scrollTop, dd.scrollLeft]; + } else if (db) { + return [db.scrollTop, db.scrollLeft]; + } else { + return [0, 0]; + } + }, + + /** + * Used by old versions of CustomEvent, restored for backwards + * compatibility + * @method regCE + * @private + */ + regCE: function() { + // does nothing + }, + + /** + * Adds a DOM event directly without the caching, cleanup, scope adj, etc + * + * @method _simpleAdd + * @param {HTMLElement} el the element to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @param {boolen} capture capture or bubble phase + * @static + * @private + */ + _simpleAdd: function () { + if (window.addEventListener) { + return function(el, sType, fn, capture) { + el.addEventListener(sType, fn, (capture)); + }; + } else if (window.attachEvent) { + return function(el, sType, fn, capture) { + el.attachEvent("on" + sType, fn); + }; + } else { + return function(){}; + } + }(), + + /** + * Basic remove listener + * + * @method _simpleRemove + * @param {HTMLElement} el the element to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @param {boolen} capture capture or bubble phase + * @static + * @private + */ + _simpleRemove: function() { + if (window.removeEventListener) { + return function (el, sType, fn, capture) { + el.removeEventListener(sType, fn, (capture)); + }; + } else if (window.detachEvent) { + return function (el, sType, fn) { + el.detachEvent("on" + sType, fn); + }; + } else { + return function(){}; + } + }() + }; + + }(); + + (function() { + var EU = YAHOO.util.Event; + + /** + * YAHOO.util.Event.on is an alias for addListener + * @method on + * @see addListener + * @static + */ + EU.on = EU.addListener; + + // YAHOO.mix(EU, YAHOO.util.EventProvider.prototype); + // EU.createEvent("DOMContentReady"); + // EU.subscribe("DOMContentReady", EU._load); + + if (document && document.body) { + EU._load(); + } else { + // EU._simpleAdd(document, "DOMContentLoaded", EU._load); + EU._simpleAdd(window, "load", EU._load); + } + EU._simpleAdd(window, "unload", EU._unload); + EU._tryPreloadAttach(); + })(); +} + +/** + * The CustomEvent class lets you define events for your application + * that can be subscribed to by one or more independent component. + * + * @param {String} type The type of event, which is passed to the callback + * when the event fires + * @param {Object} oScope The context the event will fire from. "this" will + * refer to this object in the callback. Default value: + * the window object. The listener can override this. + * @param {boolean} silent pass true to prevent the event from writing to + * the debugsystem + * @param {int} signature the signature that the custom event subscriber + * will receive. YAHOO.util.CustomEvent.LIST or + * YAHOO.util.CustomEvent.FLAT. The default is + * YAHOO.util.CustomEvent.LIST. + * @namespace YAHOO.util + * @class CustomEvent + * @constructor + */ +YAHOO.util.CustomEvent = function(type, oScope, silent, signature) { + + /** + * The type of event, returned to subscribers when the event fires + * @property type + * @type string + */ + this.type = type; + + /** + * The scope the the event will fire from by default. Defaults to the window + * obj + * @property scope + * @type object + */ + this.scope = oScope || window; + + /** + * By default all custom events are logged in the debug build, set silent + * to true to disable debug outpu for this event. + * @property silent + * @type boolean + */ + this.silent = silent; + + /** + * Custom events support two styles of arguments provided to the event + * subscribers. + * <ul> + * <li>YAHOO.util.CustomEvent.LIST: + * <ul> + * <li>param1: event name</li> + * <li>param2: array of arguments sent to fire</li> + * <li>param3: <optional> a custom object supplied by the subscriber</li> + * </ul> + * </li> + * <li>YAHOO.util.CustomEvent.FLAT + * <ul> + * <li>param1: the first argument passed to fire. If you need to + * pass multiple parameters, use and array or object literal</li> + * <li>param2: <optional> a custom object supplied by the subscriber</li> + * </ul> + * </li> + * </ul> + * @property signature + * @type int + */ + this.signature = signature || YAHOO.util.CustomEvent.LIST; + + /** + * The subscribers to this event + * @property subscribers + * @type Subscriber[] + */ + this.subscribers = []; + + if (!this.silent) { + YAHOO.log( "Creating " + this, "info", "Event" ); + } + + var onsubscribeType = "_YUICEOnSubscribe"; + + // Only add subscribe events for events that are not generated by + // CustomEvent + if (type !== onsubscribeType) { + + /** + * Custom events provide a custom event that fires whenever there is + * a new subscriber to the event. This provides an opportunity to + * handle the case where there is a non-repeating event that has + * already fired has a new subscriber. + * + * @event subscribeEvent + * @type YAHOO.util.CustomEvent + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event + * fires + * @param {boolean|Object} override If true, the obj passed in becomes + * the execution scope of the listener. + * if an object, that object becomes the + * the execution scope. + */ + this.subscribeEvent = + new YAHOO.util.CustomEvent(onsubscribeType, this, true); + + } +}; + +/** + * Subscriber listener sigature constant. The LIST type returns three + * parameters: the event type, the array of args passed to fire, and + * the optional custom object + * @property YAHOO.util.CustomEvent.LIST + * @static + * @type int + */ +YAHOO.util.CustomEvent.LIST = 0; + +/** + * Subscriber listener sigature constant. The FLAT type returns two + * parameters: the first argument passed to fire and the optional + * custom object + * @property YAHOO.util.CustomEvent.FLAT + * @static + * @type int + */ +YAHOO.util.CustomEvent.FLAT = 1; + +YAHOO.util.CustomEvent.prototype = { + + /** + * Subscribes the caller to this event + * @method subscribe + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event + * fires + * @param {boolean|Object} override If true, the obj passed in becomes + * the execution scope of the listener. + * if an object, that object becomes the + * the execution scope. + */ + subscribe: function(fn, obj, override) { + if (this.subscribeEvent) { + this.subscribeEvent.fire(fn, obj, override); + } + + this.subscribers.push( new YAHOO.util.Subscriber(fn, obj, override) ); + }, + + /** + * Unsubscribes subscribers. + * @method unsubscribe + * @param {Function} fn The subscribed function to remove, if not supplied + * all will be removed + * @param {Object} obj The custom object passed to subscribe. This is + * optional, but if supplied will be used to + * disambiguate multiple listeners that are the same + * (e.g., you subscribe many object using a function + * that lives on the prototype) + * @return {boolean} True if the subscriber was found and detached. + */ + unsubscribe: function(fn, obj) { + + if (!fn) { + return this.unsubscribeAll(); + } + + var found = false; + for (var i=0, len=this.subscribers.length; i<len; ++i) { + var s = this.subscribers[i]; + if (s && s.contains(fn, obj)) { + this._delete(i); + found = true; + } + } + + return found; + }, + + /** + * Notifies the subscribers. The callback functions will be executed + * from the scope specified when the event was created, and with the + * following parameters: + * <ul> + * <li>The type of event</li> + * <li>All of the arguments fire() was executed with as an array</li> + * <li>The custom object (if any) that was passed into the subscribe() + * method</li> + * </ul> + * @method fire + * @param {Object*} arguments an arbitrary set of parameters to pass to + * the handler. + * @return {boolean} false if one of the subscribers returned false, + * true otherwise + */ + fire: function() { + var len=this.subscribers.length; + if (!len && this.silent) { + return true; + } + + var args=[], ret=true, i; + + for (i=0; i<arguments.length; ++i) { + args.push(arguments[i]); + } + + var argslength = args.length; + + if (!this.silent) { + YAHOO.log( "Firing " + this + ", " + + "args: " + args + ", " + + "subscribers: " + len, + "info", "Event" ); + } + + for (i=0; i<len; ++i) { + var s = this.subscribers[i]; + if (s) { + if (!this.silent) { + YAHOO.log( this.type + "->" + (i+1) + ": " + s, + "info", "Event" ); + } + + var scope = s.getScope(this.scope); + + if (this.signature == YAHOO.util.CustomEvent.FLAT) { + var param = null; + if (args.length > 0) { + param = args[0]; + } + ret = s.fn.call(scope, param, s.obj); + } else { + ret = s.fn.call(scope, this.type, args, s.obj); + } + if (false === ret) { + if (!this.silent) { + YAHOO.log("Event cancelled, subscriber " + i + + " of " + len); + } + + //break; + return false; + } + } + } + + return true; + }, + + /** + * Removes all listeners + * @method unsubscribeAll + * @return {int} The number of listeners unsubscribed + */ + unsubscribeAll: function() { + for (var i=0, len=this.subscribers.length; i<len; ++i) { + this._delete(len - 1 - i); + } + + return i; + }, + + /** + * @method _delete + * @private + */ + _delete: function(index) { + var s = this.subscribers[index]; + if (s) { + delete s.fn; + delete s.obj; + } + + // delete this.subscribers[index]; + this.subscribers.splice(index, 1); + }, + + /** + * @method toString + */ + toString: function() { + return "CustomEvent: " + "'" + this.type + "', " + + "scope: " + this.scope; + + } +}; + +///////////////////////////////////////////////////////////////////// + +/** + * Stores the subscriber information to be used when the event fires. + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event fires + * @param {boolean} override If true, the obj passed in becomes the execution + * scope of the listener + * @class Subscriber + * @constructor + */ +YAHOO.util.Subscriber = function(fn, obj, override) { + + /** + * The callback that will be execute when the event fires + * @property fn + * @type function + */ + this.fn = fn; + + /** + * An optional custom object that will passed to the callback when + * the event fires + * @property obj + * @type object + */ + this.obj = obj || null; + + /** + * The default execution scope for the event listener is defined when the + * event is created (usually the object which contains the event). + * By setting override to true, the execution scope becomes the custom + * object passed in by the subscriber. If override is an object, that + * object becomes the scope. + * @property override + * @type boolean|object + */ + this.override = override; + +}; + +/** + * Returns the execution scope for this listener. If override was set to true + * the custom obj will be the scope. If override is an object, that is the + * scope, otherwise the default scope will be used. + * @method getScope + * @param {Object} defaultScope the scope to use if this listener does not + * override it. + */ +YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) { + if (this.override) { + if (this.override === true) { + return this.obj; + } else { + return this.override; + } + } + return defaultScope; +}; + +/** + * Returns true if the fn and obj match this objects properties. + * Used by the unsubscribe method to match the right subscriber. + * + * @method contains + * @param {Function} fn the function to execute + * @param {Object} obj an object to be passed along when the event fires + * @return {boolean} true if the supplied arguments match this + * subscriber's signature. + */ +YAHOO.util.Subscriber.prototype.contains = function(fn, obj) { + if (obj) { + return (this.fn == fn && this.obj == obj); + } else { + return (this.fn == fn); + } +}; + +/** + * @method toString + */ +YAHOO.util.Subscriber.prototype.toString = function() { + return "Subscriber { obj: " + (this.obj || "") + + ", override: " + (this.override || "no") + " }"; +}; + +/** + * EventProvider is designed to be used with YAHOO.augment to wrap + * CustomEvents in an interface that allows events to be subscribed to + * and fired by name. This makes it possible for implementing code to + * subscribe to an event that either has not been created yet, or will + * not be created at all. + * + * @Class EventProvider + */ +YAHOO.util.EventProvider = function() { }; + +YAHOO.util.EventProvider.prototype = { + + /** + * Private storage of custom events + * @property __yui_events + * @type Object[] + * @private + */ + __yui_events: null, + + /** + * Private storage of custom event subscribers + * @property __yui_subscribers + * @type Object[] + * @private + */ + __yui_subscribers: null, + + /** + * Subscribe to a CustomEvent by event type + * + * @method subscribe + * @param p_type {string} the type, or name of the event + * @param p_fn {function} the function to exectute when the event fires + * @param p_obj + * @param p_obj {Object} An object to be passed along when the event + * fires + * @param p_override {boolean} If true, the obj passed in becomes the + * execution scope of the listener + */ + subscribe: function(p_type, p_fn, p_obj, p_override) { + + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + + if (ce) { + ce.subscribe(p_fn, p_obj, p_override); + } else { + this.__yui_subscribers = this.__yui_subscribers || {}; + var subs = this.__yui_subscribers; + if (!subs[p_type]) { + subs[p_type] = []; + } + subs[p_type].push( + { fn: p_fn, obj: p_obj, override: p_override } ); + } + }, + + /** + * Unsubscribes one or more listeners the from the specified event + * @method unsubscribe + * @param p_type {string} The type, or name of the event + * @param p_fn {Function} The subscribed function to unsubscribe, if not + * supplied, all subscribers will be removed. + * @param p_obj {Object} The custom object passed to subscribe. This is + * optional, but if supplied will be used to + * disambiguate multiple listeners that are the same + * (e.g., you subscribe many object using a function + * that lives on the prototype) + * @return {boolean} true if the subscriber was found and detached. + */ + unsubscribe: function(p_type, p_fn, p_obj) { + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + if (ce) { + return ce.unsubscribe(p_fn, p_obj); + } else { + return false; + } + }, + + /** + * Removes all listeners from the specified event + * @method unsubscribeAll + * @param p_type {string} The type, or name of the event + */ + unsubscribeAll: function(p_type) { + return this.unsubscribe(p_type); + }, + + /** + * Creates a new custom event of the specified type. If a custom event + * by that name already exists, it will not be re-created. In either + * case the custom event is returned. + * + * @method createEvent + * + * @param p_type {string} the type, or name of the event + * @param p_config {object} optional config params. Valid properties are: + * + * <ul> + * <li> + * scope: defines the default execution scope. If not defined + * the default scope will be this instance. + * </li> + * <li> + * silent: if true, the custom event will not generate log messages. + * This is false by default. + * </li> + * <li> + * onSubscribeCallback: specifies a callback to execute when the + * event has a new subscriber. This will fire immediately for + * each queued subscriber if any exist prior to the creation of + * the event. + * </li> + * </ul> + * + * @return {CustomEvent} the custom event + * + */ + createEvent: function(p_type, p_config) { + + this.__yui_events = this.__yui_events || {}; + var opts = p_config || {}; + var events = this.__yui_events; + + if (events[p_type]) { + YAHOO.log("EventProvider: error, event already exists"); + } else { + + var scope = opts.scope || this; + var silent = opts.silent || null; + + var ce = new YAHOO.util.CustomEvent(p_type, scope, silent, + YAHOO.util.CustomEvent.FLAT); + events[p_type] = ce; + + if (opts.onSubscribeCallback) { + ce.subscribeEvent.subscribe(opts.onSubscribeCallback); + } + + this.__yui_subscribers = this.__yui_subscribers || {}; + var qs = this.__yui_subscribers[p_type]; + + if (qs) { + for (var i=0; i<qs.length; ++i) { + ce.subscribe(qs[i].fn, qs[i].obj, qs[i].override); + } + } + } + + return events[p_type]; + }, + + + /** + * Fire a custom event by name. The callback functions will be executed + * from the scope specified when the event was created, and with the + * following parameters: + * <ul> + * <li>The first argument fire() was executed with</li> + * <li>The custom object (if any) that was passed into the subscribe() + * method</li> + * </ul> + * @method fireEvent + * @param p_type {string} the type, or name of the event + * @param arguments {Object*} an arbitrary set of parameters to pass to + * the handler. + * @return {boolean} the return value from CustomEvent.fire, or null if + * the custom event does not exist. + */ + fireEvent: function(p_type, arg1, arg2, etc) { + + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + + if (ce) { + var args = []; + for (var i=1; i<arguments.length; ++i) { + args.push(arguments[i]); + } + return ce.fire.apply(ce, args); + } else { + YAHOO.log("EventProvider.fire could not find event: " + p_type); + return null; + } + }, + + /** + * Returns true if the custom event of the provided type has been created + * with createEvent. + * @method hasEvent + * @param type {string} the type, or name of the event + */ + hasEvent: function(type) { + if (this.__yui_events) { + if (this.__yui_events[type]) { + return true; + } + } + return false; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for +* keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key +* event should be attached +* @param {String} attachTo The element or element ID to which the key +* event should be attached +* @param {Object} keyData The object literal representing the key(s) +* to detect. Possible attributes are +* shift(boolean), alt(boolean), ctrl(boolean) +* and keys(either an int or an array of ints +* representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the +* key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to +* listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (!attachTo) { + YAHOO.log("No attachTo element specified", "error"); + } else if (!keyData) { + YAHOO.log("No keyData specified", "error"); + } else if (!handler) { + YAHOO.log("No handler specified", "error"); + } + + if (!event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() + * function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the + * disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the + * target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the + * target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; +YAHOO.register("event", YAHOO.util.Event, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/event/event-min.js b/interface/ispconfig/interface/js/yui/event/event-min.js new file mode 100644 index 0000000..dc92433 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/event/event-min.js @@ -0,0 +1,84 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var lastError=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];} +return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var self=this;var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override){if(!fn||!fn.call){return false;} +if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=this.on(el[i],sType,fn,obj,override)&&ok;} +return ok;}else if(typeof el=="string"){var oEl=this.getEl(el);if(oEl){el=oEl;}else{this.onAvailable(el,function(){YAHOO.util.Event.on(el,sType,fn,obj,override);});return true;}} +if(!el){return false;} +if("unload"==sType&&obj!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,obj,override];return true;} +var scope=el;if(override){if(override===true){scope=obj;}else{scope=override;}} +var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),obj);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1||el!=legacyEvents[legacyIndex][0]){legacyIndex=legacyEvents.length;legacyMap[el.id+sType]=legacyIndex;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};} +legacyHandlers[legacyIndex].push(li);}else{try{this._simpleAdd(el,sType,wrappedFn,false);}catch(ex){this.lastError=ex;this.removeListener(el,sType,fn);return false;}} +return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true,le,lh,li,scope,ret;lh=legacyHandlers[legacyIndex];for(var i=0,len=lh.length;i<len;++i){li=lh[i];if(li&&li[this.WFN]){scope=li[this.ADJ_SCOPE];ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}} +le=legacyEvents[legacyIndex];if(le&&le[2]){le[2](e);} +return ok;},getLegacyIndex:function(el,sType){var key=this.generateId(el)+sType;if(typeof legacyMap[key]=="undefined"){return-1;}else{return legacyMap[key];}},useLegacyEvent:function(el,sType){if(this.webkit&&("click"==sType||"dblclick"==sType)){var v=parseInt(this.webkit,10);if(!isNaN(v)&&v<418){return true;}} +return false;},removeListener:function(el,sType,fn){var i,len;if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);} +return ok;} +if(!fn||!fn.call){return this.purgeElement(el,false,sType);} +if("unload"==sType){for(i=0,len=unloadListeners.length;i<len;i++){var li=unloadListeners[i];if(li&&li[0]==el&&li[1]==sType&&li[2]==fn){unloadListeners.splice(i,1);return true;}} +return false;} +var cacheItem=null;var index=arguments[3];if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);} +if(index>=0){cacheItem=listeners[index];} +if(!el||!cacheItem){return false;} +if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i<len;++i){li=llist[i];if(li&&li[this.EL]==el&&li[this.TYPE]==sType&&li[this.FN]==fn){llist.splice(i,1);break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}} +delete listeners[index][this.WFN];delete listeners[index][this.FN];listeners.splice(index,1);return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}} +return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}} +return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}} +return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}} +return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;} +c=c.caller;}} +return ev;},getCharCode:function(ev){return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,sType,fn){for(var i=0,len=listeners.length;i<len;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}} +return-1;},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;} +return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},_load:function(e){loadComplete=true;var EU=YAHOO.util.Event;if(this.isIE){EU._simpleRemove(window,"load",EU._load);}},_tryPreloadAttach:function(){if(this.locked){return false;} +this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);} +var notAvail=[];for(var i=0,len=onAvailStack.length;i<len;++i){var item=onAvailStack[i];if(item){var el=this.getEl(item.id);if(el){if(!item.checkReady||loadComplete||el.nextSibling||(document&&document.body)){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}} +item.fn.call(scope,item.obj);onAvailStack[i]=null;}}else{notAvail.push(item);}}} +retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;} +this.locked=false;return true;},purgeElement:function(el,recurse,sType){var elListeners=this.getListeners(el,sType);if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn);}} +if(recurse&&el&&el.childNodes){for(i=0,len=el.childNodes.length;i<len;++i){this.purgeElement(el.childNodes[i],recurse,sType);}}},getListeners:function(el,sType){var results=[],searchLists;if(!sType){searchLists=[listeners,unloadListeners];}else if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners];} +for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}} +return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}} +l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}} +unloadListeners=null;if(listeners&&listeners.length>0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);} +j=j-1;} +l=null;EU.clearCache();} +for(i=0,len=legacyEvents.length;i<len;++i){legacyEvents[i][0]=null;legacyEvents[i]=null;} +legacyEvents=null;EU._simpleRemove(window,"unload",EU._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(document&&document.body){EU._load();}else{EU._simpleAdd(window,"load",EU._load);} +EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();} +YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){} +var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);} +this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();} +var found=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}} +return found;},fire:function(){var len=this.subscribers.length;if(!len&&this.silent){return true;} +var args=[],ret=true,i;for(i=0;i<arguments.length;++i){args.push(arguments[i]);} +var argslength=args.length;if(!this.silent){} +for(i=0;i<len;++i){var s=this.subscribers[i];if(s){if(!this.silent){} +var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];} +ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);} +if(false===ret){if(!this.silent){} +return false;}}} +return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);} +return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;} +this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}} +return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];} +subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);} +this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}} +return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);} +return ce.fire.apply(ce,args);}else{return null;}},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}} +return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else if(!keyData){}else if(!handler){} +if(!event){event=YAHOO.util.KeyListener.KEYDOWN;} +var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);} +if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);} +function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;} +if(!keyData.alt){keyData.alt=false;} +if(!keyData.ctrl){keyData.ctrl=false;} +if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}} +this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);} +this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);} +this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+ +(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/event/event.js b/interface/ispconfig/interface/js/yui/event/event.js new file mode 100644 index 0000000..4027642 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/event/event.js @@ -0,0 +1,2054 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Event Utility provides utilities for managing DOM Events and tools + * for building event systems + * + * @module event + * @title Event Utility + * @namespace YAHOO.util + * @requires yahoo + */ + +// The first instance of Event will win if it is loaded more than once. +// @TODO this needs to be changed so that only the state data that needs to +// be preserved is kept, while methods are overwritten/added as needed. +// This means that the module pattern can't be used. +if (!YAHOO.util.Event) { + +/** + * The event utility provides functions to add and remove event listeners, + * event cleansing. It also tries to automatically remove listeners it + * registers during the unload event. + * + * @class Event + * @static + */ + YAHOO.util.Event = function() { + + /** + * True after the onload event has fired + * @property loadComplete + * @type boolean + * @static + * @private + */ + var loadComplete = false; + + /** + * Cache of wrapped listeners + * @property listeners + * @type array + * @static + * @private + */ + var listeners = []; + + /** + * User-defined unload function that will be fired before all events + * are detached + * @property unloadListeners + * @type array + * @static + * @private + */ + var unloadListeners = []; + + /** + * Cache of DOM0 event handlers to work around issues with DOM2 events + * in Safari + * @property legacyEvents + * @static + * @private + */ + var legacyEvents = []; + + /** + * Listener stack for DOM0 events + * @property legacyHandlers + * @static + * @private + */ + var legacyHandlers = []; + + /** + * The number of times to poll after window.onload. This number is + * increased if additional late-bound handlers are requested after + * the page load. + * @property retryCount + * @static + * @private + */ + var retryCount = 0; + + /** + * onAvailable listeners + * @property onAvailStack + * @static + * @private + */ + var onAvailStack = []; + + /** + * Lookup table for legacy events + * @property legacyMap + * @static + * @private + */ + var legacyMap = []; + + /** + * Counter for auto id generation + * @property counter + * @static + * @private + */ + var counter = 0; + + /** + * addListener/removeListener can throw errors in unexpected scenarios. + * These errors are suppressed, the method returns false, and this property + * is set + * @property lastError + * @type Error + */ + var lastError = null; + + return { + + /** + * The number of times we should look for elements that are not + * in the DOM at the time the event is requested after the document + * has been loaded. The default is 200@amp;50 ms, so it will poll + * for 10 seconds or until all outstanding handlers are bound + * (whichever comes first). + * @property POLL_RETRYS + * @type int + * @static + * @final + */ + POLL_RETRYS: 200, + + /** + * The poll interval in milliseconds + * @property POLL_INTERVAL + * @type int + * @static + * @final + */ + POLL_INTERVAL: 20, + + /** + * Element to bind, int constant + * @property EL + * @type int + * @static + * @final + */ + EL: 0, + + /** + * Type of event, int constant + * @property TYPE + * @type int + * @static + * @final + */ + TYPE: 1, + + /** + * Function to execute, int constant + * @property FN + * @type int + * @static + * @final + */ + FN: 2, + + /** + * Function wrapped for scope correction and cleanup, int constant + * @property WFN + * @type int + * @static + * @final + */ + WFN: 3, + + /** + * Object passed in by the user that will be returned as a + * parameter to the callback, int constant + * @property OBJ + * @type int + * @static + * @final + */ + OBJ: 3, + + /** + * Adjusted scope, either the element we are registering the event + * on or the custom object passed in by the listener, int constant + * @property ADJ_SCOPE + * @type int + * @static + * @final + */ + ADJ_SCOPE: 4, + + /** + * Safari detection is necessary to work around the preventDefault + * bug that makes it so you can't cancel a href click from the + * handler. Since this function has been used outside of this + * utility, it was changed to detect all KHTML browser to be more + * friendly towards the non-Safari browsers that share the engine. + * Internally, the preventDefault bug detection now uses the + * webkit property. + * @property isSafari + * @private + * @static + * @deprecated + */ + isSafari: (/KHTML/gi).test(navigator.userAgent), + + /** + * If WebKit is detected, we keep track of the version number of + * the engine. + * Safari 1.3.2 (312.6): 312.8.1 <-- currently the latest + * available on Mac OSX 10.3. + * Safari 2.0.2: 416 <-- hasOwnProperty introduced + * Safari 2.0.4: 418 <-- preventDefault fixed (I believe) + * Safari 2.0.4 (419.3): 418.9.1 <-- current release + * + * http://developer.apple.com/internet/safari/uamatrix.html + * @property webkit + */ + webkit: function() { + var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/); + if (v&&v[1]) { + return v[1]; + } + return null; + }(), + + /** + * IE detection needed to properly calculate pageX and pageY. + * capabilities checking didn't seem to work because another + * browser that does not provide the properties have the values + * calculated in a different manner than IE. + * @property isIE + * @private + * @static + */ + isIE: (!this.webkit && !navigator.userAgent.match(/opera/gi) && + navigator.userAgent.match(/msie/gi)), + + /** + * poll handle + * @property _interval + * @private + */ + _interval: null, + + /** + * @method startInterval + * @static + * @private + */ + startInterval: function() { + if (!this._interval) { + var self = this; + var callback = function() { self._tryPreloadAttach(); }; + this._interval = setInterval(callback, this.POLL_INTERVAL); + // this.timeout = setTimeout(callback, i); + } + }, + + /** + * Executes the supplied callback when the item with the supplied + * id is found. This is meant to be used to execute behavior as + * soon as possible as the page loads. If you use this after the + * initial page load it will poll for a fixed time for the element. + * The number of times it will poll and the frequency are + * configurable. By default it will poll for 10 seconds. + * + * @method onAvailable + * + * @param {string} p_id the id of the element to look for. + * @param {function} p_fn what to execute when the element is found. + * @param {object} p_obj an optional object to be passed back as + * a parameter to p_fn. + * @param {boolean} p_override If set to true, p_fn will execute + * in the scope of p_obj + * + * @static + */ + onAvailable: function(p_id, p_fn, p_obj, p_override) { + onAvailStack.push( { id: p_id, + fn: p_fn, + obj: p_obj, + override: p_override, + checkReady: false } ); + + retryCount = this.POLL_RETRYS; + this.startInterval(); + }, + + /** + * Works the same way as onAvailable, but additionally checks the + * state of sibling elements to determine if the content of the + * available element is safe to modify. + * + * @method onContentReady + * + * @param {string} p_id the id of the element to look for. + * @param {function} p_fn what to execute when the element is ready. + * @param {object} p_obj an optional object to be passed back as + * a parameter to p_fn. + * @param {boolean} p_override If set to true, p_fn will execute + * in the scope of p_obj + * + * @static + */ + onContentReady: function(p_id, p_fn, p_obj, p_override) { + onAvailStack.push( { id: p_id, + fn: p_fn, + obj: p_obj, + override: p_override, + checkReady: true } ); + + retryCount = this.POLL_RETRYS; + this.startInterval(); + }, + + /** + * Appends an event handler + * + * @method addListener + * + * @param {Object} el The html element to assign the + * event to + * @param {String} sType The type of event to append + * @param {Function} fn The method the event invokes + * @param {Object} obj An arbitrary object that will be + * passed as a parameter to the handler + * @param {boolean} override If true, the obj passed in becomes + * the execution scope of the listener + * @return {boolean} True if the action was successful or defered, + * false if one or more of the elements + * could not have the listener attached, + * or if the operation throws an exception. + * @static + */ + addListener: function(el, sType, fn, obj, override) { + + + if (!fn || !fn.call) { + return false; + } + + // The el argument can be an array of elements or element ids. + if ( this._isValidCollection(el)) { + var ok = true; + for (var i=0,len=el.length; i<len; ++i) { + ok = this.on(el[i], + sType, + fn, + obj, + override) && ok; + } + return ok; + + } else if (typeof el == "string") { + var oEl = this.getEl(el); + // If the el argument is a string, we assume it is + // actually the id of the element. If the page is loaded + // we convert el to the actual element, otherwise we + // defer attaching the event until onload event fires + + // check to see if we need to delay hooking up the event + // until after the page loads. + if (oEl) { + el = oEl; + } else { + // defer adding the event until the element is available + this.onAvailable(el, function() { + YAHOO.util.Event.on(el, sType, fn, obj, override); + }); + + return true; + } + } + + // Element should be an html element or an array if we get + // here. + if (!el) { + return false; + } + + // we need to make sure we fire registered unload events + // prior to automatically unhooking them. So we hang on to + // these instead of attaching them to the window and fire the + // handles explicitly during our one unload event. + if ("unload" == sType && obj !== this) { + unloadListeners[unloadListeners.length] = + [el, sType, fn, obj, override]; + return true; + } + + + // if the user chooses to override the scope, we use the custom + // object passed in, otherwise the executing scope will be the + // HTML element that the event is registered on + var scope = el; + if (override) { + if (override === true) { + scope = obj; + } else { + scope = override; + } + } + + // wrap the function so we can return the obj object when + // the event fires; + var wrappedFn = function(e) { + return fn.call(scope, YAHOO.util.Event.getEvent(e), + obj); + }; + + var li = [el, sType, fn, wrappedFn, scope]; + var index = listeners.length; + // cache the listener so we can try to automatically unload + listeners[index] = li; + + if (this.useLegacyEvent(el, sType)) { + var legacyIndex = this.getLegacyIndex(el, sType); + + // Add a new dom0 wrapper if one is not detected for this + // element + if ( legacyIndex == -1 || + el != legacyEvents[legacyIndex][0] ) { + + legacyIndex = legacyEvents.length; + legacyMap[el.id + sType] = legacyIndex; + + // cache the signature for the DOM0 event, and + // include the existing handler for the event, if any + legacyEvents[legacyIndex] = + [el, sType, el["on" + sType]]; + legacyHandlers[legacyIndex] = []; + + el["on" + sType] = + function(e) { + YAHOO.util.Event.fireLegacyEvent( + YAHOO.util.Event.getEvent(e), legacyIndex); + }; + } + + // add a reference to the wrapped listener to our custom + // stack of events + //legacyHandlers[legacyIndex].push(index); + legacyHandlers[legacyIndex].push(li); + + } else { + try { + this._simpleAdd(el, sType, wrappedFn, false); + } catch(ex) { + // handle an error trying to attach an event. If it fails + // we need to clean up the cache + this.lastError = ex; + this.removeListener(el, sType, fn); + return false; + } + } + + return true; + + }, + + /** + * When using legacy events, the handler is routed to this object + * so we can fire our custom listener stack. + * @method fireLegacyEvent + * @static + * @private + */ + fireLegacyEvent: function(e, legacyIndex) { + var ok=true,le,lh,li,scope,ret; + + lh = legacyHandlers[legacyIndex]; + for (var i=0,len=lh.length; i<len; ++i) { + li = lh[i]; + if ( li && li[this.WFN] ) { + scope = li[this.ADJ_SCOPE]; + ret = li[this.WFN].call(scope, e); + ok = (ok && ret); + } + } + + // Fire the original handler if we replaced one. We fire this + // after the other events to keep stopPropagation/preventDefault + // that happened in the DOM0 handler from touching our DOM2 + // substitute + le = legacyEvents[legacyIndex]; + if (le && le[2]) { + le[2](e); + } + + return ok; + }, + + /** + * Returns the legacy event index that matches the supplied + * signature + * @method getLegacyIndex + * @static + * @private + */ + getLegacyIndex: function(el, sType) { + var key = this.generateId(el) + sType; + if (typeof legacyMap[key] == "undefined") { + return -1; + } else { + return legacyMap[key]; + } + }, + + /** + * Logic that determines when we should automatically use legacy + * events instead of DOM2 events. Currently this is limited to old + * Safari browsers with a broken preventDefault + * @method useLegacyEvent + * @static + * @private + */ + useLegacyEvent: function(el, sType) { + if (this.webkit && ("click"==sType || "dblclick"==sType)) { + var v = parseInt(this.webkit, 10); + if (!isNaN(v) && v<418) { + return true; + } + } + return false; + }, + + /** + * Removes an event handler + * + * @method removeListener + * + * @param {Object} el the html element or the id of the element to + * assign the event to. + * @param {String} sType the type of event to remove. + * @param {Function} fn the method the event invokes. If fn is + * undefined, then all event handlers for the type of event are + * removed. + * @return {boolean} true if the unbind was successful, false + * otherwise. + * @static + */ + removeListener: function(el, sType, fn) { + var i, len; + + // The el argument can be a string + if (typeof el == "string") { + el = this.getEl(el); + // The el argument can be an array of elements or element ids. + } else if ( this._isValidCollection(el)) { + var ok = true; + for (i=0,len=el.length; i<len; ++i) { + ok = ( this.removeListener(el[i], sType, fn) && ok ); + } + return ok; + } + + if (!fn || !fn.call) { + //return false; + return this.purgeElement(el, false, sType); + } + + + if ("unload" == sType) { + + for (i=0, len=unloadListeners.length; i<len; i++) { + var li = unloadListeners[i]; + if (li && + li[0] == el && + li[1] == sType && + li[2] == fn) { + unloadListeners.splice(i, 1); + return true; + } + } + + return false; + } + + var cacheItem = null; + + // The index is a hidden parameter; needed to remove it from + // the method signature because it was tempting users to + // try and take advantage of it, which is not possible. + var index = arguments[3]; + + if ("undefined" == typeof index) { + index = this._getCacheIndex(el, sType, fn); + } + + if (index >= 0) { + cacheItem = listeners[index]; + } + + if (!el || !cacheItem) { + return false; + } + + + if (this.useLegacyEvent(el, sType)) { + var legacyIndex = this.getLegacyIndex(el, sType); + var llist = legacyHandlers[legacyIndex]; + if (llist) { + for (i=0, len=llist.length; i<len; ++i) { + li = llist[i]; + if (li && + li[this.EL] == el && + li[this.TYPE] == sType && + li[this.FN] == fn) { + llist.splice(i, 1); + break; + } + } + } + + } else { + try { + this._simpleRemove(el, sType, cacheItem[this.WFN], false); + } catch(ex) { + this.lastError = ex; + return false; + } + } + + // removed the wrapped handler + delete listeners[index][this.WFN]; + delete listeners[index][this.FN]; + listeners.splice(index, 1); + + return true; + + }, + + /** + * Returns the event's target element + * @method getTarget + * @param {Event} ev the event + * @param {boolean} resolveTextNode when set to true the target's + * parent will be returned if the target is a + * text node. @deprecated, the text node is + * now resolved automatically + * @return {HTMLElement} the event's target + * @static + */ + getTarget: function(ev, resolveTextNode) { + var t = ev.target || ev.srcElement; + return this.resolveTextNode(t); + }, + + /** + * In some cases, some browsers will return a text node inside + * the actual element that was targeted. This normalizes the + * return value for getTarget and getRelatedTarget. + * @method resolveTextNode + * @param {HTMLElement} node node to resolve + * @return {HTMLElement} the normized node + * @static + */ + resolveTextNode: function(node) { + // if (node && node.nodeName && + // "#TEXT" == node.nodeName.toUpperCase()) { + if (node && 3 == node.nodeType) { + return node.parentNode; + } else { + return node; + } + }, + + /** + * Returns the event's pageX + * @method getPageX + * @param {Event} ev the event + * @return {int} the event's pageX + * @static + */ + getPageX: function(ev) { + var x = ev.pageX; + if (!x && 0 !== x) { + x = ev.clientX || 0; + + if ( this.isIE ) { + x += this._getScrollLeft(); + } + } + + return x; + }, + + /** + * Returns the event's pageY + * @method getPageY + * @param {Event} ev the event + * @return {int} the event's pageY + * @static + */ + getPageY: function(ev) { + var y = ev.pageY; + if (!y && 0 !== y) { + y = ev.clientY || 0; + + if ( this.isIE ) { + y += this._getScrollTop(); + } + } + + + return y; + }, + + /** + * Returns the pageX and pageY properties as an indexed array. + * @method getXY + * @param {Event} ev the event + * @return {[x, y]} the pageX and pageY properties of the event + * @static + */ + getXY: function(ev) { + return [this.getPageX(ev), this.getPageY(ev)]; + }, + + /** + * Returns the event's related target + * @method getRelatedTarget + * @param {Event} ev the event + * @return {HTMLElement} the event's relatedTarget + * @static + */ + getRelatedTarget: function(ev) { + var t = ev.relatedTarget; + if (!t) { + if (ev.type == "mouseout") { + t = ev.toElement; + } else if (ev.type == "mouseover") { + t = ev.fromElement; + } + } + + return this.resolveTextNode(t); + }, + + /** + * Returns the time of the event. If the time is not included, the + * event is modified using the current time. + * @method getTime + * @param {Event} ev the event + * @return {Date} the time of the event + * @static + */ + getTime: function(ev) { + if (!ev.time) { + var t = new Date().getTime(); + try { + ev.time = t; + } catch(ex) { + this.lastError = ex; + return t; + } + } + + return ev.time; + }, + + /** + * Convenience method for stopPropagation + preventDefault + * @method stopEvent + * @param {Event} ev the event + * @static + */ + stopEvent: function(ev) { + this.stopPropagation(ev); + this.preventDefault(ev); + }, + + /** + * Stops event propagation + * @method stopPropagation + * @param {Event} ev the event + * @static + */ + stopPropagation: function(ev) { + if (ev.stopPropagation) { + ev.stopPropagation(); + } else { + ev.cancelBubble = true; + } + }, + + /** + * Prevents the default behavior of the event + * @method preventDefault + * @param {Event} ev the event + * @static + */ + preventDefault: function(ev) { + if (ev.preventDefault) { + ev.preventDefault(); + } else { + ev.returnValue = false; + } + }, + + /** + * Finds the event in the window object, the caller's arguments, or + * in the arguments of another method in the callstack. This is + * executed automatically for events registered through the event + * manager, so the implementer should not normally need to execute + * this function at all. + * @method getEvent + * @param {Event} e the event parameter from the handler + * @return {Event} the event + * @static + */ + getEvent: function(e) { + var ev = e || window.event; + + if (!ev) { + var c = this.getEvent.caller; + while (c) { + ev = c.arguments[0]; + if (ev && Event == ev.constructor) { + break; + } + c = c.caller; + } + } + + return ev; + }, + + /** + * Returns the charcode for an event + * @method getCharCode + * @param {Event} ev the event + * @return {int} the event's charCode + * @static + */ + getCharCode: function(ev) { + return ev.charCode || ev.keyCode || 0; + }, + + /** + * Locating the saved event handler data by function ref + * + * @method _getCacheIndex + * @static + * @private + */ + _getCacheIndex: function(el, sType, fn) { + for (var i=0,len=listeners.length; i<len; ++i) { + var li = listeners[i]; + if ( li && + li[this.FN] == fn && + li[this.EL] == el && + li[this.TYPE] == sType ) { + return i; + } + } + + return -1; + }, + + /** + * Generates an unique ID for the element if it does not already + * have one. + * @method generateId + * @param el the element to create the id for + * @return {string} the resulting id of the element + * @static + */ + generateId: function(el) { + var id = el.id; + + if (!id) { + id = "yuievtautoid-" + counter; + ++counter; + el.id = id; + } + + return id; + }, + + + /** + * We want to be able to use getElementsByTagName as a collection + * to attach a group of events to. Unfortunately, different + * browsers return different types of collections. This function + * tests to determine if the object is array-like. It will also + * fail if the object is an array, but is empty. + * @method _isValidCollection + * @param o the object to test + * @return {boolean} true if the object is array-like and populated + * @static + * @private + */ + _isValidCollection: function(o) { + return ( o && // o is something + o.length && // o is indexed + typeof o != "string" && // o is not a string + !o.tagName && // o is not an HTML element + !o.alert && // o is not a window + typeof o[0] != "undefined" ); + + }, + + /** + * @private + * @property elCache + * DOM element cache + * @static + */ + elCache: {}, + + /** + * We cache elements bound by id because when the unload event + * fires, we can no longer use document.getElementById + * @method getEl + * @static + * @private + */ + getEl: function(id) { + return document.getElementById(id); + }, + + /** + * Clears the element cache + * @deprecated Elements are not cached any longer + * @method clearCache + * @static + * @private + */ + clearCache: function() { }, + + /** + * hook up any deferred listeners + * @method _load + * @static + * @private + */ + _load: function(e) { + loadComplete = true; + var EU = YAHOO.util.Event; + // Remove the listener to assist with the IE memory issue, but not + // for other browsers because FF 1.0x does not like it. + if (this.isIE) { + EU._simpleRemove(window, "load", EU._load); + } + }, + + /** + * Polling function that runs before the onload event fires, + * attempting to attach to DOM Nodes as soon as they are + * available + * @method _tryPreloadAttach + * @static + * @private + */ + _tryPreloadAttach: function() { + + if (this.locked) { + return false; + } + + this.locked = true; + + + // keep trying until after the page is loaded. We need to + // check the page load state prior to trying to bind the + // elements so that we can be certain all elements have been + // tested appropriately + var tryAgain = !loadComplete; + if (!tryAgain) { + tryAgain = (retryCount > 0); + } + + // onAvailable + var notAvail = []; + for (var i=0,len=onAvailStack.length; i<len ; ++i) { + var item = onAvailStack[i]; + if (item) { + var el = this.getEl(item.id); + + if (el) { + // The element is available, but not necessarily ready + // @todo verify IE7 compatibility + // @todo should we test parentNode.nextSibling? + // @todo re-evaluate global content ready + if ( !item.checkReady || + loadComplete || + el.nextSibling || + (document && document.body) ) { + + var scope = el; + if (item.override) { + if (item.override === true) { + scope = item.obj; + } else { + scope = item.override; + } + } + item.fn.call(scope, item.obj); + //delete onAvailStack[i]; + // null out instead of delete for Opera + onAvailStack[i] = null; + } + } else { + notAvail.push(item); + } + } + } + + retryCount = (notAvail.length === 0) ? 0 : retryCount - 1; + + if (tryAgain) { + // we may need to strip the nulled out items here + this.startInterval(); + } else { + clearInterval(this._interval); + this._interval = null; + } + + this.locked = false; + + return true; + + }, + + /** + * Removes all listeners attached to the given element via addListener. + * Optionally, the node's children can also be purged. + * Optionally, you can specify a specific type of event to remove. + * @method purgeElement + * @param {HTMLElement} el the element to purge + * @param {boolean} recurse recursively purge this element's children + * as well. Use with caution. + * @param {string} sType optional type of listener to purge. If + * left out, all listeners will be removed + * @static + */ + purgeElement: function(el, recurse, sType) { + var elListeners = this.getListeners(el, sType); + if (elListeners) { + for (var i=0,len=elListeners.length; i<len ; ++i) { + var l = elListeners[i]; + // can't use the index on the changing collection + //this.removeListener(el, l.type, l.fn, l.index); + this.removeListener(el, l.type, l.fn); + } + } + + if (recurse && el && el.childNodes) { + for (i=0,len=el.childNodes.length; i<len ; ++i) { + this.purgeElement(el.childNodes[i], recurse, sType); + } + } + }, + + /** + * Returns all listeners attached to the given element via addListener. + * Optionally, you can specify a specific type of event to return. + * @method getListeners + * @param el {HTMLElement} the element to inspect + * @param sType {string} optional type of listener to return. If + * left out, all listeners will be returned + * @return {Object} the listener. Contains the following fields: + * type: (string) the type of event + * fn: (function) the callback supplied to addListener + * obj: (object) the custom object supplied to addListener + * adjust: (boolean) whether or not to adjust the default scope + * index: (int) its position in the Event util listener cache + * @static + */ + getListeners: function(el, sType) { + var results=[], searchLists; + if (!sType) { + searchLists = [listeners, unloadListeners]; + } else if (sType == "unload") { + searchLists = [unloadListeners]; + } else { + searchLists = [listeners]; + } + + for (var j=0;j<searchLists.length; ++j) { + var searchList = searchLists[j]; + if (searchList && searchList.length > 0) { + for (var i=0,len=searchList.length; i<len ; ++i) { + var l = searchList[i]; + if ( l && l[this.EL] === el && + (!sType || sType === l[this.TYPE]) ) { + results.push({ + type: l[this.TYPE], + fn: l[this.FN], + obj: l[this.OBJ], + adjust: l[this.ADJ_SCOPE], + index: i + }); + } + } + } + } + + return (results.length) ? results : null; + }, + + /** + * Removes all listeners registered by pe.event. Called + * automatically during the unload event. + * @method _unload + * @static + * @private + */ + _unload: function(e) { + + var EU = YAHOO.util.Event, i, j, l, len, index; + + for (i=0,len=unloadListeners.length; i<len; ++i) { + l = unloadListeners[i]; + if (l) { + var scope = window; + if (l[EU.ADJ_SCOPE]) { + if (l[EU.ADJ_SCOPE] === true) { + scope = l[EU.OBJ]; + } else { + scope = l[EU.ADJ_SCOPE]; + } + } + l[EU.FN].call(scope, EU.getEvent(e), l[EU.OBJ] ); + unloadListeners[i] = null; + l=null; + scope=null; + } + } + + unloadListeners = null; + + if (listeners && listeners.length > 0) { + j = listeners.length; + while (j) { + index = j-1; + l = listeners[index]; + if (l) { + EU.removeListener(l[EU.EL], l[EU.TYPE], + l[EU.FN], index); + } + j = j - 1; + } + l=null; + + EU.clearCache(); + } + + for (i=0,len=legacyEvents.length; i<len; ++i) { + // dereference the element + //delete legacyEvents[i][0]; + legacyEvents[i][0] = null; + + // delete the array item + //delete legacyEvents[i]; + legacyEvents[i] = null; + } + + legacyEvents = null; + + EU._simpleRemove(window, "unload", EU._unload); + + }, + + /** + * Returns scrollLeft + * @method _getScrollLeft + * @static + * @private + */ + _getScrollLeft: function() { + return this._getScroll()[1]; + }, + + /** + * Returns scrollTop + * @method _getScrollTop + * @static + * @private + */ + _getScrollTop: function() { + return this._getScroll()[0]; + }, + + /** + * Returns the scrollTop and scrollLeft. Used to calculate the + * pageX and pageY in Internet Explorer + * @method _getScroll + * @static + * @private + */ + _getScroll: function() { + var dd = document.documentElement, db = document.body; + if (dd && (dd.scrollTop || dd.scrollLeft)) { + return [dd.scrollTop, dd.scrollLeft]; + } else if (db) { + return [db.scrollTop, db.scrollLeft]; + } else { + return [0, 0]; + } + }, + + /** + * Used by old versions of CustomEvent, restored for backwards + * compatibility + * @method regCE + * @private + */ + regCE: function() { + // does nothing + }, + + /** + * Adds a DOM event directly without the caching, cleanup, scope adj, etc + * + * @method _simpleAdd + * @param {HTMLElement} el the element to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @param {boolen} capture capture or bubble phase + * @static + * @private + */ + _simpleAdd: function () { + if (window.addEventListener) { + return function(el, sType, fn, capture) { + el.addEventListener(sType, fn, (capture)); + }; + } else if (window.attachEvent) { + return function(el, sType, fn, capture) { + el.attachEvent("on" + sType, fn); + }; + } else { + return function(){}; + } + }(), + + /** + * Basic remove listener + * + * @method _simpleRemove + * @param {HTMLElement} el the element to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @param {boolen} capture capture or bubble phase + * @static + * @private + */ + _simpleRemove: function() { + if (window.removeEventListener) { + return function (el, sType, fn, capture) { + el.removeEventListener(sType, fn, (capture)); + }; + } else if (window.detachEvent) { + return function (el, sType, fn) { + el.detachEvent("on" + sType, fn); + }; + } else { + return function(){}; + } + }() + }; + + }(); + + (function() { + var EU = YAHOO.util.Event; + + /** + * YAHOO.util.Event.on is an alias for addListener + * @method on + * @see addListener + * @static + */ + EU.on = EU.addListener; + + // YAHOO.mix(EU, YAHOO.util.EventProvider.prototype); + // EU.createEvent("DOMContentReady"); + // EU.subscribe("DOMContentReady", EU._load); + + if (document && document.body) { + EU._load(); + } else { + // EU._simpleAdd(document, "DOMContentLoaded", EU._load); + EU._simpleAdd(window, "load", EU._load); + } + EU._simpleAdd(window, "unload", EU._unload); + EU._tryPreloadAttach(); + })(); +} + +/** + * The CustomEvent class lets you define events for your application + * that can be subscribed to by one or more independent component. + * + * @param {String} type The type of event, which is passed to the callback + * when the event fires + * @param {Object} oScope The context the event will fire from. "this" will + * refer to this object in the callback. Default value: + * the window object. The listener can override this. + * @param {boolean} silent pass true to prevent the event from writing to + * the debugsystem + * @param {int} signature the signature that the custom event subscriber + * will receive. YAHOO.util.CustomEvent.LIST or + * YAHOO.util.CustomEvent.FLAT. The default is + * YAHOO.util.CustomEvent.LIST. + * @namespace YAHOO.util + * @class CustomEvent + * @constructor + */ +YAHOO.util.CustomEvent = function(type, oScope, silent, signature) { + + /** + * The type of event, returned to subscribers when the event fires + * @property type + * @type string + */ + this.type = type; + + /** + * The scope the the event will fire from by default. Defaults to the window + * obj + * @property scope + * @type object + */ + this.scope = oScope || window; + + /** + * By default all custom events are logged in the debug build, set silent + * to true to disable debug outpu for this event. + * @property silent + * @type boolean + */ + this.silent = silent; + + /** + * Custom events support two styles of arguments provided to the event + * subscribers. + * <ul> + * <li>YAHOO.util.CustomEvent.LIST: + * <ul> + * <li>param1: event name</li> + * <li>param2: array of arguments sent to fire</li> + * <li>param3: <optional> a custom object supplied by the subscriber</li> + * </ul> + * </li> + * <li>YAHOO.util.CustomEvent.FLAT + * <ul> + * <li>param1: the first argument passed to fire. If you need to + * pass multiple parameters, use and array or object literal</li> + * <li>param2: <optional> a custom object supplied by the subscriber</li> + * </ul> + * </li> + * </ul> + * @property signature + * @type int + */ + this.signature = signature || YAHOO.util.CustomEvent.LIST; + + /** + * The subscribers to this event + * @property subscribers + * @type Subscriber[] + */ + this.subscribers = []; + + if (!this.silent) { + } + + var onsubscribeType = "_YUICEOnSubscribe"; + + // Only add subscribe events for events that are not generated by + // CustomEvent + if (type !== onsubscribeType) { + + /** + * Custom events provide a custom event that fires whenever there is + * a new subscriber to the event. This provides an opportunity to + * handle the case where there is a non-repeating event that has + * already fired has a new subscriber. + * + * @event subscribeEvent + * @type YAHOO.util.CustomEvent + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event + * fires + * @param {boolean|Object} override If true, the obj passed in becomes + * the execution scope of the listener. + * if an object, that object becomes the + * the execution scope. + */ + this.subscribeEvent = + new YAHOO.util.CustomEvent(onsubscribeType, this, true); + + } +}; + +/** + * Subscriber listener sigature constant. The LIST type returns three + * parameters: the event type, the array of args passed to fire, and + * the optional custom object + * @property YAHOO.util.CustomEvent.LIST + * @static + * @type int + */ +YAHOO.util.CustomEvent.LIST = 0; + +/** + * Subscriber listener sigature constant. The FLAT type returns two + * parameters: the first argument passed to fire and the optional + * custom object + * @property YAHOO.util.CustomEvent.FLAT + * @static + * @type int + */ +YAHOO.util.CustomEvent.FLAT = 1; + +YAHOO.util.CustomEvent.prototype = { + + /** + * Subscribes the caller to this event + * @method subscribe + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event + * fires + * @param {boolean|Object} override If true, the obj passed in becomes + * the execution scope of the listener. + * if an object, that object becomes the + * the execution scope. + */ + subscribe: function(fn, obj, override) { + if (this.subscribeEvent) { + this.subscribeEvent.fire(fn, obj, override); + } + + this.subscribers.push( new YAHOO.util.Subscriber(fn, obj, override) ); + }, + + /** + * Unsubscribes subscribers. + * @method unsubscribe + * @param {Function} fn The subscribed function to remove, if not supplied + * all will be removed + * @param {Object} obj The custom object passed to subscribe. This is + * optional, but if supplied will be used to + * disambiguate multiple listeners that are the same + * (e.g., you subscribe many object using a function + * that lives on the prototype) + * @return {boolean} True if the subscriber was found and detached. + */ + unsubscribe: function(fn, obj) { + + if (!fn) { + return this.unsubscribeAll(); + } + + var found = false; + for (var i=0, len=this.subscribers.length; i<len; ++i) { + var s = this.subscribers[i]; + if (s && s.contains(fn, obj)) { + this._delete(i); + found = true; + } + } + + return found; + }, + + /** + * Notifies the subscribers. The callback functions will be executed + * from the scope specified when the event was created, and with the + * following parameters: + * <ul> + * <li>The type of event</li> + * <li>All of the arguments fire() was executed with as an array</li> + * <li>The custom object (if any) that was passed into the subscribe() + * method</li> + * </ul> + * @method fire + * @param {Object*} arguments an arbitrary set of parameters to pass to + * the handler. + * @return {boolean} false if one of the subscribers returned false, + * true otherwise + */ + fire: function() { + var len=this.subscribers.length; + if (!len && this.silent) { + return true; + } + + var args=[], ret=true, i; + + for (i=0; i<arguments.length; ++i) { + args.push(arguments[i]); + } + + var argslength = args.length; + + if (!this.silent) { + } + + for (i=0; i<len; ++i) { + var s = this.subscribers[i]; + if (s) { + if (!this.silent) { + } + + var scope = s.getScope(this.scope); + + if (this.signature == YAHOO.util.CustomEvent.FLAT) { + var param = null; + if (args.length > 0) { + param = args[0]; + } + ret = s.fn.call(scope, param, s.obj); + } else { + ret = s.fn.call(scope, this.type, args, s.obj); + } + if (false === ret) { + if (!this.silent) { + } + + //break; + return false; + } + } + } + + return true; + }, + + /** + * Removes all listeners + * @method unsubscribeAll + * @return {int} The number of listeners unsubscribed + */ + unsubscribeAll: function() { + for (var i=0, len=this.subscribers.length; i<len; ++i) { + this._delete(len - 1 - i); + } + + return i; + }, + + /** + * @method _delete + * @private + */ + _delete: function(index) { + var s = this.subscribers[index]; + if (s) { + delete s.fn; + delete s.obj; + } + + // delete this.subscribers[index]; + this.subscribers.splice(index, 1); + }, + + /** + * @method toString + */ + toString: function() { + return "CustomEvent: " + "'" + this.type + "', " + + "scope: " + this.scope; + + } +}; + +///////////////////////////////////////////////////////////////////// + +/** + * Stores the subscriber information to be used when the event fires. + * @param {Function} fn The function to execute + * @param {Object} obj An object to be passed along when the event fires + * @param {boolean} override If true, the obj passed in becomes the execution + * scope of the listener + * @class Subscriber + * @constructor + */ +YAHOO.util.Subscriber = function(fn, obj, override) { + + /** + * The callback that will be execute when the event fires + * @property fn + * @type function + */ + this.fn = fn; + + /** + * An optional custom object that will passed to the callback when + * the event fires + * @property obj + * @type object + */ + this.obj = obj || null; + + /** + * The default execution scope for the event listener is defined when the + * event is created (usually the object which contains the event). + * By setting override to true, the execution scope becomes the custom + * object passed in by the subscriber. If override is an object, that + * object becomes the scope. + * @property override + * @type boolean|object + */ + this.override = override; + +}; + +/** + * Returns the execution scope for this listener. If override was set to true + * the custom obj will be the scope. If override is an object, that is the + * scope, otherwise the default scope will be used. + * @method getScope + * @param {Object} defaultScope the scope to use if this listener does not + * override it. + */ +YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) { + if (this.override) { + if (this.override === true) { + return this.obj; + } else { + return this.override; + } + } + return defaultScope; +}; + +/** + * Returns true if the fn and obj match this objects properties. + * Used by the unsubscribe method to match the right subscriber. + * + * @method contains + * @param {Function} fn the function to execute + * @param {Object} obj an object to be passed along when the event fires + * @return {boolean} true if the supplied arguments match this + * subscriber's signature. + */ +YAHOO.util.Subscriber.prototype.contains = function(fn, obj) { + if (obj) { + return (this.fn == fn && this.obj == obj); + } else { + return (this.fn == fn); + } +}; + +/** + * @method toString + */ +YAHOO.util.Subscriber.prototype.toString = function() { + return "Subscriber { obj: " + (this.obj || "") + + ", override: " + (this.override || "no") + " }"; +}; + +/** + * EventProvider is designed to be used with YAHOO.augment to wrap + * CustomEvents in an interface that allows events to be subscribed to + * and fired by name. This makes it possible for implementing code to + * subscribe to an event that either has not been created yet, or will + * not be created at all. + * + * @Class EventProvider + */ +YAHOO.util.EventProvider = function() { }; + +YAHOO.util.EventProvider.prototype = { + + /** + * Private storage of custom events + * @property __yui_events + * @type Object[] + * @private + */ + __yui_events: null, + + /** + * Private storage of custom event subscribers + * @property __yui_subscribers + * @type Object[] + * @private + */ + __yui_subscribers: null, + + /** + * Subscribe to a CustomEvent by event type + * + * @method subscribe + * @param p_type {string} the type, or name of the event + * @param p_fn {function} the function to exectute when the event fires + * @param p_obj + * @param p_obj {Object} An object to be passed along when the event + * fires + * @param p_override {boolean} If true, the obj passed in becomes the + * execution scope of the listener + */ + subscribe: function(p_type, p_fn, p_obj, p_override) { + + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + + if (ce) { + ce.subscribe(p_fn, p_obj, p_override); + } else { + this.__yui_subscribers = this.__yui_subscribers || {}; + var subs = this.__yui_subscribers; + if (!subs[p_type]) { + subs[p_type] = []; + } + subs[p_type].push( + { fn: p_fn, obj: p_obj, override: p_override } ); + } + }, + + /** + * Unsubscribes one or more listeners the from the specified event + * @method unsubscribe + * @param p_type {string} The type, or name of the event + * @param p_fn {Function} The subscribed function to unsubscribe, if not + * supplied, all subscribers will be removed. + * @param p_obj {Object} The custom object passed to subscribe. This is + * optional, but if supplied will be used to + * disambiguate multiple listeners that are the same + * (e.g., you subscribe many object using a function + * that lives on the prototype) + * @return {boolean} true if the subscriber was found and detached. + */ + unsubscribe: function(p_type, p_fn, p_obj) { + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + if (ce) { + return ce.unsubscribe(p_fn, p_obj); + } else { + return false; + } + }, + + /** + * Removes all listeners from the specified event + * @method unsubscribeAll + * @param p_type {string} The type, or name of the event + */ + unsubscribeAll: function(p_type) { + return this.unsubscribe(p_type); + }, + + /** + * Creates a new custom event of the specified type. If a custom event + * by that name already exists, it will not be re-created. In either + * case the custom event is returned. + * + * @method createEvent + * + * @param p_type {string} the type, or name of the event + * @param p_config {object} optional config params. Valid properties are: + * + * <ul> + * <li> + * scope: defines the default execution scope. If not defined + * the default scope will be this instance. + * </li> + * <li> + * silent: if true, the custom event will not generate log messages. + * This is false by default. + * </li> + * <li> + * onSubscribeCallback: specifies a callback to execute when the + * event has a new subscriber. This will fire immediately for + * each queued subscriber if any exist prior to the creation of + * the event. + * </li> + * </ul> + * + * @return {CustomEvent} the custom event + * + */ + createEvent: function(p_type, p_config) { + + this.__yui_events = this.__yui_events || {}; + var opts = p_config || {}; + var events = this.__yui_events; + + if (events[p_type]) { + } else { + + var scope = opts.scope || this; + var silent = opts.silent || null; + + var ce = new YAHOO.util.CustomEvent(p_type, scope, silent, + YAHOO.util.CustomEvent.FLAT); + events[p_type] = ce; + + if (opts.onSubscribeCallback) { + ce.subscribeEvent.subscribe(opts.onSubscribeCallback); + } + + this.__yui_subscribers = this.__yui_subscribers || {}; + var qs = this.__yui_subscribers[p_type]; + + if (qs) { + for (var i=0; i<qs.length; ++i) { + ce.subscribe(qs[i].fn, qs[i].obj, qs[i].override); + } + } + } + + return events[p_type]; + }, + + + /** + * Fire a custom event by name. The callback functions will be executed + * from the scope specified when the event was created, and with the + * following parameters: + * <ul> + * <li>The first argument fire() was executed with</li> + * <li>The custom object (if any) that was passed into the subscribe() + * method</li> + * </ul> + * @method fireEvent + * @param p_type {string} the type, or name of the event + * @param arguments {Object*} an arbitrary set of parameters to pass to + * the handler. + * @return {boolean} the return value from CustomEvent.fire, or null if + * the custom event does not exist. + */ + fireEvent: function(p_type, arg1, arg2, etc) { + + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + + if (ce) { + var args = []; + for (var i=1; i<arguments.length; ++i) { + args.push(arguments[i]); + } + return ce.fire.apply(ce, args); + } else { + return null; + } + }, + + /** + * Returns true if the custom event of the provided type has been created + * with createEvent. + * @method hasEvent + * @param type {string} the type, or name of the event + */ + hasEvent: function(type) { + if (this.__yui_events) { + if (this.__yui_events[type]) { + return true; + } + } + return false; + } + +}; + +/** +* KeyListener is a utility that provides an easy interface for listening for +* keydown/keyup events fired against DOM elements. +* @namespace YAHOO.util +* @class KeyListener +* @constructor +* @param {HTMLElement} attachTo The element or element ID to which the key +* event should be attached +* @param {String} attachTo The element or element ID to which the key +* event should be attached +* @param {Object} keyData The object literal representing the key(s) +* to detect. Possible attributes are +* shift(boolean), alt(boolean), ctrl(boolean) +* and keys(either an int or an array of ints +* representing keycodes). +* @param {Function} handler The CustomEvent handler to fire when the +* key event is detected +* @param {Object} handler An object literal representing the handler. +* @param {String} event Optional. The event (keydown or keyup) to +* listen for. Defaults automatically to keydown. +*/ +YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) { + if (!attachTo) { + } else if (!keyData) { + } else if (!handler) { + } + + if (!event) { + event = YAHOO.util.KeyListener.KEYDOWN; + } + + /** + * The CustomEvent fired internally when a key is pressed + * @event keyEvent + * @private + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + var keyEvent = new YAHOO.util.CustomEvent("keyPressed"); + + /** + * The CustomEvent fired when the KeyListener is enabled via the enable() + * function + * @event enabledEvent + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + this.enabledEvent = new YAHOO.util.CustomEvent("enabled"); + + /** + * The CustomEvent fired when the KeyListener is disabled via the + * disable() function + * @event disabledEvent + * @param {Object} keyData The object literal representing the key(s) to + * detect. Possible attributes are shift(boolean), + * alt(boolean), ctrl(boolean) and keys(either an + * int or an array of ints representing keycodes). + */ + this.disabledEvent = new YAHOO.util.CustomEvent("disabled"); + + if (typeof attachTo == 'string') { + attachTo = document.getElementById(attachTo); + } + + if (typeof handler == 'function') { + keyEvent.subscribe(handler); + } else { + keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope); + } + + /** + * Handles the key event when a key is pressed. + * @method handleKeyPress + * @param {DOMEvent} e The keypress DOM event + * @param {Object} obj The DOM event scope object + * @private + */ + function handleKeyPress(e, obj) { + if (! keyData.shift) { + keyData.shift = false; + } + if (! keyData.alt) { + keyData.alt = false; + } + if (! keyData.ctrl) { + keyData.ctrl = false; + } + + // check held down modifying keys first + if (e.shiftKey == keyData.shift && + e.altKey == keyData.alt && + e.ctrlKey == keyData.ctrl) { // if we pass this, all modifiers match + + var dataItem; + var keyPressed; + + if (keyData.keys instanceof Array) { + for (var i=0;i<keyData.keys.length;i++) { + dataItem = keyData.keys[i]; + + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + break; + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + break; + } + } + } else { + dataItem = keyData.keys; + if (dataItem == e.charCode ) { + keyEvent.fire(e.charCode, e); + } else if (dataItem == e.keyCode) { + keyEvent.fire(e.keyCode, e); + } + } + } + } + + /** + * Enables the KeyListener by attaching the DOM event listeners to the + * target DOM element + * @method enable + */ + this.enable = function() { + if (! this.enabled) { + YAHOO.util.Event.addListener(attachTo, event, handleKeyPress); + this.enabledEvent.fire(keyData); + } + /** + * Boolean indicating the enabled/disabled state of the Tooltip + * @property enabled + * @type Boolean + */ + this.enabled = true; + }; + + /** + * Disables the KeyListener by removing the DOM event listeners from the + * target DOM element + * @method disable + */ + this.disable = function() { + if (this.enabled) { + YAHOO.util.Event.removeListener(attachTo, event, handleKeyPress); + this.disabledEvent.fire(keyData); + } + this.enabled = false; + }; + + /** + * Returns a String representation of the object. + * @method toString + * @return {String} The string representation of the KeyListener + */ + this.toString = function() { + return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + + (attachTo.id ? "[" + attachTo.id + "]" : ""); + }; + +}; + +/** +* Constant representing the DOM "keydown" event. +* @property YAHOO.util.KeyListener.KEYDOWN +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYDOWN = "keydown"; + +/** +* Constant representing the DOM "keyup" event. +* @property YAHOO.util.KeyListener.KEYUP +* @static +* @final +* @type String +*/ +YAHOO.util.KeyListener.KEYUP = "keyup"; +YAHOO.register("event", YAHOO.util.Event, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/fonts/README b/interface/ispconfig/interface/js/yui/fonts/README new file mode 100644 index 0000000..eebc48b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/fonts/README @@ -0,0 +1,13 @@ +YUI Library - Fonts - Release Notes + +Version 2.2.0 + + * No changes. + +Version 0.10.1 - 0.12.2 + + * No changes. + +Version 0.10.0 + + * Initial release. diff --git a/interface/ispconfig/interface/js/yui/fonts/fonts-min.css b/interface/ispconfig/interface/js/yui/fonts/fonts-min.css new file mode 100644 index 0000000..b2a0d0a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/fonts/fonts-min.css @@ -0,0 +1,7 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}pre, code {font:115% monospace;*font-size:100%;}body * {line-height:1.22em;} diff --git a/interface/ispconfig/interface/js/yui/fonts/fonts.css b/interface/ispconfig/interface/js/yui/fonts/fonts.css new file mode 100644 index 0000000..51befee --- /dev/null +++ b/interface/ispconfig/interface/js/yui/fonts/fonts.css @@ -0,0 +1,29 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * Percents could work for IE, but for backCompat purposes, we are using keywords. + * x-small is for IE6/7 quirks mode. + * + */ +body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} +table {font-size:inherit;font:100%;} + +/** + * 99% for safari; 100% is too large + */ +select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} + +/** + * Bump up !IE to get to 13px equivalent + */ +pre, code {font:115% monospace;*font-size:100%;} + +/** + * Default line-height based on font-size rather than "computed-value" + * see: http://www.w3.org/TR/CSS21/visudet.html#line-height + */ +body * {line-height:1.22em;} diff --git a/interface/ispconfig/interface/js/yui/grids/README b/interface/ispconfig/interface/js/yui/grids/README new file mode 100644 index 0000000..9550af4 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/grids/README @@ -0,0 +1,48 @@ +YUI Library - Grids - Release Notes + +Version 2.2.0 + + * No changes. + +Version 0.12.1 - 0.12.2 + + * No changes. + +Version 0.12.0 + + * Removed redundant "text-align:left" from nodes below #doc. + + * Removed small-font treatment on #ft. + + * Removed margin-bottom from #hd,#bd. + + * Added two new #doc definitions (#doc2 and #doc3) that provide + 950px centered and 100% page width presets to supplement the + original 750px centered page width. + + * Made ".first" selectors more precise by binding to divs, to + make it less likely that our .first definitions will impact + nested content elements wishing to use this nomenclature. + + * Fixed "nested yui-gc" bug. + + * Fixed build-process whitespace bug with .yui-t2 and .yui-t5. + + * Migrated .yui-t's technique to "negative margins" technique + from "floated ems". + + * The "negative margins" technique caused z-index issues, so + position:relative was added to the secondary yui-b to enable + correct z-index. + + * Make optimization benefits from inheritence wins via code + reorganizations. + +Version 0.11.0 + + * Removed line #43 because it set an already-set value. + Was: ".yui-t7 #main .yui-b{min-width:750px;}" + +Version 0.10.0 + + * Initial release. \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/grids/grids-min.css b/interface/ispconfig/interface/js/yui/grids/grids-min.css new file mode 100644 index 0000000..c74128b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/grids/grids-min.css @@ -0,0 +1,7 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.3em;min-width:750px;}#doc2{width:73.074em;*width:71.313em;min-width:950px;}#doc3{margin:auto 10px;width:auto;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.3207em;*width:12.0106em;}.yui-t1 #yui-main .yui-b{margin-left:13.3207em;*margin-left:13.0106em;}.yui-t2 .yui-b{float:left;width:13.8456em;*width:13.512em;}.yui-t2 #yui-main .yui-b{margin-left:14.8456em;*margin-left:14.512em;}.yui-t3 .yui-b{float:left;width:23.0759em;*width:22.52em;}.yui-t3 #yui-main .yui-b{margin-left:24.0759em;*margin-left:23.52em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.512em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.512em;}.yui-t5 .yui-b{float:right;width:18.4608em;*width:18.016em;}.yui-t5 #yui-main .yui-b{margin-right:19.4608em;*margin-right:19.016em;}.yui-t6 .yui-b{float:right;width:23.0759em;*width:22.52em;}.yui-t6 #yui-main .yui-b{margin-right:24.0759em;*margin-right:23.52em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-g .yui-u,.yui-g .yui-g,.yui-gc .yui-u,.yui-gc .yui-g .yui-u,.yui-ge .yui-u,.yui-gf .yui-u{float:right;display:inline;}.yui-g div.first,.yui-gc div.first,.yui-gc div.first div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g{width:49.1%;}.yui-g .yui-g .yui-u,.yui-gc .yui-g .yui-u{width:48.1%;}.yui-gb .yui-u,.yui-gc .yui-u,.yui-gd .yui-u{float:left;margin-left:2%;*margin-left:1.895%;width:32%;}.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge .yui-u{width:24%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-gf div.first{width:24%;}.yui-ge div.first{width:74.2%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/grids/grids.css b/interface/ispconfig/interface/js/yui/grids/grids.css new file mode 100644 index 0000000..71a18d6 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/grids/grids.css @@ -0,0 +1,129 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* for all templates and grids */ +body{text-align:center;} +#ft{clear:both;} +/**/ +/* 750 centered, and backward compatibility */ +#doc,#doc2,#doc3,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 { + margin:auto;text-align:left; + width:57.69em;*width:56.3em;min-width:750px;} +/* 950 centered */ +#doc2 { + width:73.074em;*width:71.313em;min-width:950px;} +/* 100% with 10px viewport side matting */ +#doc3 { + margin:auto 10px; /* not for structure, but so content doesn't bleed to edge */ + width:auto;} + +/* below required for all fluid grids; adjust widths and margins above accordingly */ + + /* to preserve source-order independence for Gecko */ + .yui-b{position:relative;} + .yui-b{_position:static;} /* for IE < 7 */ + #yui-main .yui-b{position:static;} + +#yui-main {width:100%;} +.yui-t1 #yui-main, +.yui-t2 #yui-main, +.yui-t3 #yui-main{float:right;margin-left:-25em;/* IE: preserve layout at narrow widths */} + +.yui-t4 #yui-main, +.yui-t5 #yui-main, +.yui-t6 #yui-main{float:left;margin-right:-25em;/* IE: preserve layout at narrow widths */} + +.yui-t1 .yui-b { + float:left; + width:12.3207em;*width:12.0106em;} +.yui-t1 #yui-main .yui-b{ + margin-left:13.3207em;*margin-left:13.0106em; +} + +.yui-t2 .yui-b { + float:left; + width:13.8456em;*width:13.512em;} +.yui-t2 #yui-main .yui-b { + margin-left:14.8456em;*margin-left:14.512em; +} + +.yui-t3 .yui-b { + float:left; + width:23.0759em;*width:22.52em;} +.yui-t3 #yui-main .yui-b { + margin-left:24.0759em;*margin-left:23.52em; +} + +.yui-t4 .yui-b { + float:right; + width:13.8456em;*width:13.512em;} +.yui-t4 #yui-main .yui-b { + margin-right:14.8456em;*margin-right:14.512em; +} + +.yui-t5 .yui-b { + float:right; + width:18.4608em;*width:18.016em;} +.yui-t5 #yui-main .yui-b { + margin-right:19.4608em;*margin-right:19.016em; +} + +.yui-t6 .yui-b { + float:right; + width:23.0759em;*width:22.52em;} +.yui-t6 #yui-main .yui-b { + margin-right:24.0759em;*margin-right:23.52em; +} + +.yui-t7 #yui-main .yui-b { + display:block;margin:0 0 1em 0; +} +#yui-main .yui-b {float:none;width:auto;} +/* GRIDS (not TEMPLATES) */ +.yui-g .yui-u, +.yui-g .yui-g, +.yui-gc .yui-u, +.yui-gc .yui-g .yui-u, +.yui-ge .yui-u, +.yui-gf .yui-u{float:right;display:inline;} +.yui-g div.first, +.yui-gc div.first, +.yui-gc div.first div.first, +.yui-gd div.first, +.yui-ge div.first, +.yui-gf div.first{float:left;} +.yui-g .yui-u, +.yui-g .yui-g{width:49.1%;} +.yui-g .yui-g .yui-u, +.yui-gc .yui-g .yui-u {width:48.1%;} +.yui-gb .yui-u, +.yui-gc .yui-u, +.yui-gd .yui-u{float:left;margin-left:2%;*margin-left:1.895%;width:32%;} +.yui-gb div.first, +.yui-gc div.first, +.yui-gd div.first{margin-left:0;} +.yui-gc div.first, +.yui-gd .yui-u{width:66%;} +.yui-gd div.first{width:32%;} +.yui-ge .yui-u{width:24%;} +.yui-ge div.first, +.yui-gf .yui-u{width:74.2%;} +.yui-gf div.first{width:24%;} +.yui-ge div.first{width:74.2%;} +#bd:after, +.yui-g:after, +.yui-gb:after, +.yui-gc:after, +.yui-gd:after, +.yui-ge:after, +.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;} +#bd, +.yui-g, +.yui-gb, +.yui-gc, +.yui-gd, +.yui-ge, +.yui-gf{zoom:1;} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/history/README b/interface/ispconfig/interface/js/yui/history/README new file mode 100644 index 0000000..7a4dbde --- /dev/null +++ b/interface/ispconfig/interface/js/yui/history/README @@ -0,0 +1,11 @@ +YUI Library - History - Release Notes + +2.2.0 + + * This is the initial release of the browser history manager. + This component is considered experimental. Experimental components + are released for community experimentation and feedback; they + are not considered appropriate for implementation in mission- + critical applications. Please see the YUI FAQ at + http://developer.yahoo.com/yui/articles/faq/#experimental + for more information about the "experimental" designation. \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/history/assets/blank.html b/interface/ispconfig/interface/js/yui/history/assets/blank.html new file mode 100644 index 0000000..42682b4 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/history/assets/blank.html @@ -0,0 +1 @@ +<html><body></body></html> \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/history/history-experimental-debug.js b/interface/ispconfig/interface/js/yui/history/history-experimental-debug.js new file mode 100644 index 0000000..38312e8 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/history/history-experimental-debug.js @@ -0,0 +1,649 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * + * The Browser History Manager provides the ability to use the + * back/forward navigation buttons in a DHTML application. It also allows + * a DHTML application to be bookmarked in a specific state. + * + * @module history + * @requires yahoo,event + * @namespace YAHOO.util + * @title Browser History Manager + * @experimental + */ + +/** + * The History class provides the ability to use the back/forward navigation + * buttons in a DHTML application. It also allows a DHTML application to + * be bookmarked in a specific state. + * + * @class History + * @constructor + */ +YAHOO.util.History = ( function() { + + /** + * String identifying which browser we are in. + * Different code is run depending on which browser you are using. + * + * @property _browser + * @type string + * @default "unknown" + * @private + */ + var _browser = "unknown"; + + /** + * Our hidden IFrame used to store the browsing history. + * + * @property _iframe + * @type HTMLIFrameElement + * @default null + * @private + */ + var _iframe = null; + + /** + * INPUT field (with type="hidden" or type="text") or TEXTAREA. + * This field keeps the value of the initial state, current state + * the list of all states across pages within a single browser session. + * + * @property _storageField + * @type HTMLInputElement|HTMLTextAreaElement + * @default null + * @private + */ + var _storageField = null; + + /** + * Flag used to tell whether YAHOO.util.History.initialize has been called. + * + * @property _initialized + * @type boolean + * @default false + * @private + */ + var _initialized = false; + + /** + * Flag used to tell whether the storage field is ready to be used. + * + * @property _storageFieldReady + * @type boolean + * @default false + * @private + */ + var _storageFieldReady = false; + + /** + * Flag used to tell whether the Browser History Manager is ready. + * + * @property _bhmReady + * @type boolean + * @default false + * @private + */ + var _bhmReady = false; + + /** + * List of registered modules. + * + * @property _modules + * @type array + * @default [] + * @private + */ + var _modules = []; + + /** + * List of fully qualified states. This is used only by Safari. + * + * @property _fqstates + * @type array + * @default [] + * @private + */ + var _fqstates = []; + + /** + * Trims a string. + * + * @method _trim + * @param {string} str The string to be trimmed. + * @return {string} The trimmed string + * @private + */ + function _trim( str ) { + return str.replace( /^\s*(\S*(\s+\S+)*)\s*$/, "$1" ); + } + + /** + * location.hash is a bit buggy on Opera. I have seen instances where + * navigating the history using the back/forward buttons, and hence + * changing the URL, would not change location.hash. That's ok, the + * implementation of an equivalent is trivial. + * + * @method _getHash + * @return {string} The hash portion of the document's location + * @private + */ + function _getHash() { + var href = top.location.href; + var idx = href.indexOf( "#" ); + return idx >= 0 ? href.substr( idx+1 ) : null; + } + + /** + * Stores all the registered modules' initial state and current state. + * On Safari, we also store all the fully qualified states visited by + * the application within a single browser session. The storage takes + * place in the form field specified during initialization. + * + * @method _storeStates + * @private + */ + function _storeStates() { + var initialStates = []; + var currentStates = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + initialStates.push( moduleName + "=" + moduleObj.initialState ); + currentStates.push( moduleName + "=" + moduleObj.currentState ); + } + _storageField.value = initialStates.join( "&" ) + "|" + currentStates.join( "&" ); + if ( _browser == "safari" ) { + _storageField.value += "|" + _fqstates.join( "," ); + } + } + + /** + * Periodically checks whether our internal IFrame is ready to be used. + * + * @method _checkIframeLoaded + * @private + */ + function _checkIframeLoaded() { + if ( !_iframe.contentWindow || !_iframe.contentWindow.document ) { + // Check again in 10 msec... + setTimeout( _checkIframeLoaded, 10 ); + return; + } + + // Start the thread that will have the responsibility to + // periodically check whether a navigate operation has been + // requested on the main window. This will happen when + // YAHOO.util.History.navigate has been called or after + // the user has hit the back/forward button. + + var doc = _iframe.contentWindow.document; + var elem = doc.getElementById( "state" ); + // We must use innerText, and not innerHTML because our string contains + // the "&" character (which would end up being escaped as "&") and + // the string comparison would fail... + var fqstate = elem ? elem.innerText : null; + + setInterval( function() { + doc = _iframe.contentWindow.document; + elem = doc.getElementById( "state" ); + // See my comment above about using innerText instead of innerHTML... + var newfqstate = elem ? elem.innerText : null; + if ( newfqstate != fqstate ) { + fqstate = newfqstate; + _handleFQStateChange( fqstate ); + + var hash; + if ( !fqstate ) { + var states = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + states.push( moduleName + "=" + moduleObj.initialState ); + } + hash = states.join( "&" ); + } else { + hash = fqstate; + } + + // Allow the state to be bookmarked without messing up the browser history... + top.location.replace( "#" + hash ); + + _storeStates(); + } + }, 50 ); + + _bhmReady = true; + + YAHOO.util.History.onLoadEvent.fire(); + } + + /** + * Sets the new currentState attribute of all modules depending on the new + * fully qualified state. Also notifies the modules which current state has + * changed. + * + * @method _handleFQStateChange + * @param {string} fqstate Fully qualified state + * @private + */ + function _handleFQStateChange( fqstate ) { + var moduleName, moduleObj, currentState; + + if ( !fqstate ) { + // Notifies all modules + for ( moduleName in _modules ) { + moduleObj = _modules[moduleName]; + moduleObj.currentState = moduleObj.initialState; + moduleObj.onStateChange( moduleObj.currentState ); + } + return; + } + + var modules = []; + var states = fqstate.split( "&" ); + for ( var idx=0, len=states.length ; idx<len ; idx++ ) { + var tokens = states[idx].split( "=" ); + if ( tokens.length == 2 ) { + moduleName = tokens[0]; + currentState = tokens[1]; + modules[moduleName] = currentState; + } + } + + for ( moduleName in _modules ) { + moduleObj = _modules[moduleName]; + currentState = modules[moduleName]; + if ( !currentState || moduleObj.currentState != currentState ) { + moduleObj.currentState = currentState || moduleObj.initialState; + moduleObj.onStateChange( moduleObj.currentState ); + } + } + } + + /** + * Finish up the initialization of the Browser History Manager. + * + * @method _initialize + * @private + */ + function _initialize() { + + _storageField = document.getElementById( "yui_hist_field" ); + + // Decode the content of our storage field... + var parts = _storageField.value.split( "|" ); + + if ( parts.length > 1 ) { + + var idx, len, tokens, moduleName, moduleObj; + + var initialStates = parts[0].split( "&" ); + for ( idx=0, len=initialStates.length ; idx<len ; idx++ ) { + tokens = initialStates[idx].split( "=" ); + if ( tokens.length == 2 ) { + moduleName = tokens[0]; + var initialState = tokens[1]; + moduleObj = _modules[moduleName]; + if ( moduleObj ) { + moduleObj.initialState = initialState; + } + } + } + + var currentStates = parts[1].split( "&" ); + for ( idx=0, len=currentStates.length ; idx<len ; idx++ ) { + tokens = currentStates[idx].split( "=" ); + if ( tokens.length >= 2 ) { + moduleName = tokens[0]; + var currentState = tokens[1]; + moduleObj = _modules[moduleName]; + if ( moduleObj ) { + moduleObj.currentState = currentState; + } + } + } + } + + if ( parts.length > 2 ) { + _fqstates = parts[2].split( "," ); + } + + _storageFieldReady = true; + + if ( _browser == "msie" ) { + + _iframe = document.getElementById( "yui_hist_iframe" ); + _checkIframeLoaded(); + + } else { + + // Start the thread that will have the responsibility to + // periodically check whether a navigate operation has been + // requested on the main window. This will happen when + // YAHOO.util.History.navigate has been called or after + // the user has hit the back/forward button. + + // On Safari 1.x and 2.0, the only way to catch a back/forward + // operation is to watch history.length... We basically exploit + // what I consider to be a bug (history.length is not supposed + // to change when going back/forward in the history...) This is + // why, in the following thread, we first compare the hash, + // because the hash thing will be fixed in the next major + // version of Safari. So even if they fix the history.length + // bug, all this will still work! + var counter = history.length; + + // On Gecko and Opera, we just need to watch the hash... + var hash = _getHash(); + + setInterval( function() { + var state; + var newHash = _getHash(); + var newCounter = history.length; + if ( newHash != hash ) { + hash = newHash; + counter = newCounter; + _handleFQStateChange( hash ); + _storeStates(); + } else if ( newCounter != counter ) { + // If we ever get here, we should be on Safari... + hash = newHash; + counter = newCounter; + state = _fqstates[counter-1]; + _handleFQStateChange( state ); + _storeStates(); + } + }, 50 ); + + _bhmReady = true; + + YAHOO.util.History.onLoadEvent.fire(); + } + } + + // Simple browser detection code + // After talking with Matt Sweeney, I moved back to using the + // user agent string instead of doing browser detection. + var ua = navigator.userAgent.toLowerCase(); + if ( ua.indexOf( "opera" ) != -1 ) { + // Opera (check first in case of spoof) + _browser = "opera"; + } else if ( ua.indexOf( "msie" ) != -1 ) { + // Microsoft Internet Explorer and derivatives... + _browser = "msie"; + } else if ( ua.indexOf( "safari" ) != -1 ) { + // Safari (check before Gecko because it includes "like Gecko") + _browser = "safari"; + } else if ( ua.indexOf( "gecko" ) != -1 ) { + // Gecko + _browser = "gecko"; + } + + return { + + /** + * Fired when the Browser History Manager is ready. + * + * @event onLoadEvent + */ + onLoadEvent : new YAHOO.util.CustomEvent( "onLoad" ), + + /** + * Registers a new module. + * + * @method register + * @param {string} module Non-empty string uniquely identifying the + * module you wish to register. + * @param {string} initialState The initial state of the specified + * module corresponding to its earliest history entry. + * @param {function} onStateChange Callback called when the + * state of the specified module has changed. + */ + register : function( module, initialState, onStateChange ) { + if ( typeof module != "string" || _trim( module ) === "" || + typeof initialState != "string" || + typeof onStateChange != "function" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.register" ); + } + + if ( _modules[module] ) { + throw new Error( "A module cannot be registered twice" ); + } + + // Note: A module CANNOT be registered after calling + // YAHOO.util.History.initialize. Indeed, we set the initial state + // of each registered module in YAHOO.util.History.initialize. + // If you could register a module after initializing the Browser + // History Manager, you would not read the correct state using + // YAHOO.util.History.getCurrentState when coming back to the + // page using the back button. + if ( _initialized ) { + throw new Error( "All modules must be registered before calling YAHOO.util.History.initialize" ); + } + + // Make sure the strings passed in do not contain our separators "," and "|" + module = escape( module ); + initialState = escape( initialState ); + + _modules[module] = { + name : module, + initialState : initialState, + currentState : initialState, + onStateChange : onStateChange + }; + }, + + /** + * Initializes the Browser History Manager. Call this method + * from a script block located right after the opening body tag. + * + * @method initialize + * @param {string} iframeTarget Optional - Path to an existing + * HTML document accessible from the same domain. If not + * specified, defaults to "blank.html" + * @public + */ + initialize : function( iframeTarget ) { + // Return if the browser history manager has already been initialized + if ( _initialized ) { + return; + } + + if ( _browser == "unknown" ) { + throw new Error( "Your web browser is not supported by the Browser History Manager" ); + } + + if ( !iframeTarget ) { + iframeTarget = "blank.html"; + } + + if ( typeof iframeTarget != "string" || _trim( iframeTarget ) === "" ) { + throw new Error( "Invalid argument passed to YAHOO.util.History.initialize" ); + } + + document.write( '<input type="hidden" id="yui_hist_field">' ); + if ( _browser == "msie" ) { + // Pointing the IFrame to a file on the server is absolutely + // essential. I tried to point it to nothing (by setting + // src="") and create the initial entry in the browser + // history (by using document.write) but it did not work + // when coming back to the page... Also, the file must exist + // on the server! + document.write( '<iframe id="yui_hist_iframe" src="' + iframeTarget + '" style="position:absolute;visibility:hidden;"></iframe>' ); + } + + // We have to wait for the window's onload handler. Otherwise, our + // hidden form field will always be empty (i.e. the browser won't + // have had enough time to restore the session) + YAHOO.util.Event.addListener( window, "load", _initialize ); + + _initialized = true; + }, + + /** + * Call this method when you want to store a new entry in the browser's history. + * + * @method navigate + * @param {string} module Non-empty string representing your module. + * @param {string} state String representing the new state of the specified module. + * @return {boolean} Indicates whether the new state was successfully added to the history. + * @public + */ + navigate : function( module, state ) { + if ( typeof module != "string" || typeof state != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.navigate" ); + } + + if ( !_bhmReady ) { + throw new Error( "The Browser History Manager is not initialized" ); + } + + if ( !_modules[module] ) { + throw new Error( "The following module has not been registered: " + module ); + } + + // Make sure the strings passed in do not contain our separators "," and "|" + module = escape( module ); + state = escape( state ); + + // Generate our new full state string mod1=xxx&mod2=yyy + var currentStates = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + var currentState = ( moduleName == module ) ? state : moduleObj.currentState; + currentStates.push( moduleName + "=" + currentState ); + } + + var fqstate = currentStates.join( "&" ); + + if ( _browser == "msie" ) { + + // Add a new entry to the browser's history... + var html = '<html><body><div id="state">' + fqstate + '</div></body></html>'; + try { + var doc = _iframe.contentWindow.document; + doc.open(); + doc.write( html ); + doc.close(); + } catch ( e ) { + return false; + } + + } else { + + // Known bug: On Safari 1.x and 2.0, if you have tab browsing + // enabled, Safari will show an endless loading icon in the + // tab. This has apparently been fixed in recent WebKit builds. + // One work around found by Dav Glass is to submit a form that + // points to the same document. This indeed works on Safari 1.x + // and 2.0 but creates bigger problems on WebKit. So for now, + // we'll consider this an acceptable bug, and hope that Apple + // comes out with their next version of Safari very soon. + top.location.hash = fqstate; + if ( _browser == "safari" ) { + // The following two lines are only useful for Safari 1.x + // and 2.0. Recent nightly builds of WebKit do not require + // that, but unfortunately, it is not easy to differentiate + // between the two. Once Safari 2.0 departs the A-grade + // list, we can remove the following two lines... + _fqstates[history.length] = fqstate; + _storeStates(); + } + + } + + return true; + }, + + /** + * Returns the current state of the specified module. + * + * @method getCurrentState + * @param {string} module Non-empty string representing your module. + * @return {string} The current state of the specified module. + * @public + */ + getCurrentState : function( module ) { + if ( typeof module != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.getCurrentState" ); + } + + if ( !_storageFieldReady ) { + throw new Error( "The Browser History Manager is not initialized" ); + } + + var moduleObj = _modules[module]; + if ( !moduleObj ) { + throw new Error( "No such registered module: " + module ); + } + + return unescape( moduleObj.currentState ); + }, + + /** + * Returns the state of a module according to the URL fragment + * identifier. This method is useful to initialize your modules + * if your application was bookmarked from a particular state. + * + * @method getBookmarkedState + * @param {string} module Non-empty string representing your module. + * @return {string} The bookmarked state of the specified module. + * @public + */ + getBookmarkedState : function( module ) { + if ( typeof module != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.getBookmarkedState" ); + } + + var hash = top.location.hash.substr(1); + var states = hash.split( "&" ); + for ( var idx=0, len=states.length ; idx<len ; idx++ ) { + var tokens = states[idx].split( "=" ); + if ( tokens.length == 2 ) { + var moduleName = tokens[0]; + if ( moduleName == module ) { + return tokens[1]; + } + } + } + + return null; + }, + + /** + * Returns the value of the specified query string parameter. + * This method is not used internally by the Browser History Manager. + * However, it is provided here as a helper since many applications + * using the Browser History Manager will want to read the value of + * url parameters to initialize themselves. + * + * @method getQueryStringParameter + * @param {string} paramName Name of the parameter we want to look up. + * @param {string} queryString Optional URL to look at. If not specified, + * this method uses the URL in the address bar. + * @return {string} The value of the specified parameter, or null. + * @public + */ + getQueryStringParameter : function( paramName, url ) { + url = url || top.location.href; + var idx = url.indexOf( "?" ); + var queryString = idx >= 0 ? url.substr( idx+1 ) : url; + var params = queryString.split( "&" ); + for ( var i=0, len=params.length ; i<len ; i++ ) { + var tokens = params[i].split( "=" ); + if ( tokens.length >= 2 ) { + if ( tokens[0] == paramName ) { + return tokens[1]; + } + } + } + return null; + } + + }; + +} )(); +YAHOO.register("history", YAHOO.util.History, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/history/history-experimental-min.js b/interface/ispconfig/interface/js/yui/history/history-experimental-min.js new file mode 100644 index 0000000..1ba7fdf --- /dev/null +++ b/interface/ispconfig/interface/js/yui/history/history-experimental-min.js @@ -0,0 +1,44 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.util.History=(function(){var _browser="unknown";var _iframe=null;var _storageField=null;var _initialized=false;var _storageFieldReady=false;var _bhmReady=false;var _modules=[];var _fqstates=[];function _trim(str){return str.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");} +function _getHash(){var href=top.location.href;var idx=href.indexOf("#");return idx>=0?href.substr(idx+1):null;} +function _storeStates(){var initialStates=[];var currentStates=[];for(var moduleName in _modules){var moduleObj=_modules[moduleName];initialStates.push(moduleName+"="+moduleObj.initialState);currentStates.push(moduleName+"="+moduleObj.currentState);} +_storageField.value=initialStates.join("&")+"|"+currentStates.join("&");if(_browser=="safari"){_storageField.value+="|"+_fqstates.join(",");}} +function _checkIframeLoaded(){if(!_iframe.contentWindow||!_iframe.contentWindow.document){setTimeout(_checkIframeLoaded,10);return;} +var doc=_iframe.contentWindow.document;var elem=doc.getElementById("state");var fqstate=elem?elem.innerText:null;setInterval(function(){doc=_iframe.contentWindow.document;elem=doc.getElementById("state");var newfqstate=elem?elem.innerText:null;if(newfqstate!=fqstate){fqstate=newfqstate;_handleFQStateChange(fqstate);var hash;if(!fqstate){var states=[];for(var moduleName in _modules){var moduleObj=_modules[moduleName];states.push(moduleName+"="+moduleObj.initialState);} +hash=states.join("&");}else{hash=fqstate;} +top.location.replace("#"+hash);_storeStates();}},50);_bhmReady=true;YAHOO.util.History.onLoadEvent.fire();} +function _handleFQStateChange(fqstate){var moduleName,moduleObj,currentState;if(!fqstate){for(moduleName in _modules){moduleObj=_modules[moduleName];moduleObj.currentState=moduleObj.initialState;moduleObj.onStateChange(moduleObj.currentState);} +return;} +var modules=[];var states=fqstate.split("&");for(var idx=0,len=states.length;idx<len;idx++){var tokens=states[idx].split("=");if(tokens.length==2){moduleName=tokens[0];currentState=tokens[1];modules[moduleName]=currentState;}} +for(moduleName in _modules){moduleObj=_modules[moduleName];currentState=modules[moduleName];if(!currentState||moduleObj.currentState!=currentState){moduleObj.currentState=currentState||moduleObj.initialState;moduleObj.onStateChange(moduleObj.currentState);}}} +function _initialize(){_storageField=document.getElementById("yui_hist_field");var parts=_storageField.value.split("|");if(parts.length>1){var idx,len,tokens,moduleName,moduleObj;var initialStates=parts[0].split("&");for(idx=0,len=initialStates.length;idx<len;idx++){tokens=initialStates[idx].split("=");if(tokens.length==2){moduleName=tokens[0];var initialState=tokens[1];moduleObj=_modules[moduleName];if(moduleObj){moduleObj.initialState=initialState;}}} +var currentStates=parts[1].split("&");for(idx=0,len=currentStates.length;idx<len;idx++){tokens=currentStates[idx].split("=");if(tokens.length>=2){moduleName=tokens[0];var currentState=tokens[1];moduleObj=_modules[moduleName];if(moduleObj){moduleObj.currentState=currentState;}}}} +if(parts.length>2){_fqstates=parts[2].split(",");} +_storageFieldReady=true;if(_browser=="msie"){_iframe=document.getElementById("yui_hist_iframe");_checkIframeLoaded();}else{var counter=history.length;var hash=_getHash();setInterval(function(){var state;var newHash=_getHash();var newCounter=history.length;if(newHash!=hash){hash=newHash;counter=newCounter;_handleFQStateChange(hash);_storeStates();}else if(newCounter!=counter){hash=newHash;counter=newCounter;state=_fqstates[counter-1];_handleFQStateChange(state);_storeStates();}},50);_bhmReady=true;YAHOO.util.History.onLoadEvent.fire();}} +var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("opera")!=-1){_browser="opera";}else if(ua.indexOf("msie")!=-1){_browser="msie";}else if(ua.indexOf("safari")!=-1){_browser="safari";}else if(ua.indexOf("gecko")!=-1){_browser="gecko";} +return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),register:function(module,initialState,onStateChange){if(typeof module!="string"||_trim(module)===""||typeof initialState!="string"||typeof onStateChange!="function"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.register");} +if(_modules[module]){throw new Error("A module cannot be registered twice");} +if(_initialized){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");} +module=escape(module);initialState=escape(initialState);_modules[module]={name:module,initialState:initialState,currentState:initialState,onStateChange:onStateChange};},initialize:function(iframeTarget){if(_initialized){return;} +if(_browser=="unknown"){throw new Error("Your web browser is not supported by the Browser History Manager");} +if(!iframeTarget){iframeTarget="blank.html";} +if(typeof iframeTarget!="string"||_trim(iframeTarget)===""){throw new Error("Invalid argument passed to YAHOO.util.History.initialize");} +document.write('<input type="hidden" id="yui_hist_field">');if(_browser=="msie"){document.write('<iframe id="yui_hist_iframe" src="'+iframeTarget+'" style="position:absolute;visibility:hidden;"></iframe>');} +YAHOO.util.Event.addListener(window,"load",_initialize);_initialized=true;},navigate:function(module,state){if(typeof module!="string"||typeof state!="string"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.navigate");} +if(!_bhmReady){throw new Error("The Browser History Manager is not initialized");} +if(!_modules[module]){throw new Error("The following module has not been registered: "+module);} +module=escape(module);state=escape(state);var currentStates=[];for(var moduleName in _modules){var moduleObj=_modules[moduleName];var currentState=(moduleName==module)?state:moduleObj.currentState;currentStates.push(moduleName+"="+currentState);} +var fqstate=currentStates.join("&");if(_browser=="msie"){var html='<html><body><div id="state">'+fqstate+'</div></body></html>';try{var doc=_iframe.contentWindow.document;doc.open();doc.write(html);doc.close();}catch(e){return false;}}else{top.location.hash=fqstate;if(_browser=="safari"){_fqstates[history.length]=fqstate;_storeStates();}} +return true;},getCurrentState:function(module){if(typeof module!="string"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.getCurrentState");} +if(!_storageFieldReady){throw new Error("The Browser History Manager is not initialized");} +var moduleObj=_modules[module];if(!moduleObj){throw new Error("No such registered module: "+module);} +return unescape(moduleObj.currentState);},getBookmarkedState:function(module){if(typeof module!="string"){throw new Error("Missing or invalid argument passed to YAHOO.util.History.getBookmarkedState");} +var hash=top.location.hash.substr(1);var states=hash.split("&");for(var idx=0,len=states.length;idx<len;idx++){var tokens=states[idx].split("=");if(tokens.length==2){var moduleName=tokens[0];if(moduleName==module){return tokens[1];}}} +return null;},getQueryStringParameter:function(paramName,url){url=url||top.location.href;var idx=url.indexOf("?");var queryString=idx>=0?url.substr(idx+1):url;var params=queryString.split("&");for(var i=0,len=params.length;i<len;i++){var tokens=params[i].split("=");if(tokens.length>=2){if(tokens[0]==paramName){return tokens[1];}}} +return null;}};})();YAHOO.register("history",YAHOO.util.History,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/history/history-experimental.js b/interface/ispconfig/interface/js/yui/history/history-experimental.js new file mode 100644 index 0000000..38312e8 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/history/history-experimental.js @@ -0,0 +1,649 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * + * The Browser History Manager provides the ability to use the + * back/forward navigation buttons in a DHTML application. It also allows + * a DHTML application to be bookmarked in a specific state. + * + * @module history + * @requires yahoo,event + * @namespace YAHOO.util + * @title Browser History Manager + * @experimental + */ + +/** + * The History class provides the ability to use the back/forward navigation + * buttons in a DHTML application. It also allows a DHTML application to + * be bookmarked in a specific state. + * + * @class History + * @constructor + */ +YAHOO.util.History = ( function() { + + /** + * String identifying which browser we are in. + * Different code is run depending on which browser you are using. + * + * @property _browser + * @type string + * @default "unknown" + * @private + */ + var _browser = "unknown"; + + /** + * Our hidden IFrame used to store the browsing history. + * + * @property _iframe + * @type HTMLIFrameElement + * @default null + * @private + */ + var _iframe = null; + + /** + * INPUT field (with type="hidden" or type="text") or TEXTAREA. + * This field keeps the value of the initial state, current state + * the list of all states across pages within a single browser session. + * + * @property _storageField + * @type HTMLInputElement|HTMLTextAreaElement + * @default null + * @private + */ + var _storageField = null; + + /** + * Flag used to tell whether YAHOO.util.History.initialize has been called. + * + * @property _initialized + * @type boolean + * @default false + * @private + */ + var _initialized = false; + + /** + * Flag used to tell whether the storage field is ready to be used. + * + * @property _storageFieldReady + * @type boolean + * @default false + * @private + */ + var _storageFieldReady = false; + + /** + * Flag used to tell whether the Browser History Manager is ready. + * + * @property _bhmReady + * @type boolean + * @default false + * @private + */ + var _bhmReady = false; + + /** + * List of registered modules. + * + * @property _modules + * @type array + * @default [] + * @private + */ + var _modules = []; + + /** + * List of fully qualified states. This is used only by Safari. + * + * @property _fqstates + * @type array + * @default [] + * @private + */ + var _fqstates = []; + + /** + * Trims a string. + * + * @method _trim + * @param {string} str The string to be trimmed. + * @return {string} The trimmed string + * @private + */ + function _trim( str ) { + return str.replace( /^\s*(\S*(\s+\S+)*)\s*$/, "$1" ); + } + + /** + * location.hash is a bit buggy on Opera. I have seen instances where + * navigating the history using the back/forward buttons, and hence + * changing the URL, would not change location.hash. That's ok, the + * implementation of an equivalent is trivial. + * + * @method _getHash + * @return {string} The hash portion of the document's location + * @private + */ + function _getHash() { + var href = top.location.href; + var idx = href.indexOf( "#" ); + return idx >= 0 ? href.substr( idx+1 ) : null; + } + + /** + * Stores all the registered modules' initial state and current state. + * On Safari, we also store all the fully qualified states visited by + * the application within a single browser session. The storage takes + * place in the form field specified during initialization. + * + * @method _storeStates + * @private + */ + function _storeStates() { + var initialStates = []; + var currentStates = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + initialStates.push( moduleName + "=" + moduleObj.initialState ); + currentStates.push( moduleName + "=" + moduleObj.currentState ); + } + _storageField.value = initialStates.join( "&" ) + "|" + currentStates.join( "&" ); + if ( _browser == "safari" ) { + _storageField.value += "|" + _fqstates.join( "," ); + } + } + + /** + * Periodically checks whether our internal IFrame is ready to be used. + * + * @method _checkIframeLoaded + * @private + */ + function _checkIframeLoaded() { + if ( !_iframe.contentWindow || !_iframe.contentWindow.document ) { + // Check again in 10 msec... + setTimeout( _checkIframeLoaded, 10 ); + return; + } + + // Start the thread that will have the responsibility to + // periodically check whether a navigate operation has been + // requested on the main window. This will happen when + // YAHOO.util.History.navigate has been called or after + // the user has hit the back/forward button. + + var doc = _iframe.contentWindow.document; + var elem = doc.getElementById( "state" ); + // We must use innerText, and not innerHTML because our string contains + // the "&" character (which would end up being escaped as "&") and + // the string comparison would fail... + var fqstate = elem ? elem.innerText : null; + + setInterval( function() { + doc = _iframe.contentWindow.document; + elem = doc.getElementById( "state" ); + // See my comment above about using innerText instead of innerHTML... + var newfqstate = elem ? elem.innerText : null; + if ( newfqstate != fqstate ) { + fqstate = newfqstate; + _handleFQStateChange( fqstate ); + + var hash; + if ( !fqstate ) { + var states = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + states.push( moduleName + "=" + moduleObj.initialState ); + } + hash = states.join( "&" ); + } else { + hash = fqstate; + } + + // Allow the state to be bookmarked without messing up the browser history... + top.location.replace( "#" + hash ); + + _storeStates(); + } + }, 50 ); + + _bhmReady = true; + + YAHOO.util.History.onLoadEvent.fire(); + } + + /** + * Sets the new currentState attribute of all modules depending on the new + * fully qualified state. Also notifies the modules which current state has + * changed. + * + * @method _handleFQStateChange + * @param {string} fqstate Fully qualified state + * @private + */ + function _handleFQStateChange( fqstate ) { + var moduleName, moduleObj, currentState; + + if ( !fqstate ) { + // Notifies all modules + for ( moduleName in _modules ) { + moduleObj = _modules[moduleName]; + moduleObj.currentState = moduleObj.initialState; + moduleObj.onStateChange( moduleObj.currentState ); + } + return; + } + + var modules = []; + var states = fqstate.split( "&" ); + for ( var idx=0, len=states.length ; idx<len ; idx++ ) { + var tokens = states[idx].split( "=" ); + if ( tokens.length == 2 ) { + moduleName = tokens[0]; + currentState = tokens[1]; + modules[moduleName] = currentState; + } + } + + for ( moduleName in _modules ) { + moduleObj = _modules[moduleName]; + currentState = modules[moduleName]; + if ( !currentState || moduleObj.currentState != currentState ) { + moduleObj.currentState = currentState || moduleObj.initialState; + moduleObj.onStateChange( moduleObj.currentState ); + } + } + } + + /** + * Finish up the initialization of the Browser History Manager. + * + * @method _initialize + * @private + */ + function _initialize() { + + _storageField = document.getElementById( "yui_hist_field" ); + + // Decode the content of our storage field... + var parts = _storageField.value.split( "|" ); + + if ( parts.length > 1 ) { + + var idx, len, tokens, moduleName, moduleObj; + + var initialStates = parts[0].split( "&" ); + for ( idx=0, len=initialStates.length ; idx<len ; idx++ ) { + tokens = initialStates[idx].split( "=" ); + if ( tokens.length == 2 ) { + moduleName = tokens[0]; + var initialState = tokens[1]; + moduleObj = _modules[moduleName]; + if ( moduleObj ) { + moduleObj.initialState = initialState; + } + } + } + + var currentStates = parts[1].split( "&" ); + for ( idx=0, len=currentStates.length ; idx<len ; idx++ ) { + tokens = currentStates[idx].split( "=" ); + if ( tokens.length >= 2 ) { + moduleName = tokens[0]; + var currentState = tokens[1]; + moduleObj = _modules[moduleName]; + if ( moduleObj ) { + moduleObj.currentState = currentState; + } + } + } + } + + if ( parts.length > 2 ) { + _fqstates = parts[2].split( "," ); + } + + _storageFieldReady = true; + + if ( _browser == "msie" ) { + + _iframe = document.getElementById( "yui_hist_iframe" ); + _checkIframeLoaded(); + + } else { + + // Start the thread that will have the responsibility to + // periodically check whether a navigate operation has been + // requested on the main window. This will happen when + // YAHOO.util.History.navigate has been called or after + // the user has hit the back/forward button. + + // On Safari 1.x and 2.0, the only way to catch a back/forward + // operation is to watch history.length... We basically exploit + // what I consider to be a bug (history.length is not supposed + // to change when going back/forward in the history...) This is + // why, in the following thread, we first compare the hash, + // because the hash thing will be fixed in the next major + // version of Safari. So even if they fix the history.length + // bug, all this will still work! + var counter = history.length; + + // On Gecko and Opera, we just need to watch the hash... + var hash = _getHash(); + + setInterval( function() { + var state; + var newHash = _getHash(); + var newCounter = history.length; + if ( newHash != hash ) { + hash = newHash; + counter = newCounter; + _handleFQStateChange( hash ); + _storeStates(); + } else if ( newCounter != counter ) { + // If we ever get here, we should be on Safari... + hash = newHash; + counter = newCounter; + state = _fqstates[counter-1]; + _handleFQStateChange( state ); + _storeStates(); + } + }, 50 ); + + _bhmReady = true; + + YAHOO.util.History.onLoadEvent.fire(); + } + } + + // Simple browser detection code + // After talking with Matt Sweeney, I moved back to using the + // user agent string instead of doing browser detection. + var ua = navigator.userAgent.toLowerCase(); + if ( ua.indexOf( "opera" ) != -1 ) { + // Opera (check first in case of spoof) + _browser = "opera"; + } else if ( ua.indexOf( "msie" ) != -1 ) { + // Microsoft Internet Explorer and derivatives... + _browser = "msie"; + } else if ( ua.indexOf( "safari" ) != -1 ) { + // Safari (check before Gecko because it includes "like Gecko") + _browser = "safari"; + } else if ( ua.indexOf( "gecko" ) != -1 ) { + // Gecko + _browser = "gecko"; + } + + return { + + /** + * Fired when the Browser History Manager is ready. + * + * @event onLoadEvent + */ + onLoadEvent : new YAHOO.util.CustomEvent( "onLoad" ), + + /** + * Registers a new module. + * + * @method register + * @param {string} module Non-empty string uniquely identifying the + * module you wish to register. + * @param {string} initialState The initial state of the specified + * module corresponding to its earliest history entry. + * @param {function} onStateChange Callback called when the + * state of the specified module has changed. + */ + register : function( module, initialState, onStateChange ) { + if ( typeof module != "string" || _trim( module ) === "" || + typeof initialState != "string" || + typeof onStateChange != "function" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.register" ); + } + + if ( _modules[module] ) { + throw new Error( "A module cannot be registered twice" ); + } + + // Note: A module CANNOT be registered after calling + // YAHOO.util.History.initialize. Indeed, we set the initial state + // of each registered module in YAHOO.util.History.initialize. + // If you could register a module after initializing the Browser + // History Manager, you would not read the correct state using + // YAHOO.util.History.getCurrentState when coming back to the + // page using the back button. + if ( _initialized ) { + throw new Error( "All modules must be registered before calling YAHOO.util.History.initialize" ); + } + + // Make sure the strings passed in do not contain our separators "," and "|" + module = escape( module ); + initialState = escape( initialState ); + + _modules[module] = { + name : module, + initialState : initialState, + currentState : initialState, + onStateChange : onStateChange + }; + }, + + /** + * Initializes the Browser History Manager. Call this method + * from a script block located right after the opening body tag. + * + * @method initialize + * @param {string} iframeTarget Optional - Path to an existing + * HTML document accessible from the same domain. If not + * specified, defaults to "blank.html" + * @public + */ + initialize : function( iframeTarget ) { + // Return if the browser history manager has already been initialized + if ( _initialized ) { + return; + } + + if ( _browser == "unknown" ) { + throw new Error( "Your web browser is not supported by the Browser History Manager" ); + } + + if ( !iframeTarget ) { + iframeTarget = "blank.html"; + } + + if ( typeof iframeTarget != "string" || _trim( iframeTarget ) === "" ) { + throw new Error( "Invalid argument passed to YAHOO.util.History.initialize" ); + } + + document.write( '<input type="hidden" id="yui_hist_field">' ); + if ( _browser == "msie" ) { + // Pointing the IFrame to a file on the server is absolutely + // essential. I tried to point it to nothing (by setting + // src="") and create the initial entry in the browser + // history (by using document.write) but it did not work + // when coming back to the page... Also, the file must exist + // on the server! + document.write( '<iframe id="yui_hist_iframe" src="' + iframeTarget + '" style="position:absolute;visibility:hidden;"></iframe>' ); + } + + // We have to wait for the window's onload handler. Otherwise, our + // hidden form field will always be empty (i.e. the browser won't + // have had enough time to restore the session) + YAHOO.util.Event.addListener( window, "load", _initialize ); + + _initialized = true; + }, + + /** + * Call this method when you want to store a new entry in the browser's history. + * + * @method navigate + * @param {string} module Non-empty string representing your module. + * @param {string} state String representing the new state of the specified module. + * @return {boolean} Indicates whether the new state was successfully added to the history. + * @public + */ + navigate : function( module, state ) { + if ( typeof module != "string" || typeof state != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.navigate" ); + } + + if ( !_bhmReady ) { + throw new Error( "The Browser History Manager is not initialized" ); + } + + if ( !_modules[module] ) { + throw new Error( "The following module has not been registered: " + module ); + } + + // Make sure the strings passed in do not contain our separators "," and "|" + module = escape( module ); + state = escape( state ); + + // Generate our new full state string mod1=xxx&mod2=yyy + var currentStates = []; + for ( var moduleName in _modules ) { + var moduleObj = _modules[moduleName]; + var currentState = ( moduleName == module ) ? state : moduleObj.currentState; + currentStates.push( moduleName + "=" + currentState ); + } + + var fqstate = currentStates.join( "&" ); + + if ( _browser == "msie" ) { + + // Add a new entry to the browser's history... + var html = '<html><body><div id="state">' + fqstate + '</div></body></html>'; + try { + var doc = _iframe.contentWindow.document; + doc.open(); + doc.write( html ); + doc.close(); + } catch ( e ) { + return false; + } + + } else { + + // Known bug: On Safari 1.x and 2.0, if you have tab browsing + // enabled, Safari will show an endless loading icon in the + // tab. This has apparently been fixed in recent WebKit builds. + // One work around found by Dav Glass is to submit a form that + // points to the same document. This indeed works on Safari 1.x + // and 2.0 but creates bigger problems on WebKit. So for now, + // we'll consider this an acceptable bug, and hope that Apple + // comes out with their next version of Safari very soon. + top.location.hash = fqstate; + if ( _browser == "safari" ) { + // The following two lines are only useful for Safari 1.x + // and 2.0. Recent nightly builds of WebKit do not require + // that, but unfortunately, it is not easy to differentiate + // between the two. Once Safari 2.0 departs the A-grade + // list, we can remove the following two lines... + _fqstates[history.length] = fqstate; + _storeStates(); + } + + } + + return true; + }, + + /** + * Returns the current state of the specified module. + * + * @method getCurrentState + * @param {string} module Non-empty string representing your module. + * @return {string} The current state of the specified module. + * @public + */ + getCurrentState : function( module ) { + if ( typeof module != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.getCurrentState" ); + } + + if ( !_storageFieldReady ) { + throw new Error( "The Browser History Manager is not initialized" ); + } + + var moduleObj = _modules[module]; + if ( !moduleObj ) { + throw new Error( "No such registered module: " + module ); + } + + return unescape( moduleObj.currentState ); + }, + + /** + * Returns the state of a module according to the URL fragment + * identifier. This method is useful to initialize your modules + * if your application was bookmarked from a particular state. + * + * @method getBookmarkedState + * @param {string} module Non-empty string representing your module. + * @return {string} The bookmarked state of the specified module. + * @public + */ + getBookmarkedState : function( module ) { + if ( typeof module != "string" ) { + throw new Error( "Missing or invalid argument passed to YAHOO.util.History.getBookmarkedState" ); + } + + var hash = top.location.hash.substr(1); + var states = hash.split( "&" ); + for ( var idx=0, len=states.length ; idx<len ; idx++ ) { + var tokens = states[idx].split( "=" ); + if ( tokens.length == 2 ) { + var moduleName = tokens[0]; + if ( moduleName == module ) { + return tokens[1]; + } + } + } + + return null; + }, + + /** + * Returns the value of the specified query string parameter. + * This method is not used internally by the Browser History Manager. + * However, it is provided here as a helper since many applications + * using the Browser History Manager will want to read the value of + * url parameters to initialize themselves. + * + * @method getQueryStringParameter + * @param {string} paramName Name of the parameter we want to look up. + * @param {string} queryString Optional URL to look at. If not specified, + * this method uses the URL in the address bar. + * @return {string} The value of the specified parameter, or null. + * @public + */ + getQueryStringParameter : function( paramName, url ) { + url = url || top.location.href; + var idx = url.indexOf( "?" ); + var queryString = idx >= 0 ? url.substr( idx+1 ) : url; + var params = queryString.split( "&" ); + for ( var i=0, len=params.length ; i<len ; i++ ) { + var tokens = params[i].split( "=" ); + if ( tokens.length >= 2 ) { + if ( tokens[0] == paramName ) { + return tokens[1]; + } + } + } + return null; + } + + }; + +} )(); +YAHOO.register("history", YAHOO.util.History, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/logger/README b/interface/ispconfig/interface/js/yui/logger/README new file mode 100644 index 0000000..21d9521 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/logger/README @@ -0,0 +1,51 @@ +Logger Release Notes + +*** version 2.2.0 *** + +* Implemented expand() and collapse() in LogReader class. +* Better internal browser detection. + + + +*** version 0.12.2 *** + +* No changes. + + + +**** version 0.12.1 *** + +* Fixed issues with setting LogReader's "bottom" property. + + + +*** version 0.12.0 *** + +* Added method formatMsg(oLogMsg) to support custom formatting of log messages +for output to a LogReader. + + + +*** version 0.11.3 *** + +* The Logger static method enableFirebug() has been RENAMED to +enableBrowserConsole(). + +* The Logger static method disableFirebug() has been RENAMED to +disableBrowserConsole(). + +* By default, the Logger will not automatically output to Firebug or Safari's +JavaScript console. To enable this feature, implementers should now explicitly +call YAHOO.widget.Logger.enableBrowserConsole(). + +* Implementers may now cap the size of the YAHOO.widget.Logger stack by setting +the property YAHOO.widget.Logger.maxStackEntries. + +* Implementers may now control the number of items displayed in each console by +setting the LogReader properties thresholdMax and thresholdMin. + + + +*** version 0.11.0 *** + +* Initial release diff --git a/interface/ispconfig/interface/js/yui/logger/assets/logger.css b/interface/ispconfig/interface/js/yui/logger/assets/logger.css new file mode 100644 index 0000000..a9759b9 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/logger/assets/logger.css @@ -0,0 +1,26 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* logger default styles */ +/* font size is controlled here: default 77% */ +#yui-log {position:absolute;top:1em;right:1em;font-size:77%;text-align:left;} +/* width is controlled here: default 31em */ +.yui-log {padding:1em;width:31em;background-color:#AAA;border:1px solid black;font-family:monospace;z-index:9000;} +.yui-log p {margin:1px;padding:.1em;} +.yui-log button {font-family:monospace;} +.yui-log .yui-log-hd {margin-top:1em;padding:.5em;background-color:#575757;color:#FFF;} +/* height is controlled here: default 20em*/ +.yui-log .yui-log-bd {width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;} +.yui-log .yui-log-ft {margin-top:.5em;margin-bottom:1em;} +.yui-log .yui-log-ft .yui-log-categoryfilters {} +.yui-log .yui-log-ft .yui-log-sourcefilters {width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;} +.yui-log .yui-log-btns {position:relative;float:right;bottom:.25em;} +.yui-log .yui-log-filtergrp {margin-right:.5em;} +.yui-log .info {background-color:#A7CC25;} /* A7CC25 green */ +.yui-log .warn {background-color:#F58516;} /* F58516 orange */ +.yui-log .error {background-color:#E32F0B;} /* E32F0B red */ +.yui-log .time {background-color:#A6C9D7;} /* A6C9D7 blue */ +.yui-log .window {background-color:#F2E886;} /* F2E886 tan */ diff --git a/interface/ispconfig/interface/js/yui/logger/logger-debug.js b/interface/ispconfig/interface/js/yui/logger/logger-debug.js new file mode 100644 index 0000000..2d4bbce --- /dev/null +++ b/interface/ispconfig/interface/js/yui/logger/logger-debug.js @@ -0,0 +1,1597 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogMsg class defines a single log message. + * + * @class LogMsg + * @constructor + * @param oConfigs {Object} Object literal of configuration params. + */ + YAHOO.widget.LogMsg = function(oConfigs) { + // Parse configs + if (typeof oConfigs == "object") { + for(var param in oConfigs) { + this[param] = oConfigs[param]; + } + } + }; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Log message. + * + * @property msg + * @type String + */ +YAHOO.widget.LogMsg.prototype.msg = null; + +/** + * Log timestamp. + * + * @property time + * @type Date + */ +YAHOO.widget.LogMsg.prototype.time = null; + +/** + * Log category. + * + * @property category + * @type String + */ +YAHOO.widget.LogMsg.prototype.category = null; + +/** + * Log source. The first word passed in as the source argument. + * + * @property source + * @type String + */ +YAHOO.widget.LogMsg.prototype.source = null; + +/** + * Log source detail. The remainder of the string passed in as the source argument, not + * including the first word (if any). + * + * @property sourceDetail + * @type String + */ +YAHOO.widget.LogMsg.prototype.sourceDetail = null; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogWriter class provides a mechanism to log messages through + * YAHOO.widget.Logger from a named source. + * + * @class LogWriter + * @constructor + * @param sSource {String} Source of LogWriter instance. + */ +YAHOO.widget.LogWriter = function(sSource) { + if(!sSource) { + YAHOO.log("Could not instantiate LogWriter due to invalid source.", + "error", "LogWriter"); + return; + } + this._source = sSource; + }; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the LogWriter instance. + * + * @method toString + * @return {String} Unique name of the LogWriter instance. + */ +YAHOO.widget.LogWriter.prototype.toString = function() { + return "LogWriter " + this._sSource; +}; + +/** + * Logs a message attached to the source of the LogWriter. + * + * @method log + * @param sMsg {String} The log message. + * @param sCategory {String} Category name. + */ +YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) { + YAHOO.widget.Logger.log(sMsg, sCategory, this._source); +}; + +/** + * Public accessor to get the source name. + * + * @method getSource + * @return {String} The LogWriter source. + */ +YAHOO.widget.LogWriter.prototype.getSource = function() { + return this._sSource; +}; + +/** + * Public accessor to set the source name. + * + * @method setSource + * @param sSource {String} Source of LogWriter instance. + */ +YAHOO.widget.LogWriter.prototype.setSource = function(sSource) { + if(!sSource) { + YAHOO.log("Could not set source due to invalid source.", "error", this.toString()); + return; + } + else { + this._sSource = sSource; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Source of the LogWriter instance. + * + * @property _source + * @type String + * @private + */ +YAHOO.widget.LogWriter.prototype._source = null; + + + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger. + * + * @class LogReader + * @constructor + * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV. + * @param elContainer {String} (optional) String ID of an existing DIV. + * @param oConfigs {Object} (optional) Object literal of configuration params. + */ +YAHOO.widget.LogReader = function(elContainer, oConfigs) { + var oSelf = this; + this._sName = YAHOO.widget.LogReader._index; + YAHOO.widget.LogReader._index++; + + // Parse config vars here + if (typeof oConfigs == "object") { + for(var param in oConfigs) { + this[param] = oConfigs[param]; + } + } + + // Attach container... + if(elContainer) { + if(typeof elContainer == "string") { + this._elContainer = document.getElementById(elContainer); + } + else if(elContainer.tagName) { + this._elContainer = elContainer; + } + this._elContainer.className = "yui-log"; + } + // ...or create container from scratch + if(!this._elContainer) { + if(YAHOO.widget.LogReader._elDefaultContainer) { + this._elContainer = YAHOO.widget.LogReader._elDefaultContainer; + } + else { + this._elContainer = document.body.appendChild(document.createElement("div")); + this._elContainer.id = "yui-log"; + this._elContainer.className = "yui-log"; + + YAHOO.widget.LogReader._elDefaultContainer = this._elContainer; + } + + // If implementer has provided container values, trust and set those + var containerStyle = this._elContainer.style; + if(this.width) { + containerStyle.width = this.width; + } + if(this.right) { + containerStyle.right = this.right; + } + if(this.top) { + containerStyle.top = this.top; + } + if(this.left) { + containerStyle.left = this.left; + containerStyle.right = "auto"; + } + if(this.bottom) { + containerStyle.bottom = this.bottom; + containerStyle.top = "auto"; + } + if(this.fontSize) { + containerStyle.fontSize = this.fontSize; + } + // For Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + document.body.style += ''; + } + } + + if(this._elContainer) { + // Create header + if(!this._elHd) { + this._elHd = this._elContainer.appendChild(document.createElement("div")); + this._elHd.id = "yui-log-hd" + this._sName; + this._elHd.className = "yui-log-hd"; + + this._elCollapse = this._elHd.appendChild(document.createElement("div")); + this._elCollapse.className = "yui-log-btns"; + + this._btnCollapse = document.createElement("input"); + this._btnCollapse.type = "button"; + this._btnCollapse.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnCollapse.className = "yui-log-button"; + this._btnCollapse.value = "Collapse"; + this._btnCollapse = this._elCollapse.appendChild(this._btnCollapse); + YAHOO.util.Event.addListener( + oSelf._btnCollapse,'click',oSelf._onClickCollapseBtn,oSelf); + + this._title = this._elHd.appendChild(document.createElement("h4")); + this._title.innerHTML = "Logger Console"; + + // If Drag and Drop utility is available... + // ...and this container was created from scratch... + // ...then make the header draggable + if(YAHOO.util.DD && + (YAHOO.widget.LogReader._elDefaultContainer == this._elContainer)) { + var ylog_dd = new YAHOO.util.DD(this._elContainer.id); + ylog_dd.setHandleElId(this._elHd.id); + this._elHd.style.cursor = "move"; + } + } + // Ceate console + if(!this._elConsole) { + this._elConsole = + this._elContainer.appendChild(document.createElement("div")); + this._elConsole.className = "yui-log-bd"; + + // If implementer has provided console, trust and set those + if(this.height) { + this._elConsole.style.height = this.height; + } + } + // Don't create footer if disabled + if(!this._elFt && this.footerEnabled) { + this._elFt = this._elContainer.appendChild(document.createElement("div")); + this._elFt.className = "yui-log-ft"; + + this._elBtns = this._elFt.appendChild(document.createElement("div")); + this._elBtns.className = "yui-log-btns"; + + this._btnPause = document.createElement("input"); + this._btnPause.type = "button"; + this._btnPause.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnPause.className = "yui-log-button"; + this._btnPause.value = "Pause"; + this._btnPause = this._elBtns.appendChild(this._btnPause); + YAHOO.util.Event.addListener( + oSelf._btnPause,'click',oSelf._onClickPauseBtn,oSelf); + + this._btnClear = document.createElement("input"); + this._btnClear.type = "button"; + this._btnClear.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnClear.className = "yui-log-button"; + this._btnClear.value = "Clear"; + this._btnClear = this._elBtns.appendChild(this._btnClear); + YAHOO.util.Event.addListener( + oSelf._btnClear,'click',oSelf._onClickClearBtn,oSelf); + + this._elCategoryFilters = this._elFt.appendChild(document.createElement("div")); + this._elCategoryFilters.className = "yui-log-categoryfilters"; + this._elSourceFilters = this._elFt.appendChild(document.createElement("div")); + this._elSourceFilters.className = "yui-log-sourcefilters"; + } + } + + // Initialize internal vars + if(!this._buffer) { + this._buffer = []; // output buffer + } + // Timestamp of last log message to console + this._lastTime = YAHOO.widget.Logger.getStartTime(); + + // Subscribe to Logger custom events + YAHOO.widget.Logger.newLogEvent.subscribe(this._onNewLog, this); + YAHOO.widget.Logger.logResetEvent.subscribe(this._onReset, this); + + // Initialize category filters + this._categoryFilters = []; + var catsLen = YAHOO.widget.Logger.categories.length; + if(this._elCategoryFilters) { + for(var i=0; i < catsLen; i++) { + this._createCategoryCheckbox(YAHOO.widget.Logger.categories[i]); + } + } + // Initialize source filters + this._sourceFilters = []; + var sourcesLen = YAHOO.widget.Logger.sources.length; + if(this._elSourceFilters) { + for(var j=0; j < sourcesLen; j++) { + this._createSourceCheckbox(YAHOO.widget.Logger.sources[j]); + } + } + YAHOO.widget.Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this); + YAHOO.widget.Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this); + + this._filterLogs(); + YAHOO.log("LogReader initialized", null, this.toString()); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Whether or not LogReader is enabled to output log messages. + * + * @property logReaderEnabled + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.logReaderEnabled = true; + +/** + * Public member to access CSS width of the LogReader container. + * + * @property width + * @type String + */ +YAHOO.widget.LogReader.prototype.width = null; + +/** + * Public member to access CSS height of the LogReader container. + * + * @property height + * @type String + */ +YAHOO.widget.LogReader.prototype.height = null; + +/** + * Public member to access CSS top position of the LogReader container. + * + * @property top + * @type String + */ +YAHOO.widget.LogReader.prototype.top = null; + +/** + * Public member to access CSS left position of the LogReader container. + * + * @property left + * @type String + */ +YAHOO.widget.LogReader.prototype.left = null; + +/** + * Public member to access CSS right position of the LogReader container. + * + * @property right + * @type String + */ +YAHOO.widget.LogReader.prototype.right = null; + +/** + * Public member to access CSS bottom position of the LogReader container. + * + * @property bottom + * @type String + */ +YAHOO.widget.LogReader.prototype.bottom = null; + +/** + * Public member to access CSS font size of the LogReader container. + * + * @property fontSize + * @type String + */ +YAHOO.widget.LogReader.prototype.fontSize = null; + +/** + * Whether or not the footer UI is enabled for the LogReader. + * + * @property footerEnabled + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.footerEnabled = true; + +/** + * Whether or not output is verbose (more readable). Setting to true will make + * output more compact (less readable). + * + * @property verboseOutput + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.verboseOutput = true; + +/** + * Whether or not newest message is printed on top. + * + * @property newestOnTop + * @type Boolean + */ +YAHOO.widget.LogReader.prototype.newestOnTop = true; + +/** + * Maximum number of messages a LogReader console will display. + * + * @property thresholdMax + * @type Number + * @default 500 + */ +YAHOO.widget.LogReader.prototype.thresholdMax = 500; + +/** + * When a LogReader console reaches its thresholdMax, it will clear out messages + * and print out the latest thresholdMin number of messages. + * + * @property thresholdMin + * @type Number + * @default 100 + */ +YAHOO.widget.LogReader.prototype.thresholdMin = 100; + +/** + * True when LogReader is in a collapsed state, false otherwise. + * + * @property isCollapsed + * @type Boolean + * @default false + */ +YAHOO.widget.LogReader.prototype.isCollapsed = false; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the LogReader instance. + * + * @method toString + * @return {String} Unique name of the LogReader instance. + */ +YAHOO.widget.LogReader.prototype.toString = function() { + return "LogReader instance" + this._sName; +}; +/** + * Pauses output of log messages. While paused, log messages are not lost, but + * get saved to a buffer and then output upon resume of LogReader. + * + * @method pause + */ +YAHOO.widget.LogReader.prototype.pause = function() { + this._timeout = null; + this.logReaderEnabled = false; +}; + +/** + * Resumes output of log messages, including outputting any log messages that + * have been saved to buffer while paused. + * + * @method resume + */ +YAHOO.widget.LogReader.prototype.resume = function() { + this.logReaderEnabled = true; + this._printBuffer(); +}; + +/** + * Hides UI of LogReader. Logging functionality is not disrupted. + * + * @method hide + */ +YAHOO.widget.LogReader.prototype.hide = function() { + this._elContainer.style.display = "none"; +}; + +/** + * Shows UI of LogReader. Logging functionality is not disrupted. + * + * @method show + */ +YAHOO.widget.LogReader.prototype.show = function() { + this._elContainer.style.display = "block"; +}; + +/** + * Collapses UI of LogReader. Logging functionality is not disrupted. + * + * @method collapse + */ +YAHOO.widget.LogReader.prototype.collapse = function() { + this._elConsole.style.display = "none"; + if(this._elFt) { + this._elFt.style.display = "none"; + } + this._btnCollapse.value = "Expand"; + this.isCollapsed = true; +}; + +/** + * Expands UI of LogReader. Logging functionality is not disrupted. + * + * @method expand + */ +YAHOO.widget.LogReader.prototype.expand = function() { + this._elConsole.style.display = "block"; + if(this._elFt) { + this._elFt.style.display = "block"; + } + this._btnCollapse.value = "Collapse"; + this.isCollapsed = false; +}; + +/** + * Updates title to given string. + * + * @method setTitle + * @param sTitle {String} New title. + */ +YAHOO.widget.LogReader.prototype.setTitle = function(sTitle) { + this._title.innerHTML = this.html2Text(sTitle); +}; + +/** + * Gets timestamp of the last log. + * + * @method getLastTime + * @return {Date} Timestamp of the last log. + */ +YAHOO.widget.LogReader.prototype.getLastTime = function() { + return this._lastTime; +}; + +/** + * Formats message string to HTML for output to console. + * + * @method formatMsg + * @param oLogMsg {Object} Log message object. + * @return {String} HTML-formatted message for output to console. + */ +YAHOO.widget.LogReader.prototype.formatMsg = function(oLogMsg) { + var category = oLogMsg.category; + + // Label for color-coded display + var label = category.substring(0,4).toUpperCase(); + + // Calculate the elapsed time to be from the last item that passed through the filter, + // not the absolute previous item in the stack + + var time = oLogMsg.time; + if (time.toLocaleTimeString) { + var localTime = time.toLocaleTimeString(); + } + else { + localTime = time.toString(); + } + + var msecs = time.getTime(); + var startTime = YAHOO.widget.Logger.getStartTime(); + var totalTime = msecs - startTime; + var elapsedTime = msecs - this.getLastTime(); + + var source = oLogMsg.source; + var sourceDetail = oLogMsg.sourceDetail; + var sourceAndDetail = (sourceDetail) ? + source + " " + sourceDetail : source; + + // Escape HTML entities in the log message itself for output to console + var msg = this.html2Text(oLogMsg.msg); + + // Verbose output includes extra line breaks + var output = (this.verboseOutput) ? + ["<p><span class='", category, "'>", label, "</span> ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + "</p><p>", + sourceAndDetail, + ": </p><p>", + msg, + "</p>"] : + + ["<p><span class='", category, "'>", label, "</span> ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + sourceAndDetail, ": ", + msg,"</p>"]; + + return output.join(""); +}; + +/** + * Converts input chars "<", ">", and "&" to HTML entities. + * + * @method html2Text + * @param sHtml {String} String to convert. + * @private + */ +YAHOO.widget.LogReader.prototype.html2Text = function(sHtml) { + if(sHtml) { + sHtml += ""; + return sHtml.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); + } + return ""; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class member to index multiple LogReader instances. + * + * @property _memberName + * @static + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader._index = 0; + +/** + * Name of LogReader instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.LogReader.prototype._sName = null; + +/** + * A class member shared by all LogReaders if a container needs to be + * created during instantiation. Will be null if a container element never needs to + * be created on the fly, such as when the implementer passes in their own element. + * + * @property _elDefaultContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader._elDefaultContainer = null; + +/** + * Buffer of log message objects for batch output. + * + * @property _buffer + * @type Object[] + * @private + */ +YAHOO.widget.LogReader.prototype._buffer = null; + +/** + * Number of log messages output to console. + * + * @property _consoleMsgCount + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader.prototype._consoleMsgCount = 0; + +/** + * Date of last output log message. + * + * @property _lastTime + * @type Date + * @private + */ +YAHOO.widget.LogReader.prototype._lastTime = null; + +/** + * Batched output timeout ID. + * + * @property _timeout + * @type Number + * @private + */ +YAHOO.widget.LogReader.prototype._timeout = null; + +/** + * Array of filters for log message categories. + * + * @property _categoryFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._categoryFilters = null; + +/** + * Array of filters for log message sources. + * + * @property _sourceFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._sourceFilters = null; + +/** + * LogReader container element. + * + * @property _elContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elContainer = null; + +/** + * LogReader header element. + * + * @property _elHd + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elHd = null; + +/** + * LogReader collapse element. + * + * @property _elCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCollapse = null; + +/** + * LogReader collapse button element. + * + * @property _btnCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnCollapse = null; + +/** + * LogReader title header element. + * + * @property _title + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._title = null; + +/** + * LogReader console element. + * + * @property _elConsole + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elConsole = null; + +/** + * LogReader footer element. + * + * @property _elFt + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elFt = null; + +/** + * LogReader buttons container element. + * + * @property _elBtns + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elBtns = null; + +/** + * Container element for LogReader category filter checkboxes. + * + * @property _elCategoryFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCategoryFilters = null; + +/** + * Container element for LogReader source filter checkboxes. + * + * @property _elSourceFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elSourceFilters = null; + +/** + * LogReader pause button element. + * + * @property _btnPause + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnPause = null; + +/** + * Clear button element. + * + * @property _btnClear + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnClear = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates the UI for a category filter in the LogReader footer element. + * + * @method _createCategoryCheckbox + * @param sCategory {String} Category name. + * @private + */ +YAHOO.widget.LogReader.prototype._createCategoryCheckbox = function(sCategory) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elCategoryFilters; + var filters = this._categoryFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkCategory = document.createElement("input"); + chkCategory.id = "yui-log-filter-" + sCategory + this._sName; + chkCategory.className = "yui-log-filter-" + sCategory; + chkCategory.type = "checkbox"; + chkCategory.category = sCategory; + chkCategory = elFilter.appendChild(chkCategory); + chkCategory.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sCategory); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkCategory,'click',oSelf._onCheckCategory,oSelf); + + // Create and class the text label + var lblCategory = elFilter.appendChild(document.createElement("label")); + lblCategory.htmlFor = chkCategory.id; + lblCategory.className = sCategory; + lblCategory.innerHTML = sCategory; + } +}; + +/** + * Creates a checkbox in the LogReader footer element to filter by source. + * + * @method _createSourceCheckbox + * @param sSource {String} Source name. + * @private + */ +YAHOO.widget.LogReader.prototype._createSourceCheckbox = function(sSource) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elSourceFilters; + var filters = this._sourceFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkSource = document.createElement("input"); + chkSource.id = "yui-log-filter" + sSource + this._sName; + chkSource.className = "yui-log-filter" + sSource; + chkSource.type = "checkbox"; + chkSource.source = sSource; + chkSource = elFilter.appendChild(chkSource); + chkSource.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sSource); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkSource,'click',oSelf._onCheckSource,oSelf); + + // Create and class the text label + var lblSource = elFilter.appendChild(document.createElement("label")); + lblSource.htmlFor = chkSource.id; + lblSource.className = sSource; + lblSource.innerHTML = sSource; + } +}; + +/** + * Reprints all log messages in the stack through filters. + * + * @method _filterLogs + * @private + */ +YAHOO.widget.LogReader.prototype._filterLogs = function() { + // Reprint stack with new filters + if (this._elConsole !== null) { + this._clearConsole(); + this._printToConsole(YAHOO.widget.Logger.getStack()); + } +}; + +/** + * Clears all outputted log messages from the console and resets the time of the + * last output log message. + * + * @method _clearConsole + * @private + */ +YAHOO.widget.LogReader.prototype._clearConsole = function() { + // Clear the buffer of any pending messages + this._timeout = null; + this._buffer = []; + this._consoleMsgCount = 0; + + // Reset the rolling timer + this._lastTime = YAHOO.widget.Logger.getStartTime(); + + var elConsole = this._elConsole; + while(elConsole.hasChildNodes()) { + elConsole.removeChild(elConsole.firstChild); + } +}; + +/** + * Sends buffer of log messages to output and clears buffer. + * + * @method _printBuffer + * @private + */ +YAHOO.widget.LogReader.prototype._printBuffer = function() { + this._timeout = null; + + if(this._elConsole !== null) { + var thresholdMax = this.thresholdMax; + thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500; + if(this._consoleMsgCount < thresholdMax) { + var entries = []; + for (var i=0; i<this._buffer.length; i++) { + entries[i] = this._buffer[i]; + } + this._buffer = []; + this._printToConsole(entries); + } + else { + this._filterLogs(); + } + + if(!this.newestOnTop) { + this._elConsole.scrollTop = this._elConsole.scrollHeight; + } + } +}; + +/** + * Cycles through an array of log messages, and outputs each one to the console + * if its category has not been filtered out. + * + * @method _printToConsole + * @param aEntries {Object[]} Array of LogMsg objects to output to console. + * @private + */ +YAHOO.widget.LogReader.prototype._printToConsole = function(aEntries) { + // Manage the number of messages displayed in the console + var entriesLen = aEntries.length; + var thresholdMin = this.thresholdMin; + if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) { + thresholdMin = 0; + } + var entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0; + + // Iterate through all log entries + var sourceFiltersLen = this._sourceFilters.length; + var categoryFiltersLen = this._categoryFilters.length; + for(var i=entriesStartIndex; i<entriesLen; i++) { + // Print only the ones that filter through + var okToPrint = false; + var okToFilterCats = false; + + // Get log message details + var entry = aEntries[i]; + var source = entry.source; + var category = entry.category; + + for(var j=0; j<sourceFiltersLen; j++) { + if(source == this._sourceFilters[j]) { + okToFilterCats = true; + break; + } + } + if(okToFilterCats) { + for(var k=0; k<categoryFiltersLen; k++) { + if(category == this._categoryFilters[k]) { + okToPrint = true; + break; + } + } + } + if(okToPrint) { + var output = this.formatMsg(entry); + + // Verbose output uses <code> tag instead of <pre> tag (for wrapping) + var container = (this.verboseOutput) ? "CODE" : "PRE"; + var oNewElement = (this.newestOnTop) ? + this._elConsole.insertBefore( + document.createElement(container),this._elConsole.firstChild): + this._elConsole.appendChild(document.createElement(container)); + + oNewElement.innerHTML = output; + this._consoleMsgCount++; + this._lastTime = entry.time.getTime(); + } + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles Logger's categoryCreateEvent. + * + * @method _onCategoryCreate + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCategoryCreate = function(sType, aArgs, oSelf) { + var category = aArgs[0]; + if(oSelf._elFt) { + oSelf._createCategoryCheckbox(category); + } +}; + +/** + * Handles Logger's sourceCreateEvent. + * + * @method _onSourceCreate + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onSourceCreate = function(sType, aArgs, oSelf) { + var source = aArgs[0]; + if(oSelf._elFt) { + oSelf._createSourceCheckbox(source); + } +}; + +/** + * Handles check events on the category filter checkboxes. + * + * @method _onCheckCategory + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCheckCategory = function(v, oSelf) { + var newFilter = this.category; + var filtersArray = oSelf._categoryFilters; + + if(!this.checked) { // Remove category from filters + for(var i=0; i<filtersArray.length; i++) { + if(newFilter == filtersArray[i]) { + filtersArray.splice(i, 1); + break; + } + } + } + else { // Add category to filters + filtersArray.push(newFilter); + } + oSelf._filterLogs(); +}; + +/** + * Handles check events on the category filter checkboxes. + * + * @method _onCheckSource + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCheckSource = function(v, oSelf) { + var newFilter = this.source; + var filtersArray = oSelf._sourceFilters; + + if(!this.checked) { // Remove category from filters + for(var i=0; i<filtersArray.length; i++) { + if(newFilter == filtersArray[i]) { + filtersArray.splice(i, 1); + break; + } + } + } + else { // Add category to filters + filtersArray.push(newFilter); + } + oSelf._filterLogs(); +}; + +/** + * Handles click events on the collapse button. + * + * @method _onClickCollapseBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance + * @private + */ +YAHOO.widget.LogReader.prototype._onClickCollapseBtn = function(v, oSelf) { + if(!oSelf.isCollapsed) { + oSelf.collapse(); + } + else { + oSelf.expand(); + } +}; + +/** + * Handles click events on the pause button. + * + * @method _onClickPauseBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onClickPauseBtn = function(v, oSelf) { + var btn = oSelf._btnPause; + if(btn.value == "Resume") { + oSelf.resume(); + btn.value = "Pause"; + } + else { + oSelf.pause(); + btn.value = "Resume"; + } +}; + +/** + * Handles click events on the clear button. + * + * @method _onClickClearBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onClickClearBtn = function(v, oSelf) { + oSelf._clearConsole(); +}; + +/** + * Handles Logger's newLogEvent. + * + * @method _onNewLog + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onNewLog = function(sType, aArgs, oSelf) { + var logEntry = aArgs[0]; + oSelf._buffer.push(logEntry); + + if (oSelf.logReaderEnabled === true && oSelf._timeout === null) { + oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, 100); + } +}; + +/** + * Handles Logger's resetEvent. + * + * @method _onReset + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onReset = function(sType, aArgs, oSelf) { + oSelf._filterLogs(); +}; + + /** + * The Logger widget provides a simple way to read or write log messages in + * JavaScript code. Integration with the YUI Library's debug builds allow + * implementers to access under-the-hood events, errors, and debugging messages. + * Output may be read through a LogReader console and/or output to a browser + * console. + * + * @module logger + * @requires yahoo, event, dom + * @optional dragdrop + * @namespace YAHOO.widget + * @title Logger Widget + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The singleton Logger class provides core log management functionality. Saves + * logs written through the global YAHOO.log function or written by a LogWriter + * instance. Provides access to logs for reading by a LogReader instance or + * native browser console such as the Firebug extension to Firefox or Safari's + * JavaScript console through integration with the console.log() method. + * + * @class Logger + * @static + */ +YAHOO.widget.Logger = { + // Initialize members + loggerEnabled: true, + _browserConsoleEnabled: false, + categories: ["info","warn","error","time","window"], + sources: ["global"], + _stack: [], // holds all log msgs + maxStackEntries: 2500, + _startTime: new Date().getTime(), // static start timestamp + _lastTime: null // timestamp of last logged message +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// +/** + * Saves a log message to the stack and fires newLogEvent. If the log message is + * assigned to an unknown category, creates a new category. If the log message is + * from an unknown source, creates a new source. If browser console is enabled, + * outputs the log message to browser console. + * + * @method log + * @param sMsg {String} The log message. + * @param sCategory {String} Category of log message, or null. + * @param sSource {String} Source of LogWriter, or null if global. + */ +YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) { + if(this.loggerEnabled) { + if(!sCategory) { + sCategory = "info"; // default category + } + else { + sCategory = sCategory.toLocaleLowerCase(); + if(this._isNewCategory(sCategory)) { + this._createNewCategory(sCategory); + } + } + var sClass = "global"; // default source + var sDetail = null; + if(sSource) { + var spaceIndex = sSource.indexOf(" "); + if(spaceIndex > 0) { + // Substring until first space + sClass = sSource.substring(0,spaceIndex); + // The rest of the source + sDetail = sSource.substring(spaceIndex,sSource.length); + } + else { + sClass = sSource; + } + if(this._isNewSource(sClass)) { + this._createNewSource(sClass); + } + } + + var timestamp = new Date(); + var logEntry = new YAHOO.widget.LogMsg({ + msg: sMsg, + time: timestamp, + category: sCategory, + source: sClass, + sourceDetail: sDetail + }); + + var stack = this._stack; + var maxStackEntries = this.maxStackEntries; + if(maxStackEntries && !isNaN(maxStackEntries) && + (stack.length >= maxStackEntries)) { + stack.shift(); + } + stack.push(logEntry); + this.newLogEvent.fire(logEntry); + + if(this._browserConsoleEnabled) { + this._printToBrowserConsole(logEntry); + } + return true; + } + else { + return false; + } +}; + +/** + * Resets internal stack and startTime, enables Logger, and fires logResetEvent. + * + * @method reset + */ +YAHOO.widget.Logger.reset = function() { + this._stack = []; + this._startTime = new Date().getTime(); + this.loggerEnabled = true; + this.log("Logger reset"); + this.logResetEvent.fire(); +}; + +/** + * Public accessor to internal stack of log message objects. + * + * @method getStack + * @return {Object[]} Array of log message objects. + */ +YAHOO.widget.Logger.getStack = function() { + return this._stack; +}; + +/** + * Public accessor to internal start time. + * + * @method getStartTime + * @return {Date} Internal date of when Logger singleton was initialized. + */ +YAHOO.widget.Logger.getStartTime = function() { + return this._startTime; +}; + +/** + * Disables output to the browser's global console.log() function, which is used + * by the Firebug extension to Firefox as well as Safari. + * + * @method disableBrowserConsole + */ +YAHOO.widget.Logger.disableBrowserConsole = function() { + YAHOO.log("Logger output to the function console.log() has been disabled."); + this._browserConsoleEnabled = false; +}; + +/** + * Enables output to the browser's global console.log() function, which is used + * by the Firebug extension to Firefox as well as Safari. + * + * @method enableBrowserConsole + */ +YAHOO.widget.Logger.enableBrowserConsole = function() { + this._browserConsoleEnabled = true; + YAHOO.log("Logger output to the function console.log() has been enabled."); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a new category has been created. + * + * @event categoryCreateEvent + * @param sCategory {String} Category name. + */ +YAHOO.widget.Logger.categoryCreateEvent = + new YAHOO.util.CustomEvent("categoryCreate", this, true); + + /** + * Fired when a new source has been named. + * + * @event sourceCreateEvent + * @param sSource {String} Source name. + */ +YAHOO.widget.Logger.sourceCreateEvent = + new YAHOO.util.CustomEvent("sourceCreate", this, true); + + /** + * Fired when a new log message has been created. + * + * @event newLogEvent + * @param sMsg {String} Log message. + */ +YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true); + +/** + * Fired when the Logger has been reset has been created. + * + * @event logResetEvent + */ +YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true); + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates a new category of log messages and fires categoryCreateEvent. + * + * @method _createNewCategory + * @param sCategory {String} Category name. + * @private + */ +YAHOO.widget.Logger._createNewCategory = function(sCategory) { + this.categories.push(sCategory); + this.categoryCreateEvent.fire(sCategory); +}; + +/** + * Checks to see if a category has already been created. + * + * @method _isNewCategory + * @param sCategory {String} Category name. + * @return {Boolean} Returns true if category is unknown, else returns false. + * @private + */ +YAHOO.widget.Logger._isNewCategory = function(sCategory) { + for(var i=0; i < this.categories.length; i++) { + if(sCategory == this.categories[i]) { + return false; + } + } + return true; +}; + +/** + * Creates a new source of log messages and fires sourceCreateEvent. + * + * @method _createNewSource + * @param sSource {String} Source name. + * @private + */ +YAHOO.widget.Logger._createNewSource = function(sSource) { + this.sources.push(sSource); + this.sourceCreateEvent.fire(sSource); +}; + +/** + * Checks to see if a source already exists. + * + * @method _isNewSource + * @param sSource {String} Source name. + * @return {Boolean} Returns true if source is unknown, else returns false. + * @private + */ +YAHOO.widget.Logger._isNewSource = function(sSource) { + if(sSource) { + for(var i=0; i < this.sources.length; i++) { + if(sSource == this.sources[i]) { + return false; + } + } + return true; + } +}; + +/** + * Outputs a log message to global console.log() function. + * + * @method _printToBrowserConsole + * @param oEntry {Object} Log entry object. + * @private + */ +YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) { + if(window.console && console.log) { + var category = oEntry.category; + var label = oEntry.category.substring(0,4).toUpperCase(); + + var time = oEntry.time; + if (time.toLocaleTimeString) { + var localTime = time.toLocaleTimeString(); + } + else { + localTime = time.toString(); + } + + var msecs = time.getTime(); + var elapsedTime = (YAHOO.widget.Logger._lastTime) ? + (msecs - YAHOO.widget.Logger._lastTime) : 0; + YAHOO.widget.Logger._lastTime = msecs; + + var output = + localTime + " (" + + elapsedTime + "ms): " + + oEntry.source + ": " + + oEntry.msg; + + console.log(output); + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles logging of messages due to window error events. + * + * @method _onWindowError + * @param sMsg {String} The error message. + * @param sUrl {String} URL of the error. + * @param sLine {String} Line number of the error. + * @private + */ +YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) { + // Logger is not in scope of this event handler + try { + YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window"); + if(YAHOO.widget.Logger._origOnWindowError) { + YAHOO.widget.Logger._origOnWindowError(); + } + } + catch(e) { + return false; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Enable handling of native JavaScript errors +// NB: Not all browsers support the window.onerror event +// +///////////////////////////////////////////////////////////////////////////// + +if(window.onerror) { + // Save any previously defined handler to call + YAHOO.widget.Logger._origOnWindowError = window.onerror; +} +window.onerror = YAHOO.widget.Logger._onWindowError; + +///////////////////////////////////////////////////////////////////////////// +// +// First log +// +///////////////////////////////////////////////////////////////////////////// + +YAHOO.widget.Logger.log("Logger initialized"); + + +YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/logger/logger-min.js b/interface/ispconfig/interface/js/yui/logger/logger-min.js new file mode 100644 index 0000000..a633e1b --- /dev/null +++ b/interface/ispconfig/interface/js/yui/logger/logger-min.js @@ -0,0 +1,63 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.widget.LogMsg=function(oConfigs){if(typeof oConfigs=="object"){for(var param in oConfigs){this[param]=oConfigs[param];}}};YAHOO.widget.LogMsg.prototype.msg=null;YAHOO.widget.LogMsg.prototype.time=null;YAHOO.widget.LogMsg.prototype.category=null;YAHOO.widget.LogMsg.prototype.source=null;YAHOO.widget.LogMsg.prototype.sourceDetail=null;YAHOO.widget.LogWriter=function(sSource){if(!sSource){YAHOO.log("Could not instantiate LogWriter due to invalid source.","error","LogWriter");return;} +this._source=sSource;};YAHOO.widget.LogWriter.prototype.toString=function(){return"LogWriter "+this._sSource;};YAHOO.widget.LogWriter.prototype.log=function(sMsg,sCategory){YAHOO.widget.Logger.log(sMsg,sCategory,this._source);};YAHOO.widget.LogWriter.prototype.getSource=function(){return this._sSource;};YAHOO.widget.LogWriter.prototype.setSource=function(sSource){if(!sSource){YAHOO.log("Could not set source due to invalid source.","error",this.toString());return;} +else{this._sSource=sSource;}};YAHOO.widget.LogWriter.prototype._source=null;YAHOO.widget.LogReader=function(elContainer,oConfigs){var oSelf=this;this._sName=YAHOO.widget.LogReader._index;YAHOO.widget.LogReader._index++;if(typeof oConfigs=="object"){for(var param in oConfigs){this[param]=oConfigs[param];}} +if(elContainer){if(typeof elContainer=="string"){this._elContainer=document.getElementById(elContainer);} +else if(elContainer.tagName){this._elContainer=elContainer;} +this._elContainer.className="yui-log";} +if(!this._elContainer){if(YAHOO.widget.LogReader._elDefaultContainer){this._elContainer=YAHOO.widget.LogReader._elDefaultContainer;} +else{this._elContainer=document.body.appendChild(document.createElement("div"));this._elContainer.id="yui-log";this._elContainer.className="yui-log";YAHOO.widget.LogReader._elDefaultContainer=this._elContainer;} +var containerStyle=this._elContainer.style;if(this.width){containerStyle.width=this.width;} +if(this.right){containerStyle.right=this.right;} +if(this.top){containerStyle.top=this.top;} +if(this.left){containerStyle.left=this.left;containerStyle.right="auto";} +if(this.bottom){containerStyle.bottom=this.bottom;containerStyle.top="auto";} +if(this.fontSize){containerStyle.fontSize=this.fontSize;} +if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){document.body.style+='';}} +if(this._elContainer){if(!this._elHd){this._elHd=this._elContainer.appendChild(document.createElement("div"));this._elHd.id="yui-log-hd"+this._sName;this._elHd.className="yui-log-hd";this._elCollapse=this._elHd.appendChild(document.createElement("div"));this._elCollapse.className="yui-log-btns";this._btnCollapse=document.createElement("input");this._btnCollapse.type="button";this._btnCollapse.style.fontSize=YAHOO.util.Dom.getStyle(this._elContainer,"fontSize");this._btnCollapse.className="yui-log-button";this._btnCollapse.value="Collapse";this._btnCollapse=this._elCollapse.appendChild(this._btnCollapse);YAHOO.util.Event.addListener(oSelf._btnCollapse,'click',oSelf._onClickCollapseBtn,oSelf);this._title=this._elHd.appendChild(document.createElement("h4"));this._title.innerHTML="Logger Console";if(YAHOO.util.DD&&(YAHOO.widget.LogReader._elDefaultContainer==this._elContainer)){var ylog_dd=new YAHOO.util.DD(this._elContainer.id);ylog_dd.setHandleElId(this._elHd.id);this._elHd.style.cursor="move";}} +if(!this._elConsole){this._elConsole=this._elContainer.appendChild(document.createElement("div"));this._elConsole.className="yui-log-bd";if(this.height){this._elConsole.style.height=this.height;}} +if(!this._elFt&&this.footerEnabled){this._elFt=this._elContainer.appendChild(document.createElement("div"));this._elFt.className="yui-log-ft";this._elBtns=this._elFt.appendChild(document.createElement("div"));this._elBtns.className="yui-log-btns";this._btnPause=document.createElement("input");this._btnPause.type="button";this._btnPause.style.fontSize=YAHOO.util.Dom.getStyle(this._elContainer,"fontSize");this._btnPause.className="yui-log-button";this._btnPause.value="Pause";this._btnPause=this._elBtns.appendChild(this._btnPause);YAHOO.util.Event.addListener(oSelf._btnPause,'click',oSelf._onClickPauseBtn,oSelf);this._btnClear=document.createElement("input");this._btnClear.type="button";this._btnClear.style.fontSize=YAHOO.util.Dom.getStyle(this._elContainer,"fontSize");this._btnClear.className="yui-log-button";this._btnClear.value="Clear";this._btnClear=this._elBtns.appendChild(this._btnClear);YAHOO.util.Event.addListener(oSelf._btnClear,'click',oSelf._onClickClearBtn,oSelf);this._elCategoryFilters=this._elFt.appendChild(document.createElement("div"));this._elCategoryFilters.className="yui-log-categoryfilters";this._elSourceFilters=this._elFt.appendChild(document.createElement("div"));this._elSourceFilters.className="yui-log-sourcefilters";}} +if(!this._buffer){this._buffer=[];} +this._lastTime=YAHOO.widget.Logger.getStartTime();YAHOO.widget.Logger.newLogEvent.subscribe(this._onNewLog,this);YAHOO.widget.Logger.logResetEvent.subscribe(this._onReset,this);this._categoryFilters=[];var catsLen=YAHOO.widget.Logger.categories.length;if(this._elCategoryFilters){for(var i=0;i<catsLen;i++){this._createCategoryCheckbox(YAHOO.widget.Logger.categories[i]);}} +this._sourceFilters=[];var sourcesLen=YAHOO.widget.Logger.sources.length;if(this._elSourceFilters){for(var j=0;j<sourcesLen;j++){this._createSourceCheckbox(YAHOO.widget.Logger.sources[j]);}} +YAHOO.widget.Logger.categoryCreateEvent.subscribe(this._onCategoryCreate,this);YAHOO.widget.Logger.sourceCreateEvent.subscribe(this._onSourceCreate,this);this._filterLogs();YAHOO.log("LogReader initialized",null,this.toString());};YAHOO.widget.LogReader.prototype.logReaderEnabled=true;YAHOO.widget.LogReader.prototype.width=null;YAHOO.widget.LogReader.prototype.height=null;YAHOO.widget.LogReader.prototype.top=null;YAHOO.widget.LogReader.prototype.left=null;YAHOO.widget.LogReader.prototype.right=null;YAHOO.widget.LogReader.prototype.bottom=null;YAHOO.widget.LogReader.prototype.fontSize=null;YAHOO.widget.LogReader.prototype.footerEnabled=true;YAHOO.widget.LogReader.prototype.verboseOutput=true;YAHOO.widget.LogReader.prototype.newestOnTop=true;YAHOO.widget.LogReader.prototype.thresholdMax=500;YAHOO.widget.LogReader.prototype.thresholdMin=100;YAHOO.widget.LogReader.prototype.isCollapsed=false;YAHOO.widget.LogReader.prototype.toString=function(){return"LogReader instance"+this._sName;};YAHOO.widget.LogReader.prototype.pause=function(){this._timeout=null;this.logReaderEnabled=false;};YAHOO.widget.LogReader.prototype.resume=function(){this.logReaderEnabled=true;this._printBuffer();};YAHOO.widget.LogReader.prototype.hide=function(){this._elContainer.style.display="none";};YAHOO.widget.LogReader.prototype.show=function(){this._elContainer.style.display="block";};YAHOO.widget.LogReader.prototype.collapse=function(){this._elConsole.style.display="none";if(this._elFt){this._elFt.style.display="none";} +this._btnCollapse.value="Expand";this.isCollapsed=true;};YAHOO.widget.LogReader.prototype.expand=function(){this._elConsole.style.display="block";if(this._elFt){this._elFt.style.display="block";} +this._btnCollapse.value="Collapse";this.isCollapsed=false;};YAHOO.widget.LogReader.prototype.setTitle=function(sTitle){this._title.innerHTML=this.html2Text(sTitle);};YAHOO.widget.LogReader.prototype.getLastTime=function(){return this._lastTime;};YAHOO.widget.LogReader.prototype.formatMsg=function(oLogMsg){var category=oLogMsg.category;var label=category.substring(0,4).toUpperCase();var time=oLogMsg.time;if(time.toLocaleTimeString){var localTime=time.toLocaleTimeString();} +else{localTime=time.toString();} +var msecs=time.getTime();var startTime=YAHOO.widget.Logger.getStartTime();var totalTime=msecs-startTime;var elapsedTime=msecs-this.getLastTime();var source=oLogMsg.source;var sourceDetail=oLogMsg.sourceDetail;var sourceAndDetail=(sourceDetail)?source+" "+sourceDetail:source;var msg=this.html2Text(oLogMsg.msg);var output=(this.verboseOutput)?["<p><span class='",category,"'>",label,"</span> ",totalTime,"ms (+",elapsedTime,") ",localTime,": ","</p><p>",sourceAndDetail,": </p><p>",msg,"</p>"]:["<p><span class='",category,"'>",label,"</span> ",totalTime,"ms (+",elapsedTime,") ",localTime,": ",sourceAndDetail,": ",msg,"</p>"];return output.join("");};YAHOO.widget.LogReader.prototype.html2Text=function(sHtml){if(sHtml){sHtml+="";return sHtml.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");} +return"";};YAHOO.widget.LogReader._index=0;YAHOO.widget.LogReader.prototype._sName=null;YAHOO.widget.LogReader._elDefaultContainer=null;YAHOO.widget.LogReader.prototype._buffer=null;YAHOO.widget.LogReader.prototype._consoleMsgCount=0;YAHOO.widget.LogReader.prototype._lastTime=null;YAHOO.widget.LogReader.prototype._timeout=null;YAHOO.widget.LogReader.prototype._categoryFilters=null;YAHOO.widget.LogReader.prototype._sourceFilters=null;YAHOO.widget.LogReader.prototype._elContainer=null;YAHOO.widget.LogReader.prototype._elHd=null;YAHOO.widget.LogReader.prototype._elCollapse=null;YAHOO.widget.LogReader.prototype._btnCollapse=null;YAHOO.widget.LogReader.prototype._title=null;YAHOO.widget.LogReader.prototype._elConsole=null;YAHOO.widget.LogReader.prototype._elFt=null;YAHOO.widget.LogReader.prototype._elBtns=null;YAHOO.widget.LogReader.prototype._elCategoryFilters=null;YAHOO.widget.LogReader.prototype._elSourceFilters=null;YAHOO.widget.LogReader.prototype._btnPause=null;YAHOO.widget.LogReader.prototype._btnClear=null;YAHOO.widget.LogReader.prototype._createCategoryCheckbox=function(sCategory){var oSelf=this;if(this._elFt){var elParent=this._elCategoryFilters;var filters=this._categoryFilters;var elFilter=elParent.appendChild(document.createElement("span"));elFilter.className="yui-log-filtergrp";var chkCategory=document.createElement("input");chkCategory.id="yui-log-filter-"+sCategory+this._sName;chkCategory.className="yui-log-filter-"+sCategory;chkCategory.type="checkbox";chkCategory.category=sCategory;chkCategory=elFilter.appendChild(chkCategory);chkCategory.checked=true;filters.push(sCategory);YAHOO.util.Event.addListener(chkCategory,'click',oSelf._onCheckCategory,oSelf);var lblCategory=elFilter.appendChild(document.createElement("label"));lblCategory.htmlFor=chkCategory.id;lblCategory.className=sCategory;lblCategory.innerHTML=sCategory;}};YAHOO.widget.LogReader.prototype._createSourceCheckbox=function(sSource){var oSelf=this;if(this._elFt){var elParent=this._elSourceFilters;var filters=this._sourceFilters;var elFilter=elParent.appendChild(document.createElement("span"));elFilter.className="yui-log-filtergrp";var chkSource=document.createElement("input");chkSource.id="yui-log-filter"+sSource+this._sName;chkSource.className="yui-log-filter"+sSource;chkSource.type="checkbox";chkSource.source=sSource;chkSource=elFilter.appendChild(chkSource);chkSource.checked=true;filters.push(sSource);YAHOO.util.Event.addListener(chkSource,'click',oSelf._onCheckSource,oSelf);var lblSource=elFilter.appendChild(document.createElement("label"));lblSource.htmlFor=chkSource.id;lblSource.className=sSource;lblSource.innerHTML=sSource;}};YAHOO.widget.LogReader.prototype._filterLogs=function(){if(this._elConsole!==null){this._clearConsole();this._printToConsole(YAHOO.widget.Logger.getStack());}};YAHOO.widget.LogReader.prototype._clearConsole=function(){this._timeout=null;this._buffer=[];this._consoleMsgCount=0;this._lastTime=YAHOO.widget.Logger.getStartTime();var elConsole=this._elConsole;while(elConsole.hasChildNodes()){elConsole.removeChild(elConsole.firstChild);}};YAHOO.widget.LogReader.prototype._printBuffer=function(){this._timeout=null;if(this._elConsole!==null){var thresholdMax=this.thresholdMax;thresholdMax=(thresholdMax&&!isNaN(thresholdMax))?thresholdMax:500;if(this._consoleMsgCount<thresholdMax){var entries=[];for(var i=0;i<this._buffer.length;i++){entries[i]=this._buffer[i];} +this._buffer=[];this._printToConsole(entries);} +else{this._filterLogs();} +if(!this.newestOnTop){this._elConsole.scrollTop=this._elConsole.scrollHeight;}}};YAHOO.widget.LogReader.prototype._printToConsole=function(aEntries){var entriesLen=aEntries.length;var thresholdMin=this.thresholdMin;if(isNaN(thresholdMin)||(thresholdMin>this.thresholdMax)){thresholdMin=0;} +var entriesStartIndex=(entriesLen>thresholdMin)?(entriesLen-thresholdMin):0;var sourceFiltersLen=this._sourceFilters.length;var categoryFiltersLen=this._categoryFilters.length;for(var i=entriesStartIndex;i<entriesLen;i++){var okToPrint=false;var okToFilterCats=false;var entry=aEntries[i];var source=entry.source;var category=entry.category;for(var j=0;j<sourceFiltersLen;j++){if(source==this._sourceFilters[j]){okToFilterCats=true;break;}} +if(okToFilterCats){for(var k=0;k<categoryFiltersLen;k++){if(category==this._categoryFilters[k]){okToPrint=true;break;}}} +if(okToPrint){var output=this.formatMsg(entry);var container=(this.verboseOutput)?"CODE":"PRE";var oNewElement=(this.newestOnTop)?this._elConsole.insertBefore(document.createElement(container),this._elConsole.firstChild):this._elConsole.appendChild(document.createElement(container));oNewElement.innerHTML=output;this._consoleMsgCount++;this._lastTime=entry.time.getTime();}}};YAHOO.widget.LogReader.prototype._onCategoryCreate=function(sType,aArgs,oSelf){var category=aArgs[0];if(oSelf._elFt){oSelf._createCategoryCheckbox(category);}};YAHOO.widget.LogReader.prototype._onSourceCreate=function(sType,aArgs,oSelf){var source=aArgs[0];if(oSelf._elFt){oSelf._createSourceCheckbox(source);}};YAHOO.widget.LogReader.prototype._onCheckCategory=function(v,oSelf){var newFilter=this.category;var filtersArray=oSelf._categoryFilters;if(!this.checked){for(var i=0;i<filtersArray.length;i++){if(newFilter==filtersArray[i]){filtersArray.splice(i,1);break;}}} +else{filtersArray.push(newFilter);} +oSelf._filterLogs();};YAHOO.widget.LogReader.prototype._onCheckSource=function(v,oSelf){var newFilter=this.source;var filtersArray=oSelf._sourceFilters;if(!this.checked){for(var i=0;i<filtersArray.length;i++){if(newFilter==filtersArray[i]){filtersArray.splice(i,1);break;}}} +else{filtersArray.push(newFilter);} +oSelf._filterLogs();};YAHOO.widget.LogReader.prototype._onClickCollapseBtn=function(v,oSelf){if(!oSelf.isCollapsed){oSelf.collapse();} +else{oSelf.expand();}};YAHOO.widget.LogReader.prototype._onClickPauseBtn=function(v,oSelf){var btn=oSelf._btnPause;if(btn.value=="Resume"){oSelf.resume();btn.value="Pause";} +else{oSelf.pause();btn.value="Resume";}};YAHOO.widget.LogReader.prototype._onClickClearBtn=function(v,oSelf){oSelf._clearConsole();};YAHOO.widget.LogReader.prototype._onNewLog=function(sType,aArgs,oSelf){var logEntry=aArgs[0];oSelf._buffer.push(logEntry);if(oSelf.logReaderEnabled===true&&oSelf._timeout===null){oSelf._timeout=setTimeout(function(){oSelf._printBuffer();},100);}};YAHOO.widget.LogReader.prototype._onReset=function(sType,aArgs,oSelf){oSelf._filterLogs();};YAHOO.widget.Logger={loggerEnabled:true,_browserConsoleEnabled:false,categories:["info","warn","error","time","window"],sources:["global"],_stack:[],maxStackEntries:2500,_startTime:new Date().getTime(),_lastTime:null};YAHOO.widget.Logger.log=function(sMsg,sCategory,sSource){if(this.loggerEnabled){if(!sCategory){sCategory="info";} +else{sCategory=sCategory.toLocaleLowerCase();if(this._isNewCategory(sCategory)){this._createNewCategory(sCategory);}} +var sClass="global";var sDetail=null;if(sSource){var spaceIndex=sSource.indexOf(" ");if(spaceIndex>0){sClass=sSource.substring(0,spaceIndex);sDetail=sSource.substring(spaceIndex,sSource.length);} +else{sClass=sSource;} +if(this._isNewSource(sClass)){this._createNewSource(sClass);}} +var timestamp=new Date();var logEntry=new YAHOO.widget.LogMsg({msg:sMsg,time:timestamp,category:sCategory,source:sClass,sourceDetail:sDetail});var stack=this._stack;var maxStackEntries=this.maxStackEntries;if(maxStackEntries&&!isNaN(maxStackEntries)&&(stack.length>=maxStackEntries)){stack.shift();} +stack.push(logEntry);this.newLogEvent.fire(logEntry);if(this._browserConsoleEnabled){this._printToBrowserConsole(logEntry);} +return true;} +else{return false;}};YAHOO.widget.Logger.reset=function(){this._stack=[];this._startTime=new Date().getTime();this.loggerEnabled=true;this.log("Logger reset");this.logResetEvent.fire();};YAHOO.widget.Logger.getStack=function(){return this._stack;};YAHOO.widget.Logger.getStartTime=function(){return this._startTime;};YAHOO.widget.Logger.disableBrowserConsole=function(){YAHOO.log("Logger output to the function console.log() has been disabled.");this._browserConsoleEnabled=false;};YAHOO.widget.Logger.enableBrowserConsole=function(){this._browserConsoleEnabled=true;YAHOO.log("Logger output to the function console.log() has been enabled.");};YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true);YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true);YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true);YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true);YAHOO.widget.Logger._createNewCategory=function(sCategory){this.categories.push(sCategory);this.categoryCreateEvent.fire(sCategory);};YAHOO.widget.Logger._isNewCategory=function(sCategory){for(var i=0;i<this.categories.length;i++){if(sCategory==this.categories[i]){return false;}} +return true;};YAHOO.widget.Logger._createNewSource=function(sSource){this.sources.push(sSource);this.sourceCreateEvent.fire(sSource);};YAHOO.widget.Logger._isNewSource=function(sSource){if(sSource){for(var i=0;i<this.sources.length;i++){if(sSource==this.sources[i]){return false;}} +return true;}};YAHOO.widget.Logger._printToBrowserConsole=function(oEntry){if(window.console&&console.log){var category=oEntry.category;var label=oEntry.category.substring(0,4).toUpperCase();var time=oEntry.time;if(time.toLocaleTimeString){var localTime=time.toLocaleTimeString();} +else{localTime=time.toString();} +var msecs=time.getTime();var elapsedTime=(YAHOO.widget.Logger._lastTime)?(msecs-YAHOO.widget.Logger._lastTime):0;YAHOO.widget.Logger._lastTime=msecs;var output=localTime+" ("+ +elapsedTime+"ms): "+ +oEntry.source+": "+ +oEntry.msg;console.log(output);}};YAHOO.widget.Logger._onWindowError=function(sMsg,sUrl,sLine){try{YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')',"window");if(YAHOO.widget.Logger._origOnWindowError){YAHOO.widget.Logger._origOnWindowError();}} +catch(e){return false;}};if(window.onerror){YAHOO.widget.Logger._origOnWindowError=window.onerror;} +window.onerror=YAHOO.widget.Logger._onWindowError;YAHOO.widget.Logger.log("Logger initialized");YAHOO.register("logger",YAHOO.widget.Logger,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/logger/logger.js b/interface/ispconfig/interface/js/yui/logger/logger.js new file mode 100644 index 0000000..2d4bbce --- /dev/null +++ b/interface/ispconfig/interface/js/yui/logger/logger.js @@ -0,0 +1,1597 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogMsg class defines a single log message. + * + * @class LogMsg + * @constructor + * @param oConfigs {Object} Object literal of configuration params. + */ + YAHOO.widget.LogMsg = function(oConfigs) { + // Parse configs + if (typeof oConfigs == "object") { + for(var param in oConfigs) { + this[param] = oConfigs[param]; + } + } + }; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Log message. + * + * @property msg + * @type String + */ +YAHOO.widget.LogMsg.prototype.msg = null; + +/** + * Log timestamp. + * + * @property time + * @type Date + */ +YAHOO.widget.LogMsg.prototype.time = null; + +/** + * Log category. + * + * @property category + * @type String + */ +YAHOO.widget.LogMsg.prototype.category = null; + +/** + * Log source. The first word passed in as the source argument. + * + * @property source + * @type String + */ +YAHOO.widget.LogMsg.prototype.source = null; + +/** + * Log source detail. The remainder of the string passed in as the source argument, not + * including the first word (if any). + * + * @property sourceDetail + * @type String + */ +YAHOO.widget.LogMsg.prototype.sourceDetail = null; + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogWriter class provides a mechanism to log messages through + * YAHOO.widget.Logger from a named source. + * + * @class LogWriter + * @constructor + * @param sSource {String} Source of LogWriter instance. + */ +YAHOO.widget.LogWriter = function(sSource) { + if(!sSource) { + YAHOO.log("Could not instantiate LogWriter due to invalid source.", + "error", "LogWriter"); + return; + } + this._source = sSource; + }; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the LogWriter instance. + * + * @method toString + * @return {String} Unique name of the LogWriter instance. + */ +YAHOO.widget.LogWriter.prototype.toString = function() { + return "LogWriter " + this._sSource; +}; + +/** + * Logs a message attached to the source of the LogWriter. + * + * @method log + * @param sMsg {String} The log message. + * @param sCategory {String} Category name. + */ +YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) { + YAHOO.widget.Logger.log(sMsg, sCategory, this._source); +}; + +/** + * Public accessor to get the source name. + * + * @method getSource + * @return {String} The LogWriter source. + */ +YAHOO.widget.LogWriter.prototype.getSource = function() { + return this._sSource; +}; + +/** + * Public accessor to set the source name. + * + * @method setSource + * @param sSource {String} Source of LogWriter instance. + */ +YAHOO.widget.LogWriter.prototype.setSource = function(sSource) { + if(!sSource) { + YAHOO.log("Could not set source due to invalid source.", "error", this.toString()); + return; + } + else { + this._sSource = sSource; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Source of the LogWriter instance. + * + * @property _source + * @type String + * @private + */ +YAHOO.widget.LogWriter.prototype._source = null; + + + + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger. + * + * @class LogReader + * @constructor + * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV. + * @param elContainer {String} (optional) String ID of an existing DIV. + * @param oConfigs {Object} (optional) Object literal of configuration params. + */ +YAHOO.widget.LogReader = function(elContainer, oConfigs) { + var oSelf = this; + this._sName = YAHOO.widget.LogReader._index; + YAHOO.widget.LogReader._index++; + + // Parse config vars here + if (typeof oConfigs == "object") { + for(var param in oConfigs) { + this[param] = oConfigs[param]; + } + } + + // Attach container... + if(elContainer) { + if(typeof elContainer == "string") { + this._elContainer = document.getElementById(elContainer); + } + else if(elContainer.tagName) { + this._elContainer = elContainer; + } + this._elContainer.className = "yui-log"; + } + // ...or create container from scratch + if(!this._elContainer) { + if(YAHOO.widget.LogReader._elDefaultContainer) { + this._elContainer = YAHOO.widget.LogReader._elDefaultContainer; + } + else { + this._elContainer = document.body.appendChild(document.createElement("div")); + this._elContainer.id = "yui-log"; + this._elContainer.className = "yui-log"; + + YAHOO.widget.LogReader._elDefaultContainer = this._elContainer; + } + + // If implementer has provided container values, trust and set those + var containerStyle = this._elContainer.style; + if(this.width) { + containerStyle.width = this.width; + } + if(this.right) { + containerStyle.right = this.right; + } + if(this.top) { + containerStyle.top = this.top; + } + if(this.left) { + containerStyle.left = this.left; + containerStyle.right = "auto"; + } + if(this.bottom) { + containerStyle.bottom = this.bottom; + containerStyle.top = "auto"; + } + if(this.fontSize) { + containerStyle.fontSize = this.fontSize; + } + // For Opera + if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) { + document.body.style += ''; + } + } + + if(this._elContainer) { + // Create header + if(!this._elHd) { + this._elHd = this._elContainer.appendChild(document.createElement("div")); + this._elHd.id = "yui-log-hd" + this._sName; + this._elHd.className = "yui-log-hd"; + + this._elCollapse = this._elHd.appendChild(document.createElement("div")); + this._elCollapse.className = "yui-log-btns"; + + this._btnCollapse = document.createElement("input"); + this._btnCollapse.type = "button"; + this._btnCollapse.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnCollapse.className = "yui-log-button"; + this._btnCollapse.value = "Collapse"; + this._btnCollapse = this._elCollapse.appendChild(this._btnCollapse); + YAHOO.util.Event.addListener( + oSelf._btnCollapse,'click',oSelf._onClickCollapseBtn,oSelf); + + this._title = this._elHd.appendChild(document.createElement("h4")); + this._title.innerHTML = "Logger Console"; + + // If Drag and Drop utility is available... + // ...and this container was created from scratch... + // ...then make the header draggable + if(YAHOO.util.DD && + (YAHOO.widget.LogReader._elDefaultContainer == this._elContainer)) { + var ylog_dd = new YAHOO.util.DD(this._elContainer.id); + ylog_dd.setHandleElId(this._elHd.id); + this._elHd.style.cursor = "move"; + } + } + // Ceate console + if(!this._elConsole) { + this._elConsole = + this._elContainer.appendChild(document.createElement("div")); + this._elConsole.className = "yui-log-bd"; + + // If implementer has provided console, trust and set those + if(this.height) { + this._elConsole.style.height = this.height; + } + } + // Don't create footer if disabled + if(!this._elFt && this.footerEnabled) { + this._elFt = this._elContainer.appendChild(document.createElement("div")); + this._elFt.className = "yui-log-ft"; + + this._elBtns = this._elFt.appendChild(document.createElement("div")); + this._elBtns.className = "yui-log-btns"; + + this._btnPause = document.createElement("input"); + this._btnPause.type = "button"; + this._btnPause.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnPause.className = "yui-log-button"; + this._btnPause.value = "Pause"; + this._btnPause = this._elBtns.appendChild(this._btnPause); + YAHOO.util.Event.addListener( + oSelf._btnPause,'click',oSelf._onClickPauseBtn,oSelf); + + this._btnClear = document.createElement("input"); + this._btnClear.type = "button"; + this._btnClear.style.fontSize = + YAHOO.util.Dom.getStyle(this._elContainer,"fontSize"); + this._btnClear.className = "yui-log-button"; + this._btnClear.value = "Clear"; + this._btnClear = this._elBtns.appendChild(this._btnClear); + YAHOO.util.Event.addListener( + oSelf._btnClear,'click',oSelf._onClickClearBtn,oSelf); + + this._elCategoryFilters = this._elFt.appendChild(document.createElement("div")); + this._elCategoryFilters.className = "yui-log-categoryfilters"; + this._elSourceFilters = this._elFt.appendChild(document.createElement("div")); + this._elSourceFilters.className = "yui-log-sourcefilters"; + } + } + + // Initialize internal vars + if(!this._buffer) { + this._buffer = []; // output buffer + } + // Timestamp of last log message to console + this._lastTime = YAHOO.widget.Logger.getStartTime(); + + // Subscribe to Logger custom events + YAHOO.widget.Logger.newLogEvent.subscribe(this._onNewLog, this); + YAHOO.widget.Logger.logResetEvent.subscribe(this._onReset, this); + + // Initialize category filters + this._categoryFilters = []; + var catsLen = YAHOO.widget.Logger.categories.length; + if(this._elCategoryFilters) { + for(var i=0; i < catsLen; i++) { + this._createCategoryCheckbox(YAHOO.widget.Logger.categories[i]); + } + } + // Initialize source filters + this._sourceFilters = []; + var sourcesLen = YAHOO.widget.Logger.sources.length; + if(this._elSourceFilters) { + for(var j=0; j < sourcesLen; j++) { + this._createSourceCheckbox(YAHOO.widget.Logger.sources[j]); + } + } + YAHOO.widget.Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this); + YAHOO.widget.Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this); + + this._filterLogs(); + YAHOO.log("LogReader initialized", null, this.toString()); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Whether or not LogReader is enabled to output log messages. + * + * @property logReaderEnabled + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.logReaderEnabled = true; + +/** + * Public member to access CSS width of the LogReader container. + * + * @property width + * @type String + */ +YAHOO.widget.LogReader.prototype.width = null; + +/** + * Public member to access CSS height of the LogReader container. + * + * @property height + * @type String + */ +YAHOO.widget.LogReader.prototype.height = null; + +/** + * Public member to access CSS top position of the LogReader container. + * + * @property top + * @type String + */ +YAHOO.widget.LogReader.prototype.top = null; + +/** + * Public member to access CSS left position of the LogReader container. + * + * @property left + * @type String + */ +YAHOO.widget.LogReader.prototype.left = null; + +/** + * Public member to access CSS right position of the LogReader container. + * + * @property right + * @type String + */ +YAHOO.widget.LogReader.prototype.right = null; + +/** + * Public member to access CSS bottom position of the LogReader container. + * + * @property bottom + * @type String + */ +YAHOO.widget.LogReader.prototype.bottom = null; + +/** + * Public member to access CSS font size of the LogReader container. + * + * @property fontSize + * @type String + */ +YAHOO.widget.LogReader.prototype.fontSize = null; + +/** + * Whether or not the footer UI is enabled for the LogReader. + * + * @property footerEnabled + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.footerEnabled = true; + +/** + * Whether or not output is verbose (more readable). Setting to true will make + * output more compact (less readable). + * + * @property verboseOutput + * @type Boolean + * @default true + */ +YAHOO.widget.LogReader.prototype.verboseOutput = true; + +/** + * Whether or not newest message is printed on top. + * + * @property newestOnTop + * @type Boolean + */ +YAHOO.widget.LogReader.prototype.newestOnTop = true; + +/** + * Maximum number of messages a LogReader console will display. + * + * @property thresholdMax + * @type Number + * @default 500 + */ +YAHOO.widget.LogReader.prototype.thresholdMax = 500; + +/** + * When a LogReader console reaches its thresholdMax, it will clear out messages + * and print out the latest thresholdMin number of messages. + * + * @property thresholdMin + * @type Number + * @default 100 + */ +YAHOO.widget.LogReader.prototype.thresholdMin = 100; + +/** + * True when LogReader is in a collapsed state, false otherwise. + * + * @property isCollapsed + * @type Boolean + * @default false + */ +YAHOO.widget.LogReader.prototype.isCollapsed = false; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Public accessor to the unique name of the LogReader instance. + * + * @method toString + * @return {String} Unique name of the LogReader instance. + */ +YAHOO.widget.LogReader.prototype.toString = function() { + return "LogReader instance" + this._sName; +}; +/** + * Pauses output of log messages. While paused, log messages are not lost, but + * get saved to a buffer and then output upon resume of LogReader. + * + * @method pause + */ +YAHOO.widget.LogReader.prototype.pause = function() { + this._timeout = null; + this.logReaderEnabled = false; +}; + +/** + * Resumes output of log messages, including outputting any log messages that + * have been saved to buffer while paused. + * + * @method resume + */ +YAHOO.widget.LogReader.prototype.resume = function() { + this.logReaderEnabled = true; + this._printBuffer(); +}; + +/** + * Hides UI of LogReader. Logging functionality is not disrupted. + * + * @method hide + */ +YAHOO.widget.LogReader.prototype.hide = function() { + this._elContainer.style.display = "none"; +}; + +/** + * Shows UI of LogReader. Logging functionality is not disrupted. + * + * @method show + */ +YAHOO.widget.LogReader.prototype.show = function() { + this._elContainer.style.display = "block"; +}; + +/** + * Collapses UI of LogReader. Logging functionality is not disrupted. + * + * @method collapse + */ +YAHOO.widget.LogReader.prototype.collapse = function() { + this._elConsole.style.display = "none"; + if(this._elFt) { + this._elFt.style.display = "none"; + } + this._btnCollapse.value = "Expand"; + this.isCollapsed = true; +}; + +/** + * Expands UI of LogReader. Logging functionality is not disrupted. + * + * @method expand + */ +YAHOO.widget.LogReader.prototype.expand = function() { + this._elConsole.style.display = "block"; + if(this._elFt) { + this._elFt.style.display = "block"; + } + this._btnCollapse.value = "Collapse"; + this.isCollapsed = false; +}; + +/** + * Updates title to given string. + * + * @method setTitle + * @param sTitle {String} New title. + */ +YAHOO.widget.LogReader.prototype.setTitle = function(sTitle) { + this._title.innerHTML = this.html2Text(sTitle); +}; + +/** + * Gets timestamp of the last log. + * + * @method getLastTime + * @return {Date} Timestamp of the last log. + */ +YAHOO.widget.LogReader.prototype.getLastTime = function() { + return this._lastTime; +}; + +/** + * Formats message string to HTML for output to console. + * + * @method formatMsg + * @param oLogMsg {Object} Log message object. + * @return {String} HTML-formatted message for output to console. + */ +YAHOO.widget.LogReader.prototype.formatMsg = function(oLogMsg) { + var category = oLogMsg.category; + + // Label for color-coded display + var label = category.substring(0,4).toUpperCase(); + + // Calculate the elapsed time to be from the last item that passed through the filter, + // not the absolute previous item in the stack + + var time = oLogMsg.time; + if (time.toLocaleTimeString) { + var localTime = time.toLocaleTimeString(); + } + else { + localTime = time.toString(); + } + + var msecs = time.getTime(); + var startTime = YAHOO.widget.Logger.getStartTime(); + var totalTime = msecs - startTime; + var elapsedTime = msecs - this.getLastTime(); + + var source = oLogMsg.source; + var sourceDetail = oLogMsg.sourceDetail; + var sourceAndDetail = (sourceDetail) ? + source + " " + sourceDetail : source; + + // Escape HTML entities in the log message itself for output to console + var msg = this.html2Text(oLogMsg.msg); + + // Verbose output includes extra line breaks + var output = (this.verboseOutput) ? + ["<p><span class='", category, "'>", label, "</span> ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + "</p><p>", + sourceAndDetail, + ": </p><p>", + msg, + "</p>"] : + + ["<p><span class='", category, "'>", label, "</span> ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + sourceAndDetail, ": ", + msg,"</p>"]; + + return output.join(""); +}; + +/** + * Converts input chars "<", ">", and "&" to HTML entities. + * + * @method html2Text + * @param sHtml {String} String to convert. + * @private + */ +YAHOO.widget.LogReader.prototype.html2Text = function(sHtml) { + if(sHtml) { + sHtml += ""; + return sHtml.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); + } + return ""; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class member to index multiple LogReader instances. + * + * @property _memberName + * @static + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader._index = 0; + +/** + * Name of LogReader instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.LogReader.prototype._sName = null; + +/** + * A class member shared by all LogReaders if a container needs to be + * created during instantiation. Will be null if a container element never needs to + * be created on the fly, such as when the implementer passes in their own element. + * + * @property _elDefaultContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader._elDefaultContainer = null; + +/** + * Buffer of log message objects for batch output. + * + * @property _buffer + * @type Object[] + * @private + */ +YAHOO.widget.LogReader.prototype._buffer = null; + +/** + * Number of log messages output to console. + * + * @property _consoleMsgCount + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader.prototype._consoleMsgCount = 0; + +/** + * Date of last output log message. + * + * @property _lastTime + * @type Date + * @private + */ +YAHOO.widget.LogReader.prototype._lastTime = null; + +/** + * Batched output timeout ID. + * + * @property _timeout + * @type Number + * @private + */ +YAHOO.widget.LogReader.prototype._timeout = null; + +/** + * Array of filters for log message categories. + * + * @property _categoryFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._categoryFilters = null; + +/** + * Array of filters for log message sources. + * + * @property _sourceFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._sourceFilters = null; + +/** + * LogReader container element. + * + * @property _elContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elContainer = null; + +/** + * LogReader header element. + * + * @property _elHd + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elHd = null; + +/** + * LogReader collapse element. + * + * @property _elCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCollapse = null; + +/** + * LogReader collapse button element. + * + * @property _btnCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnCollapse = null; + +/** + * LogReader title header element. + * + * @property _title + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._title = null; + +/** + * LogReader console element. + * + * @property _elConsole + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elConsole = null; + +/** + * LogReader footer element. + * + * @property _elFt + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elFt = null; + +/** + * LogReader buttons container element. + * + * @property _elBtns + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elBtns = null; + +/** + * Container element for LogReader category filter checkboxes. + * + * @property _elCategoryFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCategoryFilters = null; + +/** + * Container element for LogReader source filter checkboxes. + * + * @property _elSourceFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elSourceFilters = null; + +/** + * LogReader pause button element. + * + * @property _btnPause + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnPause = null; + +/** + * Clear button element. + * + * @property _btnClear + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnClear = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates the UI for a category filter in the LogReader footer element. + * + * @method _createCategoryCheckbox + * @param sCategory {String} Category name. + * @private + */ +YAHOO.widget.LogReader.prototype._createCategoryCheckbox = function(sCategory) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elCategoryFilters; + var filters = this._categoryFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkCategory = document.createElement("input"); + chkCategory.id = "yui-log-filter-" + sCategory + this._sName; + chkCategory.className = "yui-log-filter-" + sCategory; + chkCategory.type = "checkbox"; + chkCategory.category = sCategory; + chkCategory = elFilter.appendChild(chkCategory); + chkCategory.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sCategory); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkCategory,'click',oSelf._onCheckCategory,oSelf); + + // Create and class the text label + var lblCategory = elFilter.appendChild(document.createElement("label")); + lblCategory.htmlFor = chkCategory.id; + lblCategory.className = sCategory; + lblCategory.innerHTML = sCategory; + } +}; + +/** + * Creates a checkbox in the LogReader footer element to filter by source. + * + * @method _createSourceCheckbox + * @param sSource {String} Source name. + * @private + */ +YAHOO.widget.LogReader.prototype._createSourceCheckbox = function(sSource) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elSourceFilters; + var filters = this._sourceFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkSource = document.createElement("input"); + chkSource.id = "yui-log-filter" + sSource + this._sName; + chkSource.className = "yui-log-filter" + sSource; + chkSource.type = "checkbox"; + chkSource.source = sSource; + chkSource = elFilter.appendChild(chkSource); + chkSource.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sSource); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkSource,'click',oSelf._onCheckSource,oSelf); + + // Create and class the text label + var lblSource = elFilter.appendChild(document.createElement("label")); + lblSource.htmlFor = chkSource.id; + lblSource.className = sSource; + lblSource.innerHTML = sSource; + } +}; + +/** + * Reprints all log messages in the stack through filters. + * + * @method _filterLogs + * @private + */ +YAHOO.widget.LogReader.prototype._filterLogs = function() { + // Reprint stack with new filters + if (this._elConsole !== null) { + this._clearConsole(); + this._printToConsole(YAHOO.widget.Logger.getStack()); + } +}; + +/** + * Clears all outputted log messages from the console and resets the time of the + * last output log message. + * + * @method _clearConsole + * @private + */ +YAHOO.widget.LogReader.prototype._clearConsole = function() { + // Clear the buffer of any pending messages + this._timeout = null; + this._buffer = []; + this._consoleMsgCount = 0; + + // Reset the rolling timer + this._lastTime = YAHOO.widget.Logger.getStartTime(); + + var elConsole = this._elConsole; + while(elConsole.hasChildNodes()) { + elConsole.removeChild(elConsole.firstChild); + } +}; + +/** + * Sends buffer of log messages to output and clears buffer. + * + * @method _printBuffer + * @private + */ +YAHOO.widget.LogReader.prototype._printBuffer = function() { + this._timeout = null; + + if(this._elConsole !== null) { + var thresholdMax = this.thresholdMax; + thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500; + if(this._consoleMsgCount < thresholdMax) { + var entries = []; + for (var i=0; i<this._buffer.length; i++) { + entries[i] = this._buffer[i]; + } + this._buffer = []; + this._printToConsole(entries); + } + else { + this._filterLogs(); + } + + if(!this.newestOnTop) { + this._elConsole.scrollTop = this._elConsole.scrollHeight; + } + } +}; + +/** + * Cycles through an array of log messages, and outputs each one to the console + * if its category has not been filtered out. + * + * @method _printToConsole + * @param aEntries {Object[]} Array of LogMsg objects to output to console. + * @private + */ +YAHOO.widget.LogReader.prototype._printToConsole = function(aEntries) { + // Manage the number of messages displayed in the console + var entriesLen = aEntries.length; + var thresholdMin = this.thresholdMin; + if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) { + thresholdMin = 0; + } + var entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0; + + // Iterate through all log entries + var sourceFiltersLen = this._sourceFilters.length; + var categoryFiltersLen = this._categoryFilters.length; + for(var i=entriesStartIndex; i<entriesLen; i++) { + // Print only the ones that filter through + var okToPrint = false; + var okToFilterCats = false; + + // Get log message details + var entry = aEntries[i]; + var source = entry.source; + var category = entry.category; + + for(var j=0; j<sourceFiltersLen; j++) { + if(source == this._sourceFilters[j]) { + okToFilterCats = true; + break; + } + } + if(okToFilterCats) { + for(var k=0; k<categoryFiltersLen; k++) { + if(category == this._categoryFilters[k]) { + okToPrint = true; + break; + } + } + } + if(okToPrint) { + var output = this.formatMsg(entry); + + // Verbose output uses <code> tag instead of <pre> tag (for wrapping) + var container = (this.verboseOutput) ? "CODE" : "PRE"; + var oNewElement = (this.newestOnTop) ? + this._elConsole.insertBefore( + document.createElement(container),this._elConsole.firstChild): + this._elConsole.appendChild(document.createElement(container)); + + oNewElement.innerHTML = output; + this._consoleMsgCount++; + this._lastTime = entry.time.getTime(); + } + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles Logger's categoryCreateEvent. + * + * @method _onCategoryCreate + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCategoryCreate = function(sType, aArgs, oSelf) { + var category = aArgs[0]; + if(oSelf._elFt) { + oSelf._createCategoryCheckbox(category); + } +}; + +/** + * Handles Logger's sourceCreateEvent. + * + * @method _onSourceCreate + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onSourceCreate = function(sType, aArgs, oSelf) { + var source = aArgs[0]; + if(oSelf._elFt) { + oSelf._createSourceCheckbox(source); + } +}; + +/** + * Handles check events on the category filter checkboxes. + * + * @method _onCheckCategory + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCheckCategory = function(v, oSelf) { + var newFilter = this.category; + var filtersArray = oSelf._categoryFilters; + + if(!this.checked) { // Remove category from filters + for(var i=0; i<filtersArray.length; i++) { + if(newFilter == filtersArray[i]) { + filtersArray.splice(i, 1); + break; + } + } + } + else { // Add category to filters + filtersArray.push(newFilter); + } + oSelf._filterLogs(); +}; + +/** + * Handles check events on the category filter checkboxes. + * + * @method _onCheckSource + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onCheckSource = function(v, oSelf) { + var newFilter = this.source; + var filtersArray = oSelf._sourceFilters; + + if(!this.checked) { // Remove category from filters + for(var i=0; i<filtersArray.length; i++) { + if(newFilter == filtersArray[i]) { + filtersArray.splice(i, 1); + break; + } + } + } + else { // Add category to filters + filtersArray.push(newFilter); + } + oSelf._filterLogs(); +}; + +/** + * Handles click events on the collapse button. + * + * @method _onClickCollapseBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance + * @private + */ +YAHOO.widget.LogReader.prototype._onClickCollapseBtn = function(v, oSelf) { + if(!oSelf.isCollapsed) { + oSelf.collapse(); + } + else { + oSelf.expand(); + } +}; + +/** + * Handles click events on the pause button. + * + * @method _onClickPauseBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onClickPauseBtn = function(v, oSelf) { + var btn = oSelf._btnPause; + if(btn.value == "Resume") { + oSelf.resume(); + btn.value = "Pause"; + } + else { + oSelf.pause(); + btn.value = "Resume"; + } +}; + +/** + * Handles click events on the clear button. + * + * @method _onClickClearBtn + * @param v {HTMLEvent} The click event. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onClickClearBtn = function(v, oSelf) { + oSelf._clearConsole(); +}; + +/** + * Handles Logger's newLogEvent. + * + * @method _onNewLog + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onNewLog = function(sType, aArgs, oSelf) { + var logEntry = aArgs[0]; + oSelf._buffer.push(logEntry); + + if (oSelf.logReaderEnabled === true && oSelf._timeout === null) { + oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, 100); + } +}; + +/** + * Handles Logger's resetEvent. + * + * @method _onReset + * @param sType {String} The event. + * @param aArgs {Object[]} Data passed from event firer. + * @param oSelf {Object} The LogReader instance. + * @private + */ +YAHOO.widget.LogReader.prototype._onReset = function(sType, aArgs, oSelf) { + oSelf._filterLogs(); +}; + + /** + * The Logger widget provides a simple way to read or write log messages in + * JavaScript code. Integration with the YUI Library's debug builds allow + * implementers to access under-the-hood events, errors, and debugging messages. + * Output may be read through a LogReader console and/or output to a browser + * console. + * + * @module logger + * @requires yahoo, event, dom + * @optional dragdrop + * @namespace YAHOO.widget + * @title Logger Widget + */ + +/****************************************************************************/ +/****************************************************************************/ +/****************************************************************************/ + +/** + * The singleton Logger class provides core log management functionality. Saves + * logs written through the global YAHOO.log function or written by a LogWriter + * instance. Provides access to logs for reading by a LogReader instance or + * native browser console such as the Firebug extension to Firefox or Safari's + * JavaScript console through integration with the console.log() method. + * + * @class Logger + * @static + */ +YAHOO.widget.Logger = { + // Initialize members + loggerEnabled: true, + _browserConsoleEnabled: false, + categories: ["info","warn","error","time","window"], + sources: ["global"], + _stack: [], // holds all log msgs + maxStackEntries: 2500, + _startTime: new Date().getTime(), // static start timestamp + _lastTime: null // timestamp of last logged message +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public methods +// +///////////////////////////////////////////////////////////////////////////// +/** + * Saves a log message to the stack and fires newLogEvent. If the log message is + * assigned to an unknown category, creates a new category. If the log message is + * from an unknown source, creates a new source. If browser console is enabled, + * outputs the log message to browser console. + * + * @method log + * @param sMsg {String} The log message. + * @param sCategory {String} Category of log message, or null. + * @param sSource {String} Source of LogWriter, or null if global. + */ +YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) { + if(this.loggerEnabled) { + if(!sCategory) { + sCategory = "info"; // default category + } + else { + sCategory = sCategory.toLocaleLowerCase(); + if(this._isNewCategory(sCategory)) { + this._createNewCategory(sCategory); + } + } + var sClass = "global"; // default source + var sDetail = null; + if(sSource) { + var spaceIndex = sSource.indexOf(" "); + if(spaceIndex > 0) { + // Substring until first space + sClass = sSource.substring(0,spaceIndex); + // The rest of the source + sDetail = sSource.substring(spaceIndex,sSource.length); + } + else { + sClass = sSource; + } + if(this._isNewSource(sClass)) { + this._createNewSource(sClass); + } + } + + var timestamp = new Date(); + var logEntry = new YAHOO.widget.LogMsg({ + msg: sMsg, + time: timestamp, + category: sCategory, + source: sClass, + sourceDetail: sDetail + }); + + var stack = this._stack; + var maxStackEntries = this.maxStackEntries; + if(maxStackEntries && !isNaN(maxStackEntries) && + (stack.length >= maxStackEntries)) { + stack.shift(); + } + stack.push(logEntry); + this.newLogEvent.fire(logEntry); + + if(this._browserConsoleEnabled) { + this._printToBrowserConsole(logEntry); + } + return true; + } + else { + return false; + } +}; + +/** + * Resets internal stack and startTime, enables Logger, and fires logResetEvent. + * + * @method reset + */ +YAHOO.widget.Logger.reset = function() { + this._stack = []; + this._startTime = new Date().getTime(); + this.loggerEnabled = true; + this.log("Logger reset"); + this.logResetEvent.fire(); +}; + +/** + * Public accessor to internal stack of log message objects. + * + * @method getStack + * @return {Object[]} Array of log message objects. + */ +YAHOO.widget.Logger.getStack = function() { + return this._stack; +}; + +/** + * Public accessor to internal start time. + * + * @method getStartTime + * @return {Date} Internal date of when Logger singleton was initialized. + */ +YAHOO.widget.Logger.getStartTime = function() { + return this._startTime; +}; + +/** + * Disables output to the browser's global console.log() function, which is used + * by the Firebug extension to Firefox as well as Safari. + * + * @method disableBrowserConsole + */ +YAHOO.widget.Logger.disableBrowserConsole = function() { + YAHOO.log("Logger output to the function console.log() has been disabled."); + this._browserConsoleEnabled = false; +}; + +/** + * Enables output to the browser's global console.log() function, which is used + * by the Firebug extension to Firefox as well as Safari. + * + * @method enableBrowserConsole + */ +YAHOO.widget.Logger.enableBrowserConsole = function() { + this._browserConsoleEnabled = true; + YAHOO.log("Logger output to the function console.log() has been enabled."); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Public events +// +///////////////////////////////////////////////////////////////////////////// + + /** + * Fired when a new category has been created. + * + * @event categoryCreateEvent + * @param sCategory {String} Category name. + */ +YAHOO.widget.Logger.categoryCreateEvent = + new YAHOO.util.CustomEvent("categoryCreate", this, true); + + /** + * Fired when a new source has been named. + * + * @event sourceCreateEvent + * @param sSource {String} Source name. + */ +YAHOO.widget.Logger.sourceCreateEvent = + new YAHOO.util.CustomEvent("sourceCreate", this, true); + + /** + * Fired when a new log message has been created. + * + * @event newLogEvent + * @param sMsg {String} Log message. + */ +YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true); + +/** + * Fired when the Logger has been reset has been created. + * + * @event logResetEvent + */ +YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true); + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates a new category of log messages and fires categoryCreateEvent. + * + * @method _createNewCategory + * @param sCategory {String} Category name. + * @private + */ +YAHOO.widget.Logger._createNewCategory = function(sCategory) { + this.categories.push(sCategory); + this.categoryCreateEvent.fire(sCategory); +}; + +/** + * Checks to see if a category has already been created. + * + * @method _isNewCategory + * @param sCategory {String} Category name. + * @return {Boolean} Returns true if category is unknown, else returns false. + * @private + */ +YAHOO.widget.Logger._isNewCategory = function(sCategory) { + for(var i=0; i < this.categories.length; i++) { + if(sCategory == this.categories[i]) { + return false; + } + } + return true; +}; + +/** + * Creates a new source of log messages and fires sourceCreateEvent. + * + * @method _createNewSource + * @param sSource {String} Source name. + * @private + */ +YAHOO.widget.Logger._createNewSource = function(sSource) { + this.sources.push(sSource); + this.sourceCreateEvent.fire(sSource); +}; + +/** + * Checks to see if a source already exists. + * + * @method _isNewSource + * @param sSource {String} Source name. + * @return {Boolean} Returns true if source is unknown, else returns false. + * @private + */ +YAHOO.widget.Logger._isNewSource = function(sSource) { + if(sSource) { + for(var i=0; i < this.sources.length; i++) { + if(sSource == this.sources[i]) { + return false; + } + } + return true; + } +}; + +/** + * Outputs a log message to global console.log() function. + * + * @method _printToBrowserConsole + * @param oEntry {Object} Log entry object. + * @private + */ +YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) { + if(window.console && console.log) { + var category = oEntry.category; + var label = oEntry.category.substring(0,4).toUpperCase(); + + var time = oEntry.time; + if (time.toLocaleTimeString) { + var localTime = time.toLocaleTimeString(); + } + else { + localTime = time.toString(); + } + + var msecs = time.getTime(); + var elapsedTime = (YAHOO.widget.Logger._lastTime) ? + (msecs - YAHOO.widget.Logger._lastTime) : 0; + YAHOO.widget.Logger._lastTime = msecs; + + var output = + localTime + " (" + + elapsedTime + "ms): " + + oEntry.source + ": " + + oEntry.msg; + + console.log(output); + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private event handlers +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Handles logging of messages due to window error events. + * + * @method _onWindowError + * @param sMsg {String} The error message. + * @param sUrl {String} URL of the error. + * @param sLine {String} Line number of the error. + * @private + */ +YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) { + // Logger is not in scope of this event handler + try { + YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window"); + if(YAHOO.widget.Logger._origOnWindowError) { + YAHOO.widget.Logger._origOnWindowError(); + } + } + catch(e) { + return false; + } +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Enable handling of native JavaScript errors +// NB: Not all browsers support the window.onerror event +// +///////////////////////////////////////////////////////////////////////////// + +if(window.onerror) { + // Save any previously defined handler to call + YAHOO.widget.Logger._origOnWindowError = window.onerror; +} +window.onerror = YAHOO.widget.Logger._onWindowError; + +///////////////////////////////////////////////////////////////////////////// +// +// First log +// +///////////////////////////////////////////////////////////////////////////// + +YAHOO.widget.Logger.log("Logger initialized"); + + +YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/menu/README b/interface/ispconfig/interface/js/yui/menu/README new file mode 100644 index 0000000..34689ef --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/README @@ -0,0 +1,385 @@ +*** version 2.2.0 *** + +Added the following features: +----------------------------- + +* Added two new methods to YAHOO.widget.Menu: + + * "getItems" - Returns a flat array of the items in a menu. + + * "clearContent" - Removes all of the content from the menu, including the + menu items, group titles, header and footer. + + +* Added three new configuration attributes to YAHOO.widget.Menu: + + * "submenuhidedelay" - Number indicating the time (in milliseconds) that + should expire before a submenu is hidden when the user mouses out of a + menu item heading in the direction of a submenu. The value must be + greater than or equal to the value specified for the "showdelay" + configuration property. + + * "maxheight" - Defines the maximum height (in pixels) for a menu before + the contents of the body are scrolled. + + * "classname" - CSS class to be applied to the menu's root <div> element. + The specified class(es) are appended in addition to the default class as + specified by the menu's CSS_CLASS_NAME constant. + + +* Added new constants to YAHOO.widget.MenuItem: + + * COLLAPSED_SUBMENU_INDICATOR_TEXT - String representing the text for the + <em> element used for the submenu arrow indicator. + + * EXPANDED_SUBMENU_INDICATOR_TEXT - String representing the text for the + submenu arrow indicator element (<em>) when the submenu is visible. + + * DISABLED_SUBMENU_INDICATOR_ALT_TEXT - String representing the text for + the submenu arrow indicator element (<em>) when the menu item is disabled. + + * CHECKED_TEXT - String representing the text to be used for the checked + indicator element (<em>). + + * DISABLED_CHECKED_TEXT - String representing the text to be used for the + checked indicator element (<em>) when the menu item is disabled. + + +* Added two new configuration attributes to YAHOO.widget.MenuItem: + + * "onclick" - Object literal representing the code to be executed when the + button is clicked. Format: + + { + fn: Function, // The handler to call when the event fires. + obj: Object, // An object to pass back to the handler. + scope: Object // The object to use for the scope of the handler. + } + + * "classname" - CSS class to be applied to the menu item's root <li> + element. The specified class(es) are appended in addition to the default + class as specified by the menu item's CSS_CLASS_NAME constant. + + +* Added an "id" property to YAHOO.widget.MenuItem that represents the id of + the menu item's root <li> node. Although not a configuration attribute, this + property should be set via the object literal of configuration attributes + passed as the second argument to the constructor. If no value is + specified, then one will be generated using the "generateId" method of the + Dom utility (YAHOO.widget.Dom). + +* Added a "trigger context menu event" + (YAHOO.widget.ContextMenu.triggerContextMenuEvent) that fires when the DOM + "contextmenu" event ("mousedown" for Opera) is fired by one of the elemeents + defined as a YAHOO.widget.ContextMenu instance's trigger. + +* Added a "cancel" method to YAHOO.widget.ContextMenu that can be used to + cancel the display of a YAHOO.widget.ContextMen instance. This method + should be called within the scope of a "context menu" event handler for + one of the context menu's triggers + (YAHOO.widget.ContextMenu.triggerContextMenuEvent). + + +Fixed the following bugs: +------------------------- + +* Users can now move diagonally from a menu item to its corresponding submenu + without the submenu hiding immediately. + +* "destroy" method of YAHOO.widget.Menu now unsubscribes from the "text resize" + event (YAHOO.widget.Module.textResizeEvent). + +* Browser progress bar no longer flashes when hovering over checked menu items + or menu items with submenus. + +* Menu item submenu indicator image no longer jumps to the next line in + quirks mode. + +* Mouse events no longer fire in Firefox if a YAHOO.widget.Menu instance is + moved by script into a stationary mouse pointer. + +* Modified "toString" method of YAHOO.widget.ContextMenuItem to return the + correct class name, as it was reporting as YAHOO.widget.MenuBarItem. + + +Changes: +-------- + +* Default value for the "showdelay" configuration attribute is now 250 + +* Modified code so that all Menu images are added via CSS background images. + As a result, the following constants and properties have been deprecated: + + * YAHOO.widget.MenuItem.SUBMENU_INDICATOR_IMAGE_PATH + * YAHOO.widget.MenuItem.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH + * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH + * YAHOO.widget.MenuItem.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT + * YAHOO.widget.MenuItem.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT + * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_ALT_TEXT + * YAHOO.widget.MenuItem.CHECKED_IMAGE_PATH + * YAHOO.widget.MenuItem.SELECTED_CHECKED_IMAGE_PATH + * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_PATH + * YAHOO.widget.MenuItem.CHECKED_IMAGE_ALT_TEXT + * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_ALT_TEXT + * YAHOO.widget.MenuItem.IMG_ROOT + * YAHOO.widget.MenuItem.IMG_ROOT_SSL + * YAHOO.widget.MenuItem.imageRoot + * YAHOO.widget.MenuItem.isSecure + + + +*** version 0.12.2 *** + +* No changes + + + +*** version 0.12.1 *** + +Fixed the following bugs: +------------------------- + +* Placed the call to the DOM "focus" method used by the MenuItem class inside + a zero-second timeout to resolve a race condition between menu positioning + and focusing of a menu item that resulted in the browser viewport + scrolling unnecessarily. + +* Switched to JSMin for JavaScript compression to resolve issues with the + minified version. + +* Disabled menu item instances will no longer display a submenu if the item is + clicked or moused over. + +* Can no longer select more than one item in a menu if using the keyboard and + mouse simultaneously. + +* Calling the "destory" method on a menu will now unregister all of the menu's + submenus from the MenuManager. + + + +*** version 0.12 *** + +Added the following features: +----------------------------- + +* Added the YAHOO.widget.MenuManager singleton class. + +* Added two new methods to YAHOO.widget.Menu: + + * "addItems" - Adds an array of items to a menu. + + * "getRoot" - Returns the root menu in a menu hierarchy. + +* Added two new events to YAHOO.widget.Menu: + + * "itemAddedEvent" - Fires when an item is added to a menu. + + * "itemRemovedEvent" - Fires when an item is removed from a menu. + +* Added two new properties to YAHOO.widget.Menu: + + * "itemData" - Array of items to be added to the menu. + + * "lazyLoad" - Boolean indicating if the menu's "lazy load" feature + is enabled. + +* Added new configuration properties to YAHOO.widget.Menu: + + * "hidedelay" - Hides the menu after the specified number of milliseconds. + + * "showdelay" - Shows the menu after the specified number of milliseconds. + + * "container" - The containing element the menu should be rendered into. + + * "clicktohide" - Boolean indicating if the menu will automatically be + hidden if the user clicks outside of it. + + * "autosubmenudisplay" - Boolean indicating if submenus are automatically + made visible when the user mouses over the menu's items. + +* Added a "toString" method to YAHOO.widget.MenuItem, YAHOO.widget.MenuBarItem + and YAHOO.widget.ContextMenuItem that returns the class name followed by the + value of the item's "text" configuration property. + + +Fixed the following bugs: +------------------------- + +* Setting a YAHOO.widget.ContextMenu instance's "trigger" configuration + property will remove all previous triggers before setting up the new ones. + +* "destroy" method of YAHOO.widget.ContextMenu cleans up all DOM event handlers. + +* Clicking on a menu item with a submenu no longer hides/collapses the + entire menu. + +* Clicking an item's submenu indicator image no longer collapses the + entire menu. + + +Changes: +-------- + +* Deprecated the YAHOO.widget.MenuModule and YAHOO.widget.MenuModuleItem + classes. The Base classes are now YAHOO.widget.Menu and + YAHOO.widget.MenuItem. + +* "addItem" and "insertItem" methods of YAHOO.widget.Menu now accept an + object literal representing YAHOO.widget.MenuItem configuration properties. + +* "clearActiveItem" now takes an argument: flag indicating if the Menu + instance's active item should be blurred. + +* Switched the default value of the "visible" configuration property for + YAHOO.widget.Menu to "false." + +* Switched the default value of the "constraintoviewport" configuration + property for YAHOO.widget.Menu to "true." + +* Overloaded the "submenu" configuration property for YAHOO.widget.MenuItem + so that it now can accept any of the following: + + * YAHOO.widget.Menu instance + * Object literal representation of a menu + * Element id + * Element reference + +* "hide" and "show" methods of statically positioned menus now toggle the their + element's "display" style property between "block" and "none." + + + +*** version 0.10.0 *** + +* Initial release + +* Known issues: + + * Some Firefox extensions disable the ability for JavaScript to prevent + the display of the browser's default context menu. These extensions + can cause the YUI ContextMenu to stop working. If you encounter this + problem, you can reset the context menu preference in Firefox back to + the default by making sure the "Disable or replace context menus" + preference is checked: + + Mac Firefox 1.0: + ------------------- + Preferences > Web Features > + Advanced... > Disable or replace context menus + + Mac Firefox 1.5 + ------------------- + Preferences > Context > + Advanced... > Disable or replace context menus + + Windows Firefox 1.0 + ------------------- + Tools > Options > Web Features > + Advanced... > Disable or replace context menus + + Windows Firefox 1.5 + ------------------- + Tools > Options > Context > + Advanced... > Disable or replace context menus + + + +*** version 0.11.3 *** + +Added the following features: +----------------------------- + +* Added a "target" configuration property to the MenuModuleItem object that + allows the user to specify the target of an item's anchor element. Items + that make use of the "target" configuration property will require the user + to click exactly on the item's anchor element to navigate to the specified + URL. + +* Items without a "url" property set will automatically hide their parent + menu instance(s) when clicked. + + +Fixed the following bugs: +------------------------- + +* Items in a submenu should now navigate to their specified URL when clicked. + +* Removed MenuBar's use of "overflow:hidden." This fixes an issue in Firefox + 1.5 in which submenus of a Menubar instance cannot overlay other absolutely + positioned elements on the page. + +* Submenus of a Menubar instance will now automatically have their iframe shim + enabled in IE<7. + +* Statically positioned Menubar and Menu instances will now render with the + correct position and dimensions in Safari. + +* MenuModuleItem's "focus" method now checks to make sure that an item's + "display" style property is not "none" before trying to set focus to its + anchor element. + +* A ContextMenu instance will now hide all other ContextMenu instances before + displaying itself. + +* Removed the dead space in front of an item's submenu indicator image in IE. + This space was causing an item's submenu to flicker when the user hovered + over it. + + +Changes: +-------- + +* Moved the DOM event handlers for every menu from the root DIV node of each + instance to the document object. This change reduces the number of DOM event + handlers used by Menu to eight, improving the cleanup time required by the + Event utility. + + + +*** version 0.11.0 *** + +Added the following features: +----------------------------- +* Overloaded the "addItem" and "insertItem" methods of MenuModule to accept a + string or a MenuModuleItem instance + +* Added the ability to define a MenuItem instance as being "checked" + + +Fixed the following bugs: +------------------------- +* Changing the path for the submenu indicator image of one MenuModuleItem + subclass will no longer affect other subclasses + +* MenuItem instances built from existing markup without anchor tags will no + longer trigger a JavaScript error when clicked + +* Modified the implementation of the "imageRoot" property for the + MenuModuleItem class so that it is set to a secure/non-secure path when the + object is instantiated + +* Menu instances now resize in response to changes to the browser's font size + +* Modified the propagation of the MenuModule class's "submenualignment" + configuration property so that it only applies to instances of the same type + +* Adjusted the specificity of the style rule that controls the position of a + MenuItem instance's submenu indicator image to prevent it from wrapping in IE + +* Specified a width and height for submenu indicator images in the Menu + stylesheet to ensure that Menu instances are always rendered at the correct + width + +* Clicking a MenuItem instance will no longer trigger two HTTP GET requests + +* Users can now control or shift-click on MenuItem links + + +Changes: +-------- +* In the Menu stylesheet (menu.css), switched from using "first" class to + "first-of-type" class + +* Changed case of MenuModuleItem class's "subMenuIndicator" property + to "submenuIndicator" \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/menu/assets/map.gif b/interface/ispconfig/interface/js/yui/menu/assets/map.gif new file mode 100644 index 0000000..715859a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/map.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menu.css b/interface/ispconfig/interface/js/yui/menu/assets/menu.css new file mode 100644 index 0000000..2fc2f63 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menu.css @@ -0,0 +1,384 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* Menu styles */ + +div.yuimenu { + + background-color:#f6f7ee; + border:solid 1px #c4c4be; + padding:1px; + +} + +/* Submenus are positioned absolute and hidden by default */ + +div.yuimenu div.yuimenu, +div.yuimenubar div.yuimenu { + + position:absolute; + visibility:hidden; + +} + +/* MenuBar Styles */ + +div.yuimenubar { + + background-color:#f6f7ee; + +} + +/* + Applying a width triggers "haslayout" in IE so that the module's + body clears its floated elements +*/ +div.yuimenubar div.bd { + + width:100%; + +} + +/* + Clear the module body for other browsers +*/ +div.yuimenubar div.bd:after { + + content:'.'; + display:block; + clear:both; + visibility:hidden; + height:0; + +} + +/* Matches the group title (H6) inside a Menu or MenuBar instance */ + +div.yuimenu h6, +div.yuimenubar h6 { + + font-size:100%; + font-weight:normal; + margin:0; + border:solid 1px #c4c4be; + color:#b9b9b9; + +} + +div.yuimenubar h6 { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + padding:4px 12px; + border-width:0 1px 0 0; + +} + +div.yuimenu h6 { + + float:none; + display:block; + border-width:1px 0 0 0; + padding:5px 10px 0 10px; + +} + +/* Matches the UL inside a Menu or MenuBar instance */ + +div.yuimenubar ul { + + list-style-type:none; + margin:0; + padding:0; + +} + +div.yuimenu ul { + + list-style-type:none; + border:solid 1px #c4c4be; + border-width:1px 0 0 0; + margin:0; + padding:10px 0; + +} + +div.yuimenu ul.first-of-type, +div.yuimenu ul.hastitle, +div.yuimenu h6.first-of-type { + + border-width:0; + +} + +/* + Styles for the menu's header and footer elements that are used as controls + to scroll the menu's body element when the menu's height exceeds the + value of the "maxheight" configuration property. +*/ + +div.yuimenu div.topscrollbar, +div.yuimenu div.bottomscrollbar { + + height:16px; + background-image:url(map.gif); + background-repeat:no-repeat; + +} + + +div.yuimenu div.topscrollbar { + + background-image:url(map.gif); + background-position:center -72px; + +} + + +div.yuimenu div.topscrollbar_disabled { + + background-image:url(map.gif); + background-position:center -88px; + +} + + +div.yuimenu div.bottomscrollbar { + + background-image:url(map.gif); + background-position:center -104px; + +} + + +div.yuimenu div.bottomscrollbar_disabled { + + background-image:url(map.gif); + background-position:center -120px; + +} + + +/* MenuItem and MenuBarItem styles */ + +div.yuimenu li, +div.yuimenubar li { + + font-size:85%; + cursor:pointer; + cursor:hand; + white-space:nowrap; + text-align:left; + +} + +div.yuimenu li.yuimenuitem { + + padding:2px 24px; + +} + +div.yuimenu li li, +div.yuimenubar li li { + + font-size:100%; + +} + + +/* Matches the help text for a menu item */ + +div.yuimenu li.hashelptext em.helptext { + + font-style:normal; + margin:0 0 0 40px; + +} + +div.yuimenu li a, +div.yuimenubar li a { + + /* + "zoom:1" triggers "haslayout" in IE to ensure that the mouseover and + mouseout events bubble to the parent LI in IE. + */ + zoom:1; + color:#000; + text-decoration:none; + +} + +div.yuimenu li.hassubmenu, +div.yuimenu li.hashelptext { + + text-align:right; + +} + +div.yuimenu li.hassubmenu a.hassubmenu, +div.yuimenu li.hashelptext a.hashelptext { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + text-align:left; + +} + + +/* Matches selected menu items */ + +div.yuimenu li.selected, +div.yuimenubar li.selected { + + background-color:#8c8ad0; + +} + +div.yuimenu li.selected a.selected, +div.yuimenubar li.selected a.selected { + + text-decoration:underline; + +} + +div.yuimenu li.selected a.selected, +div.yuimenu li.selected em.selected, +div.yuimenubar li.selected a.selected { + + color:#fff; + +} + + +/* Matches disabled menu items */ + +div.yuimenu li.disabled, +div.yuimenubar li.disabled { + + cursor:default; + +} + +div.yuimenu li.disabled a.disabled, +div.yuimenu li.disabled em.disabled, +div.yuimenubar li.disabled a.disabled { + + color:#b9b9b9; + cursor:default; + +} + +div.yuimenubar li.yuimenubaritem { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + border-width:0 0 0 1px; + border-style:solid; + border-color:#c4c4be; + padding:4px 24px; + margin:0; + +} + +div.yuimenubar li.yuimenubaritem.first-of-type { + + border-width:0; + +} + + +/* Styles for the the submenu indicator for menu items */ + +div.yuimenu li.hassubmenu em.submenuindicator, +div.yuimenubar li.hassubmenu em.submenuindicator { + + display:-moz-inline-box; /* Mozilla */ + display:inline-block; /* IE, Opera and Safari */ + vertical-align:middle; + height:8px; + width:8px; + text-indent:9px; + font:0/0 arial; + overflow:hidden; + background-image:url(map.gif); + background-repeat:no-repeat; + +} + +div.yuimenubar li.hassubmenu em.submenuindicator { + + background-position:0 -24px; + margin:0 0 0 10px; + +} + +div.yuimenubar li.hassubmenu em.submenuindicator.selected { + + background-position:0 -32px; + +} + +div.yuimenubar li.hassubmenu em.submenuindicator.disabled { + + background-position:0 -40px; + +} + +div.yuimenu li.hassubmenu em.submenuindicator { + + background-position:0 0; + margin:0 -16px 0 10px; + +} + +div.yuimenu li.hassubmenu em.submenuindicator.selected { + + background-position:0 -8px; + +} + +div.yuimenu li.hassubmenu em.submenuindicator.disabled { + + background-position:0 -16px; + +} + + +/* Styles for a menu item's "checked" state */ + +div.yuimenu li.checked { + + position:relative; + +} + +div.yuimenu li.checked em.checkedindicator { + + height:8px; + width:8px; + text-indent:9px; + overflow:hidden; + background-image:url(map.gif); + background-position:0 -48px; + background-repeat:no-repeat; + position:absolute; + left:6px; + _left:-16px; /* Underscore hack b/c this is for IE 6 only */ + top:.5em; + +} + +div.yuimenu li.checked em.checkedindicator.selected { + + background-position:0 -56px; + +} + +div.yuimenu li.checked em.checkedindicator.disabled { + + background-position:0 -64px; + +} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_dim_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_dim_1.gif new file mode 100644 index 0000000..60b3836 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_dim_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_hov_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_hov_1.gif new file mode 100644 index 0000000..66632e8 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_hov_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_nrm_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_nrm_1.gif new file mode 100644 index 0000000..bf5d3f1 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarodwn8_nrm_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_dim_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_dim_1.gif new file mode 100644 index 0000000..0780b66 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_dim_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_hov_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_hov_1.gif new file mode 100644 index 0000000..0d87f1a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_hov_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_nrm_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_nrm_1.gif new file mode 100644 index 0000000..3cdc2a9 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuarorght8_nrm_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_dim_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_dim_1.gif new file mode 100644 index 0000000..1acaeec --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_dim_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_nrm_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_nrm_1.gif new file mode 100644 index 0000000..ee44529 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuaroup8_nrm_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_dim_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_dim_1.gif new file mode 100644 index 0000000..d282a6c --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_dim_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_hov_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_hov_1.gif new file mode 100644 index 0000000..2fabaef --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_hov_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_nrm_1.gif b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_nrm_1.gif new file mode 100644 index 0000000..9732837 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/assets/menuchk8_nrm_1.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/menu/menu-debug.js b/interface/ispconfig/interface/js/yui/menu/menu-debug.js new file mode 100644 index 0000000..58cc283 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/menu-debug.js @@ -0,0 +1,8317 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + + +/** +* @module menu +* @description <p>The Menu family of components features a collection of +* controls that make it easy to add menus to your website or web application. +* With the Menu Controls you can create website fly-out menus, customized +* context menus, or application-style menu bars with just a small amount of +* scripting.</p><p>The Menu family of controls features:</p> +* <ul> +* <li>Screen-reader accessibility.</li> +* <li>Keyboard and mouse navigation.</li> +* <li>A rich event model that provides access to all of a menu's +* interesting moments.</li> +* <li>Support for +* <a href="http://en.wikipedia.org/wiki/Progressive_Enhancement">Progressive +* Enhancement</a>; Menus can be created from simple, +* semantic markup on the page or purely through JavaScript.</li> +* </ul> +* @title Menu +* @namespace YAHOO.widget +* @requires Event, Dom, Container +*/ +(function() { + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event; + +/** +* Singleton that manages a collection of all menus and menu items. Listens for +* DOM events at the document level and dispatches the events to the +* corresponding menu or menu item. +* +* @namespace YAHOO.widget +* @class MenuManager +* @static +*/ +YAHOO.widget.MenuManager = function() { + + // Private member variables + + + // Flag indicating if the DOM event handlers have been attached + + var m_bInitializedEventHandlers = false, + + + // Collection of menus + + m_oMenus = {}, + + + // Collection of menu items + + m_oItems = {}, + + + // Collection of visible menus + + m_oVisibleMenus = {}, + + me = this; + + + var m_oLogger = new YAHOO.widget.LogWriter(this.toString()); + + + // Private methods + + + /** + * @method addItem + * @description Adds an item to the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be added. + */ + function addItem(p_oItem) { + + var sId = p_oItem.id; + + if(p_oItem && m_oItems[sId] != p_oItem) { + + m_oItems[sId] = p_oItem; + + p_oItem.destroyEvent.subscribe(onItemDestroy, p_oItem); + + m_oLogger.log("Item: " + + p_oItem.toString() + " successfully registered."); + + } + + } + + + /** + * @method removeItem + * @description Removes an item from the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be removed. + */ + function removeItem(p_oItem) { + + var sId = p_oItem.id; + + if(sId && m_oItems[sId]) { + + delete m_oItems[sId]; + + m_oLogger.log("Item: " + + p_oItem.toString() + " successfully unregistered."); + + } + + } + + + /** + * @method getMenuRootElement + * @description Finds the root DIV node of a menu or the root LI node of a + * menu item. + * @private + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object specifying + * an HTML element. + */ + function getMenuRootElement(p_oElement) { + + var oParentNode; + + if(p_oElement && p_oElement.tagName) { + + switch(p_oElement.tagName.toUpperCase()) { + + case "DIV": + + oParentNode = p_oElement.parentNode; + + // Check if the DIV is the inner "body" node of a menu + + if( + ( + Dom.hasClass(p_oElement, "hd") || + Dom.hasClass(p_oElement, "bd") || + Dom.hasClass(p_oElement, "ft") + ) + && + oParentNode && + oParentNode.tagName && + oParentNode.tagName.toUpperCase() == "DIV" + ) { + + return oParentNode; + + } + else { + + return p_oElement; + + } + + break; + + case "LI": + + return p_oElement; + + default: + + oParentNode = p_oElement.parentNode; + + if(oParentNode) { + + return getMenuRootElement(oParentNode); + + } + + break; + + } + + } + + } + + + + // Private event handlers + + + /** + * @method onDOMEvent + * @description Generic, global event handler for all of a menu's DOM-based + * events. This listens for events against the document object. If the + * target of a given event is a member of a menu or menu item's DOM, the + * instance's corresponding Custom Event is fired. + * @private + * @param {Event} p_oEvent Object representing the DOM event object passed + * back by the event utility (YAHOO.util.Event). + */ + function onDOMEvent(p_oEvent) { + + // Get the target node of the DOM event + + var oTarget = Event.getTarget(p_oEvent), + + + // See if the target of the event was a menu, or a menu item + + oElement = getMenuRootElement(oTarget), + oMenuItem, + oMenu; + + + if(oElement) { + + var sTagName = oElement.tagName.toUpperCase(); + + if(sTagName == "LI") { + + var sId = oElement.id; + + if(sId && m_oItems[sId]) { + + oMenuItem = m_oItems[sId]; + oMenu = oMenuItem.parent; + + } + + } + else if(sTagName == "DIV") { + + if(oElement.id) { + + oMenu = m_oMenus[oElement.id]; + + } + + } + + } + + if(oMenu) { + + // Map of DOM event names to CustomEvent names + + var oEventTypes = { + "click": "clickEvent", + "mousedown": "mouseDownEvent", + "mouseup": "mouseUpEvent", + "mouseover": "mouseOverEvent", + "mouseout": "mouseOutEvent", + "keydown": "keyDownEvent", + "keyup": "keyUpEvent", + "keypress": "keyPressEvent" + }, + + sCustomEventType = oEventTypes[p_oEvent.type]; + + + // Fire the Custom Even that corresponds the current DOM event + + if(oMenuItem && !oMenuItem.cfg.getProperty("disabled")) { + + oMenuItem[sCustomEventType].fire(p_oEvent); + + } + + oMenu[sCustomEventType].fire(p_oEvent, oMenuItem); + + } + else if(p_oEvent.type == "mousedown") { + + + /* + If the target of the event wasn't a menu, hide all + dynamically positioned menus + */ + + var oActiveItem; + + for(var i in m_oMenus) { + + if(m_oMenus.hasOwnProperty(i)) { + + oMenu = m_oMenus[i]; + + if( + oMenu.cfg.getProperty("clicktohide") && + oMenu.cfg.getProperty("position") == "dynamic" + ) { + + oMenu.hide(); + + } + else { + + oMenu.clearActiveItem(true); + + } + + } + + } + + } + + } + + + /** + * @method onMenuDestroy + * @description "destroy" event handler for a menu. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + function onMenuDestroy(p_sType, p_aArgs, p_oMenu) { + + if(p_oMenu && m_oMenus[p_oMenu.id]) { + + delete m_oMenus[p_oMenu.id]; + + m_oLogger.log("Menu: " + + p_oMenu.toString() + " successfully unregistered."); + + } + + } + + + /** + * @method onItemDestroy + * @description "destroy" event handler for a MenuItem instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + function onItemDestroy(p_sType, p_aArgs, p_oItem) { + + var sId = p_oItem.id; + + if(sId && m_oItems[sId]) { + + delete m_oItems[sId]; + + } + + } + + + /** + * @method onMenuVisibleConfigChange + * @description Event handler for when the "visible" configuration property + * of a Menu instance changes. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + function onMenuVisibleConfigChange(p_sType, p_aArgs, p_oMenu) { + + var bVisible = p_aArgs[0]; + + if(bVisible) { + + m_oVisibleMenus[p_oMenu.id] = p_oMenu; + + m_oLogger.log("Menu: " + + p_oMenu.toString() + + " registered with the collection of visible menus."); + + } + else if(m_oVisibleMenus[p_oMenu.id]) { + + delete m_oVisibleMenus[p_oMenu.id]; + + m_oLogger.log("Menu: " + + p_oMenu.toString() + + " unregistered from the collection of visible menus."); + + } + + } + + + /** + * @method onItemAdded + * @description "itemadded" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + function onItemAdded(p_sType, p_aArgs) { + + addItem(p_aArgs[0]); + + } + + + /** + * @method onItemRemoved + * @description "itemremoved" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + function onItemRemoved(p_sType, p_aArgs) { + + removeItem(p_aArgs[0]); + + } + + + + return { + + // Privileged methods + + + /** + * @method addMenu + * @description Adds a menu to the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu + * instance to be added. + */ + addMenu: function(p_oMenu) { + + if(p_oMenu && p_oMenu.id && !m_oMenus[p_oMenu.id]) { + + m_oMenus[p_oMenu.id] = p_oMenu; + + + if(!m_bInitializedEventHandlers) { + + var oDoc = document; + + Event.addListener(oDoc, "mouseover", onDOMEvent, me, true); + Event.addListener(oDoc, "mouseout", onDOMEvent, me, true); + Event.addListener(oDoc, "mousedown", onDOMEvent, me, true); + Event.addListener(oDoc, "mouseup", onDOMEvent, me, true); + Event.addListener(oDoc, "click", onDOMEvent, me, true); + Event.addListener(oDoc, "keydown", onDOMEvent, me, true); + Event.addListener(oDoc, "keyup", onDOMEvent, me, true); + Event.addListener(oDoc, "keypress", onDOMEvent, me, true); + + m_bInitializedEventHandlers = true; + + m_oLogger.log("DOM event handlers initialized."); + + } + + p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, me); + + p_oMenu.cfg.subscribeToConfigEvent( + "visible", + onMenuVisibleConfigChange, + p_oMenu + ); + + p_oMenu.itemAddedEvent.subscribe(onItemAdded); + p_oMenu.itemRemovedEvent.subscribe(onItemRemoved); + + m_oLogger.log("Menu: " + + p_oMenu.toString() + " successfully registered."); + + } + + }, + + + /** + * @method removeMenu + * @description Removes a menu from the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu + * instance to be removed. + */ + removeMenu: function(p_oMenu) { + + if(p_oMenu && m_oMenus[p_oMenu.id]) { + + delete m_oMenus[p_oMenu.id]; + + m_oLogger.log("Menu: " + + p_oMenu.toString() + " successfully unregistered."); + + } + + }, + + + /** + * @method hideVisible + * @description Hides all visible, dynamically positioned menus. + */ + hideVisible: function() { + + var oMenu; + + for(var i in m_oVisibleMenus) { + + if(m_oVisibleMenus.hasOwnProperty(i)) { + + oMenu = m_oVisibleMenus[i]; + + if(oMenu.cfg.getProperty("position") == "dynamic") { + + oMenu.hide(); + + } + + } + + } + + }, + + + /** + * @method getMenus + * @description Returns an array of all menus registered with the + * menu manger. + * @return {Array} + */ + getMenus: function() { + + return m_oMenus; + + }, + + + /** + * @method getMenu + * @description Returns a menu with the specified id. + * @param {String} p_sId String specifying the id of the menu to + * be retrieved. + * @return {YAHOO.widget.Menu} + */ + getMenu: function(p_sId) { + + if(m_oMenus[p_sId]) { + + return m_oMenus[p_sId]; + + } + + }, + + + /** + * @method toString + * @description Returns a string representing the menu manager. + * @return {String} + */ + toString: function() { + + return ("MenuManager"); + + } + + }; + +}(); + +})(); + + + +/** +* The Menu class creates a container that holds a vertical list representing +* a set of options or commands. Menu is the base class for all +* menu containers. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source +* for the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement +* Object specifying the <code><select></code> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +* @namespace YAHOO.widget +* @class Menu +* @constructor +* @extends YAHOO.widget.Overlay +*/ +(function() { + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang; + + +YAHOO.widget.Menu = function(p_oElement, p_oConfig) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + this.lazyLoad = p_oConfig.lazyLoad || p_oConfig.lazyload; + this.itemData = p_oConfig.itemData || p_oConfig.itemdata; + + } + + + YAHOO.widget.Menu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + + +YAHOO.lang.extend(YAHOO.widget.Menu, YAHOO.widget.Overlay, { + + +// Constants + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* menu's <code><div></code> element. +* @default "yuimenu" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenu", + + +/** +* @property ITEM_TYPE +* @description Object representing the type of menu item to instantiate and +* add when parsing the child nodes (either <code><li></code> element, +* <code><optgroup></code> element or <code><option></code>) +* of the menu's source HTML element. +* @default YAHOO.widget.MenuItem +* @final +* @type YAHOO.widget.MenuItem +*/ +ITEM_TYPE: null, + + +/** +* @property GROUP_TITLE_TAG_NAME +* @description String representing the tagname of the HTML element used to +* title the menu's item groups. +* @default H6 +* @final +* @type String +*/ +GROUP_TITLE_TAG_NAME: "h6", + + + +// Private properties + + +/** +* @property _nHideDelayId +* @description Number representing the time-out setting used to cancel the +* hiding of a menu. +* @default null +* @private +* @type Number +*/ +_nHideDelayId: null, + + +/** +* @property _nShowDelayId +* @description Number representing the time-out setting used to cancel the +* showing of a menu. +* @default null +* @private +* @type Number +*/ +_nShowDelayId: null, + + +/** +* @property _nSubmenuHideDelayId +* @description Number representing the time-out setting used to cancel the +* hiding of a submenu. +* @default null +* @private +* @type Number +*/ +_nSubmenuHideDelayId: null, + + +/** +* @property _nBodyScrollId +* @description Number representing the time-out setting used to cancel the +* scrolling of the menu's body element. +* @default null +* @private +* @type Number +*/ +_nBodyScrollId: null, + + +/** +* @property _bHideDelayEventHandlersAssigned +* @description Boolean indicating if the "mouseover" and "mouseout" event +* handlers used for hiding the menu via a call to "window.setTimeout" have +* already been assigned. +* @default false +* @private +* @type Boolean +*/ +_bHideDelayEventHandlersAssigned: false, + + +/** +* @property _bHandledMouseOverEvent +* @description Boolean indicating the current state of the menu's +* "mouseover" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOverEvent: false, + + +/** +* @property _bHandledMouseOutEvent +* @description Boolean indicating the current state of the menu's +* "mouseout" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOutEvent: false, + + +/** +* @property _aGroupTitleElements +* @description Array of HTML element used to title groups of menu items. +* @default [] +* @private +* @type Array +*/ +_aGroupTitleElements: null, + + +/** +* @property _aItemGroups +* @description Multi-dimensional Array representing the menu items as they +* are grouped in the menu. +* @default [] +* @private +* @type Array +*/ +_aItemGroups: null, + + +/** +* @property _aListElements +* @description Array of <code><ul></code> elements, each of which is +* the parent node for each item's <code><li></code> element. +* @default [] +* @private +* @type Array +*/ +_aListElements: null, + + +/** +* @property _nCurrentMouseX +* @description The current x coordinate of the mouse inside the area of +* the menu. +* @default 0 +* @private +* @type Number +*/ +_nCurrentMouseX: 0, + + +/** +* @property _nMaxHeight +* @description The original value of the "maxheight" configuration property +* as set by the user. +* @default -1 +* @private +* @type Number +*/ +_nMaxHeight: -1, + + +/** +* @property _bStopMouseEventHandlers +* @description Stops "mouseover," "mouseout," and "mousemove" event handlers +* from executing. +* @default false +* @private +* @type Boolean +*/ +_bStopMouseEventHandlers: false, + + +/** +* @property _sClassName +* @description The current value of the "classname" configuration attribute. +* @default null +* @private +* @type String +*/ +_sClassName: null, + + + +// Public properties + + +/** +* @property lazyLoad +* @description Boolean indicating if the menu's "lazy load" feature is +* enabled. If set to "true," initialization and rendering of the menu's +* items will be deferred until the first time it is made visible. This +* property should be set via the constructor using the configuration +* object literal. +* @default false +* @type Boolean +*/ +lazyLoad: false, + + +/** +* @property itemData +* @description Array of items to be added to the menu. The array can contain +* strings representing the text for each item to be created, object literals +* representing the menu item configuration properties, or MenuItem instances. +* This property should be set via the constructor using the configuration +* object literal. +* @default null +* @type Array +*/ +itemData: null, + + +/** +* @property activeItem +* @description Object reference to the item in the menu that has focus. +* @default null +* @type YAHOO.widget.MenuItem +*/ +activeItem: null, + + +/** +* @property parent +* @description Object reference to the menu's parent menu or menu item. +* This property can be set via the constructor using the configuration +* object literal. +* @default null +* @type YAHOO.widget.MenuItem +*/ +parent: null, + + +/** +* @property srcElement +* @description Object reference to the HTML element (either +* <code><select></code> or <code><div></code>) used to +* create the menu. +* @default null +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a +* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html. +* html#ID-22445964">HTMLDivElement</a> +*/ +srcElement: null, + + + +// Events + + +/** +* @event mouseOverEvent +* @description Fires when the mouse has entered the menu. Passes back +* the DOM Event object as an argument. +*/ +mouseOverEvent: null, + + +/** +* @event mouseOutEvent +* @description Fires when the mouse has left the menu. Passes back the DOM +* Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseOutEvent: null, + + +/** +* @event mouseDownEvent +* @description Fires when the user mouses down on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseDownEvent: null, + + +/** +* @event mouseUpEvent +* @description Fires when the user releases a mouse button while the mouse is +* over the menu. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseUpEvent: null, + + +/** +* @event clickEvent +* @description Fires when the user clicks the on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +clickEvent: null, + + +/** +* @event keyPressEvent +* @description Fires when the user presses an alphanumeric key when one of the +* menu's items has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyPressEvent: null, + + +/** +* @event keyDownEvent +* @description Fires when the user presses a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyDownEvent: null, + + +/** +* @event keyUpEvent +* @description Fires when the user releases a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyUpEvent: null, + + +/** +* @event itemAddedEvent +* @description Fires when an item is added to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemAddedEvent: null, + + +/** +* @event itemRemovedEvent +* @description Fires when an item is removed to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemRemovedEvent: null, + + +/** +* @method init +* @description The Menu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source +* for the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement +* Object specifying the <code><select></code> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + this._aItemGroups = []; + this._aListElements = []; + this._aGroupTitleElements = []; + + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuItem; + + } + + + var oElement; + + if(typeof p_oElement == "string") { + + oElement = document.getElementById(p_oElement); + + } + else if(p_oElement.tagName) { + + oElement = p_oElement; + + } + + + if(oElement && oElement.tagName) { + + switch(oElement.tagName.toUpperCase()) { + + case "DIV": + + this.srcElement = oElement; + + if(!oElement.id) { + + oElement.setAttribute("id", Dom.generateId()); + + } + + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + this.logger.log("Source element: " + this.srcElement.tagName); + + break; + + case "SELECT": + + this.srcElement = oElement; + + + /* + The source element is not something that we can use + outright, so we need to create a new Overlay + + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, Dom.generateId()); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + this.logger.log("Source element: " + this.srcElement.tagName); + + break; + + } + + } + else { + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, p_oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + this.logger.log("No source element found. " + + "Created element with id: " + this.id); + + } + + + if(this.element) { + + var oEl = this.element; + + Dom.addClass(oEl, this.CSS_CLASS_NAME); + + + // Subscribe to Custom Events + + this.initEvent.subscribe(this._onInit, this, true); + this.beforeRenderEvent.subscribe(this._onBeforeRender, this, true); + this.renderEvent.subscribe(this._setWidth, this, true); + this.beforeShowEvent.subscribe(this._onBeforeShow, this, true); + this.showEvent.subscribe(this._onShow, this, true); + this.beforeHideEvent.subscribe(this._onBeforeHide, this, true); + this.hideEvent.subscribe(this._onHide, this, true); + this.mouseOverEvent.subscribe(this._onMouseOver, this, true); + this.mouseOutEvent.subscribe(this._onMouseOut, this, true); + this.clickEvent.subscribe(this._onClick, this, true); + this.keyDownEvent.subscribe(this._onKeyDown, this, true); + this.keyPressEvent.subscribe(this._onKeyPress, this, true); + + YAHOO.widget.Module.textResizeEvent.subscribe( + this._onTextResize, + this, + true + ); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + + // Register the Menu instance with the MenuManager + + YAHOO.widget.MenuManager.addMenu(this); + + + this.initEvent.fire(YAHOO.widget.Menu); + + } + +}, + + + +// Private methods + + +/** +* @method _initSubTree +* @description Iterates the childNodes of the source element to find nodes +* used to instantiate menu and menu items. +* @private +*/ +_initSubTree: function() { + + var oNode; + + if(this.srcElement.tagName.toUpperCase() == "DIV") { + + /* + Populate the collection of item groups and item + group titles + */ + + oNode = this.body.firstChild; + + var nGroup = 0, + sGroupTitleTagName = this.GROUP_TITLE_TAG_NAME.toUpperCase(); + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case sGroupTitleTagName: + + this._aGroupTitleElements[nGroup] = oNode; + + break; + + case "UL": + + this._aListElements[nGroup] = oNode; + this._aItemGroups[nGroup] = []; + nGroup++; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + + /* + Apply the "first-of-type" class to the first UL to mimic + the "first-of-type" CSS3 psuedo class. + */ + + if(this._aListElements[0]) { + + Dom.addClass(this._aListElements[0], "first-of-type"); + + } + + } + + + oNode = null; + + this.logger.log("Searching DOM for items to initialize."); + + if(this.srcElement.tagName) { + + var sSrcElementTagName = this.srcElement.tagName.toUpperCase(); + + + switch(sSrcElementTagName) { + + case "DIV": + + if(this._aListElements.length > 0) { + + this.logger.log("Found " + + this._aListElements.length + + " item groups to initialize."); + + var i = this._aListElements.length - 1; + + do { + + oNode = this._aListElements[i].firstChild; + + this.logger.log("Scanning " + + this._aListElements[i].childNodes.length + + " child nodes for items to initialize."); + + do { + + if( + oNode && + oNode.tagName && + oNode.tagName.toUpperCase() == "LI" + ) { + + this.logger.log("Initializing " + + oNode.tagName + " node."); + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ), + i + ); + + } + + } + while((oNode = oNode.nextSibling)); + + } + while(i--); + + } + + break; + + case "SELECT": + + this.logger.log("Scanning " + + this.srcElement.childNodes.length + + " child nodes for items to initialize."); + + oNode = this.srcElement.firstChild; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "OPTGROUP": + case "OPTION": + + this.logger.log("Initializing " + + oNode.tagName + " node."); + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ) + ); + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + break; + + } + + } + +}, + + +/** +* @method _getFirstEnabledItem +* @description Returns the first enabled item in the menu. +* @return {YAHOO.widget.MenuItem} +* @private +*/ +_getFirstEnabledItem: function() { + + var aItems = this.getItems(), + nItems = aItems.length, + oItem; + + for(var i=0; i<nItems; i++) { + + oItem = aItems[i]; + + if( + oItem && + !oItem.cfg.getProperty("disabled") && + oItem.element.style.display != "none" + ) { + + return oItem; + + } + + } + +}, + + +/** +* @method _checkPosition +* @description Checks to make sure that the value of the "position" property +* is one of the supported strings. Returns true if the position is supported. +* @private +* @param {Object} p_sPosition String specifying the position of the menu. +* @return {Boolean} +*/ +_checkPosition: function(p_sPosition) { + + if(typeof p_sPosition == "string") { + + var sPosition = p_sPosition.toLowerCase(); + + return ("dynamic,static".indexOf(sPosition) != -1); + + } + +}, + + +/** +* @method _addItemToGroup +* @description Adds a menu item to a group. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the +* item belongs. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nItemIndex Optional. Number indicating the index at +* which the menu item should be added. +* @return {YAHOO.widget.MenuItem} +*/ +_addItemToGroup: function(p_nGroupIndex, p_oItem, p_nItemIndex) { + + var oItem; + + if(p_oItem instanceof this.ITEM_TYPE) { + + oItem = p_oItem; + oItem.parent = this; + + } + else if(typeof p_oItem == "string") { + + oItem = new this.ITEM_TYPE(p_oItem, { parent: this }); + + } + else if(typeof p_oItem == "object") { + + p_oItem.parent = this; + + oItem = new this.ITEM_TYPE(p_oItem.text, p_oItem); + + } + + + if(oItem) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + aGroup = this._getItemGroup(nGroupIndex), + oGroupItem; + + + if(!aGroup) { + + aGroup = this._createItemGroup(nGroupIndex); + + } + + + if(typeof p_nItemIndex == "number") { + + var bAppend = (p_nItemIndex >= aGroup.length); + + + if(aGroup[p_nItemIndex]) { + + aGroup.splice(p_nItemIndex, 0, oItem); + + } + else { + + aGroup[p_nItemIndex] = oItem; + + } + + + oGroupItem = aGroup[p_nItemIndex]; + + if(oGroupItem) { + + if( + bAppend && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + else { + + function getNextItemSibling(p_aArray, p_nStartIndex) { + + return ( + p_aArray[p_nStartIndex] || + getNextItemSibling( + p_aArray, + (p_nStartIndex+1) + ) + ); + + } + + + var oNextItemSibling = + getNextItemSibling(aGroup, (p_nItemIndex+1)); + + if( + oNextItemSibling && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].insertBefore( + oGroupItem.element, + oNextItemSibling.element + ); + + } + + } + + + oGroupItem.parent = this; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + this._updateItemProperties(nGroupIndex); + + this.logger.log("Item inserted." + + " Text: " + oGroupItem.cfg.getProperty("text") + ", " + + " Index: " + oGroupItem.index + ", " + + " Group Index: " + oGroupItem.groupIndex); + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + else { + + var nItemIndex = aGroup.length; + + aGroup[nItemIndex] = oItem; + + oGroupItem = aGroup[nItemIndex]; + + + if(oGroupItem) { + + if( + !Dom.isAncestor( + this._aListElements[nGroupIndex], + oGroupItem.element + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + + oGroupItem.element.setAttribute("groupindex", nGroupIndex); + oGroupItem.element.setAttribute("index", nItemIndex); + + oGroupItem.parent = this; + + oGroupItem.index = nItemIndex; + oGroupItem.groupIndex = nGroupIndex; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + if(nItemIndex === 0) { + + Dom.addClass(oGroupItem.element, "first-of-type"); + + } + + this.logger.log("Item added." + + " Text: " + oGroupItem.cfg.getProperty("text") + ", " + + " Index: " + oGroupItem.index + ", " + + " Group Index: " + oGroupItem.groupIndex); + + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + + } + +}, + + +/** +* @method _removeItemFromGroupByIndex +* @description Removes a menu item from a group by index. Returns the menu +* item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the menu +* item belongs. +* @param {Number} p_nItemIndex Number indicating the index of the menu item +* to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByIndex: function(p_nGroupIndex, p_nItemIndex) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + aGroup = this._getItemGroup(nGroupIndex); + + if(aGroup) { + + var aArray = aGroup.splice(p_nItemIndex, 1), + oItem = aArray[0]; + + if(oItem) { + + // Update the index and className properties of each member + + this._updateItemProperties(nGroupIndex); + + if(aGroup.length === 0) { + + // Remove the UL + + var oUL = this._aListElements[nGroupIndex]; + + if(this.body && oUL) { + + this.body.removeChild(oUL); + + } + + // Remove the group from the array of items + + this._aItemGroups.splice(nGroupIndex, 1); + + + // Remove the UL from the array of ULs + + this._aListElements.splice(nGroupIndex, 1); + + + /* + Assign the "first-of-type" class to the new first UL + in the collection + */ + + oUL = this._aListElements[0]; + + if(oUL) { + + Dom.addClass(oUL, "first-of-type"); + + } + + } + + + this.itemRemovedEvent.fire(oItem); + + + // Return a reference to the item that was removed + + return oItem; + + } + + } + +}, + + +/** +* @method _removeItemFromGroupByValue +* @description Removes a menu item from a group by reference. Returns the +* menu item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the +* menu item belongs. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByValue: function(p_nGroupIndex, p_oItem) { + + var aGroup = this._getItemGroup(p_nGroupIndex); + + if(aGroup) { + + var nItems = aGroup.length, + nItemIndex = -1; + + if(nItems > 0) { + + var i = nItems-1; + + do { + + if(aGroup[i] == p_oItem) { + + nItemIndex = i; + break; + + } + + } + while(i--); + + if(nItemIndex > -1) { + + return this._removeItemFromGroupByIndex( + p_nGroupIndex, + nItemIndex + ); + + } + + } + + } + +}, + + +/** +* @method _updateItemProperties +* @description Updates the "index," "groupindex," and "className" properties +* of the menu items in the specified group. +* @private +* @param {Number} p_nGroupIndex Number indicating the group of items to update. +*/ +_updateItemProperties: function(p_nGroupIndex) { + + var aGroup = this._getItemGroup(p_nGroupIndex), + nItems = aGroup.length; + + if(nItems > 0) { + + var i = nItems - 1, + oItem, + oLI; + + // Update the index and className properties of each member + + do { + + oItem = aGroup[i]; + + if(oItem) { + + oLI = oItem.element; + + oItem.index = i; + oItem.groupIndex = p_nGroupIndex; + + oLI.setAttribute("groupindex", p_nGroupIndex); + oLI.setAttribute("index", i); + + Dom.removeClass(oLI, "first-of-type"); + + } + + } + while(i--); + + + if(oLI) { + + Dom.addClass(oLI, "first-of-type"); + + } + + } + +}, + + +/** +* @method _createItemGroup +* @description Creates a new menu item group (array) and its associated +* <code><ul></code> element. Returns an aray of menu item groups. +* @private +* @param {Number} p_nIndex Number indicating the group to create. +* @return {Array} +*/ +_createItemGroup: function(p_nIndex) { + + if(!this._aItemGroups[p_nIndex]) { + + this._aItemGroups[p_nIndex] = []; + + var oUL = document.createElement("ul"); + + this._aListElements[p_nIndex] = oUL; + + return this._aItemGroups[p_nIndex]; + + } + +}, + + +/** +* @method _getItemGroup +* @description Returns the menu item group at the specified index. +* @private +* @param {Number} p_nIndex Number indicating the index of the menu item group +* to be retrieved. +* @return {Array} +*/ +_getItemGroup: function(p_nIndex) { + + var nIndex = ((typeof p_nIndex == "number") ? p_nIndex : 0); + + return this._aItemGroups[nIndex]; + +}, + + +/** +* @method _configureSubmenu +* @description Subscribes the menu item's submenu to its parent menu's events. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance with the submenu to be configured. +*/ +_configureSubmenu: function(p_oItem) { + + var oSubmenu = p_oItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + /* + Listen for configuration changes to the parent menu + so they they can be applied to the submenu. + */ + + this.cfg.configChangedEvent.subscribe( + this._onParentMenuConfigChange, + oSubmenu, + true + ); + + this.renderEvent.subscribe( + this._onParentMenuRender, + oSubmenu, + true + ); + + oSubmenu.beforeShowEvent.subscribe( + this._onSubmenuBeforeShow, + oSubmenu, + true + ); + + oSubmenu.showEvent.subscribe( + this._onSubmenuShow, + oSubmenu, + true + ); + + oSubmenu.hideEvent.subscribe( + this._onSubmenuHide, + oSubmenu, + true + ); + + } + +}, + + +/** +* @method _subscribeToItemEvents +* @description Subscribes a menu to a menu item's event. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance whose events should be subscribed to. +*/ +_subscribeToItemEvents: function(p_oItem) { + + p_oItem.focusEvent.subscribe(this._onMenuItemFocus, p_oItem, this); + + p_oItem.blurEvent.subscribe(this._onMenuItemBlur, this, true); + + p_oItem.cfg.configChangedEvent.subscribe( + this._onMenuItemConfigChange, + p_oItem, + this + ); + +}, + + +/** +* @method _getOffsetWidth +* @description Returns the offset width of the menu's +* <code><div></code> element. +* @private +*/ +_getOffsetWidth: function() { + + var oClone = this.element.cloneNode(true); + + Dom.setStyle(oClone, "width", ""); + + document.body.appendChild(oClone); + + var sWidth = oClone.offsetWidth; + + document.body.removeChild(oClone); + + return sWidth; + +}, + + +/** +* @method _setWidth +* @description Sets the width of the menu's root <code><div></code> +* element to its offsetWidth. +* @private +*/ +_setWidth: function() { + + if(this.cfg.getProperty("position") == "dynamic") { + + var sWidth; + + if(this.element.parentNode.tagName.toUpperCase() == "BODY") { + + if(this.browser == "opera") { + + sWidth = this._getOffsetWidth(); + + } + else { + + Dom.setStyle(this.element, "width", "auto"); + + sWidth = this.element.offsetWidth; + + } + + } + else { + + sWidth = this._getOffsetWidth(); + + } + + this.cfg.setProperty("width", (sWidth + "px")); + + } + +}, + + +/** +* @method _cancelHideDelay +* @description Cancels the call to "hideMenu." +* @private +*/ +_cancelHideDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nHideDelayId) { + + window.clearTimeout(oRoot._nHideDelayId); + + } + +}, + + +/** +* @method _execHideDelay +* @description Hides the menu after the number of milliseconds specified by +* the "hidedelay" configuration property. +* @private +*/ +_execHideDelay: function() { + + this._cancelHideDelay(); + + var oRoot = this.getRoot(), + me = this; + + function hideMenu() { + + if(oRoot.activeItem) { + + oRoot.clearActiveItem(); + + } + + if(oRoot == me && me.cfg.getProperty("position") == "dynamic") { + + me.hide(); + + } + + } + + + oRoot._nHideDelayId = + window.setTimeout(hideMenu, oRoot.cfg.getProperty("hidedelay")); + +}, + + +/** +* @method _cancelShowDelay +* @description Cancels the call to the "showMenu." +* @private +*/ +_cancelShowDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nShowDelayId) { + + window.clearTimeout(oRoot._nShowDelayId); + + } + +}, + + +/** +* @method _execShowDelay +* @description Shows the menu after the number of milliseconds specified by +* the "showdelay" configuration property have ellapsed. +* @private +* @param {YAHOO.widget.Menu} p_oMenu Object specifying the menu that should +* be made visible. +*/ +_execShowDelay: function(p_oMenu) { + + var oRoot = this.getRoot(); + + function showMenu() { + + if(p_oMenu.parent.cfg.getProperty("selected")) { + + p_oMenu.show(); + + } + + } + + + oRoot._nShowDelayId = + window.setTimeout(showMenu, oRoot.cfg.getProperty("showdelay")); + +}, + + +/** +* @method _execSubmenuHideDelay +* @description Hides a submenu after the number of milliseconds specified by +* the "submenuhidedelay" configuration property have ellapsed. +* @private +* @param {YAHOO.widget.Menu} p_oSubmenu Object specifying the submenu that +* should be hidden. +* @param {Number} p_nMouseX The x coordinate of the mouse when it left +* the specified submenu's parent menu item. +* @param {Number} p_nHideDelay The number of milliseconds that should ellapse +* before the submenu is hidden. +*/ +_execSubmenuHideDelay: function(p_oSubmenu, p_nMouseX, p_nHideDelay) { + + var me = this; + + p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () { + + if(me._nCurrentMouseX > (p_nMouseX + 10)) { + + p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () { + + p_oSubmenu.hide(); + + }, p_nHideDelay); + + } + else { + + p_oSubmenu.hide(); + + } + + }, 50); + +}, + + + +// Protected methods + + +/** +* @method _disableScrollHeader +* @description Disables the header used for scrolling the body of the menu. +* @protected +*/ +_disableScrollHeader: function() { + + if(!this._bHeaderDisabled) { + + Dom.addClass(this.header, "topscrollbar_disabled"); + this._bHeaderDisabled = true; + + } + +}, + + +/** +* @method _disableScrollFooter +* @description Disables the footer used for scrolling the body of the menu. +* @protected +*/ +_disableScrollFooter: function() { + + if(!this._bFooterDisabled) { + + Dom.addClass(this.footer, "bottomscrollbar_disabled"); + this._bFooterDisabled = true; + + } + +}, + + +/** +* @method _enableScrollHeader +* @description Enables the header used for scrolling the body of the menu. +* @protected +*/ +_enableScrollHeader: function() { + + if(this._bHeaderDisabled) { + + Dom.removeClass(this.header, "topscrollbar_disabled"); + this._bHeaderDisabled = false; + + } + +}, + + +/** +* @method _enableScrollFooter +* @description Enables the footer used for scrolling the body of the menu. +* @protected +*/ +_enableScrollFooter: function() { + + if(this._bFooterDisabled) { + + Dom.removeClass(this.footer, "bottomscrollbar_disabled"); + this._bFooterDisabled = false; + + } + +}, + + + +/** +* @method _onMouseOver +* @description "mouseover" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOver: function(p_sType, p_aArgs, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oTarget = Event.getTarget(oEvent); + + + if( + !this._bHandledMouseOverEvent && + (oTarget == this.element || Dom.isAncestor(this.element, oTarget)) + ) { + + // Menu mouseover logic + + this._nCurrentMouseX = 0; + + Event.addListener( + this.element, + "mousemove", + this._onMouseMove, + this, + true + ); + + + this.clearActiveItem(); + + + if(this.parent && this._nSubmenuHideDelayId) { + + window.clearTimeout(this._nSubmenuHideDelayId); + + this.parent.cfg.setProperty("selected", true); + + var oParentMenu = this.parent.parent; + + oParentMenu.activeItem = this.parent; + + oParentMenu._bHandledMouseOutEvent = true; + oParentMenu._bHandledMouseOverEvent = false; + + } + + + this._bHandledMouseOverEvent = true; + this._bHandledMouseOutEvent = false; + + } + + + if( + oItem && !oItem.handledMouseOverEvent && + !oItem.cfg.getProperty("disabled") && + (oTarget == oItem.element || Dom.isAncestor(oItem.element, oTarget)) + ) { + + // Menu Item mouseover logic + + var nShowDelay = this.cfg.getProperty("showdelay"), + bShowDelay = (nShowDelay > 0); + + + if(bShowDelay) { + + this._cancelShowDelay(); + + } + + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + oActiveItem.cfg.setProperty("selected", false); + + } + + + var oItemCfg = oItem.cfg; + + // Select and focus the current menu item + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + + if(this.cfg.getProperty("autosubmenudisplay")) { + + // Show the submenu this menu item + + var oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(bShowDelay) { + + this._execShowDelay(oSubmenu); + + } + else { + + oSubmenu.show(); + + } + + } + + } + + oItem.handledMouseOverEvent = true; + oItem.handledMouseOutEvent = false; + + } + +}, + + +/** +* @method _onMouseOut +* @description "mouseout" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOut: function(p_sType, p_aArgs, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oRelatedTarget = Event.getRelatedTarget(oEvent), + bMovingToSubmenu = false; + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oSubmenu = oItemCfg.getProperty("submenu"); + + + if( + oSubmenu && + ( + oRelatedTarget == oSubmenu.element || + Dom.isAncestor(oSubmenu.element, oRelatedTarget) + ) + ) { + + bMovingToSubmenu = true; + + } + + + if( + !oItem.handledMouseOutEvent && + ( + ( + oRelatedTarget != oItem.element && + !Dom.isAncestor(oItem.element, oRelatedTarget) + ) || bMovingToSubmenu + ) + ) { + + // Menu Item mouseout logic + + if(!bMovingToSubmenu) { + + oItem.cfg.setProperty("selected", false); + + + if(oSubmenu) { + + var nSubmenuHideDelay = + this.cfg.getProperty("submenuhidedelay"), + + nShowDelay = this.cfg.getProperty("showdelay"); + + if( + !(this instanceof YAHOO.widget.MenuBar) && + nSubmenuHideDelay > 0 && + nShowDelay >= nSubmenuHideDelay + ) { + + this._execSubmenuHideDelay( + oSubmenu, + Event.getPageX(oEvent), + nSubmenuHideDelay + ); + + } + else { + + oSubmenu.hide(); + + } + + } + + } + + + oItem.handledMouseOutEvent = true; + oItem.handledMouseOverEvent = false; + + } + + } + + + if( + !this._bHandledMouseOutEvent && + ( + ( + oRelatedTarget != this.element && + !Dom.isAncestor(this.element, oRelatedTarget) + ) + || bMovingToSubmenu + ) + ) { + + // Menu mouseout logic + + Event.removeListener(this.element, "mousemove", this._onMouseMove); + + this._nCurrentMouseX = Event.getPageX(oEvent); + + this._bHandledMouseOutEvent = true; + this._bHandledMouseOverEvent = false; + + } + +}, + + +/** +* @method _onMouseMove +* @description "click" event handler for the menu. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseMove: function(p_oEvent, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + this._nCurrentMouseX = Event.getPageX(p_oEvent); + +}, + + +/** +* @method _onClick +* @description "click" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oTarget = Event.getTarget(oEvent); + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oSubmenu = oItemCfg.getProperty("submenu"); + + + /* + ACCESSIBILITY FEATURE FOR SCREEN READERS: + Expand/collapse the submenu when the user clicks + on the submenu indicator image. + */ + + if(oTarget == oItem.submenuIndicator && oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + oSubmenu.parent.focus(); + + } + else { + + this.clearActiveItem(); + + this.activeItem = oItem; + + oItem.cfg.setProperty("selected", true); + + oSubmenu.show(); + + } + + } + else { + + var sURL = oItemCfg.getProperty("url"), + bCurrentPageURL = (sURL.substr((sURL.length-1),1) == "#"), + sTarget = oItemCfg.getProperty("target"), + bHasTarget = (sTarget && sTarget.length > 0); + + /* + Prevent the browser from following links + equal to "#" + */ + + if( + oTarget.tagName.toUpperCase() == "A" && + bCurrentPageURL && !bHasTarget + ) { + + Event.preventDefault(oEvent); + + } + + if( + oTarget.tagName.toUpperCase() != "A" && + !bCurrentPageURL && !bHasTarget + ) { + + /* + Follow the URL of the item regardless of + whether or not the user clicked specifically + on the anchor element. + */ + + document.location = sURL; + + } + + + /* + If the item doesn't navigate to a URL and it doesn't have + a submenu, then collapse the menu tree. + */ + + if(bCurrentPageURL && !oSubmenu) { + + var oRoot = this.getRoot(); + + if(oRoot.cfg.getProperty("position") == "static") { + + oRoot.clearActiveItem(); + + } + else if(oRoot.cfg.getProperty("clicktohide")) { + + oRoot.hide(); + + } + + } + + } + + } + +}, + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + me = this, + oSubmenu; + + + /* + This function is called to prevent a bug in Firefox. In Firefox, + moving a DOM element into a stationary mouse pointer will cause the + browser to fire mouse events. This can result in the menu mouse + event handlers being called uncessarily, especially when menus are + moved into a stationary mouse pointer as a result of a + key event handler. + */ + function stopMouseEventHandlers() { + + me._bStopMouseEventHandlers = true; + + window.setTimeout(function() { + + me._bStopMouseEventHandlers = false; + + }, 10); + + } + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oParentItem = this.parent, + oRoot, + oNextItem; + + + switch(oEvent.keyCode) { + + case 38: // Up arrow + case 40: // Down arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + oNextItem = (oEvent.keyCode == 38) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + oNextItem.focus(); + + + if(this.cfg.getProperty("maxheight") > 0) { + + var oBody = this.body; + + oBody.scrollTop = + + ( + oNextItem.element.offsetTop + + oNextItem.element.offsetHeight + ) - oBody.offsetHeight; + + + var nScrollTop = oBody.scrollTop, + nScrollTarget = + oBody.scrollHeight - oBody.offsetHeight; + + if(nScrollTop === 0) { + + this._disableScrollHeader(); + this._enableScrollFooter(); + + } + else if(nScrollTop == nScrollTarget) { + + this._enableScrollHeader(); + this._disableScrollFooter(); + + } + else { + + this._enableScrollHeader(); + this._enableScrollFooter(); + + } + + } + + } + + } + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + + case 39: // Right arrow + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(!oItemCfg.getProperty("selected")) { + + oItemCfg.setProperty("selected", true); + + } + + oSubmenu.show(); + + oSubmenu.setInitialSelection(); + + } + else { + + oRoot = this.getRoot(); + + if(oRoot instanceof YAHOO.widget.MenuBar) { + + oNextItem = oRoot.activeItem.getNextEnabledSibling(); + + if(oNextItem) { + + oRoot.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + + } + + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + + case 37: // Left arrow + + if(oParentItem) { + + var oParentMenu = oParentItem.parent; + + if(oParentMenu instanceof YAHOO.widget.MenuBar) { + + oNextItem = + oParentMenu.activeItem.getPreviousEnabledSibling(); + + if(oNextItem) { + + oParentMenu.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + else { + + this.hide(); + + oParentItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + } + + + } + + + if(oEvent.keyCode == 27) { // Esc key + + if(this.cfg.getProperty("position") == "dynamic") { + + this.hide(); + + if(this.parent) { + + this.parent.focus(); + + } + + } + else if(this.activeItem) { + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + } + + + Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onKeyPress +* @description "keypress" event handler for a Menu instance. +* @protected +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event +* was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance that fired the event. +*/ +_onKeyPress: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + + + if(oEvent.keyCode == 40 || oEvent.keyCode == 38) { + + YAHOO.util.Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onTextResize +* @description "textresize" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onTextResize: function(p_sType, p_aArgs, p_oMenu) { + + if(this.browser == "gecko" && !this._handleResize) { + + this._handleResize = true; + return; + + } + + + var oConfig = this.cfg; + + if(oConfig.getProperty("position") == "dynamic") { + + oConfig.setProperty("width", (this._getOffsetWidth() + "px")); + + } + +}, + + +/** +* @method _onScrollTargetMouseOver +* @description "mouseover" event handler for the menu's "header" and "footer" +* elements. Used to scroll the body of the menu up and down when the +* menu's "maxheight" configuration property is set to a value greater than 0. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onScrollTargetMouseOver: function(p_oEvent, p_oMenu) { + + this._cancelHideDelay(); + + var oTarget = Event.getTarget(p_oEvent), + oBody = this.body, + me = this, + nScrollTarget, + fnScrollFunction; + + + function scrollBodyDown() { + + var nScrollTop = oBody.scrollTop; + + + if(nScrollTop < nScrollTarget) { + + oBody.scrollTop = (nScrollTop + 1); + + me._enableScrollHeader(); + + } + else { + + oBody.scrollTop = nScrollTarget; + + window.clearInterval(me._nBodyScrollId); + + me._disableScrollFooter(); + + } + + } + + + function scrollBodyUp() { + + var nScrollTop = oBody.scrollTop; + + + if(nScrollTop > 0) { + + oBody.scrollTop = (nScrollTop - 1); + + me._enableScrollFooter(); + + } + else { + + oBody.scrollTop = 0; + + window.clearInterval(me._nBodyScrollId); + + me._disableScrollHeader(); + + } + + } + + + if(Dom.hasClass(oTarget, "hd")) { + + fnScrollFunction = scrollBodyUp; + + } + else { + + nScrollTarget = oBody.scrollHeight - oBody.offsetHeight; + + fnScrollFunction = scrollBodyDown; + + } + + + this._nBodyScrollId = window.setInterval(fnScrollFunction, 10); + +}, + + +/** +* @method _onScrollTargetMouseOut +* @description "mouseout" event handler for the menu's "header" and "footer" +* elements. Used to stop scrolling the body of the menu up and down when the +* menu's "maxheight" configuration property is set to a value greater than 0. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onScrollTargetMouseOut: function(p_oEvent, p_oMenu) { + + window.clearInterval(this._nBodyScrollId); + + this._cancelHideDelay(); + +}, + + + +// Private methods + + +/** +* @method _onInit +* @description "init" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onInit: function(p_sType, p_aArgs, p_oMenu) { + + if( + ( + (this.parent && !this.lazyLoad) || + (!this.parent && this.cfg.getProperty("position") == "static") || + ( + !this.parent && + !this.lazyLoad && + this.cfg.getProperty("position") == "dynamic" + ) + ) && + this.getItemGroups().length === 0 + ) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + + if(this.itemData) { + + this.addItems(this.itemData); + + } + + } + else if(this.lazyLoad) { + + this.cfg.fireQueue(); + + } + +}, + + +/** +* @method _onBeforeRender +* @description "beforerender" event handler for the menu. Appends all of the +* <code><ul></code>, <code><li></code> and their accompanying +* title elements to the body element of the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeRender: function(p_sType, p_aArgs, p_oMenu) { + + var oConfig = this.cfg, + oEl = this.element, + nListElements = this._aListElements.length; + + + if(nListElements > 0) { + + var i = 0, + bFirstList = true, + oUL, + oGroupTitle; + + + do { + + oUL = this._aListElements[i]; + + if(oUL) { + + if(bFirstList) { + + Dom.addClass(oUL, "first-of-type"); + bFirstList = false; + + } + + + if(!Dom.isAncestor(oEl, oUL)) { + + this.appendToBody(oUL); + + } + + + oGroupTitle = this._aGroupTitleElements[i]; + + if(oGroupTitle) { + + if(!Dom.isAncestor(oEl, oGroupTitle)) { + + oUL.parentNode.insertBefore(oGroupTitle, oUL); + + } + + + Dom.addClass(oUL, "hastitle"); + + } + + } + + i++; + + } + while(i < nListElements); + + } + +}, + + +/** +* @method _onBeforeShow +* @description "beforeshow" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeShow: function(p_sType, p_aArgs, p_oMenu) { + + if(this.lazyLoad && this.getItemGroups().length === 0) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + + if(this.itemData) { + + if( + this.parent && this.parent.parent && + this.parent.parent.srcElement && + this.parent.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + var nOptions = this.itemData.length; + + for(var n=0; n<nOptions; n++) { + + if(this.itemData[n].tagName) { + + this.addItem((new this.ITEM_TYPE(this.itemData[n]))); + + } + + } + + } + else { + + this.addItems(this.itemData); + + } + + } + + + var oSrcElement = this.srcElement; + + if(oSrcElement) { + + if(oSrcElement.tagName.toUpperCase() == "SELECT") { + + if(Dom.inDocument(oSrcElement)) { + + this.render(oSrcElement.parentNode); + + } + else { + + this.render(this.cfg.getProperty("container")); + + } + + } + else { + + this.render(); + + } + + } + else { + + if(this.parent) { + + this.render(this.parent.element); + + } + else { + + this.render(this.cfg.getProperty("container")); + + } + + } + + } + + + + if(this.cfg.getProperty("position") == "dynamic") { + + var nViewportHeight = Dom.getViewportHeight(); + + if(this.element.offsetHeight >= nViewportHeight) { + + var nMaxHeight = this.cfg.getProperty("maxheight"); + + /* + Cache the original value for the "maxheight" configuration + property so that we can set it back when the menu is hidden. + */ + + this._nMaxHeight = nMaxHeight; + + this.cfg.setProperty("maxheight", (nViewportHeight - 20)); + + } + + + if(this.cfg.getProperty("maxheight") > 0) { + + var oBody = this.body; + + if(oBody.scrollTop > 0) { + + oBody.scrollTop = 0; + + } + + this._disableScrollHeader(); + this._enableScrollFooter(); + + } + + } + + +}, + + +/** +* @method _onShow +* @description "show" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onShow: function(p_sType, p_aArgs, p_oMenu) { + + this.setInitialFocus(); + + var oParent = this.parent; + + if(oParent) { + + var oParentMenu = oParent.parent, + aParentAlignment = oParentMenu.cfg.getProperty("submenualignment"), + aAlignment = this.cfg.getProperty("submenualignment"); + + + if( + (aParentAlignment[0] != aAlignment[0]) && + (aParentAlignment[1] != aAlignment[1]) + ) { + + this.cfg.setProperty( + "submenualignment", + [ aParentAlignment[0], aParentAlignment[1] ] + ); + + } + + + if( + !oParentMenu.cfg.getProperty("autosubmenudisplay") && + oParentMenu.cfg.getProperty("position") == "static" + ) { + + oParentMenu.cfg.setProperty("autosubmenudisplay", true); + + + function disableAutoSubmenuDisplay(p_oEvent) { + + if( + p_oEvent.type == "mousedown" || + (p_oEvent.type == "keydown" && p_oEvent.keyCode == 27) + ) { + + /* + Set the "autosubmenudisplay" to "false" if the user + clicks outside the menu bar. + */ + + var oTarget = Event.getTarget(p_oEvent); + + if( + oTarget != oParentMenu.element || + !YAHOO.util.Dom.isAncestor(oParentMenu.element, oTarget) + ) { + + oParentMenu.cfg.setProperty( + "autosubmenudisplay", + false + ); + + Event.removeListener( + document, + "mousedown", + disableAutoSubmenuDisplay + ); + + Event.removeListener( + document, + "keydown", + disableAutoSubmenuDisplay + ); + + } + + } + + } + + Event.addListener(document, "mousedown", disableAutoSubmenuDisplay); + Event.addListener(document, "keydown", disableAutoSubmenuDisplay); + + } + + } + else if(!oParent && this.lazyLoad) { + + this.cfg.refireEvent("xy"); + + } + +}, + + +/** +* @method _onBeforeHide +* @description "beforehide" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onBeforeHide: function(p_sType, p_aArgs, p_oMenu) { + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + var oConfig = oActiveItem.cfg; + + oConfig.setProperty("selected", false); + + var oSubmenu = oConfig.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.hide(); + + } + + oActiveItem.blur(); + + } + +}, + + +/** +* @method _onHide +* @description "hide" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onHide: function(p_sType, p_aArgs, p_oMenu) { + + if(this._nMaxHeight != -1) { + + this.cfg.setProperty("maxheight", this._nMaxHeight); + + this._nMaxHeight = -1; + + } + +}, + + +/** +* @method _onParentMenuConfigChange +* @description "configchange" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onParentMenuConfigChange: function(p_sType, p_aArgs, p_oSubmenu) { + + var sPropertyName = p_aArgs[0][0], + oPropertyValue = p_aArgs[0][1]; + + switch(sPropertyName) { + + case "iframe": + case "constraintoviewport": + case "hidedelay": + case "showdelay": + case "submenuhidedelay": + case "clicktohide": + case "effect": + case "classname": + + p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue); + + break; + + } + +}, + + +/** +* @method _onParentMenuRender +* @description "render" event handler for a submenu. Renders a +* submenu in response to the firing of its parent's "render" event. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onParentMenuRender: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParentMenu = p_oSubmenu.parent.parent, + + oConfig = { + + constraintoviewport: + oParentMenu.cfg.getProperty("constraintoviewport"), + + xy: [0,0], + + clicktohide: oParentMenu.cfg.getProperty("clicktohide"), + + effect: oParentMenu.cfg.getProperty("effect"), + + showdelay: oParentMenu.cfg.getProperty("showdelay"), + + hidedelay: oParentMenu.cfg.getProperty("hidedelay"), + + submenuhidedelay: oParentMenu.cfg.getProperty("submenuhidedelay"), + + classname: oParentMenu.cfg.getProperty("classname") + + }; + + + /* + Only sync the "iframe" configuration property if the parent + menu's "position" configuration is the same. + */ + + if( + this.cfg.getProperty("position") == + oParentMenu.cfg.getProperty("position") + ) { + + oConfig.iframe = oParentMenu.cfg.getProperty("iframe"); + + } + + + p_oSubmenu.cfg.applyConfig(oConfig); + + + if(!this.lazyLoad) { + + var oLI = this.parent.element; + + if(this.element.parentNode == oLI) { + + this.render(); + + } + else { + + this.render(oLI); + + } + + } + +}, + + +/** +* @method _onSubmenuBeforeShow +* @description "beforeshow" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuBeforeShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent, + aAlignment = oParent.parent.cfg.getProperty("submenualignment"); + + this.cfg.setProperty( + "context", + [oParent.element, aAlignment[0], aAlignment[1]] + ); + + + var nScrollTop = oParent.parent.body.scrollTop; + + if( + (this.browser == "gecko" || this.browser == "safari") + && nScrollTop > 0 + ) { + + this.cfg.setProperty("y", (this.cfg.getProperty("y") - nScrollTop)); + + } + +}, + + +/** +* @method _onSubmenuShow +* @description "show" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.firstChild.nodeValue = + oParent.EXPANDED_SUBMENU_INDICATOR_TEXT; + +}, + + +/** +* @method _onSubmenuHide +* @description "hide" Custom Event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuHide: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.firstChild.nodeValue = + oParent.COLLAPSED_SUBMENU_INDICATOR_TEXT; + +}, + + +/** +* @method _onMenuItemFocus +* @description "focus" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemFocus: function(p_sType, p_aArgs, p_oItem) { + + this.activeItem = p_oItem; + +}, + + +/** +* @method _onMenuItemBlur +* @description "blur" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event +* that was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +*/ +_onMenuItemBlur: function(p_sType, p_aArgs) { + + this.activeItem = null; + +}, + + +/** +* @method _onMenuItemConfigChange +* @description "configchange" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemConfigChange: function(p_sType, p_aArgs, p_oItem) { + + var sProperty = p_aArgs[0][0]; + + switch(sProperty) { + + case "submenu": + + var oSubmenu = p_aArgs[0][1]; + + if(oSubmenu) { + + this._configureSubmenu(p_oItem); + + } + + break; + + case "text": + case "helptext": + + /* + A change to an item's "text" or "helptext" + configuration properties requires the width of the parent + menu to be recalculated. + */ + + if(this.element.style.width) { + + var sWidth = this._getOffsetWidth() + "px"; + + Dom.setStyle(this.element, "width", sWidth); + + } + + break; + + } + +}, + + + +// Public event handlers for configuration properties + + +/** +* @method enforceConstraints +* @description The default event handler executed when the moveEvent is fired, +* if the "constraintoviewport" configuration property is set to true. +* @param {String} type The name of the event that was fired. +* @param {Array} args Collection of arguments sent when the +* event was fired. +* @param {Array} obj Array containing the current Menu instance +* and the item that fired the event. +*/ +enforceConstraints: function(type, args, obj) { + + var oConfig = this.cfg, + pos = args[0], + + x = pos[0], + y = pos[1], + + offsetHeight = this.element.offsetHeight, + offsetWidth = this.element.offsetWidth, + + viewPortWidth = YAHOO.util.Dom.getViewportWidth(), + viewPortHeight = YAHOO.util.Dom.getViewportHeight(), + + scrollX = Math.max( + document.documentElement.scrollLeft, + document.body.scrollLeft + ), + + scrollY = Math.max( + document.documentElement.scrollTop, + document.body.scrollTop + ), + + nPadding = ( + this.parent && + this.parent.parent instanceof YAHOO.widget.MenuBar + ) ? 0 : 10, + + topConstraint = scrollY + nPadding, + leftConstraint = scrollX + nPadding, + bottomConstraint = scrollY + viewPortHeight - offsetHeight - nPadding, + rightConstraint = scrollX + viewPortWidth - offsetWidth - nPadding, + + aContext = oConfig.getProperty("context"), + oContextElement = aContext ? aContext[0] : null; + + + if (x < 10) { + + x = leftConstraint; + + } else if ((x + offsetWidth) > viewPortWidth) { + + if( + oContextElement && + ((x - oContextElement.offsetWidth) > offsetWidth) + ) { + + x = (x - (oContextElement.offsetWidth + offsetWidth)); + + } + else { + + x = rightConstraint; + + } + + } + + if (y < 10) { + + y = topConstraint; + + } else if (y > bottomConstraint) { + + if(oContextElement && (y > offsetHeight)) { + + y = ((y + oContextElement.offsetHeight) - offsetHeight); + + } + else { + + y = bottomConstraint; + + } + + } + + oConfig.setProperty("x", x, true); + oConfig.setProperty("y", y, true); + oConfig.setProperty("xy", [x,y], true); + +}, + + +/** +* @method configVisible +* @description Event handler for when the "visible" configuration property +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configVisible: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configVisible.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + else { + + var bVisible = p_aArgs[0], + sDisplay = Dom.getStyle(this.element, "display"); + + if(bVisible) { + + if(sDisplay != "block") { + this.beforeShowEvent.fire(); + Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } + + } + else { + + if(sDisplay == "block") { + this.beforeHideEvent.fire(); + Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + + } + + } + +}, + + +/** +* @method configPosition +* @description Event handler for when the "position" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configPosition: function(p_sType, p_aArgs, p_oMenu) { + + var sCSSPosition = p_aArgs[0] == "static" ? "static" : "absolute", + oCfg = this.cfg; + + Dom.setStyle(this.element, "position", sCSSPosition); + + + if(sCSSPosition == "static") { + + /* + Remove the iframe for statically positioned menus since it will + intercept mouse events. + */ + + oCfg.setProperty("iframe", false); + + + // Statically positioned menus are visible by default + + Dom.setStyle(this.element, "display", "block"); + + oCfg.setProperty("visible", true); + + } + else { + + /* + Even though the "visible" property is queued to + "false" by default, we need to set the "visibility" property to + "hidden" since Overlay's "configVisible" implementation checks the + element's "visibility" style property before deciding whether + or not to show an Overlay instance. + */ + + Dom.setStyle(this.element, "visibility", "hidden"); + + } + + + if(sCSSPosition == "absolute") { + + var nZIndex = oCfg.getProperty("zindex"); + + if(!nZIndex || nZIndex === 0) { + + nZIndex = this.parent ? + (this.parent.parent.cfg.getProperty("zindex") + 1) : 1; + + oCfg.setProperty("zindex", nZIndex); + + } + + } + +}, + + +/** +* @method configIframe +* @description Event handler for when the "iframe" configuration property of +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configIframe: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configIframe.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + +}, + + +/** +* @method configHideDelay +* @description Event handler for when the "hidedelay" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configHideDelay: function(p_sType, p_aArgs, p_oMenu) { + + var nHideDelay = p_aArgs[0], + oMouseOutEvent = this.mouseOutEvent, + oMouseOverEvent = this.mouseOverEvent, + oKeyDownEvent = this.keyDownEvent; + + if(nHideDelay > 0) { + + /* + Only assign event handlers once. This way the user change + the value for the hidedelay as many times as they want. + */ + + if(!this._bHideDelayEventHandlersAssigned) { + + oMouseOutEvent.subscribe(this._execHideDelay, true); + oMouseOverEvent.subscribe(this._cancelHideDelay, this, true); + oKeyDownEvent.subscribe(this._cancelHideDelay, this, true); + + this._bHideDelayEventHandlersAssigned = true; + + } + + } + else { + + oMouseOutEvent.unsubscribe(this._execHideDelay, this); + oMouseOverEvent.unsubscribe(this._cancelHideDelay, this); + oKeyDownEvent.unsubscribe(this._cancelHideDelay, this); + + this._bHideDelayEventHandlersAssigned = false; + + } + +}, + + +/** +* @method configContainer +* @description Event handler for when the "container" configuration property +of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configContainer: function(p_sType, p_aArgs, p_oMenu) { + + var oElement = p_aArgs[0]; + + if(typeof oElement == 'string') { + + this.cfg.setProperty( + "container", + document.getElementById(oElement), + true + ); + + } + +}, + + +/** +* @method configMaxHeight +* @description Event handler for when the "maxheight" configuration property of +* a Menu changes. +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event +* was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired +* the event. +*/ +configMaxHeight: function(p_sType, p_aArgs, p_oMenu) { + + var nMaxHeight = p_aArgs[0], + oBody = this.body, + oHeader = this.header, + oFooter = this.footer, + fnMouseOver = this._onScrollTargetMouseOver, + fnMouseOut = this._onScrollTargetMouseOut; + + + if((nMaxHeight > 0) && (oBody.offsetHeight > nMaxHeight)) { + + if(!this.cfg.getProperty("width")) { + + this._setWidth(); + + } + + if(!oHeader && !oFooter) { + + this.setHeader(" "); + this.setFooter(" "); + + oHeader = this.header; + oFooter = this.footer; + + Dom.addClass(oHeader, "topscrollbar"); + Dom.addClass(oFooter, "bottomscrollbar"); + + this.element.insertBefore(oHeader, oBody); + this.element.appendChild(oFooter); + + Event.addListener(oHeader, "mouseover", fnMouseOver, this, true); + Event.addListener(oHeader, "mouseout", fnMouseOut, this, true); + Event.addListener(oFooter, "mouseover", fnMouseOver, this, true); + Event.addListener(oFooter, "mouseout", fnMouseOut, this, true); + + } + + var nHeight = + + ( + nMaxHeight - + (this.footer.offsetHeight + this.header.offsetHeight) + ); + + Dom.setStyle(oBody, "height", (nHeight + "px")); + Dom.setStyle(oBody, "overflow", "hidden"); + + } + else if(oHeader && oFooter) { + + Dom.setStyle(oBody, "height", "auto"); + Dom.setStyle(oBody, "overflow", "visible"); + + Event.removeListener(oHeader, "mouseover", fnMouseOver); + Event.removeListener(oHeader, "mouseout", fnMouseOut); + Event.removeListener(oFooter, "mouseover", fnMouseOver); + Event.removeListener(oFooter, "mouseout", fnMouseOut); + + this.element.removeChild(oHeader); + this.element.removeChild(oFooter); + + this.header = null; + this.footer = null; + + } + +}, + + +/** +* @method configClassName +* @description Event handler for when the "classname" configuration property of +* a menu changes. +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event. +*/ +configClassName: function(p_sType, p_aArgs, p_oMenu) { + + var sClassName = p_aArgs[0]; + + if(this._sClassName) { + + Dom.removeClass(this.element, this._sClassName); + + } + + Dom.addClass(this.element, sClassName); + this._sClassName = sClassName; + +}, + + +// Public methods + + +/** +* @method initEvents +* @description Initializes the custom events for the menu. +*/ +initEvents: function() { + + YAHOO.widget.Menu.superclass.initEvents.call(this); + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.itemAddedEvent = new CustomEvent("itemAddedEvent", this); + this.itemRemovedEvent = new CustomEvent("itemRemovedEvent", this); + +}, + + +/** +* @method getRoot +* @description Finds the menu's root menu. +*/ +getRoot: function() { + + var oItem = this.parent; + + if(oItem) { + + var oParentMenu = oItem.parent; + + return oParentMenu ? oParentMenu.getRoot() : this; + + } + else { + + return this; + + } + +}, + + +/** +* @method toString +* @description Returns a string representing the menu. +* @return {String} +*/ +toString: function() { + + return ("Menu " + this.id); + +}, + + +/** +* @method setItemGroupTitle +* @description Sets the title of a group of menu items. +* @param {String} p_sGroupTitle String specifying the title of the group. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to which +* the title belongs. +*/ +setItemGroupTitle: function(p_sGroupTitle, p_nGroupIndex) { + + if(typeof p_sGroupTitle == "string" && p_sGroupTitle.length > 0) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + oTitle = this._aGroupTitleElements[nGroupIndex]; + + + if(oTitle) { + + oTitle.innerHTML = p_sGroupTitle; + + } + else { + + oTitle = document.createElement(this.GROUP_TITLE_TAG_NAME); + + oTitle.innerHTML = p_sGroupTitle; + + this._aGroupTitleElements[nGroupIndex] = oTitle; + + } + + + var i = this._aGroupTitleElements.length - 1, + nFirstIndex; + + do { + + if(this._aGroupTitleElements[i]) { + + Dom.removeClass(this._aGroupTitleElements[i], "first-of-type"); + + nFirstIndex = i; + + } + + } + while(i--); + + + if(nFirstIndex !== null) { + + Dom.addClass( + this._aGroupTitleElements[nFirstIndex], + "first-of-type" + ); + + } + + } + +}, + + + +/** +* @method addItem +* @description Appends an item to the menu. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to +* which the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +addItem: function(p_oItem, p_nGroupIndex) { + + if(p_oItem) { + + return this._addItemToGroup(p_nGroupIndex, p_oItem); + + } + +}, + + +/** +* @method addItems +* @description Adds an array of items to the menu. +* @param {Array} p_aItems Array of items to be added to the menu. The array +* can contain strings specifying the text for each item to be created, object +* literals specifying each of the menu item configuration properties, +* or MenuItem instances. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to +* which the items belongs. +* @return {Array} +*/ +addItems: function(p_aItems, p_nGroupIndex) { + + if(Lang.isArray(p_aItems)) { + + var nItems = p_aItems.length, + aItems = [], + oItem; + + + for(var i=0; i<nItems; i++) { + + oItem = p_aItems[i]; + + if(oItem) { + + if(Lang.isArray(oItem)) { + + aItems[aItems.length] = this.addItems(oItem, i); + + } + else { + + aItems[aItems.length] = + this._addItemToGroup(p_nGroupIndex, oItem); + + } + + } + + } + + + if(aItems.length) { + + return aItems; + + } + + } + +}, + + +/** +* @method insertItem +* @description Inserts an item into the menu at the specified index. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nItemIndex Number indicating the ordinal position at which +* the item should be added. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to which +* the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +insertItem: function(p_oItem, p_nItemIndex, p_nGroupIndex) { + + if(p_oItem) { + + return this._addItemToGroup(p_nGroupIndex, p_oItem, p_nItemIndex); + + } + +}, + + +/** +* @method removeItem +* @description Removes the specified item from the menu. +* @param {YAHOO.widget.MenuItem} p_oObject Object reference for the MenuItem +* instance to be removed from the menu. +* @param {Number} p_oObject Number specifying the index of the item +* to be removed. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to +* which the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +removeItem: function(p_oObject, p_nGroupIndex) { + + if(typeof p_oObject != "undefined") { + + var oItem; + + if(p_oObject instanceof YAHOO.widget.MenuItem) { + + oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject); + + } + else if(typeof p_oObject == "number") { + + oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject); + + } + + if(oItem) { + + oItem.destroy(); + + this.logger.log("Item removed." + + " Text: " + oItem.cfg.getProperty("text") + ", " + + " Index: " + oItem.index + ", " + + " Group Index: " + oItem.groupIndex); + + return oItem; + + } + + } + +}, + + +/** +* @method getItems +* @description Returns an array of all of the items in the menu. +* @return {Array} +*/ +getItems: function() { + + var aGroups = this._aItemGroups, + nGroups = aGroups.length; + + return ( + (nGroups == 1) ? aGroups[0] : + (Array.prototype.concat.apply([], aGroups)) + ); + +}, + + +/** +* @method getItemGroups +* @description Multi-dimensional Array representing the menu items as they +* are grouped in the menu. +* @return {Array} +*/ +getItemGroups: function() { + + return this._aItemGroups; + +}, + + +/** +* @method getItem +* @description Returns the item at the specified index. +* @param {Number} p_nItemIndex Number indicating the ordinal position of the +* item to be retrieved. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to which +* the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +getItem: function(p_nItemIndex, p_nGroupIndex) { + + if(typeof p_nItemIndex == "number") { + + var aGroup = this._getItemGroup(p_nGroupIndex); + + if(aGroup) { + + return aGroup[p_nItemIndex]; + + } + + } + +}, + + +/** +* @method clearContent +* @description Removes all of the content from the menu, including the menu +* items, group titles, header and footer. +*/ +clearContent: function() { + + var aItems = this.getItems(), + nItems = aItems.length, + oElement = this.element, + oBody = this.body, + oHeader = this.header, + oFooter = this.footer; + + + if(nItems > 0) { + + var i = nItems - 1, + oItem, + oSubmenu; + + do { + + oItem = aItems[i]; + + if(oItem) { + + oSubmenu = oItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + this.cfg.configChangedEvent.unsubscribe( + this._onParentMenuConfigChange, + oSubmenu + ); + + this.renderEvent.unsubscribe( + this._onParentMenuRender, + oSubmenu + ); + + } + + oItem.destroy(); + + } + + } + while(i--); + + } + + + if(oHeader) { + + Event.purgeElement(oHeader); + oElement.removeChild(oHeader); + + } + + + if(oFooter) { + + Event.purgeElement(oFooter); + oElement.removeChild(oFooter); + } + + + if(oBody) { + + Event.purgeElement(oBody); + + oBody.innerHTML = ""; + + } + + + this._aItemGroups = []; + this._aListElements = []; + this._aGroupTitleElements = []; + +}, + + +/** +* @method destroy +* @description Removes the menu's <code><div></code> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove all DOM event listeners + + Event.purgeElement(this.element); + + + // Remove Custom Event listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + this.itemAddedEvent.unsubscribeAll(); + this.itemRemovedEvent.unsubscribeAll(); + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this._onTextResize, this); + + + // Remove all items + + this.clearContent(); + + + this._aItemGroups = null; + this._aListElements = null; + this._aGroupTitleElements = null; + + + // Continue with the superclass implementation of this method + + YAHOO.widget.Menu.superclass.destroy.call(this); + + this.logger.log("Destroyed."); + +}, + + +/** +* @method setInitialFocus +* @description Sets focus to the menu's first enabled item. +*/ +setInitialFocus: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.focus(); + } + +}, + + +/** +* @method setInitialSelection +* @description Sets the "selected" configuration property of the menu's first +* enabled item to "true." +*/ +setInitialSelection: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.cfg.setProperty("selected", true); + } + +}, + + +/** +* @method clearActiveItem +* @description Sets the "selected" configuration property of the menu's active +* item to "false" and hides the item's submenu. +* @param {Boolean} p_bBlur Boolean indicating if the menu's active item +* should be blurred. +*/ +clearActiveItem: function(p_bBlur) { + + if(this.cfg.getProperty("showdelay") > 0) { + + this._cancelShowDelay(); + + } + + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + var oConfig = oActiveItem.cfg; + + oConfig.setProperty("selected", false); + + var oSubmenu = oConfig.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.hide(); + + } + + if(p_bBlur) { + + oActiveItem.blur(); + + } + + } + +}, + + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.Menu.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration attributes + + /* + Change the default value for the "visible" configuration + property to "false" by re-adding the property. + */ + + /** + * @config visible + * @description Boolean indicating whether or not the menu is visible. If + * the menu's "position" configuration property is set to "dynamic" (the + * default), this property toggles the menu's <code><div></code> + * element's "visibility" style property between "visible" (true) or + * "hidden" (false). If the menu's "position" configuration property is + * set to "static" this property toggles the menu's + * <code><div></code> element's "display" style property + * between "block" (true) or "none" (false). + * @default false + * @type Boolean + */ + oConfig.addProperty( + "visible", + { + value:false, + handler:this.configVisible, + validator:this.cfg.checkBoolean + } + ); + + + /* + Change the default value for the "constraintoviewport" configuration + property to "true" by re-adding the property. + */ + + /** + * @config constraintoviewport + * @description Boolean indicating if the menu will try to remain inside + * the boundaries of the size of viewport. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "constraintoviewport", + { + value:true, + handler:this.configConstrainToViewport, + validator:this.cfg.checkBoolean, + supercedes:["iframe","x","y","xy"] + } + ); + + + /** + * @config position + * @description String indicating how a menu should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menus are + * visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menus are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and + * can overlay other elements on the screen. + * @default dynamic + * @type String + */ + oConfig.addProperty( + "position", + { + value: "dynamic", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu item. The format is: [itemCorner, submenuCorner]. By default + * a submenu's top left corner is aligned to its parent menu item's top + * right corner. + * @default ["tl","tr"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","tr"] } ); + + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu's items. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + + /** + * @config showdelay + * @description Number indicating the time (in milliseconds) that should + * expire before a submenu is made visible when the user mouses over + * the menu's items. + * @default 250 + * @type Number + */ + oConfig.addProperty( + "showdelay", + { + value: 250, + validator: oConfig.checkNumber + } + ); + + + /** + * @config hidedelay + * @description Number indicating the time (in milliseconds) that should + * expire before the menu is hidden. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "hidedelay", + { + value: 0, + validator: oConfig.checkNumber, + handler: this.configHideDelay, + suppressEvent: true + } + ); + + + /** + * @config submenuhidedelay + * @description Number indicating the time (in milliseconds) that should + * expire before a submenu is hidden when the user mouses out of a menu item + * heading in the direction of a submenu. The value must be greater than or + * equal to the value specified for the "showdelay" configuration property. + * @default 250 + * @type Number + */ + oConfig.addProperty( + "submenuhidedelay", + { + value: 250, + validator: oConfig.checkNumber + } + ); + + + /** + * @config clicktohide + * @description Boolean indicating if the menu will automatically be + * hidden if the user clicks outside of it. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "clicktohide", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the menu's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default document.body + */ + oConfig.addProperty( + "container", + { + value:document.body, + handler:this.configContainer + } + ); + + + /** + * @config maxheight + * @description Defines the maximum height (in pixels) for a menu before the + * contents of the body are scrolled. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "maxheight", + { + value: 0, + validator: oConfig.checkNumber, + handler: this.configMaxHeight + } + ); + + + /** + * @config classname + * @description CSS class to be applied to the menu's root + * <code><div></code> element. The specified class(es) are + * appended in addition to the default class as specified by the menu's + * CSS_CLASS_NAME constant. + * @default null + * @type String + */ + oConfig.addProperty( + "classname", + { + value: null, + handler: this.configClassName, + validator: this._checkString + } + ); + +} + +}); // END YAHOO.lang.extend + +})(); + + + +(function() { + +var Dom = YAHOO.util.Dom, + Module = YAHOO.widget.Module, + Menu = YAHOO.widget.Menu, + + m_oMenuItemElement = null, + m_oSubmenuIndicator = null, + m_oCheckedIndicator = null; + + +/** +* Creates an item for a menu. +* +* @param {String} p_oObject String specifying the text of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying +* the <code><li></code> element of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object +* specifying the <code><option></code> element of the menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu item. See configuration class documentation +* for more details. +* @class MenuItem +* @constructor +*/ +YAHOO.widget.MenuItem = function(p_oObject, p_oConfig) { + + if(p_oObject) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + this.value = p_oConfig.value; + this.id = p_oConfig.id; + + } + + this.init(p_oObject, p_oConfig); + + } + +}; + + +YAHOO.widget.MenuItem.prototype = { + + // Constants + + + /** + * @property SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * menu item's submenu arrow indicator. + * @default "nt/ic/ut/alt1/menuarorght8_nrm_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarorght8_nrm_1.gif", + + + /** + * @property SELECTED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is selected. + * @default "nt/ic/ut/alt1/menuarorght8_hov_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + SELECTED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_hov_1.gif", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is disabled. + * @default "nt/ic/ut/alt1/menuarorght8_dim_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + DISABLED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_dim_1.gif", + + + /** + * @property COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator. + * @default "Collapsed. Click to expand." + * @final + * @type String + * @deprecated Use COLLAPSED_SUBMENU_INDICATOR_TEXT. + */ + COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT: "Collapsed. Click to expand.", + + + /** + * @property EXPANDED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the submenu is visible. + * @default "Expanded. Click to collapse." + * @final + * @type String + * @deprecated Use EXPANDED_SUBMENU_INDICATOR_TEXT. + */ + EXPANDED_SUBMENU_INDICATOR_ALT_TEXT: "Expanded. Click to collapse.", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the menu item is disabled. + * @default "Disabled." + * @final + * @type String + * @deprecated Use DISABLED_SUBMENU_INDICATOR_TEXT. + */ + DISABLED_SUBMENU_INDICATOR_ALT_TEXT: "Disabled.", + + + /** + * @property COLLAPSED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the <code><em><code> + * element used for the submenu arrow indicator. + * @default "Submenu collapsed. Click to expand submenu." + * @final + * @type String + */ + COLLAPSED_SUBMENU_INDICATOR_TEXT: + "Submenu collapsed. Click to expand submenu.", + + + /** + * @property EXPANDED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the submenu arrow indicator + * element (<code><em><code>) when the submenu is visible. + * @default "Submenu expanded. Click to collapse submenu." + * @final + * @type String + */ + EXPANDED_SUBMENU_INDICATOR_TEXT: + "Submenu expanded. Click to collapse submenu.", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the submenu arrow indicator + * element (<code><em><code>) when the menu item is disabled. + * @default "Submenu collapsed. (Item disabled.)." + * @final + * @type String + */ + DISABLED_SUBMENU_INDICATOR_TEXT: "Submenu collapsed. (Item disabled.)", + + + /** + * @property CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the checked state. + * @default "nt/ic/ut/bsc/menuchk8_nrm_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. See "checkedindicator" class name in menu.css. + */ + CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_nrm_1.gif", + + + /** + * @property SELECTED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the selected checked state. + * @default "nt/ic/ut/bsc/menuchk8_hov_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. See "checkedindicator" class name in menu.css. + */ + SELECTED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_hov_1.gif", + + + /** + * @property DISABLED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the disabled checked state. + * @default "nt/ic/ut/bsc/menuchk8_dim_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. + */ + DISABLED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_dim_1.gif", + + + /** + * @property CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image. + * @default "Checked." + * @final + * @type String + * @deprecated Use CHECKED_TEXT. + */ + CHECKED_IMAGE_ALT_TEXT: "Checked.", + + + /** + * @property DISABLED_CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image when the item is disabled. + * @default "Checked. (Item disabled.)" + * @final + * @type String + * @deprecated Use DISABLED_CHECKED_TEXT. + */ + DISABLED_CHECKED_IMAGE_ALT_TEXT: "Checked. (Item disabled.)", + + + /** + * @property CHECKED_TEXT + * @description String representing the text to be used for the checked + * indicator element (<code><em><code>). + * @default "Checked." + * @final + * @type String + */ + CHECKED_TEXT: "Menu item checked.", + + + /** + * @property DISABLED_CHECKED_TEXT + * @description String representing the text to be used for the checked + * indicator element (<code><em><code>) when the menu item + * is disabled. + * @default "Checked. (Item disabled.)" + * @final + * @type String + */ + DISABLED_CHECKED_TEXT: "Checked. (Item disabled.)", + + + /** + * @property CSS_CLASS_NAME + * @description String representing the CSS class(es) to be applied to the + * <code><li></code> element of the menu item. + * @default "yuimenuitem" + * @final + * @type String + */ + CSS_CLASS_NAME: "yuimenuitem", + + + /** + * @property SUBMENU_TYPE + * @description Object representing the type of menu to instantiate and + * add when parsing the child nodes of the menu item's source HTML element. + * @final + * @type YAHOO.widget.Menu + */ + SUBMENU_TYPE: null, + + + /** + * @property IMG_ROOT + * @description String representing the prefix path to use for + * non-secure images. + * @default "http://us.i1.yimg.com/us.yimg.com/i/" + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + IMG_ROOT: "http://us.i1.yimg.com/us.yimg.com/i/", + + + /** + * @property IMG_ROOT_SSL + * @description String representing the prefix path to use for securely + * served images. + * @default "https://a248.e.akamai.net/sec.yimg.com/i/" + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + IMG_ROOT_SSL: "https://a248.e.akamai.net/sec.yimg.com/i/", + + + + // Private member variables + + + /** + * @property _oAnchor + * @description Object reference to the menu item's + * <code><a></code> element. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-48250443">HTMLAnchorElement</a> + */ + _oAnchor: null, + + + /** + * @property _oText + * @description Object reference to the menu item's text node. + * @default null + * @private + * @type TextNode + */ + _oText: null, + + + /** + * @property _oHelpTextEM + * @description Object reference to the menu item's help text + * <code><em></code> element. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-58190037">HTMLElement</a> + */ + _oHelpTextEM: null, + + + /** + * @property _oSubmenu + * @description Object reference to the menu item's submenu. + * @default null + * @private + * @type YAHOO.widget.Menu + */ + _oSubmenu: null, + + + /** + * @property _checkImage + * @description Object reference to the menu item's checkmark image. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-17701901">HTMLImageElement</a> + * @deprecated Use _oCheckedIndicator. + */ + _checkImage: null, + + + /** + * @property _oCheckedIndicator + * @description Object reference to the menu item's checkmark image. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + */ + _oCheckedIndicator: null, + + + /** + * @property _oOnclickAttributeValue + * @description Object reference to the menu item's current value for the + * "onclick" configuration attribute. + * @default null + * @private + * @type Object + */ + _oOnclickAttributeValue: null, + + + /** + * @property _sClassName + * @description The current value of the "classname" configuration attribute. + * @default null + * @private + * @type String + */ + _sClassName: null, + + + + // Public properties + + + /** + * @property constructor + * @description Object reference to the menu item's constructor function. + * @default YAHOO.widget.MenuItem + * @type YAHOO.widget.MenuItem + */ + constructor: YAHOO.widget.MenuItem, + + + /** + * @property imageRoot + * @description String representing the root path for all of the menu + * item's images. + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + imageRoot: null, + + + /** + * @property isSecure + * @description Boolean representing whether or not the current browsing + * context is secure (HTTPS). + * @type Boolean + * @deprecated All menu item images are now applied via CSS + * background images. + */ + isSecure: Module.prototype.isSecure, + + + /** + * @property index + * @description Number indicating the ordinal position of the menu item in + * its group. + * @default null + * @type Number + */ + index: null, + + + /** + * @property groupIndex + * @description Number indicating the index of the group to which the menu + * item belongs. + * @default null + * @type Number + */ + groupIndex: null, + + + /** + * @property parent + * @description Object reference to the menu item's parent menu. + * @default null + * @type YAHOO.widget.Menu + */ + parent: null, + + + /** + * @property element + * @description Object reference to the menu item's + * <code><li></code> element. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level + * -one-html.html#ID-74680021">HTMLLIElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a> + */ + element: null, + + + /** + * @property srcElement + * @description Object reference to the HTML element (either + * <code><li></code>, <code><optgroup></code> or + * <code><option></code>) used create the menu item. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www. + * w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247" + * >HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM- + * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.w3. + * org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247"> + * HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM- + * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a> + */ + srcElement: null, + + + /** + * @property value + * @description Object reference to the menu item's value. + * @default null + * @type Object + */ + value: null, + + + /** + * @property submenuIndicator + * @description Object reference to the <code><em></code> element + * used to create the submenu indicator for the menu item. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + */ + submenuIndicator: null, + + + /** + * @property browser + * @description String representing the browser. + * @type String + */ + browser: Module.prototype.browser, + + + /** + * @property id + * @description Id of the menu item's root <code><li></code> + * element. This property should be set via the constructor using the + * configuration object literal. If an id is not specified, then one will + * be created using the "generateId" method of the Dom utility. + * @default null + * @type String + */ + id: null, + + + + // Events + + + /** + * @event destroyEvent + * @description Fires when the menu item's <code><li></code> + * element is removed from its parent <code><ul></code> element. + * @type YAHOO.util.CustomEvent + */ + destroyEvent: null, + + + /** + * @event mouseOverEvent + * @description Fires when the mouse has entered the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOverEvent: null, + + + /** + * @event mouseOutEvent + * @description Fires when the mouse has left the menu item. Passes back + * the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOutEvent: null, + + + /** + * @event mouseDownEvent + * @description Fires when the user mouses down on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseDownEvent: null, + + + /** + * @event mouseUpEvent + * @description Fires when the user releases a mouse button while the mouse + * is over the menu item. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseUpEvent: null, + + + /** + * @event clickEvent + * @description Fires when the user clicks the on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + clickEvent: null, + + + /** + * @event keyPressEvent + * @description Fires when the user presses an alphanumeric key when the + * menu item has focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyPressEvent: null, + + + /** + * @event keyDownEvent + * @description Fires when the user presses a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyDownEvent: null, + + + /** + * @event keyUpEvent + * @description Fires when the user releases a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyUpEvent: null, + + + /** + * @event focusEvent + * @description Fires when the menu item receives focus. + * @type YAHOO.util.CustomEvent + */ + focusEvent: null, + + + /** + * @event blurEvent + * @description Fires when the menu item loses the input focus. + * @type YAHOO.util.CustomEvent + */ + blurEvent: null, + + + /** + * @method init + * @description The MenuItem class's initialization method. This method is + * automatically called by the constructor, and sets up all DOM references + * for pre-existing markup, and creates required markup if it is not + * already present. + * @param {String} p_oObject String specifying the text of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying + * the <code><li></code> element of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object + * specifying the <code><optgroup></code> element of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object + * specifying the <code><option></code> element of the menu item. + * @param {Object} p_oConfig Optional. Object literal specifying the + * configuration for the menu item. See configuration class documentation + * for more details. + */ + init: function(p_oObject, p_oConfig) { + + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = Menu; + + } + + + // Create the config object + + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + var oConfig = this.cfg; + + + if(this._checkString(p_oObject)) { + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject); + + } + else if(this._checkDOMNode(p_oObject)) { + + switch(p_oObject.tagName.toUpperCase()) { + + case "OPTION": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.text); + + this.srcElement = p_oObject; + + break; + + case "OPTGROUP": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.label); + + this.srcElement = p_oObject; + + this._initSubTree(); + + break; + + case "LI": + + // Get the anchor node (if it exists) + + var oAnchor = this._getFirstElement(p_oObject, "A"), + sURL = "#", + sTarget, + sText; + + + // Capture the "text" and/or the "URL" + + if(oAnchor) { + + sURL = oAnchor.getAttribute("href"); + sTarget = oAnchor.getAttribute("target"); + + if(oAnchor.innerText) { + + sText = oAnchor.innerText; + + } + else { + + var oRange = oAnchor.ownerDocument.createRange(); + + oRange.selectNodeContents(oAnchor); + + sText = oRange.toString(); + + } + + } + else { + + var oText = p_oObject.firstChild; + + sText = oText.nodeValue; + + oAnchor = document.createElement("a"); + + oAnchor.setAttribute("href", sURL); + + p_oObject.replaceChild(oAnchor, oText); + + oAnchor.appendChild(oText); + + } + + + this.srcElement = p_oObject; + this.element = p_oObject; + this._oAnchor = oAnchor; + + + // Check if emphasis has been applied to the MenuItem + + var oEmphasisNode = this._getFirstElement(oAnchor), + bEmphasis = false, + bStrongEmphasis = false; + + if(oEmphasisNode) { + + // Set a reference to the text node + + this._oText = oEmphasisNode.firstChild; + + switch(oEmphasisNode.tagName.toUpperCase()) { + + case "EM": + + bEmphasis = true; + + break; + + case "STRONG": + + bStrongEmphasis = true; + + break; + + } + + } + else { + + // Set a reference to the text node + + this._oText = oAnchor.firstChild; + + } + + + /* + Set these properties silently to sync up the + configuration object without making changes to the + element's DOM + */ + + oConfig.setProperty("text", sText, true); + oConfig.setProperty("url", sURL, true); + oConfig.setProperty("target", sTarget, true); + oConfig.setProperty("emphasis", bEmphasis, true); + oConfig.setProperty( + "strongemphasis", + bStrongEmphasis, + true + ); + + this._initSubTree(); + + break; + + } + + } + + + if(this.element) { + + var sId = this.element.id; + + if(!sId) { + + sId = this.id || Dom.generateId(); + + this.element.id = sId; + + } + + this.id = sId; + + + Dom.addClass(this.element, this.CSS_CLASS_NAME); + + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.destroyEvent = new CustomEvent("destroyEvent", this); + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.focusEvent = new CustomEvent("focusEvent", this); + this.blurEvent = new CustomEvent("blurEvent", this); + + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig); + + } + + oConfig.fireQueue(); + + + + + } + + }, + + + + // Private methods + + + /** + * @method _getFirstElement + * @description Returns an HTML element's first HTML element node. + * @private + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object + * reference specifying the element to be evaluated. + * @param {String} p_sTagName Optional. String specifying the tagname of + * the element to be retrieved. + * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>} + */ + _getFirstElement: function(p_oElement, p_sTagName) { + + var oFirstChild = p_oElement.firstChild, + oElement; + + if(oFirstChild) { + + if(oFirstChild.nodeType == 1) { + + oElement = oFirstChild; + + } + else { + + var oNextSibling = oFirstChild.nextSibling; + + if(oNextSibling && oNextSibling.nodeType == 1) { + + oElement = oNextSibling; + + } + + } + + } + + + if(p_sTagName) { + + return (oElement && oElement.tagName.toUpperCase() == p_sTagName) ? + oElement : false; + + } + + return oElement; + + }, + + + /** + * @method _checkString + * @description Determines if an object is a string. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkString: function(p_oObject) { + + return (typeof p_oObject == "string"); + + }, + + + /** + * @method _checkDOMNode + * @description Determines if an object is an HTML element. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkDOMNode: function(p_oObject) { + + return (p_oObject && p_oObject.tagName); + + }, + + + /** + * @method _createRootNodeStructure + * @description Creates the core DOM structure for the menu item. + * @private + */ + _createRootNodeStructure: function () { + + if(!m_oMenuItemElement) { + + m_oMenuItemElement = document.createElement("li"); + m_oMenuItemElement.innerHTML = "<a href=\"#\">s</a>"; + + } + + this.element = m_oMenuItemElement.cloneNode(true); + this._oAnchor = this.element.firstChild; + this._oText = this._oAnchor.firstChild; + + this.element.appendChild(this._oAnchor); + + }, + + + /** + * @method _initSubTree + * @description Iterates the source element's childNodes collection and uses + * the child nodes to instantiate other menus. + * @private + */ + _initSubTree: function() { + + var oSrcEl = this.srcElement, + oConfig = this.cfg; + + + if(oSrcEl.childNodes.length > 0) { + + if( + this.parent.lazyLoad && + this.parent.srcElement && + this.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + oConfig.setProperty( + "submenu", + { id: Dom.generateId(), itemdata: oSrcEl.childNodes } + ); + + } + else { + + var oNode = oSrcEl.firstChild, + aOptions = []; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "DIV": + + oConfig.setProperty("submenu", oNode); + + break; + + case "OPTION": + + aOptions[aOptions.length] = oNode; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + + var nOptions = aOptions.length; + + if(nOptions > 0) { + + var oMenu = new this.SUBMENU_TYPE(Dom.generateId()); + + oConfig.setProperty("submenu", oMenu); + + for(var n=0; n<nOptions; n++) { + + oMenu.addItem((new oMenu.ITEM_TYPE(aOptions[n]))); + + } + + } + + } + + } + + }, + + + /** + * @method _preloadImage + * @description Preloads an image by creating an image element from the + * specified path and appending the image to the body of the document. + * @private + * @param {String} p_sPath String specifying the path to the image. + * @deprecated All menu item images are now applied via CSS + * background images. + */ + _preloadImage: function(p_sPath) { + + var sPath = this.imageRoot + p_sPath; + + if(!document.images[sPath]) { + + var oImage = document.createElement("img"); + oImage.src = sPath; + oImage.name = sPath; + oImage.id = sPath; + oImage.style.display = "none"; + + document.body.appendChild(oImage); + + } + + }, + + + + // Event handlers for configuration properties + + + /** + * @method configText + * @description Event handler for when the "text" configuration property of + * the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configText: function(p_sType, p_aArgs, p_oItem) { + + var sText = p_aArgs[0]; + + + if(this._oText) { + + this._oText.nodeValue = sText; + + } + + }, + + + /** + * @method configHelpText + * @description Event handler for when the "helptext" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configHelpText: function(p_sType, p_aArgs, p_oItem) { + + var me = this, + oHelpText = p_aArgs[0], + oEl = this.element, + oConfig = this.cfg, + aNodes = [oEl, this._oAnchor], + oSubmenuIndicator = this.submenuIndicator; + + + function initHelpText() { + + Dom.addClass(aNodes, "hashelptext"); + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + + + function removeHelpText() { + + Dom.removeClass(aNodes, "hashelptext"); + + oEl.removeChild(me._oHelpTextEM); + me._oHelpTextEM = null; + + } + + + if(this._checkDOMNode(oHelpText)) { + + oHelpText.className = "helptext"; + + if(this._oHelpTextEM) { + + this._oHelpTextEM.parentNode.replaceChild( + oHelpText, + this._oHelpTextEM + ); + + } + else { + + this._oHelpTextEM = oHelpText; + + oEl.insertBefore(this._oHelpTextEM, oSubmenuIndicator); + + } + + initHelpText(); + + } + else if(this._checkString(oHelpText)) { + + if(oHelpText.length === 0) { + + removeHelpText(); + + } + else { + + if(!this._oHelpTextEM) { + + this._oHelpTextEM = document.createElement("em"); + this._oHelpTextEM.className = "helptext"; + + oEl.insertBefore(this._oHelpTextEM, oSubmenuIndicator); + + } + + this._oHelpTextEM.innerHTML = oHelpText; + + initHelpText(); + + } + + } + else if(!oHelpText && this._oHelpTextEM) { + + removeHelpText(); + + } + + }, + + + /** + * @method configURL + * @description Event handler for when the "url" configuration property of + * the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configURL: function(p_sType, p_aArgs, p_oItem) { + + var sURL = p_aArgs[0]; + + if(!sURL) { + + sURL = "#"; + + } + + this._oAnchor.setAttribute("href", sURL); + + }, + + + /** + * @method configTarget + * @description Event handler for when the "target" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configTarget: function(p_sType, p_aArgs, p_oItem) { + + var sTarget = p_aArgs[0], + oAnchor = this._oAnchor; + + if(sTarget && sTarget.length > 0) { + + oAnchor.setAttribute("target", sTarget); + + } + else { + + oAnchor.removeAttribute("target"); + + } + + }, + + + /** + * @method configEmphasis + * @description Event handler for when the "emphasis" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bEmphasis = p_aArgs[0], + oAnchor = this._oAnchor, + oText = this._oText, + oConfig = this.cfg, + oEM; + + + if(bEmphasis && oConfig.getProperty("strongemphasis")) { + + oConfig.setProperty("strongemphasis", false); + + } + + + if(oAnchor) { + + if(bEmphasis) { + + oEM = document.createElement("em"); + oEM.appendChild(oText); + + oAnchor.appendChild(oEM); + + } + else { + + oEM = this._getFirstElement(oAnchor, "EM"); + + if(oEM) { + + oAnchor.removeChild(oEM); + oAnchor.appendChild(oText); + + } + + } + + } + + }, + + + /** + * @method configStrongEmphasis + * @description Event handler for when the "strongemphasis" configuration + * property of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configStrongEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bStrongEmphasis = p_aArgs[0], + oAnchor = this._oAnchor, + oText = this._oText, + oConfig = this.cfg, + oStrong; + + if(bStrongEmphasis && oConfig.getProperty("emphasis")) { + + oConfig.setProperty("emphasis", false); + + } + + if(oAnchor) { + + if(bStrongEmphasis) { + + oStrong = document.createElement("strong"); + oStrong.appendChild(oText); + + oAnchor.appendChild(oStrong); + + } + else { + + oStrong = this._getFirstElement(oAnchor, "STRONG"); + + if(oStrong) { + + oAnchor.removeChild(oStrong); + oAnchor.appendChild(oText); + + } + + } + + } + + }, + + + /** + * @method configChecked + * @description Event handler for when the "checked" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configChecked: function(p_sType, p_aArgs, p_oItem) { + + var bChecked = p_aArgs[0], + oEl = this.element, + oConfig = this.cfg, + oEM; + + + if(bChecked) { + + if(!m_oCheckedIndicator) { + + m_oCheckedIndicator = document.createElement("em"); + m_oCheckedIndicator.innerHTML = this.CHECKED_TEXT; + m_oCheckedIndicator.className = "checkedindicator"; + + } + + oEM = m_oCheckedIndicator.cloneNode(true); + + var oSubmenu = this.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.element) { + + oEl.insertBefore(oEM, oSubmenu.element); + + } + else { + + oEl.appendChild(oEM); + + } + + + Dom.addClass(oEl, "checked"); + + this._oCheckedIndicator = oEM; + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + else { + + oEM = this._oCheckedIndicator; + + Dom.removeClass(oEl, "checked"); + + if(oEM) { + + oEl.removeChild(oEM); + + } + + this._oCheckedIndicator = null; + + } + + }, + + + + /** + * @method configDisabled + * @description Event handler for when the "disabled" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configDisabled: function(p_sType, p_aArgs, p_oItem) { + + var bDisabled = p_aArgs[0], + oConfig = this.cfg, + oAnchor = this._oAnchor, + aNodes = [this.element, oAnchor], + oHelpText = this._oHelpTextEM, + oCheckedIndicator = this._oCheckedIndicator, + oSubmenuIndicator = this.submenuIndicator, + i = 1; + + + if(oHelpText) { + + i++; + aNodes[i] = oHelpText; + + } + + + if(oCheckedIndicator) { + + oCheckedIndicator.firstChild.nodeValue = bDisabled ? + this.DISABLED_CHECKED_TEXT : + this.CHECKED_TEXT; + + i++; + aNodes[i] = oCheckedIndicator; + + } + + + if(oSubmenuIndicator) { + + oSubmenuIndicator.firstChild.nodeValue = bDisabled ? + this.DISABLED_SUBMENU_INDICATOR_TEXT : + this.COLLAPSED_SUBMENU_INDICATOR_TEXT; + + i++; + aNodes[i] = oSubmenuIndicator; + + } + + + if(bDisabled) { + + if(oConfig.getProperty("selected")) { + + oConfig.setProperty("selected", false); + + } + + oAnchor.removeAttribute("href"); + + Dom.addClass(aNodes, "disabled"); + + } + else { + + oAnchor.setAttribute("href", oConfig.getProperty("url")); + + Dom.removeClass(aNodes, "disabled"); + + } + + }, + + + /** + * @method configSelected + * @description Event handler for when the "selected" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSelected: function(p_sType, p_aArgs, p_oItem) { + + if(!this.cfg.getProperty("disabled")) { + + var bSelected = p_aArgs[0], + oHelpText = this._oHelpTextEM, + oSubmenuIndicator = this.submenuIndicator, + oCheckedIndicator = this._oCheckedIndicator, + aNodes = [this.element, this._oAnchor], + i = 1; + + + if(oHelpText) { + + i++; + aNodes[i] = oHelpText; + + } + + + if(oSubmenuIndicator) { + + i++; + aNodes[i] = oSubmenuIndicator; + + } + + + if(oCheckedIndicator) { + + i++; + aNodes[i] = oCheckedIndicator; + + } + + + if(bSelected) { + + Dom.addClass(aNodes, "selected"); + + } + else { + + Dom.removeClass(aNodes, "selected"); + + } + + } + + }, + + + /** + * @method configSubmenu + * @description Event handler for when the "submenu" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSubmenu: function(p_sType, p_aArgs, p_oItem) { + + var oEl = this.element, + oSubmenu = p_aArgs[0], + oSubmenuIndicator = this.submenuIndicator, + oConfig = this.cfg, + aNodes = [this.element, this._oAnchor], + bLazyLoad = this.parent && this.parent.lazyLoad, + oMenu; + + + if(oSubmenu) { + + if(oSubmenu instanceof Menu) { + + oMenu = oSubmenu; + oMenu.parent = this; + oMenu.lazyLoad = bLazyLoad; + + } + else if( + typeof oSubmenu == "object" && + oSubmenu.id && + !oSubmenu.nodeType + ) { + + var sSubmenuId = oSubmenu.id, + oSubmenuConfig = oSubmenu; + + oSubmenuConfig.lazyload = bLazyLoad; + oSubmenuConfig.parent = this; + + oMenu = new this.SUBMENU_TYPE(sSubmenuId, oSubmenuConfig); + + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + else { + + oMenu = new this.SUBMENU_TYPE( + oSubmenu, + { lazyload: bLazyLoad, parent: this } + ); + + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + + + if(oMenu) { + + this._oSubmenu = oMenu; + + + if(!oSubmenuIndicator) { + + + if(!m_oSubmenuIndicator) { + + m_oSubmenuIndicator = document.createElement("em"); + m_oSubmenuIndicator.innerHTML = + this.COLLAPSED_SUBMENU_INDICATOR_TEXT; + m_oSubmenuIndicator.className = "submenuindicator"; + + } + + + oSubmenuIndicator = m_oSubmenuIndicator.cloneNode(true); + + + if(oMenu.element.parentNode == oEl) { + + if(this.browser == "opera") { + + oEl.appendChild(oSubmenuIndicator); + + oMenu.renderEvent.subscribe(function() { + + oSubmenuIndicator.parentNode.insertBefore( + oSubmenuIndicator, + oMenu.element + ); + + }); + + } + else { + + oEl.insertBefore(oSubmenuIndicator, oMenu.element); + + } + + } + else { + + oEl.appendChild(oSubmenuIndicator); + + } + + this.submenuIndicator = oSubmenuIndicator; + + } + + + Dom.addClass(aNodes, "hassubmenu"); + + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + + } + else { + + Dom.removeClass(aNodes, "hassubmenu"); + + if(oSubmenuIndicator) { + + oEl.removeChild(oSubmenuIndicator); + + } + + if(this._oSubmenu) { + + this._oSubmenu.destroy(); + + } + + } + + }, + + + /** + * @method configOnClick + * @description Event handler for when the "onclick" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configOnClick: function(p_sType, p_aArgs, p_oItem) { + + var oObject = p_aArgs[0]; + + /* + Remove any existing listeners if a "click" event handler has + already been specified. + */ + + if( + this._oOnclickAttributeValue && + (this._oOnclickAttributeValue != oObject) + ) { + + this.clickEvent.unsubscribe( + this._oOnclickAttributeValue.fn, + this._oOnclickAttributeValue.obj + ); + + this._oOnclickAttributeValue = null; + + } + + + if( + !this._oOnclickAttributeValue && + typeof oObject == "object" && + typeof oObject.fn == "function" + ) { + + this.clickEvent.subscribe( + oObject.fn, + (oObject.obj || this), + oObject.scope + ); + + this._oOnclickAttributeValue = oObject; + + } + + }, + + + /** + * @method configClassName + * @description Event handler for when the "classname" configuration + * property of a menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configClassName: function(p_sType, p_aArgs, p_oItem) { + + var sClassName = p_aArgs[0]; + + if(this._sClassName) { + + Dom.removeClass(this.element, this._sClassName); + + } + + Dom.addClass(this.element, sClassName); + this._sClassName = sClassName; + + }, + + + + // Public methods + + + /** + * @method initDefaultConfig + * @description Initializes an item's configurable properties. + */ + initDefaultConfig : function() { + + var oConfig = this.cfg, + CheckBoolean = oConfig.checkBoolean; + + + // Define the configuration attributes + + /** + * @config text + * @description String specifying the text label for the menu item. + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default "" + * @type String + */ + oConfig.addProperty( + "text", + { + value: "", + handler: this.configText, + validator: this._checkString, + suppressEvent: true + } + ); + + + /** + * @config helptext + * @description String specifying additional instructional text to + * accompany the text for the nenu item. + * @default null + * @type String|<a href="http://www.w3.org/TR/ + * 2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037"> + * HTMLElement</a> + */ + oConfig.addProperty("helptext", { handler: this.configHelpText }); + + + /** + * @config url + * @description String specifying the URL for the menu item's anchor's + * "href" attribute. When building a menu from existing HTML the value + * of this property will be interpreted from the menu's markup. + * @default "#" + * @type String + */ + oConfig.addProperty( + "url", + { value: "#", handler: this.configURL, suppressEvent: true } + ); + + + /** + * @config target + * @description String specifying the value for the "target" attribute + * of the menu item's anchor element. <strong>Specifying a target will + * require the user to click directly on the menu item's anchor node in + * order to cause the browser to navigate to the specified URL.</strong> + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default null + * @type String + */ + oConfig.addProperty( + "target", + { handler: this.configTarget, suppressEvent: true } + ); + + + /** + * @config emphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with emphasis. When building a menu from existing HTML the + * value of this property will be interpreted from the menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "emphasis", + { + value: false, + handler: this.configEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config strongemphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with strong emphasis. When building a menu from existing + * HTML the value of this property will be interpreted from the + * menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "strongemphasis", + { + value: false, + handler: this.configStrongEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config checked + * @description Boolean indicating if the menu item should be rendered + * with a checkmark. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "checked", + { + value: false, + handler: this.configChecked, + validator: this.cfg.checkBoolean, + suppressEvent: true, + supercedes:["disabled"] + } + ); + + + /** + * @config disabled + * @description Boolean indicating if the menu item should be disabled. + * (Disabled menu items are dimmed and will not respond to user input + * or fire events.) + * @default false + * @type Boolean + */ + oConfig.addProperty( + "disabled", + { + value: false, + handler: this.configDisabled, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config selected + * @description Boolean indicating if the menu item should + * be highlighted. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "selected", + { + value: false, + handler: this.configSelected, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config submenu + * @description Object specifying the submenu to be appended to the + * menu item. The value can be one of the following: <ul><li>Object + * specifying a Menu instance.</li><li>Object literal specifying the + * menu to be created. Format: <code>{ id: [menu id], itemdata: + * [<a href="YAHOO.widget.Menu.html#itemData">array of values for + * items</a>] }</code>.</li><li>String specifying the id attribute + * of the <code><div></code> element of the menu.</li><li> + * Object specifying the <code><div></code> element of the + * menu.</li></ul> + * @default null + * @type Menu|String|Object|<a href="http://www.w3.org/TR/2000/ + * WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037"> + * HTMLElement</a> + */ + oConfig.addProperty("submenu", { handler: this.configSubmenu }); + + + /** + * @config onclick + * @description Object literal representing the code to be executed when + * the button is clicked. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when + * the event fires.<br> <strong>obj:</strong> Object, // An + * object to pass back to the handler.<br> <strong>scope:</strong> + * Object // The object to use for the scope of the handler. + * <br> } </code> + * @type Object + * @default null + */ + oConfig.addProperty("onclick", { handler: this.configOnClick }); + + + /** + * @config classname + * @description CSS class to be applied to the menu item's root + * <code><li></code> element. The specified class(es) are + * appended in addition to the default class as specified by the menu + * item's CSS_CLASS_NAME constant. + * @default null + * @type String + */ + oConfig.addProperty( + "classname", + { + value: null, + handler: this.configClassName, + validator: this._checkString + } + ); + + }, + + + /** + * @method getNextEnabledSibling + * @description Finds the menu item's next enabled sibling. + * @return YAHOO.widget.MenuItem + */ + getNextEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + function getNextArrayItem(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getNextArrayItem(p_aArray, (p_nStartIndex+1)); + + } + + + var aItemGroups = this.parent.getItemGroups(), + oNextItem; + + + if(this.index < (aItemGroups[nGroupIndex].length - 1)) { + + oNextItem = getNextArrayItem( + aItemGroups[nGroupIndex], + (this.index+1) + ); + + } + else { + + var nNextGroupIndex; + + if(nGroupIndex < (aItemGroups.length - 1)) { + + nNextGroupIndex = nGroupIndex + 1; + + } + else { + + nNextGroupIndex = 0; + + } + + var aNextGroup = getNextArrayItem(aItemGroups, nNextGroupIndex); + + // Retrieve the first menu item in the next group + + oNextItem = getNextArrayItem(aNextGroup, 0); + + } + + return ( + oNextItem.cfg.getProperty("disabled") || + oNextItem.element.style.display == "none" + ) ? + oNextItem.getNextEnabledSibling() : oNextItem; + + } + + }, + + + /** + * @method getPreviousEnabledSibling + * @description Finds the menu item's previous enabled sibling. + * @return {YAHOO.widget.MenuItem} + */ + getPreviousEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + function getPreviousArrayItem(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getPreviousArrayItem(p_aArray, (p_nStartIndex-1)); + + } + + function getFirstItemIndex(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] ? + p_nStartIndex : + getFirstItemIndex(p_aArray, (p_nStartIndex+1)); + + } + + var aItemGroups = this.parent.getItemGroups(), + oPreviousItem; + + if( + this.index > getFirstItemIndex(aItemGroups[nGroupIndex], 0) + ) { + + oPreviousItem = + getPreviousArrayItem( + aItemGroups[nGroupIndex], + (this.index-1) + ); + + } + else { + + var nPreviousGroupIndex; + + if(nGroupIndex > getFirstItemIndex(aItemGroups, 0)) { + + nPreviousGroupIndex = nGroupIndex - 1; + + } + else { + + nPreviousGroupIndex = aItemGroups.length - 1; + + } + + var aPreviousGroup = + getPreviousArrayItem(aItemGroups, nPreviousGroupIndex); + + oPreviousItem = + getPreviousArrayItem( + aPreviousGroup, + (aPreviousGroup.length - 1) + ); + + } + + return ( + oPreviousItem.cfg.getProperty("disabled") || + oPreviousItem.element.style.display == "none" + ) ? + oPreviousItem.getPreviousEnabledSibling() : oPreviousItem; + + } + + }, + + + /** + * @method focus + * @description Causes the menu item to receive the focus and fires the + * focus event. + */ + focus: function() { + + var oParent = this.parent, + oAnchor = this._oAnchor, + oActiveItem = oParent.activeItem; + + + function setFocus() { + + try { + + oAnchor.focus(); + + } + catch(e) { + + } + + } + + + if( + !this.cfg.getProperty("disabled") && + oParent && + oParent.cfg.getProperty("visible") && + this.element.style.display != "none" + ) { + + if(oActiveItem) { + + oActiveItem.blur(); + + } + + + /* + Setting focus via a timer fixes a race condition in Firefox, IE + and Opera where the browser viewport jumps as it trys to + position and focus the menu. + */ + + window.setTimeout(setFocus, 0); + + this.focusEvent.fire(); + + } + + }, + + + /** + * @method blur + * @description Causes the menu item to lose focus and fires the + * onblur event. + */ + blur: function() { + + var oParent = this.parent; + + if( + !this.cfg.getProperty("disabled") && + oParent && + Dom.getStyle(oParent.element, "visibility") == "visible" + ) { + + this._oAnchor.blur(); + + this.blurEvent.fire(); + + } + + }, + + + /** + * @method destroy + * @description Removes the menu item's <code><li></code> element + * from its parent <code><ul></code> element. + */ + destroy: function() { + + var oEl = this.element; + + if(oEl) { + + + // If the item has a submenu, destroy it first + + var oSubmenu = this.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.destroy(); + + } + + + // Remove CustomEvent listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + this.focusEvent.unsubscribeAll(); + this.blurEvent.unsubscribeAll(); + this.cfg.configChangedEvent.unsubscribeAll(); + + + // Remove the element from the parent node + + var oParentNode = oEl.parentNode; + + if(oParentNode) { + + oParentNode.removeChild(oEl); + + this.destroyEvent.fire(); + + } + + this.destroyEvent.unsubscribeAll(); + + } + + }, + + + /** + * @method toString + * @description Returns a string representing the menu item. + * @return {String} + */ + toString: function() { + + return ("MenuItem: " + this.cfg.getProperty("text")); + + } + +}; + +})(); + + + +/** +* Creates a list of options or commands which are made visible in response to +* an HTML element's "contextmenu" event ("mousedown" for Opera). +* +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the +* <code><div></code> element of the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying +* the <code><select></code> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +* @class ContextMenu +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.ContextMenu = function(p_oElement, p_oConfig) { + + YAHOO.widget.ContextMenu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + + +YAHOO.lang.extend(YAHOO.widget.ContextMenu, YAHOO.widget.Menu, { + + + +// Private properties + + +/** +* @property _oTrigger +* @description Object reference to the current value of the "trigger" +* configuration property. +* @default null +* @private +* @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/leve +* l-one-html.html#ID-58190037">HTMLElement</a>|Array +*/ +_oTrigger: null, + + +/** +* @property _bCancelled +* @description Boolean indicating if the display of the context menu should +* be cancelled. +* @default false +* @private +* @type Boolean +*/ +_bCancelled: false, + + +// Public properties + + +/** +* @property contextEventTarget +* @description Object reference for the HTML element that was the target of the +* "contextmenu" DOM event ("mousedown" for Opera) that triggered the display of +* the context menu. +* @default null +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-58190037">HTMLElement</a> +*/ +contextEventTarget: null, + + + +// Events + + +/** +* @event triggerContextMenuEvent +* @description Custom Event wrapper for the "contextmenu" DOM event +* ("mousedown" for Opera) fired by the element(s) that trigger the display of +* the context menu. +*/ +triggerContextMenuEvent: null, + + + + + +/** +* @method init +* @description The ContextMenu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for +* the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the +* <code><div></code> element of the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying +* the <code><select></code> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.ContextMenuItem; + + } + + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.ContextMenu.superclass.init.call(this, p_oElement); + + + this.beforeInitEvent.fire(YAHOO.widget.ContextMenu); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + + this.initEvent.fire(YAHOO.widget.ContextMenu); + +}, + + +/** +* @method initEvents +* @description Initializes the custom events for the context menu. +*/ +initEvents: function() { + + YAHOO.widget.ContextMenu.superclass.initEvents.call(this); + + // Create custom events + + this.triggerContextMenuEvent = + new YAHOO.util.CustomEvent("triggerContextMenuEvent", this); + +}, + + +/** +* @method cancel +* @description Cancels the display of the context menu. +*/ +cancel: function() { + + this._bCancelled = true; + +}, + + + +// Private methods + + +/** +* @method _removeEventHandlers +* @description Removes all of the DOM event handlers from the HTML element(s) +* whose "context menu" event ("click" for Opera) trigger the display of +* the context menu. +* @private +*/ +_removeEventHandlers: function() { + + var Event = YAHOO.util.Event, + oTrigger = this._oTrigger, + bOpera = (this.browser == "opera"); + + + // Remove the event handlers from the trigger(s) + + Event.removeListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu + ); + + if(bOpera) { + + Event.removeListener(oTrigger, "click", this._onTriggerClick); + + } + +}, + + + +// Private event handlers + + +/** +* @method _onTriggerClick +* @description "click" event handler for the HTML element(s) identified as the +* "trigger" for the context menu. Used to cancel default behaviors in Opera. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerClick: function(p_oEvent, p_oMenu) { + + if(p_oEvent.ctrlKey) { + + YAHOO.util.Event.stopEvent(p_oEvent); + + } + +}, + + +/** +* @method _onTriggerContextMenu +* @description "contextmenu" event handler ("mousedown" for Opera) for the HTML +* element(s) that trigger the display of the context menu. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerContextMenu: function(p_oEvent, p_oMenu) { + + var Event = YAHOO.util.Event; + + if(p_oEvent.type == "mousedown" && !p_oEvent.ctrlKey) { + + return; + + } + + + /* + Prevent the browser's default context menu from appearing and + stop the propagation of the "contextmenu" event so that + other ContextMenu instances are not displayed. + */ + + Event.stopEvent(p_oEvent); + + + // Hide any other ContextMenu instances that might be visible + + YAHOO.widget.MenuManager.hideVisible(); + + + this.contextEventTarget = Event.getTarget(p_oEvent); + + this.triggerContextMenuEvent.fire(p_oEvent); + + + if(!this._bCancelled) { + + // Position and display the context menu + + this.cfg.setProperty("xy", Event.getXY(p_oEvent)); + + this.show(); + + } + + this._bCancelled = false; + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the context menu. +* @return {String} +*/ +toString: function() { + + return ("ContextMenu " + this.id); + +}, + + +/** +* @method initDefaultConfig +* @description Initializes the class's configurable properties which can be +* changed using the context menu's Config object ("cfg"). +*/ +initDefaultConfig: function() { + + YAHOO.widget.ContextMenu.superclass.initDefaultConfig.call(this); + + /** + * @config trigger + * @description The HTML element(s) whose "contextmenu" event ("mousedown" + * for Opera) trigger the display of the context menu. Can be a string + * representing the id attribute of the HTML element, an object reference + * for the HTML element, or an array of strings or HTML element references. + * @default null + * @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|Array + */ + this.cfg.addProperty("trigger", { handler: this.configTrigger }); + +}, + + +/** +* @method destroy +* @description Removes the context menu's <code><div></code> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove the DOM event handlers from the current trigger(s) + + this._removeEventHandlers(); + + + // Continue with the superclass implementation of this method + + YAHOO.widget.ContextMenu.superclass.destroy.call(this); + +}, + + + +// Public event handlers for configuration properties + + +/** +* @method configTrigger +* @description Event handler for when the value of the "trigger" configuration +* property changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that fired the event. +*/ +configTrigger: function(p_sType, p_aArgs, p_oMenu) { + + var Event = YAHOO.util.Event, + oTrigger = p_aArgs[0]; + + if(oTrigger) { + + /* + If there is a current "trigger" - remove the event handlers + from that element(s) before assigning new ones + */ + + if(this._oTrigger) { + + this._removeEventHandlers(); + + } + + this._oTrigger = oTrigger; + + + /* + Listen for the "mousedown" event in Opera b/c it does not + support the "contextmenu" event + */ + + var bOpera = (this.browser == "opera"); + + Event.addListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu, + this, + true + ); + + + /* + Assign a "click" event handler to the trigger element(s) for + Opera to prevent default browser behaviors. + */ + + if(bOpera) { + + Event.addListener( + oTrigger, + "click", + this._onTriggerClick, + this, + true + ); + + } + + } + else { + + this._removeEventHandlers(); + + } + +} + +}); // END YAHOO.lang.extend + + + +/** +* Creates an item for a context menu. +* +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the context +* menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +* @class ContextMenuItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.ContextMenuItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.ContextMenuItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.ContextMenuItem, YAHOO.widget.MenuItem, { + + +/** +* @method init +* @description The ContextMenuItem class's initialization method. This method +* is automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the context +* menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.ContextMenu; + + } + + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.ContextMenuItem.superclass.init.call(this, p_oObject); + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the context menu item. +* @return {String} +*/ +toString: function() { + + return ("ContextMenuItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.lang.extend + + + +/** +* Horizontal collection of items, each of which can contain a submenu. +* +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying +* the <code><div></code> element of the menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object +* specifying the <code><select></code> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +* @class Menubar +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.MenuBar = function(p_oElement, p_oConfig) { + + YAHOO.widget.MenuBar.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.MenuBar, YAHOO.widget.Menu, { + +/** +* @method init +* @description The MenuBar class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying +* the <code><div></code> element of the menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object +* specifying the <code><select></code> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuBarItem; + + } + + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.MenuBar.superclass.init.call(this, p_oElement); + + + this.beforeInitEvent.fire(YAHOO.widget.MenuBar); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + this.initEvent.fire(YAHOO.widget.MenuBar); + +}, + + + +// Constants + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the menu +* bar's <code><div></code> element. +* @default "yuimenubar" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubar", + + + +// Protected event handlers + + +/** +* @method _onKeyDown +* @description "keydown" Custom Event handler for the menu bar. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenuBar) { + + var Event = YAHOO.util.Event, + oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oSubmenu; + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg; + + switch(oEvent.keyCode) { + + case 37: // Left arrow + case 39: // Right arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + var oNextItem = (oEvent.keyCode == 37) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + + if(this.cfg.getProperty("autosubmenudisplay")) { + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + oSubmenu.activeItem.blur(); + oSubmenu.activeItem = null; + + } + + } + + oNextItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + case 40: // Down arrow + + if(this.activeItem != oItem) { + + this.clearActiveItem(); + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + } + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.setInitialSelection(); + oSubmenu.setInitialFocus(); + + } + else { + + oSubmenu.show(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + } + + } + + + if(oEvent.keyCode == 27 && this.activeItem) { // Esc key + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onClick +* @description "click" event handler for the menu bar. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenuBar) { + + YAHOO.widget.MenuBar.superclass._onClick.call( + this, + p_sType, + p_aArgs, + p_oMenuBar + ); + + + var oItem = p_aArgs[1]; + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var Event = YAHOO.util.Event, + Dom = YAHOO.util.Dom, + + oEvent = p_aArgs[0], + oTarget = Event.getTarget(oEvent), + + oActiveItem = this.activeItem, + oConfig = this.cfg; + + + // Hide any other submenus that might be visible + + if(oActiveItem && oActiveItem != oItem) { + + this.clearActiveItem(); + + } + + + // Select and focus the current item + + oItem.cfg.setProperty("selected", true); + oItem.focus(); + + + // Show the submenu for the item + + var oSubmenu = oItem.cfg.getProperty("submenu"); + + + if(oSubmenu && oTarget != oItem.submenuIndicator) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + } + else { + + oSubmenu.show(); + + } + + } + + } + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the menu bar. +* @return {String} +*/ +toString: function() { + + return ("MenuBar " + this.id); + +}, + + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu bar's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.MenuBar.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration properties + + + /* + Set the default value for the "position" configuration property + to "static" by re-adding the property. + */ + + /** + * @config position + * @description String indicating how a menu bar should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menu bars + * are visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menu bars are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and can + * overlay other elements on the screen. + * @default static + * @type String + */ + oConfig.addProperty( + "position", + { + value: "static", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + + /* + Set the default value for the "submenualignment" configuration property + to ["tl","bl"] by re-adding the property. + */ + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu bar item. The format is: [itemCorner, submenuCorner]. + * @default ["tl","bl"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","bl"] } ); + + + /* + Change the default value for the "autosubmenudisplay" configuration + property to "false" by re-adding the property. + */ + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu bar's items. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { value: false, validator: oConfig.checkBoolean } + ); + +} + +}); // END YAHOO.lang.extend + + + +/** +* Creates an item for a menu bar. +* +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +* @class MenuBarItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.MenuBarItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.MenuBarItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.MenuBarItem, YAHOO.widget.MenuItem, { + + +/** +* @method init +* @description The MenuBarItem class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.Menu; + + } + + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.MenuBarItem.superclass.init.call(this, p_oObject); + + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + + + +// Constants + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* <code><li></code> element of the menu bar item. +* @default "yuimenubaritem" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubaritem", + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the menu bar item. +* @return {String} +*/ +toString: function() { + + return ("MenuBarItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.lang.extend +YAHOO.register("menu", YAHOO.widget.Menu, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/menu/menu-min.js b/interface/ispconfig/interface/js/yui/menu/menu-min.js new file mode 100644 index 0000000..d4ca1d7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/menu-min.js @@ -0,0 +1,260 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event;YAHOO.widget.MenuManager=function(){var m_bInitializedEventHandlers=false,m_oMenus={},m_oItems={},m_oVisibleMenus={},me=this;function addItem(p_oItem){var sId=p_oItem.id;if(p_oItem&&m_oItems[sId]!=p_oItem){m_oItems[sId]=p_oItem;p_oItem.destroyEvent.subscribe(onItemDestroy,p_oItem);}} +function removeItem(p_oItem){var sId=p_oItem.id;if(sId&&m_oItems[sId]){delete m_oItems[sId];}} +function getMenuRootElement(p_oElement){var oParentNode;if(p_oElement&&p_oElement.tagName){switch(p_oElement.tagName.toUpperCase()){case"DIV":oParentNode=p_oElement.parentNode;if((Dom.hasClass(p_oElement,"hd")||Dom.hasClass(p_oElement,"bd")||Dom.hasClass(p_oElement,"ft"))&&oParentNode&&oParentNode.tagName&&oParentNode.tagName.toUpperCase()=="DIV"){return oParentNode;} +else{return p_oElement;} +break;case"LI":return p_oElement;default:oParentNode=p_oElement.parentNode;if(oParentNode){return getMenuRootElement(oParentNode);} +break;}}} +function onDOMEvent(p_oEvent){var oTarget=Event.getTarget(p_oEvent),oElement=getMenuRootElement(oTarget),oMenuItem,oMenu;if(oElement){var sTagName=oElement.tagName.toUpperCase();if(sTagName=="LI"){var sId=oElement.id;if(sId&&m_oItems[sId]){oMenuItem=m_oItems[sId];oMenu=oMenuItem.parent;}} +else if(sTagName=="DIV"){if(oElement.id){oMenu=m_oMenus[oElement.id];}}} +if(oMenu){var oEventTypes={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent"},sCustomEventType=oEventTypes[p_oEvent.type];if(oMenuItem&&!oMenuItem.cfg.getProperty("disabled")){oMenuItem[sCustomEventType].fire(p_oEvent);} +oMenu[sCustomEventType].fire(p_oEvent,oMenuItem);} +else if(p_oEvent.type=="mousedown"){var oActiveItem;for(var i in m_oMenus){if(m_oMenus.hasOwnProperty(i)){oMenu=m_oMenus[i];if(oMenu.cfg.getProperty("clicktohide")&&oMenu.cfg.getProperty("position")=="dynamic"){oMenu.hide();} +else{oMenu.clearActiveItem(true);}}}}} +function onMenuDestroy(p_sType,p_aArgs,p_oMenu){if(p_oMenu&&m_oMenus[p_oMenu.id]){delete m_oMenus[p_oMenu.id];}} +function onItemDestroy(p_sType,p_aArgs,p_oItem){var sId=p_oItem.id;if(sId&&m_oItems[sId]){delete m_oItems[sId];}} +function onMenuVisibleConfigChange(p_sType,p_aArgs,p_oMenu){var bVisible=p_aArgs[0];if(bVisible){m_oVisibleMenus[p_oMenu.id]=p_oMenu;} +else if(m_oVisibleMenus[p_oMenu.id]){delete m_oVisibleMenus[p_oMenu.id];}} +function onItemAdded(p_sType,p_aArgs){addItem(p_aArgs[0]);} +function onItemRemoved(p_sType,p_aArgs){removeItem(p_aArgs[0]);} +return{addMenu:function(p_oMenu){if(p_oMenu&&p_oMenu.id&&!m_oMenus[p_oMenu.id]){m_oMenus[p_oMenu.id]=p_oMenu;if(!m_bInitializedEventHandlers){var oDoc=document;Event.addListener(oDoc,"mouseover",onDOMEvent,me,true);Event.addListener(oDoc,"mouseout",onDOMEvent,me,true);Event.addListener(oDoc,"mousedown",onDOMEvent,me,true);Event.addListener(oDoc,"mouseup",onDOMEvent,me,true);Event.addListener(oDoc,"click",onDOMEvent,me,true);Event.addListener(oDoc,"keydown",onDOMEvent,me,true);Event.addListener(oDoc,"keyup",onDOMEvent,me,true);Event.addListener(oDoc,"keypress",onDOMEvent,me,true);m_bInitializedEventHandlers=true;} +p_oMenu.destroyEvent.subscribe(onMenuDestroy,p_oMenu,me);p_oMenu.cfg.subscribeToConfigEvent("visible",onMenuVisibleConfigChange,p_oMenu);p_oMenu.itemAddedEvent.subscribe(onItemAdded);p_oMenu.itemRemovedEvent.subscribe(onItemRemoved);}},removeMenu:function(p_oMenu){if(p_oMenu&&m_oMenus[p_oMenu.id]){delete m_oMenus[p_oMenu.id];}},hideVisible:function(){var oMenu;for(var i in m_oVisibleMenus){if(m_oVisibleMenus.hasOwnProperty(i)){oMenu=m_oVisibleMenus[i];if(oMenu.cfg.getProperty("position")=="dynamic"){oMenu.hide();}}}},getMenus:function(){return m_oMenus;},getMenu:function(p_sId){if(m_oMenus[p_sId]){return m_oMenus[p_sId];}},toString:function(){return("MenuManager");}};}();})();(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event,Lang=YAHOO.lang;YAHOO.widget.Menu=function(p_oElement,p_oConfig){if(p_oConfig){this.parent=p_oConfig.parent;this.lazyLoad=p_oConfig.lazyLoad||p_oConfig.lazyload;this.itemData=p_oConfig.itemData||p_oConfig.itemdata;} +YAHOO.widget.Menu.superclass.constructor.call(this,p_oElement,p_oConfig);};YAHOO.lang.extend(YAHOO.widget.Menu,YAHOO.widget.Overlay,{CSS_CLASS_NAME:"yuimenu",ITEM_TYPE:null,GROUP_TITLE_TAG_NAME:"h6",_nHideDelayId:null,_nShowDelayId:null,_nSubmenuHideDelayId:null,_nBodyScrollId:null,_bHideDelayEventHandlersAssigned:false,_bHandledMouseOverEvent:false,_bHandledMouseOutEvent:false,_aGroupTitleElements:null,_aItemGroups:null,_aListElements:null,_nCurrentMouseX:0,_nMaxHeight:-1,_bStopMouseEventHandlers:false,_sClassName:null,lazyLoad:false,itemData:null,activeItem:null,parent:null,srcElement:null,mouseOverEvent:null,mouseOutEvent:null,mouseDownEvent:null,mouseUpEvent:null,clickEvent:null,keyPressEvent:null,keyDownEvent:null,keyUpEvent:null,itemAddedEvent:null,itemRemovedEvent:null,init:function(p_oElement,p_oConfig){this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuItem;} +var oElement;if(typeof p_oElement=="string"){oElement=document.getElementById(p_oElement);} +else if(p_oElement.tagName){oElement=p_oElement;} +if(oElement&&oElement.tagName){switch(oElement.tagName.toUpperCase()){case"DIV":this.srcElement=oElement;if(!oElement.id){oElement.setAttribute("id",Dom.generateId());} +YAHOO.widget.Menu.superclass.init.call(this,oElement);this.beforeInitEvent.fire(YAHOO.widget.Menu);break;case"SELECT":this.srcElement=oElement;YAHOO.widget.Menu.superclass.init.call(this,Dom.generateId());this.beforeInitEvent.fire(YAHOO.widget.Menu);break;}} +else{YAHOO.widget.Menu.superclass.init.call(this,p_oElement);this.beforeInitEvent.fire(YAHOO.widget.Menu);} +if(this.element){var oEl=this.element;Dom.addClass(oEl,this.CSS_CLASS_NAME);this.initEvent.subscribe(this._onInit,this,true);this.beforeRenderEvent.subscribe(this._onBeforeRender,this,true);this.renderEvent.subscribe(this._setWidth,this,true);this.beforeShowEvent.subscribe(this._onBeforeShow,this,true);this.showEvent.subscribe(this._onShow,this,true);this.beforeHideEvent.subscribe(this._onBeforeHide,this,true);this.hideEvent.subscribe(this._onHide,this,true);this.mouseOverEvent.subscribe(this._onMouseOver,this,true);this.mouseOutEvent.subscribe(this._onMouseOut,this,true);this.clickEvent.subscribe(this._onClick,this,true);this.keyDownEvent.subscribe(this._onKeyDown,this,true);this.keyPressEvent.subscribe(this._onKeyPress,this,true);YAHOO.widget.Module.textResizeEvent.subscribe(this._onTextResize,this,true);if(p_oConfig){this.cfg.applyConfig(p_oConfig,true);} +YAHOO.widget.MenuManager.addMenu(this);this.initEvent.fire(YAHOO.widget.Menu);}},_initSubTree:function(){var oNode;if(this.srcElement.tagName.toUpperCase()=="DIV"){oNode=this.body.firstChild;var nGroup=0,sGroupTitleTagName=this.GROUP_TITLE_TAG_NAME.toUpperCase();do{if(oNode&&oNode.tagName){switch(oNode.tagName.toUpperCase()){case sGroupTitleTagName:this._aGroupTitleElements[nGroup]=oNode;break;case"UL":this._aListElements[nGroup]=oNode;this._aItemGroups[nGroup]=[];nGroup++;break;}}} +while((oNode=oNode.nextSibling));if(this._aListElements[0]){Dom.addClass(this._aListElements[0],"first-of-type");}} +oNode=null;if(this.srcElement.tagName){var sSrcElementTagName=this.srcElement.tagName.toUpperCase();switch(sSrcElementTagName){case"DIV":if(this._aListElements.length>0){var i=this._aListElements.length-1;do{oNode=this._aListElements[i].firstChild;do{if(oNode&&oNode.tagName&&oNode.tagName.toUpperCase()=="LI"){this.addItem(new this.ITEM_TYPE(oNode,{parent:this}),i);}} +while((oNode=oNode.nextSibling));} +while(i--);} +break;case"SELECT":oNode=this.srcElement.firstChild;do{if(oNode&&oNode.tagName){switch(oNode.tagName.toUpperCase()){case"OPTGROUP":case"OPTION":this.addItem(new this.ITEM_TYPE(oNode,{parent:this}));break;}}} +while((oNode=oNode.nextSibling));break;}}},_getFirstEnabledItem:function(){var aItems=this.getItems(),nItems=aItems.length,oItem;for(var i=0;i<nItems;i++){oItem=aItems[i];if(oItem&&!oItem.cfg.getProperty("disabled")&&oItem.element.style.display!="none"){return oItem;}}},_checkPosition:function(p_sPosition){if(typeof p_sPosition=="string"){var sPosition=p_sPosition.toLowerCase();return("dynamic,static".indexOf(sPosition)!=-1);}},_addItemToGroup:function(p_nGroupIndex,p_oItem,p_nItemIndex){var oItem;if(p_oItem instanceof this.ITEM_TYPE){oItem=p_oItem;oItem.parent=this;} +else if(typeof p_oItem=="string"){oItem=new this.ITEM_TYPE(p_oItem,{parent:this});} +else if(typeof p_oItem=="object"){p_oItem.parent=this;oItem=new this.ITEM_TYPE(p_oItem.text,p_oItem);} +if(oItem){var nGroupIndex=typeof p_nGroupIndex=="number"?p_nGroupIndex:0,aGroup=this._getItemGroup(nGroupIndex),oGroupItem;if(!aGroup){aGroup=this._createItemGroup(nGroupIndex);} +if(typeof p_nItemIndex=="number"){var bAppend=(p_nItemIndex>=aGroup.length);if(aGroup[p_nItemIndex]){aGroup.splice(p_nItemIndex,0,oItem);} +else{aGroup[p_nItemIndex]=oItem;} +oGroupItem=aGroup[p_nItemIndex];if(oGroupItem){if(bAppend&&(!oGroupItem.element.parentNode||oGroupItem.element.parentNode.nodeType==11)){this._aListElements[nGroupIndex].appendChild(oGroupItem.element);} +else{function getNextItemSibling(p_aArray,p_nStartIndex){return(p_aArray[p_nStartIndex]||getNextItemSibling(p_aArray,(p_nStartIndex+1)));} +var oNextItemSibling=getNextItemSibling(aGroup,(p_nItemIndex+1));if(oNextItemSibling&&(!oGroupItem.element.parentNode||oGroupItem.element.parentNode.nodeType==11)){this._aListElements[nGroupIndex].insertBefore(oGroupItem.element,oNextItemSibling.element);}} +oGroupItem.parent=this;this._subscribeToItemEvents(oGroupItem);this._configureSubmenu(oGroupItem);this._updateItemProperties(nGroupIndex);this.itemAddedEvent.fire(oGroupItem);return oGroupItem;}} +else{var nItemIndex=aGroup.length;aGroup[nItemIndex]=oItem;oGroupItem=aGroup[nItemIndex];if(oGroupItem){if(!Dom.isAncestor(this._aListElements[nGroupIndex],oGroupItem.element)){this._aListElements[nGroupIndex].appendChild(oGroupItem.element);} +oGroupItem.element.setAttribute("groupindex",nGroupIndex);oGroupItem.element.setAttribute("index",nItemIndex);oGroupItem.parent=this;oGroupItem.index=nItemIndex;oGroupItem.groupIndex=nGroupIndex;this._subscribeToItemEvents(oGroupItem);this._configureSubmenu(oGroupItem);if(nItemIndex===0){Dom.addClass(oGroupItem.element,"first-of-type");} +this.itemAddedEvent.fire(oGroupItem);return oGroupItem;}}}},_removeItemFromGroupByIndex:function(p_nGroupIndex,p_nItemIndex){var nGroupIndex=typeof p_nGroupIndex=="number"?p_nGroupIndex:0,aGroup=this._getItemGroup(nGroupIndex);if(aGroup){var aArray=aGroup.splice(p_nItemIndex,1),oItem=aArray[0];if(oItem){this._updateItemProperties(nGroupIndex);if(aGroup.length===0){var oUL=this._aListElements[nGroupIndex];if(this.body&&oUL){this.body.removeChild(oUL);} +this._aItemGroups.splice(nGroupIndex,1);this._aListElements.splice(nGroupIndex,1);oUL=this._aListElements[0];if(oUL){Dom.addClass(oUL,"first-of-type");}} +this.itemRemovedEvent.fire(oItem);return oItem;}}},_removeItemFromGroupByValue:function(p_nGroupIndex,p_oItem){var aGroup=this._getItemGroup(p_nGroupIndex);if(aGroup){var nItems=aGroup.length,nItemIndex=-1;if(nItems>0){var i=nItems-1;do{if(aGroup[i]==p_oItem){nItemIndex=i;break;}} +while(i--);if(nItemIndex>-1){return this._removeItemFromGroupByIndex(p_nGroupIndex,nItemIndex);}}}},_updateItemProperties:function(p_nGroupIndex){var aGroup=this._getItemGroup(p_nGroupIndex),nItems=aGroup.length;if(nItems>0){var i=nItems-1,oItem,oLI;do{oItem=aGroup[i];if(oItem){oLI=oItem.element;oItem.index=i;oItem.groupIndex=p_nGroupIndex;oLI.setAttribute("groupindex",p_nGroupIndex);oLI.setAttribute("index",i);Dom.removeClass(oLI,"first-of-type");}} +while(i--);if(oLI){Dom.addClass(oLI,"first-of-type");}}},_createItemGroup:function(p_nIndex){if(!this._aItemGroups[p_nIndex]){this._aItemGroups[p_nIndex]=[];var oUL=document.createElement("ul");this._aListElements[p_nIndex]=oUL;return this._aItemGroups[p_nIndex];}},_getItemGroup:function(p_nIndex){var nIndex=((typeof p_nIndex=="number")?p_nIndex:0);return this._aItemGroups[nIndex];},_configureSubmenu:function(p_oItem){var oSubmenu=p_oItem.cfg.getProperty("submenu");if(oSubmenu){this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange,oSubmenu,true);this.renderEvent.subscribe(this._onParentMenuRender,oSubmenu,true);oSubmenu.beforeShowEvent.subscribe(this._onSubmenuBeforeShow,oSubmenu,true);oSubmenu.showEvent.subscribe(this._onSubmenuShow,oSubmenu,true);oSubmenu.hideEvent.subscribe(this._onSubmenuHide,oSubmenu,true);}},_subscribeToItemEvents:function(p_oItem){p_oItem.focusEvent.subscribe(this._onMenuItemFocus,p_oItem,this);p_oItem.blurEvent.subscribe(this._onMenuItemBlur,this,true);p_oItem.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,p_oItem,this);},_getOffsetWidth:function(){var oClone=this.element.cloneNode(true);Dom.setStyle(oClone,"width","");document.body.appendChild(oClone);var sWidth=oClone.offsetWidth;document.body.removeChild(oClone);return sWidth;},_setWidth:function(){if(this.cfg.getProperty("position")=="dynamic"){var sWidth;if(this.element.parentNode.tagName.toUpperCase()=="BODY"){if(this.browser=="opera"){sWidth=this._getOffsetWidth();} +else{Dom.setStyle(this.element,"width","auto");sWidth=this.element.offsetWidth;}} +else{sWidth=this._getOffsetWidth();} +this.cfg.setProperty("width",(sWidth+"px"));}},_cancelHideDelay:function(){var oRoot=this.getRoot();if(oRoot._nHideDelayId){window.clearTimeout(oRoot._nHideDelayId);}},_execHideDelay:function(){this._cancelHideDelay();var oRoot=this.getRoot(),me=this;function hideMenu(){if(oRoot.activeItem){oRoot.clearActiveItem();} +if(oRoot==me&&me.cfg.getProperty("position")=="dynamic"){me.hide();}} +oRoot._nHideDelayId=window.setTimeout(hideMenu,oRoot.cfg.getProperty("hidedelay"));},_cancelShowDelay:function(){var oRoot=this.getRoot();if(oRoot._nShowDelayId){window.clearTimeout(oRoot._nShowDelayId);}},_execShowDelay:function(p_oMenu){var oRoot=this.getRoot();function showMenu(){if(p_oMenu.parent.cfg.getProperty("selected")){p_oMenu.show();}} +oRoot._nShowDelayId=window.setTimeout(showMenu,oRoot.cfg.getProperty("showdelay"));},_execSubmenuHideDelay:function(p_oSubmenu,p_nMouseX,p_nHideDelay){var me=this;p_oSubmenu._nSubmenuHideDelayId=window.setTimeout(function(){if(me._nCurrentMouseX>(p_nMouseX+10)){p_oSubmenu._nSubmenuHideDelayId=window.setTimeout(function(){p_oSubmenu.hide();},p_nHideDelay);} +else{p_oSubmenu.hide();}},50);},_disableScrollHeader:function(){if(!this._bHeaderDisabled){Dom.addClass(this.header,"topscrollbar_disabled");this._bHeaderDisabled=true;}},_disableScrollFooter:function(){if(!this._bFooterDisabled){Dom.addClass(this.footer,"bottomscrollbar_disabled");this._bFooterDisabled=true;}},_enableScrollHeader:function(){if(this._bHeaderDisabled){Dom.removeClass(this.header,"topscrollbar_disabled");this._bHeaderDisabled=false;}},_enableScrollFooter:function(){if(this._bFooterDisabled){Dom.removeClass(this.footer,"bottomscrollbar_disabled");this._bFooterDisabled=false;}},_onMouseOver:function(p_sType,p_aArgs,p_oMenu){if(this._bStopMouseEventHandlers){return false;} +var oEvent=p_aArgs[0],oItem=p_aArgs[1],oTarget=Event.getTarget(oEvent);if(!this._bHandledMouseOverEvent&&(oTarget==this.element||Dom.isAncestor(this.element,oTarget))){this._nCurrentMouseX=0;Event.addListener(this.element,"mousemove",this._onMouseMove,this,true);this.clearActiveItem();if(this.parent&&this._nSubmenuHideDelayId){window.clearTimeout(this._nSubmenuHideDelayId);this.parent.cfg.setProperty("selected",true);var oParentMenu=this.parent.parent;oParentMenu.activeItem=this.parent;oParentMenu._bHandledMouseOutEvent=true;oParentMenu._bHandledMouseOverEvent=false;} +this._bHandledMouseOverEvent=true;this._bHandledMouseOutEvent=false;} +if(oItem&&!oItem.handledMouseOverEvent&&!oItem.cfg.getProperty("disabled")&&(oTarget==oItem.element||Dom.isAncestor(oItem.element,oTarget))){var nShowDelay=this.cfg.getProperty("showdelay"),bShowDelay=(nShowDelay>0);if(bShowDelay){this._cancelShowDelay();} +var oActiveItem=this.activeItem;if(oActiveItem){oActiveItem.cfg.setProperty("selected",false);} +var oItemCfg=oItem.cfg;oItemCfg.setProperty("selected",true);oItem.focus();if(this.cfg.getProperty("autosubmenudisplay")){var oSubmenu=oItemCfg.getProperty("submenu");if(oSubmenu){if(bShowDelay){this._execShowDelay(oSubmenu);} +else{oSubmenu.show();}}} +oItem.handledMouseOverEvent=true;oItem.handledMouseOutEvent=false;}},_onMouseOut:function(p_sType,p_aArgs,p_oMenu){if(this._bStopMouseEventHandlers){return false;} +var oEvent=p_aArgs[0],oItem=p_aArgs[1],oRelatedTarget=Event.getRelatedTarget(oEvent),bMovingToSubmenu=false;if(oItem&&!oItem.cfg.getProperty("disabled")){var oItemCfg=oItem.cfg,oSubmenu=oItemCfg.getProperty("submenu");if(oSubmenu&&(oRelatedTarget==oSubmenu.element||Dom.isAncestor(oSubmenu.element,oRelatedTarget))){bMovingToSubmenu=true;} +if(!oItem.handledMouseOutEvent&&((oRelatedTarget!=oItem.element&&!Dom.isAncestor(oItem.element,oRelatedTarget))||bMovingToSubmenu)){if(!bMovingToSubmenu){oItem.cfg.setProperty("selected",false);if(oSubmenu){var nSubmenuHideDelay=this.cfg.getProperty("submenuhidedelay"),nShowDelay=this.cfg.getProperty("showdelay");if(!(this instanceof YAHOO.widget.MenuBar)&&nSubmenuHideDelay>0&&nShowDelay>=nSubmenuHideDelay){this._execSubmenuHideDelay(oSubmenu,Event.getPageX(oEvent),nSubmenuHideDelay);} +else{oSubmenu.hide();}}} +oItem.handledMouseOutEvent=true;oItem.handledMouseOverEvent=false;}} +if(!this._bHandledMouseOutEvent&&((oRelatedTarget!=this.element&&!Dom.isAncestor(this.element,oRelatedTarget))||bMovingToSubmenu)){Event.removeListener(this.element,"mousemove",this._onMouseMove);this._nCurrentMouseX=Event.getPageX(oEvent);this._bHandledMouseOutEvent=true;this._bHandledMouseOverEvent=false;}},_onMouseMove:function(p_oEvent,p_oMenu){if(this._bStopMouseEventHandlers){return false;} +this._nCurrentMouseX=Event.getPageX(p_oEvent);},_onClick:function(p_sType,p_aArgs,p_oMenu){var oEvent=p_aArgs[0],oItem=p_aArgs[1],oTarget=Event.getTarget(oEvent);if(oItem&&!oItem.cfg.getProperty("disabled")){var oItemCfg=oItem.cfg,oSubmenu=oItemCfg.getProperty("submenu");if(oTarget==oItem.submenuIndicator&&oSubmenu){if(oSubmenu.cfg.getProperty("visible")){oSubmenu.hide();oSubmenu.parent.focus();} +else{this.clearActiveItem();this.activeItem=oItem;oItem.cfg.setProperty("selected",true);oSubmenu.show();}} +else{var sURL=oItemCfg.getProperty("url"),bCurrentPageURL=(sURL.substr((sURL.length-1),1)=="#"),sTarget=oItemCfg.getProperty("target"),bHasTarget=(sTarget&&sTarget.length>0);if(oTarget.tagName.toUpperCase()=="A"&&bCurrentPageURL&&!bHasTarget){Event.preventDefault(oEvent);} +if(oTarget.tagName.toUpperCase()!="A"&&!bCurrentPageURL&&!bHasTarget){document.location=sURL;} +if(bCurrentPageURL&&!oSubmenu){var oRoot=this.getRoot();if(oRoot.cfg.getProperty("position")=="static"){oRoot.clearActiveItem();} +else if(oRoot.cfg.getProperty("clicktohide")){oRoot.hide();}}}}},_onKeyDown:function(p_sType,p_aArgs,p_oMenu){var oEvent=p_aArgs[0],oItem=p_aArgs[1],me=this,oSubmenu;function stopMouseEventHandlers(){me._bStopMouseEventHandlers=true;window.setTimeout(function(){me._bStopMouseEventHandlers=false;},10);} +if(oItem&&!oItem.cfg.getProperty("disabled")){var oItemCfg=oItem.cfg,oParentItem=this.parent,oRoot,oNextItem;switch(oEvent.keyCode){case 38:case 40:if(oItem==this.activeItem&&!oItemCfg.getProperty("selected")){oItemCfg.setProperty("selected",true);} +else{oNextItem=(oEvent.keyCode==38)?oItem.getPreviousEnabledSibling():oItem.getNextEnabledSibling();if(oNextItem){this.clearActiveItem();oNextItem.cfg.setProperty("selected",true);oNextItem.focus();if(this.cfg.getProperty("maxheight")>0){var oBody=this.body;oBody.scrollTop=(oNextItem.element.offsetTop+ +oNextItem.element.offsetHeight)-oBody.offsetHeight;var nScrollTop=oBody.scrollTop,nScrollTarget=oBody.scrollHeight-oBody.offsetHeight;if(nScrollTop===0){this._disableScrollHeader();this._enableScrollFooter();} +else if(nScrollTop==nScrollTarget){this._enableScrollHeader();this._disableScrollFooter();} +else{this._enableScrollHeader();this._enableScrollFooter();}}}} +Event.preventDefault(oEvent);stopMouseEventHandlers();break;case 39:oSubmenu=oItemCfg.getProperty("submenu");if(oSubmenu){if(!oItemCfg.getProperty("selected")){oItemCfg.setProperty("selected",true);} +oSubmenu.show();oSubmenu.setInitialSelection();} +else{oRoot=this.getRoot();if(oRoot instanceof YAHOO.widget.MenuBar){oNextItem=oRoot.activeItem.getNextEnabledSibling();if(oNextItem){oRoot.clearActiveItem();oNextItem.cfg.setProperty("selected",true);oSubmenu=oNextItem.cfg.getProperty("submenu");if(oSubmenu){oSubmenu.show();} +oNextItem.focus();}}} +Event.preventDefault(oEvent);stopMouseEventHandlers();break;case 37:if(oParentItem){var oParentMenu=oParentItem.parent;if(oParentMenu instanceof YAHOO.widget.MenuBar){oNextItem=oParentMenu.activeItem.getPreviousEnabledSibling();if(oNextItem){oParentMenu.clearActiveItem();oNextItem.cfg.setProperty("selected",true);oSubmenu=oNextItem.cfg.getProperty("submenu");if(oSubmenu){oSubmenu.show();} +oNextItem.focus();}} +else{this.hide();oParentItem.focus();}} +Event.preventDefault(oEvent);stopMouseEventHandlers();break;}} +if(oEvent.keyCode==27){if(this.cfg.getProperty("position")=="dynamic"){this.hide();if(this.parent){this.parent.focus();}} +else if(this.activeItem){oSubmenu=this.activeItem.cfg.getProperty("submenu");if(oSubmenu&&oSubmenu.cfg.getProperty("visible")){oSubmenu.hide();this.activeItem.focus();} +else{this.activeItem.cfg.setProperty("selected",false);this.activeItem.blur();}} +Event.preventDefault(oEvent);}},_onKeyPress:function(p_sType,p_aArgs,p_oMenu){var oEvent=p_aArgs[0];if(oEvent.keyCode==40||oEvent.keyCode==38){YAHOO.util.Event.preventDefault(oEvent);}},_onTextResize:function(p_sType,p_aArgs,p_oMenu){if(this.browser=="gecko"&&!this._handleResize){this._handleResize=true;return;} +var oConfig=this.cfg;if(oConfig.getProperty("position")=="dynamic"){oConfig.setProperty("width",(this._getOffsetWidth()+"px"));}},_onScrollTargetMouseOver:function(p_oEvent,p_oMenu){this._cancelHideDelay();var oTarget=Event.getTarget(p_oEvent),oBody=this.body,me=this,nScrollTarget,fnScrollFunction;function scrollBodyDown(){var nScrollTop=oBody.scrollTop;if(nScrollTop<nScrollTarget){oBody.scrollTop=(nScrollTop+1);me._enableScrollHeader();} +else{oBody.scrollTop=nScrollTarget;window.clearInterval(me._nBodyScrollId);me._disableScrollFooter();}} +function scrollBodyUp(){var nScrollTop=oBody.scrollTop;if(nScrollTop>0){oBody.scrollTop=(nScrollTop-1);me._enableScrollFooter();} +else{oBody.scrollTop=0;window.clearInterval(me._nBodyScrollId);me._disableScrollHeader();}} +if(Dom.hasClass(oTarget,"hd")){fnScrollFunction=scrollBodyUp;} +else{nScrollTarget=oBody.scrollHeight-oBody.offsetHeight;fnScrollFunction=scrollBodyDown;} +this._nBodyScrollId=window.setInterval(fnScrollFunction,10);},_onScrollTargetMouseOut:function(p_oEvent,p_oMenu){window.clearInterval(this._nBodyScrollId);this._cancelHideDelay();},_onInit:function(p_sType,p_aArgs,p_oMenu){if(((this.parent&&!this.lazyLoad)||(!this.parent&&this.cfg.getProperty("position")=="static")||(!this.parent&&!this.lazyLoad&&this.cfg.getProperty("position")=="dynamic"))&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();} +if(this.itemData){this.addItems(this.itemData);}} +else if(this.lazyLoad){this.cfg.fireQueue();}},_onBeforeRender:function(p_sType,p_aArgs,p_oMenu){var oConfig=this.cfg,oEl=this.element,nListElements=this._aListElements.length;if(nListElements>0){var i=0,bFirstList=true,oUL,oGroupTitle;do{oUL=this._aListElements[i];if(oUL){if(bFirstList){Dom.addClass(oUL,"first-of-type");bFirstList=false;} +if(!Dom.isAncestor(oEl,oUL)){this.appendToBody(oUL);} +oGroupTitle=this._aGroupTitleElements[i];if(oGroupTitle){if(!Dom.isAncestor(oEl,oGroupTitle)){oUL.parentNode.insertBefore(oGroupTitle,oUL);} +Dom.addClass(oUL,"hastitle");}} +i++;} +while(i<nListElements);}},_onBeforeShow:function(p_sType,p_aArgs,p_oMenu){if(this.lazyLoad&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();} +if(this.itemData){if(this.parent&&this.parent.parent&&this.parent.parent.srcElement&&this.parent.parent.srcElement.tagName.toUpperCase()=="SELECT"){var nOptions=this.itemData.length;for(var n=0;n<nOptions;n++){if(this.itemData[n].tagName){this.addItem((new this.ITEM_TYPE(this.itemData[n])));}}} +else{this.addItems(this.itemData);}} +var oSrcElement=this.srcElement;if(oSrcElement){if(oSrcElement.tagName.toUpperCase()=="SELECT"){if(Dom.inDocument(oSrcElement)){this.render(oSrcElement.parentNode);} +else{this.render(this.cfg.getProperty("container"));}} +else{this.render();}} +else{if(this.parent){this.render(this.parent.element);} +else{this.render(this.cfg.getProperty("container"));}}} +if(this.cfg.getProperty("position")=="dynamic"){var nViewportHeight=Dom.getViewportHeight();if(this.element.offsetHeight>=nViewportHeight){var nMaxHeight=this.cfg.getProperty("maxheight");this._nMaxHeight=nMaxHeight;this.cfg.setProperty("maxheight",(nViewportHeight-20));} +if(this.cfg.getProperty("maxheight")>0){var oBody=this.body;if(oBody.scrollTop>0){oBody.scrollTop=0;} +this._disableScrollHeader();this._enableScrollFooter();}}},_onShow:function(p_sType,p_aArgs,p_oMenu){this.setInitialFocus();var oParent=this.parent;if(oParent){var oParentMenu=oParent.parent,aParentAlignment=oParentMenu.cfg.getProperty("submenualignment"),aAlignment=this.cfg.getProperty("submenualignment");if((aParentAlignment[0]!=aAlignment[0])&&(aParentAlignment[1]!=aAlignment[1])){this.cfg.setProperty("submenualignment",[aParentAlignment[0],aParentAlignment[1]]);} +if(!oParentMenu.cfg.getProperty("autosubmenudisplay")&&oParentMenu.cfg.getProperty("position")=="static"){oParentMenu.cfg.setProperty("autosubmenudisplay",true);function disableAutoSubmenuDisplay(p_oEvent){if(p_oEvent.type=="mousedown"||(p_oEvent.type=="keydown"&&p_oEvent.keyCode==27)){var oTarget=Event.getTarget(p_oEvent);if(oTarget!=oParentMenu.element||!YAHOO.util.Dom.isAncestor(oParentMenu.element,oTarget)){oParentMenu.cfg.setProperty("autosubmenudisplay",false);Event.removeListener(document,"mousedown",disableAutoSubmenuDisplay);Event.removeListener(document,"keydown",disableAutoSubmenuDisplay);}}} +Event.addListener(document,"mousedown",disableAutoSubmenuDisplay);Event.addListener(document,"keydown",disableAutoSubmenuDisplay);}} +else if(!oParent&&this.lazyLoad){this.cfg.refireEvent("xy");}},_onBeforeHide:function(p_sType,p_aArgs,p_oMenu){var oActiveItem=this.activeItem;if(oActiveItem){var oConfig=oActiveItem.cfg;oConfig.setProperty("selected",false);var oSubmenu=oConfig.getProperty("submenu");if(oSubmenu){oSubmenu.hide();} +oActiveItem.blur();}},_onHide:function(p_sType,p_aArgs,p_oMenu){if(this._nMaxHeight!=-1){this.cfg.setProperty("maxheight",this._nMaxHeight);this._nMaxHeight=-1;}},_onParentMenuConfigChange:function(p_sType,p_aArgs,p_oSubmenu){var sPropertyName=p_aArgs[0][0],oPropertyValue=p_aArgs[0][1];switch(sPropertyName){case"iframe":case"constraintoviewport":case"hidedelay":case"showdelay":case"submenuhidedelay":case"clicktohide":case"effect":case"classname":p_oSubmenu.cfg.setProperty(sPropertyName,oPropertyValue);break;}},_onParentMenuRender:function(p_sType,p_aArgs,p_oSubmenu){var oParentMenu=p_oSubmenu.parent.parent,oConfig={constraintoviewport:oParentMenu.cfg.getProperty("constraintoviewport"),xy:[0,0],clicktohide:oParentMenu.cfg.getProperty("clicktohide"),effect:oParentMenu.cfg.getProperty("effect"),showdelay:oParentMenu.cfg.getProperty("showdelay"),hidedelay:oParentMenu.cfg.getProperty("hidedelay"),submenuhidedelay:oParentMenu.cfg.getProperty("submenuhidedelay"),classname:oParentMenu.cfg.getProperty("classname")};if(this.cfg.getProperty("position")==oParentMenu.cfg.getProperty("position")){oConfig.iframe=oParentMenu.cfg.getProperty("iframe");} +p_oSubmenu.cfg.applyConfig(oConfig);if(!this.lazyLoad){var oLI=this.parent.element;if(this.element.parentNode==oLI){this.render();} +else{this.render(oLI);}}},_onSubmenuBeforeShow:function(p_sType,p_aArgs,p_oSubmenu){var oParent=this.parent,aAlignment=oParent.parent.cfg.getProperty("submenualignment");this.cfg.setProperty("context",[oParent.element,aAlignment[0],aAlignment[1]]);var nScrollTop=oParent.parent.body.scrollTop;if((this.browser=="gecko"||this.browser=="safari")&&nScrollTop>0){this.cfg.setProperty("y",(this.cfg.getProperty("y")-nScrollTop));}},_onSubmenuShow:function(p_sType,p_aArgs,p_oSubmenu){var oParent=this.parent;oParent.submenuIndicator.firstChild.nodeValue=oParent.EXPANDED_SUBMENU_INDICATOR_TEXT;},_onSubmenuHide:function(p_sType,p_aArgs,p_oSubmenu){var oParent=this.parent;oParent.submenuIndicator.firstChild.nodeValue=oParent.COLLAPSED_SUBMENU_INDICATOR_TEXT;},_onMenuItemFocus:function(p_sType,p_aArgs,p_oItem){this.activeItem=p_oItem;},_onMenuItemBlur:function(p_sType,p_aArgs){this.activeItem=null;},_onMenuItemConfigChange:function(p_sType,p_aArgs,p_oItem){var sProperty=p_aArgs[0][0];switch(sProperty){case"submenu":var oSubmenu=p_aArgs[0][1];if(oSubmenu){this._configureSubmenu(p_oItem);} +break;case"text":case"helptext":if(this.element.style.width){var sWidth=this._getOffsetWidth()+"px";Dom.setStyle(this.element,"width",sWidth);} +break;}},enforceConstraints:function(type,args,obj){var oConfig=this.cfg,pos=args[0],x=pos[0],y=pos[1],offsetHeight=this.element.offsetHeight,offsetWidth=this.element.offsetWidth,viewPortWidth=YAHOO.util.Dom.getViewportWidth(),viewPortHeight=YAHOO.util.Dom.getViewportHeight(),scrollX=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollY=Math.max(document.documentElement.scrollTop,document.body.scrollTop),nPadding=(this.parent&&this.parent.parent instanceof YAHOO.widget.MenuBar)?0:10,topConstraint=scrollY+nPadding,leftConstraint=scrollX+nPadding,bottomConstraint=scrollY+viewPortHeight-offsetHeight-nPadding,rightConstraint=scrollX+viewPortWidth-offsetWidth-nPadding,aContext=oConfig.getProperty("context"),oContextElement=aContext?aContext[0]:null;if(x<10){x=leftConstraint;}else if((x+offsetWidth)>viewPortWidth){if(oContextElement&&((x-oContextElement.offsetWidth)>offsetWidth)){x=(x-(oContextElement.offsetWidth+offsetWidth));} +else{x=rightConstraint;}} +if(y<10){y=topConstraint;}else if(y>bottomConstraint){if(oContextElement&&(y>offsetHeight)){y=((y+oContextElement.offsetHeight)-offsetHeight);} +else{y=bottomConstraint;}} +oConfig.setProperty("x",x,true);oConfig.setProperty("y",y,true);oConfig.setProperty("xy",[x,y],true);},configVisible:function(p_sType,p_aArgs,p_oMenu){if(this.cfg.getProperty("position")=="dynamic"){YAHOO.widget.Menu.superclass.configVisible.call(this,p_sType,p_aArgs,p_oMenu);} +else{var bVisible=p_aArgs[0],sDisplay=Dom.getStyle(this.element,"display");if(bVisible){if(sDisplay!="block"){this.beforeShowEvent.fire();Dom.setStyle(this.element,"display","block");this.showEvent.fire();}} +else{if(sDisplay=="block"){this.beforeHideEvent.fire();Dom.setStyle(this.element,"display","none");this.hideEvent.fire();}}}},configPosition:function(p_sType,p_aArgs,p_oMenu){var sCSSPosition=p_aArgs[0]=="static"?"static":"absolute",oCfg=this.cfg;Dom.setStyle(this.element,"position",sCSSPosition);if(sCSSPosition=="static"){oCfg.setProperty("iframe",false);Dom.setStyle(this.element,"display","block");oCfg.setProperty("visible",true);} +else{Dom.setStyle(this.element,"visibility","hidden");} +if(sCSSPosition=="absolute"){var nZIndex=oCfg.getProperty("zindex");if(!nZIndex||nZIndex===0){nZIndex=this.parent?(this.parent.parent.cfg.getProperty("zindex")+1):1;oCfg.setProperty("zindex",nZIndex);}}},configIframe:function(p_sType,p_aArgs,p_oMenu){if(this.cfg.getProperty("position")=="dynamic"){YAHOO.widget.Menu.superclass.configIframe.call(this,p_sType,p_aArgs,p_oMenu);}},configHideDelay:function(p_sType,p_aArgs,p_oMenu){var nHideDelay=p_aArgs[0],oMouseOutEvent=this.mouseOutEvent,oMouseOverEvent=this.mouseOverEvent,oKeyDownEvent=this.keyDownEvent;if(nHideDelay>0){if(!this._bHideDelayEventHandlersAssigned){oMouseOutEvent.subscribe(this._execHideDelay,true);oMouseOverEvent.subscribe(this._cancelHideDelay,this,true);oKeyDownEvent.subscribe(this._cancelHideDelay,this,true);this._bHideDelayEventHandlersAssigned=true;}} +else{oMouseOutEvent.unsubscribe(this._execHideDelay,this);oMouseOverEvent.unsubscribe(this._cancelHideDelay,this);oKeyDownEvent.unsubscribe(this._cancelHideDelay,this);this._bHideDelayEventHandlersAssigned=false;}},configContainer:function(p_sType,p_aArgs,p_oMenu){var oElement=p_aArgs[0];if(typeof oElement=='string'){this.cfg.setProperty("container",document.getElementById(oElement),true);}},configMaxHeight:function(p_sType,p_aArgs,p_oMenu){var nMaxHeight=p_aArgs[0],oBody=this.body,oHeader=this.header,oFooter=this.footer,fnMouseOver=this._onScrollTargetMouseOver,fnMouseOut=this._onScrollTargetMouseOut;if((nMaxHeight>0)&&(oBody.offsetHeight>nMaxHeight)){if(!this.cfg.getProperty("width")){this._setWidth();} +if(!oHeader&&!oFooter){this.setHeader(" ");this.setFooter(" ");oHeader=this.header;oFooter=this.footer;Dom.addClass(oHeader,"topscrollbar");Dom.addClass(oFooter,"bottomscrollbar");this.element.insertBefore(oHeader,oBody);this.element.appendChild(oFooter);Event.addListener(oHeader,"mouseover",fnMouseOver,this,true);Event.addListener(oHeader,"mouseout",fnMouseOut,this,true);Event.addListener(oFooter,"mouseover",fnMouseOver,this,true);Event.addListener(oFooter,"mouseout",fnMouseOut,this,true);} +var nHeight=(nMaxHeight- +(this.footer.offsetHeight+this.header.offsetHeight));Dom.setStyle(oBody,"height",(nHeight+"px"));Dom.setStyle(oBody,"overflow","hidden");} +else if(oHeader&&oFooter){Dom.setStyle(oBody,"height","auto");Dom.setStyle(oBody,"overflow","visible");Event.removeListener(oHeader,"mouseover",fnMouseOver);Event.removeListener(oHeader,"mouseout",fnMouseOut);Event.removeListener(oFooter,"mouseover",fnMouseOver);Event.removeListener(oFooter,"mouseout",fnMouseOut);this.element.removeChild(oHeader);this.element.removeChild(oFooter);this.header=null;this.footer=null;}},configClassName:function(p_sType,p_aArgs,p_oMenu){var sClassName=p_aArgs[0];if(this._sClassName){Dom.removeClass(this.element,this._sClassName);} +Dom.addClass(this.element,sClassName);this._sClassName=sClassName;},initEvents:function(){YAHOO.widget.Menu.superclass.initEvents.call(this);var CustomEvent=YAHOO.util.CustomEvent;this.mouseOverEvent=new CustomEvent("mouseOverEvent",this);this.mouseOutEvent=new CustomEvent("mouseOutEvent",this);this.mouseDownEvent=new CustomEvent("mouseDownEvent",this);this.mouseUpEvent=new CustomEvent("mouseUpEvent",this);this.clickEvent=new CustomEvent("clickEvent",this);this.keyPressEvent=new CustomEvent("keyPressEvent",this);this.keyDownEvent=new CustomEvent("keyDownEvent",this);this.keyUpEvent=new CustomEvent("keyUpEvent",this);this.itemAddedEvent=new CustomEvent("itemAddedEvent",this);this.itemRemovedEvent=new CustomEvent("itemRemovedEvent",this);},getRoot:function(){var oItem=this.parent;if(oItem){var oParentMenu=oItem.parent;return oParentMenu?oParentMenu.getRoot():this;} +else{return this;}},toString:function(){return("Menu "+this.id);},setItemGroupTitle:function(p_sGroupTitle,p_nGroupIndex){if(typeof p_sGroupTitle=="string"&&p_sGroupTitle.length>0){var nGroupIndex=typeof p_nGroupIndex=="number"?p_nGroupIndex:0,oTitle=this._aGroupTitleElements[nGroupIndex];if(oTitle){oTitle.innerHTML=p_sGroupTitle;} +else{oTitle=document.createElement(this.GROUP_TITLE_TAG_NAME);oTitle.innerHTML=p_sGroupTitle;this._aGroupTitleElements[nGroupIndex]=oTitle;} +var i=this._aGroupTitleElements.length-1,nFirstIndex;do{if(this._aGroupTitleElements[i]){Dom.removeClass(this._aGroupTitleElements[i],"first-of-type");nFirstIndex=i;}} +while(i--);if(nFirstIndex!==null){Dom.addClass(this._aGroupTitleElements[nFirstIndex],"first-of-type");}}},addItem:function(p_oItem,p_nGroupIndex){if(p_oItem){return this._addItemToGroup(p_nGroupIndex,p_oItem);}},addItems:function(p_aItems,p_nGroupIndex){if(Lang.isArray(p_aItems)){var nItems=p_aItems.length,aItems=[],oItem;for(var i=0;i<nItems;i++){oItem=p_aItems[i];if(oItem){if(Lang.isArray(oItem)){aItems[aItems.length]=this.addItems(oItem,i);} +else{aItems[aItems.length]=this._addItemToGroup(p_nGroupIndex,oItem);}}} +if(aItems.length){return aItems;}}},insertItem:function(p_oItem,p_nItemIndex,p_nGroupIndex){if(p_oItem){return this._addItemToGroup(p_nGroupIndex,p_oItem,p_nItemIndex);}},removeItem:function(p_oObject,p_nGroupIndex){if(typeof p_oObject!="undefined"){var oItem;if(p_oObject instanceof YAHOO.widget.MenuItem){oItem=this._removeItemFromGroupByValue(p_nGroupIndex,p_oObject);} +else if(typeof p_oObject=="number"){oItem=this._removeItemFromGroupByIndex(p_nGroupIndex,p_oObject);} +if(oItem){oItem.destroy();return oItem;}}},getItems:function(){var aGroups=this._aItemGroups,nGroups=aGroups.length;return((nGroups==1)?aGroups[0]:(Array.prototype.concat.apply([],aGroups)));},getItemGroups:function(){return this._aItemGroups;},getItem:function(p_nItemIndex,p_nGroupIndex){if(typeof p_nItemIndex=="number"){var aGroup=this._getItemGroup(p_nGroupIndex);if(aGroup){return aGroup[p_nItemIndex];}}},clearContent:function(){var aItems=this.getItems(),nItems=aItems.length,oElement=this.element,oBody=this.body,oHeader=this.header,oFooter=this.footer;if(nItems>0){var i=nItems-1,oItem,oSubmenu;do{oItem=aItems[i];if(oItem){oSubmenu=oItem.cfg.getProperty("submenu");if(oSubmenu){this.cfg.configChangedEvent.unsubscribe(this._onParentMenuConfigChange,oSubmenu);this.renderEvent.unsubscribe(this._onParentMenuRender,oSubmenu);} +oItem.destroy();}} +while(i--);} +if(oHeader){Event.purgeElement(oHeader);oElement.removeChild(oHeader);} +if(oFooter){Event.purgeElement(oFooter);oElement.removeChild(oFooter);} +if(oBody){Event.purgeElement(oBody);oBody.innerHTML="";} +this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];},destroy:function(){Event.purgeElement(this.element);this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();this.itemAddedEvent.unsubscribeAll();this.itemRemovedEvent.unsubscribeAll();YAHOO.widget.Module.textResizeEvent.unsubscribe(this._onTextResize,this);this.clearContent();this._aItemGroups=null;this._aListElements=null;this._aGroupTitleElements=null;YAHOO.widget.Menu.superclass.destroy.call(this);},setInitialFocus:function(){var oItem=this._getFirstEnabledItem();if(oItem){oItem.focus();}},setInitialSelection:function(){var oItem=this._getFirstEnabledItem();if(oItem){oItem.cfg.setProperty("selected",true);}},clearActiveItem:function(p_bBlur){if(this.cfg.getProperty("showdelay")>0){this._cancelShowDelay();} +var oActiveItem=this.activeItem;if(oActiveItem){var oConfig=oActiveItem.cfg;oConfig.setProperty("selected",false);var oSubmenu=oConfig.getProperty("submenu");if(oSubmenu){oSubmenu.hide();} +if(p_bBlur){oActiveItem.blur();}}},initDefaultConfig:function(){YAHOO.widget.Menu.superclass.initDefaultConfig.call(this);var oConfig=this.cfg;oConfig.addProperty("visible",{value:false,handler:this.configVisible,validator:this.cfg.checkBoolean});oConfig.addProperty("constraintoviewport",{value:true,handler:this.configConstrainToViewport,validator:this.cfg.checkBoolean,supercedes:["iframe","x","y","xy"]});oConfig.addProperty("position",{value:"dynamic",handler:this.configPosition,validator:this._checkPosition,supercedes:["visible"]});oConfig.addProperty("submenualignment",{value:["tl","tr"]});oConfig.addProperty("autosubmenudisplay",{value:true,validator:oConfig.checkBoolean});oConfig.addProperty("showdelay",{value:250,validator:oConfig.checkNumber});oConfig.addProperty("hidedelay",{value:0,validator:oConfig.checkNumber,handler:this.configHideDelay,suppressEvent:true});oConfig.addProperty("submenuhidedelay",{value:250,validator:oConfig.checkNumber});oConfig.addProperty("clicktohide",{value:true,validator:oConfig.checkBoolean});oConfig.addProperty("container",{value:document.body,handler:this.configContainer});oConfig.addProperty("maxheight",{value:0,validator:oConfig.checkNumber,handler:this.configMaxHeight});oConfig.addProperty("classname",{value:null,handler:this.configClassName,validator:this._checkString});}});})();(function(){var Dom=YAHOO.util.Dom,Module=YAHOO.widget.Module,Menu=YAHOO.widget.Menu,m_oMenuItemElement=null,m_oSubmenuIndicator=null,m_oCheckedIndicator=null;YAHOO.widget.MenuItem=function(p_oObject,p_oConfig){if(p_oObject){if(p_oConfig){this.parent=p_oConfig.parent;this.value=p_oConfig.value;this.id=p_oConfig.id;} +this.init(p_oObject,p_oConfig);}};YAHOO.widget.MenuItem.prototype={SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_nrm_1.gif",SELECTED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_hov_1.gif",DISABLED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_dim_1.gif",COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT:"Collapsed. Click to expand.",EXPANDED_SUBMENU_INDICATOR_ALT_TEXT:"Expanded. Click to collapse.",DISABLED_SUBMENU_INDICATOR_ALT_TEXT:"Disabled.",COLLAPSED_SUBMENU_INDICATOR_TEXT:"Submenu collapsed. Click to expand submenu.",EXPANDED_SUBMENU_INDICATOR_TEXT:"Submenu expanded. Click to collapse submenu.",DISABLED_SUBMENU_INDICATOR_TEXT:"Submenu collapsed. (Item disabled.)",CHECKED_IMAGE_PATH:"nt/ic/ut/bsc/menuchk8_nrm_1.gif",SELECTED_CHECKED_IMAGE_PATH:"nt/ic/ut/bsc/menuchk8_hov_1.gif",DISABLED_CHECKED_IMAGE_PATH:"nt/ic/ut/bsc/menuchk8_dim_1.gif",CHECKED_IMAGE_ALT_TEXT:"Checked.",DISABLED_CHECKED_IMAGE_ALT_TEXT:"Checked. (Item disabled.)",CHECKED_TEXT:"Menu item checked.",DISABLED_CHECKED_TEXT:"Checked. (Item disabled.)",CSS_CLASS_NAME:"yuimenuitem",SUBMENU_TYPE:null,IMG_ROOT:"http://us.i1.yimg.com/us.yimg.com/i/",IMG_ROOT_SSL:"https://a248.e.akamai.net/sec.yimg.com/i/",_oAnchor:null,_oText:null,_oHelpTextEM:null,_oSubmenu:null,_checkImage:null,_oCheckedIndicator:null,_oOnclickAttributeValue:null,_sClassName:null,constructor:YAHOO.widget.MenuItem,imageRoot:null,isSecure:Module.prototype.isSecure,index:null,groupIndex:null,parent:null,element:null,srcElement:null,value:null,submenuIndicator:null,browser:Module.prototype.browser,id:null,destroyEvent:null,mouseOverEvent:null,mouseOutEvent:null,mouseDownEvent:null,mouseUpEvent:null,clickEvent:null,keyPressEvent:null,keyDownEvent:null,keyUpEvent:null,focusEvent:null,blurEvent:null,init:function(p_oObject,p_oConfig){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=Menu;} +this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();var oConfig=this.cfg;if(this._checkString(p_oObject)){this._createRootNodeStructure();oConfig.setProperty("text",p_oObject);} +else if(this._checkDOMNode(p_oObject)){switch(p_oObject.tagName.toUpperCase()){case"OPTION":this._createRootNodeStructure();oConfig.setProperty("text",p_oObject.text);this.srcElement=p_oObject;break;case"OPTGROUP":this._createRootNodeStructure();oConfig.setProperty("text",p_oObject.label);this.srcElement=p_oObject;this._initSubTree();break;case"LI":var oAnchor=this._getFirstElement(p_oObject,"A"),sURL="#",sTarget,sText;if(oAnchor){sURL=oAnchor.getAttribute("href");sTarget=oAnchor.getAttribute("target");if(oAnchor.innerText){sText=oAnchor.innerText;} +else{var oRange=oAnchor.ownerDocument.createRange();oRange.selectNodeContents(oAnchor);sText=oRange.toString();}} +else{var oText=p_oObject.firstChild;sText=oText.nodeValue;oAnchor=document.createElement("a");oAnchor.setAttribute("href",sURL);p_oObject.replaceChild(oAnchor,oText);oAnchor.appendChild(oText);} +this.srcElement=p_oObject;this.element=p_oObject;this._oAnchor=oAnchor;var oEmphasisNode=this._getFirstElement(oAnchor),bEmphasis=false,bStrongEmphasis=false;if(oEmphasisNode){this._oText=oEmphasisNode.firstChild;switch(oEmphasisNode.tagName.toUpperCase()){case"EM":bEmphasis=true;break;case"STRONG":bStrongEmphasis=true;break;}} +else{this._oText=oAnchor.firstChild;} +oConfig.setProperty("text",sText,true);oConfig.setProperty("url",sURL,true);oConfig.setProperty("target",sTarget,true);oConfig.setProperty("emphasis",bEmphasis,true);oConfig.setProperty("strongemphasis",bStrongEmphasis,true);this._initSubTree();break;}} +if(this.element){var sId=this.element.id;if(!sId){sId=this.id||Dom.generateId();this.element.id=sId;} +this.id=sId;Dom.addClass(this.element,this.CSS_CLASS_NAME);var CustomEvent=YAHOO.util.CustomEvent;this.destroyEvent=new CustomEvent("destroyEvent",this);this.mouseOverEvent=new CustomEvent("mouseOverEvent",this);this.mouseOutEvent=new CustomEvent("mouseOutEvent",this);this.mouseDownEvent=new CustomEvent("mouseDownEvent",this);this.mouseUpEvent=new CustomEvent("mouseUpEvent",this);this.clickEvent=new CustomEvent("clickEvent",this);this.keyPressEvent=new CustomEvent("keyPressEvent",this);this.keyDownEvent=new CustomEvent("keyDownEvent",this);this.keyUpEvent=new CustomEvent("keyUpEvent",this);this.focusEvent=new CustomEvent("focusEvent",this);this.blurEvent=new CustomEvent("blurEvent",this);if(p_oConfig){oConfig.applyConfig(p_oConfig);} +oConfig.fireQueue();}},_getFirstElement:function(p_oElement,p_sTagName){var oFirstChild=p_oElement.firstChild,oElement;if(oFirstChild){if(oFirstChild.nodeType==1){oElement=oFirstChild;} +else{var oNextSibling=oFirstChild.nextSibling;if(oNextSibling&&oNextSibling.nodeType==1){oElement=oNextSibling;}}} +if(p_sTagName){return(oElement&&oElement.tagName.toUpperCase()==p_sTagName)?oElement:false;} +return oElement;},_checkString:function(p_oObject){return(typeof p_oObject=="string");},_checkDOMNode:function(p_oObject){return(p_oObject&&p_oObject.tagName);},_createRootNodeStructure:function(){if(!m_oMenuItemElement){m_oMenuItemElement=document.createElement("li");m_oMenuItemElement.innerHTML="<a href=\"#\">s</a>";} +this.element=m_oMenuItemElement.cloneNode(true);this._oAnchor=this.element.firstChild;this._oText=this._oAnchor.firstChild;this.element.appendChild(this._oAnchor);},_initSubTree:function(){var oSrcEl=this.srcElement,oConfig=this.cfg;if(oSrcEl.childNodes.length>0){if(this.parent.lazyLoad&&this.parent.srcElement&&this.parent.srcElement.tagName.toUpperCase()=="SELECT"){oConfig.setProperty("submenu",{id:Dom.generateId(),itemdata:oSrcEl.childNodes});} +else{var oNode=oSrcEl.firstChild,aOptions=[];do{if(oNode&&oNode.tagName){switch(oNode.tagName.toUpperCase()){case"DIV":oConfig.setProperty("submenu",oNode);break;case"OPTION":aOptions[aOptions.length]=oNode;break;}}} +while((oNode=oNode.nextSibling));var nOptions=aOptions.length;if(nOptions>0){var oMenu=new this.SUBMENU_TYPE(Dom.generateId());oConfig.setProperty("submenu",oMenu);for(var n=0;n<nOptions;n++){oMenu.addItem((new oMenu.ITEM_TYPE(aOptions[n])));}}}}},_preloadImage:function(p_sPath){var sPath=this.imageRoot+p_sPath;if(!document.images[sPath]){var oImage=document.createElement("img");oImage.src=sPath;oImage.name=sPath;oImage.id=sPath;oImage.style.display="none";document.body.appendChild(oImage);}},configText:function(p_sType,p_aArgs,p_oItem){var sText=p_aArgs[0];if(this._oText){this._oText.nodeValue=sText;}},configHelpText:function(p_sType,p_aArgs,p_oItem){var me=this,oHelpText=p_aArgs[0],oEl=this.element,oConfig=this.cfg,aNodes=[oEl,this._oAnchor],oSubmenuIndicator=this.submenuIndicator;function initHelpText(){Dom.addClass(aNodes,"hashelptext");if(oConfig.getProperty("disabled")){oConfig.refireEvent("disabled");} +if(oConfig.getProperty("selected")){oConfig.refireEvent("selected");}} +function removeHelpText(){Dom.removeClass(aNodes,"hashelptext");oEl.removeChild(me._oHelpTextEM);me._oHelpTextEM=null;} +if(this._checkDOMNode(oHelpText)){oHelpText.className="helptext";if(this._oHelpTextEM){this._oHelpTextEM.parentNode.replaceChild(oHelpText,this._oHelpTextEM);} +else{this._oHelpTextEM=oHelpText;oEl.insertBefore(this._oHelpTextEM,oSubmenuIndicator);} +initHelpText();} +else if(this._checkString(oHelpText)){if(oHelpText.length===0){removeHelpText();} +else{if(!this._oHelpTextEM){this._oHelpTextEM=document.createElement("em");this._oHelpTextEM.className="helptext";oEl.insertBefore(this._oHelpTextEM,oSubmenuIndicator);} +this._oHelpTextEM.innerHTML=oHelpText;initHelpText();}} +else if(!oHelpText&&this._oHelpTextEM){removeHelpText();}},configURL:function(p_sType,p_aArgs,p_oItem){var sURL=p_aArgs[0];if(!sURL){sURL="#";} +this._oAnchor.setAttribute("href",sURL);},configTarget:function(p_sType,p_aArgs,p_oItem){var sTarget=p_aArgs[0],oAnchor=this._oAnchor;if(sTarget&&sTarget.length>0){oAnchor.setAttribute("target",sTarget);} +else{oAnchor.removeAttribute("target");}},configEmphasis:function(p_sType,p_aArgs,p_oItem){var bEmphasis=p_aArgs[0],oAnchor=this._oAnchor,oText=this._oText,oConfig=this.cfg,oEM;if(bEmphasis&&oConfig.getProperty("strongemphasis")){oConfig.setProperty("strongemphasis",false);} +if(oAnchor){if(bEmphasis){oEM=document.createElement("em");oEM.appendChild(oText);oAnchor.appendChild(oEM);} +else{oEM=this._getFirstElement(oAnchor,"EM");if(oEM){oAnchor.removeChild(oEM);oAnchor.appendChild(oText);}}}},configStrongEmphasis:function(p_sType,p_aArgs,p_oItem){var bStrongEmphasis=p_aArgs[0],oAnchor=this._oAnchor,oText=this._oText,oConfig=this.cfg,oStrong;if(bStrongEmphasis&&oConfig.getProperty("emphasis")){oConfig.setProperty("emphasis",false);} +if(oAnchor){if(bStrongEmphasis){oStrong=document.createElement("strong");oStrong.appendChild(oText);oAnchor.appendChild(oStrong);} +else{oStrong=this._getFirstElement(oAnchor,"STRONG");if(oStrong){oAnchor.removeChild(oStrong);oAnchor.appendChild(oText);}}}},configChecked:function(p_sType,p_aArgs,p_oItem){var bChecked=p_aArgs[0],oEl=this.element,oConfig=this.cfg,oEM;if(bChecked){if(!m_oCheckedIndicator){m_oCheckedIndicator=document.createElement("em");m_oCheckedIndicator.innerHTML=this.CHECKED_TEXT;m_oCheckedIndicator.className="checkedindicator";} +oEM=m_oCheckedIndicator.cloneNode(true);var oSubmenu=this.cfg.getProperty("submenu");if(oSubmenu&&oSubmenu.element){oEl.insertBefore(oEM,oSubmenu.element);} +else{oEl.appendChild(oEM);} +Dom.addClass(oEl,"checked");this._oCheckedIndicator=oEM;if(oConfig.getProperty("disabled")){oConfig.refireEvent("disabled");} +if(oConfig.getProperty("selected")){oConfig.refireEvent("selected");}} +else{oEM=this._oCheckedIndicator;Dom.removeClass(oEl,"checked");if(oEM){oEl.removeChild(oEM);} +this._oCheckedIndicator=null;}},configDisabled:function(p_sType,p_aArgs,p_oItem){var bDisabled=p_aArgs[0],oConfig=this.cfg,oAnchor=this._oAnchor,aNodes=[this.element,oAnchor],oHelpText=this._oHelpTextEM,oCheckedIndicator=this._oCheckedIndicator,oSubmenuIndicator=this.submenuIndicator,i=1;if(oHelpText){i++;aNodes[i]=oHelpText;} +if(oCheckedIndicator){oCheckedIndicator.firstChild.nodeValue=bDisabled?this.DISABLED_CHECKED_TEXT:this.CHECKED_TEXT;i++;aNodes[i]=oCheckedIndicator;} +if(oSubmenuIndicator){oSubmenuIndicator.firstChild.nodeValue=bDisabled?this.DISABLED_SUBMENU_INDICATOR_TEXT:this.COLLAPSED_SUBMENU_INDICATOR_TEXT;i++;aNodes[i]=oSubmenuIndicator;} +if(bDisabled){if(oConfig.getProperty("selected")){oConfig.setProperty("selected",false);} +oAnchor.removeAttribute("href");Dom.addClass(aNodes,"disabled");} +else{oAnchor.setAttribute("href",oConfig.getProperty("url"));Dom.removeClass(aNodes,"disabled");}},configSelected:function(p_sType,p_aArgs,p_oItem){if(!this.cfg.getProperty("disabled")){var bSelected=p_aArgs[0],oHelpText=this._oHelpTextEM,oSubmenuIndicator=this.submenuIndicator,oCheckedIndicator=this._oCheckedIndicator,aNodes=[this.element,this._oAnchor],i=1;if(oHelpText){i++;aNodes[i]=oHelpText;} +if(oSubmenuIndicator){i++;aNodes[i]=oSubmenuIndicator;} +if(oCheckedIndicator){i++;aNodes[i]=oCheckedIndicator;} +if(bSelected){Dom.addClass(aNodes,"selected");} +else{Dom.removeClass(aNodes,"selected");}}},configSubmenu:function(p_sType,p_aArgs,p_oItem){var oEl=this.element,oSubmenu=p_aArgs[0],oSubmenuIndicator=this.submenuIndicator,oConfig=this.cfg,aNodes=[this.element,this._oAnchor],bLazyLoad=this.parent&&this.parent.lazyLoad,oMenu;if(oSubmenu){if(oSubmenu instanceof Menu){oMenu=oSubmenu;oMenu.parent=this;oMenu.lazyLoad=bLazyLoad;} +else if(typeof oSubmenu=="object"&&oSubmenu.id&&!oSubmenu.nodeType){var sSubmenuId=oSubmenu.id,oSubmenuConfig=oSubmenu;oSubmenuConfig.lazyload=bLazyLoad;oSubmenuConfig.parent=this;oMenu=new this.SUBMENU_TYPE(sSubmenuId,oSubmenuConfig);this.cfg.setProperty("submenu",oMenu,true);} +else{oMenu=new this.SUBMENU_TYPE(oSubmenu,{lazyload:bLazyLoad,parent:this});this.cfg.setProperty("submenu",oMenu,true);} +if(oMenu){this._oSubmenu=oMenu;if(!oSubmenuIndicator){if(!m_oSubmenuIndicator){m_oSubmenuIndicator=document.createElement("em");m_oSubmenuIndicator.innerHTML=this.COLLAPSED_SUBMENU_INDICATOR_TEXT;m_oSubmenuIndicator.className="submenuindicator";} +oSubmenuIndicator=m_oSubmenuIndicator.cloneNode(true);if(oMenu.element.parentNode==oEl){if(this.browser=="opera"){oEl.appendChild(oSubmenuIndicator);oMenu.renderEvent.subscribe(function(){oSubmenuIndicator.parentNode.insertBefore(oSubmenuIndicator,oMenu.element);});} +else{oEl.insertBefore(oSubmenuIndicator,oMenu.element);}} +else{oEl.appendChild(oSubmenuIndicator);} +this.submenuIndicator=oSubmenuIndicator;} +Dom.addClass(aNodes,"hassubmenu");if(oConfig.getProperty("disabled")){oConfig.refireEvent("disabled");} +if(oConfig.getProperty("selected")){oConfig.refireEvent("selected");}}} +else{Dom.removeClass(aNodes,"hassubmenu");if(oSubmenuIndicator){oEl.removeChild(oSubmenuIndicator);} +if(this._oSubmenu){this._oSubmenu.destroy();}}},configOnClick:function(p_sType,p_aArgs,p_oItem){var oObject=p_aArgs[0];if(this._oOnclickAttributeValue&&(this._oOnclickAttributeValue!=oObject)){this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn,this._oOnclickAttributeValue.obj);this._oOnclickAttributeValue=null;} +if(!this._oOnclickAttributeValue&&typeof oObject=="object"&&typeof oObject.fn=="function"){this.clickEvent.subscribe(oObject.fn,(oObject.obj||this),oObject.scope);this._oOnclickAttributeValue=oObject;}},configClassName:function(p_sType,p_aArgs,p_oItem){var sClassName=p_aArgs[0];if(this._sClassName){Dom.removeClass(this.element,this._sClassName);} +Dom.addClass(this.element,sClassName);this._sClassName=sClassName;},initDefaultConfig:function(){var oConfig=this.cfg,CheckBoolean=oConfig.checkBoolean;oConfig.addProperty("text",{value:"",handler:this.configText,validator:this._checkString,suppressEvent:true});oConfig.addProperty("helptext",{handler:this.configHelpText});oConfig.addProperty("url",{value:"#",handler:this.configURL,suppressEvent:true});oConfig.addProperty("target",{handler:this.configTarget,suppressEvent:true});oConfig.addProperty("emphasis",{value:false,handler:this.configEmphasis,validator:CheckBoolean,suppressEvent:true});oConfig.addProperty("strongemphasis",{value:false,handler:this.configStrongEmphasis,validator:CheckBoolean,suppressEvent:true});oConfig.addProperty("checked",{value:false,handler:this.configChecked,validator:this.cfg.checkBoolean,suppressEvent:true,supercedes:["disabled"]});oConfig.addProperty("disabled",{value:false,handler:this.configDisabled,validator:CheckBoolean,suppressEvent:true});oConfig.addProperty("selected",{value:false,handler:this.configSelected,validator:CheckBoolean,suppressEvent:true});oConfig.addProperty("submenu",{handler:this.configSubmenu});oConfig.addProperty("onclick",{handler:this.configOnClick});oConfig.addProperty("classname",{value:null,handler:this.configClassName,validator:this._checkString});},getNextEnabledSibling:function(){if(this.parent instanceof Menu){var nGroupIndex=this.groupIndex;function getNextArrayItem(p_aArray,p_nStartIndex){return p_aArray[p_nStartIndex]||getNextArrayItem(p_aArray,(p_nStartIndex+1));} +var aItemGroups=this.parent.getItemGroups(),oNextItem;if(this.index<(aItemGroups[nGroupIndex].length-1)){oNextItem=getNextArrayItem(aItemGroups[nGroupIndex],(this.index+1));} +else{var nNextGroupIndex;if(nGroupIndex<(aItemGroups.length-1)){nNextGroupIndex=nGroupIndex+1;} +else{nNextGroupIndex=0;} +var aNextGroup=getNextArrayItem(aItemGroups,nNextGroupIndex);oNextItem=getNextArrayItem(aNextGroup,0);} +return(oNextItem.cfg.getProperty("disabled")||oNextItem.element.style.display=="none")?oNextItem.getNextEnabledSibling():oNextItem;}},getPreviousEnabledSibling:function(){if(this.parent instanceof Menu){var nGroupIndex=this.groupIndex;function getPreviousArrayItem(p_aArray,p_nStartIndex){return p_aArray[p_nStartIndex]||getPreviousArrayItem(p_aArray,(p_nStartIndex-1));} +function getFirstItemIndex(p_aArray,p_nStartIndex){return p_aArray[p_nStartIndex]?p_nStartIndex:getFirstItemIndex(p_aArray,(p_nStartIndex+1));} +var aItemGroups=this.parent.getItemGroups(),oPreviousItem;if(this.index>getFirstItemIndex(aItemGroups[nGroupIndex],0)){oPreviousItem=getPreviousArrayItem(aItemGroups[nGroupIndex],(this.index-1));} +else{var nPreviousGroupIndex;if(nGroupIndex>getFirstItemIndex(aItemGroups,0)){nPreviousGroupIndex=nGroupIndex-1;} +else{nPreviousGroupIndex=aItemGroups.length-1;} +var aPreviousGroup=getPreviousArrayItem(aItemGroups,nPreviousGroupIndex);oPreviousItem=getPreviousArrayItem(aPreviousGroup,(aPreviousGroup.length-1));} +return(oPreviousItem.cfg.getProperty("disabled")||oPreviousItem.element.style.display=="none")?oPreviousItem.getPreviousEnabledSibling():oPreviousItem;}},focus:function(){var oParent=this.parent,oAnchor=this._oAnchor,oActiveItem=oParent.activeItem;function setFocus(){try{oAnchor.focus();} +catch(e){}} +if(!this.cfg.getProperty("disabled")&&oParent&&oParent.cfg.getProperty("visible")&&this.element.style.display!="none"){if(oActiveItem){oActiveItem.blur();} +window.setTimeout(setFocus,0);this.focusEvent.fire();}},blur:function(){var oParent=this.parent;if(!this.cfg.getProperty("disabled")&&oParent&&Dom.getStyle(oParent.element,"visibility")=="visible"){this._oAnchor.blur();this.blurEvent.fire();}},destroy:function(){var oEl=this.element;if(oEl){var oSubmenu=this.cfg.getProperty("submenu");if(oSubmenu){oSubmenu.destroy();} +this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();this.focusEvent.unsubscribeAll();this.blurEvent.unsubscribeAll();this.cfg.configChangedEvent.unsubscribeAll();var oParentNode=oEl.parentNode;if(oParentNode){oParentNode.removeChild(oEl);this.destroyEvent.fire();} +this.destroyEvent.unsubscribeAll();}},toString:function(){return("MenuItem: "+this.cfg.getProperty("text"));}};})();YAHOO.widget.ContextMenu=function(p_oElement,p_oConfig){YAHOO.widget.ContextMenu.superclass.constructor.call(this,p_oElement,p_oConfig);};YAHOO.lang.extend(YAHOO.widget.ContextMenu,YAHOO.widget.Menu,{_oTrigger:null,_bCancelled:false,contextEventTarget:null,triggerContextMenuEvent:null,init:function(p_oElement,p_oConfig){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.ContextMenuItem;} +YAHOO.widget.ContextMenu.superclass.init.call(this,p_oElement);this.beforeInitEvent.fire(YAHOO.widget.ContextMenu);if(p_oConfig){this.cfg.applyConfig(p_oConfig,true);} +this.initEvent.fire(YAHOO.widget.ContextMenu);},initEvents:function(){YAHOO.widget.ContextMenu.superclass.initEvents.call(this);this.triggerContextMenuEvent=new YAHOO.util.CustomEvent("triggerContextMenuEvent",this);},cancel:function(){this._bCancelled=true;},_removeEventHandlers:function(){var Event=YAHOO.util.Event,oTrigger=this._oTrigger,bOpera=(this.browser=="opera");Event.removeListener(oTrigger,(bOpera?"mousedown":"contextmenu"),this._onTriggerContextMenu);if(bOpera){Event.removeListener(oTrigger,"click",this._onTriggerClick);}},_onTriggerClick:function(p_oEvent,p_oMenu){if(p_oEvent.ctrlKey){YAHOO.util.Event.stopEvent(p_oEvent);}},_onTriggerContextMenu:function(p_oEvent,p_oMenu){var Event=YAHOO.util.Event;if(p_oEvent.type=="mousedown"&&!p_oEvent.ctrlKey){return;} +Event.stopEvent(p_oEvent);YAHOO.widget.MenuManager.hideVisible();this.contextEventTarget=Event.getTarget(p_oEvent);this.triggerContextMenuEvent.fire(p_oEvent);if(!this._bCancelled){this.cfg.setProperty("xy",Event.getXY(p_oEvent));this.show();} +this._bCancelled=false;},toString:function(){return("ContextMenu "+this.id);},initDefaultConfig:function(){YAHOO.widget.ContextMenu.superclass.initDefaultConfig.call(this);this.cfg.addProperty("trigger",{handler:this.configTrigger});},destroy:function(){this._removeEventHandlers();YAHOO.widget.ContextMenu.superclass.destroy.call(this);},configTrigger:function(p_sType,p_aArgs,p_oMenu){var Event=YAHOO.util.Event,oTrigger=p_aArgs[0];if(oTrigger){if(this._oTrigger){this._removeEventHandlers();} +this._oTrigger=oTrigger;var bOpera=(this.browser=="opera");Event.addListener(oTrigger,(bOpera?"mousedown":"contextmenu"),this._onTriggerContextMenu,this,true);if(bOpera){Event.addListener(oTrigger,"click",this._onTriggerClick,this,true);}} +else{this._removeEventHandlers();}}});YAHOO.widget.ContextMenuItem=function(p_oObject,p_oConfig){YAHOO.widget.ContextMenuItem.superclass.constructor.call(this,p_oObject,p_oConfig);};YAHOO.lang.extend(YAHOO.widget.ContextMenuItem,YAHOO.widget.MenuItem,{init:function(p_oObject,p_oConfig){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.ContextMenu;} +YAHOO.widget.ContextMenuItem.superclass.init.call(this,p_oObject);var oConfig=this.cfg;if(p_oConfig){oConfig.applyConfig(p_oConfig,true);} +oConfig.fireQueue();},toString:function(){return("ContextMenuItem: "+this.cfg.getProperty("text"));}});YAHOO.widget.MenuBar=function(p_oElement,p_oConfig){YAHOO.widget.MenuBar.superclass.constructor.call(this,p_oElement,p_oConfig);};YAHOO.lang.extend(YAHOO.widget.MenuBar,YAHOO.widget.Menu,{init:function(p_oElement,p_oConfig){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuBarItem;} +YAHOO.widget.MenuBar.superclass.init.call(this,p_oElement);this.beforeInitEvent.fire(YAHOO.widget.MenuBar);if(p_oConfig){this.cfg.applyConfig(p_oConfig,true);} +this.initEvent.fire(YAHOO.widget.MenuBar);},CSS_CLASS_NAME:"yuimenubar",_onKeyDown:function(p_sType,p_aArgs,p_oMenuBar){var Event=YAHOO.util.Event,oEvent=p_aArgs[0],oItem=p_aArgs[1],oSubmenu;if(oItem&&!oItem.cfg.getProperty("disabled")){var oItemCfg=oItem.cfg;switch(oEvent.keyCode){case 37:case 39:if(oItem==this.activeItem&&!oItemCfg.getProperty("selected")){oItemCfg.setProperty("selected",true);} +else{var oNextItem=(oEvent.keyCode==37)?oItem.getPreviousEnabledSibling():oItem.getNextEnabledSibling();if(oNextItem){this.clearActiveItem();oNextItem.cfg.setProperty("selected",true);if(this.cfg.getProperty("autosubmenudisplay")){oSubmenu=oNextItem.cfg.getProperty("submenu");if(oSubmenu){oSubmenu.show();oSubmenu.activeItem.blur();oSubmenu.activeItem=null;}} +oNextItem.focus();}} +Event.preventDefault(oEvent);break;case 40:if(this.activeItem!=oItem){this.clearActiveItem();oItemCfg.setProperty("selected",true);oItem.focus();} +oSubmenu=oItemCfg.getProperty("submenu");if(oSubmenu){if(oSubmenu.cfg.getProperty("visible")){oSubmenu.setInitialSelection();oSubmenu.setInitialFocus();} +else{oSubmenu.show();}} +Event.preventDefault(oEvent);break;}} +if(oEvent.keyCode==27&&this.activeItem){oSubmenu=this.activeItem.cfg.getProperty("submenu");if(oSubmenu&&oSubmenu.cfg.getProperty("visible")){oSubmenu.hide();this.activeItem.focus();} +else{this.activeItem.cfg.setProperty("selected",false);this.activeItem.blur();} +Event.preventDefault(oEvent);}},_onClick:function(p_sType,p_aArgs,p_oMenuBar){YAHOO.widget.MenuBar.superclass._onClick.call(this,p_sType,p_aArgs,p_oMenuBar);var oItem=p_aArgs[1];if(oItem&&!oItem.cfg.getProperty("disabled")){var Event=YAHOO.util.Event,Dom=YAHOO.util.Dom,oEvent=p_aArgs[0],oTarget=Event.getTarget(oEvent),oActiveItem=this.activeItem,oConfig=this.cfg;if(oActiveItem&&oActiveItem!=oItem){this.clearActiveItem();} +oItem.cfg.setProperty("selected",true);oItem.focus();var oSubmenu=oItem.cfg.getProperty("submenu");if(oSubmenu&&oTarget!=oItem.submenuIndicator){if(oSubmenu.cfg.getProperty("visible")){oSubmenu.hide();} +else{oSubmenu.show();}}}},toString:function(){return("MenuBar "+this.id);},initDefaultConfig:function(){YAHOO.widget.MenuBar.superclass.initDefaultConfig.call(this);var oConfig=this.cfg;oConfig.addProperty("position",{value:"static",handler:this.configPosition,validator:this._checkPosition,supercedes:["visible"]});oConfig.addProperty("submenualignment",{value:["tl","bl"]});oConfig.addProperty("autosubmenudisplay",{value:false,validator:oConfig.checkBoolean});}});YAHOO.widget.MenuBarItem=function(p_oObject,p_oConfig){YAHOO.widget.MenuBarItem.superclass.constructor.call(this,p_oObject,p_oConfig);};YAHOO.lang.extend(YAHOO.widget.MenuBarItem,YAHOO.widget.MenuItem,{init:function(p_oObject,p_oConfig){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;} +YAHOO.widget.MenuBarItem.superclass.init.call(this,p_oObject);var oConfig=this.cfg;if(p_oConfig){oConfig.applyConfig(p_oConfig,true);} +oConfig.fireQueue();},CSS_CLASS_NAME:"yuimenubaritem",toString:function(){return("MenuBarItem: "+this.cfg.getProperty("text"));}});YAHOO.register("menu",YAHOO.widget.Menu,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/menu/menu.js b/interface/ispconfig/interface/js/yui/menu/menu.js new file mode 100644 index 0000000..37cb604 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/menu/menu.js @@ -0,0 +1,8265 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + + +/** +* @module menu +* @description <p>The Menu family of components features a collection of +* controls that make it easy to add menus to your website or web application. +* With the Menu Controls you can create website fly-out menus, customized +* context menus, or application-style menu bars with just a small amount of +* scripting.</p><p>The Menu family of controls features:</p> +* <ul> +* <li>Screen-reader accessibility.</li> +* <li>Keyboard and mouse navigation.</li> +* <li>A rich event model that provides access to all of a menu's +* interesting moments.</li> +* <li>Support for +* <a href="http://en.wikipedia.org/wiki/Progressive_Enhancement">Progressive +* Enhancement</a>; Menus can be created from simple, +* semantic markup on the page or purely through JavaScript.</li> +* </ul> +* @title Menu +* @namespace YAHOO.widget +* @requires Event, Dom, Container +*/ +(function() { + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event; + +/** +* Singleton that manages a collection of all menus and menu items. Listens for +* DOM events at the document level and dispatches the events to the +* corresponding menu or menu item. +* +* @namespace YAHOO.widget +* @class MenuManager +* @static +*/ +YAHOO.widget.MenuManager = function() { + + // Private member variables + + + // Flag indicating if the DOM event handlers have been attached + + var m_bInitializedEventHandlers = false, + + + // Collection of menus + + m_oMenus = {}, + + + // Collection of menu items + + m_oItems = {}, + + + // Collection of visible menus + + m_oVisibleMenus = {}, + + me = this; + + + + + // Private methods + + + /** + * @method addItem + * @description Adds an item to the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be added. + */ + function addItem(p_oItem) { + + var sId = p_oItem.id; + + if(p_oItem && m_oItems[sId] != p_oItem) { + + m_oItems[sId] = p_oItem; + + p_oItem.destroyEvent.subscribe(onItemDestroy, p_oItem); + + + } + + } + + + /** + * @method removeItem + * @description Removes an item from the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be removed. + */ + function removeItem(p_oItem) { + + var sId = p_oItem.id; + + if(sId && m_oItems[sId]) { + + delete m_oItems[sId]; + + + } + + } + + + /** + * @method getMenuRootElement + * @description Finds the root DIV node of a menu or the root LI node of a + * menu item. + * @private + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object specifying + * an HTML element. + */ + function getMenuRootElement(p_oElement) { + + var oParentNode; + + if(p_oElement && p_oElement.tagName) { + + switch(p_oElement.tagName.toUpperCase()) { + + case "DIV": + + oParentNode = p_oElement.parentNode; + + // Check if the DIV is the inner "body" node of a menu + + if( + ( + Dom.hasClass(p_oElement, "hd") || + Dom.hasClass(p_oElement, "bd") || + Dom.hasClass(p_oElement, "ft") + ) + && + oParentNode && + oParentNode.tagName && + oParentNode.tagName.toUpperCase() == "DIV" + ) { + + return oParentNode; + + } + else { + + return p_oElement; + + } + + break; + + case "LI": + + return p_oElement; + + default: + + oParentNode = p_oElement.parentNode; + + if(oParentNode) { + + return getMenuRootElement(oParentNode); + + } + + break; + + } + + } + + } + + + + // Private event handlers + + + /** + * @method onDOMEvent + * @description Generic, global event handler for all of a menu's DOM-based + * events. This listens for events against the document object. If the + * target of a given event is a member of a menu or menu item's DOM, the + * instance's corresponding Custom Event is fired. + * @private + * @param {Event} p_oEvent Object representing the DOM event object passed + * back by the event utility (YAHOO.util.Event). + */ + function onDOMEvent(p_oEvent) { + + // Get the target node of the DOM event + + var oTarget = Event.getTarget(p_oEvent), + + + // See if the target of the event was a menu, or a menu item + + oElement = getMenuRootElement(oTarget), + oMenuItem, + oMenu; + + + if(oElement) { + + var sTagName = oElement.tagName.toUpperCase(); + + if(sTagName == "LI") { + + var sId = oElement.id; + + if(sId && m_oItems[sId]) { + + oMenuItem = m_oItems[sId]; + oMenu = oMenuItem.parent; + + } + + } + else if(sTagName == "DIV") { + + if(oElement.id) { + + oMenu = m_oMenus[oElement.id]; + + } + + } + + } + + if(oMenu) { + + // Map of DOM event names to CustomEvent names + + var oEventTypes = { + "click": "clickEvent", + "mousedown": "mouseDownEvent", + "mouseup": "mouseUpEvent", + "mouseover": "mouseOverEvent", + "mouseout": "mouseOutEvent", + "keydown": "keyDownEvent", + "keyup": "keyUpEvent", + "keypress": "keyPressEvent" + }, + + sCustomEventType = oEventTypes[p_oEvent.type]; + + + // Fire the Custom Even that corresponds the current DOM event + + if(oMenuItem && !oMenuItem.cfg.getProperty("disabled")) { + + oMenuItem[sCustomEventType].fire(p_oEvent); + + } + + oMenu[sCustomEventType].fire(p_oEvent, oMenuItem); + + } + else if(p_oEvent.type == "mousedown") { + + + /* + If the target of the event wasn't a menu, hide all + dynamically positioned menus + */ + + var oActiveItem; + + for(var i in m_oMenus) { + + if(m_oMenus.hasOwnProperty(i)) { + + oMenu = m_oMenus[i]; + + if( + oMenu.cfg.getProperty("clicktohide") && + oMenu.cfg.getProperty("position") == "dynamic" + ) { + + oMenu.hide(); + + } + else { + + oMenu.clearActiveItem(true); + + } + + } + + } + + } + + } + + + /** + * @method onMenuDestroy + * @description "destroy" event handler for a menu. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + function onMenuDestroy(p_sType, p_aArgs, p_oMenu) { + + if(p_oMenu && m_oMenus[p_oMenu.id]) { + + delete m_oMenus[p_oMenu.id]; + + + } + + } + + + /** + * @method onItemDestroy + * @description "destroy" event handler for a MenuItem instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + function onItemDestroy(p_sType, p_aArgs, p_oItem) { + + var sId = p_oItem.id; + + if(sId && m_oItems[sId]) { + + delete m_oItems[sId]; + + } + + } + + + /** + * @method onMenuVisibleConfigChange + * @description Event handler for when the "visible" configuration property + * of a Menu instance changes. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + function onMenuVisibleConfigChange(p_sType, p_aArgs, p_oMenu) { + + var bVisible = p_aArgs[0]; + + if(bVisible) { + + m_oVisibleMenus[p_oMenu.id] = p_oMenu; + + + } + else if(m_oVisibleMenus[p_oMenu.id]) { + + delete m_oVisibleMenus[p_oMenu.id]; + + + } + + } + + + /** + * @method onItemAdded + * @description "itemadded" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + function onItemAdded(p_sType, p_aArgs) { + + addItem(p_aArgs[0]); + + } + + + /** + * @method onItemRemoved + * @description "itemremoved" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + function onItemRemoved(p_sType, p_aArgs) { + + removeItem(p_aArgs[0]); + + } + + + + return { + + // Privileged methods + + + /** + * @method addMenu + * @description Adds a menu to the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu + * instance to be added. + */ + addMenu: function(p_oMenu) { + + if(p_oMenu && p_oMenu.id && !m_oMenus[p_oMenu.id]) { + + m_oMenus[p_oMenu.id] = p_oMenu; + + + if(!m_bInitializedEventHandlers) { + + var oDoc = document; + + Event.addListener(oDoc, "mouseover", onDOMEvent, me, true); + Event.addListener(oDoc, "mouseout", onDOMEvent, me, true); + Event.addListener(oDoc, "mousedown", onDOMEvent, me, true); + Event.addListener(oDoc, "mouseup", onDOMEvent, me, true); + Event.addListener(oDoc, "click", onDOMEvent, me, true); + Event.addListener(oDoc, "keydown", onDOMEvent, me, true); + Event.addListener(oDoc, "keyup", onDOMEvent, me, true); + Event.addListener(oDoc, "keypress", onDOMEvent, me, true); + + m_bInitializedEventHandlers = true; + + + } + + p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, me); + + p_oMenu.cfg.subscribeToConfigEvent( + "visible", + onMenuVisibleConfigChange, + p_oMenu + ); + + p_oMenu.itemAddedEvent.subscribe(onItemAdded); + p_oMenu.itemRemovedEvent.subscribe(onItemRemoved); + + + } + + }, + + + /** + * @method removeMenu + * @description Removes a menu from the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu + * instance to be removed. + */ + removeMenu: function(p_oMenu) { + + if(p_oMenu && m_oMenus[p_oMenu.id]) { + + delete m_oMenus[p_oMenu.id]; + + + } + + }, + + + /** + * @method hideVisible + * @description Hides all visible, dynamically positioned menus. + */ + hideVisible: function() { + + var oMenu; + + for(var i in m_oVisibleMenus) { + + if(m_oVisibleMenus.hasOwnProperty(i)) { + + oMenu = m_oVisibleMenus[i]; + + if(oMenu.cfg.getProperty("position") == "dynamic") { + + oMenu.hide(); + + } + + } + + } + + }, + + + /** + * @method getMenus + * @description Returns an array of all menus registered with the + * menu manger. + * @return {Array} + */ + getMenus: function() { + + return m_oMenus; + + }, + + + /** + * @method getMenu + * @description Returns a menu with the specified id. + * @param {String} p_sId String specifying the id of the menu to + * be retrieved. + * @return {YAHOO.widget.Menu} + */ + getMenu: function(p_sId) { + + if(m_oMenus[p_sId]) { + + return m_oMenus[p_sId]; + + } + + }, + + + /** + * @method toString + * @description Returns a string representing the menu manager. + * @return {String} + */ + toString: function() { + + return ("MenuManager"); + + } + + }; + +}(); + +})(); + + + +/** +* The Menu class creates a container that holds a vertical list representing +* a set of options or commands. Menu is the base class for all +* menu containers. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source +* for the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement +* Object specifying the <code><select></code> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +* @namespace YAHOO.widget +* @class Menu +* @constructor +* @extends YAHOO.widget.Overlay +*/ +(function() { + +var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.lang; + + +YAHOO.widget.Menu = function(p_oElement, p_oConfig) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + this.lazyLoad = p_oConfig.lazyLoad || p_oConfig.lazyload; + this.itemData = p_oConfig.itemData || p_oConfig.itemdata; + + } + + + YAHOO.widget.Menu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + + +YAHOO.lang.extend(YAHOO.widget.Menu, YAHOO.widget.Overlay, { + + +// Constants + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* menu's <code><div></code> element. +* @default "yuimenu" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenu", + + +/** +* @property ITEM_TYPE +* @description Object representing the type of menu item to instantiate and +* add when parsing the child nodes (either <code><li></code> element, +* <code><optgroup></code> element or <code><option></code>) +* of the menu's source HTML element. +* @default YAHOO.widget.MenuItem +* @final +* @type YAHOO.widget.MenuItem +*/ +ITEM_TYPE: null, + + +/** +* @property GROUP_TITLE_TAG_NAME +* @description String representing the tagname of the HTML element used to +* title the menu's item groups. +* @default H6 +* @final +* @type String +*/ +GROUP_TITLE_TAG_NAME: "h6", + + + +// Private properties + + +/** +* @property _nHideDelayId +* @description Number representing the time-out setting used to cancel the +* hiding of a menu. +* @default null +* @private +* @type Number +*/ +_nHideDelayId: null, + + +/** +* @property _nShowDelayId +* @description Number representing the time-out setting used to cancel the +* showing of a menu. +* @default null +* @private +* @type Number +*/ +_nShowDelayId: null, + + +/** +* @property _nSubmenuHideDelayId +* @description Number representing the time-out setting used to cancel the +* hiding of a submenu. +* @default null +* @private +* @type Number +*/ +_nSubmenuHideDelayId: null, + + +/** +* @property _nBodyScrollId +* @description Number representing the time-out setting used to cancel the +* scrolling of the menu's body element. +* @default null +* @private +* @type Number +*/ +_nBodyScrollId: null, + + +/** +* @property _bHideDelayEventHandlersAssigned +* @description Boolean indicating if the "mouseover" and "mouseout" event +* handlers used for hiding the menu via a call to "window.setTimeout" have +* already been assigned. +* @default false +* @private +* @type Boolean +*/ +_bHideDelayEventHandlersAssigned: false, + + +/** +* @property _bHandledMouseOverEvent +* @description Boolean indicating the current state of the menu's +* "mouseover" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOverEvent: false, + + +/** +* @property _bHandledMouseOutEvent +* @description Boolean indicating the current state of the menu's +* "mouseout" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOutEvent: false, + + +/** +* @property _aGroupTitleElements +* @description Array of HTML element used to title groups of menu items. +* @default [] +* @private +* @type Array +*/ +_aGroupTitleElements: null, + + +/** +* @property _aItemGroups +* @description Multi-dimensional Array representing the menu items as they +* are grouped in the menu. +* @default [] +* @private +* @type Array +*/ +_aItemGroups: null, + + +/** +* @property _aListElements +* @description Array of <code><ul></code> elements, each of which is +* the parent node for each item's <code><li></code> element. +* @default [] +* @private +* @type Array +*/ +_aListElements: null, + + +/** +* @property _nCurrentMouseX +* @description The current x coordinate of the mouse inside the area of +* the menu. +* @default 0 +* @private +* @type Number +*/ +_nCurrentMouseX: 0, + + +/** +* @property _nMaxHeight +* @description The original value of the "maxheight" configuration property +* as set by the user. +* @default -1 +* @private +* @type Number +*/ +_nMaxHeight: -1, + + +/** +* @property _bStopMouseEventHandlers +* @description Stops "mouseover," "mouseout," and "mousemove" event handlers +* from executing. +* @default false +* @private +* @type Boolean +*/ +_bStopMouseEventHandlers: false, + + +/** +* @property _sClassName +* @description The current value of the "classname" configuration attribute. +* @default null +* @private +* @type String +*/ +_sClassName: null, + + + +// Public properties + + +/** +* @property lazyLoad +* @description Boolean indicating if the menu's "lazy load" feature is +* enabled. If set to "true," initialization and rendering of the menu's +* items will be deferred until the first time it is made visible. This +* property should be set via the constructor using the configuration +* object literal. +* @default false +* @type Boolean +*/ +lazyLoad: false, + + +/** +* @property itemData +* @description Array of items to be added to the menu. The array can contain +* strings representing the text for each item to be created, object literals +* representing the menu item configuration properties, or MenuItem instances. +* This property should be set via the constructor using the configuration +* object literal. +* @default null +* @type Array +*/ +itemData: null, + + +/** +* @property activeItem +* @description Object reference to the item in the menu that has focus. +* @default null +* @type YAHOO.widget.MenuItem +*/ +activeItem: null, + + +/** +* @property parent +* @description Object reference to the menu's parent menu or menu item. +* This property can be set via the constructor using the configuration +* object literal. +* @default null +* @type YAHOO.widget.MenuItem +*/ +parent: null, + + +/** +* @property srcElement +* @description Object reference to the HTML element (either +* <code><select></code> or <code><div></code>) used to +* create the menu. +* @default null +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a +* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html. +* html#ID-22445964">HTMLDivElement</a> +*/ +srcElement: null, + + + +// Events + + +/** +* @event mouseOverEvent +* @description Fires when the mouse has entered the menu. Passes back +* the DOM Event object as an argument. +*/ +mouseOverEvent: null, + + +/** +* @event mouseOutEvent +* @description Fires when the mouse has left the menu. Passes back the DOM +* Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseOutEvent: null, + + +/** +* @event mouseDownEvent +* @description Fires when the user mouses down on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseDownEvent: null, + + +/** +* @event mouseUpEvent +* @description Fires when the user releases a mouse button while the mouse is +* over the menu. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseUpEvent: null, + + +/** +* @event clickEvent +* @description Fires when the user clicks the on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +clickEvent: null, + + +/** +* @event keyPressEvent +* @description Fires when the user presses an alphanumeric key when one of the +* menu's items has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyPressEvent: null, + + +/** +* @event keyDownEvent +* @description Fires when the user presses a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyDownEvent: null, + + +/** +* @event keyUpEvent +* @description Fires when the user releases a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyUpEvent: null, + + +/** +* @event itemAddedEvent +* @description Fires when an item is added to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemAddedEvent: null, + + +/** +* @event itemRemovedEvent +* @description Fires when an item is removed to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemRemovedEvent: null, + + +/** +* @method init +* @description The Menu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source +* for the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object +* specifying the <code><div></code> element of the menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ +* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement +* Object specifying the <code><select></code> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + this._aItemGroups = []; + this._aListElements = []; + this._aGroupTitleElements = []; + + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuItem; + + } + + + var oElement; + + if(typeof p_oElement == "string") { + + oElement = document.getElementById(p_oElement); + + } + else if(p_oElement.tagName) { + + oElement = p_oElement; + + } + + + if(oElement && oElement.tagName) { + + switch(oElement.tagName.toUpperCase()) { + + case "DIV": + + this.srcElement = oElement; + + if(!oElement.id) { + + oElement.setAttribute("id", Dom.generateId()); + + } + + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + + + break; + + case "SELECT": + + this.srcElement = oElement; + + + /* + The source element is not something that we can use + outright, so we need to create a new Overlay + + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, Dom.generateId()); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + + + break; + + } + + } + else { + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, p_oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + + + } + + + if(this.element) { + + var oEl = this.element; + + Dom.addClass(oEl, this.CSS_CLASS_NAME); + + + // Subscribe to Custom Events + + this.initEvent.subscribe(this._onInit, this, true); + this.beforeRenderEvent.subscribe(this._onBeforeRender, this, true); + this.renderEvent.subscribe(this._setWidth, this, true); + this.beforeShowEvent.subscribe(this._onBeforeShow, this, true); + this.showEvent.subscribe(this._onShow, this, true); + this.beforeHideEvent.subscribe(this._onBeforeHide, this, true); + this.hideEvent.subscribe(this._onHide, this, true); + this.mouseOverEvent.subscribe(this._onMouseOver, this, true); + this.mouseOutEvent.subscribe(this._onMouseOut, this, true); + this.clickEvent.subscribe(this._onClick, this, true); + this.keyDownEvent.subscribe(this._onKeyDown, this, true); + this.keyPressEvent.subscribe(this._onKeyPress, this, true); + + YAHOO.widget.Module.textResizeEvent.subscribe( + this._onTextResize, + this, + true + ); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + + // Register the Menu instance with the MenuManager + + YAHOO.widget.MenuManager.addMenu(this); + + + this.initEvent.fire(YAHOO.widget.Menu); + + } + +}, + + + +// Private methods + + +/** +* @method _initSubTree +* @description Iterates the childNodes of the source element to find nodes +* used to instantiate menu and menu items. +* @private +*/ +_initSubTree: function() { + + var oNode; + + if(this.srcElement.tagName.toUpperCase() == "DIV") { + + /* + Populate the collection of item groups and item + group titles + */ + + oNode = this.body.firstChild; + + var nGroup = 0, + sGroupTitleTagName = this.GROUP_TITLE_TAG_NAME.toUpperCase(); + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case sGroupTitleTagName: + + this._aGroupTitleElements[nGroup] = oNode; + + break; + + case "UL": + + this._aListElements[nGroup] = oNode; + this._aItemGroups[nGroup] = []; + nGroup++; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + + /* + Apply the "first-of-type" class to the first UL to mimic + the "first-of-type" CSS3 psuedo class. + */ + + if(this._aListElements[0]) { + + Dom.addClass(this._aListElements[0], "first-of-type"); + + } + + } + + + oNode = null; + + + if(this.srcElement.tagName) { + + var sSrcElementTagName = this.srcElement.tagName.toUpperCase(); + + + switch(sSrcElementTagName) { + + case "DIV": + + if(this._aListElements.length > 0) { + + + var i = this._aListElements.length - 1; + + do { + + oNode = this._aListElements[i].firstChild; + + + do { + + if( + oNode && + oNode.tagName && + oNode.tagName.toUpperCase() == "LI" + ) { + + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ), + i + ); + + } + + } + while((oNode = oNode.nextSibling)); + + } + while(i--); + + } + + break; + + case "SELECT": + + + oNode = this.srcElement.firstChild; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "OPTGROUP": + case "OPTION": + + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ) + ); + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + break; + + } + + } + +}, + + +/** +* @method _getFirstEnabledItem +* @description Returns the first enabled item in the menu. +* @return {YAHOO.widget.MenuItem} +* @private +*/ +_getFirstEnabledItem: function() { + + var aItems = this.getItems(), + nItems = aItems.length, + oItem; + + for(var i=0; i<nItems; i++) { + + oItem = aItems[i]; + + if( + oItem && + !oItem.cfg.getProperty("disabled") && + oItem.element.style.display != "none" + ) { + + return oItem; + + } + + } + +}, + + +/** +* @method _checkPosition +* @description Checks to make sure that the value of the "position" property +* is one of the supported strings. Returns true if the position is supported. +* @private +* @param {Object} p_sPosition String specifying the position of the menu. +* @return {Boolean} +*/ +_checkPosition: function(p_sPosition) { + + if(typeof p_sPosition == "string") { + + var sPosition = p_sPosition.toLowerCase(); + + return ("dynamic,static".indexOf(sPosition) != -1); + + } + +}, + + +/** +* @method _addItemToGroup +* @description Adds a menu item to a group. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the +* item belongs. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nItemIndex Optional. Number indicating the index at +* which the menu item should be added. +* @return {YAHOO.widget.MenuItem} +*/ +_addItemToGroup: function(p_nGroupIndex, p_oItem, p_nItemIndex) { + + var oItem; + + if(p_oItem instanceof this.ITEM_TYPE) { + + oItem = p_oItem; + oItem.parent = this; + + } + else if(typeof p_oItem == "string") { + + oItem = new this.ITEM_TYPE(p_oItem, { parent: this }); + + } + else if(typeof p_oItem == "object") { + + p_oItem.parent = this; + + oItem = new this.ITEM_TYPE(p_oItem.text, p_oItem); + + } + + + if(oItem) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + aGroup = this._getItemGroup(nGroupIndex), + oGroupItem; + + + if(!aGroup) { + + aGroup = this._createItemGroup(nGroupIndex); + + } + + + if(typeof p_nItemIndex == "number") { + + var bAppend = (p_nItemIndex >= aGroup.length); + + + if(aGroup[p_nItemIndex]) { + + aGroup.splice(p_nItemIndex, 0, oItem); + + } + else { + + aGroup[p_nItemIndex] = oItem; + + } + + + oGroupItem = aGroup[p_nItemIndex]; + + if(oGroupItem) { + + if( + bAppend && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + else { + + function getNextItemSibling(p_aArray, p_nStartIndex) { + + return ( + p_aArray[p_nStartIndex] || + getNextItemSibling( + p_aArray, + (p_nStartIndex+1) + ) + ); + + } + + + var oNextItemSibling = + getNextItemSibling(aGroup, (p_nItemIndex+1)); + + if( + oNextItemSibling && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].insertBefore( + oGroupItem.element, + oNextItemSibling.element + ); + + } + + } + + + oGroupItem.parent = this; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + this._updateItemProperties(nGroupIndex); + + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + else { + + var nItemIndex = aGroup.length; + + aGroup[nItemIndex] = oItem; + + oGroupItem = aGroup[nItemIndex]; + + + if(oGroupItem) { + + if( + !Dom.isAncestor( + this._aListElements[nGroupIndex], + oGroupItem.element + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + + oGroupItem.element.setAttribute("groupindex", nGroupIndex); + oGroupItem.element.setAttribute("index", nItemIndex); + + oGroupItem.parent = this; + + oGroupItem.index = nItemIndex; + oGroupItem.groupIndex = nGroupIndex; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + if(nItemIndex === 0) { + + Dom.addClass(oGroupItem.element, "first-of-type"); + + } + + + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + + } + +}, + + +/** +* @method _removeItemFromGroupByIndex +* @description Removes a menu item from a group by index. Returns the menu +* item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the menu +* item belongs. +* @param {Number} p_nItemIndex Number indicating the index of the menu item +* to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByIndex: function(p_nGroupIndex, p_nItemIndex) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + aGroup = this._getItemGroup(nGroupIndex); + + if(aGroup) { + + var aArray = aGroup.splice(p_nItemIndex, 1), + oItem = aArray[0]; + + if(oItem) { + + // Update the index and className properties of each member + + this._updateItemProperties(nGroupIndex); + + if(aGroup.length === 0) { + + // Remove the UL + + var oUL = this._aListElements[nGroupIndex]; + + if(this.body && oUL) { + + this.body.removeChild(oUL); + + } + + // Remove the group from the array of items + + this._aItemGroups.splice(nGroupIndex, 1); + + + // Remove the UL from the array of ULs + + this._aListElements.splice(nGroupIndex, 1); + + + /* + Assign the "first-of-type" class to the new first UL + in the collection + */ + + oUL = this._aListElements[0]; + + if(oUL) { + + Dom.addClass(oUL, "first-of-type"); + + } + + } + + + this.itemRemovedEvent.fire(oItem); + + + // Return a reference to the item that was removed + + return oItem; + + } + + } + +}, + + +/** +* @method _removeItemFromGroupByValue +* @description Removes a menu item from a group by reference. Returns the +* menu item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the +* menu item belongs. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByValue: function(p_nGroupIndex, p_oItem) { + + var aGroup = this._getItemGroup(p_nGroupIndex); + + if(aGroup) { + + var nItems = aGroup.length, + nItemIndex = -1; + + if(nItems > 0) { + + var i = nItems-1; + + do { + + if(aGroup[i] == p_oItem) { + + nItemIndex = i; + break; + + } + + } + while(i--); + + if(nItemIndex > -1) { + + return this._removeItemFromGroupByIndex( + p_nGroupIndex, + nItemIndex + ); + + } + + } + + } + +}, + + +/** +* @method _updateItemProperties +* @description Updates the "index," "groupindex," and "className" properties +* of the menu items in the specified group. +* @private +* @param {Number} p_nGroupIndex Number indicating the group of items to update. +*/ +_updateItemProperties: function(p_nGroupIndex) { + + var aGroup = this._getItemGroup(p_nGroupIndex), + nItems = aGroup.length; + + if(nItems > 0) { + + var i = nItems - 1, + oItem, + oLI; + + // Update the index and className properties of each member + + do { + + oItem = aGroup[i]; + + if(oItem) { + + oLI = oItem.element; + + oItem.index = i; + oItem.groupIndex = p_nGroupIndex; + + oLI.setAttribute("groupindex", p_nGroupIndex); + oLI.setAttribute("index", i); + + Dom.removeClass(oLI, "first-of-type"); + + } + + } + while(i--); + + + if(oLI) { + + Dom.addClass(oLI, "first-of-type"); + + } + + } + +}, + + +/** +* @method _createItemGroup +* @description Creates a new menu item group (array) and its associated +* <code><ul></code> element. Returns an aray of menu item groups. +* @private +* @param {Number} p_nIndex Number indicating the group to create. +* @return {Array} +*/ +_createItemGroup: function(p_nIndex) { + + if(!this._aItemGroups[p_nIndex]) { + + this._aItemGroups[p_nIndex] = []; + + var oUL = document.createElement("ul"); + + this._aListElements[p_nIndex] = oUL; + + return this._aItemGroups[p_nIndex]; + + } + +}, + + +/** +* @method _getItemGroup +* @description Returns the menu item group at the specified index. +* @private +* @param {Number} p_nIndex Number indicating the index of the menu item group +* to be retrieved. +* @return {Array} +*/ +_getItemGroup: function(p_nIndex) { + + var nIndex = ((typeof p_nIndex == "number") ? p_nIndex : 0); + + return this._aItemGroups[nIndex]; + +}, + + +/** +* @method _configureSubmenu +* @description Subscribes the menu item's submenu to its parent menu's events. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance with the submenu to be configured. +*/ +_configureSubmenu: function(p_oItem) { + + var oSubmenu = p_oItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + /* + Listen for configuration changes to the parent menu + so they they can be applied to the submenu. + */ + + this.cfg.configChangedEvent.subscribe( + this._onParentMenuConfigChange, + oSubmenu, + true + ); + + this.renderEvent.subscribe( + this._onParentMenuRender, + oSubmenu, + true + ); + + oSubmenu.beforeShowEvent.subscribe( + this._onSubmenuBeforeShow, + oSubmenu, + true + ); + + oSubmenu.showEvent.subscribe( + this._onSubmenuShow, + oSubmenu, + true + ); + + oSubmenu.hideEvent.subscribe( + this._onSubmenuHide, + oSubmenu, + true + ); + + } + +}, + + +/** +* @method _subscribeToItemEvents +* @description Subscribes a menu to a menu item's event. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance whose events should be subscribed to. +*/ +_subscribeToItemEvents: function(p_oItem) { + + p_oItem.focusEvent.subscribe(this._onMenuItemFocus, p_oItem, this); + + p_oItem.blurEvent.subscribe(this._onMenuItemBlur, this, true); + + p_oItem.cfg.configChangedEvent.subscribe( + this._onMenuItemConfigChange, + p_oItem, + this + ); + +}, + + +/** +* @method _getOffsetWidth +* @description Returns the offset width of the menu's +* <code><div></code> element. +* @private +*/ +_getOffsetWidth: function() { + + var oClone = this.element.cloneNode(true); + + Dom.setStyle(oClone, "width", ""); + + document.body.appendChild(oClone); + + var sWidth = oClone.offsetWidth; + + document.body.removeChild(oClone); + + return sWidth; + +}, + + +/** +* @method _setWidth +* @description Sets the width of the menu's root <code><div></code> +* element to its offsetWidth. +* @private +*/ +_setWidth: function() { + + if(this.cfg.getProperty("position") == "dynamic") { + + var sWidth; + + if(this.element.parentNode.tagName.toUpperCase() == "BODY") { + + if(this.browser == "opera") { + + sWidth = this._getOffsetWidth(); + + } + else { + + Dom.setStyle(this.element, "width", "auto"); + + sWidth = this.element.offsetWidth; + + } + + } + else { + + sWidth = this._getOffsetWidth(); + + } + + this.cfg.setProperty("width", (sWidth + "px")); + + } + +}, + + +/** +* @method _cancelHideDelay +* @description Cancels the call to "hideMenu." +* @private +*/ +_cancelHideDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nHideDelayId) { + + window.clearTimeout(oRoot._nHideDelayId); + + } + +}, + + +/** +* @method _execHideDelay +* @description Hides the menu after the number of milliseconds specified by +* the "hidedelay" configuration property. +* @private +*/ +_execHideDelay: function() { + + this._cancelHideDelay(); + + var oRoot = this.getRoot(), + me = this; + + function hideMenu() { + + if(oRoot.activeItem) { + + oRoot.clearActiveItem(); + + } + + if(oRoot == me && me.cfg.getProperty("position") == "dynamic") { + + me.hide(); + + } + + } + + + oRoot._nHideDelayId = + window.setTimeout(hideMenu, oRoot.cfg.getProperty("hidedelay")); + +}, + + +/** +* @method _cancelShowDelay +* @description Cancels the call to the "showMenu." +* @private +*/ +_cancelShowDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nShowDelayId) { + + window.clearTimeout(oRoot._nShowDelayId); + + } + +}, + + +/** +* @method _execShowDelay +* @description Shows the menu after the number of milliseconds specified by +* the "showdelay" configuration property have ellapsed. +* @private +* @param {YAHOO.widget.Menu} p_oMenu Object specifying the menu that should +* be made visible. +*/ +_execShowDelay: function(p_oMenu) { + + var oRoot = this.getRoot(); + + function showMenu() { + + if(p_oMenu.parent.cfg.getProperty("selected")) { + + p_oMenu.show(); + + } + + } + + + oRoot._nShowDelayId = + window.setTimeout(showMenu, oRoot.cfg.getProperty("showdelay")); + +}, + + +/** +* @method _execSubmenuHideDelay +* @description Hides a submenu after the number of milliseconds specified by +* the "submenuhidedelay" configuration property have ellapsed. +* @private +* @param {YAHOO.widget.Menu} p_oSubmenu Object specifying the submenu that +* should be hidden. +* @param {Number} p_nMouseX The x coordinate of the mouse when it left +* the specified submenu's parent menu item. +* @param {Number} p_nHideDelay The number of milliseconds that should ellapse +* before the submenu is hidden. +*/ +_execSubmenuHideDelay: function(p_oSubmenu, p_nMouseX, p_nHideDelay) { + + var me = this; + + p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () { + + if(me._nCurrentMouseX > (p_nMouseX + 10)) { + + p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () { + + p_oSubmenu.hide(); + + }, p_nHideDelay); + + } + else { + + p_oSubmenu.hide(); + + } + + }, 50); + +}, + + + +// Protected methods + + +/** +* @method _disableScrollHeader +* @description Disables the header used for scrolling the body of the menu. +* @protected +*/ +_disableScrollHeader: function() { + + if(!this._bHeaderDisabled) { + + Dom.addClass(this.header, "topscrollbar_disabled"); + this._bHeaderDisabled = true; + + } + +}, + + +/** +* @method _disableScrollFooter +* @description Disables the footer used for scrolling the body of the menu. +* @protected +*/ +_disableScrollFooter: function() { + + if(!this._bFooterDisabled) { + + Dom.addClass(this.footer, "bottomscrollbar_disabled"); + this._bFooterDisabled = true; + + } + +}, + + +/** +* @method _enableScrollHeader +* @description Enables the header used for scrolling the body of the menu. +* @protected +*/ +_enableScrollHeader: function() { + + if(this._bHeaderDisabled) { + + Dom.removeClass(this.header, "topscrollbar_disabled"); + this._bHeaderDisabled = false; + + } + +}, + + +/** +* @method _enableScrollFooter +* @description Enables the footer used for scrolling the body of the menu. +* @protected +*/ +_enableScrollFooter: function() { + + if(this._bFooterDisabled) { + + Dom.removeClass(this.footer, "bottomscrollbar_disabled"); + this._bFooterDisabled = false; + + } + +}, + + + +/** +* @method _onMouseOver +* @description "mouseover" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOver: function(p_sType, p_aArgs, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oTarget = Event.getTarget(oEvent); + + + if( + !this._bHandledMouseOverEvent && + (oTarget == this.element || Dom.isAncestor(this.element, oTarget)) + ) { + + // Menu mouseover logic + + this._nCurrentMouseX = 0; + + Event.addListener( + this.element, + "mousemove", + this._onMouseMove, + this, + true + ); + + + this.clearActiveItem(); + + + if(this.parent && this._nSubmenuHideDelayId) { + + window.clearTimeout(this._nSubmenuHideDelayId); + + this.parent.cfg.setProperty("selected", true); + + var oParentMenu = this.parent.parent; + + oParentMenu.activeItem = this.parent; + + oParentMenu._bHandledMouseOutEvent = true; + oParentMenu._bHandledMouseOverEvent = false; + + } + + + this._bHandledMouseOverEvent = true; + this._bHandledMouseOutEvent = false; + + } + + + if( + oItem && !oItem.handledMouseOverEvent && + !oItem.cfg.getProperty("disabled") && + (oTarget == oItem.element || Dom.isAncestor(oItem.element, oTarget)) + ) { + + // Menu Item mouseover logic + + var nShowDelay = this.cfg.getProperty("showdelay"), + bShowDelay = (nShowDelay > 0); + + + if(bShowDelay) { + + this._cancelShowDelay(); + + } + + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + oActiveItem.cfg.setProperty("selected", false); + + } + + + var oItemCfg = oItem.cfg; + + // Select and focus the current menu item + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + + if(this.cfg.getProperty("autosubmenudisplay")) { + + // Show the submenu this menu item + + var oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(bShowDelay) { + + this._execShowDelay(oSubmenu); + + } + else { + + oSubmenu.show(); + + } + + } + + } + + oItem.handledMouseOverEvent = true; + oItem.handledMouseOutEvent = false; + + } + +}, + + +/** +* @method _onMouseOut +* @description "mouseout" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOut: function(p_sType, p_aArgs, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oRelatedTarget = Event.getRelatedTarget(oEvent), + bMovingToSubmenu = false; + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oSubmenu = oItemCfg.getProperty("submenu"); + + + if( + oSubmenu && + ( + oRelatedTarget == oSubmenu.element || + Dom.isAncestor(oSubmenu.element, oRelatedTarget) + ) + ) { + + bMovingToSubmenu = true; + + } + + + if( + !oItem.handledMouseOutEvent && + ( + ( + oRelatedTarget != oItem.element && + !Dom.isAncestor(oItem.element, oRelatedTarget) + ) || bMovingToSubmenu + ) + ) { + + // Menu Item mouseout logic + + if(!bMovingToSubmenu) { + + oItem.cfg.setProperty("selected", false); + + + if(oSubmenu) { + + var nSubmenuHideDelay = + this.cfg.getProperty("submenuhidedelay"), + + nShowDelay = this.cfg.getProperty("showdelay"); + + if( + !(this instanceof YAHOO.widget.MenuBar) && + nSubmenuHideDelay > 0 && + nShowDelay >= nSubmenuHideDelay + ) { + + this._execSubmenuHideDelay( + oSubmenu, + Event.getPageX(oEvent), + nSubmenuHideDelay + ); + + } + else { + + oSubmenu.hide(); + + } + + } + + } + + + oItem.handledMouseOutEvent = true; + oItem.handledMouseOverEvent = false; + + } + + } + + + if( + !this._bHandledMouseOutEvent && + ( + ( + oRelatedTarget != this.element && + !Dom.isAncestor(this.element, oRelatedTarget) + ) + || bMovingToSubmenu + ) + ) { + + // Menu mouseout logic + + Event.removeListener(this.element, "mousemove", this._onMouseMove); + + this._nCurrentMouseX = Event.getPageX(oEvent); + + this._bHandledMouseOutEvent = true; + this._bHandledMouseOverEvent = false; + + } + +}, + + +/** +* @method _onMouseMove +* @description "click" event handler for the menu. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseMove: function(p_oEvent, p_oMenu) { + + if(this._bStopMouseEventHandlers) { + + return false; + + } + + this._nCurrentMouseX = Event.getPageX(p_oEvent); + +}, + + +/** +* @method _onClick +* @description "click" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oTarget = Event.getTarget(oEvent); + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oSubmenu = oItemCfg.getProperty("submenu"); + + + /* + ACCESSIBILITY FEATURE FOR SCREEN READERS: + Expand/collapse the submenu when the user clicks + on the submenu indicator image. + */ + + if(oTarget == oItem.submenuIndicator && oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + oSubmenu.parent.focus(); + + } + else { + + this.clearActiveItem(); + + this.activeItem = oItem; + + oItem.cfg.setProperty("selected", true); + + oSubmenu.show(); + + } + + } + else { + + var sURL = oItemCfg.getProperty("url"), + bCurrentPageURL = (sURL.substr((sURL.length-1),1) == "#"), + sTarget = oItemCfg.getProperty("target"), + bHasTarget = (sTarget && sTarget.length > 0); + + /* + Prevent the browser from following links + equal to "#" + */ + + if( + oTarget.tagName.toUpperCase() == "A" && + bCurrentPageURL && !bHasTarget + ) { + + Event.preventDefault(oEvent); + + } + + if( + oTarget.tagName.toUpperCase() != "A" && + !bCurrentPageURL && !bHasTarget + ) { + + /* + Follow the URL of the item regardless of + whether or not the user clicked specifically + on the anchor element. + */ + + document.location = sURL; + + } + + + /* + If the item doesn't navigate to a URL and it doesn't have + a submenu, then collapse the menu tree. + */ + + if(bCurrentPageURL && !oSubmenu) { + + var oRoot = this.getRoot(); + + if(oRoot.cfg.getProperty("position") == "static") { + + oRoot.clearActiveItem(); + + } + else if(oRoot.cfg.getProperty("clicktohide")) { + + oRoot.hide(); + + } + + } + + } + + } + +}, + + +/** +* @method _onKeyDown +* @description "keydown" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0], + oItem = p_aArgs[1], + me = this, + oSubmenu; + + + /* + This function is called to prevent a bug in Firefox. In Firefox, + moving a DOM element into a stationary mouse pointer will cause the + browser to fire mouse events. This can result in the menu mouse + event handlers being called uncessarily, especially when menus are + moved into a stationary mouse pointer as a result of a + key event handler. + */ + function stopMouseEventHandlers() { + + me._bStopMouseEventHandlers = true; + + window.setTimeout(function() { + + me._bStopMouseEventHandlers = false; + + }, 10); + + } + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg, + oParentItem = this.parent, + oRoot, + oNextItem; + + + switch(oEvent.keyCode) { + + case 38: // Up arrow + case 40: // Down arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + oNextItem = (oEvent.keyCode == 38) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + oNextItem.focus(); + + + if(this.cfg.getProperty("maxheight") > 0) { + + var oBody = this.body; + + oBody.scrollTop = + + ( + oNextItem.element.offsetTop + + oNextItem.element.offsetHeight + ) - oBody.offsetHeight; + + + var nScrollTop = oBody.scrollTop, + nScrollTarget = + oBody.scrollHeight - oBody.offsetHeight; + + if(nScrollTop === 0) { + + this._disableScrollHeader(); + this._enableScrollFooter(); + + } + else if(nScrollTop == nScrollTarget) { + + this._enableScrollHeader(); + this._disableScrollFooter(); + + } + else { + + this._enableScrollHeader(); + this._enableScrollFooter(); + + } + + } + + } + + } + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + + case 39: // Right arrow + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(!oItemCfg.getProperty("selected")) { + + oItemCfg.setProperty("selected", true); + + } + + oSubmenu.show(); + + oSubmenu.setInitialSelection(); + + } + else { + + oRoot = this.getRoot(); + + if(oRoot instanceof YAHOO.widget.MenuBar) { + + oNextItem = oRoot.activeItem.getNextEnabledSibling(); + + if(oNextItem) { + + oRoot.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + + } + + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + + case 37: // Left arrow + + if(oParentItem) { + + var oParentMenu = oParentItem.parent; + + if(oParentMenu instanceof YAHOO.widget.MenuBar) { + + oNextItem = + oParentMenu.activeItem.getPreviousEnabledSibling(); + + if(oNextItem) { + + oParentMenu.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + else { + + this.hide(); + + oParentItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + stopMouseEventHandlers(); + + break; + + } + + + } + + + if(oEvent.keyCode == 27) { // Esc key + + if(this.cfg.getProperty("position") == "dynamic") { + + this.hide(); + + if(this.parent) { + + this.parent.focus(); + + } + + } + else if(this.activeItem) { + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + } + + + Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onKeyPress +* @description "keypress" event handler for a Menu instance. +* @protected +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event +* was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance that fired the event. +*/ +_onKeyPress: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + + + if(oEvent.keyCode == 40 || oEvent.keyCode == 38) { + + YAHOO.util.Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onTextResize +* @description "textresize" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onTextResize: function(p_sType, p_aArgs, p_oMenu) { + + if(this.browser == "gecko" && !this._handleResize) { + + this._handleResize = true; + return; + + } + + + var oConfig = this.cfg; + + if(oConfig.getProperty("position") == "dynamic") { + + oConfig.setProperty("width", (this._getOffsetWidth() + "px")); + + } + +}, + + +/** +* @method _onScrollTargetMouseOver +* @description "mouseover" event handler for the menu's "header" and "footer" +* elements. Used to scroll the body of the menu up and down when the +* menu's "maxheight" configuration property is set to a value greater than 0. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onScrollTargetMouseOver: function(p_oEvent, p_oMenu) { + + this._cancelHideDelay(); + + var oTarget = Event.getTarget(p_oEvent), + oBody = this.body, + me = this, + nScrollTarget, + fnScrollFunction; + + + function scrollBodyDown() { + + var nScrollTop = oBody.scrollTop; + + + if(nScrollTop < nScrollTarget) { + + oBody.scrollTop = (nScrollTop + 1); + + me._enableScrollHeader(); + + } + else { + + oBody.scrollTop = nScrollTarget; + + window.clearInterval(me._nBodyScrollId); + + me._disableScrollFooter(); + + } + + } + + + function scrollBodyUp() { + + var nScrollTop = oBody.scrollTop; + + + if(nScrollTop > 0) { + + oBody.scrollTop = (nScrollTop - 1); + + me._enableScrollFooter(); + + } + else { + + oBody.scrollTop = 0; + + window.clearInterval(me._nBodyScrollId); + + me._disableScrollHeader(); + + } + + } + + + if(Dom.hasClass(oTarget, "hd")) { + + fnScrollFunction = scrollBodyUp; + + } + else { + + nScrollTarget = oBody.scrollHeight - oBody.offsetHeight; + + fnScrollFunction = scrollBodyDown; + + } + + + this._nBodyScrollId = window.setInterval(fnScrollFunction, 10); + +}, + + +/** +* @method _onScrollTargetMouseOut +* @description "mouseout" event handler for the menu's "header" and "footer" +* elements. Used to stop scrolling the body of the menu up and down when the +* menu's "maxheight" configuration property is set to a value greater than 0. +* @protected +* @param {Event} p_oEvent Object representing the DOM event object passed +* back by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onScrollTargetMouseOut: function(p_oEvent, p_oMenu) { + + window.clearInterval(this._nBodyScrollId); + + this._cancelHideDelay(); + +}, + + + +// Private methods + + +/** +* @method _onInit +* @description "init" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onInit: function(p_sType, p_aArgs, p_oMenu) { + + if( + ( + (this.parent && !this.lazyLoad) || + (!this.parent && this.cfg.getProperty("position") == "static") || + ( + !this.parent && + !this.lazyLoad && + this.cfg.getProperty("position") == "dynamic" + ) + ) && + this.getItemGroups().length === 0 + ) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + + if(this.itemData) { + + this.addItems(this.itemData); + + } + + } + else if(this.lazyLoad) { + + this.cfg.fireQueue(); + + } + +}, + + +/** +* @method _onBeforeRender +* @description "beforerender" event handler for the menu. Appends all of the +* <code><ul></code>, <code><li></code> and their accompanying +* title elements to the body element of the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeRender: function(p_sType, p_aArgs, p_oMenu) { + + var oConfig = this.cfg, + oEl = this.element, + nListElements = this._aListElements.length; + + + if(nListElements > 0) { + + var i = 0, + bFirstList = true, + oUL, + oGroupTitle; + + + do { + + oUL = this._aListElements[i]; + + if(oUL) { + + if(bFirstList) { + + Dom.addClass(oUL, "first-of-type"); + bFirstList = false; + + } + + + if(!Dom.isAncestor(oEl, oUL)) { + + this.appendToBody(oUL); + + } + + + oGroupTitle = this._aGroupTitleElements[i]; + + if(oGroupTitle) { + + if(!Dom.isAncestor(oEl, oGroupTitle)) { + + oUL.parentNode.insertBefore(oGroupTitle, oUL); + + } + + + Dom.addClass(oUL, "hastitle"); + + } + + } + + i++; + + } + while(i < nListElements); + + } + +}, + + +/** +* @method _onBeforeShow +* @description "beforeshow" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeShow: function(p_sType, p_aArgs, p_oMenu) { + + if(this.lazyLoad && this.getItemGroups().length === 0) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + + if(this.itemData) { + + if( + this.parent && this.parent.parent && + this.parent.parent.srcElement && + this.parent.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + var nOptions = this.itemData.length; + + for(var n=0; n<nOptions; n++) { + + if(this.itemData[n].tagName) { + + this.addItem((new this.ITEM_TYPE(this.itemData[n]))); + + } + + } + + } + else { + + this.addItems(this.itemData); + + } + + } + + + var oSrcElement = this.srcElement; + + if(oSrcElement) { + + if(oSrcElement.tagName.toUpperCase() == "SELECT") { + + if(Dom.inDocument(oSrcElement)) { + + this.render(oSrcElement.parentNode); + + } + else { + + this.render(this.cfg.getProperty("container")); + + } + + } + else { + + this.render(); + + } + + } + else { + + if(this.parent) { + + this.render(this.parent.element); + + } + else { + + this.render(this.cfg.getProperty("container")); + + } + + } + + } + + + + if(this.cfg.getProperty("position") == "dynamic") { + + var nViewportHeight = Dom.getViewportHeight(); + + if(this.element.offsetHeight >= nViewportHeight) { + + var nMaxHeight = this.cfg.getProperty("maxheight"); + + /* + Cache the original value for the "maxheight" configuration + property so that we can set it back when the menu is hidden. + */ + + this._nMaxHeight = nMaxHeight; + + this.cfg.setProperty("maxheight", (nViewportHeight - 20)); + + } + + + if(this.cfg.getProperty("maxheight") > 0) { + + var oBody = this.body; + + if(oBody.scrollTop > 0) { + + oBody.scrollTop = 0; + + } + + this._disableScrollHeader(); + this._enableScrollFooter(); + + } + + } + + +}, + + +/** +* @method _onShow +* @description "show" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onShow: function(p_sType, p_aArgs, p_oMenu) { + + this.setInitialFocus(); + + var oParent = this.parent; + + if(oParent) { + + var oParentMenu = oParent.parent, + aParentAlignment = oParentMenu.cfg.getProperty("submenualignment"), + aAlignment = this.cfg.getProperty("submenualignment"); + + + if( + (aParentAlignment[0] != aAlignment[0]) && + (aParentAlignment[1] != aAlignment[1]) + ) { + + this.cfg.setProperty( + "submenualignment", + [ aParentAlignment[0], aParentAlignment[1] ] + ); + + } + + + if( + !oParentMenu.cfg.getProperty("autosubmenudisplay") && + oParentMenu.cfg.getProperty("position") == "static" + ) { + + oParentMenu.cfg.setProperty("autosubmenudisplay", true); + + + function disableAutoSubmenuDisplay(p_oEvent) { + + if( + p_oEvent.type == "mousedown" || + (p_oEvent.type == "keydown" && p_oEvent.keyCode == 27) + ) { + + /* + Set the "autosubmenudisplay" to "false" if the user + clicks outside the menu bar. + */ + + var oTarget = Event.getTarget(p_oEvent); + + if( + oTarget != oParentMenu.element || + !YAHOO.util.Dom.isAncestor(oParentMenu.element, oTarget) + ) { + + oParentMenu.cfg.setProperty( + "autosubmenudisplay", + false + ); + + Event.removeListener( + document, + "mousedown", + disableAutoSubmenuDisplay + ); + + Event.removeListener( + document, + "keydown", + disableAutoSubmenuDisplay + ); + + } + + } + + } + + Event.addListener(document, "mousedown", disableAutoSubmenuDisplay); + Event.addListener(document, "keydown", disableAutoSubmenuDisplay); + + } + + } + else if(!oParent && this.lazyLoad) { + + this.cfg.refireEvent("xy"); + + } + +}, + + +/** +* @method _onBeforeHide +* @description "beforehide" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onBeforeHide: function(p_sType, p_aArgs, p_oMenu) { + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + var oConfig = oActiveItem.cfg; + + oConfig.setProperty("selected", false); + + var oSubmenu = oConfig.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.hide(); + + } + + oActiveItem.blur(); + + } + +}, + + +/** +* @method _onHide +* @description "hide" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that fired +* the event. +*/ +_onHide: function(p_sType, p_aArgs, p_oMenu) { + + if(this._nMaxHeight != -1) { + + this.cfg.setProperty("maxheight", this._nMaxHeight); + + this._nMaxHeight = -1; + + } + +}, + + +/** +* @method _onParentMenuConfigChange +* @description "configchange" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onParentMenuConfigChange: function(p_sType, p_aArgs, p_oSubmenu) { + + var sPropertyName = p_aArgs[0][0], + oPropertyValue = p_aArgs[0][1]; + + switch(sPropertyName) { + + case "iframe": + case "constraintoviewport": + case "hidedelay": + case "showdelay": + case "submenuhidedelay": + case "clicktohide": + case "effect": + case "classname": + + p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue); + + break; + + } + +}, + + +/** +* @method _onParentMenuRender +* @description "render" event handler for a submenu. Renders a +* submenu in response to the firing of its parent's "render" event. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onParentMenuRender: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParentMenu = p_oSubmenu.parent.parent, + + oConfig = { + + constraintoviewport: + oParentMenu.cfg.getProperty("constraintoviewport"), + + xy: [0,0], + + clicktohide: oParentMenu.cfg.getProperty("clicktohide"), + + effect: oParentMenu.cfg.getProperty("effect"), + + showdelay: oParentMenu.cfg.getProperty("showdelay"), + + hidedelay: oParentMenu.cfg.getProperty("hidedelay"), + + submenuhidedelay: oParentMenu.cfg.getProperty("submenuhidedelay"), + + classname: oParentMenu.cfg.getProperty("classname") + + }; + + + /* + Only sync the "iframe" configuration property if the parent + menu's "position" configuration is the same. + */ + + if( + this.cfg.getProperty("position") == + oParentMenu.cfg.getProperty("position") + ) { + + oConfig.iframe = oParentMenu.cfg.getProperty("iframe"); + + } + + + p_oSubmenu.cfg.applyConfig(oConfig); + + + if(!this.lazyLoad) { + + var oLI = this.parent.element; + + if(this.element.parentNode == oLI) { + + this.render(); + + } + else { + + this.render(oLI); + + } + + } + +}, + + +/** +* @method _onSubmenuBeforeShow +* @description "beforeshow" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuBeforeShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent, + aAlignment = oParent.parent.cfg.getProperty("submenualignment"); + + this.cfg.setProperty( + "context", + [oParent.element, aAlignment[0], aAlignment[1]] + ); + + + var nScrollTop = oParent.parent.body.scrollTop; + + if( + (this.browser == "gecko" || this.browser == "safari") + && nScrollTop > 0 + ) { + + this.cfg.setProperty("y", (this.cfg.getProperty("y") - nScrollTop)); + + } + +}, + + +/** +* @method _onSubmenuShow +* @description "show" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.firstChild.nodeValue = + oParent.EXPANDED_SUBMENU_INDICATOR_TEXT; + +}, + + +/** +* @method _onSubmenuHide +* @description "hide" Custom Event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuHide: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.firstChild.nodeValue = + oParent.COLLAPSED_SUBMENU_INDICATOR_TEXT; + +}, + + +/** +* @method _onMenuItemFocus +* @description "focus" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemFocus: function(p_sType, p_aArgs, p_oItem) { + + this.activeItem = p_oItem; + +}, + + +/** +* @method _onMenuItemBlur +* @description "blur" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event +* that was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +*/ +_onMenuItemBlur: function(p_sType, p_aArgs) { + + this.activeItem = null; + +}, + + +/** +* @method _onMenuItemConfigChange +* @description "configchange" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemConfigChange: function(p_sType, p_aArgs, p_oItem) { + + var sProperty = p_aArgs[0][0]; + + switch(sProperty) { + + case "submenu": + + var oSubmenu = p_aArgs[0][1]; + + if(oSubmenu) { + + this._configureSubmenu(p_oItem); + + } + + break; + + case "text": + case "helptext": + + /* + A change to an item's "text" or "helptext" + configuration properties requires the width of the parent + menu to be recalculated. + */ + + if(this.element.style.width) { + + var sWidth = this._getOffsetWidth() + "px"; + + Dom.setStyle(this.element, "width", sWidth); + + } + + break; + + } + +}, + + + +// Public event handlers for configuration properties + + +/** +* @method enforceConstraints +* @description The default event handler executed when the moveEvent is fired, +* if the "constraintoviewport" configuration property is set to true. +* @param {String} type The name of the event that was fired. +* @param {Array} args Collection of arguments sent when the +* event was fired. +* @param {Array} obj Array containing the current Menu instance +* and the item that fired the event. +*/ +enforceConstraints: function(type, args, obj) { + + var oConfig = this.cfg, + pos = args[0], + + x = pos[0], + y = pos[1], + + offsetHeight = this.element.offsetHeight, + offsetWidth = this.element.offsetWidth, + + viewPortWidth = YAHOO.util.Dom.getViewportWidth(), + viewPortHeight = YAHOO.util.Dom.getViewportHeight(), + + scrollX = Math.max( + document.documentElement.scrollLeft, + document.body.scrollLeft + ), + + scrollY = Math.max( + document.documentElement.scrollTop, + document.body.scrollTop + ), + + nPadding = ( + this.parent && + this.parent.parent instanceof YAHOO.widget.MenuBar + ) ? 0 : 10, + + topConstraint = scrollY + nPadding, + leftConstraint = scrollX + nPadding, + bottomConstraint = scrollY + viewPortHeight - offsetHeight - nPadding, + rightConstraint = scrollX + viewPortWidth - offsetWidth - nPadding, + + aContext = oConfig.getProperty("context"), + oContextElement = aContext ? aContext[0] : null; + + + if (x < 10) { + + x = leftConstraint; + + } else if ((x + offsetWidth) > viewPortWidth) { + + if( + oContextElement && + ((x - oContextElement.offsetWidth) > offsetWidth) + ) { + + x = (x - (oContextElement.offsetWidth + offsetWidth)); + + } + else { + + x = rightConstraint; + + } + + } + + if (y < 10) { + + y = topConstraint; + + } else if (y > bottomConstraint) { + + if(oContextElement && (y > offsetHeight)) { + + y = ((y + oContextElement.offsetHeight) - offsetHeight); + + } + else { + + y = bottomConstraint; + + } + + } + + oConfig.setProperty("x", x, true); + oConfig.setProperty("y", y, true); + oConfig.setProperty("xy", [x,y], true); + +}, + + +/** +* @method configVisible +* @description Event handler for when the "visible" configuration property +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configVisible: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configVisible.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + else { + + var bVisible = p_aArgs[0], + sDisplay = Dom.getStyle(this.element, "display"); + + if(bVisible) { + + if(sDisplay != "block") { + this.beforeShowEvent.fire(); + Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } + + } + else { + + if(sDisplay == "block") { + this.beforeHideEvent.fire(); + Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + + } + + } + +}, + + +/** +* @method configPosition +* @description Event handler for when the "position" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configPosition: function(p_sType, p_aArgs, p_oMenu) { + + var sCSSPosition = p_aArgs[0] == "static" ? "static" : "absolute", + oCfg = this.cfg; + + Dom.setStyle(this.element, "position", sCSSPosition); + + + if(sCSSPosition == "static") { + + /* + Remove the iframe for statically positioned menus since it will + intercept mouse events. + */ + + oCfg.setProperty("iframe", false); + + + // Statically positioned menus are visible by default + + Dom.setStyle(this.element, "display", "block"); + + oCfg.setProperty("visible", true); + + } + else { + + /* + Even though the "visible" property is queued to + "false" by default, we need to set the "visibility" property to + "hidden" since Overlay's "configVisible" implementation checks the + element's "visibility" style property before deciding whether + or not to show an Overlay instance. + */ + + Dom.setStyle(this.element, "visibility", "hidden"); + + } + + + if(sCSSPosition == "absolute") { + + var nZIndex = oCfg.getProperty("zindex"); + + if(!nZIndex || nZIndex === 0) { + + nZIndex = this.parent ? + (this.parent.parent.cfg.getProperty("zindex") + 1) : 1; + + oCfg.setProperty("zindex", nZIndex); + + } + + } + +}, + + +/** +* @method configIframe +* @description Event handler for when the "iframe" configuration property of +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configIframe: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configIframe.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + +}, + + +/** +* @method configHideDelay +* @description Event handler for when the "hidedelay" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configHideDelay: function(p_sType, p_aArgs, p_oMenu) { + + var nHideDelay = p_aArgs[0], + oMouseOutEvent = this.mouseOutEvent, + oMouseOverEvent = this.mouseOverEvent, + oKeyDownEvent = this.keyDownEvent; + + if(nHideDelay > 0) { + + /* + Only assign event handlers once. This way the user change + the value for the hidedelay as many times as they want. + */ + + if(!this._bHideDelayEventHandlersAssigned) { + + oMouseOutEvent.subscribe(this._execHideDelay, true); + oMouseOverEvent.subscribe(this._cancelHideDelay, this, true); + oKeyDownEvent.subscribe(this._cancelHideDelay, this, true); + + this._bHideDelayEventHandlersAssigned = true; + + } + + } + else { + + oMouseOutEvent.unsubscribe(this._execHideDelay, this); + oMouseOverEvent.unsubscribe(this._cancelHideDelay, this); + oKeyDownEvent.unsubscribe(this._cancelHideDelay, this); + + this._bHideDelayEventHandlersAssigned = false; + + } + +}, + + +/** +* @method configContainer +* @description Event handler for when the "container" configuration property +of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configContainer: function(p_sType, p_aArgs, p_oMenu) { + + var oElement = p_aArgs[0]; + + if(typeof oElement == 'string') { + + this.cfg.setProperty( + "container", + document.getElementById(oElement), + true + ); + + } + +}, + + +/** +* @method configMaxHeight +* @description Event handler for when the "maxheight" configuration property of +* a Menu changes. +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event +* was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired +* the event. +*/ +configMaxHeight: function(p_sType, p_aArgs, p_oMenu) { + + var nMaxHeight = p_aArgs[0], + oBody = this.body, + oHeader = this.header, + oFooter = this.footer, + fnMouseOver = this._onScrollTargetMouseOver, + fnMouseOut = this._onScrollTargetMouseOut; + + + if((nMaxHeight > 0) && (oBody.offsetHeight > nMaxHeight)) { + + if(!this.cfg.getProperty("width")) { + + this._setWidth(); + + } + + if(!oHeader && !oFooter) { + + this.setHeader(" "); + this.setFooter(" "); + + oHeader = this.header; + oFooter = this.footer; + + Dom.addClass(oHeader, "topscrollbar"); + Dom.addClass(oFooter, "bottomscrollbar"); + + this.element.insertBefore(oHeader, oBody); + this.element.appendChild(oFooter); + + Event.addListener(oHeader, "mouseover", fnMouseOver, this, true); + Event.addListener(oHeader, "mouseout", fnMouseOut, this, true); + Event.addListener(oFooter, "mouseover", fnMouseOver, this, true); + Event.addListener(oFooter, "mouseout", fnMouseOut, this, true); + + } + + var nHeight = + + ( + nMaxHeight - + (this.footer.offsetHeight + this.header.offsetHeight) + ); + + Dom.setStyle(oBody, "height", (nHeight + "px")); + Dom.setStyle(oBody, "overflow", "hidden"); + + } + else if(oHeader && oFooter) { + + Dom.setStyle(oBody, "height", "auto"); + Dom.setStyle(oBody, "overflow", "visible"); + + Event.removeListener(oHeader, "mouseover", fnMouseOver); + Event.removeListener(oHeader, "mouseout", fnMouseOut); + Event.removeListener(oFooter, "mouseover", fnMouseOver); + Event.removeListener(oFooter, "mouseout", fnMouseOut); + + this.element.removeChild(oHeader); + this.element.removeChild(oFooter); + + this.header = null; + this.footer = null; + + } + +}, + + +/** +* @method configClassName +* @description Event handler for when the "classname" configuration property of +* a menu changes. +* @param {String} p_sType The name of the event that was fired. +* @param {Array} p_aArgs Collection of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event. +*/ +configClassName: function(p_sType, p_aArgs, p_oMenu) { + + var sClassName = p_aArgs[0]; + + if(this._sClassName) { + + Dom.removeClass(this.element, this._sClassName); + + } + + Dom.addClass(this.element, sClassName); + this._sClassName = sClassName; + +}, + + +// Public methods + + +/** +* @method initEvents +* @description Initializes the custom events for the menu. +*/ +initEvents: function() { + + YAHOO.widget.Menu.superclass.initEvents.call(this); + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.itemAddedEvent = new CustomEvent("itemAddedEvent", this); + this.itemRemovedEvent = new CustomEvent("itemRemovedEvent", this); + +}, + + +/** +* @method getRoot +* @description Finds the menu's root menu. +*/ +getRoot: function() { + + var oItem = this.parent; + + if(oItem) { + + var oParentMenu = oItem.parent; + + return oParentMenu ? oParentMenu.getRoot() : this; + + } + else { + + return this; + + } + +}, + + +/** +* @method toString +* @description Returns a string representing the menu. +* @return {String} +*/ +toString: function() { + + return ("Menu " + this.id); + +}, + + +/** +* @method setItemGroupTitle +* @description Sets the title of a group of menu items. +* @param {String} p_sGroupTitle String specifying the title of the group. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to which +* the title belongs. +*/ +setItemGroupTitle: function(p_sGroupTitle, p_nGroupIndex) { + + if(typeof p_sGroupTitle == "string" && p_sGroupTitle.length > 0) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0, + oTitle = this._aGroupTitleElements[nGroupIndex]; + + + if(oTitle) { + + oTitle.innerHTML = p_sGroupTitle; + + } + else { + + oTitle = document.createElement(this.GROUP_TITLE_TAG_NAME); + + oTitle.innerHTML = p_sGroupTitle; + + this._aGroupTitleElements[nGroupIndex] = oTitle; + + } + + + var i = this._aGroupTitleElements.length - 1, + nFirstIndex; + + do { + + if(this._aGroupTitleElements[i]) { + + Dom.removeClass(this._aGroupTitleElements[i], "first-of-type"); + + nFirstIndex = i; + + } + + } + while(i--); + + + if(nFirstIndex !== null) { + + Dom.addClass( + this._aGroupTitleElements[nFirstIndex], + "first-of-type" + ); + + } + + } + +}, + + + +/** +* @method addItem +* @description Appends an item to the menu. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to +* which the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +addItem: function(p_oItem, p_nGroupIndex) { + + if(p_oItem) { + + return this._addItemToGroup(p_nGroupIndex, p_oItem); + + } + +}, + + +/** +* @method addItems +* @description Adds an array of items to the menu. +* @param {Array} p_aItems Array of items to be added to the menu. The array +* can contain strings specifying the text for each item to be created, object +* literals specifying each of the menu item configuration properties, +* or MenuItem instances. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to +* which the items belongs. +* @return {Array} +*/ +addItems: function(p_aItems, p_nGroupIndex) { + + if(Lang.isArray(p_aItems)) { + + var nItems = p_aItems.length, + aItems = [], + oItem; + + + for(var i=0; i<nItems; i++) { + + oItem = p_aItems[i]; + + if(oItem) { + + if(Lang.isArray(oItem)) { + + aItems[aItems.length] = this.addItems(oItem, i); + + } + else { + + aItems[aItems.length] = + this._addItemToGroup(p_nGroupIndex, oItem); + + } + + } + + } + + + if(aItems.length) { + + return aItems; + + } + + } + +}, + + +/** +* @method insertItem +* @description Inserts an item into the menu at the specified index. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nItemIndex Number indicating the ordinal position at which +* the item should be added. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to which +* the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +insertItem: function(p_oItem, p_nItemIndex, p_nGroupIndex) { + + if(p_oItem) { + + return this._addItemToGroup(p_nGroupIndex, p_oItem, p_nItemIndex); + + } + +}, + + +/** +* @method removeItem +* @description Removes the specified item from the menu. +* @param {YAHOO.widget.MenuItem} p_oObject Object reference for the MenuItem +* instance to be removed from the menu. +* @param {Number} p_oObject Number specifying the index of the item +* to be removed. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to +* which the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +removeItem: function(p_oObject, p_nGroupIndex) { + + if(typeof p_oObject != "undefined") { + + var oItem; + + if(p_oObject instanceof YAHOO.widget.MenuItem) { + + oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject); + + } + else if(typeof p_oObject == "number") { + + oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject); + + } + + if(oItem) { + + oItem.destroy(); + + + return oItem; + + } + + } + +}, + + +/** +* @method getItems +* @description Returns an array of all of the items in the menu. +* @return {Array} +*/ +getItems: function() { + + var aGroups = this._aItemGroups, + nGroups = aGroups.length; + + return ( + (nGroups == 1) ? aGroups[0] : + (Array.prototype.concat.apply([], aGroups)) + ); + +}, + + +/** +* @method getItemGroups +* @description Multi-dimensional Array representing the menu items as they +* are grouped in the menu. +* @return {Array} +*/ +getItemGroups: function() { + + return this._aItemGroups; + +}, + + +/** +* @method getItem +* @description Returns the item at the specified index. +* @param {Number} p_nItemIndex Number indicating the ordinal position of the +* item to be retrieved. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to which +* the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +getItem: function(p_nItemIndex, p_nGroupIndex) { + + if(typeof p_nItemIndex == "number") { + + var aGroup = this._getItemGroup(p_nGroupIndex); + + if(aGroup) { + + return aGroup[p_nItemIndex]; + + } + + } + +}, + + +/** +* @method clearContent +* @description Removes all of the content from the menu, including the menu +* items, group titles, header and footer. +*/ +clearContent: function() { + + var aItems = this.getItems(), + nItems = aItems.length, + oElement = this.element, + oBody = this.body, + oHeader = this.header, + oFooter = this.footer; + + + if(nItems > 0) { + + var i = nItems - 1, + oItem, + oSubmenu; + + do { + + oItem = aItems[i]; + + if(oItem) { + + oSubmenu = oItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + this.cfg.configChangedEvent.unsubscribe( + this._onParentMenuConfigChange, + oSubmenu + ); + + this.renderEvent.unsubscribe( + this._onParentMenuRender, + oSubmenu + ); + + } + + oItem.destroy(); + + } + + } + while(i--); + + } + + + if(oHeader) { + + Event.purgeElement(oHeader); + oElement.removeChild(oHeader); + + } + + + if(oFooter) { + + Event.purgeElement(oFooter); + oElement.removeChild(oFooter); + } + + + if(oBody) { + + Event.purgeElement(oBody); + + oBody.innerHTML = ""; + + } + + + this._aItemGroups = []; + this._aListElements = []; + this._aGroupTitleElements = []; + +}, + + +/** +* @method destroy +* @description Removes the menu's <code><div></code> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove all DOM event listeners + + Event.purgeElement(this.element); + + + // Remove Custom Event listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + this.itemAddedEvent.unsubscribeAll(); + this.itemRemovedEvent.unsubscribeAll(); + + YAHOO.widget.Module.textResizeEvent.unsubscribe(this._onTextResize, this); + + + // Remove all items + + this.clearContent(); + + + this._aItemGroups = null; + this._aListElements = null; + this._aGroupTitleElements = null; + + + // Continue with the superclass implementation of this method + + YAHOO.widget.Menu.superclass.destroy.call(this); + + +}, + + +/** +* @method setInitialFocus +* @description Sets focus to the menu's first enabled item. +*/ +setInitialFocus: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.focus(); + } + +}, + + +/** +* @method setInitialSelection +* @description Sets the "selected" configuration property of the menu's first +* enabled item to "true." +*/ +setInitialSelection: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.cfg.setProperty("selected", true); + } + +}, + + +/** +* @method clearActiveItem +* @description Sets the "selected" configuration property of the menu's active +* item to "false" and hides the item's submenu. +* @param {Boolean} p_bBlur Boolean indicating if the menu's active item +* should be blurred. +*/ +clearActiveItem: function(p_bBlur) { + + if(this.cfg.getProperty("showdelay") > 0) { + + this._cancelShowDelay(); + + } + + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + var oConfig = oActiveItem.cfg; + + oConfig.setProperty("selected", false); + + var oSubmenu = oConfig.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.hide(); + + } + + if(p_bBlur) { + + oActiveItem.blur(); + + } + + } + +}, + + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.Menu.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration attributes + + /* + Change the default value for the "visible" configuration + property to "false" by re-adding the property. + */ + + /** + * @config visible + * @description Boolean indicating whether or not the menu is visible. If + * the menu's "position" configuration property is set to "dynamic" (the + * default), this property toggles the menu's <code><div></code> + * element's "visibility" style property between "visible" (true) or + * "hidden" (false). If the menu's "position" configuration property is + * set to "static" this property toggles the menu's + * <code><div></code> element's "display" style property + * between "block" (true) or "none" (false). + * @default false + * @type Boolean + */ + oConfig.addProperty( + "visible", + { + value:false, + handler:this.configVisible, + validator:this.cfg.checkBoolean + } + ); + + + /* + Change the default value for the "constraintoviewport" configuration + property to "true" by re-adding the property. + */ + + /** + * @config constraintoviewport + * @description Boolean indicating if the menu will try to remain inside + * the boundaries of the size of viewport. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "constraintoviewport", + { + value:true, + handler:this.configConstrainToViewport, + validator:this.cfg.checkBoolean, + supercedes:["iframe","x","y","xy"] + } + ); + + + /** + * @config position + * @description String indicating how a menu should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menus are + * visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menus are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and + * can overlay other elements on the screen. + * @default dynamic + * @type String + */ + oConfig.addProperty( + "position", + { + value: "dynamic", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu item. The format is: [itemCorner, submenuCorner]. By default + * a submenu's top left corner is aligned to its parent menu item's top + * right corner. + * @default ["tl","tr"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","tr"] } ); + + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu's items. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + + /** + * @config showdelay + * @description Number indicating the time (in milliseconds) that should + * expire before a submenu is made visible when the user mouses over + * the menu's items. + * @default 250 + * @type Number + */ + oConfig.addProperty( + "showdelay", + { + value: 250, + validator: oConfig.checkNumber + } + ); + + + /** + * @config hidedelay + * @description Number indicating the time (in milliseconds) that should + * expire before the menu is hidden. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "hidedelay", + { + value: 0, + validator: oConfig.checkNumber, + handler: this.configHideDelay, + suppressEvent: true + } + ); + + + /** + * @config submenuhidedelay + * @description Number indicating the time (in milliseconds) that should + * expire before a submenu is hidden when the user mouses out of a menu item + * heading in the direction of a submenu. The value must be greater than or + * equal to the value specified for the "showdelay" configuration property. + * @default 250 + * @type Number + */ + oConfig.addProperty( + "submenuhidedelay", + { + value: 250, + validator: oConfig.checkNumber + } + ); + + + /** + * @config clicktohide + * @description Boolean indicating if the menu will automatically be + * hidden if the user clicks outside of it. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "clicktohide", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the menu's markup should be + * rendered into. + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|String + * @default document.body + */ + oConfig.addProperty( + "container", + { + value:document.body, + handler:this.configContainer + } + ); + + + /** + * @config maxheight + * @description Defines the maximum height (in pixels) for a menu before the + * contents of the body are scrolled. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "maxheight", + { + value: 0, + validator: oConfig.checkNumber, + handler: this.configMaxHeight + } + ); + + + /** + * @config classname + * @description CSS class to be applied to the menu's root + * <code><div></code> element. The specified class(es) are + * appended in addition to the default class as specified by the menu's + * CSS_CLASS_NAME constant. + * @default null + * @type String + */ + oConfig.addProperty( + "classname", + { + value: null, + handler: this.configClassName, + validator: this._checkString + } + ); + +} + +}); // END YAHOO.lang.extend + +})(); + + + +(function() { + +var Dom = YAHOO.util.Dom, + Module = YAHOO.widget.Module, + Menu = YAHOO.widget.Menu, + + m_oMenuItemElement = null, + m_oSubmenuIndicator = null, + m_oCheckedIndicator = null; + + +/** +* Creates an item for a menu. +* +* @param {String} p_oObject String specifying the text of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying +* the <code><li></code> element of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object +* specifying the <code><option></code> element of the menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu item. See configuration class documentation +* for more details. +* @class MenuItem +* @constructor +*/ +YAHOO.widget.MenuItem = function(p_oObject, p_oConfig) { + + if(p_oObject) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + this.value = p_oConfig.value; + this.id = p_oConfig.id; + + } + + this.init(p_oObject, p_oConfig); + + } + +}; + + +YAHOO.widget.MenuItem.prototype = { + + // Constants + + + /** + * @property SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * menu item's submenu arrow indicator. + * @default "nt/ic/ut/alt1/menuarorght8_nrm_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarorght8_nrm_1.gif", + + + /** + * @property SELECTED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is selected. + * @default "nt/ic/ut/alt1/menuarorght8_hov_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + SELECTED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_hov_1.gif", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is disabled. + * @default "nt/ic/ut/alt1/menuarorght8_dim_1.gif" + * @final + * @type String + * @deprecated All submenu indicator images are applied via a CSS + * background image. See "submenuindicator" class name in menu.css. + */ + DISABLED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_dim_1.gif", + + + /** + * @property COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator. + * @default "Collapsed. Click to expand." + * @final + * @type String + * @deprecated Use COLLAPSED_SUBMENU_INDICATOR_TEXT. + */ + COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT: "Collapsed. Click to expand.", + + + /** + * @property EXPANDED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the submenu is visible. + * @default "Expanded. Click to collapse." + * @final + * @type String + * @deprecated Use EXPANDED_SUBMENU_INDICATOR_TEXT. + */ + EXPANDED_SUBMENU_INDICATOR_ALT_TEXT: "Expanded. Click to collapse.", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the menu item is disabled. + * @default "Disabled." + * @final + * @type String + * @deprecated Use DISABLED_SUBMENU_INDICATOR_TEXT. + */ + DISABLED_SUBMENU_INDICATOR_ALT_TEXT: "Disabled.", + + + /** + * @property COLLAPSED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the <code><em><code> + * element used for the submenu arrow indicator. + * @default "Submenu collapsed. Click to expand submenu." + * @final + * @type String + */ + COLLAPSED_SUBMENU_INDICATOR_TEXT: + "Submenu collapsed. Click to expand submenu.", + + + /** + * @property EXPANDED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the submenu arrow indicator + * element (<code><em><code>) when the submenu is visible. + * @default "Submenu expanded. Click to collapse submenu." + * @final + * @type String + */ + EXPANDED_SUBMENU_INDICATOR_TEXT: + "Submenu expanded. Click to collapse submenu.", + + + /** + * @property DISABLED_SUBMENU_INDICATOR_TEXT + * @description String representing the text for the submenu arrow indicator + * element (<code><em><code>) when the menu item is disabled. + * @default "Submenu collapsed. (Item disabled.)." + * @final + * @type String + */ + DISABLED_SUBMENU_INDICATOR_TEXT: "Submenu collapsed. (Item disabled.)", + + + /** + * @property CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the checked state. + * @default "nt/ic/ut/bsc/menuchk8_nrm_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. See "checkedindicator" class name in menu.css. + */ + CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_nrm_1.gif", + + + /** + * @property SELECTED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the selected checked state. + * @default "nt/ic/ut/bsc/menuchk8_hov_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. See "checkedindicator" class name in menu.css. + */ + SELECTED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_hov_1.gif", + + + /** + * @property DISABLED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the disabled checked state. + * @default "nt/ic/ut/bsc/menuchk8_dim_1.gif" + * @final + * @type String + * @deprecated All checked indicator images are applied via a CSS + * background image. + */ + DISABLED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_dim_1.gif", + + + /** + * @property CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image. + * @default "Checked." + * @final + * @type String + * @deprecated Use CHECKED_TEXT. + */ + CHECKED_IMAGE_ALT_TEXT: "Checked.", + + + /** + * @property DISABLED_CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image when the item is disabled. + * @default "Checked. (Item disabled.)" + * @final + * @type String + * @deprecated Use DISABLED_CHECKED_TEXT. + */ + DISABLED_CHECKED_IMAGE_ALT_TEXT: "Checked. (Item disabled.)", + + + /** + * @property CHECKED_TEXT + * @description String representing the text to be used for the checked + * indicator element (<code><em><code>). + * @default "Checked." + * @final + * @type String + */ + CHECKED_TEXT: "Menu item checked.", + + + /** + * @property DISABLED_CHECKED_TEXT + * @description String representing the text to be used for the checked + * indicator element (<code><em><code>) when the menu item + * is disabled. + * @default "Checked. (Item disabled.)" + * @final + * @type String + */ + DISABLED_CHECKED_TEXT: "Checked. (Item disabled.)", + + + /** + * @property CSS_CLASS_NAME + * @description String representing the CSS class(es) to be applied to the + * <code><li></code> element of the menu item. + * @default "yuimenuitem" + * @final + * @type String + */ + CSS_CLASS_NAME: "yuimenuitem", + + + /** + * @property SUBMENU_TYPE + * @description Object representing the type of menu to instantiate and + * add when parsing the child nodes of the menu item's source HTML element. + * @final + * @type YAHOO.widget.Menu + */ + SUBMENU_TYPE: null, + + + /** + * @property IMG_ROOT + * @description String representing the prefix path to use for + * non-secure images. + * @default "http://us.i1.yimg.com/us.yimg.com/i/" + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + IMG_ROOT: "http://us.i1.yimg.com/us.yimg.com/i/", + + + /** + * @property IMG_ROOT_SSL + * @description String representing the prefix path to use for securely + * served images. + * @default "https://a248.e.akamai.net/sec.yimg.com/i/" + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + IMG_ROOT_SSL: "https://a248.e.akamai.net/sec.yimg.com/i/", + + + + // Private member variables + + + /** + * @property _oAnchor + * @description Object reference to the menu item's + * <code><a></code> element. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-48250443">HTMLAnchorElement</a> + */ + _oAnchor: null, + + + /** + * @property _oText + * @description Object reference to the menu item's text node. + * @default null + * @private + * @type TextNode + */ + _oText: null, + + + /** + * @property _oHelpTextEM + * @description Object reference to the menu item's help text + * <code><em></code> element. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-58190037">HTMLElement</a> + */ + _oHelpTextEM: null, + + + /** + * @property _oSubmenu + * @description Object reference to the menu item's submenu. + * @default null + * @private + * @type YAHOO.widget.Menu + */ + _oSubmenu: null, + + + /** + * @property _checkImage + * @description Object reference to the menu item's checkmark image. + * @default null + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-17701901">HTMLImageElement</a> + * @deprecated Use _oCheckedIndicator. + */ + _checkImage: null, + + + /** + * @property _oCheckedIndicator + * @description Object reference to the menu item's checkmark image. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + * @private + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + */ + _oCheckedIndicator: null, + + + /** + * @property _oOnclickAttributeValue + * @description Object reference to the menu item's current value for the + * "onclick" configuration attribute. + * @default null + * @private + * @type Object + */ + _oOnclickAttributeValue: null, + + + /** + * @property _sClassName + * @description The current value of the "classname" configuration attribute. + * @default null + * @private + * @type String + */ + _sClassName: null, + + + + // Public properties + + + /** + * @property constructor + * @description Object reference to the menu item's constructor function. + * @default YAHOO.widget.MenuItem + * @type YAHOO.widget.MenuItem + */ + constructor: YAHOO.widget.MenuItem, + + + /** + * @property imageRoot + * @description String representing the root path for all of the menu + * item's images. + * @type String + * @deprecated All menu item images are now applied via CSS + * background images. + */ + imageRoot: null, + + + /** + * @property isSecure + * @description Boolean representing whether or not the current browsing + * context is secure (HTTPS). + * @type Boolean + * @deprecated All menu item images are now applied via CSS + * background images. + */ + isSecure: Module.prototype.isSecure, + + + /** + * @property index + * @description Number indicating the ordinal position of the menu item in + * its group. + * @default null + * @type Number + */ + index: null, + + + /** + * @property groupIndex + * @description Number indicating the index of the group to which the menu + * item belongs. + * @default null + * @type Number + */ + groupIndex: null, + + + /** + * @property parent + * @description Object reference to the menu item's parent menu. + * @default null + * @type YAHOO.widget.Menu + */ + parent: null, + + + /** + * @property element + * @description Object reference to the menu item's + * <code><li></code> element. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level + * -one-html.html#ID-74680021">HTMLLIElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a> + */ + element: null, + + + /** + * @property srcElement + * @description Object reference to the HTML element (either + * <code><li></code>, <code><optgroup></code> or + * <code><option></code>) used create the menu item. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www. + * w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247" + * >HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM- + * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.w3. + * org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247"> + * HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM- + * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a> + */ + srcElement: null, + + + /** + * @property value + * @description Object reference to the menu item's value. + * @default null + * @type Object + */ + value: null, + + + /** + * @property submenuIndicator + * @description Object reference to the <code><em></code> element + * used to create the submenu indicator for the menu item. + * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a> + */ + submenuIndicator: null, + + + /** + * @property browser + * @description String representing the browser. + * @type String + */ + browser: Module.prototype.browser, + + + /** + * @property id + * @description Id of the menu item's root <code><li></code> + * element. This property should be set via the constructor using the + * configuration object literal. If an id is not specified, then one will + * be created using the "generateId" method of the Dom utility. + * @default null + * @type String + */ + id: null, + + + + // Events + + + /** + * @event destroyEvent + * @description Fires when the menu item's <code><li></code> + * element is removed from its parent <code><ul></code> element. + * @type YAHOO.util.CustomEvent + */ + destroyEvent: null, + + + /** + * @event mouseOverEvent + * @description Fires when the mouse has entered the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOverEvent: null, + + + /** + * @event mouseOutEvent + * @description Fires when the mouse has left the menu item. Passes back + * the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOutEvent: null, + + + /** + * @event mouseDownEvent + * @description Fires when the user mouses down on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseDownEvent: null, + + + /** + * @event mouseUpEvent + * @description Fires when the user releases a mouse button while the mouse + * is over the menu item. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseUpEvent: null, + + + /** + * @event clickEvent + * @description Fires when the user clicks the on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + clickEvent: null, + + + /** + * @event keyPressEvent + * @description Fires when the user presses an alphanumeric key when the + * menu item has focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyPressEvent: null, + + + /** + * @event keyDownEvent + * @description Fires when the user presses a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyDownEvent: null, + + + /** + * @event keyUpEvent + * @description Fires when the user releases a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyUpEvent: null, + + + /** + * @event focusEvent + * @description Fires when the menu item receives focus. + * @type YAHOO.util.CustomEvent + */ + focusEvent: null, + + + /** + * @event blurEvent + * @description Fires when the menu item loses the input focus. + * @type YAHOO.util.CustomEvent + */ + blurEvent: null, + + + /** + * @method init + * @description The MenuItem class's initialization method. This method is + * automatically called by the constructor, and sets up all DOM references + * for pre-existing markup, and creates required markup if it is not + * already present. + * @param {String} p_oObject String specifying the text of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying + * the <code><li></code> element of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object + * specifying the <code><optgroup></code> element of the menu item. + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- + * one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object + * specifying the <code><option></code> element of the menu item. + * @param {Object} p_oConfig Optional. Object literal specifying the + * configuration for the menu item. See configuration class documentation + * for more details. + */ + init: function(p_oObject, p_oConfig) { + + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = Menu; + + } + + + // Create the config object + + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + var oConfig = this.cfg; + + + if(this._checkString(p_oObject)) { + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject); + + } + else if(this._checkDOMNode(p_oObject)) { + + switch(p_oObject.tagName.toUpperCase()) { + + case "OPTION": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.text); + + this.srcElement = p_oObject; + + break; + + case "OPTGROUP": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.label); + + this.srcElement = p_oObject; + + this._initSubTree(); + + break; + + case "LI": + + // Get the anchor node (if it exists) + + var oAnchor = this._getFirstElement(p_oObject, "A"), + sURL = "#", + sTarget, + sText; + + + // Capture the "text" and/or the "URL" + + if(oAnchor) { + + sURL = oAnchor.getAttribute("href"); + sTarget = oAnchor.getAttribute("target"); + + if(oAnchor.innerText) { + + sText = oAnchor.innerText; + + } + else { + + var oRange = oAnchor.ownerDocument.createRange(); + + oRange.selectNodeContents(oAnchor); + + sText = oRange.toString(); + + } + + } + else { + + var oText = p_oObject.firstChild; + + sText = oText.nodeValue; + + oAnchor = document.createElement("a"); + + oAnchor.setAttribute("href", sURL); + + p_oObject.replaceChild(oAnchor, oText); + + oAnchor.appendChild(oText); + + } + + + this.srcElement = p_oObject; + this.element = p_oObject; + this._oAnchor = oAnchor; + + + // Check if emphasis has been applied to the MenuItem + + var oEmphasisNode = this._getFirstElement(oAnchor), + bEmphasis = false, + bStrongEmphasis = false; + + if(oEmphasisNode) { + + // Set a reference to the text node + + this._oText = oEmphasisNode.firstChild; + + switch(oEmphasisNode.tagName.toUpperCase()) { + + case "EM": + + bEmphasis = true; + + break; + + case "STRONG": + + bStrongEmphasis = true; + + break; + + } + + } + else { + + // Set a reference to the text node + + this._oText = oAnchor.firstChild; + + } + + + /* + Set these properties silently to sync up the + configuration object without making changes to the + element's DOM + */ + + oConfig.setProperty("text", sText, true); + oConfig.setProperty("url", sURL, true); + oConfig.setProperty("target", sTarget, true); + oConfig.setProperty("emphasis", bEmphasis, true); + oConfig.setProperty( + "strongemphasis", + bStrongEmphasis, + true + ); + + this._initSubTree(); + + break; + + } + + } + + + if(this.element) { + + var sId = this.element.id; + + if(!sId) { + + sId = this.id || Dom.generateId(); + + this.element.id = sId; + + } + + this.id = sId; + + + Dom.addClass(this.element, this.CSS_CLASS_NAME); + + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.destroyEvent = new CustomEvent("destroyEvent", this); + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.focusEvent = new CustomEvent("focusEvent", this); + this.blurEvent = new CustomEvent("blurEvent", this); + + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig); + + } + + oConfig.fireQueue(); + + + + + } + + }, + + + + // Private methods + + + /** + * @method _getFirstElement + * @description Returns an HTML element's first HTML element node. + * @private + * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object + * reference specifying the element to be evaluated. + * @param {String} p_sTagName Optional. String specifying the tagname of + * the element to be retrieved. + * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>} + */ + _getFirstElement: function(p_oElement, p_sTagName) { + + var oFirstChild = p_oElement.firstChild, + oElement; + + if(oFirstChild) { + + if(oFirstChild.nodeType == 1) { + + oElement = oFirstChild; + + } + else { + + var oNextSibling = oFirstChild.nextSibling; + + if(oNextSibling && oNextSibling.nodeType == 1) { + + oElement = oNextSibling; + + } + + } + + } + + + if(p_sTagName) { + + return (oElement && oElement.tagName.toUpperCase() == p_sTagName) ? + oElement : false; + + } + + return oElement; + + }, + + + /** + * @method _checkString + * @description Determines if an object is a string. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkString: function(p_oObject) { + + return (typeof p_oObject == "string"); + + }, + + + /** + * @method _checkDOMNode + * @description Determines if an object is an HTML element. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkDOMNode: function(p_oObject) { + + return (p_oObject && p_oObject.tagName); + + }, + + + /** + * @method _createRootNodeStructure + * @description Creates the core DOM structure for the menu item. + * @private + */ + _createRootNodeStructure: function () { + + if(!m_oMenuItemElement) { + + m_oMenuItemElement = document.createElement("li"); + m_oMenuItemElement.innerHTML = "<a href=\"#\">s</a>"; + + } + + this.element = m_oMenuItemElement.cloneNode(true); + this._oAnchor = this.element.firstChild; + this._oText = this._oAnchor.firstChild; + + this.element.appendChild(this._oAnchor); + + }, + + + /** + * @method _initSubTree + * @description Iterates the source element's childNodes collection and uses + * the child nodes to instantiate other menus. + * @private + */ + _initSubTree: function() { + + var oSrcEl = this.srcElement, + oConfig = this.cfg; + + + if(oSrcEl.childNodes.length > 0) { + + if( + this.parent.lazyLoad && + this.parent.srcElement && + this.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + oConfig.setProperty( + "submenu", + { id: Dom.generateId(), itemdata: oSrcEl.childNodes } + ); + + } + else { + + var oNode = oSrcEl.firstChild, + aOptions = []; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "DIV": + + oConfig.setProperty("submenu", oNode); + + break; + + case "OPTION": + + aOptions[aOptions.length] = oNode; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + + var nOptions = aOptions.length; + + if(nOptions > 0) { + + var oMenu = new this.SUBMENU_TYPE(Dom.generateId()); + + oConfig.setProperty("submenu", oMenu); + + for(var n=0; n<nOptions; n++) { + + oMenu.addItem((new oMenu.ITEM_TYPE(aOptions[n]))); + + } + + } + + } + + } + + }, + + + /** + * @method _preloadImage + * @description Preloads an image by creating an image element from the + * specified path and appending the image to the body of the document. + * @private + * @param {String} p_sPath String specifying the path to the image. + * @deprecated All menu item images are now applied via CSS + * background images. + */ + _preloadImage: function(p_sPath) { + + var sPath = this.imageRoot + p_sPath; + + if(!document.images[sPath]) { + + var oImage = document.createElement("img"); + oImage.src = sPath; + oImage.name = sPath; + oImage.id = sPath; + oImage.style.display = "none"; + + document.body.appendChild(oImage); + + } + + }, + + + + // Event handlers for configuration properties + + + /** + * @method configText + * @description Event handler for when the "text" configuration property of + * the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configText: function(p_sType, p_aArgs, p_oItem) { + + var sText = p_aArgs[0]; + + + if(this._oText) { + + this._oText.nodeValue = sText; + + } + + }, + + + /** + * @method configHelpText + * @description Event handler for when the "helptext" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configHelpText: function(p_sType, p_aArgs, p_oItem) { + + var me = this, + oHelpText = p_aArgs[0], + oEl = this.element, + oConfig = this.cfg, + aNodes = [oEl, this._oAnchor], + oSubmenuIndicator = this.submenuIndicator; + + + function initHelpText() { + + Dom.addClass(aNodes, "hashelptext"); + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + + + function removeHelpText() { + + Dom.removeClass(aNodes, "hashelptext"); + + oEl.removeChild(me._oHelpTextEM); + me._oHelpTextEM = null; + + } + + + if(this._checkDOMNode(oHelpText)) { + + oHelpText.className = "helptext"; + + if(this._oHelpTextEM) { + + this._oHelpTextEM.parentNode.replaceChild( + oHelpText, + this._oHelpTextEM + ); + + } + else { + + this._oHelpTextEM = oHelpText; + + oEl.insertBefore(this._oHelpTextEM, oSubmenuIndicator); + + } + + initHelpText(); + + } + else if(this._checkString(oHelpText)) { + + if(oHelpText.length === 0) { + + removeHelpText(); + + } + else { + + if(!this._oHelpTextEM) { + + this._oHelpTextEM = document.createElement("em"); + this._oHelpTextEM.className = "helptext"; + + oEl.insertBefore(this._oHelpTextEM, oSubmenuIndicator); + + } + + this._oHelpTextEM.innerHTML = oHelpText; + + initHelpText(); + + } + + } + else if(!oHelpText && this._oHelpTextEM) { + + removeHelpText(); + + } + + }, + + + /** + * @method configURL + * @description Event handler for when the "url" configuration property of + * the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configURL: function(p_sType, p_aArgs, p_oItem) { + + var sURL = p_aArgs[0]; + + if(!sURL) { + + sURL = "#"; + + } + + this._oAnchor.setAttribute("href", sURL); + + }, + + + /** + * @method configTarget + * @description Event handler for when the "target" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configTarget: function(p_sType, p_aArgs, p_oItem) { + + var sTarget = p_aArgs[0], + oAnchor = this._oAnchor; + + if(sTarget && sTarget.length > 0) { + + oAnchor.setAttribute("target", sTarget); + + } + else { + + oAnchor.removeAttribute("target"); + + } + + }, + + + /** + * @method configEmphasis + * @description Event handler for when the "emphasis" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bEmphasis = p_aArgs[0], + oAnchor = this._oAnchor, + oText = this._oText, + oConfig = this.cfg, + oEM; + + + if(bEmphasis && oConfig.getProperty("strongemphasis")) { + + oConfig.setProperty("strongemphasis", false); + + } + + + if(oAnchor) { + + if(bEmphasis) { + + oEM = document.createElement("em"); + oEM.appendChild(oText); + + oAnchor.appendChild(oEM); + + } + else { + + oEM = this._getFirstElement(oAnchor, "EM"); + + if(oEM) { + + oAnchor.removeChild(oEM); + oAnchor.appendChild(oText); + + } + + } + + } + + }, + + + /** + * @method configStrongEmphasis + * @description Event handler for when the "strongemphasis" configuration + * property of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configStrongEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bStrongEmphasis = p_aArgs[0], + oAnchor = this._oAnchor, + oText = this._oText, + oConfig = this.cfg, + oStrong; + + if(bStrongEmphasis && oConfig.getProperty("emphasis")) { + + oConfig.setProperty("emphasis", false); + + } + + if(oAnchor) { + + if(bStrongEmphasis) { + + oStrong = document.createElement("strong"); + oStrong.appendChild(oText); + + oAnchor.appendChild(oStrong); + + } + else { + + oStrong = this._getFirstElement(oAnchor, "STRONG"); + + if(oStrong) { + + oAnchor.removeChild(oStrong); + oAnchor.appendChild(oText); + + } + + } + + } + + }, + + + /** + * @method configChecked + * @description Event handler for when the "checked" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configChecked: function(p_sType, p_aArgs, p_oItem) { + + var bChecked = p_aArgs[0], + oEl = this.element, + oConfig = this.cfg, + oEM; + + + if(bChecked) { + + if(!m_oCheckedIndicator) { + + m_oCheckedIndicator = document.createElement("em"); + m_oCheckedIndicator.innerHTML = this.CHECKED_TEXT; + m_oCheckedIndicator.className = "checkedindicator"; + + } + + oEM = m_oCheckedIndicator.cloneNode(true); + + var oSubmenu = this.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.element) { + + oEl.insertBefore(oEM, oSubmenu.element); + + } + else { + + oEl.appendChild(oEM); + + } + + + Dom.addClass(oEl, "checked"); + + this._oCheckedIndicator = oEM; + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + else { + + oEM = this._oCheckedIndicator; + + Dom.removeClass(oEl, "checked"); + + if(oEM) { + + oEl.removeChild(oEM); + + } + + this._oCheckedIndicator = null; + + } + + }, + + + + /** + * @method configDisabled + * @description Event handler for when the "disabled" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configDisabled: function(p_sType, p_aArgs, p_oItem) { + + var bDisabled = p_aArgs[0], + oConfig = this.cfg, + oAnchor = this._oAnchor, + aNodes = [this.element, oAnchor], + oHelpText = this._oHelpTextEM, + oCheckedIndicator = this._oCheckedIndicator, + oSubmenuIndicator = this.submenuIndicator, + i = 1; + + + if(oHelpText) { + + i++; + aNodes[i] = oHelpText; + + } + + + if(oCheckedIndicator) { + + oCheckedIndicator.firstChild.nodeValue = bDisabled ? + this.DISABLED_CHECKED_TEXT : + this.CHECKED_TEXT; + + i++; + aNodes[i] = oCheckedIndicator; + + } + + + if(oSubmenuIndicator) { + + oSubmenuIndicator.firstChild.nodeValue = bDisabled ? + this.DISABLED_SUBMENU_INDICATOR_TEXT : + this.COLLAPSED_SUBMENU_INDICATOR_TEXT; + + i++; + aNodes[i] = oSubmenuIndicator; + + } + + + if(bDisabled) { + + if(oConfig.getProperty("selected")) { + + oConfig.setProperty("selected", false); + + } + + oAnchor.removeAttribute("href"); + + Dom.addClass(aNodes, "disabled"); + + } + else { + + oAnchor.setAttribute("href", oConfig.getProperty("url")); + + Dom.removeClass(aNodes, "disabled"); + + } + + }, + + + /** + * @method configSelected + * @description Event handler for when the "selected" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSelected: function(p_sType, p_aArgs, p_oItem) { + + if(!this.cfg.getProperty("disabled")) { + + var bSelected = p_aArgs[0], + oHelpText = this._oHelpTextEM, + oSubmenuIndicator = this.submenuIndicator, + oCheckedIndicator = this._oCheckedIndicator, + aNodes = [this.element, this._oAnchor], + i = 1; + + + if(oHelpText) { + + i++; + aNodes[i] = oHelpText; + + } + + + if(oSubmenuIndicator) { + + i++; + aNodes[i] = oSubmenuIndicator; + + } + + + if(oCheckedIndicator) { + + i++; + aNodes[i] = oCheckedIndicator; + + } + + + if(bSelected) { + + Dom.addClass(aNodes, "selected"); + + } + else { + + Dom.removeClass(aNodes, "selected"); + + } + + } + + }, + + + /** + * @method configSubmenu + * @description Event handler for when the "submenu" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSubmenu: function(p_sType, p_aArgs, p_oItem) { + + var oEl = this.element, + oSubmenu = p_aArgs[0], + oSubmenuIndicator = this.submenuIndicator, + oConfig = this.cfg, + aNodes = [this.element, this._oAnchor], + bLazyLoad = this.parent && this.parent.lazyLoad, + oMenu; + + + if(oSubmenu) { + + if(oSubmenu instanceof Menu) { + + oMenu = oSubmenu; + oMenu.parent = this; + oMenu.lazyLoad = bLazyLoad; + + } + else if( + typeof oSubmenu == "object" && + oSubmenu.id && + !oSubmenu.nodeType + ) { + + var sSubmenuId = oSubmenu.id, + oSubmenuConfig = oSubmenu; + + oSubmenuConfig.lazyload = bLazyLoad; + oSubmenuConfig.parent = this; + + oMenu = new this.SUBMENU_TYPE(sSubmenuId, oSubmenuConfig); + + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + else { + + oMenu = new this.SUBMENU_TYPE( + oSubmenu, + { lazyload: bLazyLoad, parent: this } + ); + + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + + + if(oMenu) { + + this._oSubmenu = oMenu; + + + if(!oSubmenuIndicator) { + + + if(!m_oSubmenuIndicator) { + + m_oSubmenuIndicator = document.createElement("em"); + m_oSubmenuIndicator.innerHTML = + this.COLLAPSED_SUBMENU_INDICATOR_TEXT; + m_oSubmenuIndicator.className = "submenuindicator"; + + } + + + oSubmenuIndicator = m_oSubmenuIndicator.cloneNode(true); + + + if(oMenu.element.parentNode == oEl) { + + if(this.browser == "opera") { + + oEl.appendChild(oSubmenuIndicator); + + oMenu.renderEvent.subscribe(function() { + + oSubmenuIndicator.parentNode.insertBefore( + oSubmenuIndicator, + oMenu.element + ); + + }); + + } + else { + + oEl.insertBefore(oSubmenuIndicator, oMenu.element); + + } + + } + else { + + oEl.appendChild(oSubmenuIndicator); + + } + + this.submenuIndicator = oSubmenuIndicator; + + } + + + Dom.addClass(aNodes, "hassubmenu"); + + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + + } + else { + + Dom.removeClass(aNodes, "hassubmenu"); + + if(oSubmenuIndicator) { + + oEl.removeChild(oSubmenuIndicator); + + } + + if(this._oSubmenu) { + + this._oSubmenu.destroy(); + + } + + } + + }, + + + /** + * @method configOnClick + * @description Event handler for when the "onclick" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configOnClick: function(p_sType, p_aArgs, p_oItem) { + + var oObject = p_aArgs[0]; + + /* + Remove any existing listeners if a "click" event handler has + already been specified. + */ + + if( + this._oOnclickAttributeValue && + (this._oOnclickAttributeValue != oObject) + ) { + + this.clickEvent.unsubscribe( + this._oOnclickAttributeValue.fn, + this._oOnclickAttributeValue.obj + ); + + this._oOnclickAttributeValue = null; + + } + + + if( + !this._oOnclickAttributeValue && + typeof oObject == "object" && + typeof oObject.fn == "function" + ) { + + this.clickEvent.subscribe( + oObject.fn, + (oObject.obj || this), + oObject.scope + ); + + this._oOnclickAttributeValue = oObject; + + } + + }, + + + /** + * @method configClassName + * @description Event handler for when the "classname" configuration + * property of a menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configClassName: function(p_sType, p_aArgs, p_oItem) { + + var sClassName = p_aArgs[0]; + + if(this._sClassName) { + + Dom.removeClass(this.element, this._sClassName); + + } + + Dom.addClass(this.element, sClassName); + this._sClassName = sClassName; + + }, + + + + // Public methods + + + /** + * @method initDefaultConfig + * @description Initializes an item's configurable properties. + */ + initDefaultConfig : function() { + + var oConfig = this.cfg, + CheckBoolean = oConfig.checkBoolean; + + + // Define the configuration attributes + + /** + * @config text + * @description String specifying the text label for the menu item. + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default "" + * @type String + */ + oConfig.addProperty( + "text", + { + value: "", + handler: this.configText, + validator: this._checkString, + suppressEvent: true + } + ); + + + /** + * @config helptext + * @description String specifying additional instructional text to + * accompany the text for the nenu item. + * @default null + * @type String|<a href="http://www.w3.org/TR/ + * 2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037"> + * HTMLElement</a> + */ + oConfig.addProperty("helptext", { handler: this.configHelpText }); + + + /** + * @config url + * @description String specifying the URL for the menu item's anchor's + * "href" attribute. When building a menu from existing HTML the value + * of this property will be interpreted from the menu's markup. + * @default "#" + * @type String + */ + oConfig.addProperty( + "url", + { value: "#", handler: this.configURL, suppressEvent: true } + ); + + + /** + * @config target + * @description String specifying the value for the "target" attribute + * of the menu item's anchor element. <strong>Specifying a target will + * require the user to click directly on the menu item's anchor node in + * order to cause the browser to navigate to the specified URL.</strong> + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default null + * @type String + */ + oConfig.addProperty( + "target", + { handler: this.configTarget, suppressEvent: true } + ); + + + /** + * @config emphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with emphasis. When building a menu from existing HTML the + * value of this property will be interpreted from the menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "emphasis", + { + value: false, + handler: this.configEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config strongemphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with strong emphasis. When building a menu from existing + * HTML the value of this property will be interpreted from the + * menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "strongemphasis", + { + value: false, + handler: this.configStrongEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config checked + * @description Boolean indicating if the menu item should be rendered + * with a checkmark. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "checked", + { + value: false, + handler: this.configChecked, + validator: this.cfg.checkBoolean, + suppressEvent: true, + supercedes:["disabled"] + } + ); + + + /** + * @config disabled + * @description Boolean indicating if the menu item should be disabled. + * (Disabled menu items are dimmed and will not respond to user input + * or fire events.) + * @default false + * @type Boolean + */ + oConfig.addProperty( + "disabled", + { + value: false, + handler: this.configDisabled, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config selected + * @description Boolean indicating if the menu item should + * be highlighted. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "selected", + { + value: false, + handler: this.configSelected, + validator: CheckBoolean, + suppressEvent: true + } + ); + + + /** + * @config submenu + * @description Object specifying the submenu to be appended to the + * menu item. The value can be one of the following: <ul><li>Object + * specifying a Menu instance.</li><li>Object literal specifying the + * menu to be created. Format: <code>{ id: [menu id], itemdata: + * [<a href="YAHOO.widget.Menu.html#itemData">array of values for + * items</a>] }</code>.</li><li>String specifying the id attribute + * of the <code><div></code> element of the menu.</li><li> + * Object specifying the <code><div></code> element of the + * menu.</li></ul> + * @default null + * @type Menu|String|Object|<a href="http://www.w3.org/TR/2000/ + * WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037"> + * HTMLElement</a> + */ + oConfig.addProperty("submenu", { handler: this.configSubmenu }); + + + /** + * @config onclick + * @description Object literal representing the code to be executed when + * the button is clicked. Format:<br> <code> {<br> + * <strong>fn:</strong> Function, // The handler to call when + * the event fires.<br> <strong>obj:</strong> Object, // An + * object to pass back to the handler.<br> <strong>scope:</strong> + * Object // The object to use for the scope of the handler. + * <br> } </code> + * @type Object + * @default null + */ + oConfig.addProperty("onclick", { handler: this.configOnClick }); + + + /** + * @config classname + * @description CSS class to be applied to the menu item's root + * <code><li></code> element. The specified class(es) are + * appended in addition to the default class as specified by the menu + * item's CSS_CLASS_NAME constant. + * @default null + * @type String + */ + oConfig.addProperty( + "classname", + { + value: null, + handler: this.configClassName, + validator: this._checkString + } + ); + + }, + + + /** + * @method getNextEnabledSibling + * @description Finds the menu item's next enabled sibling. + * @return YAHOO.widget.MenuItem + */ + getNextEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + function getNextArrayItem(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getNextArrayItem(p_aArray, (p_nStartIndex+1)); + + } + + + var aItemGroups = this.parent.getItemGroups(), + oNextItem; + + + if(this.index < (aItemGroups[nGroupIndex].length - 1)) { + + oNextItem = getNextArrayItem( + aItemGroups[nGroupIndex], + (this.index+1) + ); + + } + else { + + var nNextGroupIndex; + + if(nGroupIndex < (aItemGroups.length - 1)) { + + nNextGroupIndex = nGroupIndex + 1; + + } + else { + + nNextGroupIndex = 0; + + } + + var aNextGroup = getNextArrayItem(aItemGroups, nNextGroupIndex); + + // Retrieve the first menu item in the next group + + oNextItem = getNextArrayItem(aNextGroup, 0); + + } + + return ( + oNextItem.cfg.getProperty("disabled") || + oNextItem.element.style.display == "none" + ) ? + oNextItem.getNextEnabledSibling() : oNextItem; + + } + + }, + + + /** + * @method getPreviousEnabledSibling + * @description Finds the menu item's previous enabled sibling. + * @return {YAHOO.widget.MenuItem} + */ + getPreviousEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + function getPreviousArrayItem(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getPreviousArrayItem(p_aArray, (p_nStartIndex-1)); + + } + + function getFirstItemIndex(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] ? + p_nStartIndex : + getFirstItemIndex(p_aArray, (p_nStartIndex+1)); + + } + + var aItemGroups = this.parent.getItemGroups(), + oPreviousItem; + + if( + this.index > getFirstItemIndex(aItemGroups[nGroupIndex], 0) + ) { + + oPreviousItem = + getPreviousArrayItem( + aItemGroups[nGroupIndex], + (this.index-1) + ); + + } + else { + + var nPreviousGroupIndex; + + if(nGroupIndex > getFirstItemIndex(aItemGroups, 0)) { + + nPreviousGroupIndex = nGroupIndex - 1; + + } + else { + + nPreviousGroupIndex = aItemGroups.length - 1; + + } + + var aPreviousGroup = + getPreviousArrayItem(aItemGroups, nPreviousGroupIndex); + + oPreviousItem = + getPreviousArrayItem( + aPreviousGroup, + (aPreviousGroup.length - 1) + ); + + } + + return ( + oPreviousItem.cfg.getProperty("disabled") || + oPreviousItem.element.style.display == "none" + ) ? + oPreviousItem.getPreviousEnabledSibling() : oPreviousItem; + + } + + }, + + + /** + * @method focus + * @description Causes the menu item to receive the focus and fires the + * focus event. + */ + focus: function() { + + var oParent = this.parent, + oAnchor = this._oAnchor, + oActiveItem = oParent.activeItem; + + + function setFocus() { + + try { + + oAnchor.focus(); + + } + catch(e) { + + } + + } + + + if( + !this.cfg.getProperty("disabled") && + oParent && + oParent.cfg.getProperty("visible") && + this.element.style.display != "none" + ) { + + if(oActiveItem) { + + oActiveItem.blur(); + + } + + + /* + Setting focus via a timer fixes a race condition in Firefox, IE + and Opera where the browser viewport jumps as it trys to + position and focus the menu. + */ + + window.setTimeout(setFocus, 0); + + this.focusEvent.fire(); + + } + + }, + + + /** + * @method blur + * @description Causes the menu item to lose focus and fires the + * onblur event. + */ + blur: function() { + + var oParent = this.parent; + + if( + !this.cfg.getProperty("disabled") && + oParent && + Dom.getStyle(oParent.element, "visibility") == "visible" + ) { + + this._oAnchor.blur(); + + this.blurEvent.fire(); + + } + + }, + + + /** + * @method destroy + * @description Removes the menu item's <code><li></code> element + * from its parent <code><ul></code> element. + */ + destroy: function() { + + var oEl = this.element; + + if(oEl) { + + + // If the item has a submenu, destroy it first + + var oSubmenu = this.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.destroy(); + + } + + + // Remove CustomEvent listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + this.focusEvent.unsubscribeAll(); + this.blurEvent.unsubscribeAll(); + this.cfg.configChangedEvent.unsubscribeAll(); + + + // Remove the element from the parent node + + var oParentNode = oEl.parentNode; + + if(oParentNode) { + + oParentNode.removeChild(oEl); + + this.destroyEvent.fire(); + + } + + this.destroyEvent.unsubscribeAll(); + + } + + }, + + + /** + * @method toString + * @description Returns a string representing the menu item. + * @return {String} + */ + toString: function() { + + return ("MenuItem: " + this.cfg.getProperty("text")); + + } + +}; + +})(); + + + +/** +* Creates a list of options or commands which are made visible in response to +* an HTML element's "contextmenu" event ("mousedown" for Opera). +* +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the +* <code><div></code> element of the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying +* the <code><select></code> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +* @class ContextMenu +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.ContextMenu = function(p_oElement, p_oConfig) { + + YAHOO.widget.ContextMenu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + + +YAHOO.lang.extend(YAHOO.widget.ContextMenu, YAHOO.widget.Menu, { + + + +// Private properties + + +/** +* @property _oTrigger +* @description Object reference to the current value of the "trigger" +* configuration property. +* @default null +* @private +* @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/leve +* l-one-html.html#ID-58190037">HTMLElement</a>|Array +*/ +_oTrigger: null, + + +/** +* @property _bCancelled +* @description Boolean indicating if the display of the context menu should +* be cancelled. +* @default false +* @private +* @type Boolean +*/ +_bCancelled: false, + + +// Public properties + + +/** +* @property contextEventTarget +* @description Object reference for the HTML element that was the target of the +* "contextmenu" DOM event ("mousedown" for Opera) that triggered the display of +* the context menu. +* @default null +* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-58190037">HTMLElement</a> +*/ +contextEventTarget: null, + + + +// Events + + +/** +* @event triggerContextMenuEvent +* @description Custom Event wrapper for the "contextmenu" DOM event +* ("mousedown" for Opera) fired by the element(s) that trigger the display of +* the context menu. +*/ +triggerContextMenuEvent: null, + + + + + +/** +* @method init +* @description The ContextMenu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for +* the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the +* <code><div></code> element of the context menu. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one- +* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying +* the <code><select></code> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.ContextMenuItem; + + } + + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.ContextMenu.superclass.init.call(this, p_oElement); + + + this.beforeInitEvent.fire(YAHOO.widget.ContextMenu); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + + this.initEvent.fire(YAHOO.widget.ContextMenu); + +}, + + +/** +* @method initEvents +* @description Initializes the custom events for the context menu. +*/ +initEvents: function() { + + YAHOO.widget.ContextMenu.superclass.initEvents.call(this); + + // Create custom events + + this.triggerContextMenuEvent = + new YAHOO.util.CustomEvent("triggerContextMenuEvent", this); + +}, + + +/** +* @method cancel +* @description Cancels the display of the context menu. +*/ +cancel: function() { + + this._bCancelled = true; + +}, + + + +// Private methods + + +/** +* @method _removeEventHandlers +* @description Removes all of the DOM event handlers from the HTML element(s) +* whose "context menu" event ("click" for Opera) trigger the display of +* the context menu. +* @private +*/ +_removeEventHandlers: function() { + + var Event = YAHOO.util.Event, + oTrigger = this._oTrigger, + bOpera = (this.browser == "opera"); + + + // Remove the event handlers from the trigger(s) + + Event.removeListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu + ); + + if(bOpera) { + + Event.removeListener(oTrigger, "click", this._onTriggerClick); + + } + +}, + + + +// Private event handlers + + +/** +* @method _onTriggerClick +* @description "click" event handler for the HTML element(s) identified as the +* "trigger" for the context menu. Used to cancel default behaviors in Opera. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerClick: function(p_oEvent, p_oMenu) { + + if(p_oEvent.ctrlKey) { + + YAHOO.util.Event.stopEvent(p_oEvent); + + } + +}, + + +/** +* @method _onTriggerContextMenu +* @description "contextmenu" event handler ("mousedown" for Opera) for the HTML +* element(s) that trigger the display of the context menu. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerContextMenu: function(p_oEvent, p_oMenu) { + + var Event = YAHOO.util.Event; + + if(p_oEvent.type == "mousedown" && !p_oEvent.ctrlKey) { + + return; + + } + + + /* + Prevent the browser's default context menu from appearing and + stop the propagation of the "contextmenu" event so that + other ContextMenu instances are not displayed. + */ + + Event.stopEvent(p_oEvent); + + + // Hide any other ContextMenu instances that might be visible + + YAHOO.widget.MenuManager.hideVisible(); + + + this.contextEventTarget = Event.getTarget(p_oEvent); + + this.triggerContextMenuEvent.fire(p_oEvent); + + + if(!this._bCancelled) { + + // Position and display the context menu + + this.cfg.setProperty("xy", Event.getXY(p_oEvent)); + + this.show(); + + } + + this._bCancelled = false; + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the context menu. +* @return {String} +*/ +toString: function() { + + return ("ContextMenu " + this.id); + +}, + + +/** +* @method initDefaultConfig +* @description Initializes the class's configurable properties which can be +* changed using the context menu's Config object ("cfg"). +*/ +initDefaultConfig: function() { + + YAHOO.widget.ContextMenu.superclass.initDefaultConfig.call(this); + + /** + * @config trigger + * @description The HTML element(s) whose "contextmenu" event ("mousedown" + * for Opera) trigger the display of the context menu. Can be a string + * representing the id attribute of the HTML element, an object reference + * for the HTML element, or an array of strings or HTML element references. + * @default null + * @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/ + * level-one-html.html#ID-58190037">HTMLElement</a>|Array + */ + this.cfg.addProperty("trigger", { handler: this.configTrigger }); + +}, + + +/** +* @method destroy +* @description Removes the context menu's <code><div></code> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove the DOM event handlers from the current trigger(s) + + this._removeEventHandlers(); + + + // Continue with the superclass implementation of this method + + YAHOO.widget.ContextMenu.superclass.destroy.call(this); + +}, + + + +// Public event handlers for configuration properties + + +/** +* @method configTrigger +* @description Event handler for when the value of the "trigger" configuration +* property changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that fired the event. +*/ +configTrigger: function(p_sType, p_aArgs, p_oMenu) { + + var Event = YAHOO.util.Event, + oTrigger = p_aArgs[0]; + + if(oTrigger) { + + /* + If there is a current "trigger" - remove the event handlers + from that element(s) before assigning new ones + */ + + if(this._oTrigger) { + + this._removeEventHandlers(); + + } + + this._oTrigger = oTrigger; + + + /* + Listen for the "mousedown" event in Opera b/c it does not + support the "contextmenu" event + */ + + var bOpera = (this.browser == "opera"); + + Event.addListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu, + this, + true + ); + + + /* + Assign a "click" event handler to the trigger element(s) for + Opera to prevent default browser behaviors. + */ + + if(bOpera) { + + Event.addListener( + oTrigger, + "click", + this._onTriggerClick, + this, + true + ); + + } + + } + else { + + this._removeEventHandlers(); + + } + +} + +}); // END YAHOO.lang.extend + + + +/** +* Creates an item for a context menu. +* +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the context +* menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +* @class ContextMenuItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.ContextMenuItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.ContextMenuItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.ContextMenuItem, YAHOO.widget.MenuItem, { + + +/** +* @method init +* @description The ContextMenuItem class's initialization method. This method +* is automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the context menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the context +* menu item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.ContextMenu; + + } + + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.ContextMenuItem.superclass.init.call(this, p_oObject); + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the context menu item. +* @return {String} +*/ +toString: function() { + + return ("ContextMenuItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.lang.extend + + + +/** +* Horizontal collection of items, each of which can contain a submenu. +* +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying +* the <code><div></code> element of the menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object +* specifying the <code><select></code> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +* @class Menubar +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.MenuBar = function(p_oElement, p_oConfig) { + + YAHOO.widget.MenuBar.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.MenuBar, YAHOO.widget.Menu, { + +/** +* @method init +* @description The MenuBar class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <code><div></code> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <code><select></code> element to be used as the data source for the +* menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying +* the <code><div></code> element of the menu bar. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object +* specifying the <code><select></code> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuBarItem; + + } + + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.MenuBar.superclass.init.call(this, p_oElement); + + + this.beforeInitEvent.fire(YAHOO.widget.MenuBar); + + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + this.initEvent.fire(YAHOO.widget.MenuBar); + +}, + + + +// Constants + + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the menu +* bar's <code><div></code> element. +* @default "yuimenubar" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubar", + + + +// Protected event handlers + + +/** +* @method _onKeyDown +* @description "keydown" Custom Event handler for the menu bar. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenuBar) { + + var Event = YAHOO.util.Event, + oEvent = p_aArgs[0], + oItem = p_aArgs[1], + oSubmenu; + + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var oItemCfg = oItem.cfg; + + switch(oEvent.keyCode) { + + case 37: // Left arrow + case 39: // Right arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + var oNextItem = (oEvent.keyCode == 37) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + + if(this.cfg.getProperty("autosubmenudisplay")) { + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + oSubmenu.activeItem.blur(); + oSubmenu.activeItem = null; + + } + + } + + oNextItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + case 40: // Down arrow + + if(this.activeItem != oItem) { + + this.clearActiveItem(); + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + } + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.setInitialSelection(); + oSubmenu.setInitialFocus(); + + } + else { + + oSubmenu.show(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + } + + } + + + if(oEvent.keyCode == 27 && this.activeItem) { // Esc key + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + Event.preventDefault(oEvent); + + } + +}, + + +/** +* @method _onClick +* @description "click" event handler for the menu bar. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenuBar) { + + YAHOO.widget.MenuBar.superclass._onClick.call( + this, + p_sType, + p_aArgs, + p_oMenuBar + ); + + + var oItem = p_aArgs[1]; + + if(oItem && !oItem.cfg.getProperty("disabled")) { + + var Event = YAHOO.util.Event, + Dom = YAHOO.util.Dom, + + oEvent = p_aArgs[0], + oTarget = Event.getTarget(oEvent), + + oActiveItem = this.activeItem, + oConfig = this.cfg; + + + // Hide any other submenus that might be visible + + if(oActiveItem && oActiveItem != oItem) { + + this.clearActiveItem(); + + } + + + // Select and focus the current item + + oItem.cfg.setProperty("selected", true); + oItem.focus(); + + + // Show the submenu for the item + + var oSubmenu = oItem.cfg.getProperty("submenu"); + + + if(oSubmenu && oTarget != oItem.submenuIndicator) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + } + else { + + oSubmenu.show(); + + } + + } + + } + +}, + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the menu bar. +* @return {String} +*/ +toString: function() { + + return ("MenuBar " + this.id); + +}, + + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu bar's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.MenuBar.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration properties + + + /* + Set the default value for the "position" configuration property + to "static" by re-adding the property. + */ + + /** + * @config position + * @description String indicating how a menu bar should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menu bars + * are visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menu bars are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and can + * overlay other elements on the screen. + * @default static + * @type String + */ + oConfig.addProperty( + "position", + { + value: "static", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + + /* + Set the default value for the "submenualignment" configuration property + to ["tl","bl"] by re-adding the property. + */ + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu bar item. The format is: [itemCorner, submenuCorner]. + * @default ["tl","bl"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","bl"] } ); + + + /* + Change the default value for the "autosubmenudisplay" configuration + property to "false" by re-adding the property. + */ + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu bar's items. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { value: false, validator: oConfig.checkBoolean } + ); + +} + +}); // END YAHOO.lang.extend + + + +/** +* Creates an item for a menu bar. +* +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +* @class MenuBarItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.MenuBarItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.MenuBarItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.lang.extend(YAHOO.widget.MenuBarItem, YAHOO.widget.MenuItem, { + + +/** +* @method init +* @description The MenuBarItem class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the +* <code><li></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object +* specifying the <code><optgroup></code> element of the menu bar item. +* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level- +* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying +* the <code><option></code> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.Menu; + + } + + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.MenuBarItem.superclass.init.call(this, p_oObject); + + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + + + +// Constants + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* <code><li></code> element of the menu bar item. +* @default "yuimenubaritem" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubaritem", + + + +// Public methods + + +/** +* @method toString +* @description Returns a string representing the menu bar item. +* @return {String} +*/ +toString: function() { + + return ("MenuBarItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.lang.extend +YAHOO.register("menu", YAHOO.widget.Menu, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/reset-fonts-grids/README b/interface/ispconfig/interface/js/yui/reset-fonts-grids/README new file mode 100644 index 0000000..d0b2117 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/reset-fonts-grids/README @@ -0,0 +1,24 @@ +YUI Library - Reset+Fonts+Grids (RFG) - Release Notes + +*** NOTE *** + +This document is not updated with each release. Changes to +the reset-fonts-grids.css source are noted in the README +file for each component that comprises this aggregate: + +reset/README +fonts/README +grids/README + +************ + +Version 2.2.0 + + * No changes. + +Version 0.12.0 + + * Initial release. + + * This file is a convenience file containing an in-order + concatonation of Reset, Fonts, and Grids. \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/reset-fonts-grids/reset-fonts-grids.css b/interface/ispconfig/interface/js/yui/reset-fonts-grids/reset-fonts-grids.css new file mode 100644 index 0000000..43d99e7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/reset-fonts-grids/reset-fonts-grids.css @@ -0,0 +1,9 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/*reset.css*/body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;} +/*fonts.css*/body{font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}pre, code {font:115% monospace;*font-size:100%;}body * {line-height:1.22em;} +/*grids.css*/body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.3em;min-width:750px;}#doc2{width:73.074em;*width:71.313em;min-width:950px;}#doc3{margin:auto 10px;width:auto;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.3207em;*width:12.0106em;}.yui-t1 #yui-main .yui-b{margin-left:13.3207em;*margin-left:13.0106em;}.yui-t2 .yui-b{float:left;width:13.8456em;*width:13.512em;}.yui-t2 #yui-main .yui-b{margin-left:14.8456em;*margin-left:14.512em;}.yui-t3 .yui-b{float:left;width:23.0759em;*width:22.52em;}.yui-t3 #yui-main .yui-b{margin-left:24.0759em;*margin-left:23.52em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.512em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.512em;}.yui-t5 .yui-b{float:right;width:18.4608em;*width:18.016em;}.yui-t5 #yui-main .yui-b{margin-right:19.4608em;*margin-right:19.016em;}.yui-t6 .yui-b{float:right;width:23.0759em;*width:22.52em;}.yui-t6 #yui-main .yui-b{margin-right:24.0759em;*margin-right:23.52em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-g .yui-u,.yui-g .yui-g,.yui-gc .yui-u,.yui-gc .yui-g .yui-u,.yui-ge .yui-u,.yui-gf .yui-u{float:right;display:inline;}.yui-g div.first,.yui-gc div.first,.yui-gc div.first div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g{width:49.1%;}.yui-g .yui-g .yui-u,.yui-gc .yui-g .yui-u{width:48.1%;}.yui-gb .yui-u,.yui-gc .yui-u,.yui-gd .yui-u{float:left;margin-left:2%;*margin-left:1.895%;width:32%;}.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge .yui-u{width:24%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-gf div.first{width:24%;}.yui-ge div.first{width:74.2%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/reset/README b/interface/ispconfig/interface/js/yui/reset/README new file mode 100644 index 0000000..e25df68 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/reset/README @@ -0,0 +1,25 @@ +YUI Library - Reset - Release Notes + +Version 2.2.0 + + * No changes. + +Version 0.12.1 - 0.12.2 + + * No changes. + +Version 0.12.0 + + * Added: h1,h2,h3,h4,h5,h6{font-weight:normal;} + + * Added: abbr,acronym {border:0;} + + * Added: textarea {padding:0;margin:0;} + +Version 0.11.0 + + * No changes. + +Version 0.10.0 + + * Initial release. \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/reset/reset-min.css b/interface/ispconfig/interface/js/yui/reset/reset-min.css new file mode 100644 index 0000000..5ca0723 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/reset/reset-min.css @@ -0,0 +1,7 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/reset/reset.css b/interface/ispconfig/interface/js/yui/reset/reset.css new file mode 100644 index 0000000..e5c5357 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/reset/reset.css @@ -0,0 +1,15 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;} +table{border-collapse:collapse;border-spacing:0;} +fieldset,img{border:0;} +address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;} +ol,ul {list-style:none;} +caption,th {text-align:left;} +h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;} +q:before,q:after{content:'';} +abbr,acronym {border:0;} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/slider/README b/interface/ispconfig/interface/js/yui/slider/README new file mode 100644 index 0000000..e435635 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/slider/README @@ -0,0 +1,69 @@ +Slider - Release Notes + +2.2.0 + + * Added the missing "force" parameter to the signature for setRegionValue + + * deprecated the moveComplete flag + +0.12.2 + + * No change + +0.12.1 + + * Removed unneccessary getXY calls that were contribuing to slower performance + in FireFox when the slider was deeply nested in the DOM. + +0.12.0 + + * Added "slideStart", "slideEnd", and "change" custom events. The abstract + methods these will eventually replace still work. + + * The default animation duration is 0.2 seconds (reduced from 0.4 seconds), + and is configurable via the animationDuration property. + + * Keyboard navigation is now built in. The background needs a tabindex for + keyboard nav to work. Keyboard nav can be disabled by setting enableKeys + to false. The number of pixels the slider moves when the arrow keys + are pressed is controlled by keyIncrement, and defaults to 20. Note, + Safari support limited to background element types that support focus + in that browser. http://bugs.webkit.org/show_bug.cgi?id=7138 + + * Fixed broken doctype in examples/index.html + + * Catching an unhandled script exception in FF that could occur when + attempting to focus the slider background while a text field without + autocomplete="false" has focus + +0.11.3 + + * No change + +0.11.0 + + * When the thumb is clicked and dragged, the click position delta is properly + applied. + + * The slider background can be disabled by setting backgroundEnabled to false. + + * Added SliderThumb->clearTicks + + * Incorporated updated drag and drop performance improvements + +0.10.0 + + * Drag and drop's autoscroll feature is now turned off by default + in the slider. + + * The slider no longer sets its initial value upon initialization + + * RGB slider example fixed for IE7. + + * Updated to work with the onAvailable feature in Drag and Drop. + + * Updated the basic slider example page to make the control more + accessible to non-FF1.5 browsers. + + * Split the examples into separate pages + diff --git a/interface/ispconfig/interface/js/yui/slider/slider-debug.js b/interface/ispconfig/interface/js/yui/slider/slider-debug.js new file mode 100644 index 0000000..815d514 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/slider/slider-debug.js @@ -0,0 +1,1259 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Slider component is a UI control that enables the user to adjust + * values in a finite range along one or two axes. Typically, the Slider + * control is used in a web application as a rich, visual replacement + * for an input box that takes a number as input. The Slider control can + * also easily accommodate a second dimension, providing x,y output for + * a selection point chosen from a rectangular region. + * + * @module slider + * @title Slider Widget + * @namespace YAHOO.widget + * @requires yahoo,dom,dragdrop,event + * @optional animation + */ + +/** + * A DragDrop implementation that can be used as a background for a + * slider. It takes a reference to the thumb instance + * so it can delegate some of the events to it. The goal is to make the + * thumb jump to the location on the background when the background is + * clicked. + * + * @class Slider + * @extends YAHOO.util.DragDrop + * @uses YAHOO.util.EventProvider + * @constructor + * @param {String} id The id of the element linked to this instance + * @param {String} sGroup The group of related DragDrop items + * @param {SliderThumb} oThumb The thumb for this slider + * @param {String} sType The type of slider (horiz, vert, region) + */ +YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) { + if (sElementId) { + this.init(sElementId, sGroup, true); + this.initSlider(sType); + this.initThumb(oThumb); + } +}; + +/** + * Factory method for creating a horizontal slider + * @method YAHOO.widget.Slider.getHorizSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a horizontal slider control + */ +YAHOO.widget.Slider.getHorizSlider = + function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, + iLeft, iRight, 0, 0, iTickSize), "horiz"); +}; + +/** + * Factory method for creating a vertical slider + * @method YAHOO.widget.Slider.getVertSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a vertical slider control + */ +YAHOO.widget.Slider.getVertSlider = + function (sBGElId, sHandleElId, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, + iUp, iDown, iTickSize), "vert"); +}; + +/** + * Factory method for creating a slider region like the one in the color + * picker example + * @method YAHOO.widget.Slider.getSliderRegion + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a slider region control + */ +YAHOO.widget.Slider.getSliderRegion = + function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, + iUp, iDown, iTickSize), "region"); +}; + +/** + * By default, animation is available if the animation library is detected. + * @property YAHOO.widget.Slider.ANIM_AVAIL + * @static + * @type boolean + */ +YAHOO.widget.Slider.ANIM_AVAIL = true; + +YAHOO.extend(YAHOO.widget.Slider, YAHOO.util.DragDrop, { + + /** + * Initializes the slider. Executed in the constructor + * @method initSlider + * @param {string} sType the type of slider (horiz, vert, region) + */ + initSlider: function(sType) { + + /** + * The type of the slider (horiz, vert, region) + * @property type + * @type string + */ + this.type = sType; + + //this.removeInvalidHandleType("A"); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + /** + * Event the fires when the value of the control changes. If + * the control is animated the event will fire every point + * along the way. + * @event change + * @param {int} newOffset|x the new offset for normal sliders, or the new + * x offset for region sliders + * @param {int} y the number of pixels the thumb has moved on the y axis + * (region sliders only) + */ + this.createEvent("change", this); + + /** + * Event that fires at the beginning of a slider thumb move. + * @event slideStart + */ + this.createEvent("slideStart", this); + + /** + * Event that fires at the end of a slider thumb move + * @event slideEnd + */ + this.createEvent("slideEnd", this); + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * Flag that determines if the thumb will animate when moved + * @property animate + * @type boolean + */ + this.animate = YAHOO.widget.Slider.ANIM_AVAIL; + + /** + * Set to false to disable a background click thumb move + * @property backgroundEnabled + * @type boolean + */ + this.backgroundEnabled = true; + + /** + * Adjustment factor for tick animation, the more ticks, the + * faster the animation (by default) + * @property tickPause + * @type int + */ + this.tickPause = 40; + + /** + * Enables the arrow, home and end keys, defaults to true. + * @property enableKeys + * @type boolean + */ + this.enableKeys = true; + + /** + * Specifies the number of pixels the arrow keys will move the slider. + * Default is 25. + * @property keyIncrement + * @type int + */ + this.keyIncrement = 20; + + /** + * moveComplete is set to true when the slider has moved to its final + * destination. For animated slider, this value can be checked in + * the onChange handler to make it possible to execute logic only + * when the move is complete rather than at all points along the way. + * Deprecated because this flag is only useful when the background is + * clicked and the slider is animated. If the user drags the thumb, + * the flag is updated when the drag is over ... the final onDrag event + * fires before the mouseup the ends the drag, so the implementer will + * never see it. + * + * @property moveComplete + * @type Boolean + * @deprecated use the slideEnd event instead + */ + this.moveComplete = true; + + /** + * If animation is configured, specifies the length of the animation + * in seconds. + * @property animationDuration + * @type int + * @default 0.2 + */ + this.animationDuration = 0.2; + }, + + /** + * Initializes the slider's thumb. Executed in the constructor. + * @method initThumb + * @param {YAHOO.widget.SliderThumb} t the slider thumb + */ + initThumb: function(t) { + + var self = this; + + /** + * A YAHOO.widget.SliderThumb instance that we will use to + * reposition the thumb when the background is clicked + * @property thumb + * @type YAHOO.widget.SliderThumb + */ + this.thumb = t; + t.cacheBetweenDrags = true; + + // add handler for the handle onchange event + t.onChange = function() { + self.handleThumbChange(); + }; + + if (t._isHoriz && t.xTicks && t.xTicks.length) { + this.tickPause = Math.round(360 / t.xTicks.length); + } else if (t.yTicks && t.yTicks.length) { + this.tickPause = Math.round(360 / t.yTicks.length); + } + + this.logger.log("tickPause: " + this.tickPause); + + // delegate thumb methods + t.onMouseDown = function () { return self.focus(); }; + t.onMouseUp = function() { self.thumbMouseUp(); }; + t.onDrag = function() { self.fireEvents(true); }; + t.onAvailable = function() { return self.setStartSliderState(); }; + + }, + + /** + * Executed when the slider element is available + * @method onAvailable + */ + onAvailable: function() { + var Event = YAHOO.util.Event; + Event.on(this.id, "keydown", this.handleKeyDown, this, true); + Event.on(this.id, "keypress", this.handleKeyPress, this, true); + }, + + /** + * Executed when a keypress event happens with the control focused. + * Prevents the default behavior for navigation keys. The actual + * logic for moving the slider thumb in response to a key event + * happens in handleKeyDown. + * @param {Event} e the keypress event + */ + handleKeyPress: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + var kc = Event.getCharCode(e); + switch (kc) { + case 0x25: // left + case 0x26: // up + case 0x27: // right + case 0x28: // down + case 0x24: // home + case 0x23: // end + Event.preventDefault(e); + break; + default: + } + } + }, + + /** + * Executed when a keydown event happens with the control focused. + * Updates the slider value and display when the keypress is an + * arrow key, home, or end as long as enableKeys is set to true. + * @param {Event} e the keydown event + */ + handleKeyDown: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + + var kc = Event.getCharCode(e), t=this.thumb; + var h=this.getXValue(),v=this.getYValue(); + + var horiz = false; + var changeValue = true; + switch (kc) { + + // left + case 0x25: h -= this.keyIncrement; break; + + // up + case 0x26: v -= this.keyIncrement; break; + + // right + case 0x27: h += this.keyIncrement; break; + + // down + case 0x28: v += this.keyIncrement; break; + + // home + case 0x24: h = t.leftConstraint; + v = t.topConstraint; + break; + + // end + case 0x23: h = t.rightConstraint; + v = t.bottomConstraint; + break; + + default: changeValue = false; + } + + if (changeValue) { + if (t._isRegion) { + this.setRegionValue(h, v, true); + } else { + var newVal = (t._isHoriz) ? h : v; + this.setValue(newVal, true); + } + Event.stopEvent(e); + } + + } + }, + + /** + * Initialization that sets up the value offsets once the elements are ready + * @method setStartSliderState + */ + setStartSliderState: function() { + + this.logger.log("Fixing state"); + + this.setThumbCenterPoint(); + + /** + * The basline position of the background element, used + * to determine if the background has moved since the last + * operation. + * @property baselinePos + * @type [int, int] + */ + this.baselinePos = YAHOO.util.Dom.getXY(this.getEl()); + + this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos); + + if (this.thumb._isRegion) { + if (this.deferredSetRegionValue) { + this.setRegionValue.apply(this, this.deferredSetRegionValue, true); + this.deferredSetRegionValue = null; + } else { + this.setRegionValue(0, 0, true, true); + } + } else { + if (this.deferredSetValue) { + this.setValue.apply(this, this.deferredSetValue, true); + this.deferredSetValue = null; + } else { + this.setValue(0, true, true); + } + } + }, + + /** + * When the thumb is available, we cache the centerpoint of the element so + * we can position the element correctly when the background is clicked + * @method setThumbCenterPoint + */ + setThumbCenterPoint: function() { + + var el = this.thumb.getEl(); + + if (el) { + /** + * The center of the slider element is stored so we can + * place it in the correct position when the background is clicked. + * @property thumbCenterPoint + * @type {"x": int, "y": int} + */ + this.thumbCenterPoint = { + x: parseInt(el.offsetWidth/2, 10), + y: parseInt(el.offsetHeight/2, 10) + }; + } + + }, + + /** + * Locks the slider, overrides YAHOO.util.DragDrop + * @method lock + */ + lock: function() { + this.logger.log("locking"); + this.thumb.lock(); + this.locked = true; + }, + + /** + * Unlocks the slider, overrides YAHOO.util.DragDrop + * @method unlock + */ + unlock: function() { + this.logger.log("unlocking"); + this.thumb.unlock(); + this.locked = false; + }, + + /** + * Handles mouseup event on the slider background + * @method thumbMouseUp + * @private + */ + thumbMouseUp: function() { + this.logger.log("bg mouseup"); + if (!this.isLocked() && !this.moveComplete) { + this.endMove(); + } + + }, + + /** + * Returns a reference to this slider's thumb + * @method getThumb + * @return {SliderThumb} this slider's thumb + */ + getThumb: function() { + return this.thumb; + }, + + /** + * Try to focus the element when clicked so we can add + * accessibility features + * @method focus + * @private + */ + focus: function() { + this.logger.log("focus"); + + // Focus the background element if possible + var el = this.getEl(); + + if (el.focus) { + try { + el.focus(); + } catch(e) { + // Prevent permission denied unhandled exception in FF that can + // happen when setting focus while another element is handling + // the blur. @TODO this is still writing to the error log + // (unhandled error) in FF1.5 with strict error checking on. + } + } + + this.verifyOffset(); + + if (this.isLocked()) { + return false; + } else { + this.onSlideStart(); + return true; + } + }, + + /** + * Event that fires when the value of the slider has changed + * @method onChange + * @param {int} firstOffset the number of pixels the thumb has moved + * from its start position. Normal horizontal and vertical sliders will only + * have the firstOffset. Regions will have both, the first is the horizontal + * offset, the second the vertical. + * @param {int} secondOffset the y offset for region sliders + * @deprecated use instance.subscribe("change") instead + */ + onChange: function (firstOffset, secondOffset) { + /* override me */ + this.logger.log("onChange: " + firstOffset + ", " + secondOffset); + }, + + /** + * Event that fires when the at the beginning of the slider thumb move + * @method onSlideStart + * @deprecated use instance.subscribe("slideStart") instead + */ + onSlideStart: function () { + /* override me */ + this.logger.log("onSlideStart"); + }, + + /** + * Event that fires at the end of a slider thumb move + * @method onSliderEnd + * @deprecated use instance.subscribe("slideEnd") instead + */ + onSlideEnd: function () { + /* override me */ + this.logger.log("onSlideEnd"); + }, + + /** + * Returns the slider's thumb offset from the start position + * @method getValue + * @return {int} the current value + */ + getValue: function () { + return this.thumb.getValue(); + }, + + /** + * Returns the slider's thumb X offset from the start position + * @method getXValue + * @return {int} the current horizontal offset + */ + getXValue: function () { + return this.thumb.getXValue(); + }, + + /** + * Returns the slider's thumb Y offset from the start position + * @method getYValue + * @return {int} the current vertical offset + */ + getYValue: function () { + return this.thumb.getYValue(); + }, + + /** + * Internal handler for the slider thumb's onChange event + * @method handleThumbChange + * @private + */ + handleThumbChange: function () { + var t = this.thumb; + if (t._isRegion) { + t.onChange(t.getXValue(), t.getYValue()); + this.fireEvent("change", { x: t.getXValue(), y: t.getYValue() } ); + } else { + t.onChange(t.getValue()); + this.fireEvent("change", t.getValue()); + } + + }, + + /** + * Provides a way to set the value of the slider in code. + * @method setValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setValue: function(newOffset, skipAnim, force) { + this.logger.log("setValue " + newOffset); + + if (!this.thumb.available) { + this.logger.log("defer setValue until after onAvailble"); + this.deferredSetValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + this.logger.log("Can't set the value, the control is locked"); + return false; + } + + if ( isNaN(newOffset) ) { + this.logger.log("setValue, Illegal argument: " + newOffset); + return false; + } + + var t = this.thumb; + var newX, newY; + this.verifyOffset(true); + if (t._isRegion) { + return false; + } else if (t._isHoriz) { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + this.moveThumb(newX, t.initPageY, skipAnim); + } else { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newY = t.initPageY + newOffset + this.thumbCenterPoint.y; + this.moveThumb(t.initPageX, newY, skipAnim); + } + + return true; + }, + + /** + * Provides a way to set the value of the region slider in code. + * @method setRegionValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point (x axis for region) + * @param {int} newOffset2 the number of pixels the thumb should be + * positioned away from the initial start point (y axis for region) + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setRegionValue: function(newOffset, newOffset2, skipAnim, force) { + + if (!this.thumb.available) { + this.logger.log("defer setRegionValue until after onAvailble"); + this.deferredSetRegionValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + this.logger.log("Can't set the value, the control is locked"); + return false; + } + + if ( isNaN(newOffset) ) { + this.logger.log("setRegionValue, Illegal argument: " + newOffset); + return false; + } + + var t = this.thumb; + if (t._isRegion) { + this.onSlideStart(); + var newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + var newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y; + this.moveThumb(newX, newY, skipAnim); + return true; + } + + return false; + + }, + + /** + * Checks the background position element position. If it has moved from the + * baseline position, the constraints for the thumb are reset + * @param checkPos {boolean} check the position instead of using cached value + * @method verifyOffset + * @return {boolean} True if the offset is the same as the baseline. + */ + verifyOffset: function(checkPos) { + + var newPos = YAHOO.util.Dom.getXY(this.getEl()); + //var newPos = [this.initPageX, this.initPageY]; + + this.logger.log("newPos: " + newPos, "warn"); + + if (newPos[0] != this.baselinePos[0] || newPos[1] != this.baselinePos[1]) { + this.logger.log("background moved, resetting constraints"); + this.thumb.resetConstraints(); + this.baselinePos = newPos; + return false; + } + + return true; + }, + + /** + * Move the associated slider moved to a timeout to try to get around the + * mousedown stealing moz does when I move the slider element between the + * cursor and the background during the mouseup event + * @method moveThumb + * @param {int} x the X coordinate of the click + * @param {int} y the Y coordinate of the click + * @param {boolean} skipAnim don't animate if the move happend onDrag + * @private + */ + moveThumb: function(x, y, skipAnim) { + + // this.logger.log("move thumb", "warn"); + + var t = this.thumb; + var self = this; + + if (!t.available) { + this.logger.log("thumb is not available yet, aborting move"); + return; + } + + this.logger.log("move thumb, x: " + x + ", y: " + y); + + // this.verifyOffset(); + + t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y); + + var _p = t.getTargetCoord(x, y); + var p = [_p.x, _p.y]; + + + this.fireEvent("slideStart"); + + if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && t._graduated && !skipAnim) { + this.logger.log("graduated"); + // this.thumb._animating = true; + this.lock(); + + // cache the current thumb pos + this.curCoord = YAHOO.util.Dom.getXY(this.thumb.getEl()); + + setTimeout( function() { self.moveOneTick(p); }, this.tickPause ); + + } else if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && !skipAnim) { + this.logger.log("animating to " + p); + + // this.thumb._animating = true; + this.lock(); + + var oAnim = new YAHOO.util.Motion( + t.id, { points: { to: p } }, + this.animationDuration, + YAHOO.util.Easing.easeOut ); + + oAnim.onComplete.subscribe( function() { self.endMove(); } ); + oAnim.animate(); + } else { + t.setDragElPos(x, y); + // this.fireEvents(); + this.endMove(); + } + }, + + /** + * Move the slider one tick mark towards its final coordinate. Used + * for the animation when tick marks are defined + * @method moveOneTick + * @param {int[]} the destination coordinate + * @private + */ + moveOneTick: function(finalCoord) { + + var t = this.thumb, tmp; + + + // redundant call to getXY since we set the position most of time prior + // to getting here. Moved to this.curCoord + //var curCoord = YAHOO.util.Dom.getXY(t.getEl()); + + // alignElWithMouse caches position in lastPageX, lastPageY .. doesn't work + //var curCoord = [this.lastPageX, this.lastPageY]; + + // var thresh = Math.min(t.tickSize + (Math.floor(t.tickSize/2)), 10); + // var thresh = 10; + // var thresh = t.tickSize + (Math.floor(t.tickSize/2)); + + var nextCoord = null; + + if (t._isRegion) { + nextCoord = this._getNextX(this.curCoord, finalCoord); + var tmpX = (nextCoord) ? nextCoord[0] : this.curCoord[0]; + nextCoord = this._getNextY([tmpX, this.curCoord[1]], finalCoord); + + } else if (t._isHoriz) { + nextCoord = this._getNextX(this.curCoord, finalCoord); + } else { + nextCoord = this._getNextY(this.curCoord, finalCoord); + } + + this.logger.log("moveOneTick: " + + " finalCoord: " + finalCoord + + " this.curCoord: " + this.curCoord + + " nextCoord: " + nextCoord); + + if (nextCoord) { + + // cache the position + this.curCoord = nextCoord; + + // move to the next coord + // YAHOO.util.Dom.setXY(t.getEl(), nextCoord); + + // var el = t.getEl(); + // YAHOO.util.Dom.setStyle(el, "left", (nextCoord[0] + this.thumb.deltaSetXY[0]) + "px"); + // YAHOO.util.Dom.setStyle(el, "top", (nextCoord[1] + this.thumb.deltaSetXY[1]) + "px"); + + this.thumb.alignElWithMouse(t.getEl(), nextCoord[0], nextCoord[1]); + + // check if we are in the final position, if not make a recursive call + if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) { + var self = this; + setTimeout(function() { self.moveOneTick(finalCoord); }, + this.tickPause); + } else { + this.endMove(); + } + } else { + this.endMove(); + } + + //this.tickPause = Math.round(this.tickPause/2); + }, + + /** + * Returns the next X tick value based on the current coord and the target coord. + * @method _getNextX + * @private + */ + _getNextX: function(curCoord, finalCoord) { + this.logger.log("getNextX: " + curCoord + ", " + finalCoord); + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + if (curCoord[0] > finalCoord[0]) { + thresh = t.tickSize - this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[0] < finalCoord[0]) { + thresh = t.tickSize + this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Returns the next Y tick value based on the current coord and the target coord. + * @method _getNextY + * @private + */ + _getNextY: function(curCoord, finalCoord) { + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + + if (curCoord[1] > finalCoord[1]) { + thresh = t.tickSize - this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[1] < finalCoord[1]) { + thresh = t.tickSize + this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Resets the constraints before moving the thumb. + * @method b4MouseDown + * @private + */ + b4MouseDown: function(e) { + this.thumb.autoOffset(); + this.thumb.resetConstraints(); + }, + + + /** + * Handles the mousedown event for the slider background + * @method onMouseDown + * @private + */ + onMouseDown: function(e) { + // this.resetConstraints(true); + // this.thumb.resetConstraints(true); + + if (! this.isLocked() && this.backgroundEnabled) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.logger.log("bg mousedown: " + x + "," + y); + + this.focus(); + this.moveThumb(x, y); + } + + }, + + /** + * Handles the onDrag event for the slider background + * @method onDrag + * @private + */ + onDrag: function(e) { + if (! this.isLocked()) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.moveThumb(x, y, true); + } + }, + + /** + * Fired when the slider movement ends + * @method endMove + * @private + */ + endMove: function () { + // this._animating = false; + this.unlock(); + this.moveComplete = true; + this.fireEvents(); + }, + + /** + * Fires the change event if the value has been changed. Ignored if we are in + * the middle of an animation as the event will fire when the animation is + * complete + * @method fireEvents + * @param {boolean} thumbEvent set to true if this event is fired from an event + * that occurred on the thumb. If it is, the state of the + * thumb dd object should be correct. Otherwise, the event + * originated on the background, so the thumb state needs to + * be refreshed before proceeding. + * @private + */ + fireEvents: function (thumbEvent) { + + var t = this.thumb; + // this.logger.log("FireEvents: " + t._isRegion); + + if (!thumbEvent) { + t.cachePosition(); + } + + if (! this.isLocked()) { + if (t._isRegion) { + this.logger.log("region"); + var newX = t.getXValue(); + var newY = t.getYValue(); + + if (newX != this.previousX || newY != this.previousY) { + // this.logger.log("Firing onchange"); + this.onChange(newX, newY); + this.fireEvent("change", { x: newX, y: newY }); + } + + this.previousX = newX; + this.previousY = newY; + + } else { + var newVal = t.getValue(); + if (newVal != this.previousVal) { + this.logger.log("Firing onchange: " + newVal); + this.onChange( newVal ); + this.fireEvent("change", newVal); + } + this.previousVal = newVal; + } + + if (this.moveComplete) { + this.onSlideEnd(); + this.fireEvent("slideEnd"); + this.moveComplete = false; + } + + } + }, + + /** + * Slider toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return ("Slider (" + this.type +") " + this.id); + } + +}); + +YAHOO.augment(YAHOO.widget.Slider, YAHOO.util.EventProvider); + +/** + * A drag and drop implementation to be used as the thumb of a slider. + * @class SliderThumb + * @extends YAHOO.util.DD + * @constructor + * @param {String} id the id of the slider html element + * @param {String} sGroup the group of related DragDrop items + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + */ +YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) { + + if (id) { + //this.init(id, sGroup); + YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup); + + /** + * The id of the thumbs parent HTML element (the slider background + * element). + * @property parentElId + * @type string + */ + this.parentElId = sGroup; + } + + + //this.removeInvalidHandleType("A"); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * The tick size for this slider + * @property tickSize + * @type int + * @private + */ + this.tickSize = iTickSize; + + /** + * Informs the drag and drop util that the offsets should remain when + * resetting the constraints. This preserves the slider value when + * the constraints are reset + * @property maintainOffset + * @type boolean + * @private + */ + this.maintainOffset = true; + + this.initSlider(iLeft, iRight, iUp, iDown, iTickSize); + + /** + * Turns off the autoscroll feature in drag and drop + * @property scroll + * @private + */ + this.scroll = false; + +}; + +YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, { + + /** + * The (X and Y) difference between the thumb location and its parent + * (the slider background) when the control is instantiated. + * @property startOffset + * @type [int, int] + */ + startOffset: null, + + /** + * Flag used to figure out if this is a horizontal or vertical slider + * @property _isHoriz + * @type boolean + * @private + */ + _isHoriz: false, + + /** + * Cache the last value so we can check for change + * @property _prevVal + * @type int + * @private + */ + _prevVal: 0, + + /** + * The slider is _graduated if there is a tick interval defined + * @property _graduated + * @type boolean + * @private + */ + _graduated: false, + + + /** + * Returns the difference between the location of the thumb and its parent. + * @method getOffsetFromParent + * @param {[int, int]} parentPos Optionally accepts the position of the parent + * @type [int, int] + */ + getOffsetFromParent0: function(parentPos) { + var myPos = YAHOO.util.Dom.getXY(this.getEl()); + var ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); + + return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + }, + + getOffsetFromParent: function(parentPos) { + + var el = this.getEl(); + + if (!this.deltaOffset) { + + var myPos = YAHOO.util.Dom.getXY(el); + var ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); + + var newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + + var l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + var deltaX = l - newOffset[0]; + var deltaY = t - newOffset[1]; + + if (isNaN(deltaX) || isNaN(deltaY)) { + this.logger.log("element does not have a position style def yet"); + } else { + this.deltaOffset = [deltaX, deltaY]; + } + + } else { + var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + newOffset = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]]; + } + + return newOffset; + + //return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + }, + + /** + * Set up the slider, must be called in the constructor of all subclasses + * @method initSlider + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize the width of the tick interval. + */ + initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) { + + + //document these. new for 0.12.1 + this.initLeft = iLeft; + this.initRight = iRight; + this.initUp = iUp; + this.initDown = iDown; + + this.setXConstraint(iLeft, iRight, iTickSize); + this.setYConstraint(iUp, iDown, iTickSize); + + if (iTickSize && iTickSize > 1) { + this._graduated = true; + } + + this._isHoriz = (iLeft || iRight); + this._isVert = (iUp || iDown); + this._isRegion = (this._isHoriz && this._isVert); + + }, + + /** + * Clear's the slider's ticks + * @method clearTicks + */ + clearTicks: function () { + YAHOO.widget.SliderThumb.superclass.clearTicks.call(this); + this.tickSize = 0; + this._graduated = false; + }, + + + /** + * Gets the current offset from the element's start position in + * pixels. + * @method getValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved from the start position. + */ + getValue: function () { + if (!this.available) { return 0; } + var val = (this._isHoriz) ? this.getXValue() : this.getYValue(); + //this.logger.log("getVal: " + val); + return val; + }, + + /** + * Gets the current X offset from the element's start position in + * pixels. + * @method getXValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved horizontally from the start position. + */ + getXValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[0] - this.startOffset[0]); + }, + + /** + * Gets the current Y offset from the element's start position in + * pixels. + * @method getYValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved vertically from the start position. + */ + getYValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[1] - this.startOffset[1]); + }, + + /** + * Thumb toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return "SliderThumb " + this.id; + }, + + /** + * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider + * instance it belongs to. + * @method onChange + * @private + */ + onChange: function (x, y) { + } + +}); + +if ("undefined" == typeof YAHOO.util.Anim) { + YAHOO.widget.Slider.ANIM_AVAIL = false; +} + +YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/slider/slider-min.js b/interface/ispconfig/interface/js/yui/slider/slider-min.js new file mode 100644 index 0000000..84eeb0f --- /dev/null +++ b/interface/ispconfig/interface/js/yui/slider/slider-min.js @@ -0,0 +1,36 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.widget.Slider=function(sElementId,sGroup,oThumb,sType){if(sElementId){this.init(sElementId,sGroup,true);this.initSlider(sType);this.initThumb(oThumb);}};YAHOO.widget.Slider.getHorizSlider=function(sBGElId,sHandleElId,iLeft,iRight,iTickSize){return new YAHOO.widget.Slider(sBGElId,sBGElId,new YAHOO.widget.SliderThumb(sHandleElId,sBGElId,iLeft,iRight,0,0,iTickSize),"horiz");};YAHOO.widget.Slider.getVertSlider=function(sBGElId,sHandleElId,iUp,iDown,iTickSize){return new YAHOO.widget.Slider(sBGElId,sBGElId,new YAHOO.widget.SliderThumb(sHandleElId,sBGElId,0,0,iUp,iDown,iTickSize),"vert");};YAHOO.widget.Slider.getSliderRegion=function(sBGElId,sHandleElId,iLeft,iRight,iUp,iDown,iTickSize){return new YAHOO.widget.Slider(sBGElId,sBGElId,new YAHOO.widget.SliderThumb(sHandleElId,sBGElId,iLeft,iRight,iUp,iDown,iTickSize),"region");};YAHOO.widget.Slider.ANIM_AVAIL=true;YAHOO.extend(YAHOO.widget.Slider,YAHOO.util.DragDrop,{initSlider:function(sType){this.type=sType;this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);this.isTarget=false;this.animate=YAHOO.widget.Slider.ANIM_AVAIL;this.backgroundEnabled=true;this.tickPause=40;this.enableKeys=true;this.keyIncrement=20;this.moveComplete=true;this.animationDuration=0.2;},initThumb:function(t){var self=this;this.thumb=t;t.cacheBetweenDrags=true;t.onChange=function(){self.handleThumbChange();};if(t._isHoriz&&t.xTicks&&t.xTicks.length){this.tickPause=Math.round(360/t.xTicks.length);}else if(t.yTicks&&t.yTicks.length){this.tickPause=Math.round(360/t.yTicks.length);} +t.onMouseDown=function(){return self.focus();};t.onMouseUp=function(){self.thumbMouseUp();};t.onDrag=function(){self.fireEvents(true);};t.onAvailable=function(){return self.setStartSliderState();};},onAvailable:function(){var Event=YAHOO.util.Event;Event.on(this.id,"keydown",this.handleKeyDown,this,true);Event.on(this.id,"keypress",this.handleKeyPress,this,true);},handleKeyPress:function(e){if(this.enableKeys){var Event=YAHOO.util.Event;var kc=Event.getCharCode(e);switch(kc){case 0x25:case 0x26:case 0x27:case 0x28:case 0x24:case 0x23:Event.preventDefault(e);break;default:}}},handleKeyDown:function(e){if(this.enableKeys){var Event=YAHOO.util.Event;var kc=Event.getCharCode(e),t=this.thumb;var h=this.getXValue(),v=this.getYValue();var horiz=false;var changeValue=true;switch(kc){case 0x25:h-=this.keyIncrement;break;case 0x26:v-=this.keyIncrement;break;case 0x27:h+=this.keyIncrement;break;case 0x28:v+=this.keyIncrement;break;case 0x24:h=t.leftConstraint;v=t.topConstraint;break;case 0x23:h=t.rightConstraint;v=t.bottomConstraint;break;default:changeValue=false;} +if(changeValue){if(t._isRegion){this.setRegionValue(h,v,true);}else{var newVal=(t._isHoriz)?h:v;this.setValue(newVal,true);} +Event.stopEvent(e);}}},setStartSliderState:function(){this.setThumbCenterPoint();this.baselinePos=YAHOO.util.Dom.getXY(this.getEl());this.thumb.startOffset=this.thumb.getOffsetFromParent(this.baselinePos);if(this.thumb._isRegion){if(this.deferredSetRegionValue){this.setRegionValue.apply(this,this.deferredSetRegionValue,true);this.deferredSetRegionValue=null;}else{this.setRegionValue(0,0,true,true);}}else{if(this.deferredSetValue){this.setValue.apply(this,this.deferredSetValue,true);this.deferredSetValue=null;}else{this.setValue(0,true,true);}}},setThumbCenterPoint:function(){var el=this.thumb.getEl();if(el){this.thumbCenterPoint={x:parseInt(el.offsetWidth/2,10),y:parseInt(el.offsetHeight/2,10)};}},lock:function(){this.thumb.lock();this.locked=true;},unlock:function(){this.thumb.unlock();this.locked=false;},thumbMouseUp:function(){if(!this.isLocked()&&!this.moveComplete){this.endMove();}},getThumb:function(){return this.thumb;},focus:function(){var el=this.getEl();if(el.focus){try{el.focus();}catch(e){}} +this.verifyOffset();if(this.isLocked()){return false;}else{this.onSlideStart();return true;}},onChange:function(firstOffset,secondOffset){},onSlideStart:function(){},onSlideEnd:function(){},getValue:function(){return this.thumb.getValue();},getXValue:function(){return this.thumb.getXValue();},getYValue:function(){return this.thumb.getYValue();},handleThumbChange:function(){var t=this.thumb;if(t._isRegion){t.onChange(t.getXValue(),t.getYValue());this.fireEvent("change",{x:t.getXValue(),y:t.getYValue()});}else{t.onChange(t.getValue());this.fireEvent("change",t.getValue());}},setValue:function(newOffset,skipAnim,force){if(!this.thumb.available){this.deferredSetValue=arguments;return false;} +if(this.isLocked()&&!force){return false;} +if(isNaN(newOffset)){return false;} +var t=this.thumb;var newX,newY;this.verifyOffset(true);if(t._isRegion){return false;}else if(t._isHoriz){this.onSlideStart();newX=t.initPageX+newOffset+this.thumbCenterPoint.x;this.moveThumb(newX,t.initPageY,skipAnim);}else{this.onSlideStart();newY=t.initPageY+newOffset+this.thumbCenterPoint.y;this.moveThumb(t.initPageX,newY,skipAnim);} +return true;},setRegionValue:function(newOffset,newOffset2,skipAnim,force){if(!this.thumb.available){this.deferredSetRegionValue=arguments;return false;} +if(this.isLocked()&&!force){return false;} +if(isNaN(newOffset)){return false;} +var t=this.thumb;if(t._isRegion){this.onSlideStart();var newX=t.initPageX+newOffset+this.thumbCenterPoint.x;var newY=t.initPageY+newOffset2+this.thumbCenterPoint.y;this.moveThumb(newX,newY,skipAnim);return true;} +return false;},verifyOffset:function(checkPos){var newPos=YAHOO.util.Dom.getXY(this.getEl());if(newPos[0]!=this.baselinePos[0]||newPos[1]!=this.baselinePos[1]){this.thumb.resetConstraints();this.baselinePos=newPos;return false;} +return true;},moveThumb:function(x,y,skipAnim){var t=this.thumb;var self=this;if(!t.available){return;} +t.setDelta(this.thumbCenterPoint.x,this.thumbCenterPoint.y);var _p=t.getTargetCoord(x,y);var p=[_p.x,_p.y];this.fireEvent("slideStart");if(this.animate&&YAHOO.widget.Slider.ANIM_AVAIL&&t._graduated&&!skipAnim){this.lock();this.curCoord=YAHOO.util.Dom.getXY(this.thumb.getEl());setTimeout(function(){self.moveOneTick(p);},this.tickPause);}else if(this.animate&&YAHOO.widget.Slider.ANIM_AVAIL&&!skipAnim){this.lock();var oAnim=new YAHOO.util.Motion(t.id,{points:{to:p}},this.animationDuration,YAHOO.util.Easing.easeOut);oAnim.onComplete.subscribe(function(){self.endMove();});oAnim.animate();}else{t.setDragElPos(x,y);this.endMove();}},moveOneTick:function(finalCoord){var t=this.thumb,tmp;var nextCoord=null;if(t._isRegion){nextCoord=this._getNextX(this.curCoord,finalCoord);var tmpX=(nextCoord)?nextCoord[0]:this.curCoord[0];nextCoord=this._getNextY([tmpX,this.curCoord[1]],finalCoord);}else if(t._isHoriz){nextCoord=this._getNextX(this.curCoord,finalCoord);}else{nextCoord=this._getNextY(this.curCoord,finalCoord);} +if(nextCoord){this.curCoord=nextCoord;this.thumb.alignElWithMouse(t.getEl(),nextCoord[0],nextCoord[1]);if(!(nextCoord[0]==finalCoord[0]&&nextCoord[1]==finalCoord[1])){var self=this;setTimeout(function(){self.moveOneTick(finalCoord);},this.tickPause);}else{this.endMove();}}else{this.endMove();}},_getNextX:function(curCoord,finalCoord){var t=this.thumb;var thresh;var tmp=[];var nextCoord=null;if(curCoord[0]>finalCoord[0]){thresh=t.tickSize-this.thumbCenterPoint.x;tmp=t.getTargetCoord(curCoord[0]-thresh,curCoord[1]);nextCoord=[tmp.x,tmp.y];}else if(curCoord[0]<finalCoord[0]){thresh=t.tickSize+this.thumbCenterPoint.x;tmp=t.getTargetCoord(curCoord[0]+thresh,curCoord[1]);nextCoord=[tmp.x,tmp.y];}else{} +return nextCoord;},_getNextY:function(curCoord,finalCoord){var t=this.thumb;var thresh;var tmp=[];var nextCoord=null;if(curCoord[1]>finalCoord[1]){thresh=t.tickSize-this.thumbCenterPoint.y;tmp=t.getTargetCoord(curCoord[0],curCoord[1]-thresh);nextCoord=[tmp.x,tmp.y];}else if(curCoord[1]<finalCoord[1]){thresh=t.tickSize+this.thumbCenterPoint.y;tmp=t.getTargetCoord(curCoord[0],curCoord[1]+thresh);nextCoord=[tmp.x,tmp.y];}else{} +return nextCoord;},b4MouseDown:function(e){this.thumb.autoOffset();this.thumb.resetConstraints();},onMouseDown:function(e){if(!this.isLocked()&&this.backgroundEnabled){var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);this.focus();this.moveThumb(x,y);}},onDrag:function(e){if(!this.isLocked()){var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);this.moveThumb(x,y,true);}},endMove:function(){this.unlock();this.moveComplete=true;this.fireEvents();},fireEvents:function(thumbEvent){var t=this.thumb;if(!thumbEvent){t.cachePosition();} +if(!this.isLocked()){if(t._isRegion){var newX=t.getXValue();var newY=t.getYValue();if(newX!=this.previousX||newY!=this.previousY){this.onChange(newX,newY);this.fireEvent("change",{x:newX,y:newY});} +this.previousX=newX;this.previousY=newY;}else{var newVal=t.getValue();if(newVal!=this.previousVal){this.onChange(newVal);this.fireEvent("change",newVal);} +this.previousVal=newVal;} +if(this.moveComplete){this.onSlideEnd();this.fireEvent("slideEnd");this.moveComplete=false;}}},toString:function(){return("Slider ("+this.type+") "+this.id);}});YAHOO.augment(YAHOO.widget.Slider,YAHOO.util.EventProvider);YAHOO.widget.SliderThumb=function(id,sGroup,iLeft,iRight,iUp,iDown,iTickSize){if(id){YAHOO.widget.SliderThumb.superclass.constructor.call(this,id,sGroup);this.parentElId=sGroup;} +this.isTarget=false;this.tickSize=iTickSize;this.maintainOffset=true;this.initSlider(iLeft,iRight,iUp,iDown,iTickSize);this.scroll=false;};YAHOO.extend(YAHOO.widget.SliderThumb,YAHOO.util.DD,{startOffset:null,_isHoriz:false,_prevVal:0,_graduated:false,getOffsetFromParent0:function(parentPos){var myPos=YAHOO.util.Dom.getXY(this.getEl());var ppos=parentPos||YAHOO.util.Dom.getXY(this.parentElId);return[(myPos[0]-ppos[0]),(myPos[1]-ppos[1])];},getOffsetFromParent:function(parentPos){var el=this.getEl();if(!this.deltaOffset){var myPos=YAHOO.util.Dom.getXY(el);var ppos=parentPos||YAHOO.util.Dom.getXY(this.parentElId);var newOffset=[(myPos[0]-ppos[0]),(myPos[1]-ppos[1])];var l=parseInt(YAHOO.util.Dom.getStyle(el,"left"),10);var t=parseInt(YAHOO.util.Dom.getStyle(el,"top"),10);var deltaX=l-newOffset[0];var deltaY=t-newOffset[1];if(isNaN(deltaX)||isNaN(deltaY)){}else{this.deltaOffset=[deltaX,deltaY];}}else{var newLeft=parseInt(YAHOO.util.Dom.getStyle(el,"left"),10);var newTop=parseInt(YAHOO.util.Dom.getStyle(el,"top"),10);newOffset=[newLeft+this.deltaOffset[0],newTop+this.deltaOffset[1]];} +return newOffset;},initSlider:function(iLeft,iRight,iUp,iDown,iTickSize){this.initLeft=iLeft;this.initRight=iRight;this.initUp=iUp;this.initDown=iDown;this.setXConstraint(iLeft,iRight,iTickSize);this.setYConstraint(iUp,iDown,iTickSize);if(iTickSize&&iTickSize>1){this._graduated=true;} +this._isHoriz=(iLeft||iRight);this._isVert=(iUp||iDown);this._isRegion=(this._isHoriz&&this._isVert);},clearTicks:function(){YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);this.tickSize=0;this._graduated=false;},getValue:function(){if(!this.available){return 0;} +var val=(this._isHoriz)?this.getXValue():this.getYValue();return val;},getXValue:function(){if(!this.available){return 0;} +var newOffset=this.getOffsetFromParent();return(newOffset[0]-this.startOffset[0]);},getYValue:function(){if(!this.available){return 0;} +var newOffset=this.getOffsetFromParent();return(newOffset[1]-this.startOffset[1]);},toString:function(){return"SliderThumb "+this.id;},onChange:function(x,y){}});if("undefined"==typeof YAHOO.util.Anim){YAHOO.widget.Slider.ANIM_AVAIL=false;} +YAHOO.register("slider",YAHOO.widget.Slider,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/slider/slider.js b/interface/ispconfig/interface/js/yui/slider/slider.js new file mode 100644 index 0000000..9497d2c --- /dev/null +++ b/interface/ispconfig/interface/js/yui/slider/slider.js @@ -0,0 +1,1222 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The Slider component is a UI control that enables the user to adjust + * values in a finite range along one or two axes. Typically, the Slider + * control is used in a web application as a rich, visual replacement + * for an input box that takes a number as input. The Slider control can + * also easily accommodate a second dimension, providing x,y output for + * a selection point chosen from a rectangular region. + * + * @module slider + * @title Slider Widget + * @namespace YAHOO.widget + * @requires yahoo,dom,dragdrop,event + * @optional animation + */ + +/** + * A DragDrop implementation that can be used as a background for a + * slider. It takes a reference to the thumb instance + * so it can delegate some of the events to it. The goal is to make the + * thumb jump to the location on the background when the background is + * clicked. + * + * @class Slider + * @extends YAHOO.util.DragDrop + * @uses YAHOO.util.EventProvider + * @constructor + * @param {String} id The id of the element linked to this instance + * @param {String} sGroup The group of related DragDrop items + * @param {SliderThumb} oThumb The thumb for this slider + * @param {String} sType The type of slider (horiz, vert, region) + */ +YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) { + if (sElementId) { + this.init(sElementId, sGroup, true); + this.initSlider(sType); + this.initThumb(oThumb); + } +}; + +/** + * Factory method for creating a horizontal slider + * @method YAHOO.widget.Slider.getHorizSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a horizontal slider control + */ +YAHOO.widget.Slider.getHorizSlider = + function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, + iLeft, iRight, 0, 0, iTickSize), "horiz"); +}; + +/** + * Factory method for creating a vertical slider + * @method YAHOO.widget.Slider.getVertSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a vertical slider control + */ +YAHOO.widget.Slider.getVertSlider = + function (sBGElId, sHandleElId, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, + iUp, iDown, iTickSize), "vert"); +}; + +/** + * Factory method for creating a slider region like the one in the color + * picker example + * @method YAHOO.widget.Slider.getSliderRegion + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a slider region control + */ +YAHOO.widget.Slider.getSliderRegion = + function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, + iUp, iDown, iTickSize), "region"); +}; + +/** + * By default, animation is available if the animation library is detected. + * @property YAHOO.widget.Slider.ANIM_AVAIL + * @static + * @type boolean + */ +YAHOO.widget.Slider.ANIM_AVAIL = true; + +YAHOO.extend(YAHOO.widget.Slider, YAHOO.util.DragDrop, { + + /** + * Initializes the slider. Executed in the constructor + * @method initSlider + * @param {string} sType the type of slider (horiz, vert, region) + */ + initSlider: function(sType) { + + /** + * The type of the slider (horiz, vert, region) + * @property type + * @type string + */ + this.type = sType; + + //this.removeInvalidHandleType("A"); + + + /** + * Event the fires when the value of the control changes. If + * the control is animated the event will fire every point + * along the way. + * @event change + * @param {int} newOffset|x the new offset for normal sliders, or the new + * x offset for region sliders + * @param {int} y the number of pixels the thumb has moved on the y axis + * (region sliders only) + */ + this.createEvent("change", this); + + /** + * Event that fires at the beginning of a slider thumb move. + * @event slideStart + */ + this.createEvent("slideStart", this); + + /** + * Event that fires at the end of a slider thumb move + * @event slideEnd + */ + this.createEvent("slideEnd", this); + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * Flag that determines if the thumb will animate when moved + * @property animate + * @type boolean + */ + this.animate = YAHOO.widget.Slider.ANIM_AVAIL; + + /** + * Set to false to disable a background click thumb move + * @property backgroundEnabled + * @type boolean + */ + this.backgroundEnabled = true; + + /** + * Adjustment factor for tick animation, the more ticks, the + * faster the animation (by default) + * @property tickPause + * @type int + */ + this.tickPause = 40; + + /** + * Enables the arrow, home and end keys, defaults to true. + * @property enableKeys + * @type boolean + */ + this.enableKeys = true; + + /** + * Specifies the number of pixels the arrow keys will move the slider. + * Default is 25. + * @property keyIncrement + * @type int + */ + this.keyIncrement = 20; + + /** + * moveComplete is set to true when the slider has moved to its final + * destination. For animated slider, this value can be checked in + * the onChange handler to make it possible to execute logic only + * when the move is complete rather than at all points along the way. + * Deprecated because this flag is only useful when the background is + * clicked and the slider is animated. If the user drags the thumb, + * the flag is updated when the drag is over ... the final onDrag event + * fires before the mouseup the ends the drag, so the implementer will + * never see it. + * + * @property moveComplete + * @type Boolean + * @deprecated use the slideEnd event instead + */ + this.moveComplete = true; + + /** + * If animation is configured, specifies the length of the animation + * in seconds. + * @property animationDuration + * @type int + * @default 0.2 + */ + this.animationDuration = 0.2; + }, + + /** + * Initializes the slider's thumb. Executed in the constructor. + * @method initThumb + * @param {YAHOO.widget.SliderThumb} t the slider thumb + */ + initThumb: function(t) { + + var self = this; + + /** + * A YAHOO.widget.SliderThumb instance that we will use to + * reposition the thumb when the background is clicked + * @property thumb + * @type YAHOO.widget.SliderThumb + */ + this.thumb = t; + t.cacheBetweenDrags = true; + + // add handler for the handle onchange event + t.onChange = function() { + self.handleThumbChange(); + }; + + if (t._isHoriz && t.xTicks && t.xTicks.length) { + this.tickPause = Math.round(360 / t.xTicks.length); + } else if (t.yTicks && t.yTicks.length) { + this.tickPause = Math.round(360 / t.yTicks.length); + } + + + // delegate thumb methods + t.onMouseDown = function () { return self.focus(); }; + t.onMouseUp = function() { self.thumbMouseUp(); }; + t.onDrag = function() { self.fireEvents(true); }; + t.onAvailable = function() { return self.setStartSliderState(); }; + + }, + + /** + * Executed when the slider element is available + * @method onAvailable + */ + onAvailable: function() { + var Event = YAHOO.util.Event; + Event.on(this.id, "keydown", this.handleKeyDown, this, true); + Event.on(this.id, "keypress", this.handleKeyPress, this, true); + }, + + /** + * Executed when a keypress event happens with the control focused. + * Prevents the default behavior for navigation keys. The actual + * logic for moving the slider thumb in response to a key event + * happens in handleKeyDown. + * @param {Event} e the keypress event + */ + handleKeyPress: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + var kc = Event.getCharCode(e); + switch (kc) { + case 0x25: // left + case 0x26: // up + case 0x27: // right + case 0x28: // down + case 0x24: // home + case 0x23: // end + Event.preventDefault(e); + break; + default: + } + } + }, + + /** + * Executed when a keydown event happens with the control focused. + * Updates the slider value and display when the keypress is an + * arrow key, home, or end as long as enableKeys is set to true. + * @param {Event} e the keydown event + */ + handleKeyDown: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + + var kc = Event.getCharCode(e), t=this.thumb; + var h=this.getXValue(),v=this.getYValue(); + + var horiz = false; + var changeValue = true; + switch (kc) { + + // left + case 0x25: h -= this.keyIncrement; break; + + // up + case 0x26: v -= this.keyIncrement; break; + + // right + case 0x27: h += this.keyIncrement; break; + + // down + case 0x28: v += this.keyIncrement; break; + + // home + case 0x24: h = t.leftConstraint; + v = t.topConstraint; + break; + + // end + case 0x23: h = t.rightConstraint; + v = t.bottomConstraint; + break; + + default: changeValue = false; + } + + if (changeValue) { + if (t._isRegion) { + this.setRegionValue(h, v, true); + } else { + var newVal = (t._isHoriz) ? h : v; + this.setValue(newVal, true); + } + Event.stopEvent(e); + } + + } + }, + + /** + * Initialization that sets up the value offsets once the elements are ready + * @method setStartSliderState + */ + setStartSliderState: function() { + + + this.setThumbCenterPoint(); + + /** + * The basline position of the background element, used + * to determine if the background has moved since the last + * operation. + * @property baselinePos + * @type [int, int] + */ + this.baselinePos = YAHOO.util.Dom.getXY(this.getEl()); + + this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos); + + if (this.thumb._isRegion) { + if (this.deferredSetRegionValue) { + this.setRegionValue.apply(this, this.deferredSetRegionValue, true); + this.deferredSetRegionValue = null; + } else { + this.setRegionValue(0, 0, true, true); + } + } else { + if (this.deferredSetValue) { + this.setValue.apply(this, this.deferredSetValue, true); + this.deferredSetValue = null; + } else { + this.setValue(0, true, true); + } + } + }, + + /** + * When the thumb is available, we cache the centerpoint of the element so + * we can position the element correctly when the background is clicked + * @method setThumbCenterPoint + */ + setThumbCenterPoint: function() { + + var el = this.thumb.getEl(); + + if (el) { + /** + * The center of the slider element is stored so we can + * place it in the correct position when the background is clicked. + * @property thumbCenterPoint + * @type {"x": int, "y": int} + */ + this.thumbCenterPoint = { + x: parseInt(el.offsetWidth/2, 10), + y: parseInt(el.offsetHeight/2, 10) + }; + } + + }, + + /** + * Locks the slider, overrides YAHOO.util.DragDrop + * @method lock + */ + lock: function() { + this.thumb.lock(); + this.locked = true; + }, + + /** + * Unlocks the slider, overrides YAHOO.util.DragDrop + * @method unlock + */ + unlock: function() { + this.thumb.unlock(); + this.locked = false; + }, + + /** + * Handles mouseup event on the slider background + * @method thumbMouseUp + * @private + */ + thumbMouseUp: function() { + if (!this.isLocked() && !this.moveComplete) { + this.endMove(); + } + + }, + + /** + * Returns a reference to this slider's thumb + * @method getThumb + * @return {SliderThumb} this slider's thumb + */ + getThumb: function() { + return this.thumb; + }, + + /** + * Try to focus the element when clicked so we can add + * accessibility features + * @method focus + * @private + */ + focus: function() { + + // Focus the background element if possible + var el = this.getEl(); + + if (el.focus) { + try { + el.focus(); + } catch(e) { + // Prevent permission denied unhandled exception in FF that can + // happen when setting focus while another element is handling + // the blur. @TODO this is still writing to the error log + // (unhandled error) in FF1.5 with strict error checking on. + } + } + + this.verifyOffset(); + + if (this.isLocked()) { + return false; + } else { + this.onSlideStart(); + return true; + } + }, + + /** + * Event that fires when the value of the slider has changed + * @method onChange + * @param {int} firstOffset the number of pixels the thumb has moved + * from its start position. Normal horizontal and vertical sliders will only + * have the firstOffset. Regions will have both, the first is the horizontal + * offset, the second the vertical. + * @param {int} secondOffset the y offset for region sliders + * @deprecated use instance.subscribe("change") instead + */ + onChange: function (firstOffset, secondOffset) { + /* override me */ + }, + + /** + * Event that fires when the at the beginning of the slider thumb move + * @method onSlideStart + * @deprecated use instance.subscribe("slideStart") instead + */ + onSlideStart: function () { + /* override me */ + }, + + /** + * Event that fires at the end of a slider thumb move + * @method onSliderEnd + * @deprecated use instance.subscribe("slideEnd") instead + */ + onSlideEnd: function () { + /* override me */ + }, + + /** + * Returns the slider's thumb offset from the start position + * @method getValue + * @return {int} the current value + */ + getValue: function () { + return this.thumb.getValue(); + }, + + /** + * Returns the slider's thumb X offset from the start position + * @method getXValue + * @return {int} the current horizontal offset + */ + getXValue: function () { + return this.thumb.getXValue(); + }, + + /** + * Returns the slider's thumb Y offset from the start position + * @method getYValue + * @return {int} the current vertical offset + */ + getYValue: function () { + return this.thumb.getYValue(); + }, + + /** + * Internal handler for the slider thumb's onChange event + * @method handleThumbChange + * @private + */ + handleThumbChange: function () { + var t = this.thumb; + if (t._isRegion) { + t.onChange(t.getXValue(), t.getYValue()); + this.fireEvent("change", { x: t.getXValue(), y: t.getYValue() } ); + } else { + t.onChange(t.getValue()); + this.fireEvent("change", t.getValue()); + } + + }, + + /** + * Provides a way to set the value of the slider in code. + * @method setValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setValue: function(newOffset, skipAnim, force) { + + if (!this.thumb.available) { + this.deferredSetValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + return false; + } + + if ( isNaN(newOffset) ) { + return false; + } + + var t = this.thumb; + var newX, newY; + this.verifyOffset(true); + if (t._isRegion) { + return false; + } else if (t._isHoriz) { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + this.moveThumb(newX, t.initPageY, skipAnim); + } else { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newY = t.initPageY + newOffset + this.thumbCenterPoint.y; + this.moveThumb(t.initPageX, newY, skipAnim); + } + + return true; + }, + + /** + * Provides a way to set the value of the region slider in code. + * @method setRegionValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point (x axis for region) + * @param {int} newOffset2 the number of pixels the thumb should be + * positioned away from the initial start point (y axis for region) + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setRegionValue: function(newOffset, newOffset2, skipAnim, force) { + + if (!this.thumb.available) { + this.deferredSetRegionValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + return false; + } + + if ( isNaN(newOffset) ) { + return false; + } + + var t = this.thumb; + if (t._isRegion) { + this.onSlideStart(); + var newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + var newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y; + this.moveThumb(newX, newY, skipAnim); + return true; + } + + return false; + + }, + + /** + * Checks the background position element position. If it has moved from the + * baseline position, the constraints for the thumb are reset + * @param checkPos {boolean} check the position instead of using cached value + * @method verifyOffset + * @return {boolean} True if the offset is the same as the baseline. + */ + verifyOffset: function(checkPos) { + + var newPos = YAHOO.util.Dom.getXY(this.getEl()); + //var newPos = [this.initPageX, this.initPageY]; + + + if (newPos[0] != this.baselinePos[0] || newPos[1] != this.baselinePos[1]) { + this.thumb.resetConstraints(); + this.baselinePos = newPos; + return false; + } + + return true; + }, + + /** + * Move the associated slider moved to a timeout to try to get around the + * mousedown stealing moz does when I move the slider element between the + * cursor and the background during the mouseup event + * @method moveThumb + * @param {int} x the X coordinate of the click + * @param {int} y the Y coordinate of the click + * @param {boolean} skipAnim don't animate if the move happend onDrag + * @private + */ + moveThumb: function(x, y, skipAnim) { + + + var t = this.thumb; + var self = this; + + if (!t.available) { + return; + } + + + // this.verifyOffset(); + + t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y); + + var _p = t.getTargetCoord(x, y); + var p = [_p.x, _p.y]; + + + this.fireEvent("slideStart"); + + if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && t._graduated && !skipAnim) { + // this.thumb._animating = true; + this.lock(); + + // cache the current thumb pos + this.curCoord = YAHOO.util.Dom.getXY(this.thumb.getEl()); + + setTimeout( function() { self.moveOneTick(p); }, this.tickPause ); + + } else if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && !skipAnim) { + + // this.thumb._animating = true; + this.lock(); + + var oAnim = new YAHOO.util.Motion( + t.id, { points: { to: p } }, + this.animationDuration, + YAHOO.util.Easing.easeOut ); + + oAnim.onComplete.subscribe( function() { self.endMove(); } ); + oAnim.animate(); + } else { + t.setDragElPos(x, y); + // this.fireEvents(); + this.endMove(); + } + }, + + /** + * Move the slider one tick mark towards its final coordinate. Used + * for the animation when tick marks are defined + * @method moveOneTick + * @param {int[]} the destination coordinate + * @private + */ + moveOneTick: function(finalCoord) { + + var t = this.thumb, tmp; + + + // redundant call to getXY since we set the position most of time prior + // to getting here. Moved to this.curCoord + //var curCoord = YAHOO.util.Dom.getXY(t.getEl()); + + // alignElWithMouse caches position in lastPageX, lastPageY .. doesn't work + //var curCoord = [this.lastPageX, this.lastPageY]; + + // var thresh = Math.min(t.tickSize + (Math.floor(t.tickSize/2)), 10); + // var thresh = 10; + // var thresh = t.tickSize + (Math.floor(t.tickSize/2)); + + var nextCoord = null; + + if (t._isRegion) { + nextCoord = this._getNextX(this.curCoord, finalCoord); + var tmpX = (nextCoord) ? nextCoord[0] : this.curCoord[0]; + nextCoord = this._getNextY([tmpX, this.curCoord[1]], finalCoord); + + } else if (t._isHoriz) { + nextCoord = this._getNextX(this.curCoord, finalCoord); + } else { + nextCoord = this._getNextY(this.curCoord, finalCoord); + } + + + if (nextCoord) { + + // cache the position + this.curCoord = nextCoord; + + // move to the next coord + // YAHOO.util.Dom.setXY(t.getEl(), nextCoord); + + // var el = t.getEl(); + // YAHOO.util.Dom.setStyle(el, "left", (nextCoord[0] + this.thumb.deltaSetXY[0]) + "px"); + // YAHOO.util.Dom.setStyle(el, "top", (nextCoord[1] + this.thumb.deltaSetXY[1]) + "px"); + + this.thumb.alignElWithMouse(t.getEl(), nextCoord[0], nextCoord[1]); + + // check if we are in the final position, if not make a recursive call + if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) { + var self = this; + setTimeout(function() { self.moveOneTick(finalCoord); }, + this.tickPause); + } else { + this.endMove(); + } + } else { + this.endMove(); + } + + //this.tickPause = Math.round(this.tickPause/2); + }, + + /** + * Returns the next X tick value based on the current coord and the target coord. + * @method _getNextX + * @private + */ + _getNextX: function(curCoord, finalCoord) { + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + if (curCoord[0] > finalCoord[0]) { + thresh = t.tickSize - this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[0] < finalCoord[0]) { + thresh = t.tickSize + this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Returns the next Y tick value based on the current coord and the target coord. + * @method _getNextY + * @private + */ + _getNextY: function(curCoord, finalCoord) { + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + + if (curCoord[1] > finalCoord[1]) { + thresh = t.tickSize - this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[1] < finalCoord[1]) { + thresh = t.tickSize + this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Resets the constraints before moving the thumb. + * @method b4MouseDown + * @private + */ + b4MouseDown: function(e) { + this.thumb.autoOffset(); + this.thumb.resetConstraints(); + }, + + + /** + * Handles the mousedown event for the slider background + * @method onMouseDown + * @private + */ + onMouseDown: function(e) { + // this.resetConstraints(true); + // this.thumb.resetConstraints(true); + + if (! this.isLocked() && this.backgroundEnabled) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + + this.focus(); + this.moveThumb(x, y); + } + + }, + + /** + * Handles the onDrag event for the slider background + * @method onDrag + * @private + */ + onDrag: function(e) { + if (! this.isLocked()) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.moveThumb(x, y, true); + } + }, + + /** + * Fired when the slider movement ends + * @method endMove + * @private + */ + endMove: function () { + // this._animating = false; + this.unlock(); + this.moveComplete = true; + this.fireEvents(); + }, + + /** + * Fires the change event if the value has been changed. Ignored if we are in + * the middle of an animation as the event will fire when the animation is + * complete + * @method fireEvents + * @param {boolean} thumbEvent set to true if this event is fired from an event + * that occurred on the thumb. If it is, the state of the + * thumb dd object should be correct. Otherwise, the event + * originated on the background, so the thumb state needs to + * be refreshed before proceeding. + * @private + */ + fireEvents: function (thumbEvent) { + + var t = this.thumb; + + if (!thumbEvent) { + t.cachePosition(); + } + + if (! this.isLocked()) { + if (t._isRegion) { + var newX = t.getXValue(); + var newY = t.getYValue(); + + if (newX != this.previousX || newY != this.previousY) { + this.onChange(newX, newY); + this.fireEvent("change", { x: newX, y: newY }); + } + + this.previousX = newX; + this.previousY = newY; + + } else { + var newVal = t.getValue(); + if (newVal != this.previousVal) { + this.onChange( newVal ); + this.fireEvent("change", newVal); + } + this.previousVal = newVal; + } + + if (this.moveComplete) { + this.onSlideEnd(); + this.fireEvent("slideEnd"); + this.moveComplete = false; + } + + } + }, + + /** + * Slider toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return ("Slider (" + this.type +") " + this.id); + } + +}); + +YAHOO.augment(YAHOO.widget.Slider, YAHOO.util.EventProvider); + +/** + * A drag and drop implementation to be used as the thumb of a slider. + * @class SliderThumb + * @extends YAHOO.util.DD + * @constructor + * @param {String} id the id of the slider html element + * @param {String} sGroup the group of related DragDrop items + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + */ +YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) { + + if (id) { + //this.init(id, sGroup); + YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup); + + /** + * The id of the thumbs parent HTML element (the slider background + * element). + * @property parentElId + * @type string + */ + this.parentElId = sGroup; + } + + + //this.removeInvalidHandleType("A"); + + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * The tick size for this slider + * @property tickSize + * @type int + * @private + */ + this.tickSize = iTickSize; + + /** + * Informs the drag and drop util that the offsets should remain when + * resetting the constraints. This preserves the slider value when + * the constraints are reset + * @property maintainOffset + * @type boolean + * @private + */ + this.maintainOffset = true; + + this.initSlider(iLeft, iRight, iUp, iDown, iTickSize); + + /** + * Turns off the autoscroll feature in drag and drop + * @property scroll + * @private + */ + this.scroll = false; + +}; + +YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, { + + /** + * The (X and Y) difference between the thumb location and its parent + * (the slider background) when the control is instantiated. + * @property startOffset + * @type [int, int] + */ + startOffset: null, + + /** + * Flag used to figure out if this is a horizontal or vertical slider + * @property _isHoriz + * @type boolean + * @private + */ + _isHoriz: false, + + /** + * Cache the last value so we can check for change + * @property _prevVal + * @type int + * @private + */ + _prevVal: 0, + + /** + * The slider is _graduated if there is a tick interval defined + * @property _graduated + * @type boolean + * @private + */ + _graduated: false, + + + /** + * Returns the difference between the location of the thumb and its parent. + * @method getOffsetFromParent + * @param {[int, int]} parentPos Optionally accepts the position of the parent + * @type [int, int] + */ + getOffsetFromParent0: function(parentPos) { + var myPos = YAHOO.util.Dom.getXY(this.getEl()); + var ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); + + return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + }, + + getOffsetFromParent: function(parentPos) { + + var el = this.getEl(); + + if (!this.deltaOffset) { + + var myPos = YAHOO.util.Dom.getXY(el); + var ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); + + var newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + + var l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + var deltaX = l - newOffset[0]; + var deltaY = t - newOffset[1]; + + if (isNaN(deltaX) || isNaN(deltaY)) { + } else { + this.deltaOffset = [deltaX, deltaY]; + } + + } else { + var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); + var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); + + newOffset = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]]; + } + + return newOffset; + + //return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + }, + + /** + * Set up the slider, must be called in the constructor of all subclasses + * @method initSlider + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize the width of the tick interval. + */ + initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) { + + + //document these. new for 0.12.1 + this.initLeft = iLeft; + this.initRight = iRight; + this.initUp = iUp; + this.initDown = iDown; + + this.setXConstraint(iLeft, iRight, iTickSize); + this.setYConstraint(iUp, iDown, iTickSize); + + if (iTickSize && iTickSize > 1) { + this._graduated = true; + } + + this._isHoriz = (iLeft || iRight); + this._isVert = (iUp || iDown); + this._isRegion = (this._isHoriz && this._isVert); + + }, + + /** + * Clear's the slider's ticks + * @method clearTicks + */ + clearTicks: function () { + YAHOO.widget.SliderThumb.superclass.clearTicks.call(this); + this.tickSize = 0; + this._graduated = false; + }, + + + /** + * Gets the current offset from the element's start position in + * pixels. + * @method getValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved from the start position. + */ + getValue: function () { + if (!this.available) { return 0; } + var val = (this._isHoriz) ? this.getXValue() : this.getYValue(); + return val; + }, + + /** + * Gets the current X offset from the element's start position in + * pixels. + * @method getXValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved horizontally from the start position. + */ + getXValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[0] - this.startOffset[0]); + }, + + /** + * Gets the current Y offset from the element's start position in + * pixels. + * @method getYValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved vertically from the start position. + */ + getYValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[1] - this.startOffset[1]); + }, + + /** + * Thumb toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return "SliderThumb " + this.id; + }, + + /** + * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider + * instance it belongs to. + * @method onChange + * @private + */ + onChange: function (x, y) { + } + +}); + +if ("undefined" == typeof YAHOO.util.Anim) { + YAHOO.widget.Slider.ANIM_AVAIL = false; +} + +YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/tabview/README b/interface/ispconfig/interface/js/yui/tabview/README new file mode 100644 index 0000000..0c598a5 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/README @@ -0,0 +1,21 @@ +*** version 2.2.0 ** + +* Element broken out into seperate pkg + NOTE: new dependency required - element-beta.js + +*** version 0.12.2 *** + +* var Tab is now private +* fixed Element.configureAttribute + +*** version 0.12.1 *** + +* tabs.css renamed to tabview.css +* calls to "set" now queued so they can be made before "contentReady" + + +*** version 0.12.0 *** + +* TabView widget introduced + +* Note: border_tabs.css included as basic skin to enable "tabs" look diff --git a/interface/ispconfig/interface/js/yui/tabview/assets/border_tabs.css b/interface/ispconfig/interface/js/yui/tabview/assets/border_tabs.css new file mode 100644 index 0000000..57395f6 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/assets/border_tabs.css @@ -0,0 +1,54 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +.yui-navset .yui-nav li a, .yui-navset .yui-content { + border:1px solid #000; /* label and content borders */ +} + +.yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover, .yui-navset .yui-content { + background-color:#f6f7ee; /* active tab, tab hover, and content bgcolor */ +} + +.yui-navset .yui-nav li em { padding:.5em; } /* tab padding */ + +/* defaults to orientation "top" */ +.yui-navset .yui-nav .selected a { + border-bottom-width:0; /* no bottom border for active tab */ + padding-bottom:1px; /* to match height of other tabs */ +} + +.yui-navset .yui-content { + margin-top:-1px; /* for active tab overlap */ +} + +/* overrides for other orientations */ + +.yui-navset-bottom .yui-nav .selected a { + border-width:0 1px 1px; /* no top border for active tab */ + padding:1px 0 0; /* to match height of other tabs */ +} + +.yui-navset-bottom .yui-content { + margin:0 0 -1px; /* for active tab overlap */ +} + +.yui-navset-left .yui-nav li.selected a { + border-width:1px 0 1px 1px; /* no right border for active tab */ + padding:0 1px 0 0; /* to match width of other tabs */ +} + +.yui-navset-left .yui-content { + margin:0 0 0 -1px; /* for active tab overlap */ +} + +.yui-navset-right .yui-nav li.selected a { + border-width:1px 1px 1px 0; /* no left border for active tab */ + padding:0 0 0 1px; /* to match width of other tabs */ +} + +.yui-navset-right .yui-content { + margin:0 -1px 0 0; /* for active tab overlap */ +} \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/tabview/assets/tabview.css b/interface/ispconfig/interface/js/yui/tabview/assets/tabview.css new file mode 100644 index 0000000..2d6b788 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/assets/tabview.css @@ -0,0 +1,75 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* default space between tabs */ +.yui-navset .yui-nav li { + margin-right:0.5em; /* horizontal tabs */ +} +.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li { + margin:0 0 0.5em; /* vertical tabs */ +} + +/* default width for side tabs */ +.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { width:6em; } +.yui-navset-left { padding-left:6em; } /* map to nav width */ +.yui-navset-right { padding-right:6em; } /* ditto */ + +/* core */ + +.yui-nav, .yui-nav li { + margin:0; + padding:0; + list-style:none; +} +.yui-navset li em { font-style:normal; } + +.yui-navset { + position:relative; /* contain absolute positioned tabs (left/right) */ + zoom:1; +} + +.yui-navset .yui-content { zoom:1; } + +.yui-navset .yui-nav li { + display:inline-block; + display:-moz-inline-stack; + *display:inline; /* IE */ + vertical-align:bottom; /* safari: for overlap */ + cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */ + zoom:1; /* IE: kill space between horizontal tabs */ +} + +.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li { + display:block; +} + +.yui-navset .yui-nav a { + outline:0; /* gecko: keep from shifting */ +} + +.yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */ + +.yui-navset .yui-nav li a { + display:block; + display:inline-block; + vertical-align:bottom; /* safari: for overlap */ + zoom:1; +} + +.yui-navset-left .yui-nav li a, .yui-navset-right .yui-nav li a { + display:block; +} + +.yui-navset-bottom .yui-nav li a { + vertical-align:text-top; /* for inline overlap (reverse for Op border bug) */ +} + +.yui-navset .yui-nav li a em { display:block; } + +/* position left and right oriented tabs */ +.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { position:absolute; z-index:1; } +.yui-navset-left .yui-nav { left:0; } +.yui-navset-right .yui-nav { right:0; } diff --git a/interface/ispconfig/interface/js/yui/tabview/tabview-debug.js b/interface/ispconfig/interface/js/yui/tabview/tabview-debug.js new file mode 100644 index 0000000..f84511a --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/tabview-debug.js @@ -0,0 +1,1025 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +(function() { + + /** + * The tabview module provides a widget for managing content bound to tabs. + * @module tabview + * @requires yahoo, dom, event, element + * + */ + /** + * A widget to control tabbed views. + * @namespace YAHOO.widget + * @class TabView + * @extends YAHOO.util.Element + * @constructor + * @param {HTMLElement | String | Object} el(optional) The html + * element that represents the TabView, or the attribute object to use. + * An element will be created if none provided. + * @param {Object} attr (optional) A key map of the tabView's + * initial attributes. Ignored if first arg is attributes object. + */ + YAHOO.widget.TabView = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) { + attr = el; // treat first arg as attr object + el = attr.element || null; + } + + if (!el && !attr.element) { // create if we dont have one + el = _createTabViewElement.call(this, attr); + } + YAHOO.widget.TabView.superclass.constructor.call(this, el, attr); + }; + + YAHOO.extend(YAHOO.widget.TabView, YAHOO.util.Element); + + var proto = YAHOO.widget.TabView.prototype; + var Dom = YAHOO.util.Dom; + var Event = YAHOO.util.Event; + var Tab = YAHOO.widget.Tab; + + + /** + * The className to add when building from scratch. + * @property CLASSNAME + * @default "navset" + */ + proto.CLASSNAME = 'yui-navset'; + + /** + * The className of the HTMLElement containing the TabView's tab elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the tab container are treated as Tabs when building + * from existing markup. + * @property TAB_PARENT_CLASSNAME + * @default "nav" + */ + proto.TAB_PARENT_CLASSNAME = 'yui-nav'; + + /** + * The className of the HTMLElement containing the TabView's label elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the content container are treated as content elements when + * building from existing markup. + * @property CONTENT_PARENT_CLASSNAME + * @default "nav-content" + */ + proto.CONTENT_PARENT_CLASSNAME = 'yui-content'; + + proto._tabParent = null; + proto._contentParent = null; + + /** + * Adds a Tab to the TabView instance. + * If no index is specified, the tab is added to the end of the tab list. + * @method addTab + * @param {YAHOO.widget.Tab} tab A Tab instance to add. + * @param {Integer} index The position to add the tab. + * @return void + */ + proto.addTab = function(tab, index) { + var tabs = this.get('tabs'); + if (!tabs) { // not ready yet + this._queue[this._queue.length] = ['addTab', arguments]; + return false; + } + + index = (index === undefined) ? tabs.length : index; + + var before = this.getTab(index); + + var self = this; + var el = this.get('element'); + var tabParent = this._tabParent; + var contentParent = this._contentParent; + + var tabElement = tab.get('element'); + var contentEl = tab.get('contentEl'); + + if ( before ) { + tabParent.insertBefore(tabElement, before.get('element')); + } else { + tabParent.appendChild(tabElement); + } + + if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) { + contentParent.appendChild(contentEl); + } + + if ( !tab.get('active') ) { + tab.set('contentVisible', false, true); /* hide if not active */ + } else { + this.set('activeTab', tab, true); + + } + + var activate = function(e) { + YAHOO.util.Event.preventDefault(e); + self.set('activeTab', this); + }; + + tab.addListener( tab.get('activationEvent'), activate); + + tab.addListener('activationEventChange', function(e) { + if (e.prevValue != e.newValue) { + tab.removeListener(e.prevValue, activate); + tab.addListener(e.newValue, activate); + } + }); + + tabs.splice(index, 0, tab); + }; + + /** + * Routes childNode events. + * @method DOMEventHandler + * @param {event} e The Dom event that is being handled. + * @return void + */ + proto.DOMEventHandler = function(e) { + var el = this.get('element'); + var target = YAHOO.util.Event.getTarget(e); + var tabParent = this._tabParent; + + if (Dom.isAncestor(tabParent, target) ) { + var tabEl; + var tab = null; + var contentEl; + var tabs = this.get('tabs'); + + for (var i = 0, len = tabs.length; i < len; i++) { + tabEl = tabs[i].get('element'); + contentEl = tabs[i].get('contentEl'); + + if ( target == tabEl || Dom.isAncestor(tabEl, target) ) { + tab = tabs[i]; + break; // note break + } + } + + if (tab) { + tab.fireEvent(e.type, e); + } + } + }; + + /** + * Returns the Tab instance at the specified index. + * @method getTab + * @param {Integer} index The position of the Tab. + * @return YAHOO.widget.Tab + */ + proto.getTab = function(index) { + return this.get('tabs')[index]; + }; + + /** + * Returns the index of given tab. + * @method getTabIndex + * @param {YAHOO.widget.Tab} tab The tab whose index will be returned. + * @return int + */ + proto.getTabIndex = function(tab) { + var index = null; + var tabs = this.get('tabs'); + for (var i = 0, len = tabs.length; i < len; ++i) { + if (tab == tabs[i]) { + index = i; + break; + } + } + + return index; + }; + + /** + * Removes the specified Tab from the TabView. + * @method removeTab + * @param {YAHOO.widget.Tab} item The Tab instance to be removed. + * @return void + */ + proto.removeTab = function(tab) { + var tabCount = this.get('tabs').length; + + var index = this.getTabIndex(tab); + var nextIndex = index + 1; + if ( tab == this.get('activeTab') ) { // select next tab + if (tabCount > 1) { + if (index + 1 == tabCount) { + this.set('activeIndex', index - 1); + } else { + this.set('activeIndex', index + 1); + } + } + } + + this._tabParent.removeChild( tab.get('element') ); + this._contentParent.removeChild( tab.get('contentEl') ); + this._configs.tabs.value.splice(index, 1); + + }; + + /** + * Provides a readable name for the TabView instance. + * @method toString + * @return String + */ + proto.toString = function() { + var name = this.get('id') || this.get('tagName'); + return "TabView " + name; + }; + + /** + * The transiton to use when switching between tabs. + * @method contentTransition + */ + proto.contentTransition = function(newTab, oldTab) { + newTab.set('contentVisible', true); + oldTab.set('contentVisible', false); + }; + + /** + * setAttributeConfigs TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + YAHOO.widget.TabView.superclass.initAttributes.call(this, attr); + + if (!attr.orientation) { + attr.orientation = 'top'; + } + + var el = this.get('element'); + + /** + * The Tabs belonging to the TabView instance. + * @config tabs + * @type Array + */ + this.setAttributeConfig('tabs', { + value: [], + readOnly: true + }); + + /** + * The container of the tabView's label elements. + * @property _tabParent + * @private + * @type HTMLElement + */ + this._tabParent = + this.getElementsByClassName(this.TAB_PARENT_CLASSNAME, + 'ul' )[0] || _createTabParent.call(this); + + /** + * The container of the tabView's content elements. + * @property _contentParent + * @type HTMLElement + * @private + */ + this._contentParent = + this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME, + 'div')[0] || _createContentParent.call(this); + + /** + * How the Tabs should be oriented relative to the TabView. + * @config orientation + * @type String + * @default "top" + */ + this.setAttributeConfig('orientation', { + value: attr.orientation, + method: function(value) { + var current = this.get('orientation'); + this.addClass('yui-navset-' + value); + + if (current != value) { + this.removeClass('yui-navset-' + current); + } + + switch(value) { + case 'bottom': + this.appendChild(this._tabParent); + break; + } + } + }); + + /** + * The index of the tab currently active. + * @config activeIndex + * @type Int + */ + this.setAttributeConfig('activeIndex', { + value: attr.activeIndex, + method: function(value) { + this.set('activeTab', this.getTab(value)); + }, + validator: function(value) { + return !this.getTab(value).get('disabled'); // cannot activate if disabled + } + }); + + /** + * The tab currently active. + * @config activeTab + * @type YAHOO.widget.Tab + */ + this.setAttributeConfig('activeTab', { + value: attr.activeTab, + method: function(tab) { + var activeTab = this.get('activeTab'); + + if (tab) { + tab.set('active', true); + this._configs['activeIndex'].value = this.getTabIndex(tab); // keep in sync + } + + if (activeTab && activeTab != tab) { + activeTab.set('active', false); + } + + if (activeTab && tab != activeTab) { // no transition if only 1 + this.contentTransition(tab, activeTab); + } else if (tab) { + tab.set('contentVisible', true); + } + }, + validator: function(value) { + return !value.get('disabled'); // cannot activate if disabled + } + }); + + if ( this._tabParent ) { + _initTabs.call(this); + } + + for (var type in this.DOM_EVENTS) { + if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) { + this.addListener.call(this, type, this.DOMEventHandler); + } + } + }; + + /** + * Creates Tab instances from a collection of HTMLElements. + * @method createTabs + * @private + * @param {Array|HTMLCollection} elements The elements to use for Tabs. + * @return void + */ + var _initTabs = function() { + var tab, + attr, + contentEl; + + var el = this.get('element'); + var tabs = _getChildNodes(this._tabParent); + var contentElements = _getChildNodes(this._contentParent); + + for (var i = 0, len = tabs.length; i < len; ++i) { + attr = {}; + + if (contentElements[i]) { + attr.contentEl = contentElements[i]; + } + + tab = new YAHOO.widget.Tab(tabs[i], attr); + this.addTab(tab); + + if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) { + this._configs.activeTab.value = tab; // dont invoke method + } + } + }; + + var _createTabViewElement = function(attr) { + var el = document.createElement('div'); + + if ( this.CLASSNAME ) { + el.className = this.CLASSNAME; + } + + return el; + }; + + var _createTabParent = function(attr) { + var el = document.createElement('ul'); + + if ( this.TAB_PARENT_CLASSNAME ) { + el.className = this.TAB_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _createContentParent = function(attr) { + var el = document.createElement('div'); + + if ( this.CONTENT_PARENT_CLASSNAME ) { + el.className = this.CONTENT_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _getChildNodes = function(el) { + var nodes = []; + var childNodes = el.childNodes; + + for (var i = 0, len = childNodes.length; i < len; ++i) { + if (childNodes[i].nodeType == 1) { + nodes[nodes.length] = childNodes[i]; + } + } + + return nodes; + }; + +/** + * Fires before the activeTab is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeActiveTabChange<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * prevValue</code> the currently active tab<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * newValue</code> the tab to be made active</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeActiveTabChange', handler);</code></p> + * @event beforeActiveTabChange + */ + +/** + * Fires after the activeTab is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> activeTabChange<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * prevValue</code> the formerly active tab<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * newValue</code> the new active tab</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('activeTabChange', handler);</code></p> + * @event activeTabChange + */ + +/** + * Fires before the orientation is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeOrientationChange<br> + * <code><String> + * prevValue</code> the current orientation<br> + * <code><String> + * newValue</code> the new orientation to be applied</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeOrientationChange', handler);</code></p> + * @event beforeOrientationChange + */ + +/** + * Fires after the orientation is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> orientationChange<br> + * <code><String> + * prevValue</code> the former orientation<br> + * <code><String> + * newValue</code> the new orientation</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('orientationChange', handler);</code></p> + * @event orientationChange + */ +})(); + +(function() { + var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event; + + /** + * A representation of a Tab's label and content. + * @namespace YAHOO.widget + * @class Tab + * @extends YAHOO.util.Element + * @constructor + * @param element {HTMLElement | String} (optional) The html element that + * represents the TabView. An element will be created if none provided. + * @param {Object} properties A key map of initial properties + */ + var Tab = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) { + attr = el; + el = attr.element; + } + + if (!el && !attr.element) { + el = _createTabElement.call(this, attr); + } + + this.loadHandler = { + success: function(o) { + this.set('content', o.responseText); + }, + failure: function(o) { + YAHOO.log('loading failed: ' + o.statusText, + 'error', 'Tab'); + } + }; + + Tab.superclass.constructor.call(this, el, attr); + + this.DOM_EVENTS = {}; // delegating to tabView + }; + + YAHOO.extend(Tab, YAHOO.util.Element); + var proto = Tab.prototype; + + /** + * The default tag name for a Tab's inner element. + * @property LABEL_INNER_TAGNAME + * @type String + * @default "em" + */ + proto.LABEL_TAGNAME = 'em'; + + /** + * The class name applied to active tabs. + * @property ACTIVE_CLASSNAME + * @type String + * @default "on" + */ + proto.ACTIVE_CLASSNAME = 'selected'; + + /** + * The class name applied to disabled tabs. + * @property DISABLED_CLASSNAME + * @type String + * @default "disabled" + */ + proto.DISABLED_CLASSNAME = 'disabled'; + + /** + * The class name applied to dynamic tabs while loading. + * @property LOADING_CLASSNAME + * @type String + * @default "disabled" + */ + proto.LOADING_CLASSNAME = 'loading'; + + /** + * Provides a reference to the connection request object when data is + * loaded dynamically. + * @property dataConnection + * @type Object + */ + proto.dataConnection = null; + + /** + * Object containing success and failure callbacks for loading data. + * @property loadHandler + * @type object + */ + proto.loadHandler = null; + + /** + * Provides a readable name for the tab. + * @method toString + * @return String + */ + proto.toString = function() { + var el = this.get('element'); + var id = el.id || el.tagName; + return "Tab " + id; + }; + + /** + * setAttributeConfigs TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + attr = attr || {}; + Tab.superclass.initAttributes.call(this, attr); + + var el = this.get('element'); + + /** + * The event that triggers the tab's activation. + * @config activationEvent + * @type String + */ + this.setAttributeConfig('activationEvent', { + value: attr.activationEvent || 'click' + }); + + /** + * The element that contains the tab's label. + * @config labelEl + * @type HTMLElement + */ + this.setAttributeConfig('labelEl', { + value: attr.labelEl || _getlabelEl.call(this), + method: function(value) { + var current = this.get('labelEl'); + + if (current) { + if (current == value) { + return false; // already set + } + + this.replaceChild(value, current); + } else if (el.firstChild) { // ensure label is firstChild by default + this.insertBefore(value, el.firstChild); + } else { + this.appendChild(value); + } + } + }); + + /** + * The tab's label text (or innerHTML). + * @config label + * @type String + */ + this.setAttributeConfig('label', { + value: attr.label || _getLabel.call(this), + method: function(value) { + var labelEl = this.get('labelEl'); + if (!labelEl) { // create if needed + this.set('labelEl', _createlabelEl.call(this)); + } + + _setLabel.call(this, value); + } + }); + + /** + * The HTMLElement that contains the tab's content. + * @config contentEl + * @type HTMLElement + */ + this.setAttributeConfig('contentEl', { + value: attr.contentEl || document.createElement('div'), + method: function(value) { + var current = this.get('contentEl'); + + if (current) { + if (current == value) { + return false; // already set + } + this.replaceChild(value, current); + } + } + }); + + /** + * The tab's content. + * @config content + * @type String + */ + this.setAttributeConfig('content', { + value: attr.content, + method: function(value) { + this.get('contentEl').innerHTML = value; + } + }); + + var _dataLoaded = false; + + /** + * The tab's data source, used for loading content dynamically. + * @config dataSrc + * @type String + */ + this.setAttributeConfig('dataSrc', { + value: attr.dataSrc + }); + + /** + * Whether or not content should be reloaded for every view. + * @config cacheData + * @type Boolean + * @default false + */ + this.setAttributeConfig('cacheData', { + value: attr.cacheData || false, + validator: YAHOO.lang.isBoolean + }); + + /** + * The method to use for the data request. + * @config loadMethod + * @type String + * @default "GET" + */ + this.setAttributeConfig('loadMethod', { + value: attr.loadMethod || 'GET', + validator: YAHOO.lang.isString + }); + + /** + * Whether or not any data has been loaded from the server. + * @config dataLoaded + * @type Boolean + */ + this.setAttributeConfig('dataLoaded', { + value: false, + validator: YAHOO.lang.isBoolean, + writeOnce: true + }); + + /** + * Number if milliseconds before aborting and calling failure handler. + * @config dataTimeout + * @type Number + * @default null + */ + this.setAttributeConfig('dataTimeout', { + value: attr.dataTimeout || null, + validator: YAHOO.lang.isNumber + }); + + /** + * Whether or not the tab is currently active. + * If a dataSrc is set for the tab, the content will be loaded from + * the given source. + * @config active + * @type Boolean + */ + this.setAttributeConfig('active', { + value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME), + method: function(value) { + if (value === true) { + this.addClass(this.ACTIVE_CLASSNAME); + this.set('title', 'active'); + } else { + this.removeClass(this.ACTIVE_CLASSNAME); + this.set('title', ''); + } + }, + validator: function(value) { + return YAHOO.lang.isBoolean(value) && !this.get('disabled') ; + } + }); + + /** + * Whether or not the tab is disabled. + * @config disabled + * @type Boolean + */ + this.setAttributeConfig('disabled', { + value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME), + method: function(value) { + if (value === true) { + Dom.addClass(this.get('element'), this.DISABLED_CLASSNAME); + } else { + Dom.removeClass(this.get('element'), this.DISABLED_CLASSNAME); + } + }, + validator: YAHOO.lang.isBoolean + }); + + /** + * The href of the tab's anchor element. + * @config href + * @type String + * @default '#' + */ + this.setAttributeConfig('href', { + value: attr.href || '#', + method: function(value) { + this.getElementsByTagName('a')[0].href = value; + }, + validator: YAHOO.lang.isString + }); + + /** + * The Whether or not the tab's content is visible. + * @config contentVisible + * @type Boolean + * @default false + */ + this.setAttributeConfig('contentVisible', { + value: attr.contentVisible, + method: function(value) { + if (value) { + this.get('contentEl').style.display = 'block'; + + if ( this.get('dataSrc') ) { + // load dynamic content unless already loaded and caching + if ( !this.get('dataLoaded') || !this.get('cacheData') ) { + _dataConnect.call(this); + } + } + } else { + this.get('contentEl').style.display = 'none'; + } + }, + validator: YAHOO.lang.isBoolean + }); + }; + + var _createTabElement = function(attr) { + var el = document.createElement('li'); + var a = document.createElement('a'); + + a.href = attr.href || '#'; + + el.appendChild(a); + + var label = attr.label || null; + var labelEl = attr.labelEl || null; + + if (labelEl) { // user supplied labelEl + if (!label) { // user supplied label + label = _getLabel.call(this, labelEl); + } + } else { + labelEl = _createlabelEl.call(this); + } + + a.appendChild(labelEl); + + return el; + }; + + var _getlabelEl = function() { + return this.getElementsByTagName(this.LABEL_TAGNAME)[0]; + }; + + var _createlabelEl = function() { + var el = document.createElement(this.LABEL_TAGNAME); + return el; + }; + + var _setLabel = function(label) { + var el = this.get('labelEl'); + el.innerHTML = label; + }; + + var _getLabel = function() { + var label, + el = this.get('labelEl'); + + if (!el) { + return undefined; + } + + return el.innerHTML; + }; + + var _dataConnect = function() { + if (!YAHOO.util.Connect) { + YAHOO.log('YAHOO.util.Connect dependency not met', + 'error', 'Tab'); + return false; + } + + Dom.addClass(this.get('contentEl').parentNode, this.LOADING_CLASSNAME); + + this.dataConnection = YAHOO.util.Connect.asyncRequest( + this.get('loadMethod'), + this.get('dataSrc'), + { + success: function(o) { + this.loadHandler.success.call(this, o); + this.set('dataLoaded', true); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + failure: function(o) { + this.loadHandler.failure.call(this, o); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + scope: this, + timeout: this.get('dataTimeout') + } + ); + }; + + YAHOO.widget.Tab = Tab; + + /** + * Fires before the active state is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeActiveChange<br> + * <code><Boolean> + * prevValue</code> the current value<br> + * <code><Boolean> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeActiveChange', handler);</code></p> + * @event beforeActiveChange + */ + + /** + * Fires after the active state is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> activeChange<br> + * <code><Boolean> + * prevValue</code> the previous value<br> + * <code><Boolean> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('activeChange', handler);</code></p> + * @event activeChange + */ + + /** + * Fires before the tab label is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeLabelChange<br> + * <code><String> + * prevValue</code> the current value<br> + * <code><String> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeLabelChange', handler);</code></p> + * @event beforeLabelChange + */ + + /** + * Fires after the tab label is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> labelChange<br> + * <code><String> + * prevValue</code> the previous value<br> + * <code><String> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('labelChange', handler);</code></p> + * @event labelChange + */ + + /** + * Fires before the tab content is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeContentChange<br> + * <code><String> + * prevValue</code> the current value<br> + * <code><String> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeContentChange', handler);</code></p> + * @event beforeContentChange + */ + + /** + * Fires after the tab content is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> contentChange<br> + * <code><String> + * prevValue</code> the previous value<br> + * <code><Boolean> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('contentChange', handler);</code></p> + * @event contentChange + */ +})(); + +YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/tabview/tabview-min.js b/interface/ispconfig/interface/js/yui/tabview/tabview-min.js new file mode 100644 index 0000000..0985d81 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/tabview-min.js @@ -0,0 +1,35 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +(function(){YAHOO.widget.TabView=function(el,attr){attr=attr||{};if(arguments.length==1&&!YAHOO.lang.isString(el)&&!el.nodeName){attr=el;el=attr.element||null;} +if(!el&&!attr.element){el=_createTabViewElement.call(this,attr);} +YAHOO.widget.TabView.superclass.constructor.call(this,el,attr);};YAHOO.extend(YAHOO.widget.TabView,YAHOO.util.Element);var proto=YAHOO.widget.TabView.prototype;var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var Tab=YAHOO.widget.Tab;proto.CLASSNAME='yui-navset';proto.TAB_PARENT_CLASSNAME='yui-nav';proto.CONTENT_PARENT_CLASSNAME='yui-content';proto._tabParent=null;proto._contentParent=null;proto.addTab=function(tab,index){var tabs=this.get('tabs');if(!tabs){this._queue[this._queue.length]=['addTab',arguments];return false;} +index=(index===undefined)?tabs.length:index;var before=this.getTab(index);var self=this;var el=this.get('element');var tabParent=this._tabParent;var contentParent=this._contentParent;var tabElement=tab.get('element');var contentEl=tab.get('contentEl');if(before){tabParent.insertBefore(tabElement,before.get('element'));}else{tabParent.appendChild(tabElement);} +if(contentEl&&!Dom.isAncestor(contentParent,contentEl)){contentParent.appendChild(contentEl);} +if(!tab.get('active')){tab.set('contentVisible',false,true);}else{this.set('activeTab',tab,true);} +var activate=function(e){YAHOO.util.Event.preventDefault(e);self.set('activeTab',this);};tab.addListener(tab.get('activationEvent'),activate);tab.addListener('activationEventChange',function(e){if(e.prevValue!=e.newValue){tab.removeListener(e.prevValue,activate);tab.addListener(e.newValue,activate);}});tabs.splice(index,0,tab);};proto.DOMEventHandler=function(e){var el=this.get('element');var target=YAHOO.util.Event.getTarget(e);var tabParent=this._tabParent;if(Dom.isAncestor(tabParent,target)){var tabEl;var tab=null;var contentEl;var tabs=this.get('tabs');for(var i=0,len=tabs.length;i<len;i++){tabEl=tabs[i].get('element');contentEl=tabs[i].get('contentEl');if(target==tabEl||Dom.isAncestor(tabEl,target)){tab=tabs[i];break;}} +if(tab){tab.fireEvent(e.type,e);}}};proto.getTab=function(index){return this.get('tabs')[index];};proto.getTabIndex=function(tab){var index=null;var tabs=this.get('tabs');for(var i=0,len=tabs.length;i<len;++i){if(tab==tabs[i]){index=i;break;}} +return index;};proto.removeTab=function(tab){var tabCount=this.get('tabs').length;var index=this.getTabIndex(tab);var nextIndex=index+1;if(tab==this.get('activeTab')){if(tabCount>1){if(index+1==tabCount){this.set('activeIndex',index-1);}else{this.set('activeIndex',index+1);}}} +this._tabParent.removeChild(tab.get('element'));this._contentParent.removeChild(tab.get('contentEl'));this._configs.tabs.value.splice(index,1);};proto.toString=function(){var name=this.get('id')||this.get('tagName');return"TabView "+name;};proto.contentTransition=function(newTab,oldTab){newTab.set('contentVisible',true);oldTab.set('contentVisible',false);};proto.initAttributes=function(attr){YAHOO.widget.TabView.superclass.initAttributes.call(this,attr);if(!attr.orientation){attr.orientation='top';} +var el=this.get('element');this.setAttributeConfig('tabs',{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,'ul')[0]||_createTabParent.call(this);this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,'div')[0]||_createContentParent.call(this);this.setAttributeConfig('orientation',{value:attr.orientation,method:function(value){var current=this.get('orientation');this.addClass('yui-navset-'+value);if(current!=value){this.removeClass('yui-navset-'+current);} +switch(value){case'bottom':this.appendChild(this._tabParent);break;}}});this.setAttributeConfig('activeIndex',{value:attr.activeIndex,method:function(value){this.set('activeTab',this.getTab(value));},validator:function(value){return!this.getTab(value).get('disabled');}});this.setAttributeConfig('activeTab',{value:attr.activeTab,method:function(tab){var activeTab=this.get('activeTab');if(tab){tab.set('active',true);this._configs['activeIndex'].value=this.getTabIndex(tab);} +if(activeTab&&activeTab!=tab){activeTab.set('active',false);} +if(activeTab&&tab!=activeTab){this.contentTransition(tab,activeTab);}else if(tab){tab.set('contentVisible',true);}},validator:function(value){return!value.get('disabled');}});if(this._tabParent){_initTabs.call(this);} +for(var type in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,type)){this.addListener.call(this,type,this.DOMEventHandler);}}};var _initTabs=function(){var tab,attr,contentEl;var el=this.get('element');var tabs=_getChildNodes(this._tabParent);var contentElements=_getChildNodes(this._contentParent);for(var i=0,len=tabs.length;i<len;++i){attr={};if(contentElements[i]){attr.contentEl=contentElements[i];} +tab=new YAHOO.widget.Tab(tabs[i],attr);this.addTab(tab);if(tab.hasClass(tab.ACTIVE_CLASSNAME)){this._configs.activeTab.value=tab;}}};var _createTabViewElement=function(attr){var el=document.createElement('div');if(this.CLASSNAME){el.className=this.CLASSNAME;} +return el;};var _createTabParent=function(attr){var el=document.createElement('ul');if(this.TAB_PARENT_CLASSNAME){el.className=this.TAB_PARENT_CLASSNAME;} +this.get('element').appendChild(el);return el;};var _createContentParent=function(attr){var el=document.createElement('div');if(this.CONTENT_PARENT_CLASSNAME){el.className=this.CONTENT_PARENT_CLASSNAME;} +this.get('element').appendChild(el);return el;};var _getChildNodes=function(el){var nodes=[];var childNodes=el.childNodes;for(var i=0,len=childNodes.length;i<len;++i){if(childNodes[i].nodeType==1){nodes[nodes.length]=childNodes[i];}} +return nodes;};})();(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event;var Tab=function(el,attr){attr=attr||{};if(arguments.length==1&&!YAHOO.lang.isString(el)&&!el.nodeName){attr=el;el=attr.element;} +if(!el&&!attr.element){el=_createTabElement.call(this,attr);} +this.loadHandler={success:function(o){this.set('content',o.responseText);},failure:function(o){}};Tab.superclass.constructor.call(this,el,attr);this.DOM_EVENTS={};};YAHOO.extend(Tab,YAHOO.util.Element);var proto=Tab.prototype;proto.LABEL_TAGNAME='em';proto.ACTIVE_CLASSNAME='selected';proto.DISABLED_CLASSNAME='disabled';proto.LOADING_CLASSNAME='loading';proto.dataConnection=null;proto.loadHandler=null;proto.toString=function(){var el=this.get('element');var id=el.id||el.tagName;return"Tab "+id;};proto.initAttributes=function(attr){attr=attr||{};Tab.superclass.initAttributes.call(this,attr);var el=this.get('element');this.setAttributeConfig('activationEvent',{value:attr.activationEvent||'click'});this.setAttributeConfig('labelEl',{value:attr.labelEl||_getlabelEl.call(this),method:function(value){var current=this.get('labelEl');if(current){if(current==value){return false;} +this.replaceChild(value,current);}else if(el.firstChild){this.insertBefore(value,el.firstChild);}else{this.appendChild(value);}}});this.setAttributeConfig('label',{value:attr.label||_getLabel.call(this),method:function(value){var labelEl=this.get('labelEl');if(!labelEl){this.set('labelEl',_createlabelEl.call(this));} +_setLabel.call(this,value);}});this.setAttributeConfig('contentEl',{value:attr.contentEl||document.createElement('div'),method:function(value){var current=this.get('contentEl');if(current){if(current==value){return false;} +this.replaceChild(value,current);}}});this.setAttributeConfig('content',{value:attr.content,method:function(value){this.get('contentEl').innerHTML=value;}});var _dataLoaded=false;this.setAttributeConfig('dataSrc',{value:attr.dataSrc});this.setAttributeConfig('cacheData',{value:attr.cacheData||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig('loadMethod',{value:attr.loadMethod||'GET',validator:YAHOO.lang.isString});this.setAttributeConfig('dataLoaded',{value:false,validator:YAHOO.lang.isBoolean,writeOnce:true});this.setAttributeConfig('dataTimeout',{value:attr.dataTimeout||null,validator:YAHOO.lang.isNumber});this.setAttributeConfig('active',{value:attr.active||this.hasClass(this.ACTIVE_CLASSNAME),method:function(value){if(value===true){this.addClass(this.ACTIVE_CLASSNAME);this.set('title','active');}else{this.removeClass(this.ACTIVE_CLASSNAME);this.set('title','');}},validator:function(value){return YAHOO.lang.isBoolean(value)&&!this.get('disabled');}});this.setAttributeConfig('disabled',{value:attr.disabled||this.hasClass(this.DISABLED_CLASSNAME),method:function(value){if(value===true){Dom.addClass(this.get('element'),this.DISABLED_CLASSNAME);}else{Dom.removeClass(this.get('element'),this.DISABLED_CLASSNAME);}},validator:YAHOO.lang.isBoolean});this.setAttributeConfig('href',{value:attr.href||'#',method:function(value){this.getElementsByTagName('a')[0].href=value;},validator:YAHOO.lang.isString});this.setAttributeConfig('contentVisible',{value:attr.contentVisible,method:function(value){if(value){this.get('contentEl').style.display='block';if(this.get('dataSrc')){if(!this.get('dataLoaded')||!this.get('cacheData')){_dataConnect.call(this);}}}else{this.get('contentEl').style.display='none';}},validator:YAHOO.lang.isBoolean});};var _createTabElement=function(attr){var el=document.createElement('li');var a=document.createElement('a');a.href=attr.href||'#';el.appendChild(a);var label=attr.label||null;var labelEl=attr.labelEl||null;if(labelEl){if(!label){label=_getLabel.call(this,labelEl);}}else{labelEl=_createlabelEl.call(this);} +a.appendChild(labelEl);return el;};var _getlabelEl=function(){return this.getElementsByTagName(this.LABEL_TAGNAME)[0];};var _createlabelEl=function(){var el=document.createElement(this.LABEL_TAGNAME);return el;};var _setLabel=function(label){var el=this.get('labelEl');el.innerHTML=label;};var _getLabel=function(){var label,el=this.get('labelEl');if(!el){return undefined;} +return el.innerHTML;};var _dataConnect=function(){if(!YAHOO.util.Connect){return false;} +Dom.addClass(this.get('contentEl').parentNode,this.LOADING_CLASSNAME);this.dataConnection=YAHOO.util.Connect.asyncRequest(this.get('loadMethod'),this.get('dataSrc'),{success:function(o){this.loadHandler.success.call(this,o);this.set('dataLoaded',true);this.dataConnection=null;Dom.removeClass(this.get('contentEl').parentNode,this.LOADING_CLASSNAME);},failure:function(o){this.loadHandler.failure.call(this,o);this.dataConnection=null;Dom.removeClass(this.get('contentEl').parentNode,this.LOADING_CLASSNAME);},scope:this,timeout:this.get('dataTimeout')});};YAHOO.widget.Tab=Tab;})();YAHOO.register("tabview",YAHOO.widget.TabView,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/tabview/tabview.js b/interface/ispconfig/interface/js/yui/tabview/tabview.js new file mode 100644 index 0000000..3951de7 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/tabview/tabview.js @@ -0,0 +1,1021 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +(function() { + + /** + * The tabview module provides a widget for managing content bound to tabs. + * @module tabview + * @requires yahoo, dom, event, element + * + */ + /** + * A widget to control tabbed views. + * @namespace YAHOO.widget + * @class TabView + * @extends YAHOO.util.Element + * @constructor + * @param {HTMLElement | String | Object} el(optional) The html + * element that represents the TabView, or the attribute object to use. + * An element will be created if none provided. + * @param {Object} attr (optional) A key map of the tabView's + * initial attributes. Ignored if first arg is attributes object. + */ + YAHOO.widget.TabView = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) { + attr = el; // treat first arg as attr object + el = attr.element || null; + } + + if (!el && !attr.element) { // create if we dont have one + el = _createTabViewElement.call(this, attr); + } + YAHOO.widget.TabView.superclass.constructor.call(this, el, attr); + }; + + YAHOO.extend(YAHOO.widget.TabView, YAHOO.util.Element); + + var proto = YAHOO.widget.TabView.prototype; + var Dom = YAHOO.util.Dom; + var Event = YAHOO.util.Event; + var Tab = YAHOO.widget.Tab; + + + /** + * The className to add when building from scratch. + * @property CLASSNAME + * @default "navset" + */ + proto.CLASSNAME = 'yui-navset'; + + /** + * The className of the HTMLElement containing the TabView's tab elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the tab container are treated as Tabs when building + * from existing markup. + * @property TAB_PARENT_CLASSNAME + * @default "nav" + */ + proto.TAB_PARENT_CLASSNAME = 'yui-nav'; + + /** + * The className of the HTMLElement containing the TabView's label elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the content container are treated as content elements when + * building from existing markup. + * @property CONTENT_PARENT_CLASSNAME + * @default "nav-content" + */ + proto.CONTENT_PARENT_CLASSNAME = 'yui-content'; + + proto._tabParent = null; + proto._contentParent = null; + + /** + * Adds a Tab to the TabView instance. + * If no index is specified, the tab is added to the end of the tab list. + * @method addTab + * @param {YAHOO.widget.Tab} tab A Tab instance to add. + * @param {Integer} index The position to add the tab. + * @return void + */ + proto.addTab = function(tab, index) { + var tabs = this.get('tabs'); + if (!tabs) { // not ready yet + this._queue[this._queue.length] = ['addTab', arguments]; + return false; + } + + index = (index === undefined) ? tabs.length : index; + + var before = this.getTab(index); + + var self = this; + var el = this.get('element'); + var tabParent = this._tabParent; + var contentParent = this._contentParent; + + var tabElement = tab.get('element'); + var contentEl = tab.get('contentEl'); + + if ( before ) { + tabParent.insertBefore(tabElement, before.get('element')); + } else { + tabParent.appendChild(tabElement); + } + + if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) { + contentParent.appendChild(contentEl); + } + + if ( !tab.get('active') ) { + tab.set('contentVisible', false, true); /* hide if not active */ + } else { + this.set('activeTab', tab, true); + + } + + var activate = function(e) { + YAHOO.util.Event.preventDefault(e); + self.set('activeTab', this); + }; + + tab.addListener( tab.get('activationEvent'), activate); + + tab.addListener('activationEventChange', function(e) { + if (e.prevValue != e.newValue) { + tab.removeListener(e.prevValue, activate); + tab.addListener(e.newValue, activate); + } + }); + + tabs.splice(index, 0, tab); + }; + + /** + * Routes childNode events. + * @method DOMEventHandler + * @param {event} e The Dom event that is being handled. + * @return void + */ + proto.DOMEventHandler = function(e) { + var el = this.get('element'); + var target = YAHOO.util.Event.getTarget(e); + var tabParent = this._tabParent; + + if (Dom.isAncestor(tabParent, target) ) { + var tabEl; + var tab = null; + var contentEl; + var tabs = this.get('tabs'); + + for (var i = 0, len = tabs.length; i < len; i++) { + tabEl = tabs[i].get('element'); + contentEl = tabs[i].get('contentEl'); + + if ( target == tabEl || Dom.isAncestor(tabEl, target) ) { + tab = tabs[i]; + break; // note break + } + } + + if (tab) { + tab.fireEvent(e.type, e); + } + } + }; + + /** + * Returns the Tab instance at the specified index. + * @method getTab + * @param {Integer} index The position of the Tab. + * @return YAHOO.widget.Tab + */ + proto.getTab = function(index) { + return this.get('tabs')[index]; + }; + + /** + * Returns the index of given tab. + * @method getTabIndex + * @param {YAHOO.widget.Tab} tab The tab whose index will be returned. + * @return int + */ + proto.getTabIndex = function(tab) { + var index = null; + var tabs = this.get('tabs'); + for (var i = 0, len = tabs.length; i < len; ++i) { + if (tab == tabs[i]) { + index = i; + break; + } + } + + return index; + }; + + /** + * Removes the specified Tab from the TabView. + * @method removeTab + * @param {YAHOO.widget.Tab} item The Tab instance to be removed. + * @return void + */ + proto.removeTab = function(tab) { + var tabCount = this.get('tabs').length; + + var index = this.getTabIndex(tab); + var nextIndex = index + 1; + if ( tab == this.get('activeTab') ) { // select next tab + if (tabCount > 1) { + if (index + 1 == tabCount) { + this.set('activeIndex', index - 1); + } else { + this.set('activeIndex', index + 1); + } + } + } + + this._tabParent.removeChild( tab.get('element') ); + this._contentParent.removeChild( tab.get('contentEl') ); + this._configs.tabs.value.splice(index, 1); + + }; + + /** + * Provides a readable name for the TabView instance. + * @method toString + * @return String + */ + proto.toString = function() { + var name = this.get('id') || this.get('tagName'); + return "TabView " + name; + }; + + /** + * The transiton to use when switching between tabs. + * @method contentTransition + */ + proto.contentTransition = function(newTab, oldTab) { + newTab.set('contentVisible', true); + oldTab.set('contentVisible', false); + }; + + /** + * setAttributeConfigs TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + YAHOO.widget.TabView.superclass.initAttributes.call(this, attr); + + if (!attr.orientation) { + attr.orientation = 'top'; + } + + var el = this.get('element'); + + /** + * The Tabs belonging to the TabView instance. + * @config tabs + * @type Array + */ + this.setAttributeConfig('tabs', { + value: [], + readOnly: true + }); + + /** + * The container of the tabView's label elements. + * @property _tabParent + * @private + * @type HTMLElement + */ + this._tabParent = + this.getElementsByClassName(this.TAB_PARENT_CLASSNAME, + 'ul' )[0] || _createTabParent.call(this); + + /** + * The container of the tabView's content elements. + * @property _contentParent + * @type HTMLElement + * @private + */ + this._contentParent = + this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME, + 'div')[0] || _createContentParent.call(this); + + /** + * How the Tabs should be oriented relative to the TabView. + * @config orientation + * @type String + * @default "top" + */ + this.setAttributeConfig('orientation', { + value: attr.orientation, + method: function(value) { + var current = this.get('orientation'); + this.addClass('yui-navset-' + value); + + if (current != value) { + this.removeClass('yui-navset-' + current); + } + + switch(value) { + case 'bottom': + this.appendChild(this._tabParent); + break; + } + } + }); + + /** + * The index of the tab currently active. + * @config activeIndex + * @type Int + */ + this.setAttributeConfig('activeIndex', { + value: attr.activeIndex, + method: function(value) { + this.set('activeTab', this.getTab(value)); + }, + validator: function(value) { + return !this.getTab(value).get('disabled'); // cannot activate if disabled + } + }); + + /** + * The tab currently active. + * @config activeTab + * @type YAHOO.widget.Tab + */ + this.setAttributeConfig('activeTab', { + value: attr.activeTab, + method: function(tab) { + var activeTab = this.get('activeTab'); + + if (tab) { + tab.set('active', true); + this._configs['activeIndex'].value = this.getTabIndex(tab); // keep in sync + } + + if (activeTab && activeTab != tab) { + activeTab.set('active', false); + } + + if (activeTab && tab != activeTab) { // no transition if only 1 + this.contentTransition(tab, activeTab); + } else if (tab) { + tab.set('contentVisible', true); + } + }, + validator: function(value) { + return !value.get('disabled'); // cannot activate if disabled + } + }); + + if ( this._tabParent ) { + _initTabs.call(this); + } + + for (var type in this.DOM_EVENTS) { + if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) { + this.addListener.call(this, type, this.DOMEventHandler); + } + } + }; + + /** + * Creates Tab instances from a collection of HTMLElements. + * @method createTabs + * @private + * @param {Array|HTMLCollection} elements The elements to use for Tabs. + * @return void + */ + var _initTabs = function() { + var tab, + attr, + contentEl; + + var el = this.get('element'); + var tabs = _getChildNodes(this._tabParent); + var contentElements = _getChildNodes(this._contentParent); + + for (var i = 0, len = tabs.length; i < len; ++i) { + attr = {}; + + if (contentElements[i]) { + attr.contentEl = contentElements[i]; + } + + tab = new YAHOO.widget.Tab(tabs[i], attr); + this.addTab(tab); + + if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) { + this._configs.activeTab.value = tab; // dont invoke method + } + } + }; + + var _createTabViewElement = function(attr) { + var el = document.createElement('div'); + + if ( this.CLASSNAME ) { + el.className = this.CLASSNAME; + } + + return el; + }; + + var _createTabParent = function(attr) { + var el = document.createElement('ul'); + + if ( this.TAB_PARENT_CLASSNAME ) { + el.className = this.TAB_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _createContentParent = function(attr) { + var el = document.createElement('div'); + + if ( this.CONTENT_PARENT_CLASSNAME ) { + el.className = this.CONTENT_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _getChildNodes = function(el) { + var nodes = []; + var childNodes = el.childNodes; + + for (var i = 0, len = childNodes.length; i < len; ++i) { + if (childNodes[i].nodeType == 1) { + nodes[nodes.length] = childNodes[i]; + } + } + + return nodes; + }; + +/** + * Fires before the activeTab is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeActiveTabChange<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * prevValue</code> the currently active tab<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * newValue</code> the tab to be made active</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeActiveTabChange', handler);</code></p> + * @event beforeActiveTabChange + */ + +/** + * Fires after the activeTab is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> activeTabChange<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * prevValue</code> the formerly active tab<br> + * <code><<a href="YAHOO.widget.Tab.html">YAHOO.widget.Tab</a>> + * newValue</code> the new active tab</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('activeTabChange', handler);</code></p> + * @event activeTabChange + */ + +/** + * Fires before the orientation is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeOrientationChange<br> + * <code><String> + * prevValue</code> the current orientation<br> + * <code><String> + * newValue</code> the new orientation to be applied</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeOrientationChange', handler);</code></p> + * @event beforeOrientationChange + */ + +/** + * Fires after the orientation is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> orientationChange<br> + * <code><String> + * prevValue</code> the former orientation<br> + * <code><String> + * newValue</code> the new orientation</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('orientationChange', handler);</code></p> + * @event orientationChange + */ +})(); + +(function() { + var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event; + + /** + * A representation of a Tab's label and content. + * @namespace YAHOO.widget + * @class Tab + * @extends YAHOO.util.Element + * @constructor + * @param element {HTMLElement | String} (optional) The html element that + * represents the TabView. An element will be created if none provided. + * @param {Object} properties A key map of initial properties + */ + var Tab = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) { + attr = el; + el = attr.element; + } + + if (!el && !attr.element) { + el = _createTabElement.call(this, attr); + } + + this.loadHandler = { + success: function(o) { + this.set('content', o.responseText); + }, + failure: function(o) { + } + }; + + Tab.superclass.constructor.call(this, el, attr); + + this.DOM_EVENTS = {}; // delegating to tabView + }; + + YAHOO.extend(Tab, YAHOO.util.Element); + var proto = Tab.prototype; + + /** + * The default tag name for a Tab's inner element. + * @property LABEL_INNER_TAGNAME + * @type String + * @default "em" + */ + proto.LABEL_TAGNAME = 'em'; + + /** + * The class name applied to active tabs. + * @property ACTIVE_CLASSNAME + * @type String + * @default "on" + */ + proto.ACTIVE_CLASSNAME = 'selected'; + + /** + * The class name applied to disabled tabs. + * @property DISABLED_CLASSNAME + * @type String + * @default "disabled" + */ + proto.DISABLED_CLASSNAME = 'disabled'; + + /** + * The class name applied to dynamic tabs while loading. + * @property LOADING_CLASSNAME + * @type String + * @default "disabled" + */ + proto.LOADING_CLASSNAME = 'loading'; + + /** + * Provides a reference to the connection request object when data is + * loaded dynamically. + * @property dataConnection + * @type Object + */ + proto.dataConnection = null; + + /** + * Object containing success and failure callbacks for loading data. + * @property loadHandler + * @type object + */ + proto.loadHandler = null; + + /** + * Provides a readable name for the tab. + * @method toString + * @return String + */ + proto.toString = function() { + var el = this.get('element'); + var id = el.id || el.tagName; + return "Tab " + id; + }; + + /** + * setAttributeConfigs TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + attr = attr || {}; + Tab.superclass.initAttributes.call(this, attr); + + var el = this.get('element'); + + /** + * The event that triggers the tab's activation. + * @config activationEvent + * @type String + */ + this.setAttributeConfig('activationEvent', { + value: attr.activationEvent || 'click' + }); + + /** + * The element that contains the tab's label. + * @config labelEl + * @type HTMLElement + */ + this.setAttributeConfig('labelEl', { + value: attr.labelEl || _getlabelEl.call(this), + method: function(value) { + var current = this.get('labelEl'); + + if (current) { + if (current == value) { + return false; // already set + } + + this.replaceChild(value, current); + } else if (el.firstChild) { // ensure label is firstChild by default + this.insertBefore(value, el.firstChild); + } else { + this.appendChild(value); + } + } + }); + + /** + * The tab's label text (or innerHTML). + * @config label + * @type String + */ + this.setAttributeConfig('label', { + value: attr.label || _getLabel.call(this), + method: function(value) { + var labelEl = this.get('labelEl'); + if (!labelEl) { // create if needed + this.set('labelEl', _createlabelEl.call(this)); + } + + _setLabel.call(this, value); + } + }); + + /** + * The HTMLElement that contains the tab's content. + * @config contentEl + * @type HTMLElement + */ + this.setAttributeConfig('contentEl', { + value: attr.contentEl || document.createElement('div'), + method: function(value) { + var current = this.get('contentEl'); + + if (current) { + if (current == value) { + return false; // already set + } + this.replaceChild(value, current); + } + } + }); + + /** + * The tab's content. + * @config content + * @type String + */ + this.setAttributeConfig('content', { + value: attr.content, + method: function(value) { + this.get('contentEl').innerHTML = value; + } + }); + + var _dataLoaded = false; + + /** + * The tab's data source, used for loading content dynamically. + * @config dataSrc + * @type String + */ + this.setAttributeConfig('dataSrc', { + value: attr.dataSrc + }); + + /** + * Whether or not content should be reloaded for every view. + * @config cacheData + * @type Boolean + * @default false + */ + this.setAttributeConfig('cacheData', { + value: attr.cacheData || false, + validator: YAHOO.lang.isBoolean + }); + + /** + * The method to use for the data request. + * @config loadMethod + * @type String + * @default "GET" + */ + this.setAttributeConfig('loadMethod', { + value: attr.loadMethod || 'GET', + validator: YAHOO.lang.isString + }); + + /** + * Whether or not any data has been loaded from the server. + * @config dataLoaded + * @type Boolean + */ + this.setAttributeConfig('dataLoaded', { + value: false, + validator: YAHOO.lang.isBoolean, + writeOnce: true + }); + + /** + * Number if milliseconds before aborting and calling failure handler. + * @config dataTimeout + * @type Number + * @default null + */ + this.setAttributeConfig('dataTimeout', { + value: attr.dataTimeout || null, + validator: YAHOO.lang.isNumber + }); + + /** + * Whether or not the tab is currently active. + * If a dataSrc is set for the tab, the content will be loaded from + * the given source. + * @config active + * @type Boolean + */ + this.setAttributeConfig('active', { + value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME), + method: function(value) { + if (value === true) { + this.addClass(this.ACTIVE_CLASSNAME); + this.set('title', 'active'); + } else { + this.removeClass(this.ACTIVE_CLASSNAME); + this.set('title', ''); + } + }, + validator: function(value) { + return YAHOO.lang.isBoolean(value) && !this.get('disabled') ; + } + }); + + /** + * Whether or not the tab is disabled. + * @config disabled + * @type Boolean + */ + this.setAttributeConfig('disabled', { + value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME), + method: function(value) { + if (value === true) { + Dom.addClass(this.get('element'), this.DISABLED_CLASSNAME); + } else { + Dom.removeClass(this.get('element'), this.DISABLED_CLASSNAME); + } + }, + validator: YAHOO.lang.isBoolean + }); + + /** + * The href of the tab's anchor element. + * @config href + * @type String + * @default '#' + */ + this.setAttributeConfig('href', { + value: attr.href || '#', + method: function(value) { + this.getElementsByTagName('a')[0].href = value; + }, + validator: YAHOO.lang.isString + }); + + /** + * The Whether or not the tab's content is visible. + * @config contentVisible + * @type Boolean + * @default false + */ + this.setAttributeConfig('contentVisible', { + value: attr.contentVisible, + method: function(value) { + if (value) { + this.get('contentEl').style.display = 'block'; + + if ( this.get('dataSrc') ) { + // load dynamic content unless already loaded and caching + if ( !this.get('dataLoaded') || !this.get('cacheData') ) { + _dataConnect.call(this); + } + } + } else { + this.get('contentEl').style.display = 'none'; + } + }, + validator: YAHOO.lang.isBoolean + }); + }; + + var _createTabElement = function(attr) { + var el = document.createElement('li'); + var a = document.createElement('a'); + + a.href = attr.href || '#'; + + el.appendChild(a); + + var label = attr.label || null; + var labelEl = attr.labelEl || null; + + if (labelEl) { // user supplied labelEl + if (!label) { // user supplied label + label = _getLabel.call(this, labelEl); + } + } else { + labelEl = _createlabelEl.call(this); + } + + a.appendChild(labelEl); + + return el; + }; + + var _getlabelEl = function() { + return this.getElementsByTagName(this.LABEL_TAGNAME)[0]; + }; + + var _createlabelEl = function() { + var el = document.createElement(this.LABEL_TAGNAME); + return el; + }; + + var _setLabel = function(label) { + var el = this.get('labelEl'); + el.innerHTML = label; + }; + + var _getLabel = function() { + var label, + el = this.get('labelEl'); + + if (!el) { + return undefined; + } + + return el.innerHTML; + }; + + var _dataConnect = function() { + if (!YAHOO.util.Connect) { + return false; + } + + Dom.addClass(this.get('contentEl').parentNode, this.LOADING_CLASSNAME); + + this.dataConnection = YAHOO.util.Connect.asyncRequest( + this.get('loadMethod'), + this.get('dataSrc'), + { + success: function(o) { + this.loadHandler.success.call(this, o); + this.set('dataLoaded', true); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + failure: function(o) { + this.loadHandler.failure.call(this, o); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + scope: this, + timeout: this.get('dataTimeout') + } + ); + }; + + YAHOO.widget.Tab = Tab; + + /** + * Fires before the active state is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeActiveChange<br> + * <code><Boolean> + * prevValue</code> the current value<br> + * <code><Boolean> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeActiveChange', handler);</code></p> + * @event beforeActiveChange + */ + + /** + * Fires after the active state is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> activeChange<br> + * <code><Boolean> + * prevValue</code> the previous value<br> + * <code><Boolean> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('activeChange', handler);</code></p> + * @event activeChange + */ + + /** + * Fires before the tab label is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeLabelChange<br> + * <code><String> + * prevValue</code> the current value<br> + * <code><String> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeLabelChange', handler);</code></p> + * @event beforeLabelChange + */ + + /** + * Fires after the tab label is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> labelChange<br> + * <code><String> + * prevValue</code> the previous value<br> + * <code><String> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('labelChange', handler);</code></p> + * @event labelChange + */ + + /** + * Fires before the tab content is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p>If handler returns false, the change will be cancelled, and the value will not + * be set.</p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> beforeContentChange<br> + * <code><String> + * prevValue</code> the current value<br> + * <code><String> + * newValue</code> the new value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('beforeContentChange', handler);</code></p> + * @event beforeContentChange + */ + + /** + * Fires after the tab content is changed. + * <p>See: <a href="YAHOO.util.Element.html#addListener">Element.addListener</a></p> + * <p><strong>Event fields:</strong><br> + * <code><String> type</code> contentChange<br> + * <code><String> + * prevValue</code> the previous value<br> + * <code><Boolean> + * newValue</code> the updated value</p> + * <p><strong>Usage:</strong><br> + * <code>var handler = function(e) {var previous = e.prevValue};<br> + * myTabs.addListener('contentChange', handler);</code></p> + * @event contentChange + */ +})(); + +YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/treeview/README b/interface/ispconfig/interface/js/yui/treeview/README new file mode 100644 index 0000000..6b24d39 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/README @@ -0,0 +1,147 @@ +TreeView - Release Notes + +2.2.0 + + * Node::insertAfter properly nulls the nextSibling attribute when the + inserted before the firstChild. + + * MenuNodes inserted at the root level will no longer lose the menu behavior. + + * TextNode::setUpLabel sets the data.label property as well as the label property. + + * TaskNode example: made the logger optional, and moved the creation of the logger + instance to the proper location. + + * TaskNodes added to a node that is in a fully selected state will update the + parent to a partially selected state. + + * TaskNode example fixed to propagate the labelClick event + + +0.12.2 + + * removeChildren will now work properly on the root node. + +0.12.1 + + * Added custom events for expandComplete and collapseComplete. These events are + needed in situations where the implementer needs to resize or reposition + something based on the new offset. + + * Added a "nowrap" property to Node, and set the default to false. Specifies + whether or not the content area of the node should be allowed to wrap + naturally. + + * Added additional HTML elements to preserve the tree presentation when constrained + by a parent element. + +0.12.0 + + * TreeView now augments EventProvider, and has custom events for expand, + collapse, animStart, animComplete, and labelClick. Existing implementations + using abstract methods for these events (if they exist) will still work. + New events can be plugged into the tree by the Node implementation. For + example, TaskNode adds a checkClick event. EventProvider makes it safe + to do this because implementing code can call subscribe() prior to the + event creation. + + * YAHOO.util.Event is now a requirement for the widget + + * TreeView::removeChildren no longer expands and collapses the node. + + * Documented the moveComplete property + + * createElement("DIV") changed to createElement("div") + +0.11.4 + + * Fixed a javascript error on the HTML node example page. + +0.11.3 + + * popNode now clears the tree, previousSibling, nextSibling, and parent + properties of the node that is being removed from the tree. + + * Fixed the paths to the images in the tree.css file that is included in + build/assets. + +0.11.0 + + * Added TreeView -> popNode, which differs from removeNode in that the + node's children are preserved so the entire branch can be re-inserted + into another part of the tree, or another tree. + + * Added TreeView -> getNodesByProperty, which differs from + getNodeByProperty by returning an array of all nodes that have the + specified property rather than just the first one. + + * Added Node -> insertBefore, insertAfter, and appendTo. These method + can be used to reorganize the tree. + + * removeChildren properly resets the node icon when executed against a + collpased node. + + * Moved depth assignment from the constructor to appendChild so that the + value is set properly if the node is moved within the tree. + + * Fixed broken loop in removeChildren. + + * RootNode -> loadComplete calls tree.draw for hot-wiring the dynamic load + feature for the top level nodes. + + * The treeview constructor will accept an element instead of an id. + +0.10.0 + + * If the child collection changes prior to a refresh(), the icon is now + changed appropriately. + + * Added TreeView removeChildren(node). This will recursively purge the node's + children, and reset its dynamic load state. + + * previousSibling and nextSibling are now adjusted correctly when a + node is deleted. + + * expand()/collapse() now will not expand/collapse the node if false is + returned from the onExpand/onCollapse event handlers. + + * The onExpand and onCollapse events now fire before the node is expanded + or collapsed so that the implementer can modify the node's child collection + prior to display. + + * The childrenRendered property previous was used to indicate both that + a dynamically loaded node has received its data, and also to indicate + that the children html has been created. This has been split into + two properties. dynamicLoadComplete and childrenRendered. + + * Implemented the renderHidden flag. If set to true, the html for the entire + tree will be created when tree.draw() is called, not just the html for the + visible nodes. + + * Added an onLabelClick listener to TextNode + + * TreeView.removeNode no longer automatically refreshes the tree. It has an + optional parameter to perform the refresh. + + * removeNode can now be executed on nodes that have not been rendered. + + * You can now delete top-level nodes. + + * Added onCheckClick listener to the TaskNode example + + * Added Node.iconMode, which is a property that configures the way + dynamically loaded nodes are displayed when they are expanded and contain + no children. + + * TreeView/Node.setDynamicLoad now accepts an optional second parameter to + set the iconMode property. + + * Fixed an issue in the TaskNode.js example that prevented setting the checked + state of a node through the constructor. + + * Fixed an issue in HTMLNode that caused rendering issues when hasIcon was + set to true. + + * Added TreeView.removeNode + + * Added Node.refresh diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/lm.gif b/interface/ispconfig/interface/js/yui/treeview/assets/lm.gif new file mode 100644 index 0000000..e7d0a3c --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/lm.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/lmh.gif b/interface/ispconfig/interface/js/yui/treeview/assets/lmh.gif new file mode 100644 index 0000000..3ff6302 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/lmh.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/ln.gif b/interface/ispconfig/interface/js/yui/treeview/assets/ln.gif new file mode 100644 index 0000000..b7b3e55 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/ln.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/loading.gif b/interface/ispconfig/interface/js/yui/treeview/assets/loading.gif new file mode 100644 index 0000000..0bbf3bc --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/loading.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/lp.gif b/interface/ispconfig/interface/js/yui/treeview/assets/lp.gif new file mode 100644 index 0000000..b87f003 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/lp.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/lph.gif b/interface/ispconfig/interface/js/yui/treeview/assets/lph.gif new file mode 100644 index 0000000..e3478d8 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/lph.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tm.gif b/interface/ispconfig/interface/js/yui/treeview/assets/tm.gif new file mode 100644 index 0000000..e30abad --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tm.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tmh.gif b/interface/ispconfig/interface/js/yui/treeview/assets/tmh.gif new file mode 100644 index 0000000..ad7e557 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tmh.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tn.gif b/interface/ispconfig/interface/js/yui/treeview/assets/tn.gif new file mode 100644 index 0000000..4a28039 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tn.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tp.gif b/interface/ispconfig/interface/js/yui/treeview/assets/tp.gif new file mode 100644 index 0000000..d6d0ed0 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tp.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tph.gif b/interface/ispconfig/interface/js/yui/treeview/assets/tph.gif new file mode 100644 index 0000000..e4d7d99 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tph.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/tree.css b/interface/ispconfig/interface/js/yui/treeview/assets/tree.css new file mode 100644 index 0000000..afd444d --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/tree.css @@ -0,0 +1,102 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/* first or middle sibling, no children */ +.ygtvtn { + width:16px; height:22px; + background: url(tn.gif) 0 0 no-repeat; +} + +/* first or middle sibling, collapsable */ +.ygtvtm { + width:16px; height:22px; + cursor:pointer ; + background: url(tm.gif) 0 0 no-repeat; +} + +/* first or middle sibling, collapsable, hover */ +.ygtvtmh { + width:16px; height:22px; + cursor:pointer ; + background: url(tmh.gif) 0 0 no-repeat; +} + +/* first or middle sibling, expandable */ +.ygtvtp { + width:16px; height:22px; + cursor:pointer ; + background: url(tp.gif) 0 0 no-repeat; +} + +/* first or middle sibling, expandable, hover */ +.ygtvtph { + width:16px; height:22px; + cursor:pointer ; + background: url(tph.gif) 0 0 no-repeat; +} + +/* last sibling, no children */ +.ygtvln { + width:16px; height:22px; + background: url(ln.gif) 0 0 no-repeat; +} + +/* Last sibling, collapsable */ +.ygtvlm { + width:16px; height:22px; + cursor:pointer ; + background: url(lm.gif) 0 0 no-repeat; +} + +/* Last sibling, collapsable, hover */ +.ygtvlmh { + width:16px; height:22px; + cursor:pointer ; + background: url(lmh.gif) 0 0 no-repeat; +} + +/* Last sibling, expandable */ +.ygtvlp { + width:16px; height:22px; + cursor:pointer ; + background: url(lp.gif) 0 0 no-repeat; +} + +/* Last sibling, expandable, hover */ +.ygtvlph { + width:16px; height:22px; cursor:pointer ; + background: url(lph.gif) 0 0 no-repeat; +} + +/* Loading icon */ +.ygtvloading { + width:16px; height:22px; + background: url(loading.gif) 0 0 no-repeat; +} + +/* the style for the empty cells that are used for rendering the depth + * of the node */ +.ygtvdepthcell { + width:16px; height:22px; + background: url(vline.gif) 0 0 no-repeat; +} + +.ygtvblankdepthcell { width:16px; height:22px; } + +/* the style of the div around each node */ +.ygtvitem { } + +/* the style of the div around each node's collection of children */ +.ygtvchildren { } +* html .ygtvchildren { height:2%; } + +/* the style of the text label in ygTextNode */ +.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { + margin-left:2px; + text-decoration: none; +} + +.ygtvspacer { height: 10px; width: 10px; margin: 2px; } diff --git a/interface/ispconfig/interface/js/yui/treeview/assets/vline.gif b/interface/ispconfig/interface/js/yui/treeview/assets/vline.gif new file mode 100644 index 0000000..1fb0de8 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/assets/vline.gif Binary files differ diff --git a/interface/ispconfig/interface/js/yui/treeview/treeview-debug.js b/interface/ispconfig/interface/js/yui/treeview/treeview-debug.js new file mode 100644 index 0000000..1259a97 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/treeview-debug.js @@ -0,0 +1,2287 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The treeview widget is a generic tree building tool. + * @module treeview + * @title TreeView Widget + * @requires yahoo, event + * @optional animation + * @namespace YAHOO.widget + */ + +/** + * Contains the tree view state data and the root node. + * + * @class TreeView + * @uses YAHOO.util.EventProvider + * @constructor + * @param {string|HTMLElement} id The id of the element, or the element + * itself that the tree will be inserted into. + */ +YAHOO.widget.TreeView = function(id) { + if (id) { this.init(id); } +}; + +YAHOO.widget.TreeView.prototype = { + + /** + * The id of tree container element + * @property id + * @type String + */ + id: null, + + /** + * The host element for this tree + * @property _el + * @private + */ + _el: null, + + /** + * Flat collection of all nodes in this tree. This is a sparse + * array, so the length property can't be relied upon for a + * node count for the tree. + * @property _nodes + * @type Node[] + * @private + */ + _nodes: null, + + /** + * We lock the tree control while waiting for the dynamic loader to return + * @property locked + * @type boolean + */ + locked: false, + + /** + * The animation to use for expanding children, if any + * @property _expandAnim + * @type string + * @private + */ + _expandAnim: null, + + /** + * The animation to use for collapsing children, if any + * @property _collapseAnim + * @type string + * @private + */ + _collapseAnim: null, + + /** + * The current number of animations that are executing + * @property _animCount + * @type int + * @private + */ + _animCount: 0, + + /** + * The maximum number of animations to run at one time. + * @property maxAnim + * @type int + */ + maxAnim: 2, + + /** + * Sets up the animation for expanding children + * @method setExpandAnim + * @param {string} type the type of animation (acceptable values defined + * in YAHOO.widget.TVAnim) + */ + setExpandAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._expandAnim = type; + } + }, + + /** + * Sets up the animation for collapsing children + * @method setCollapseAnim + * @param {string} the type of animation (acceptable values defined in + * YAHOO.widget.TVAnim) + */ + setCollapseAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._collapseAnim = type; + } + }, + + /** + * Perform the expand animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateExpand + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateExpand: function(el, node) { + this.logger.log("animating expand"); + + if (this._expandAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._expandAnim, el, + function() { tree.expandComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "expand" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Perform the collapse animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateCollapse + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateCollapse: function(el, node) { + this.logger.log("animating collapse"); + + if (this._collapseAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._collapseAnim, el, + function() { tree.collapseComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "collapse" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Function executed when the expand animation completes + * @method expandComplete + */ + expandComplete: function(node) { + this.logger.log("expand complete: " + this.id); + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "expand" + }); + // this.locked = false; + }, + + /** + * Function executed when the collapse animation completes + * @method collapseComplete + */ + collapseComplete: function(node) { + this.logger.log("collapse complete: " + this.id); + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "collapse" + }); + // this.locked = false; + }, + + /** + * Initializes the tree + * @method init + * @parm {string|HTMLElement} id the id of the element that will hold the tree + * @private + */ + init: function(id) { + + this.id = id; + + if ("string" !== typeof id) { + this._el = id; + this.id = this.generateId(id); + } + + /** + * When animation is enabled, this event fires when the animation + * starts + * @event animStart + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animStart", this); + + /** + * When animation is enabled, this event fires when the animation + * completes + * @event animComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animComplete", this); + + /** + * Fires when a node is going to be collapsed. Return false to stop + * the collapse. + * @event collapse + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is collapsing + */ + this.createEvent("collapse", this); + + /** + * Fires after a node is successfully collapsed. This event will not fire + * if the "collapse" event was cancelled. + * @event collapseComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that was collapsed + */ + this.createEvent("collapseComplete", this); + + /** + * Fires when a node is going to be expanded. Return false to stop + * the collapse. + * @event expand + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding + */ + this.createEvent("expand", this); + + /** + * Fires after a node is successfully expanded. This event will not fire + * if the "expand" event was cancelled. + * @event expandComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that was expanded + */ + this.createEvent("expandComplete", this); + + this._nodes = []; + + // store a global reference + YAHOO.widget.TreeView.trees[this.id] = this; + + // Set up the root node + this.root = new YAHOO.widget.RootNode(this); + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + this.logger.log("tree init: " + this.id); + + //YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true); + YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true); + }, + + + //handleAvailable: function() { + //var Event = YAHOO.util.Event; + //Event.on(this.id, + //}, + + /** + * Renders the tree boilerplate and visible nodes + * @method draw + */ + draw: function() { + var html = this.root.getHtml(); + this.getEl().innerHTML = html; + this.firstDraw = false; + }, + + /** + * Returns the tree's host element + * @method getEl + * @return {HTMLElement} the host element + */ + getEl: function() { + if (! this._el) { + this._el = document.getElementById(this.id); + } + return this._el; + }, + + /** + * Nodes register themselves with the tree instance when they are created. + * @method regNode + * @param node {Node} the node to register + * @private + */ + regNode: function(node) { + this._nodes[node.index] = node; + }, + + /** + * Returns the root node of this tree + * @method getRoot + * @return {Node} the root node + */ + getRoot: function() { + return this.root; + }, + + /** + * Configures this tree to dynamically load all child data + * @method setDynamicLoad + * @param {function} fnDataLoader the function that will be called to get the data + * @param iconMode {int} configures the icon that is displayed when a dynamic + * load node is expanded the first time without children. By default, the + * "collapse" icon will be used. If set to 1, the leaf node icon will be + * displayed. + */ + setDynamicLoad: function(fnDataLoader, iconMode) { + this.root.setDynamicLoad(fnDataLoader, iconMode); + }, + + /** + * Expands all child nodes. Note: this conflicts with the "multiExpand" + * node property. If expand all is called in a tree with nodes that + * do not allow multiple siblings to be displayed, only the last sibling + * will be expanded. + * @method expandAll + */ + expandAll: function() { + if (!this.locked) { + this.root.expandAll(); + } + }, + + /** + * Collapses all expanded child nodes in the entire tree. + * @method collapseAll + */ + collapseAll: function() { + if (!this.locked) { + this.root.collapseAll(); + } + }, + + /** + * Returns a node in the tree that has the specified index (this index + * is created internally, so this function probably will only be used + * in html generated for a given node.) + * @method getNodeByIndex + * @param {int} nodeIndex the index of the node wanted + * @return {Node} the node with index=nodeIndex, null if no match + */ + getNodeByIndex: function(nodeIndex) { + var n = this._nodes[nodeIndex]; + return (n) ? n : null; + }, + + /** + * Returns a node that has a matching property and value in the data + * object that was passed into its constructor. + * @method getNodeByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Node} the matching node, null if no match + */ + getNodeByProperty: function(property, value) { + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + return n; + } + } + + return null; + }, + + /** + * Returns a collection of nodes that have a matching property + * and value in the data object that was passed into its constructor. + * @method getNodesByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Array} the matching collection of nodes, null if no match + */ + getNodesByProperty: function(property, value) { + var values = []; + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + values.push(n); + } + } + + return (values.length) ? values : null; + }, + + /** + * Removes the node and its children, and optionally refreshes the + * branch of the tree that was affected. + * @method removeNode + * @param {Node} The node to remove + * @param {boolean} autoRefresh automatically refreshes branch if true + * @return {boolean} False is there was a problem, true otherwise. + */ + removeNode: function(node, autoRefresh) { + + // Don't delete the root node + if (node.isRoot()) { + return false; + } + + // Get the branch that we may need to refresh + var p = node.parent; + if (p.parent) { + p = p.parent; + } + + // Delete the node and its children + this._deleteNode(node); + + // Refresh the parent of the parent + if (autoRefresh && p && p.childrenRendered) { + p.refresh(); + } + + return true; + }, + + /** + * Deletes this nodes child collection, recursively. Also collapses + * the node, and resets the dynamic load flag. The primary use for + * this method is to purge a node and allow it to fetch its data + * dynamically again. + * @method removeChildren + * @param {Node} node the node to purge + */ + removeChildren: function(node) { + this.logger.log("Removing children for " + node); + while (node.children.length) { + this._deleteNode(node.children[0]); + } + + node.childrenRendered = false; + node.dynamicLoadComplete = false; + if (node.expanded) { + node.collapse(); + } else { + node.updateIcon(); + } + }, + + /** + * Deletes the node and recurses children + * @method _deleteNode + * @private + */ + _deleteNode: function(node) { + // Remove all the child nodes first + this.removeChildren(node); + + // Remove the node from the tree + this.popNode(node); + }, + + /** + * Removes the node from the tree, preserving the child collection + * to make it possible to insert the branch into another part of the + * tree, or another tree. + * @method popNode + * @param {Node} the node to remove + */ + popNode: function(node) { + var p = node.parent; + + // Update the parent's collection of children + var a = []; + + for (var i=0, len=p.children.length;i<len;++i) { + if (p.children[i] != node) { + a[a.length] = p.children[i]; + } + } + + p.children = a; + + // reset the childrenRendered flag for the parent + p.childrenRendered = false; + + // Update the sibling relationship + if (node.previousSibling) { + node.previousSibling.nextSibling = node.nextSibling; + } + + if (node.nextSibling) { + node.nextSibling.previousSibling = node.previousSibling; + } + + node.parent = null; + node.previousSibling = null; + node.nextSibling = null; + node.tree = null; + + // Update the tree's node collection + delete this._nodes[node.index]; + }, + + + /** + * TreeView instance toString + * @method toString + * @return {string} string representation of the tree + */ + toString: function() { + return "TreeView " + this.id; + }, + + /** + * Generates an unique id for an element if it doesn't yet have one + * @method generateId + * @private + */ + generateId: function(el) { + var id = el.id; + + if (!id) { + id = "yui-tv-auto-id-" + YAHOO.widget.TreeView.counter; + ++YAHOO.widget.TreeView.counter; + } + + return id; + }, + + /** + * Abstract method that is executed when a node is expanded + * @method onExpand + * @param node {Node} the node that was expanded + * @deprecated use treeobj.subscribe("expand") instead + */ + onExpand: function(node) { }, + + /** + * Abstract method that is executed when a node is collapsed. + * @method onCollapse + * @param node {Node} the node that was collapsed. + * @deprecated use treeobj.subscribe("collapse") instead + */ + onCollapse: function(node) { } + +}; + +YAHOO.augment(YAHOO.widget.TreeView, YAHOO.util.EventProvider); + +/** + * Running count of all nodes created in all trees. This is + * used to provide unique identifies for all nodes. Deleting + * nodes does not change the nodeCount. + * @property YAHOO.widget.TreeView.nodeCount + * @type int + * @static + */ +YAHOO.widget.TreeView.nodeCount = 0; + +/** + * Global cache of tree instances + * @property YAHOO.widget.TreeView.trees + * @type Array + * @static + * @private + */ +YAHOO.widget.TreeView.trees = []; + +/** + * Counter for generating a new unique element id + * @property YAHOO.widget.TreeView.counter + * @static + * @private + */ +YAHOO.widget.TreeView.counter = 0; + +/** + * Global method for getting a tree by its id. Used in the generated + * tree html. + * @method YAHOO.widget.TreeView.getTree + * @param treeId {String} the id of the tree instance + * @return {TreeView} the tree instance requested, null if not found. + * @static + */ +YAHOO.widget.TreeView.getTree = function(treeId) { + var t = YAHOO.widget.TreeView.trees[treeId]; + return (t) ? t : null; +}; + + +/** + * Global method for getting a node by its id. Used in the generated + * tree html. + * @method YAHOO.widget.TreeView.getNode + * @param treeId {String} the id of the tree instance + * @param nodeIndex {String} the index of the node to return + * @return {Node} the node instance requested, null if not found + * @static + */ +YAHOO.widget.TreeView.getNode = function(treeId, nodeIndex) { + var t = YAHOO.widget.TreeView.getTree(treeId); + return (t) ? t.getNodeByIndex(nodeIndex) : null; +}; + +/** + * Add a DOM event + * @method YAHOO.widget.TreeView.addHandler + * @param el the elment to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @static + */ +YAHOO.widget.TreeView.addHandler = function (el, sType, fn) { + if (el.addEventListener) { + el.addEventListener(sType, fn, false); + } else if (el.attachEvent) { + el.attachEvent("on" + sType, fn); + } +}; + +/** + * Remove a DOM event + * @method YAHOO.widget.TreeView.removeHandler + * @param el the elment to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @static + */ + +YAHOO.widget.TreeView.removeHandler = function (el, sType, fn) { + if (el.removeEventListener) { + el.removeEventListener(sType, fn, false); + } else if (el.detachEvent) { + el.detachEvent("on" + sType, fn); + } +}; + +/** + * Attempts to preload the images defined in the styles used to draw the tree by + * rendering off-screen elements that use the styles. + * @method YAHOO.widget.TreeView.preload + * @param {string} prefix the prefix to use to generate the names of the + * images to preload, default is ygtv + * @static + */ +YAHOO.widget.TreeView.preload = function(prefix) { + prefix = prefix || "ygtv"; + var styles = ["tn","tm","tmh","tp","tph","ln","lm","lmh","lp","lph","loading"]; + + var sb = []; + + for (var i = 0; i < styles.length; ++i) { + sb[sb.length] = '<span class="' + prefix + styles[i] + '"> </span>'; + } + + var f = document.createElement("div"); + var s = f.style; + s.position = "absolute"; + s.top = "-1000px"; + s.left = "-1000px"; + f.innerHTML = sb.join(""); + + document.body.appendChild(f); + + YAHOO.widget.TreeView.removeHandler(window, + "load", YAHOO.widget.TreeView.preload); + +}; + +YAHOO.widget.TreeView.addHandler(window, + "load", YAHOO.widget.TreeView.preload); + +/** + * The base class for all tree nodes. The node's presentation and behavior in + * response to mouse events is handled in Node subclasses. + * @namespace YAHOO.widget + * @class Node + * @uses YAHOO.util.EventProvider + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @constructor + */ +YAHOO.widget.Node = function(oData, oParent, expanded) { + if (oData) { this.init(oData, oParent, expanded); } +}; + +YAHOO.widget.Node.prototype = { + + /** + * The index for this instance obtained from global counter in YAHOO.widget.TreeView. + * @property index + * @type int + */ + index: 0, + + /** + * This node's child node collection. + * @property children + * @type Node[] + */ + children: null, + + /** + * Tree instance this node is part of + * @property tree + * @type TreeView + */ + tree: null, + + /** + * The data linked to this node. This can be any object or primitive + * value, and the data can be used in getNodeHtml(). + * @property data + * @type object + */ + data: null, + + /** + * Parent node + * @property parent + * @type Node + */ + parent: null, + + /** + * The depth of this node. We start at -1 for the root node. + * @property depth + * @type int + */ + depth: -1, + + /** + * The href for the node's label. If one is not specified, the href will + * be set so that it toggles the node. + * @property href + * @type string + */ + href: null, + + /** + * The label href target, defaults to current window + * @property target + * @type string + */ + target: "_self", + + /** + * The node's expanded/collapsed state + * @property expanded + * @type boolean + */ + expanded: false, + + /** + * Can multiple children be expanded at once? + * @property multiExpand + * @type boolean + */ + multiExpand: true, + + /** + * Should we render children for a collapsed node? It is possible that the + * implementer will want to render the hidden data... @todo verify that we + * need this, and implement it if we do. + * @property renderHidden + * @type boolean + */ + renderHidden: false, + + /** + * This flag is set to true when the html is generated for this node's + * children, and set to false when new children are added. + * @property childrenRendered + * @type boolean + */ + childrenRendered: false, + + /** + * Dynamically loaded nodes only fetch the data the first time they are + * expanded. This flag is set to true once the data has been fetched. + * @property dynamicLoadComplete + * @type boolean + */ + dynamicLoadComplete: false, + + /** + * This node's previous sibling + * @property previousSibling + * @type Node + */ + previousSibling: null, + + /** + * This node's next sibling + * @property nextSibling + * @type Node + */ + nextSibling: null, + + /** + * We can set the node up to call an external method to get the child + * data dynamically. + * @property _dynLoad + * @type boolean + * @private + */ + _dynLoad: false, + + /** + * Function to execute when we need to get this node's child data. + * @property dataLoader + * @type function + */ + dataLoader: null, + + /** + * This is true for dynamically loading nodes while waiting for the + * callback to return. + * @property isLoading + * @type boolean + */ + isLoading: false, + + /** + * The toggle/branch icon will not show if this is set to false. This + * could be useful if the implementer wants to have the child contain + * extra info about the parent, rather than an actual node. + * @property hasIcon + * @type boolean + */ + hasIcon: true, + + /** + * Used to configure what happens when a dynamic load node is expanded + * and we discover that it does not have children. By default, it is + * treated as if it still could have children (plus/minus icon). Set + * iconMode to have it display like a leaf node instead. + * @property iconMode + * @type int + */ + iconMode: 0, + + /** + * Specifies whether or not the content area of the node should be allowed + * to wrap. + * @property nowrap + * @type boolean + * @default true + */ + nowrap: false, + + /** + * The node type + * @property _type + * @private + */ + _type: "Node", + + /* + spacerPath: "http://us.i1.yimg.com/us.yimg.com/i/space.gif", + expandedText: "Expanded", + collapsedText: "Collapsed", + loadingText: "Loading", + */ + + /** + * Initializes this node, gets some of the properties from the parent + * @method init + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ + init: function(oData, oParent, expanded) { + + this.data = oData; + this.children = []; + this.index = YAHOO.widget.TreeView.nodeCount; + ++YAHOO.widget.TreeView.nodeCount; + this.expanded = expanded; + this.logger = new YAHOO.widget.LogWriter(this.toString()); + + /** + * The parentChange event is fired when a parent element is applied + * to the node. This is useful if you need to apply tree-level + * properties to a tree that need to happen if a node is moved from + * one tree to another. + * + * @event parentChange + * @type CustomEvent + */ + this.createEvent("parentChange", this); + + // oParent should never be null except when we create the root node. + if (oParent) { + oParent.appendChild(this); + } + }, + + /** + * Certain properties for the node cannot be set until the parent + * is known. This is called after the node is inserted into a tree. + * the parent is also applied to this node's children in order to + * make it possible to move a branch from one tree to another. + * @method applyParent + * @param {Node} parentNode this node's parent node + * @return {boolean} true if the application was successful + */ + applyParent: function(parentNode) { + if (!parentNode) { + return false; + } + + this.tree = parentNode.tree; + this.parent = parentNode; + this.depth = parentNode.depth + 1; + + if (!this.href) { + this.href = "javascript:" + this.getToggleLink(); + } + + // @todo why was this put here. This causes new nodes added at the + // root level to lose the menu behavior. + // if (! this.multiExpand) { + // this.multiExpand = parentNode.multiExpand; + // } + + this.tree.regNode(this); + parentNode.childrenRendered = false; + + // cascade update existing children + for (var i=0, len=this.children.length;i<len;++i) { + this.children[i].applyParent(this); + } + + this.fireEvent("parentChange"); + + return true; + }, + + /** + * Appends a node to the child collection. + * @method appendChild + * @param childNode {Node} the new node + * @return {Node} the child node + * @private + */ + appendChild: function(childNode) { + if (this.hasChildren()) { + var sib = this.children[this.children.length - 1]; + sib.nextSibling = childNode; + childNode.previousSibling = sib; + } + this.children[this.children.length] = childNode; + childNode.applyParent(this); + + return childNode; + }, + + /** + * Appends this node to the supplied node's child collection + * @method appendTo + * @param parentNode {Node} the node to append to. + * @return {Node} The appended node + */ + appendTo: function(parentNode) { + return parentNode.appendChild(this); + }, + + /** + * Inserts this node before this supplied node + * @method insertBefore + * @param node {Node} the node to insert this node before + * @return {Node} the inserted node + */ + insertBefore: function(node) { + this.logger.log("insertBefore: " + node); + var p = node.parent; + if (p) { + + if (this.tree) { + this.tree.popNode(this); + } + + var refIndex = node.isChildOf(p); + //this.logger.log(refIndex); + p.children.splice(refIndex, 0, this); + if (node.previousSibling) { + node.previousSibling.nextSibling = this; + } + this.previousSibling = node.previousSibling; + this.nextSibling = node; + node.previousSibling = this; + + this.applyParent(p); + } + + return this; + }, + + /** + * Inserts this node after the supplied node + * @method insertAfter + * @param node {Node} the node to insert after + * @return {Node} the inserted node + */ + insertAfter: function(node) { + this.logger.log("insertAfter: " + node); + var p = node.parent; + if (p) { + + if (this.tree) { + this.tree.popNode(this); + } + + var refIndex = node.isChildOf(p); + this.logger.log(refIndex); + + if (!node.nextSibling) { + this.nextSibling = null; + return this.appendTo(p); + } + + p.children.splice(refIndex + 1, 0, this); + + node.nextSibling.previousSibling = this; + this.previousSibling = node; + this.nextSibling = node.nextSibling; + node.nextSibling = this; + + this.applyParent(p); + } + + return this; + }, + + /** + * Returns true if the Node is a child of supplied Node + * @method isChildOf + * @param parentNode {Node} the Node to check + * @return {boolean} The node index if this Node is a child of + * supplied Node, else -1. + * @private + */ + isChildOf: function(parentNode) { + if (parentNode && parentNode.children) { + for (var i=0, len=parentNode.children.length; i<len ; ++i) { + if (parentNode.children[i] === this) { + return i; + } + } + } + + return -1; + }, + + /** + * Returns a node array of this node's siblings, null if none. + * @method getSiblings + * @return Node[] + */ + getSiblings: function() { + return this.parent.children; + }, + + /** + * Shows this node's children + * @method showChildren + */ + showChildren: function() { + if (!this.tree.animateExpand(this.getChildrenEl(), this)) { + if (this.hasChildren()) { + this.getChildrenEl().style.display = ""; + } + } + }, + + /** + * Hides this node's children + * @method hideChildren + */ + hideChildren: function() { + this.logger.log("hiding " + this.index); + + if (!this.tree.animateCollapse(this.getChildrenEl(), this)) { + this.getChildrenEl().style.display = "none"; + } + }, + + /** + * Returns the id for this node's container div + * @method getElId + * @return {string} the element id + */ + getElId: function() { + return "ygtv" + this.index; + }, + + /** + * Returns the id for this node's children div + * @method getChildrenElId + * @return {string} the element id for this node's children div + */ + getChildrenElId: function() { + return "ygtvc" + this.index; + }, + + /** + * Returns the id for this node's toggle element + * @method getToggleElId + * @return {string} the toggel element id + */ + getToggleElId: function() { + return "ygtvt" + this.index; + }, + + + /* + * Returns the id for this node's spacer image. The spacer is positioned + * over the toggle and provides feedback for screen readers. + * @method getSpacerId + * @return {string} the id for the spacer image + */ + /* + getSpacerId: function() { + return "ygtvspacer" + this.index; + }, + */ + + /** + * Returns this node's container html element + * @method getEl + * @return {HTMLElement} the container html element + */ + getEl: function() { + return document.getElementById(this.getElId()); + }, + + /** + * Returns the div that was generated for this node's children + * @method getChildrenEl + * @return {HTMLElement} this node's children div + */ + getChildrenEl: function() { + return document.getElementById(this.getChildrenElId()); + }, + + /** + * Returns the element that is being used for this node's toggle. + * @method getToggleEl + * @return {HTMLElement} this node's toggle html element + */ + getToggleEl: function() { + return document.getElementById(this.getToggleElId()); + }, + + /* + * Returns the element that is being used for this node's spacer. + * @method getSpacer + * @return {HTMLElement} this node's spacer html element + */ + /* + getSpacer: function() { + return document.getElementById( this.getSpacerId() ) || {}; + }, + */ + + /* + getStateText: function() { + if (this.isLoading) { + return this.loadingText; + } else if (this.hasChildren(true)) { + if (this.expanded) { + return this.expandedText; + } else { + return this.collapsedText; + } + } else { + return ""; + } + }, + */ + + /** + * Generates the link that will invoke this node's toggle method + * @method getToggleLink + * @return {string} the javascript url for toggling this node + */ + getToggleLink: function() { + return "YAHOO.widget.TreeView.getNode(\'" + this.tree.id + "\'," + + this.index + ").toggle()"; + }, + + /** + * Hides this nodes children (creating them if necessary), changes the + * @method collapse + * toggle style. + */ + collapse: function() { + // Only collapse if currently expanded + if (!this.expanded) { return; } + + // fire the collapse event handler + var ret = this.tree.onCollapse(this); + + if (false === ret) { + this.logger.log("Collapse was stopped by the abstract onCollapse"); + return; + } + + ret = this.tree.fireEvent("collapse", this); + + if (false === ret) { + this.logger.log("Collapse was stopped by a custom event handler"); + return; + } + + + if (!this.getEl()) { + this.expanded = false; + } else { + // hide the child div + this.hideChildren(); + this.expanded = false; + + this.updateIcon(); + } + + // this.getSpacer().title = this.getStateText(); + + ret = this.tree.fireEvent("collapseComplete", this); + + }, + + /** + * Shows this nodes children (creating them if necessary), changes the + * toggle style, and collapses its siblings if multiExpand is not set. + * @method expand + */ + expand: function() { + // Only expand if currently collapsed. + if (this.expanded) { return; } + + // fire the expand event handler + var ret = this.tree.onExpand(this); + + if (false === ret) { + this.logger.log("Expand was stopped by the abstract onExpand"); + return; + } + + ret = this.tree.fireEvent("expand", this); + + if (false === ret) { + this.logger.log("Expand was stopped by the custom event handler"); + return; + } + + if (!this.getEl()) { + this.expanded = true; + return; + } + + if (! this.childrenRendered) { + this.logger.log("children not rendered yet"); + this.getChildrenEl().innerHTML = this.renderChildren(); + } else { + this.logger.log("CHILDREN RENDERED"); + } + + this.expanded = true; + + this.updateIcon(); + + // this.getSpacer().title = this.getStateText(); + + // We do an extra check for children here because the lazy + // load feature can expose nodes that have no children. + + // if (!this.hasChildren()) { + if (this.isLoading) { + this.expanded = false; + return; + } + + if (! this.multiExpand) { + var sibs = this.getSiblings(); + for (var i=0; i<sibs.length; ++i) { + if (sibs[i] != this && sibs[i].expanded) { + sibs[i].collapse(); + } + } + } + + this.showChildren(); + + ret = this.tree.fireEvent("expandComplete", this); + }, + + updateIcon: function() { + if (this.hasIcon) { + var el = this.getToggleEl(); + if (el) { + el.className = this.getStyle(); + } + } + }, + + /** + * Returns the css style name for the toggle + * @method getStyle + * @return {string} the css class for this node's toggle + */ + getStyle: function() { + // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded); + if (this.isLoading) { + this.logger.log("returning the loading icon"); + return "ygtvloading"; + } else { + // location top or bottom, middle nodes also get the top style + var loc = (this.nextSibling) ? "t" : "l"; + + // type p=plus(expand), m=minus(collapase), n=none(no children) + var type = "n"; + if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) { + // if (this.hasChildren(true)) { + type = (this.expanded) ? "m" : "p"; + } + + // this.logger.log("ygtv" + loc + type); + return "ygtv" + loc + type; + } + }, + + /** + * Returns the hover style for the icon + * @return {string} the css class hover state + * @method getHoverStyle + */ + getHoverStyle: function() { + var s = this.getStyle(); + if (this.hasChildren(true) && !this.isLoading) { + s += "h"; + } + return s; + }, + + /** + * Recursively expands all of this node's children. + * @method expandAll + */ + expandAll: function() { + for (var i=0;i<this.children.length;++i) { + var c = this.children[i]; + if (c.isDynamic()) { + alert("Not supported (lazy load + expand all)"); + break; + } else if (! c.multiExpand) { + alert("Not supported (no multi-expand + expand all)"); + break; + } else { + c.expand(); + c.expandAll(); + } + } + }, + + /** + * Recursively collapses all of this node's children. + * @method collapseAll + */ + collapseAll: function() { + for (var i=0;i<this.children.length;++i) { + this.children[i].collapse(); + this.children[i].collapseAll(); + } + }, + + /** + * Configures this node for dynamically obtaining the child data + * when the node is first expanded. Calling it without the callback + * will turn off dynamic load for the node. + * @method setDynamicLoad + * @param fmDataLoader {function} the function that will be used to get the data. + * @param iconMode {int} configures the icon that is displayed when a dynamic + * load node is expanded the first time without children. By default, the + * "collapse" icon will be used. If set to 1, the leaf node icon will be + * displayed. + */ + setDynamicLoad: function(fnDataLoader, iconMode) { + if (fnDataLoader) { + this.dataLoader = fnDataLoader; + this._dynLoad = true; + } else { + this.dataLoader = null; + this._dynLoad = false; + } + + if (iconMode) { + this.iconMode = iconMode; + } + }, + + /** + * Evaluates if this node is the root node of the tree + * @method isRoot + * @return {boolean} true if this is the root node + */ + isRoot: function() { + return (this == this.tree.root); + }, + + /** + * Evaluates if this node's children should be loaded dynamically. Looks for + * the property both in this instance and the root node. If the tree is + * defined to load all children dynamically, the data callback function is + * defined in the root node + * @method isDynamic + * @return {boolean} true if this node's children are to be loaded dynamically + */ + isDynamic: function() { + var lazy = (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad)); + // this.logger.log("isDynamic: " + lazy); + return lazy; + }, + + /** + * Returns the current icon mode. This refers to the way childless dynamic + * load nodes appear. + * @method getIconMode + * @return {int} 0 for collapse style, 1 for leaf node style + */ + getIconMode: function() { + return (this.iconMode || this.tree.root.iconMode); + }, + + /** + * Checks if this node has children. If this node is lazy-loading and the + * children have not been rendered, we do not know whether or not there + * are actual children. In most cases, we need to assume that there are + * children (for instance, the toggle needs to show the expandable + * presentation state). In other times we want to know if there are rendered + * children. For the latter, "checkForLazyLoad" should be false. + * @method hasChildren + * @param checkForLazyLoad {boolean} should we check for unloaded children? + * @return {boolean} true if this has children or if it might and we are + * checking for this condition. + */ + hasChildren: function(checkForLazyLoad) { + return ( this.children.length > 0 || + (checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) ); + }, + + /** + * Expands if node is collapsed, collapses otherwise. + * @method toggle + */ + toggle: function() { + if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) { + if (this.expanded) { this.collapse(); } else { this.expand(); } + } + }, + + /** + * Returns the markup for this node and its children. + * @method getHtml + * @return {string} the markup for this node and its expanded children. + */ + getHtml: function() { + + this.childrenRendered = false; + + var sb = []; + sb[sb.length] = '<div class="ygtvitem" id="' + this.getElId() + '">'; + sb[sb.length] = this.getNodeHtml(); + sb[sb.length] = this.getChildrenHtml(); + sb[sb.length] = '</div>'; + return sb.join(""); + }, + + /** + * Called when first rendering the tree. We always build the div that will + * contain this nodes children, but we don't render the children themselves + * unless this node is expanded. + * @method getChildrenHtml + * @return {string} the children container div html and any expanded children + * @private + */ + getChildrenHtml: function() { + + var sb = []; + sb[sb.length] = '<div class="ygtvchildren"'; + sb[sb.length] = ' id="' + this.getChildrenElId() + '"'; + if (!this.expanded) { + sb[sb.length] = ' style="display:none;"'; + } + sb[sb.length] = '>'; + + // Don't render the actual child node HTML unless this node is expanded. + if ( (this.hasChildren(true) && this.expanded) || + (this.renderHidden && !this.isDynamic()) ) { + sb[sb.length] = this.renderChildren(); + } + + sb[sb.length] = '</div>'; + + return sb.join(""); + }, + + /** + * Generates the markup for the child nodes. This is not done until the node + * is expanded. + * @method renderChildren + * @return {string} the html for this node's children + * @private + */ + renderChildren: function() { + + this.logger.log("rendering children for " + this.index); + + var node = this; + + if (this.isDynamic() && !this.dynamicLoadComplete) { + this.isLoading = true; + this.tree.locked = true; + + if (this.dataLoader) { + this.logger.log("Using dynamic loader defined for this node"); + + setTimeout( + function() { + node.dataLoader(node, + function() { + node.loadComplete(); + }); + }, 10); + + } else if (this.tree.root.dataLoader) { + this.logger.log("Using the tree-level dynamic loader"); + + setTimeout( + function() { + node.tree.root.dataLoader(node, + function() { + node.loadComplete(); + }); + }, 10); + + } else { + this.logger.log("no loader found"); + return "Error: data loader not found or not specified."; + } + + return ""; + + } else { + return this.completeRender(); + } + }, + + /** + * Called when we know we have all the child data. + * @method completeRender + * @return {string} children html + */ + completeRender: function() { + this.logger.log("completeRender: " + this.index + ", # of children: " + this.children.length); + var sb = []; + + for (var i=0; i < this.children.length; ++i) { + // this.children[i].childrenRendered = false; + sb[sb.length] = this.children[i].getHtml(); + } + + this.childrenRendered = true; + + return sb.join(""); + }, + + /** + * Load complete is the callback function we pass to the data provider + * in dynamic load situations. + * @method loadComplete + */ + loadComplete: function() { + this.logger.log("loadComplete: " + this.index); + this.getChildrenEl().innerHTML = this.completeRender(); + this.dynamicLoadComplete = true; + this.isLoading = false; + this.expand(); + this.tree.locked = false; + }, + + /** + * Returns this node's ancestor at the specified depth. + * @method getAncestor + * @param {int} depth the depth of the ancestor. + * @return {Node} the ancestor + */ + getAncestor: function(depth) { + if (depth >= this.depth || depth < 0) { + this.logger.log("illegal getAncestor depth: " + depth); + return null; + } + + var p = this.parent; + + while (p.depth > depth) { + p = p.parent; + } + + return p; + }, + + /** + * Returns the css class for the spacer at the specified depth for + * this node. If this node's ancestor at the specified depth + * has a next sibling the presentation is different than if it + * does not have a next sibling + * @method getDepthStyle + * @param {int} depth the depth of the ancestor. + * @return {string} the css class for the spacer + */ + getDepthStyle: function(depth) { + return (this.getAncestor(depth).nextSibling) ? + "ygtvdepthcell" : "ygtvblankdepthcell"; + }, + + /** + * Get the markup for the node. This is designed to be overrided so that we can + * support different types of nodes. + * @method getNodeHtml + * @return {string} The HTML that will render this node. + */ + getNodeHtml: function() { + this.logger.log("Generating html"); + return ""; + }, + + /** + * Regenerates the html for this node and its children. To be used when the + * node is expanded and new children have been added. + * @method refresh + */ + refresh: function() { + // this.loadComplete(); + this.getChildrenEl().innerHTML = this.completeRender(); + + if (this.hasIcon) { + var el = this.getToggleEl(); + if (el) { + el.className = this.getStyle(); + } + } + }, + + /** + * Node toString + * @method toString + * @return {string} string representation of the node + */ + toString: function() { + return "Node (" + this.index + ")"; + } + +}; + +YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider); + +/** + * The default node presentation. The first parameter should be + * either a string that will be used as the node's label, or an object + * that has a string propery called label. By default, the clicking the + * label will toggle the expanded/collapsed state of the node. By + * changing the href property of the instance, this behavior can be + * changed so that the label will go to the specified href. + * @namespace YAHOO.widget + * @class TextNode + * @extends YAHOO.widget.Node + * @constructor + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ +YAHOO.widget.TextNode = function(oData, oParent, expanded) { + + if (oData) { + this.init(oData, oParent, expanded); + this.setUpLabel(oData); + } + + this.logger = new YAHOO.widget.LogWriter(this.toString()); +}; + +YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, { + + /** + * The CSS class for the label href. Defaults to ygtvlabel, but can be + * overridden to provide a custom presentation for a specific node. + * @property labelStyle + * @type string + */ + labelStyle: "ygtvlabel", + + /** + * The derived element id of the label for this node + * @property labelElId + * @type string + */ + labelElId: null, + + /** + * The text for the label. It is assumed that the oData parameter will + * either be a string that will be used as the label, or an object that + * has a property called "label" that we will use. + * @property label + * @type string + */ + label: null, + + textNodeParentChange: function() { + + /** + * Custom event that is fired when the text node label is clicked. The + * custom event is defined on the tree instance, so there is a single + * event that handles all nodes in the tree. The node clicked is + * provided as an argument + * + * @event labelClick + * @for YAHOO.widget.TreeView + * @param {YAHOO.widget.Node} node the node clicked + */ + if (this.tree && !this.tree.hasEvent("labelClick")) { + this.tree.createEvent("labelClick", this.tree); + } + + }, + + /** + * Sets up the node label + * @method setUpLabel + * @param oData string containing the label, or an object with a label property + */ + setUpLabel: function(oData) { + + // set up the custom event on the tree + this.textNodeParentChange(); + this.subscribe("parentChange", this.textNodeParentChange); + + if (typeof oData == "string") { + oData = { label: oData }; + } + this.label = oData.label; + this.data.label = oData.label; + + // update the link + if (oData.href) { + this.href = oData.href; + } + + // set the target + if (oData.target) { + this.target = oData.target; + } + + if (oData.style) { + this.labelStyle = oData.style; + } + + this.labelElId = "ygtvlabelel" + this.index; + }, + + /** + * Returns the label element + * @for YAHOO.widget.TextNode + * @method getLabelEl + * @return {object} the element + */ + getLabelEl: function() { + return document.getElementById(this.labelElId); + }, + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + this.logger.log("Generating html"); + var sb = []; + + sb[sb.length] = '<table border="0" cellpadding="0" cellspacing="0">'; + sb[sb.length] = '<tr>'; + + for (var i=0;i<this.depth;++i) { + //sb[sb.length] = '<td><div class="' + this.getDepthStyle(i) + '"> </div></td>'; + //sb[sb.length] = '<td><div class="' + this.getDepthStyle(i) + '"></div></td>'; + sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>'; + } + + var getNode = 'YAHOO.widget.TreeView.getNode(\'' + + this.tree.id + '\',' + this.index + ')'; + + sb[sb.length] = '<td'; + // sb[sb.length] = ' onselectstart="return false"'; + sb[sb.length] = ' id="' + this.getToggleElId() + '"'; + sb[sb.length] = ' class="' + this.getStyle() + '"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="this.className='; + sb[sb.length] = getNode + '.getHoverStyle()"'; + sb[sb.length] = ' onmouseout="this.className='; + sb[sb.length] = getNode + '.getStyle()"'; + } + sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '">'; + + sb[sb.length] = '<div class="ygtvspacer">'; + + /* + sb[sb.length] = '<img id="' + this.getSpacerId() + '"'; + sb[sb.length] = ' alt=""'; + sb[sb.length] = ' tabindex=0'; + sb[sb.length] = ' src="' + this.spacerPath + '"'; + sb[sb.length] = ' title="' + this.getStateText() + '"'; + sb[sb.length] = ' class="ygtvspacer"'; + // sb[sb.length] = ' onkeypress="return ' + getNode + '".onKeyPress()"'; + sb[sb.length] = ' />'; + */ + + //sb[sb.length] = ' '; + + sb[sb.length] = '</div>'; + sb[sb.length] = '</td>'; + sb[sb.length] = '<td '; + sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : ''; + sb[sb.length] = ' >'; + sb[sb.length] = '<a'; + sb[sb.length] = ' id="' + this.labelElId + '"'; + sb[sb.length] = ' class="' + this.labelStyle + '"'; + sb[sb.length] = ' href="' + this.href + '"'; + sb[sb.length] = ' target="' + this.target + '"'; + sb[sb.length] = ' onclick="return ' + getNode + '.onLabelClick(' + getNode +')"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="document.getElementById(\''; + sb[sb.length] = this.getToggleElId() + '\').className='; + sb[sb.length] = getNode + '.getHoverStyle()"'; + sb[sb.length] = ' onmouseout="document.getElementById(\''; + sb[sb.length] = this.getToggleElId() + '\').className='; + sb[sb.length] = getNode + '.getStyle()"'; + } + sb[sb.length] = ' >'; + sb[sb.length] = this.label; + sb[sb.length] = '</a>'; + sb[sb.length] = '</td>'; + sb[sb.length] = '</tr>'; + sb[sb.length] = '</table>'; + + return sb.join(""); + }, + + + /** + * Executed when the label is clicked. Fires the labelClick custom event. + * @method onLabelClick + * @param me {Node} this node + * @scope the anchor tag clicked + * @return false to cancel the anchor click + */ + onLabelClick: function(me) { + me.logger.log("onLabelClick " + me.label); + return me.tree.fireEvent("labelClick", me); + //return true; + }, + + toString: function() { + return "TextNode (" + this.index + ") " + this.label; + } + +}); +/** + * A custom YAHOO.widget.Node that handles the unique nature of + * the virtual, presentationless root node. + * @namespace YAHOO.widget + * @class RootNode + * @extends YAHOO.widget.Node + * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to + * @constructor + */ +YAHOO.widget.RootNode = function(oTree) { + // Initialize the node with null params. The root node is a + // special case where the node has no presentation. So we have + // to alter the standard properties a bit. + this.init(null, null, true); + + /* + * For the root node, we get the tree reference from as a param + * to the constructor instead of from the parent element. + */ + this.tree = oTree; +}; + +YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, { + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + return ""; + }, + + toString: function() { + return "RootNode"; + }, + + loadComplete: function() { + this.tree.draw(); + }, + + collapse: function() {}, + expand: function() {} + +}); +/** + * This implementation takes either a string or object for the + * oData argument. If is it a string, we will use it for the display + * of this node (and it can contain any html code). If the parameter + * is an object, we look for a parameter called "html" that will be + * used for this node's display. + * @namespace YAHOO.widget + * @class HTMLNode + * @extends YAHOO.widget.Node + * @constructor + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @param hasIcon {boolean} specifies whether or not leaf nodes should + * have an icon + */ +YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) { + if (oData) { + this.init(oData, oParent, expanded); + this.initContent(oData, hasIcon); + } +}; + +YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, { + + /** + * The CSS class for the html content container. Defaults to ygtvhtml, but + * can be overridden to provide a custom presentation for a specific node. + * @property contentStyle + * @type string + */ + contentStyle: "ygtvhtml", + + /** + * The generated id that will contain the data passed in by the implementer. + * @property contentElId + * @type string + */ + contentElId: null, + + /** + * The HTML content to use for this node's display + * @property content + * @type string + */ + content: null, + + /** + * Sets up the node label + * @property initContent + * @param {object} An html string or object containing an html property + * @param {boolean} hasIcon determines if the node will be rendered with an + * icon or not + */ + initContent: function(oData, hasIcon) { + if (typeof oData == "string") { + oData = { html: oData }; + } + + this.html = oData.html; + this.contentElId = "ygtvcontentel" + this.index; + this.hasIcon = hasIcon; + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + }, + + /** + * Returns the outer html element for this node's content + * @method getContentEl + * @return {HTMLElement} the element + */ + getContentEl: function() { + return document.getElementById(this.contentElId); + }, + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + this.logger.log("Generating html"); + var sb = []; + + sb[sb.length] = '<table border="0" cellpadding="0" cellspacing="0">'; + sb[sb.length] = '<tr>'; + + for (var i=0;i<this.depth;++i) { + //sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"> </td>'; + sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>'; + } + + if (this.hasIcon) { + sb[sb.length] = '<td'; + sb[sb.length] = ' id="' + this.getToggleElId() + '"'; + sb[sb.length] = ' class="' + this.getStyle() + '"'; + sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="this.className='; + sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; + sb[sb.length] = this.tree.id + '\',' + this.index + ').getHoverStyle()"'; + sb[sb.length] = ' onmouseout="this.className='; + sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; + sb[sb.length] = this.tree.id + '\',' + this.index + ').getStyle()"'; + } + //sb[sb.length] = '> </td>'; + sb[sb.length] = '><div class="ygtvspacer"></div></td>'; + } + + sb[sb.length] = '<td'; + sb[sb.length] = ' id="' + this.contentElId + '"'; + sb[sb.length] = ' class="' + this.contentStyle + '"'; + sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : ''; + sb[sb.length] = ' >'; + sb[sb.length] = this.html; + sb[sb.length] = '</td>'; + sb[sb.length] = '</tr>'; + sb[sb.length] = '</table>'; + + return sb.join(""); + }, + + toString: function() { + return "HTMLNode (" + this.index + ")"; + } + +}); +/** + * A menu-specific implementation that differs from TextNode in that only + * one sibling can be expanded at a time. + * @namespace YAHOO.widget + * @class MenuNode + * @extends YAHOO.widget.TextNode + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @constructor + */ +YAHOO.widget.MenuNode = function(oData, oParent, expanded) { + if (oData) { + this.init(oData, oParent, expanded); + this.setUpLabel(oData); + } + + /* + * Menus usually allow only one branch to be open at a time. + */ + this.multiExpand = false; + + this.logger = new YAHOO.widget.LogWriter(this.toString()); + +}; + +YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, { + + toString: function() { + return "MenuNode (" + this.index + ") " + this.label; + } + +}); +/** + * A static factory class for tree view expand/collapse animations + * @class TVAnim + * @static + */ +YAHOO.widget.TVAnim = function() { + return { + /** + * Constant for the fade in animation + * @property FADE_IN + * @type string + * @static + */ + FADE_IN: "TVFadeIn", + + /** + * Constant for the fade out animation + * @property FADE_OUT + * @type string + * @static + */ + FADE_OUT: "TVFadeOut", + + /** + * Returns a ygAnim instance of the given type + * @method getAnim + * @param type {string} the type of animation + * @param el {HTMLElement} the element to element (probably the children div) + * @param callback {function} function to invoke when the animation is done. + * @return {YAHOO.util.Animation} the animation instance + * @static + */ + getAnim: function(type, el, callback) { + if (YAHOO.widget[type]) { + return new YAHOO.widget[type](el, callback); + } else { + return null; + } + }, + + /** + * Returns true if the specified animation class is available + * @method isValid + * @param type {string} the type of animation + * @return {boolean} true if valid, false if not + * @static + */ + isValid: function(type) { + return (YAHOO.widget[type]); + } + }; +} (); + +/** + * A 1/2 second fade-in animation. + * @class TVFadeIn + * @constructor + * @param el {HTMLElement} the element to animate + * @param callback {function} function to invoke when the animation is finished + */ +YAHOO.widget.TVFadeIn = function(el, callback) { + /** + * The element to animate + * @property el + * @type HTMLElement + */ + this.el = el; + + /** + * the callback to invoke when the animation is complete + * @property callback + * @type function + */ + this.callback = callback; + + this.logger = new YAHOO.widget.LogWriter(this.toString()); +}; + +YAHOO.widget.TVFadeIn.prototype = { + /** + * Performs the animation + * @method animate + */ + animate: function() { + var tvanim = this; + + var s = this.el.style; + s.opacity = 0.1; + s.filter = "alpha(opacity=10)"; + s.display = ""; + + var dur = 0.4; + var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur); + a.onComplete.subscribe( function() { tvanim.onComplete(); } ); + a.animate(); + }, + + /** + * Clean up and invoke callback + * @method onComplete + */ + onComplete: function() { + this.callback(); + }, + + /** + * toString + * @method toString + * @return {string} the string representation of the instance + */ + toString: function() { + return "TVFadeIn"; + } +}; + +/** + * A 1/2 second fade out animation. + * @class TVFadeOut + * @constructor + * @param el {HTMLElement} the element to animate + * @param callback {Function} function to invoke when the animation is finished + */ +YAHOO.widget.TVFadeOut = function(el, callback) { + /** + * The element to animate + * @property el + * @type HTMLElement + */ + this.el = el; + + /** + * the callback to invoke when the animation is complete + * @property callback + * @type function + */ + this.callback = callback; + + this.logger = new YAHOO.widget.LogWriter(this.toString()); +}; + +YAHOO.widget.TVFadeOut.prototype = { + /** + * Performs the animation + * @method animate + */ + animate: function() { + var tvanim = this; + var dur = 0.4; + var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur); + a.onComplete.subscribe( function() { tvanim.onComplete(); } ); + a.animate(); + }, + + /** + * Clean up and invoke callback + * @method onComplete + */ + onComplete: function() { + var s = this.el.style; + s.display = "none"; + // s.opacity = 1; + s.filter = "alpha(opacity=100)"; + this.callback(); + }, + + /** + * toString + * @method toString + * @return {string} the string representation of the instance + */ + toString: function() { + return "TVFadeOut"; + } +}; + +YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/treeview/treeview-min.js b/interface/ispconfig/interface/js/yui/treeview/treeview-min.js new file mode 100644 index 0000000..6d8321e --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/treeview-min.js @@ -0,0 +1,70 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +YAHOO.widget.TreeView=function(id){if(id){this.init(id);}};YAHOO.widget.TreeView.prototype={id:null,_el:null,_nodes:null,locked:false,_expandAnim:null,_collapseAnim:null,_animCount:0,maxAnim:2,setExpandAnim:function(type){if(YAHOO.widget.TVAnim.isValid(type)){this._expandAnim=type;}},setCollapseAnim:function(type){if(YAHOO.widget.TVAnim.isValid(type)){this._collapseAnim=type;}},animateExpand:function(el,node){if(this._expandAnim&&this._animCount<this.maxAnim){var tree=this;var a=YAHOO.widget.TVAnim.getAnim(this._expandAnim,el,function(){tree.expandComplete(node);});if(a){++this._animCount;this.fireEvent("animStart",{"node":node,"type":"expand"});a.animate();} +return true;} +return false;},animateCollapse:function(el,node){if(this._collapseAnim&&this._animCount<this.maxAnim){var tree=this;var a=YAHOO.widget.TVAnim.getAnim(this._collapseAnim,el,function(){tree.collapseComplete(node);});if(a){++this._animCount;this.fireEvent("animStart",{"node":node,"type":"collapse"});a.animate();} +return true;} +return false;},expandComplete:function(node){--this._animCount;this.fireEvent("animComplete",{"node":node,"type":"expand"});},collapseComplete:function(node){--this._animCount;this.fireEvent("animComplete",{"node":node,"type":"collapse"});},init:function(id){this.id=id;if("string"!==typeof id){this._el=id;this.id=this.generateId(id);} +this.createEvent("animStart",this);this.createEvent("animComplete",this);this.createEvent("collapse",this);this.createEvent("collapseComplete",this);this.createEvent("expand",this);this.createEvent("expandComplete",this);this._nodes=[];YAHOO.widget.TreeView.trees[this.id]=this;this.root=new YAHOO.widget.RootNode(this);YAHOO.util.Event.on(this.id,"click",this.handleClick,this,true);},draw:function(){var html=this.root.getHtml();this.getEl().innerHTML=html;this.firstDraw=false;},getEl:function(){if(!this._el){this._el=document.getElementById(this.id);} +return this._el;},regNode:function(node){this._nodes[node.index]=node;},getRoot:function(){return this.root;},setDynamicLoad:function(fnDataLoader,iconMode){this.root.setDynamicLoad(fnDataLoader,iconMode);},expandAll:function(){if(!this.locked){this.root.expandAll();}},collapseAll:function(){if(!this.locked){this.root.collapseAll();}},getNodeByIndex:function(nodeIndex){var n=this._nodes[nodeIndex];return(n)?n:null;},getNodeByProperty:function(property,value){for(var i in this._nodes){var n=this._nodes[i];if(n.data&&value==n.data[property]){return n;}} +return null;},getNodesByProperty:function(property,value){var values=[];for(var i in this._nodes){var n=this._nodes[i];if(n.data&&value==n.data[property]){values.push(n);}} +return(values.length)?values:null;},removeNode:function(node,autoRefresh){if(node.isRoot()){return false;} +var p=node.parent;if(p.parent){p=p.parent;} +this._deleteNode(node);if(autoRefresh&&p&&p.childrenRendered){p.refresh();} +return true;},removeChildren:function(node){while(node.children.length){this._deleteNode(node.children[0]);} +node.childrenRendered=false;node.dynamicLoadComplete=false;if(node.expanded){node.collapse();}else{node.updateIcon();}},_deleteNode:function(node){this.removeChildren(node);this.popNode(node);},popNode:function(node){var p=node.parent;var a=[];for(var i=0,len=p.children.length;i<len;++i){if(p.children[i]!=node){a[a.length]=p.children[i];}} +p.children=a;p.childrenRendered=false;if(node.previousSibling){node.previousSibling.nextSibling=node.nextSibling;} +if(node.nextSibling){node.nextSibling.previousSibling=node.previousSibling;} +node.parent=null;node.previousSibling=null;node.nextSibling=null;node.tree=null;delete this._nodes[node.index];},toString:function(){return"TreeView "+this.id;},generateId:function(el){var id=el.id;if(!id){id="yui-tv-auto-id-"+YAHOO.widget.TreeView.counter;++YAHOO.widget.TreeView.counter;} +return id;},onExpand:function(node){},onCollapse:function(node){}};YAHOO.augment(YAHOO.widget.TreeView,YAHOO.util.EventProvider);YAHOO.widget.TreeView.nodeCount=0;YAHOO.widget.TreeView.trees=[];YAHOO.widget.TreeView.counter=0;YAHOO.widget.TreeView.getTree=function(treeId){var t=YAHOO.widget.TreeView.trees[treeId];return(t)?t:null;};YAHOO.widget.TreeView.getNode=function(treeId,nodeIndex){var t=YAHOO.widget.TreeView.getTree(treeId);return(t)?t.getNodeByIndex(nodeIndex):null;};YAHOO.widget.TreeView.addHandler=function(el,sType,fn){if(el.addEventListener){el.addEventListener(sType,fn,false);}else if(el.attachEvent){el.attachEvent("on"+sType,fn);}};YAHOO.widget.TreeView.removeHandler=function(el,sType,fn){if(el.removeEventListener){el.removeEventListener(sType,fn,false);}else if(el.detachEvent){el.detachEvent("on"+sType,fn);}};YAHOO.widget.TreeView.preload=function(prefix){prefix=prefix||"ygtv";var styles=["tn","tm","tmh","tp","tph","ln","lm","lmh","lp","lph","loading"];var sb=[];for(var i=0;i<styles.length;++i){sb[sb.length]='<span class="'+prefix+styles[i]+'"> </span>';} +var f=document.createElement("div");var s=f.style;s.position="absolute";s.top="-1000px";s.left="-1000px";f.innerHTML=sb.join("");document.body.appendChild(f);YAHOO.widget.TreeView.removeHandler(window,"load",YAHOO.widget.TreeView.preload);};YAHOO.widget.TreeView.addHandler(window,"load",YAHOO.widget.TreeView.preload);YAHOO.widget.Node=function(oData,oParent,expanded){if(oData){this.init(oData,oParent,expanded);}};YAHOO.widget.Node.prototype={index:0,children:null,tree:null,data:null,parent:null,depth:-1,href:null,target:"_self",expanded:false,multiExpand:true,renderHidden:false,childrenRendered:false,dynamicLoadComplete:false,previousSibling:null,nextSibling:null,_dynLoad:false,dataLoader:null,isLoading:false,hasIcon:true,iconMode:0,nowrap:false,_type:"Node",init:function(oData,oParent,expanded){this.data=oData;this.children=[];this.index=YAHOO.widget.TreeView.nodeCount;++YAHOO.widget.TreeView.nodeCount;this.expanded=expanded;this.createEvent("parentChange",this);if(oParent){oParent.appendChild(this);}},applyParent:function(parentNode){if(!parentNode){return false;} +this.tree=parentNode.tree;this.parent=parentNode;this.depth=parentNode.depth+1;if(!this.href){this.href="javascript:"+this.getToggleLink();} +this.tree.regNode(this);parentNode.childrenRendered=false;for(var i=0,len=this.children.length;i<len;++i){this.children[i].applyParent(this);} +this.fireEvent("parentChange");return true;},appendChild:function(childNode){if(this.hasChildren()){var sib=this.children[this.children.length-1];sib.nextSibling=childNode;childNode.previousSibling=sib;} +this.children[this.children.length]=childNode;childNode.applyParent(this);return childNode;},appendTo:function(parentNode){return parentNode.appendChild(this);},insertBefore:function(node){var p=node.parent;if(p){if(this.tree){this.tree.popNode(this);} +var refIndex=node.isChildOf(p);p.children.splice(refIndex,0,this);if(node.previousSibling){node.previousSibling.nextSibling=this;} +this.previousSibling=node.previousSibling;this.nextSibling=node;node.previousSibling=this;this.applyParent(p);} +return this;},insertAfter:function(node){var p=node.parent;if(p){if(this.tree){this.tree.popNode(this);} +var refIndex=node.isChildOf(p);if(!node.nextSibling){this.nextSibling=null;return this.appendTo(p);} +p.children.splice(refIndex+1,0,this);node.nextSibling.previousSibling=this;this.previousSibling=node;this.nextSibling=node.nextSibling;node.nextSibling=this;this.applyParent(p);} +return this;},isChildOf:function(parentNode){if(parentNode&&parentNode.children){for(var i=0,len=parentNode.children.length;i<len;++i){if(parentNode.children[i]===this){return i;}}} +return-1;},getSiblings:function(){return this.parent.children;},showChildren:function(){if(!this.tree.animateExpand(this.getChildrenEl(),this)){if(this.hasChildren()){this.getChildrenEl().style.display="";}}},hideChildren:function(){if(!this.tree.animateCollapse(this.getChildrenEl(),this)){this.getChildrenEl().style.display="none";}},getElId:function(){return"ygtv"+this.index;},getChildrenElId:function(){return"ygtvc"+this.index;},getToggleElId:function(){return"ygtvt"+this.index;},getEl:function(){return document.getElementById(this.getElId());},getChildrenEl:function(){return document.getElementById(this.getChildrenElId());},getToggleEl:function(){return document.getElementById(this.getToggleElId());},getToggleLink:function(){return"YAHOO.widget.TreeView.getNode(\'"+this.tree.id+"\',"+ +this.index+").toggle()";},collapse:function(){if(!this.expanded){return;} +var ret=this.tree.onCollapse(this);if(false===ret){return;} +ret=this.tree.fireEvent("collapse",this);if(false===ret){return;} +if(!this.getEl()){this.expanded=false;}else{this.hideChildren();this.expanded=false;this.updateIcon();} +ret=this.tree.fireEvent("collapseComplete",this);},expand:function(){if(this.expanded){return;} +var ret=this.tree.onExpand(this);if(false===ret){return;} +ret=this.tree.fireEvent("expand",this);if(false===ret){return;} +if(!this.getEl()){this.expanded=true;return;} +if(!this.childrenRendered){this.getChildrenEl().innerHTML=this.renderChildren();}else{} +this.expanded=true;this.updateIcon();if(this.isLoading){this.expanded=false;return;} +if(!this.multiExpand){var sibs=this.getSiblings();for(var i=0;i<sibs.length;++i){if(sibs[i]!=this&&sibs[i].expanded){sibs[i].collapse();}}} +this.showChildren();ret=this.tree.fireEvent("expandComplete",this);},updateIcon:function(){if(this.hasIcon){var el=this.getToggleEl();if(el){el.className=this.getStyle();}}},getStyle:function(){if(this.isLoading){return"ygtvloading";}else{var loc=(this.nextSibling)?"t":"l";var type="n";if(this.hasChildren(true)||(this.isDynamic()&&!this.getIconMode())){type=(this.expanded)?"m":"p";} +return"ygtv"+loc+type;}},getHoverStyle:function(){var s=this.getStyle();if(this.hasChildren(true)&&!this.isLoading){s+="h";} +return s;},expandAll:function(){for(var i=0;i<this.children.length;++i){var c=this.children[i];if(c.isDynamic()){alert("Not supported (lazy load + expand all)");break;}else if(!c.multiExpand){alert("Not supported (no multi-expand + expand all)");break;}else{c.expand();c.expandAll();}}},collapseAll:function(){for(var i=0;i<this.children.length;++i){this.children[i].collapse();this.children[i].collapseAll();}},setDynamicLoad:function(fnDataLoader,iconMode){if(fnDataLoader){this.dataLoader=fnDataLoader;this._dynLoad=true;}else{this.dataLoader=null;this._dynLoad=false;} +if(iconMode){this.iconMode=iconMode;}},isRoot:function(){return(this==this.tree.root);},isDynamic:function(){var lazy=(!this.isRoot()&&(this._dynLoad||this.tree.root._dynLoad));return lazy;},getIconMode:function(){return(this.iconMode||this.tree.root.iconMode);},hasChildren:function(checkForLazyLoad){return(this.children.length>0||(checkForLazyLoad&&this.isDynamic()&&!this.dynamicLoadComplete));},toggle:function(){if(!this.tree.locked&&(this.hasChildren(true)||this.isDynamic())){if(this.expanded){this.collapse();}else{this.expand();}}},getHtml:function(){this.childrenRendered=false;var sb=[];sb[sb.length]='<div class="ygtvitem" id="'+this.getElId()+'">';sb[sb.length]=this.getNodeHtml();sb[sb.length]=this.getChildrenHtml();sb[sb.length]='</div>';return sb.join("");},getChildrenHtml:function(){var sb=[];sb[sb.length]='<div class="ygtvchildren"';sb[sb.length]=' id="'+this.getChildrenElId()+'"';if(!this.expanded){sb[sb.length]=' style="display:none;"';} +sb[sb.length]='>';if((this.hasChildren(true)&&this.expanded)||(this.renderHidden&&!this.isDynamic())){sb[sb.length]=this.renderChildren();} +sb[sb.length]='</div>';return sb.join("");},renderChildren:function(){var node=this;if(this.isDynamic()&&!this.dynamicLoadComplete){this.isLoading=true;this.tree.locked=true;if(this.dataLoader){setTimeout(function(){node.dataLoader(node,function(){node.loadComplete();});},10);}else if(this.tree.root.dataLoader){setTimeout(function(){node.tree.root.dataLoader(node,function(){node.loadComplete();});},10);}else{return"Error: data loader not found or not specified.";} +return"";}else{return this.completeRender();}},completeRender:function(){var sb=[];for(var i=0;i<this.children.length;++i){sb[sb.length]=this.children[i].getHtml();} +this.childrenRendered=true;return sb.join("");},loadComplete:function(){this.getChildrenEl().innerHTML=this.completeRender();this.dynamicLoadComplete=true;this.isLoading=false;this.expand();this.tree.locked=false;},getAncestor:function(depth){if(depth>=this.depth||depth<0){return null;} +var p=this.parent;while(p.depth>depth){p=p.parent;} +return p;},getDepthStyle:function(depth){return(this.getAncestor(depth).nextSibling)?"ygtvdepthcell":"ygtvblankdepthcell";},getNodeHtml:function(){return"";},refresh:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.hasIcon){var el=this.getToggleEl();if(el){el.className=this.getStyle();}}},toString:function(){return"Node ("+this.index+")";}};YAHOO.augment(YAHOO.widget.Node,YAHOO.util.EventProvider);YAHOO.widget.TextNode=function(oData,oParent,expanded){if(oData){this.init(oData,oParent,expanded);this.setUpLabel(oData);}};YAHOO.extend(YAHOO.widget.TextNode,YAHOO.widget.Node,{labelStyle:"ygtvlabel",labelElId:null,label:null,textNodeParentChange:function(){if(this.tree&&!this.tree.hasEvent("labelClick")){this.tree.createEvent("labelClick",this.tree);}},setUpLabel:function(oData){this.textNodeParentChange();this.subscribe("parentChange",this.textNodeParentChange);if(typeof oData=="string"){oData={label:oData};} +this.label=oData.label;this.data.label=oData.label;if(oData.href){this.href=oData.href;} +if(oData.target){this.target=oData.target;} +if(oData.style){this.labelStyle=oData.style;} +this.labelElId="ygtvlabelel"+this.index;},getLabelEl:function(){return document.getElementById(this.labelElId);},getNodeHtml:function(){var sb=[];sb[sb.length]='<table border="0" cellpadding="0" cellspacing="0">';sb[sb.length]='<tr>';for(var i=0;i<this.depth;++i){sb[sb.length]='<td class="'+this.getDepthStyle(i)+'"><div class="ygtvspacer"></div></td>';} +var getNode='YAHOO.widget.TreeView.getNode(\''+ +this.tree.id+'\','+this.index+')';sb[sb.length]='<td';sb[sb.length]=' id="'+this.getToggleElId()+'"';sb[sb.length]=' class="'+this.getStyle()+'"';if(this.hasChildren(true)){sb[sb.length]=' onmouseover="this.className=';sb[sb.length]=getNode+'.getHoverStyle()"';sb[sb.length]=' onmouseout="this.className=';sb[sb.length]=getNode+'.getStyle()"';} +sb[sb.length]=' onclick="javascript:'+this.getToggleLink()+'">';sb[sb.length]='<div class="ygtvspacer">';sb[sb.length]='</div>';sb[sb.length]='</td>';sb[sb.length]='<td ';sb[sb.length]=(this.nowrap)?' nowrap="nowrap" ':'';sb[sb.length]=' >';sb[sb.length]='<a';sb[sb.length]=' id="'+this.labelElId+'"';sb[sb.length]=' class="'+this.labelStyle+'"';sb[sb.length]=' href="'+this.href+'"';sb[sb.length]=' target="'+this.target+'"';sb[sb.length]=' onclick="return '+getNode+'.onLabelClick('+getNode+')"';if(this.hasChildren(true)){sb[sb.length]=' onmouseover="document.getElementById(\'';sb[sb.length]=this.getToggleElId()+'\').className=';sb[sb.length]=getNode+'.getHoverStyle()"';sb[sb.length]=' onmouseout="document.getElementById(\'';sb[sb.length]=this.getToggleElId()+'\').className=';sb[sb.length]=getNode+'.getStyle()"';} +sb[sb.length]=' >';sb[sb.length]=this.label;sb[sb.length]='</a>';sb[sb.length]='</td>';sb[sb.length]='</tr>';sb[sb.length]='</table>';return sb.join("");},onLabelClick:function(me){return me.tree.fireEvent("labelClick",me);},toString:function(){return"TextNode ("+this.index+") "+this.label;}});YAHOO.widget.RootNode=function(oTree){this.init(null,null,true);this.tree=oTree;};YAHOO.extend(YAHOO.widget.RootNode,YAHOO.widget.Node,{getNodeHtml:function(){return"";},toString:function(){return"RootNode";},loadComplete:function(){this.tree.draw();},collapse:function(){},expand:function(){}});YAHOO.widget.HTMLNode=function(oData,oParent,expanded,hasIcon){if(oData){this.init(oData,oParent,expanded);this.initContent(oData,hasIcon);}};YAHOO.extend(YAHOO.widget.HTMLNode,YAHOO.widget.Node,{contentStyle:"ygtvhtml",contentElId:null,content:null,initContent:function(oData,hasIcon){if(typeof oData=="string"){oData={html:oData};} +this.html=oData.html;this.contentElId="ygtvcontentel"+this.index;this.hasIcon=hasIcon;},getContentEl:function(){return document.getElementById(this.contentElId);},getNodeHtml:function(){var sb=[];sb[sb.length]='<table border="0" cellpadding="0" cellspacing="0">';sb[sb.length]='<tr>';for(var i=0;i<this.depth;++i){sb[sb.length]='<td class="'+this.getDepthStyle(i)+'"><div class="ygtvspacer"></div></td>';} +if(this.hasIcon){sb[sb.length]='<td';sb[sb.length]=' id="'+this.getToggleElId()+'"';sb[sb.length]=' class="'+this.getStyle()+'"';sb[sb.length]=' onclick="javascript:'+this.getToggleLink()+'"';if(this.hasChildren(true)){sb[sb.length]=' onmouseover="this.className=';sb[sb.length]='YAHOO.widget.TreeView.getNode(\'';sb[sb.length]=this.tree.id+'\','+this.index+').getHoverStyle()"';sb[sb.length]=' onmouseout="this.className=';sb[sb.length]='YAHOO.widget.TreeView.getNode(\'';sb[sb.length]=this.tree.id+'\','+this.index+').getStyle()"';} +sb[sb.length]='><div class="ygtvspacer"></div></td>';} +sb[sb.length]='<td';sb[sb.length]=' id="'+this.contentElId+'"';sb[sb.length]=' class="'+this.contentStyle+'"';sb[sb.length]=(this.nowrap)?' nowrap="nowrap" ':'';sb[sb.length]=' >';sb[sb.length]=this.html;sb[sb.length]='</td>';sb[sb.length]='</tr>';sb[sb.length]='</table>';return sb.join("");},toString:function(){return"HTMLNode ("+this.index+")";}});YAHOO.widget.MenuNode=function(oData,oParent,expanded){if(oData){this.init(oData,oParent,expanded);this.setUpLabel(oData);} +this.multiExpand=false;};YAHOO.extend(YAHOO.widget.MenuNode,YAHOO.widget.TextNode,{toString:function(){return"MenuNode ("+this.index+") "+this.label;}});YAHOO.widget.TVAnim=function(){return{FADE_IN:"TVFadeIn",FADE_OUT:"TVFadeOut",getAnim:function(type,el,callback){if(YAHOO.widget[type]){return new YAHOO.widget[type](el,callback);}else{return null;}},isValid:function(type){return(YAHOO.widget[type]);}};}();YAHOO.widget.TVFadeIn=function(el,callback){this.el=el;this.callback=callback;};YAHOO.widget.TVFadeIn.prototype={animate:function(){var tvanim=this;var s=this.el.style;s.opacity=0.1;s.filter="alpha(opacity=10)";s.display="";var dur=0.4;var a=new YAHOO.util.Anim(this.el,{opacity:{from:0.1,to:1,unit:""}},dur);a.onComplete.subscribe(function(){tvanim.onComplete();});a.animate();},onComplete:function(){this.callback();},toString:function(){return"TVFadeIn";}};YAHOO.widget.TVFadeOut=function(el,callback){this.el=el;this.callback=callback;};YAHOO.widget.TVFadeOut.prototype={animate:function(){var tvanim=this;var dur=0.4;var a=new YAHOO.util.Anim(this.el,{opacity:{from:1,to:0.1,unit:""}},dur);a.onComplete.subscribe(function(){tvanim.onComplete();});a.animate();},onComplete:function(){var s=this.el.style;s.display="none";s.filter="alpha(opacity=100)";this.callback();},toString:function(){return"TVFadeOut";}};YAHOO.register("treeview",YAHOO.widget.TreeView,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/treeview/treeview.js b/interface/ispconfig/interface/js/yui/treeview/treeview.js new file mode 100644 index 0000000..2551856 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/treeview/treeview.js @@ -0,0 +1,2248 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The treeview widget is a generic tree building tool. + * @module treeview + * @title TreeView Widget + * @requires yahoo, event + * @optional animation + * @namespace YAHOO.widget + */ + +/** + * Contains the tree view state data and the root node. + * + * @class TreeView + * @uses YAHOO.util.EventProvider + * @constructor + * @param {string|HTMLElement} id The id of the element, or the element + * itself that the tree will be inserted into. + */ +YAHOO.widget.TreeView = function(id) { + if (id) { this.init(id); } +}; + +YAHOO.widget.TreeView.prototype = { + + /** + * The id of tree container element + * @property id + * @type String + */ + id: null, + + /** + * The host element for this tree + * @property _el + * @private + */ + _el: null, + + /** + * Flat collection of all nodes in this tree. This is a sparse + * array, so the length property can't be relied upon for a + * node count for the tree. + * @property _nodes + * @type Node[] + * @private + */ + _nodes: null, + + /** + * We lock the tree control while waiting for the dynamic loader to return + * @property locked + * @type boolean + */ + locked: false, + + /** + * The animation to use for expanding children, if any + * @property _expandAnim + * @type string + * @private + */ + _expandAnim: null, + + /** + * The animation to use for collapsing children, if any + * @property _collapseAnim + * @type string + * @private + */ + _collapseAnim: null, + + /** + * The current number of animations that are executing + * @property _animCount + * @type int + * @private + */ + _animCount: 0, + + /** + * The maximum number of animations to run at one time. + * @property maxAnim + * @type int + */ + maxAnim: 2, + + /** + * Sets up the animation for expanding children + * @method setExpandAnim + * @param {string} type the type of animation (acceptable values defined + * in YAHOO.widget.TVAnim) + */ + setExpandAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._expandAnim = type; + } + }, + + /** + * Sets up the animation for collapsing children + * @method setCollapseAnim + * @param {string} the type of animation (acceptable values defined in + * YAHOO.widget.TVAnim) + */ + setCollapseAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._collapseAnim = type; + } + }, + + /** + * Perform the expand animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateExpand + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateExpand: function(el, node) { + + if (this._expandAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._expandAnim, el, + function() { tree.expandComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "expand" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Perform the collapse animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateCollapse + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateCollapse: function(el, node) { + + if (this._collapseAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._collapseAnim, el, + function() { tree.collapseComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "collapse" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Function executed when the expand animation completes + * @method expandComplete + */ + expandComplete: function(node) { + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "expand" + }); + // this.locked = false; + }, + + /** + * Function executed when the collapse animation completes + * @method collapseComplete + */ + collapseComplete: function(node) { + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "collapse" + }); + // this.locked = false; + }, + + /** + * Initializes the tree + * @method init + * @parm {string|HTMLElement} id the id of the element that will hold the tree + * @private + */ + init: function(id) { + + this.id = id; + + if ("string" !== typeof id) { + this._el = id; + this.id = this.generateId(id); + } + + /** + * When animation is enabled, this event fires when the animation + * starts + * @event animStart + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animStart", this); + + /** + * When animation is enabled, this event fires when the animation + * completes + * @event animComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animComplete", this); + + /** + * Fires when a node is going to be collapsed. Return false to stop + * the collapse. + * @event collapse + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is collapsing + */ + this.createEvent("collapse", this); + + /** + * Fires after a node is successfully collapsed. This event will not fire + * if the "collapse" event was cancelled. + * @event collapseComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that was collapsed + */ + this.createEvent("collapseComplete", this); + + /** + * Fires when a node is going to be expanded. Return false to stop + * the collapse. + * @event expand + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding + */ + this.createEvent("expand", this); + + /** + * Fires after a node is successfully expanded. This event will not fire + * if the "expand" event was cancelled. + * @event expandComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that was expanded + */ + this.createEvent("expandComplete", this); + + this._nodes = []; + + // store a global reference + YAHOO.widget.TreeView.trees[this.id] = this; + + // Set up the root node + this.root = new YAHOO.widget.RootNode(this); + + + + //YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true); + YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true); + }, + + + //handleAvailable: function() { + //var Event = YAHOO.util.Event; + //Event.on(this.id, + //}, + + /** + * Renders the tree boilerplate and visible nodes + * @method draw + */ + draw: function() { + var html = this.root.getHtml(); + this.getEl().innerHTML = html; + this.firstDraw = false; + }, + + /** + * Returns the tree's host element + * @method getEl + * @return {HTMLElement} the host element + */ + getEl: function() { + if (! this._el) { + this._el = document.getElementById(this.id); + } + return this._el; + }, + + /** + * Nodes register themselves with the tree instance when they are created. + * @method regNode + * @param node {Node} the node to register + * @private + */ + regNode: function(node) { + this._nodes[node.index] = node; + }, + + /** + * Returns the root node of this tree + * @method getRoot + * @return {Node} the root node + */ + getRoot: function() { + return this.root; + }, + + /** + * Configures this tree to dynamically load all child data + * @method setDynamicLoad + * @param {function} fnDataLoader the function that will be called to get the data + * @param iconMode {int} configures the icon that is displayed when a dynamic + * load node is expanded the first time without children. By default, the + * "collapse" icon will be used. If set to 1, the leaf node icon will be + * displayed. + */ + setDynamicLoad: function(fnDataLoader, iconMode) { + this.root.setDynamicLoad(fnDataLoader, iconMode); + }, + + /** + * Expands all child nodes. Note: this conflicts with the "multiExpand" + * node property. If expand all is called in a tree with nodes that + * do not allow multiple siblings to be displayed, only the last sibling + * will be expanded. + * @method expandAll + */ + expandAll: function() { + if (!this.locked) { + this.root.expandAll(); + } + }, + + /** + * Collapses all expanded child nodes in the entire tree. + * @method collapseAll + */ + collapseAll: function() { + if (!this.locked) { + this.root.collapseAll(); + } + }, + + /** + * Returns a node in the tree that has the specified index (this index + * is created internally, so this function probably will only be used + * in html generated for a given node.) + * @method getNodeByIndex + * @param {int} nodeIndex the index of the node wanted + * @return {Node} the node with index=nodeIndex, null if no match + */ + getNodeByIndex: function(nodeIndex) { + var n = this._nodes[nodeIndex]; + return (n) ? n : null; + }, + + /** + * Returns a node that has a matching property and value in the data + * object that was passed into its constructor. + * @method getNodeByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Node} the matching node, null if no match + */ + getNodeByProperty: function(property, value) { + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + return n; + } + } + + return null; + }, + + /** + * Returns a collection of nodes that have a matching property + * and value in the data object that was passed into its constructor. + * @method getNodesByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Array} the matching collection of nodes, null if no match + */ + getNodesByProperty: function(property, value) { + var values = []; + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + values.push(n); + } + } + + return (values.length) ? values : null; + }, + + /** + * Removes the node and its children, and optionally refreshes the + * branch of the tree that was affected. + * @method removeNode + * @param {Node} The node to remove + * @param {boolean} autoRefresh automatically refreshes branch if true + * @return {boolean} False is there was a problem, true otherwise. + */ + removeNode: function(node, autoRefresh) { + + // Don't delete the root node + if (node.isRoot()) { + return false; + } + + // Get the branch that we may need to refresh + var p = node.parent; + if (p.parent) { + p = p.parent; + } + + // Delete the node and its children + this._deleteNode(node); + + // Refresh the parent of the parent + if (autoRefresh && p && p.childrenRendered) { + p.refresh(); + } + + return true; + }, + + /** + * Deletes this nodes child collection, recursively. Also collapses + * the node, and resets the dynamic load flag. The primary use for + * this method is to purge a node and allow it to fetch its data + * dynamically again. + * @method removeChildren + * @param {Node} node the node to purge + */ + removeChildren: function(node) { + while (node.children.length) { + this._deleteNode(node.children[0]); + } + + node.childrenRendered = false; + node.dynamicLoadComplete = false; + if (node.expanded) { + node.collapse(); + } else { + node.updateIcon(); + } + }, + + /** + * Deletes the node and recurses children + * @method _deleteNode + * @private + */ + _deleteNode: function(node) { + // Remove all the child nodes first + this.removeChildren(node); + + // Remove the node from the tree + this.popNode(node); + }, + + /** + * Removes the node from the tree, preserving the child collection + * to make it possible to insert the branch into another part of the + * tree, or another tree. + * @method popNode + * @param {Node} the node to remove + */ + popNode: function(node) { + var p = node.parent; + + // Update the parent's collection of children + var a = []; + + for (var i=0, len=p.children.length;i<len;++i) { + if (p.children[i] != node) { + a[a.length] = p.children[i]; + } + } + + p.children = a; + + // reset the childrenRendered flag for the parent + p.childrenRendered = false; + + // Update the sibling relationship + if (node.previousSibling) { + node.previousSibling.nextSibling = node.nextSibling; + } + + if (node.nextSibling) { + node.nextSibling.previousSibling = node.previousSibling; + } + + node.parent = null; + node.previousSibling = null; + node.nextSibling = null; + node.tree = null; + + // Update the tree's node collection + delete this._nodes[node.index]; + }, + + + /** + * TreeView instance toString + * @method toString + * @return {string} string representation of the tree + */ + toString: function() { + return "TreeView " + this.id; + }, + + /** + * Generates an unique id for an element if it doesn't yet have one + * @method generateId + * @private + */ + generateId: function(el) { + var id = el.id; + + if (!id) { + id = "yui-tv-auto-id-" + YAHOO.widget.TreeView.counter; + ++YAHOO.widget.TreeView.counter; + } + + return id; + }, + + /** + * Abstract method that is executed when a node is expanded + * @method onExpand + * @param node {Node} the node that was expanded + * @deprecated use treeobj.subscribe("expand") instead + */ + onExpand: function(node) { }, + + /** + * Abstract method that is executed when a node is collapsed. + * @method onCollapse + * @param node {Node} the node that was collapsed. + * @deprecated use treeobj.subscribe("collapse") instead + */ + onCollapse: function(node) { } + +}; + +YAHOO.augment(YAHOO.widget.TreeView, YAHOO.util.EventProvider); + +/** + * Running count of all nodes created in all trees. This is + * used to provide unique identifies for all nodes. Deleting + * nodes does not change the nodeCount. + * @property YAHOO.widget.TreeView.nodeCount + * @type int + * @static + */ +YAHOO.widget.TreeView.nodeCount = 0; + +/** + * Global cache of tree instances + * @property YAHOO.widget.TreeView.trees + * @type Array + * @static + * @private + */ +YAHOO.widget.TreeView.trees = []; + +/** + * Counter for generating a new unique element id + * @property YAHOO.widget.TreeView.counter + * @static + * @private + */ +YAHOO.widget.TreeView.counter = 0; + +/** + * Global method for getting a tree by its id. Used in the generated + * tree html. + * @method YAHOO.widget.TreeView.getTree + * @param treeId {String} the id of the tree instance + * @return {TreeView} the tree instance requested, null if not found. + * @static + */ +YAHOO.widget.TreeView.getTree = function(treeId) { + var t = YAHOO.widget.TreeView.trees[treeId]; + return (t) ? t : null; +}; + + +/** + * Global method for getting a node by its id. Used in the generated + * tree html. + * @method YAHOO.widget.TreeView.getNode + * @param treeId {String} the id of the tree instance + * @param nodeIndex {String} the index of the node to return + * @return {Node} the node instance requested, null if not found + * @static + */ +YAHOO.widget.TreeView.getNode = function(treeId, nodeIndex) { + var t = YAHOO.widget.TreeView.getTree(treeId); + return (t) ? t.getNodeByIndex(nodeIndex) : null; +}; + +/** + * Add a DOM event + * @method YAHOO.widget.TreeView.addHandler + * @param el the elment to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @static + */ +YAHOO.widget.TreeView.addHandler = function (el, sType, fn) { + if (el.addEventListener) { + el.addEventListener(sType, fn, false); + } else if (el.attachEvent) { + el.attachEvent("on" + sType, fn); + } +}; + +/** + * Remove a DOM event + * @method YAHOO.widget.TreeView.removeHandler + * @param el the elment to bind the handler to + * @param {string} sType the type of event handler + * @param {function} fn the callback to invoke + * @static + */ + +YAHOO.widget.TreeView.removeHandler = function (el, sType, fn) { + if (el.removeEventListener) { + el.removeEventListener(sType, fn, false); + } else if (el.detachEvent) { + el.detachEvent("on" + sType, fn); + } +}; + +/** + * Attempts to preload the images defined in the styles used to draw the tree by + * rendering off-screen elements that use the styles. + * @method YAHOO.widget.TreeView.preload + * @param {string} prefix the prefix to use to generate the names of the + * images to preload, default is ygtv + * @static + */ +YAHOO.widget.TreeView.preload = function(prefix) { + prefix = prefix || "ygtv"; + var styles = ["tn","tm","tmh","tp","tph","ln","lm","lmh","lp","lph","loading"]; + + var sb = []; + + for (var i = 0; i < styles.length; ++i) { + sb[sb.length] = '<span class="' + prefix + styles[i] + '"> </span>'; + } + + var f = document.createElement("div"); + var s = f.style; + s.position = "absolute"; + s.top = "-1000px"; + s.left = "-1000px"; + f.innerHTML = sb.join(""); + + document.body.appendChild(f); + + YAHOO.widget.TreeView.removeHandler(window, + "load", YAHOO.widget.TreeView.preload); + +}; + +YAHOO.widget.TreeView.addHandler(window, + "load", YAHOO.widget.TreeView.preload); + +/** + * The base class for all tree nodes. The node's presentation and behavior in + * response to mouse events is handled in Node subclasses. + * @namespace YAHOO.widget + * @class Node + * @uses YAHOO.util.EventProvider + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @constructor + */ +YAHOO.widget.Node = function(oData, oParent, expanded) { + if (oData) { this.init(oData, oParent, expanded); } +}; + +YAHOO.widget.Node.prototype = { + + /** + * The index for this instance obtained from global counter in YAHOO.widget.TreeView. + * @property index + * @type int + */ + index: 0, + + /** + * This node's child node collection. + * @property children + * @type Node[] + */ + children: null, + + /** + * Tree instance this node is part of + * @property tree + * @type TreeView + */ + tree: null, + + /** + * The data linked to this node. This can be any object or primitive + * value, and the data can be used in getNodeHtml(). + * @property data + * @type object + */ + data: null, + + /** + * Parent node + * @property parent + * @type Node + */ + parent: null, + + /** + * The depth of this node. We start at -1 for the root node. + * @property depth + * @type int + */ + depth: -1, + + /** + * The href for the node's label. If one is not specified, the href will + * be set so that it toggles the node. + * @property href + * @type string + */ + href: null, + + /** + * The label href target, defaults to current window + * @property target + * @type string + */ + target: "_self", + + /** + * The node's expanded/collapsed state + * @property expanded + * @type boolean + */ + expanded: false, + + /** + * Can multiple children be expanded at once? + * @property multiExpand + * @type boolean + */ + multiExpand: true, + + /** + * Should we render children for a collapsed node? It is possible that the + * implementer will want to render the hidden data... @todo verify that we + * need this, and implement it if we do. + * @property renderHidden + * @type boolean + */ + renderHidden: false, + + /** + * This flag is set to true when the html is generated for this node's + * children, and set to false when new children are added. + * @property childrenRendered + * @type boolean + */ + childrenRendered: false, + + /** + * Dynamically loaded nodes only fetch the data the first time they are + * expanded. This flag is set to true once the data has been fetched. + * @property dynamicLoadComplete + * @type boolean + */ + dynamicLoadComplete: false, + + /** + * This node's previous sibling + * @property previousSibling + * @type Node + */ + previousSibling: null, + + /** + * This node's next sibling + * @property nextSibling + * @type Node + */ + nextSibling: null, + + /** + * We can set the node up to call an external method to get the child + * data dynamically. + * @property _dynLoad + * @type boolean + * @private + */ + _dynLoad: false, + + /** + * Function to execute when we need to get this node's child data. + * @property dataLoader + * @type function + */ + dataLoader: null, + + /** + * This is true for dynamically loading nodes while waiting for the + * callback to return. + * @property isLoading + * @type boolean + */ + isLoading: false, + + /** + * The toggle/branch icon will not show if this is set to false. This + * could be useful if the implementer wants to have the child contain + * extra info about the parent, rather than an actual node. + * @property hasIcon + * @type boolean + */ + hasIcon: true, + + /** + * Used to configure what happens when a dynamic load node is expanded + * and we discover that it does not have children. By default, it is + * treated as if it still could have children (plus/minus icon). Set + * iconMode to have it display like a leaf node instead. + * @property iconMode + * @type int + */ + iconMode: 0, + + /** + * Specifies whether or not the content area of the node should be allowed + * to wrap. + * @property nowrap + * @type boolean + * @default true + */ + nowrap: false, + + /** + * The node type + * @property _type + * @private + */ + _type: "Node", + + /* + spacerPath: "http://us.i1.yimg.com/us.yimg.com/i/space.gif", + expandedText: "Expanded", + collapsedText: "Collapsed", + loadingText: "Loading", + */ + + /** + * Initializes this node, gets some of the properties from the parent + * @method init + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ + init: function(oData, oParent, expanded) { + + this.data = oData; + this.children = []; + this.index = YAHOO.widget.TreeView.nodeCount; + ++YAHOO.widget.TreeView.nodeCount; + this.expanded = expanded; + + /** + * The parentChange event is fired when a parent element is applied + * to the node. This is useful if you need to apply tree-level + * properties to a tree that need to happen if a node is moved from + * one tree to another. + * + * @event parentChange + * @type CustomEvent + */ + this.createEvent("parentChange", this); + + // oParent should never be null except when we create the root node. + if (oParent) { + oParent.appendChild(this); + } + }, + + /** + * Certain properties for the node cannot be set until the parent + * is known. This is called after the node is inserted into a tree. + * the parent is also applied to this node's children in order to + * make it possible to move a branch from one tree to another. + * @method applyParent + * @param {Node} parentNode this node's parent node + * @return {boolean} true if the application was successful + */ + applyParent: function(parentNode) { + if (!parentNode) { + return false; + } + + this.tree = parentNode.tree; + this.parent = parentNode; + this.depth = parentNode.depth + 1; + + if (!this.href) { + this.href = "javascript:" + this.getToggleLink(); + } + + // @todo why was this put here. This causes new nodes added at the + // root level to lose the menu behavior. + // if (! this.multiExpand) { + // this.multiExpand = parentNode.multiExpand; + // } + + this.tree.regNode(this); + parentNode.childrenRendered = false; + + // cascade update existing children + for (var i=0, len=this.children.length;i<len;++i) { + this.children[i].applyParent(this); + } + + this.fireEvent("parentChange"); + + return true; + }, + + /** + * Appends a node to the child collection. + * @method appendChild + * @param childNode {Node} the new node + * @return {Node} the child node + * @private + */ + appendChild: function(childNode) { + if (this.hasChildren()) { + var sib = this.children[this.children.length - 1]; + sib.nextSibling = childNode; + childNode.previousSibling = sib; + } + this.children[this.children.length] = childNode; + childNode.applyParent(this); + + return childNode; + }, + + /** + * Appends this node to the supplied node's child collection + * @method appendTo + * @param parentNode {Node} the node to append to. + * @return {Node} The appended node + */ + appendTo: function(parentNode) { + return parentNode.appendChild(this); + }, + + /** + * Inserts this node before this supplied node + * @method insertBefore + * @param node {Node} the node to insert this node before + * @return {Node} the inserted node + */ + insertBefore: function(node) { + var p = node.parent; + if (p) { + + if (this.tree) { + this.tree.popNode(this); + } + + var refIndex = node.isChildOf(p); + p.children.splice(refIndex, 0, this); + if (node.previousSibling) { + node.previousSibling.nextSibling = this; + } + this.previousSibling = node.previousSibling; + this.nextSibling = node; + node.previousSibling = this; + + this.applyParent(p); + } + + return this; + }, + + /** + * Inserts this node after the supplied node + * @method insertAfter + * @param node {Node} the node to insert after + * @return {Node} the inserted node + */ + insertAfter: function(node) { + var p = node.parent; + if (p) { + + if (this.tree) { + this.tree.popNode(this); + } + + var refIndex = node.isChildOf(p); + + if (!node.nextSibling) { + this.nextSibling = null; + return this.appendTo(p); + } + + p.children.splice(refIndex + 1, 0, this); + + node.nextSibling.previousSibling = this; + this.previousSibling = node; + this.nextSibling = node.nextSibling; + node.nextSibling = this; + + this.applyParent(p); + } + + return this; + }, + + /** + * Returns true if the Node is a child of supplied Node + * @method isChildOf + * @param parentNode {Node} the Node to check + * @return {boolean} The node index if this Node is a child of + * supplied Node, else -1. + * @private + */ + isChildOf: function(parentNode) { + if (parentNode && parentNode.children) { + for (var i=0, len=parentNode.children.length; i<len ; ++i) { + if (parentNode.children[i] === this) { + return i; + } + } + } + + return -1; + }, + + /** + * Returns a node array of this node's siblings, null if none. + * @method getSiblings + * @return Node[] + */ + getSiblings: function() { + return this.parent.children; + }, + + /** + * Shows this node's children + * @method showChildren + */ + showChildren: function() { + if (!this.tree.animateExpand(this.getChildrenEl(), this)) { + if (this.hasChildren()) { + this.getChildrenEl().style.display = ""; + } + } + }, + + /** + * Hides this node's children + * @method hideChildren + */ + hideChildren: function() { + + if (!this.tree.animateCollapse(this.getChildrenEl(), this)) { + this.getChildrenEl().style.display = "none"; + } + }, + + /** + * Returns the id for this node's container div + * @method getElId + * @return {string} the element id + */ + getElId: function() { + return "ygtv" + this.index; + }, + + /** + * Returns the id for this node's children div + * @method getChildrenElId + * @return {string} the element id for this node's children div + */ + getChildrenElId: function() { + return "ygtvc" + this.index; + }, + + /** + * Returns the id for this node's toggle element + * @method getToggleElId + * @return {string} the toggel element id + */ + getToggleElId: function() { + return "ygtvt" + this.index; + }, + + + /* + * Returns the id for this node's spacer image. The spacer is positioned + * over the toggle and provides feedback for screen readers. + * @method getSpacerId + * @return {string} the id for the spacer image + */ + /* + getSpacerId: function() { + return "ygtvspacer" + this.index; + }, + */ + + /** + * Returns this node's container html element + * @method getEl + * @return {HTMLElement} the container html element + */ + getEl: function() { + return document.getElementById(this.getElId()); + }, + + /** + * Returns the div that was generated for this node's children + * @method getChildrenEl + * @return {HTMLElement} this node's children div + */ + getChildrenEl: function() { + return document.getElementById(this.getChildrenElId()); + }, + + /** + * Returns the element that is being used for this node's toggle. + * @method getToggleEl + * @return {HTMLElement} this node's toggle html element + */ + getToggleEl: function() { + return document.getElementById(this.getToggleElId()); + }, + + /* + * Returns the element that is being used for this node's spacer. + * @method getSpacer + * @return {HTMLElement} this node's spacer html element + */ + /* + getSpacer: function() { + return document.getElementById( this.getSpacerId() ) || {}; + }, + */ + + /* + getStateText: function() { + if (this.isLoading) { + return this.loadingText; + } else if (this.hasChildren(true)) { + if (this.expanded) { + return this.expandedText; + } else { + return this.collapsedText; + } + } else { + return ""; + } + }, + */ + + /** + * Generates the link that will invoke this node's toggle method + * @method getToggleLink + * @return {string} the javascript url for toggling this node + */ + getToggleLink: function() { + return "YAHOO.widget.TreeView.getNode(\'" + this.tree.id + "\'," + + this.index + ").toggle()"; + }, + + /** + * Hides this nodes children (creating them if necessary), changes the + * @method collapse + * toggle style. + */ + collapse: function() { + // Only collapse if currently expanded + if (!this.expanded) { return; } + + // fire the collapse event handler + var ret = this.tree.onCollapse(this); + + if (false === ret) { + return; + } + + ret = this.tree.fireEvent("collapse", this); + + if (false === ret) { + return; + } + + + if (!this.getEl()) { + this.expanded = false; + } else { + // hide the child div + this.hideChildren(); + this.expanded = false; + + this.updateIcon(); + } + + // this.getSpacer().title = this.getStateText(); + + ret = this.tree.fireEvent("collapseComplete", this); + + }, + + /** + * Shows this nodes children (creating them if necessary), changes the + * toggle style, and collapses its siblings if multiExpand is not set. + * @method expand + */ + expand: function() { + // Only expand if currently collapsed. + if (this.expanded) { return; } + + // fire the expand event handler + var ret = this.tree.onExpand(this); + + if (false === ret) { + return; + } + + ret = this.tree.fireEvent("expand", this); + + if (false === ret) { + return; + } + + if (!this.getEl()) { + this.expanded = true; + return; + } + + if (! this.childrenRendered) { + this.getChildrenEl().innerHTML = this.renderChildren(); + } else { + } + + this.expanded = true; + + this.updateIcon(); + + // this.getSpacer().title = this.getStateText(); + + // We do an extra check for children here because the lazy + // load feature can expose nodes that have no children. + + // if (!this.hasChildren()) { + if (this.isLoading) { + this.expanded = false; + return; + } + + if (! this.multiExpand) { + var sibs = this.getSiblings(); + for (var i=0; i<sibs.length; ++i) { + if (sibs[i] != this && sibs[i].expanded) { + sibs[i].collapse(); + } + } + } + + this.showChildren(); + + ret = this.tree.fireEvent("expandComplete", this); + }, + + updateIcon: function() { + if (this.hasIcon) { + var el = this.getToggleEl(); + if (el) { + el.className = this.getStyle(); + } + } + }, + + /** + * Returns the css style name for the toggle + * @method getStyle + * @return {string} the css class for this node's toggle + */ + getStyle: function() { + if (this.isLoading) { + return "ygtvloading"; + } else { + // location top or bottom, middle nodes also get the top style + var loc = (this.nextSibling) ? "t" : "l"; + + // type p=plus(expand), m=minus(collapase), n=none(no children) + var type = "n"; + if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) { + // if (this.hasChildren(true)) { + type = (this.expanded) ? "m" : "p"; + } + + return "ygtv" + loc + type; + } + }, + + /** + * Returns the hover style for the icon + * @return {string} the css class hover state + * @method getHoverStyle + */ + getHoverStyle: function() { + var s = this.getStyle(); + if (this.hasChildren(true) && !this.isLoading) { + s += "h"; + } + return s; + }, + + /** + * Recursively expands all of this node's children. + * @method expandAll + */ + expandAll: function() { + for (var i=0;i<this.children.length;++i) { + var c = this.children[i]; + if (c.isDynamic()) { + alert("Not supported (lazy load + expand all)"); + break; + } else if (! c.multiExpand) { + alert("Not supported (no multi-expand + expand all)"); + break; + } else { + c.expand(); + c.expandAll(); + } + } + }, + + /** + * Recursively collapses all of this node's children. + * @method collapseAll + */ + collapseAll: function() { + for (var i=0;i<this.children.length;++i) { + this.children[i].collapse(); + this.children[i].collapseAll(); + } + }, + + /** + * Configures this node for dynamically obtaining the child data + * when the node is first expanded. Calling it without the callback + * will turn off dynamic load for the node. + * @method setDynamicLoad + * @param fmDataLoader {function} the function that will be used to get the data. + * @param iconMode {int} configures the icon that is displayed when a dynamic + * load node is expanded the first time without children. By default, the + * "collapse" icon will be used. If set to 1, the leaf node icon will be + * displayed. + */ + setDynamicLoad: function(fnDataLoader, iconMode) { + if (fnDataLoader) { + this.dataLoader = fnDataLoader; + this._dynLoad = true; + } else { + this.dataLoader = null; + this._dynLoad = false; + } + + if (iconMode) { + this.iconMode = iconMode; + } + }, + + /** + * Evaluates if this node is the root node of the tree + * @method isRoot + * @return {boolean} true if this is the root node + */ + isRoot: function() { + return (this == this.tree.root); + }, + + /** + * Evaluates if this node's children should be loaded dynamically. Looks for + * the property both in this instance and the root node. If the tree is + * defined to load all children dynamically, the data callback function is + * defined in the root node + * @method isDynamic + * @return {boolean} true if this node's children are to be loaded dynamically + */ + isDynamic: function() { + var lazy = (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad)); + return lazy; + }, + + /** + * Returns the current icon mode. This refers to the way childless dynamic + * load nodes appear. + * @method getIconMode + * @return {int} 0 for collapse style, 1 for leaf node style + */ + getIconMode: function() { + return (this.iconMode || this.tree.root.iconMode); + }, + + /** + * Checks if this node has children. If this node is lazy-loading and the + * children have not been rendered, we do not know whether or not there + * are actual children. In most cases, we need to assume that there are + * children (for instance, the toggle needs to show the expandable + * presentation state). In other times we want to know if there are rendered + * children. For the latter, "checkForLazyLoad" should be false. + * @method hasChildren + * @param checkForLazyLoad {boolean} should we check for unloaded children? + * @return {boolean} true if this has children or if it might and we are + * checking for this condition. + */ + hasChildren: function(checkForLazyLoad) { + return ( this.children.length > 0 || + (checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) ); + }, + + /** + * Expands if node is collapsed, collapses otherwise. + * @method toggle + */ + toggle: function() { + if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) { + if (this.expanded) { this.collapse(); } else { this.expand(); } + } + }, + + /** + * Returns the markup for this node and its children. + * @method getHtml + * @return {string} the markup for this node and its expanded children. + */ + getHtml: function() { + + this.childrenRendered = false; + + var sb = []; + sb[sb.length] = '<div class="ygtvitem" id="' + this.getElId() + '">'; + sb[sb.length] = this.getNodeHtml(); + sb[sb.length] = this.getChildrenHtml(); + sb[sb.length] = '</div>'; + return sb.join(""); + }, + + /** + * Called when first rendering the tree. We always build the div that will + * contain this nodes children, but we don't render the children themselves + * unless this node is expanded. + * @method getChildrenHtml + * @return {string} the children container div html and any expanded children + * @private + */ + getChildrenHtml: function() { + + var sb = []; + sb[sb.length] = '<div class="ygtvchildren"'; + sb[sb.length] = ' id="' + this.getChildrenElId() + '"'; + if (!this.expanded) { + sb[sb.length] = ' style="display:none;"'; + } + sb[sb.length] = '>'; + + // Don't render the actual child node HTML unless this node is expanded. + if ( (this.hasChildren(true) && this.expanded) || + (this.renderHidden && !this.isDynamic()) ) { + sb[sb.length] = this.renderChildren(); + } + + sb[sb.length] = '</div>'; + + return sb.join(""); + }, + + /** + * Generates the markup for the child nodes. This is not done until the node + * is expanded. + * @method renderChildren + * @return {string} the html for this node's children + * @private + */ + renderChildren: function() { + + + var node = this; + + if (this.isDynamic() && !this.dynamicLoadComplete) { + this.isLoading = true; + this.tree.locked = true; + + if (this.dataLoader) { + + setTimeout( + function() { + node.dataLoader(node, + function() { + node.loadComplete(); + }); + }, 10); + + } else if (this.tree.root.dataLoader) { + + setTimeout( + function() { + node.tree.root.dataLoader(node, + function() { + node.loadComplete(); + }); + }, 10); + + } else { + return "Error: data loader not found or not specified."; + } + + return ""; + + } else { + return this.completeRender(); + } + }, + + /** + * Called when we know we have all the child data. + * @method completeRender + * @return {string} children html + */ + completeRender: function() { + var sb = []; + + for (var i=0; i < this.children.length; ++i) { + // this.children[i].childrenRendered = false; + sb[sb.length] = this.children[i].getHtml(); + } + + this.childrenRendered = true; + + return sb.join(""); + }, + + /** + * Load complete is the callback function we pass to the data provider + * in dynamic load situations. + * @method loadComplete + */ + loadComplete: function() { + this.getChildrenEl().innerHTML = this.completeRender(); + this.dynamicLoadComplete = true; + this.isLoading = false; + this.expand(); + this.tree.locked = false; + }, + + /** + * Returns this node's ancestor at the specified depth. + * @method getAncestor + * @param {int} depth the depth of the ancestor. + * @return {Node} the ancestor + */ + getAncestor: function(depth) { + if (depth >= this.depth || depth < 0) { + return null; + } + + var p = this.parent; + + while (p.depth > depth) { + p = p.parent; + } + + return p; + }, + + /** + * Returns the css class for the spacer at the specified depth for + * this node. If this node's ancestor at the specified depth + * has a next sibling the presentation is different than if it + * does not have a next sibling + * @method getDepthStyle + * @param {int} depth the depth of the ancestor. + * @return {string} the css class for the spacer + */ + getDepthStyle: function(depth) { + return (this.getAncestor(depth).nextSibling) ? + "ygtvdepthcell" : "ygtvblankdepthcell"; + }, + + /** + * Get the markup for the node. This is designed to be overrided so that we can + * support different types of nodes. + * @method getNodeHtml + * @return {string} The HTML that will render this node. + */ + getNodeHtml: function() { + return ""; + }, + + /** + * Regenerates the html for this node and its children. To be used when the + * node is expanded and new children have been added. + * @method refresh + */ + refresh: function() { + // this.loadComplete(); + this.getChildrenEl().innerHTML = this.completeRender(); + + if (this.hasIcon) { + var el = this.getToggleEl(); + if (el) { + el.className = this.getStyle(); + } + } + }, + + /** + * Node toString + * @method toString + * @return {string} string representation of the node + */ + toString: function() { + return "Node (" + this.index + ")"; + } + +}; + +YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider); + +/** + * The default node presentation. The first parameter should be + * either a string that will be used as the node's label, or an object + * that has a string propery called label. By default, the clicking the + * label will toggle the expanded/collapsed state of the node. By + * changing the href property of the instance, this behavior can be + * changed so that the label will go to the specified href. + * @namespace YAHOO.widget + * @class TextNode + * @extends YAHOO.widget.Node + * @constructor + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ +YAHOO.widget.TextNode = function(oData, oParent, expanded) { + + if (oData) { + this.init(oData, oParent, expanded); + this.setUpLabel(oData); + } + +}; + +YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, { + + /** + * The CSS class for the label href. Defaults to ygtvlabel, but can be + * overridden to provide a custom presentation for a specific node. + * @property labelStyle + * @type string + */ + labelStyle: "ygtvlabel", + + /** + * The derived element id of the label for this node + * @property labelElId + * @type string + */ + labelElId: null, + + /** + * The text for the label. It is assumed that the oData parameter will + * either be a string that will be used as the label, or an object that + * has a property called "label" that we will use. + * @property label + * @type string + */ + label: null, + + textNodeParentChange: function() { + + /** + * Custom event that is fired when the text node label is clicked. The + * custom event is defined on the tree instance, so there is a single + * event that handles all nodes in the tree. The node clicked is + * provided as an argument + * + * @event labelClick + * @for YAHOO.widget.TreeView + * @param {YAHOO.widget.Node} node the node clicked + */ + if (this.tree && !this.tree.hasEvent("labelClick")) { + this.tree.createEvent("labelClick", this.tree); + } + + }, + + /** + * Sets up the node label + * @method setUpLabel + * @param oData string containing the label, or an object with a label property + */ + setUpLabel: function(oData) { + + // set up the custom event on the tree + this.textNodeParentChange(); + this.subscribe("parentChange", this.textNodeParentChange); + + if (typeof oData == "string") { + oData = { label: oData }; + } + this.label = oData.label; + this.data.label = oData.label; + + // update the link + if (oData.href) { + this.href = oData.href; + } + + // set the target + if (oData.target) { + this.target = oData.target; + } + + if (oData.style) { + this.labelStyle = oData.style; + } + + this.labelElId = "ygtvlabelel" + this.index; + }, + + /** + * Returns the label element + * @for YAHOO.widget.TextNode + * @method getLabelEl + * @return {object} the element + */ + getLabelEl: function() { + return document.getElementById(this.labelElId); + }, + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + var sb = []; + + sb[sb.length] = '<table border="0" cellpadding="0" cellspacing="0">'; + sb[sb.length] = '<tr>'; + + for (var i=0;i<this.depth;++i) { + //sb[sb.length] = '<td><div class="' + this.getDepthStyle(i) + '"> </div></td>'; + //sb[sb.length] = '<td><div class="' + this.getDepthStyle(i) + '"></div></td>'; + sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>'; + } + + var getNode = 'YAHOO.widget.TreeView.getNode(\'' + + this.tree.id + '\',' + this.index + ')'; + + sb[sb.length] = '<td'; + // sb[sb.length] = ' onselectstart="return false"'; + sb[sb.length] = ' id="' + this.getToggleElId() + '"'; + sb[sb.length] = ' class="' + this.getStyle() + '"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="this.className='; + sb[sb.length] = getNode + '.getHoverStyle()"'; + sb[sb.length] = ' onmouseout="this.className='; + sb[sb.length] = getNode + '.getStyle()"'; + } + sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '">'; + + sb[sb.length] = '<div class="ygtvspacer">'; + + /* + sb[sb.length] = '<img id="' + this.getSpacerId() + '"'; + sb[sb.length] = ' alt=""'; + sb[sb.length] = ' tabindex=0'; + sb[sb.length] = ' src="' + this.spacerPath + '"'; + sb[sb.length] = ' title="' + this.getStateText() + '"'; + sb[sb.length] = ' class="ygtvspacer"'; + // sb[sb.length] = ' onkeypress="return ' + getNode + '".onKeyPress()"'; + sb[sb.length] = ' />'; + */ + + //sb[sb.length] = ' '; + + sb[sb.length] = '</div>'; + sb[sb.length] = '</td>'; + sb[sb.length] = '<td '; + sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : ''; + sb[sb.length] = ' >'; + sb[sb.length] = '<a'; + sb[sb.length] = ' id="' + this.labelElId + '"'; + sb[sb.length] = ' class="' + this.labelStyle + '"'; + sb[sb.length] = ' href="' + this.href + '"'; + sb[sb.length] = ' target="' + this.target + '"'; + sb[sb.length] = ' onclick="return ' + getNode + '.onLabelClick(' + getNode +')"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="document.getElementById(\''; + sb[sb.length] = this.getToggleElId() + '\').className='; + sb[sb.length] = getNode + '.getHoverStyle()"'; + sb[sb.length] = ' onmouseout="document.getElementById(\''; + sb[sb.length] = this.getToggleElId() + '\').className='; + sb[sb.length] = getNode + '.getStyle()"'; + } + sb[sb.length] = ' >'; + sb[sb.length] = this.label; + sb[sb.length] = '</a>'; + sb[sb.length] = '</td>'; + sb[sb.length] = '</tr>'; + sb[sb.length] = '</table>'; + + return sb.join(""); + }, + + + /** + * Executed when the label is clicked. Fires the labelClick custom event. + * @method onLabelClick + * @param me {Node} this node + * @scope the anchor tag clicked + * @return false to cancel the anchor click + */ + onLabelClick: function(me) { + return me.tree.fireEvent("labelClick", me); + //return true; + }, + + toString: function() { + return "TextNode (" + this.index + ") " + this.label; + } + +}); +/** + * A custom YAHOO.widget.Node that handles the unique nature of + * the virtual, presentationless root node. + * @namespace YAHOO.widget + * @class RootNode + * @extends YAHOO.widget.Node + * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to + * @constructor + */ +YAHOO.widget.RootNode = function(oTree) { + // Initialize the node with null params. The root node is a + // special case where the node has no presentation. So we have + // to alter the standard properties a bit. + this.init(null, null, true); + + /* + * For the root node, we get the tree reference from as a param + * to the constructor instead of from the parent element. + */ + this.tree = oTree; +}; + +YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, { + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + return ""; + }, + + toString: function() { + return "RootNode"; + }, + + loadComplete: function() { + this.tree.draw(); + }, + + collapse: function() {}, + expand: function() {} + +}); +/** + * This implementation takes either a string or object for the + * oData argument. If is it a string, we will use it for the display + * of this node (and it can contain any html code). If the parameter + * is an object, we look for a parameter called "html" that will be + * used for this node's display. + * @namespace YAHOO.widget + * @class HTMLNode + * @extends YAHOO.widget.Node + * @constructor + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @param hasIcon {boolean} specifies whether or not leaf nodes should + * have an icon + */ +YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) { + if (oData) { + this.init(oData, oParent, expanded); + this.initContent(oData, hasIcon); + } +}; + +YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, { + + /** + * The CSS class for the html content container. Defaults to ygtvhtml, but + * can be overridden to provide a custom presentation for a specific node. + * @property contentStyle + * @type string + */ + contentStyle: "ygtvhtml", + + /** + * The generated id that will contain the data passed in by the implementer. + * @property contentElId + * @type string + */ + contentElId: null, + + /** + * The HTML content to use for this node's display + * @property content + * @type string + */ + content: null, + + /** + * Sets up the node label + * @property initContent + * @param {object} An html string or object containing an html property + * @param {boolean} hasIcon determines if the node will be rendered with an + * icon or not + */ + initContent: function(oData, hasIcon) { + if (typeof oData == "string") { + oData = { html: oData }; + } + + this.html = oData.html; + this.contentElId = "ygtvcontentel" + this.index; + this.hasIcon = hasIcon; + + }, + + /** + * Returns the outer html element for this node's content + * @method getContentEl + * @return {HTMLElement} the element + */ + getContentEl: function() { + return document.getElementById(this.contentElId); + }, + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + var sb = []; + + sb[sb.length] = '<table border="0" cellpadding="0" cellspacing="0">'; + sb[sb.length] = '<tr>'; + + for (var i=0;i<this.depth;++i) { + //sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"> </td>'; + sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>'; + } + + if (this.hasIcon) { + sb[sb.length] = '<td'; + sb[sb.length] = ' id="' + this.getToggleElId() + '"'; + sb[sb.length] = ' class="' + this.getStyle() + '"'; + sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '"'; + if (this.hasChildren(true)) { + sb[sb.length] = ' onmouseover="this.className='; + sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; + sb[sb.length] = this.tree.id + '\',' + this.index + ').getHoverStyle()"'; + sb[sb.length] = ' onmouseout="this.className='; + sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; + sb[sb.length] = this.tree.id + '\',' + this.index + ').getStyle()"'; + } + //sb[sb.length] = '> </td>'; + sb[sb.length] = '><div class="ygtvspacer"></div></td>'; + } + + sb[sb.length] = '<td'; + sb[sb.length] = ' id="' + this.contentElId + '"'; + sb[sb.length] = ' class="' + this.contentStyle + '"'; + sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : ''; + sb[sb.length] = ' >'; + sb[sb.length] = this.html; + sb[sb.length] = '</td>'; + sb[sb.length] = '</tr>'; + sb[sb.length] = '</table>'; + + return sb.join(""); + }, + + toString: function() { + return "HTMLNode (" + this.index + ")"; + } + +}); +/** + * A menu-specific implementation that differs from TextNode in that only + * one sibling can be expanded at a time. + * @namespace YAHOO.widget + * @class MenuNode + * @extends YAHOO.widget.TextNode + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @constructor + */ +YAHOO.widget.MenuNode = function(oData, oParent, expanded) { + if (oData) { + this.init(oData, oParent, expanded); + this.setUpLabel(oData); + } + + /* + * Menus usually allow only one branch to be open at a time. + */ + this.multiExpand = false; + + +}; + +YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, { + + toString: function() { + return "MenuNode (" + this.index + ") " + this.label; + } + +}); +/** + * A static factory class for tree view expand/collapse animations + * @class TVAnim + * @static + */ +YAHOO.widget.TVAnim = function() { + return { + /** + * Constant for the fade in animation + * @property FADE_IN + * @type string + * @static + */ + FADE_IN: "TVFadeIn", + + /** + * Constant for the fade out animation + * @property FADE_OUT + * @type string + * @static + */ + FADE_OUT: "TVFadeOut", + + /** + * Returns a ygAnim instance of the given type + * @method getAnim + * @param type {string} the type of animation + * @param el {HTMLElement} the element to element (probably the children div) + * @param callback {function} function to invoke when the animation is done. + * @return {YAHOO.util.Animation} the animation instance + * @static + */ + getAnim: function(type, el, callback) { + if (YAHOO.widget[type]) { + return new YAHOO.widget[type](el, callback); + } else { + return null; + } + }, + + /** + * Returns true if the specified animation class is available + * @method isValid + * @param type {string} the type of animation + * @return {boolean} true if valid, false if not + * @static + */ + isValid: function(type) { + return (YAHOO.widget[type]); + } + }; +} (); + +/** + * A 1/2 second fade-in animation. + * @class TVFadeIn + * @constructor + * @param el {HTMLElement} the element to animate + * @param callback {function} function to invoke when the animation is finished + */ +YAHOO.widget.TVFadeIn = function(el, callback) { + /** + * The element to animate + * @property el + * @type HTMLElement + */ + this.el = el; + + /** + * the callback to invoke when the animation is complete + * @property callback + * @type function + */ + this.callback = callback; + +}; + +YAHOO.widget.TVFadeIn.prototype = { + /** + * Performs the animation + * @method animate + */ + animate: function() { + var tvanim = this; + + var s = this.el.style; + s.opacity = 0.1; + s.filter = "alpha(opacity=10)"; + s.display = ""; + + var dur = 0.4; + var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur); + a.onComplete.subscribe( function() { tvanim.onComplete(); } ); + a.animate(); + }, + + /** + * Clean up and invoke callback + * @method onComplete + */ + onComplete: function() { + this.callback(); + }, + + /** + * toString + * @method toString + * @return {string} the string representation of the instance + */ + toString: function() { + return "TVFadeIn"; + } +}; + +/** + * A 1/2 second fade out animation. + * @class TVFadeOut + * @constructor + * @param el {HTMLElement} the element to animate + * @param callback {Function} function to invoke when the animation is finished + */ +YAHOO.widget.TVFadeOut = function(el, callback) { + /** + * The element to animate + * @property el + * @type HTMLElement + */ + this.el = el; + + /** + * the callback to invoke when the animation is complete + * @property callback + * @type function + */ + this.callback = callback; + +}; + +YAHOO.widget.TVFadeOut.prototype = { + /** + * Performs the animation + * @method animate + */ + animate: function() { + var tvanim = this; + var dur = 0.4; + var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur); + a.onComplete.subscribe( function() { tvanim.onComplete(); } ); + a.animate(); + }, + + /** + * Clean up and invoke callback + * @method onComplete + */ + onComplete: function() { + var s = this.el.style; + s.display = "none"; + // s.opacity = 1; + s.filter = "alpha(opacity=100)"; + this.callback(); + }, + + /** + * toString + * @method toString + * @return {string} the string representation of the instance + */ + toString: function() { + return "TVFadeOut"; + } +}; + +YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/utilities/README b/interface/ispconfig/interface/js/yui/utilities/README new file mode 100644 index 0000000..1f9ef03 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/utilities/README @@ -0,0 +1,36 @@ +utilities.js - Release Notes + +*** NOTE *** + +This document is not updated with each release. Changes to +the utilities.js source are noted in the README +file for each component that comprises this aggregate: + +yahoo/README +dom/README +event/README +connection/README +animation/README +dragdrop/README + +************* + +*** version 0.12.0 *** + +The utilities.js file rolls up all of the YUI utility components into a single +file; it includes the following components: + +* Yahoo Global Object +* Event +* Dom +* Connection Manager +* Animation +* Drag & Drop + +For implementations that use a significant subset of these files, it may prove +more efficient to include utilities.js as opposed to including separate files +for each component. + +Note: If you are require only the Yahoo Global Object, Event Utility and Dom +collection, consider using the special yahoo-event-dom.js aggregate instead. + diff --git a/interface/ispconfig/interface/js/yui/utilities/utilities.js b/interface/ispconfig/interface/js/yui/utilities/utilities.js new file mode 100644 index 0000000..3732247 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/utilities/utilities.js @@ -0,0 +1,418 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +if(typeof YAHOO=="undefined"){var YAHOO={};} +YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}} +return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}} +if(unique){ls.push(l);}}}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};} +var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);} +if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:function(name){return YAHOO.env.modules[name]||null;}};YAHOO.lang={isArray:function(obj){if(obj.constructor&&obj.constructor.toString().indexOf('Array')>-1){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return typeof obj=='object'||YAHOO.lang.isFunction(obj);},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);} +return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;} +if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.0",build:"127"}); +(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;} +if(propertyCache[property]){return propertyCache[property];} +while(patterns.HYPHEN.exec(property)){property=property.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());} +propertyCache[property]=property;return property;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];} +return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}} +return val/100;break;default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};} +if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(typeof el.style.filter=='string'){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}} +break;default:el.style[property]=val;}};}else{setStyle=function(el,property,val){el.style[property]=val;};} +YAHOO.util.Dom={get:function(el){if(!el){return null;} +if(typeof el!='string'&&!(el instanceof Array)){return el;} +if(typeof el=='string'){return document.getElementById(el);} +else{var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=Y.Dom.get(el[i]);} +return collection;} +return null;},getStyle:function(el,property){property=toCamel(property);var f=function(element){return getStyle(element,property);};return Y.Dom.batch(el,f,Y.Dom,true);},setStyle:function(el,property,val){property=toCamel(property);var f=function(element){setStyle(element,property,val);};Y.Dom.batch(el,f,Y.Dom,true);},getXY:function(el){var f=function(el){if(el.parentNode===null||el.offsetParent===null||this.getStyle(el,'display')=='none'){return false;} +var parentNode=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var doc=document;if(!this.inDocument(el)&&parent.document!=document){doc=parent.document;if(!this.isAncestor(doc.documentElement,el)){return false;}} +var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);return[box.left+scrollLeft,box.top+scrollTop];} +else{pos=[el.offsetLeft,el.offsetTop];parentNode=el.offsetParent;if(parentNode!=el){while(parentNode){pos[0]+=parentNode.offsetLeft;pos[1]+=parentNode.offsetTop;parentNode=parentNode.offsetParent;}} +if(isSafari&&this.getStyle(el,'position')=='absolute'){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}} +if(el.parentNode){parentNode=el.parentNode;} +else{parentNode=null;} +while(parentNode&&parentNode.tagName.toUpperCase()!='BODY'&&parentNode.tagName.toUpperCase()!='HTML') +{if(Y.Dom.getStyle(parentNode,'display')!='inline'){pos[0]-=parentNode.scrollLeft;pos[1]-=parentNode.scrollTop;} +if(parentNode.parentNode){parentNode=parentNode.parentNode;}else{parentNode=null;}} +return pos;};return Y.Dom.batch(el,f,Y.Dom,true);},getX:function(el){var f=function(el){return Y.Dom.getXY(el)[0];};return Y.Dom.batch(el,f,Y.Dom,true);},getY:function(el){var f=function(el){return Y.Dom.getXY(el)[1];};return Y.Dom.batch(el,f,Y.Dom,true);},setXY:function(el,pos,noRetry){var f=function(el){var style_pos=this.getStyle(el,'position');if(style_pos=='static'){this.setStyle(el,'position','relative');style_pos='relative';} +var pageXY=this.getXY(el);if(pageXY===false){return false;} +var delta=[parseInt(this.getStyle(el,'left'),10),parseInt(this.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;} +if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;} +if(pos[0]!==null){el.style.left=pos[0]-pageXY[0]+delta[0]+'px';} +if(pos[1]!==null){el.style.top=pos[1]-pageXY[1]+delta[1]+'px';} +if(!noRetry){var newXY=this.getXY(el);if((pos[0]!==null&&newXY[0]!=pos[0])||(pos[1]!==null&&newXY[1]!=pos[1])){this.setXY(el,pos,true);}}};Y.Dom.batch(el,f,Y.Dom,true);},setX:function(el,x){Y.Dom.setXY(el,[x,null]);},setY:function(el,y){Y.Dom.setXY(el,[null,y]);},getRegion:function(el){var f=function(el){var region=new Y.Region.getRegion(el);return region;};return Y.Dom.batch(el,f,Y.Dom,true);},getClientWidth:function(){return Y.Dom.getViewportWidth();},getClientHeight:function(){return Y.Dom.getViewportHeight();},getElementsByClassName:function(className,tag,root){var method=function(el){return Y.Dom.hasClass(el,className);};return Y.Dom.getElementsBy(method,tag,root);},hasClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var f=function(el){return re.test(el['className']);};return Y.Dom.batch(el,f,Y.Dom,true);},addClass:function(el,className){var f=function(el){if(this.hasClass(el,className)){return;} +el['className']=[el['className'],className].join(' ');};Y.Dom.batch(el,f,Y.Dom,true);},removeClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,className)){return;} +var c=el['className'];el['className']=c.replace(re,' ');if(this.hasClass(el,className)){this.removeClass(el,className);}};Y.Dom.batch(el,f,Y.Dom,true);},replaceClass:function(el,oldClassName,newClassName){if(oldClassName===newClassName){return false;} +var re=new RegExp('(?:^|\\s+)'+oldClassName+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,oldClassName)){this.addClass(el,newClassName);return;} +el['className']=el['className'].replace(re,' '+newClassName+' ');if(this.hasClass(el,oldClassName)){this.replaceClass(el,oldClassName,newClassName);}};Y.Dom.batch(el,f,Y.Dom,true);},generateId:function(el,prefix){prefix=prefix||'yui-gen';el=el||{};var f=function(el){if(el){el=Y.Dom.get(el);}else{el={};} +if(!el.id){el.id=prefix+id_counter++;} +return el.id;};return Y.Dom.batch(el,f,Y.Dom,true);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;} +var f=function(needle){if(haystack.contains&&!isSafari){return haystack.contains(needle);} +else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);} +else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;} +else if(!parent.tagName||parent.tagName.toUpperCase()=='HTML'){return false;} +parent=parent.parentNode;} +return false;}};return Y.Dom.batch(needle,f,Y.Dom,true);},inDocument:function(el){var f=function(el){return this.isAncestor(document.documentElement,el);};return Y.Dom.batch(el,f,Y.Dom,true);},getElementsBy:function(method,tag,root){tag=tag||'*';var nodes=[];if(root){root=Y.Dom.get(root);if(!root){return nodes;}}else{root=document;} +var elements=root.getElementsByTagName(tag);if(!elements.length&&(tag=='*'&&root.all)){elements=root.all;} +for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}} +return nodes;},batch:function(el,method,o,override){var id=el;el=Y.Dom.get(el);var scope=(override)?o:window;if(!el||el.tagName||!el.length){if(!el){return false;} +return method.call(scope,el,o);} +var collection=[];for(var i=0,len=el.length;i<len;++i){if(!el[i]){id=el[i];} +collection[collection.length]=method.call(scope,el[i],o);} +return collection;},getDocumentHeight:function(){var scrollHeight=(document.compatMode!='CSS1Compat')?document.body.scrollHeight:document.documentElement.scrollHeight;var h=Math.max(scrollHeight,Y.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var scrollWidth=(document.compatMode!='CSS1Compat')?document.body.scrollWidth:document.documentElement.scrollWidth;var w=Math.max(scrollWidth,Y.Dom.getViewportWidth());return w;},getViewportHeight:function(){var height=self.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=(mode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;} +return height;},getViewportWidth:function(){var width=self.innerWidth;var mode=document.compatMode;if(mode||isIE){width=(mode=='CSS1Compat')?document.documentElement.clientWidth:document.body.clientWidth;} +return width;}};})();YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];} +this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.0",build:"127"}); +if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var lastError=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];} +return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var self=this;var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override){if(!fn||!fn.call){return false;} +if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=this.on(el[i],sType,fn,obj,override)&&ok;} +return ok;}else if(typeof el=="string"){var oEl=this.getEl(el);if(oEl){el=oEl;}else{this.onAvailable(el,function(){YAHOO.util.Event.on(el,sType,fn,obj,override);});return true;}} +if(!el){return false;} +if("unload"==sType&&obj!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,obj,override];return true;} +var scope=el;if(override){if(override===true){scope=obj;}else{scope=override;}} +var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),obj);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1||el!=legacyEvents[legacyIndex][0]){legacyIndex=legacyEvents.length;legacyMap[el.id+sType]=legacyIndex;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};} +legacyHandlers[legacyIndex].push(li);}else{try{this._simpleAdd(el,sType,wrappedFn,false);}catch(ex){this.lastError=ex;this.removeListener(el,sType,fn);return false;}} +return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true,le,lh,li,scope,ret;lh=legacyHandlers[legacyIndex];for(var i=0,len=lh.length;i<len;++i){li=lh[i];if(li&&li[this.WFN]){scope=li[this.ADJ_SCOPE];ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}} +le=legacyEvents[legacyIndex];if(le&&le[2]){le[2](e);} +return ok;},getLegacyIndex:function(el,sType){var key=this.generateId(el)+sType;if(typeof legacyMap[key]=="undefined"){return-1;}else{return legacyMap[key];}},useLegacyEvent:function(el,sType){if(this.webkit&&("click"==sType||"dblclick"==sType)){var v=parseInt(this.webkit,10);if(!isNaN(v)&&v<418){return true;}} +return false;},removeListener:function(el,sType,fn){var i,len;if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);} +return ok;} +if(!fn||!fn.call){return this.purgeElement(el,false,sType);} +if("unload"==sType){for(i=0,len=unloadListeners.length;i<len;i++){var li=unloadListeners[i];if(li&&li[0]==el&&li[1]==sType&&li[2]==fn){unloadListeners.splice(i,1);return true;}} +return false;} +var cacheItem=null;var index=arguments[3];if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);} +if(index>=0){cacheItem=listeners[index];} +if(!el||!cacheItem){return false;} +if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i<len;++i){li=llist[i];if(li&&li[this.EL]==el&&li[this.TYPE]==sType&&li[this.FN]==fn){llist.splice(i,1);break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}} +delete listeners[index][this.WFN];delete listeners[index][this.FN];listeners.splice(index,1);return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}} +return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}} +return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}} +return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}} +return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;} +c=c.caller;}} +return ev;},getCharCode:function(ev){return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,sType,fn){for(var i=0,len=listeners.length;i<len;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}} +return-1;},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;} +return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},_load:function(e){loadComplete=true;var EU=YAHOO.util.Event;if(this.isIE){EU._simpleRemove(window,"load",EU._load);}},_tryPreloadAttach:function(){if(this.locked){return false;} +this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);} +var notAvail=[];for(var i=0,len=onAvailStack.length;i<len;++i){var item=onAvailStack[i];if(item){var el=this.getEl(item.id);if(el){if(!item.checkReady||loadComplete||el.nextSibling||(document&&document.body)){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}} +item.fn.call(scope,item.obj);onAvailStack[i]=null;}}else{notAvail.push(item);}}} +retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;} +this.locked=false;return true;},purgeElement:function(el,recurse,sType){var elListeners=this.getListeners(el,sType);if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn);}} +if(recurse&&el&&el.childNodes){for(i=0,len=el.childNodes.length;i<len;++i){this.purgeElement(el.childNodes[i],recurse,sType);}}},getListeners:function(el,sType){var results=[],searchLists;if(!sType){searchLists=[listeners,unloadListeners];}else if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners];} +for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}} +return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}} +l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}} +unloadListeners=null;if(listeners&&listeners.length>0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);} +j=j-1;} +l=null;EU.clearCache();} +for(i=0,len=legacyEvents.length;i<len;++i){legacyEvents[i][0]=null;legacyEvents[i]=null;} +legacyEvents=null;EU._simpleRemove(window,"unload",EU._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(document&&document.body){EU._load();}else{EU._simpleAdd(window,"load",EU._load);} +EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();} +YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){} +var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);} +this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();} +var found=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}} +return found;},fire:function(){var len=this.subscribers.length;if(!len&&this.silent){return true;} +var args=[],ret=true,i;for(i=0;i<arguments.length;++i){args.push(arguments[i]);} +var argslength=args.length;if(!this.silent){} +for(i=0;i<len;++i){var s=this.subscribers[i];if(s){if(!this.silent){} +var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];} +ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);} +if(false===ret){if(!this.silent){} +return false;}}} +return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);} +return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;} +this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}} +return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];} +subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);} +this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}} +return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);} +return ce.fire.apply(ce,args);}else{return null;}},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}} +return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else if(!keyData){}else if(!handler){} +if(!event){event=YAHOO.util.KeyListener.KEYDOWN;} +var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);} +if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);} +function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;} +if(!keyData.alt){keyData.alt=false;} +if(!keyData.ctrl){keyData.ctrl=false;} +if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}} +this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);} +this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);} +this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+ +(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.0",build:"127"});YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,setProgId:function(id) +{this._msxml_progid.unshift(id);},setDefaultPostHeader:function(b) +{this._use_default_post_header=b;},setDefaultXhrHeader:function(b) +{this._use_default_xhr_header=b;},setPollingInterval:function(i) +{if(typeof i=='number'&&isFinite(i)){this._polling_interval=i;}},createXhrObject:function(transactionId) +{var obj,http;try +{http=new XMLHttpRequest();obj={conn:http,tId:transactionId};} +catch(e) +{for(var i=0;i<this._msxml_progid.length;++i){try +{http=new ActiveXObject(this._msxml_progid[i]);obj={conn:http,tId:transactionId};break;} +catch(e){}}} +finally +{return obj;}},getConnectionObject:function() +{var o;var tId=this._transaction_id;try +{o=this.createXhrObject(tId);if(o){this._transaction_id++;}} +catch(e){} +finally +{return o;}},asyncRequest:function(method,uri,callback,postData) +{var o=this.getConnectionObject();if(!o){return null;} +else{if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(o.tId,callback,uri,postData);this.releaseObject(o);return;} +if(method.toUpperCase()=='GET'){if(this._sFormData.length!=0){uri+=((uri.indexOf('?')==-1)?'?':'&')+this._sFormData;} +else{uri+="?"+this._sFormData;}} +else if(method.toUpperCase()=='POST'){postData=postData?this._sFormData+"&"+postData:this._sFormData;}} +o.conn.open(method,uri,true);if(this._use_default_xhr_header){if(!this._default_headers['X-Requested-With']){this.initHeader('X-Requested-With',this._default_xhr_header,true);}} +if(this._isFormSubmit||(postData&&this._use_default_post_header)){this.initHeader('Content-Type',this._default_post_header);if(this._isFormSubmit){this.resetFormState();}} +if(this._has_default_headers||this._has_http_headers){this.setHeader(o);} +this.handleReadyState(o,callback);o.conn.send(postData||null);return o;}},handleReadyState:function(o,callback) +{var oConn=this;if(callback&&callback.timeout){this._timeOut[o.tId]=window.setTimeout(function(){oConn.abort(o,callback,true);},callback.timeout);} +this._poll[o.tId]=window.setInterval(function(){if(o.conn&&o.conn.readyState==4){window.clearInterval(oConn._poll[o.tId]);delete oConn._poll[o.tId];if(callback&&callback.timeout){delete oConn._timeOut[o.tId];} +oConn.handleTransactionResponse(o,callback);}},this._polling_interval);},handleTransactionResponse:function(o,callback,isAbort) +{if(!callback){this.releaseObject(o);return;} +var httpStatus,responseObject;try +{if(o.conn.status!==undefined&&o.conn.status!=0){httpStatus=o.conn.status;} +else{httpStatus=13030;}} +catch(e){httpStatus=13030;} +if(httpStatus>=200&&httpStatus<300){responseObject=this.createResponseObject(o,callback.argument);if(callback.success){if(!callback.scope){callback.success(responseObject);} +else{callback.success.apply(callback.scope,[responseObject]);}}} +else{switch(httpStatus){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:responseObject=this.createExceptionObject(o.tId,callback.argument,(isAbort?isAbort:false));if(callback.failure){if(!callback.scope){callback.failure(responseObject);} +else{callback.failure.apply(callback.scope,[responseObject]);}} +break;default:responseObject=this.createResponseObject(o,callback.argument);if(callback.failure){if(!callback.scope){callback.failure(responseObject);} +else{callback.failure.apply(callback.scope,[responseObject]);}}}} +this.releaseObject(o);responseObject=null;},createResponseObject:function(o,callbackArg) +{var obj={};var headerObj={};try +{var headerStr=o.conn.getAllResponseHeaders();var header=headerStr.split('\n');for(var i=0;i<header.length;i++){var delimitPos=header[i].indexOf(':');if(delimitPos!=-1){headerObj[header[i].substring(0,delimitPos)]=header[i].substring(delimitPos+2);}}} +catch(e){} +obj.tId=o.tId;obj.status=o.conn.status;obj.statusText=o.conn.statusText;obj.getResponseHeader=headerObj;obj.getAllResponseHeaders=headerStr;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof callbackArg!==undefined){obj.argument=callbackArg;} +return obj;},createExceptionObject:function(tId,callbackArg,isAbort) +{var COMM_CODE=0;var COMM_ERROR='communication failure';var ABORT_CODE=-1;var ABORT_ERROR='transaction aborted';var obj={};obj.tId=tId;if(isAbort){obj.status=ABORT_CODE;obj.statusText=ABORT_ERROR;} +else{obj.status=COMM_CODE;obj.statusText=COMM_ERROR;} +if(callbackArg){obj.argument=callbackArg;} +return obj;},initHeader:function(label,value,isDefault) +{var headerObj=(isDefault)?this._default_headers:this._http_headers;if(headerObj[label]===undefined){headerObj[label]=value;} +else{headerObj[label]=value+","+headerObj[label];} +if(isDefault){this._has_default_headers=true;} +else{this._has_http_headers=true;}},setHeader:function(o) +{if(this._has_default_headers){for(var prop in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,prop)){o.conn.setRequestHeader(prop,this._default_headers[prop]);}}} +if(this._has_http_headers){for(var prop in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,prop)){o.conn.setRequestHeader(prop,this._http_headers[prop]);}} +delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers +this._default_headers={};this._has_default_headers=false;},setForm:function(formId,isUpload,secureUri) +{this.resetFormState();var oForm;if(typeof formId=='string'){oForm=(document.getElementById(formId)||document.forms[formId]);} +else if(typeof formId=='object'){oForm=formId;} +else{return;} +if(isUpload){this.createFrame(secureUri?secureUri:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=oForm;return;} +var oElement,oName,oValue,oDisabled;var hasSubmit=false;for(var i=0;i<oForm.elements.length;i++){oElement=oForm.elements[i];oDisabled=oForm.elements[i].disabled;oName=oForm.elements[i].name;oValue=oForm.elements[i].value;if(!oDisabled&&oName) +{switch(oElement.type) +{case'select-one':case'select-multiple':for(var j=0;j<oElement.options.length;j++){if(oElement.options[j].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';} +else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}} +break;case'radio':case'checkbox':if(oElement.checked){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';} +break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit==false){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';hasSubmit=true;} +break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';break;}}} +this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(secureUri){var frameId='yuiIO'+this._transaction_id;if(window.ActiveXObject){var io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof secureUri=='boolean'){io.src='javascript:false';} +else if(typeof secureURI=='string'){io.src=secureUri;}} +else{var io=document.createElement('iframe');io.id=frameId;io.name=frameId;} +io.style.position='absolute';io.style.top='-1000px';io.style.left='-1000px';document.body.appendChild(io);},appendPostData:function(postData) +{var formElements=[];var postMessage=postData.split('&');for(var i=0;i<postMessage.length;i++){var delimitPos=postMessage[i].indexOf('=');if(delimitPos!=-1){formElements[i]=document.createElement('input');formElements[i].type='hidden';formElements[i].name=postMessage[i].substring(0,delimitPos);formElements[i].value=postMessage[i].substring(delimitPos+1);this._formNode.appendChild(formElements[i]);}} +return formElements;},uploadFile:function(id,callback,uri,postData){var frameId='yuiIO'+id;var uploadEncoding='multipart/form-data';var io=document.getElementById(frameId);this._formNode.action=uri;this._formNode.method='POST';this._formNode.target=frameId;if(this._formNode.encoding){this._formNode.encoding=uploadEncoding;} +else{this._formNode.enctype=uploadEncoding;} +if(postData){var oElements=this.appendPostData(postData);} +this._formNode.submit();if(oElements&&oElements.length>0){for(var i=0;i<oElements.length;i++){this._formNode.removeChild(oElements[i]);}} +this.resetFormState();var uploadCallback=function() +{var obj={};obj.tId=id;obj.argument=callback.argument;try +{obj.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;obj.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;} +catch(e){} +if(callback&&callback.upload){if(!callback.scope){callback.upload(obj);} +else{callback.upload.apply(callback.scope,[obj]);}} +if(YAHOO.util.Event){YAHOO.util.Event.removeListener(io,"load",uploadCallback);} +else if(window.detachEvent){io.detachEvent('onload',uploadCallback);} +else{io.removeEventListener('load',uploadCallback,false);} +setTimeout(function(){document.body.removeChild(io);},100);};if(YAHOO.util.Event){YAHOO.util.Event.addListener(io,"load",uploadCallback);} +else if(window.attachEvent){io.attachEvent('onload',uploadCallback);} +else{io.addEventListener('load',uploadCallback,false);}},abort:function(o,callback,isTimeout) +{if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this._poll[o.tId]);delete this._poll[o.tId];if(isTimeout){delete this._timeOut[o.tId];} +this.handleTransactionResponse(o,callback,true);return true;} +else{return false;}},isCallInProgress:function(o) +{if(o.conn){return o.conn.readyState!=4&&o.conn.readyState!=0;} +else{return false;}},releaseObject:function(o) +{o.conn=null;o=null;}}; +YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"}); +YAHOO.util.Anim=function(el,attributes,duration,method){if(el){this.init(el,attributes,duration,method);}};YAHOO.util.Anim.prototype={toString:function(){var el=this.getEl();var id=el.id||el.tagName;return("Anim "+id);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(attr,start,end){return this.method(this.currentFrame,start,end-start,this.totalFrames);},setAttribute:function(attr,val,unit){if(this.patterns.noNegatives.test(attr)){val=(val>0)?val:0;} +YAHOO.util.Dom.setStyle(this.getEl(),attr,val+unit);},getAttribute:function(attr){var el=this.getEl();var val=YAHOO.util.Dom.getStyle(el,attr);if(val!=='auto'&&!this.patterns.offsetUnit.test(val)){return parseFloat(val);} +var a=this.patterns.offsetAttribute.exec(attr)||[];var pos=!!(a[3]);var box=!!(a[2]);if(box||(YAHOO.util.Dom.getStyle(el,'position')=='absolute'&&pos)){val=el['offset'+a[0].charAt(0).toUpperCase()+a[0].substr(1)];}else{val=0;} +return val;},getDefaultUnit:function(attr){if(this.patterns.defaultUnit.test(attr)){return'px';} +return'';},setRuntimeAttribute:function(attr){var start;var end;var attributes=this.attributes;this.runtimeAttributes[attr]={};var isset=function(prop){return(typeof prop!=='undefined');};if(!isset(attributes[attr]['to'])&&!isset(attributes[attr]['by'])){return false;} +start=(isset(attributes[attr]['from']))?attributes[attr]['from']:this.getAttribute(attr);if(isset(attributes[attr]['to'])){end=attributes[attr]['to'];}else if(isset(attributes[attr]['by'])){if(start.constructor==Array){end=[];for(var i=0,len=start.length;i<len;++i){end[i]=start[i]+attributes[attr]['by'][i];}}else{end=start+attributes[attr]['by'];}} +this.runtimeAttributes[attr].start=start;this.runtimeAttributes[attr].end=end;this.runtimeAttributes[attr].unit=(isset(attributes[attr].unit))?attributes[attr]['unit']:this.getDefaultUnit(attr);},init:function(el,attributes,duration,method){var isAnimated=false;var startTime=null;var actualFrames=0;el=YAHOO.util.Dom.get(el);this.attributes=attributes||{};this.duration=duration||1;this.method=method||YAHOO.util.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=YAHOO.util.AnimMgr.fps;this.getEl=function(){return el;};this.isAnimated=function(){return isAnimated;};this.getStartTime=function(){return startTime;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;} +this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(YAHOO.util.AnimMgr.fps*this.duration):this.duration;YAHOO.util.AnimMgr.registerElement(this);};this.stop=function(finish){if(finish){this.currentFrame=this.totalFrames;this._onTween.fire();} +YAHOO.util.AnimMgr.stop(this);};var onStart=function(){this.onStart.fire();this.runtimeAttributes={};for(var attr in this.attributes){this.setRuntimeAttribute(attr);} +isAnimated=true;actualFrames=0;startTime=new Date();};var onTween=function(){var data={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};data.toString=function(){return('duration: '+data.duration+', currentFrame: '+data.currentFrame);};this.onTween.fire(data);var runtimeAttributes=this.runtimeAttributes;for(var attr in runtimeAttributes){this.setAttribute(attr,this.doMethod(attr,runtimeAttributes[attr].start,runtimeAttributes[attr].end),runtimeAttributes[attr].unit);} +actualFrames+=1;};var onComplete=function(){var actual_duration=(new Date()-startTime)/1000;var data={duration:actual_duration,frames:actualFrames,fps:actualFrames/actual_duration};data.toString=function(){return('duration: '+data.duration+', frames: '+data.frames+', fps: '+data.fps);};isAnimated=false;actualFrames=0;this.onComplete.fire(data);};this._onStart=new YAHOO.util.CustomEvent('_start',this,true);this.onStart=new YAHOO.util.CustomEvent('start',this);this.onTween=new YAHOO.util.CustomEvent('tween',this);this._onTween=new YAHOO.util.CustomEvent('_tween',this,true);this.onComplete=new YAHOO.util.CustomEvent('complete',this);this._onComplete=new YAHOO.util.CustomEvent('_complete',this,true);this._onStart.subscribe(onStart);this._onTween.subscribe(onTween);this._onComplete.subscribe(onComplete);}};YAHOO.util.AnimMgr=new function(){var thread=null;var queue=[];var tweenCount=0;this.fps=1000;this.delay=1;this.registerElement=function(tween){queue[queue.length]=tween;tweenCount+=1;tween._onStart.fire();this.start();};this.unRegister=function(tween,index){tween._onComplete.fire();index=index||getIndex(tween);if(index!=-1){queue.splice(index,1);} +tweenCount-=1;if(tweenCount<=0){this.stop();}};this.start=function(){if(thread===null){thread=setInterval(this.run,this.delay);}};this.stop=function(tween){if(!tween){clearInterval(thread);for(var i=0,len=queue.length;i<len;++i){if(queue[0].isAnimated()){this.unRegister(queue[0],0);}} +queue=[];thread=null;tweenCount=0;} +else{this.unRegister(tween);}};this.run=function(){for(var i=0,len=queue.length;i<len;++i){var tween=queue[i];if(!tween||!tween.isAnimated()){continue;} +if(tween.currentFrame<tween.totalFrames||tween.totalFrames===null) +{tween.currentFrame+=1;if(tween.useSeconds){correctFrame(tween);} +tween._onTween.fire();} +else{YAHOO.util.AnimMgr.stop(tween,i);}}};var getIndex=function(anim){for(var i=0,len=queue.length;i<len;++i){if(queue[i]==anim){return i;}} +return-1;};var correctFrame=function(tween){var frames=tween.totalFrames;var frame=tween.currentFrame;var expected=(tween.currentFrame*tween.duration*1000/tween.totalFrames);var elapsed=(new Date()-tween.getStartTime());var tweak=0;if(elapsed<tween.duration*1000){tweak=Math.round((elapsed/expected-1)*tween.currentFrame);}else{tweak=frames-(frame+1);} +if(tweak>0&&isFinite(tweak)){if(tween.currentFrame+tweak>=frames){tweak=frames-(frame+1);} +tween.currentFrame+=tweak;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(points,t){var n=points.length;var tmp=[];for(var i=0;i<n;++i){tmp[i]=[points[i][0],points[i][1]];} +for(var j=1;j<n;++j){for(i=0;i<n-j;++i){tmp[i][0]=(1-t)*tmp[i][0]+t*tmp[parseInt(i+1,10)][0];tmp[i][1]=(1-t)*tmp[i][1]+t*tmp[parseInt(i+1,10)][1];}} +return[tmp[0][0],tmp[0][1]];};};(function(){YAHOO.util.ColorAnim=function(el,attributes,duration,method){YAHOO.util.ColorAnim.superclass.constructor.call(this,el,attributes,duration,method);};YAHOO.extend(YAHOO.util.ColorAnim,YAHOO.util.Anim);var Y=YAHOO.util;var superclass=Y.ColorAnim.superclass;var proto=Y.ColorAnim.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("ColorAnim "+id);};proto.patterns.color=/color$/i;proto.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;proto.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;proto.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;proto.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;proto.parseColor=function(s){if(s.length==3){return s;} +var c=this.patterns.hex.exec(s);if(c&&c.length==4){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];} +c=this.patterns.rgb.exec(s);if(c&&c.length==4){return[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)];} +c=this.patterns.hex3.exec(s);if(c&&c.length==4){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];} +return null;};proto.getAttribute=function(attr){var el=this.getEl();if(this.patterns.color.test(attr)){var val=YAHOO.util.Dom.getStyle(el,attr);if(this.patterns.transparent.test(val)){var parent=el.parentNode;val=Y.Dom.getStyle(parent,attr);while(parent&&this.patterns.transparent.test(val)){parent=parent.parentNode;val=Y.Dom.getStyle(parent,attr);if(parent.tagName.toUpperCase()=='HTML'){val='#fff';}}}}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.doMethod=function(attr,start,end){var val;if(this.patterns.color.test(attr)){val=[];for(var i=0,len=start.length;i<len;++i){val[i]=superclass.doMethod.call(this,attr,start[i],end[i]);} +val='rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';} +else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.setRuntimeAttribute=function(attr){superclass.setRuntimeAttribute.call(this,attr);if(this.patterns.color.test(attr)){var attributes=this.attributes;var start=this.parseColor(this.runtimeAttributes[attr].start);var end=this.parseColor(this.runtimeAttributes[attr].end);if(typeof attributes[attr]['to']==='undefined'&&typeof attributes[attr]['by']!=='undefined'){end=this.parseColor(attributes[attr].by);for(var i=0,len=start.length;i<len;++i){end[i]=start[i]+end[i];}} +this.runtimeAttributes[attr].start=start;this.runtimeAttributes[attr].end=end;}};})();YAHOO.util.Easing={easeNone:function(t,b,c,d){return c*t/d+b;},easeIn:function(t,b,c,d){return c*(t/=d)*t+b;},easeOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeBoth:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;} +return-c/2*((--t)*(t-2)-1)+b;},easeInStrong:function(t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutStrong:function(t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeBothStrong:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b;} +return-c/2*((t-=2)*t*t*t-2)+b;},elasticIn:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d)==1){return b+c;} +if(!p){p=d*.3;} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},elasticOut:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d)==1){return b+c;} +if(!p){p=d*.3;} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},elasticBoth:function(t,b,c,d,a,p){if(t==0){return b;} +if((t/=d/2)==2){return b+c;} +if(!p){p=d*(.3*1.5);} +if(!a||a<Math.abs(c)){a=c;var s=p/4;} +else{var s=p/(2*Math.PI)*Math.asin(c/a);} +if(t<1){return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;} +return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},backIn:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +return c*(t/=d)*t*((s+1)*t-s)+b;},backOut:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},backBoth:function(t,b,c,d,s){if(typeof s=='undefined'){s=1.70158;} +if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;} +return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},bounceIn:function(t,b,c,d){return c-YAHOO.util.Easing.bounceOut(d-t,0,c,d)+b;},bounceOut:function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;} +return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;},bounceBoth:function(t,b,c,d){if(t<d/2){return YAHOO.util.Easing.bounceIn(t*2,0,c,d)*.5+b;} +return YAHOO.util.Easing.bounceOut(t*2-d,0,c,d)*.5+c*.5+b;}};(function(){YAHOO.util.Motion=function(el,attributes,duration,method){if(el){YAHOO.util.Motion.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Motion,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Motion.superclass;var proto=Y.Motion.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Motion "+id);};proto.patterns.points=/^points$/i;proto.setAttribute=function(attr,val,unit){if(this.patterns.points.test(attr)){unit=unit||'px';superclass.setAttribute.call(this,'left',val[0],unit);superclass.setAttribute.call(this,'top',val[1],unit);}else{superclass.setAttribute.call(this,attr,val,unit);}};proto.getAttribute=function(attr){if(this.patterns.points.test(attr)){var val=[superclass.getAttribute.call(this,'left'),superclass.getAttribute.call(this,'top')];}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.doMethod=function(attr,start,end){var val=null;if(this.patterns.points.test(attr)){var t=this.method(this.currentFrame,0,100,this.totalFrames)/100;val=Y.Bezier.getPosition(this.runtimeAttributes[attr],t);}else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.setRuntimeAttribute=function(attr){if(this.patterns.points.test(attr)){var el=this.getEl();var attributes=this.attributes;var start;var control=attributes['points']['control']||[];var end;var i,len;if(control.length>0&&!(control[0]instanceof Array)){control=[control];}else{var tmp=[];for(i=0,len=control.length;i<len;++i){tmp[i]=control[i];} +control=tmp;} +if(Y.Dom.getStyle(el,'position')=='static'){Y.Dom.setStyle(el,'position','relative');} +if(isset(attributes['points']['from'])){Y.Dom.setXY(el,attributes['points']['from']);} +else{Y.Dom.setXY(el,Y.Dom.getXY(el));} +start=this.getAttribute('points');if(isset(attributes['points']['to'])){end=translateValues.call(this,attributes['points']['to'],start);var pageXY=Y.Dom.getXY(this.getEl());for(i=0,len=control.length;i<len;++i){control[i]=translateValues.call(this,control[i],start);}}else if(isset(attributes['points']['by'])){end=[start[0]+attributes['points']['by'][0],start[1]+attributes['points']['by'][1]];for(i=0,len=control.length;i<len;++i){control[i]=[start[0]+control[i][0],start[1]+control[i][1]];}} +this.runtimeAttributes[attr]=[start];if(control.length>0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(control);} +this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;} +else{superclass.setRuntimeAttribute.call(this,attr);}};var translateValues=function(val,start){var pageXY=Y.Dom.getXY(this.getEl());val=[val[0]-pageXY[0]+start[0],val[1]-pageXY[1]+start[1]];return val;};var isset=function(prop){return(typeof prop!=='undefined');};})();(function(){YAHOO.util.Scroll=function(el,attributes,duration,method){if(el){YAHOO.util.Scroll.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Scroll,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Scroll.superclass;var proto=Y.Scroll.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};proto.doMethod=function(attr,start,end){var val=null;if(attr=='scroll'){val=[this.method(this.currentFrame,start[0],end[0]-start[0],this.totalFrames),this.method(this.currentFrame,start[1],end[1]-start[1],this.totalFrames)];}else{val=superclass.doMethod.call(this,attr,start,end);} +return val;};proto.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=='scroll'){val=[el.scrollLeft,el.scrollTop];}else{val=superclass.getAttribute.call(this,attr);} +return val;};proto.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=='scroll'){el.scrollLeft=val[0];el.scrollTop=val[1];}else{superclass.setAttribute.call(this,attr,val,unit);}};})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.2.0",build:"127"}); +if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var Event=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initalized:false,locked:false,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(sMethod,args){for(var i in this.ids){for(var j in this.ids[i]){var oDD=this.ids[i][j];if(!this.isTypeOfDD(oDD)){continue;} +oDD[sMethod].apply(oDD,args);}}},_onLoad:function(){this.init();Event.on(document,"mouseup",this.handleMouseUp,this,true);Event.on(document,"mousemove",this.handleMouseMove,this,true);Event.on(window,"unload",this._onUnload,this,true);Event.on(window,"resize",this._onResize,this,true);},_onResize:function(e){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(oDD,sGroup){if(!this.initialized){this.init();} +if(!this.ids[sGroup]){this.ids[sGroup]={};} +this.ids[sGroup][oDD.id]=oDD;},removeDDFromGroup:function(oDD,sGroup){if(!this.ids[sGroup]){this.ids[sGroup]={};} +var obj=this.ids[sGroup];if(obj&&obj[oDD.id]){delete obj[oDD.id];}},_remove:function(oDD){for(var g in oDD.groups){if(g&&this.ids[g][oDD.id]){delete this.ids[g][oDD.id];}} +delete this.handleIds[oDD.id];},regHandle:function(sDDId,sHandleId){if(!this.handleIds[sDDId]){this.handleIds[sDDId]={};} +this.handleIds[sDDId][sHandleId]=sHandleId;},isDragDrop:function(id){return(this.getDDById(id))?true:false;},getRelated:function(p_oDD,bTargetsOnly){var oDDs=[];for(var i in p_oDD.groups){for(j in this.ids[i]){var dd=this.ids[i][j];if(!this.isTypeOfDD(dd)){continue;} +if(!bTargetsOnly||dd.isTarget){oDDs[oDDs.length]=dd;}}} +return oDDs;},isLegalTarget:function(oDD,oTargetDD){var targets=this.getRelated(oDD,true);for(var i=0,len=targets.length;i<len;++i){if(targets[i].id==oTargetDD.id){return true;}} +return false;},isTypeOfDD:function(oDD){return(oDD&&oDD.__ygDragDrop);},isHandle:function(sDDId,sHandleId){return(this.handleIds[sDDId]&&this.handleIds[sDDId][sHandleId]);},getDDById:function(id){for(var i in this.ids){if(this.ids[i][id]){return this.ids[i][id];}} +return null;},handleMouseDown:function(e,oDD){this.currentTarget=YAHOO.util.Event.getTarget(e);this.dragCurrent=oDD;var el=oDD.getEl();this.startX=YAHOO.util.Event.getPageX(e);this.startY=YAHOO.util.Event.getPageY(e);this.deltaX=this.startX-el.offsetLeft;this.deltaY=this.startY-el.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var DDM=YAHOO.util.DDM;DDM.startDrag(DDM.startX,DDM.startY);},this.clickTimeThresh);},startDrag:function(x,y){clearTimeout(this.clickTimeout);if(this.dragCurrent){this.dragCurrent.b4StartDrag(x,y);this.dragCurrent.startDrag(x,y);} +this.dragThreshMet=true;},handleMouseUp:function(e){if(!this.dragCurrent){return;} +clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(e,true);}else{} +this.stopDrag(e);this.stopEvent(e);},stopEvent:function(e){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(e);} +if(this.preventDefault){YAHOO.util.Event.preventDefault(e);}},stopDrag:function(e){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(e);this.dragCurrent.endDrag(e);} +this.dragCurrent.onMouseUp(e);} +this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(e){if(!this.dragCurrent){return true;} +if(YAHOO.util.Event.isIE&&!e.button){this.stopEvent(e);return this.handleMouseUp(e);} +if(!this.dragThreshMet){var diffX=Math.abs(this.startX-YAHOO.util.Event.getPageX(e));var diffY=Math.abs(this.startY-YAHOO.util.Event.getPageY(e));if(diffX>this.clickPixelThresh||diffY>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}} +if(this.dragThreshMet){this.dragCurrent.b4Drag(e);this.dragCurrent.onDrag(e);this.fireEvents(e,false);} +this.stopEvent(e);return true;},fireEvents:function(e,isDrop){var dc=this.dragCurrent;if(!dc||dc.isLocked()){return;} +var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);var pt=new YAHOO.util.Point(x,y);var oldOvers=[];var outEvts=[];var overEvts=[];var dropEvts=[];var enterEvts=[];for(var i in this.dragOvers){var ddo=this.dragOvers[i];if(!this.isTypeOfDD(ddo)){continue;} +if(!this.isOverTarget(pt,ddo,this.mode)){outEvts.push(ddo);} +oldOvers[i]=true;delete this.dragOvers[i];} +for(var sGroup in dc.groups){if("string"!=typeof sGroup){continue;} +for(i in this.ids[sGroup]){var oDD=this.ids[sGroup][i];if(!this.isTypeOfDD(oDD)){continue;} +if(oDD.isTarget&&!oDD.isLocked()&&oDD!=dc){if(this.isOverTarget(pt,oDD,this.mode)){if(isDrop){dropEvts.push(oDD);}else{if(!oldOvers[oDD.id]){enterEvts.push(oDD);}else{overEvts.push(oDD);} +this.dragOvers[oDD.id]=oDD;}}}}} +if(this.mode){if(outEvts.length){dc.b4DragOut(e,outEvts);dc.onDragOut(e,outEvts);} +if(enterEvts.length){dc.onDragEnter(e,enterEvts);} +if(overEvts.length){dc.b4DragOver(e,overEvts);dc.onDragOver(e,overEvts);} +if(dropEvts.length){dc.b4DragDrop(e,dropEvts);dc.onDragDrop(e,dropEvts);}}else{var len=0;for(i=0,len=outEvts.length;i<len;++i){dc.b4DragOut(e,outEvts[i].id);dc.onDragOut(e,outEvts[i].id);} +for(i=0,len=enterEvts.length;i<len;++i){dc.onDragEnter(e,enterEvts[i].id);} +for(i=0,len=overEvts.length;i<len;++i){dc.b4DragOver(e,overEvts[i].id);dc.onDragOver(e,overEvts[i].id);} +for(i=0,len=dropEvts.length;i<len;++i){dc.b4DragDrop(e,dropEvts[i].id);dc.onDragDrop(e,dropEvts[i].id);}} +if(isDrop&&!dropEvts.length){dc.onInvalidDrop(e);}},getBestMatch:function(dds){var winner=null;var len=dds.length;if(len==1){winner=dds[0];}else{for(var i=0;i<len;++i){var dd=dds[i];if(this.mode==this.INTERSECT&&dd.cursorIsOver){winner=dd;break;}else{if(!winner||!winner.overlap||(dd.overlap&&winner.overlap.getArea()<dd.overlap.getArea())){winner=dd;}}}} +return winner;},refreshCache:function(groups){var g=groups||this.ids;for(var sGroup in g){if("string"!=typeof sGroup){continue;} +for(var i in this.ids[sGroup]){var oDD=this.ids[sGroup][i];if(this.isTypeOfDD(oDD)){var loc=this.getLocation(oDD);if(loc){this.locationCache[oDD.id]=loc;}else{delete this.locationCache[oDD.id];}}}}},verifyEl:function(el){try{if(el){var parent=el.offsetParent;if(parent){return true;}}}catch(e){} +return false;},getLocation:function(oDD){if(!this.isTypeOfDD(oDD)){return null;} +var el=oDD.getEl(),pos,x1,x2,y1,y2,t,r,b,l;try{pos=YAHOO.util.Dom.getXY(el);}catch(e){} +if(!pos){return null;} +x1=pos[0];x2=x1+el.offsetWidth;y1=pos[1];y2=y1+el.offsetHeight;t=y1-oDD.padding[0];r=x2+oDD.padding[1];b=y2+oDD.padding[2];l=x1-oDD.padding[3];return new YAHOO.util.Region(t,r,b,l);},isOverTarget:function(pt,oTarget,intersect){var loc=this.locationCache[oTarget.id];if(!loc||!this.useCache){loc=this.getLocation(oTarget);this.locationCache[oTarget.id]=loc;} +if(!loc){return false;} +oTarget.cursorIsOver=loc.contains(pt);var dc=this.dragCurrent;if(!dc||!dc.getTargetCoord||(!intersect&&!dc.constrainX&&!dc.constrainY)){return oTarget.cursorIsOver;} +oTarget.overlap=null;var pos=dc.getTargetCoord(pt.x,pt.y);var el=dc.getDragEl();var curRegion=new YAHOO.util.Region(pos.y,pos.x+el.offsetWidth,pos.y+el.offsetHeight,pos.x);var overlap=curRegion.intersect(loc);if(overlap){oTarget.overlap=overlap;return(intersect)?true:oTarget.cursorIsOver;}else{return false;}},_onUnload:function(e,me){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;} +this._execOnAll("unreg",[]);for(i in this.elementCache){delete this.elementCache[i];} +this.elementCache={};this.ids={};},elementCache:{},getElWrapper:function(id){var oWrapper=this.elementCache[id];if(!oWrapper||!oWrapper.el){oWrapper=this.elementCache[id]=new this.ElementWrapper(YAHOO.util.Dom.get(id));} +return oWrapper;},getElement:function(id){return YAHOO.util.Dom.get(id);},getCss:function(id){var el=YAHOO.util.Dom.get(id);return(el)?el.style:null;},ElementWrapper:function(el){this.el=el||null;this.id=this.el&&el.id;this.css=this.el&&el.style;},getPosX:function(el){return YAHOO.util.Dom.getX(el);},getPosY:function(el){return YAHOO.util.Dom.getY(el);},swapNode:function(n1,n2){if(n1.swapNode){n1.swapNode(n2);}else{var p=n2.parentNode;var s=n2.nextSibling;if(s==n1){p.insertBefore(n1,n2);}else if(n2==n1.nextSibling){p.insertBefore(n2,n1);}else{n1.parentNode.replaceChild(n2,n1);p.insertBefore(n1,s);}}},getScroll:function(){var t,l,dde=document.documentElement,db=document.body;if(dde&&(dde.scrollTop||dde.scrollLeft)){t=dde.scrollTop;l=dde.scrollLeft;}else if(db){t=db.scrollTop;l=db.scrollLeft;}else{} +return{top:t,left:l};},getStyle:function(el,styleProp){return YAHOO.util.Dom.getStyle(el,styleProp);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(moveEl,targetEl){var aCoord=YAHOO.util.Dom.getXY(targetEl);YAHOO.util.Dom.setXY(moveEl,aCoord);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(a,b){return(a-b);},_timeoutCount:0,_addListeners:function(){var DDM=YAHOO.util.DDM;if(YAHOO.util.Event&&document){DDM._onLoad();}else{if(DDM._timeoutCount>2000){}else{setTimeout(DDM._addListeners,10);if(document&&document.body){DDM._timeoutCount+=1;}}}},handleWasClicked:function(node,id){if(this.isHandle(id,node.id)){return true;}else{var p=node.parentNode;while(p){if(this.isHandle(id,p.id)){return true;}else{p=p.parentNode;}}} +return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();} +(function(){var Event=YAHOO.util.Event;var Dom=YAHOO.util.Dom;YAHOO.util.DragDrop=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(x,y){},startDrag:function(x,y){},b4Drag:function(e){},onDrag:function(e){},onDragEnter:function(e,id){},b4DragOver:function(e){},onDragOver:function(e,id){},b4DragOut:function(e){},onDragOut:function(e,id){},b4DragDrop:function(e){},onDragDrop:function(e,id){},onInvalidDrop:function(e){},b4EndDrag:function(e){},endDrag:function(e){},b4MouseDown:function(e){},onMouseDown:function(e){},onMouseUp:function(e){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=Dom.get(this.id);} +return this._domRef;},getDragEl:function(){return Dom.get(this.dragElId);},init:function(id,sGroup,config){this.initTarget(id,sGroup,config);Event.on(this.id,"mousedown",this.handleMouseDown,this,true);},initTarget:function(id,sGroup,config){this.config=config||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof id!=="string"){id=Dom.generateId(id);} +this.id=id;this.addToGroup((sGroup)?sGroup:"default");this.handleElId=id;Event.onAvailable(id,this.handleOnAvailable,this,true);this.setDragElId(id);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(iTop,iRight,iBot,iLeft){if(!iRight&&0!==iRight){this.padding=[iTop,iTop,iTop,iTop];}else if(!iBot&&0!==iBot){this.padding=[iTop,iRight,iTop,iRight];}else{this.padding=[iTop,iRight,iBot,iLeft];}},setInitPosition:function(diffX,diffY){var el=this.getEl();if(!this.DDM.verifyEl(el)){return;} +var dx=diffX||0;var dy=diffY||0;var p=Dom.getXY(el);this.initPageX=p[0]-dx;this.initPageY=p[1]-dy;this.lastPageX=p[0];this.lastPageY=p[1];this.setStartPosition(p);},setStartPosition:function(pos){var p=pos||Dom.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=p[0];this.startPageY=p[1];},addToGroup:function(sGroup){this.groups[sGroup]=true;this.DDM.regDragDrop(this,sGroup);},removeFromGroup:function(sGroup){if(this.groups[sGroup]){delete this.groups[sGroup];} +this.DDM.removeDDFromGroup(this,sGroup);},setDragElId:function(id){this.dragElId=id;},setHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +this.handleElId=id;this.DDM.regHandle(this.id,id);},setOuterHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +Event.on(id,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(id);this.hasOuterHandles=true;},unreg:function(){Event.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(e,oDD){var button=e.which||e.button;if(this.primaryButtonOnly&&button>1){return;} +if(this.isLocked()){return;} +this.b4MouseDown(e);this.onMouseDown(e);this.DDM.refreshCache(this.groups);var pt=new YAHOO.util.Point(Event.getPageX(e),Event.getPageY(e));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(pt,this)){}else{if(this.clickValidator(e)){this.setStartPosition();this.DDM.handleMouseDown(e,this);this.DDM.stopEvent(e);}else{}}},clickValidator:function(e){var target=Event.getTarget(e);return(this.isValidHandleChild(target)&&(this.id==this.handleElId||this.DDM.handleWasClicked(target,this.id)));},addInvalidHandleType:function(tagName){var type=tagName.toUpperCase();this.invalidHandleTypes[type]=type;},addInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +this.invalidHandleIds[id]=id;},addInvalidHandleClass:function(cssClass){this.invalidHandleClasses.push(cssClass);},removeInvalidHandleType:function(tagName){var type=tagName.toUpperCase();delete this.invalidHandleTypes[type];},removeInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);} +delete this.invalidHandleIds[id];},removeInvalidHandleClass:function(cssClass){for(var i=0,len=this.invalidHandleClasses.length;i<len;++i){if(this.invalidHandleClasses[i]==cssClass){delete this.invalidHandleClasses[i];}}},isValidHandleChild:function(node){var valid=true;var nodeName;try{nodeName=node.nodeName.toUpperCase();}catch(e){nodeName=node.nodeName;} +valid=valid&&!this.invalidHandleTypes[nodeName];valid=valid&&!this.invalidHandleIds[node.id];for(var i=0,len=this.invalidHandleClasses.length;valid&&i<len;++i){valid=!Dom.hasClass(node,this.invalidHandleClasses[i]);} +return valid;},setXTicks:function(iStartX,iTickSize){this.xTicks=[];this.xTickSize=iTickSize;var tickMap={};for(var i=this.initPageX;i>=this.minX;i=i-iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}} +for(i=this.initPageX;i<=this.maxX;i=i+iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}} +this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(iStartY,iTickSize){this.yTicks=[];this.yTickSize=iTickSize;var tickMap={};for(var i=this.initPageY;i>=this.minY;i=i-iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}} +for(i=this.initPageY;i<=this.maxY;i=i+iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}} +this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(iLeft,iRight,iTickSize){this.leftConstraint=parseInt(iLeft,10);this.rightConstraint=parseInt(iRight,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(iTickSize){this.setXTicks(this.initPageX,iTickSize);} +this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(iUp,iDown,iTickSize){this.topConstraint=parseInt(iUp,10);this.bottomConstraint=parseInt(iDown,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(iTickSize){this.setYTicks(this.initPageY,iTickSize);} +this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var dx=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var dy=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(dx,dy);}else{this.setInitPosition();} +if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);} +if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(val,tickArray){if(!tickArray){return val;}else if(tickArray[0]>=val){return tickArray[0];}else{for(var i=0,len=tickArray.length;i<len;++i){var next=i+1;if(tickArray[next]&&tickArray[next]>=val){var diff1=val-tickArray[i];var diff2=tickArray[next]-val;return(diff2>diff1)?tickArray[i]:tickArray[next];}} +return tickArray[tickArray.length-1];}},toString:function(){return("DragDrop "+this.id);}};})();YAHOO.util.DD=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(iPageX,iPageY){var x=iPageX-this.startPageX;var y=iPageY-this.startPageY;this.setDelta(x,y);},setDelta:function(iDeltaX,iDeltaY){this.deltaX=iDeltaX;this.deltaY=iDeltaY;},setDragElPos:function(iPageX,iPageY){var el=this.getDragEl();this.alignElWithMouse(el,iPageX,iPageY);},alignElWithMouse:function(el,iPageX,iPageY){var oCoord=this.getTargetCoord(iPageX,iPageY);if(!this.deltaSetXY){var aCoord=[oCoord.x,oCoord.y];YAHOO.util.Dom.setXY(el,aCoord);var newLeft=parseInt(YAHOO.util.Dom.getStyle(el,"left"),10);var newTop=parseInt(YAHOO.util.Dom.getStyle(el,"top"),10);this.deltaSetXY=[newLeft-oCoord.x,newTop-oCoord.y];}else{YAHOO.util.Dom.setStyle(el,"left",(oCoord.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(el,"top",(oCoord.y+this.deltaSetXY[1])+"px");} +this.cachePosition(oCoord.x,oCoord.y);this.autoScroll(oCoord.x,oCoord.y,el.offsetHeight,el.offsetWidth);},cachePosition:function(iPageX,iPageY){if(iPageX){this.lastPageX=iPageX;this.lastPageY=iPageY;}else{var aCoord=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=aCoord[0];this.lastPageY=aCoord[1];}},autoScroll:function(x,y,h,w){if(this.scroll){var clientH=this.DDM.getClientHeight();var clientW=this.DDM.getClientWidth();var st=this.DDM.getScrollTop();var sl=this.DDM.getScrollLeft();var bot=h+y;var right=w+x;var toBot=(clientH+st-y-this.deltaY);var toRight=(clientW+sl-x-this.deltaX);var thresh=40;var scrAmt=(document.all)?80:30;if(bot>clientH&&toBot<thresh){window.scrollTo(sl,st+scrAmt);} +if(y<st&&st>0&&y-st<thresh){window.scrollTo(sl,st-scrAmt);} +if(right>clientW&&toRight<thresh){window.scrollTo(sl+scrAmt,st);} +if(x<sl&&sl>0&&x-sl<thresh){window.scrollTo(sl-scrAmt,st);}}},getTargetCoord:function(iPageX,iPageY){var x=iPageX-this.deltaX;var y=iPageY-this.deltaY;if(this.constrainX){if(x<this.minX){x=this.minX;} +if(x>this.maxX){x=this.maxX;}} +if(this.constrainY){if(y<this.minY){y=this.minY;} +if(y>this.maxY){y=this.maxY;}} +x=this.getTick(x,this.xTicks);y=this.getTick(y,this.yTicks);return{x:x,y:y};},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(e){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},b4Drag:function(e){this.setDragElPos(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(id,sGroup,config){if(id){this.init(id,sGroup,config);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var self=this;var body=document.body;if(!body||!body.firstChild){setTimeout(function(){self.createFrame();},50);return;} +var div=this.getDragEl();if(!div){div=document.createElement("div");div.id=this.dragElId;var s=div.style;s.position="absolute";s.visibility="hidden";s.cursor="move";s.border="2px solid #aaa";s.zIndex=999;body.insertBefore(div,body.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(iPageX,iPageY){var el=this.getEl();var dragEl=this.getDragEl();var s=dragEl.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(s.width,10)/2),Math.round(parseInt(s.height,10)/2));} +this.setDragElPos(iPageX,iPageY);YAHOO.util.Dom.setStyle(dragEl,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var DOM=YAHOO.util.Dom;var el=this.getEl();var dragEl=this.getDragEl();var bt=parseInt(DOM.getStyle(dragEl,"borderTopWidth"),10);var br=parseInt(DOM.getStyle(dragEl,"borderRightWidth"),10);var bb=parseInt(DOM.getStyle(dragEl,"borderBottomWidth"),10);var bl=parseInt(DOM.getStyle(dragEl,"borderLeftWidth"),10);if(isNaN(bt)){bt=0;} +if(isNaN(br)){br=0;} +if(isNaN(bb)){bb=0;} +if(isNaN(bl)){bl=0;} +var newWidth=Math.max(0,el.offsetWidth-br-bl);var newHeight=Math.max(0,el.offsetHeight-bt-bb);DOM.setStyle(dragEl,"width",newWidth+"px");DOM.setStyle(dragEl,"height",newHeight+"px");}},b4MouseDown:function(e){this.setStartPosition();var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);this.autoOffset(x,y);this.setDragElPos(x,y);},b4StartDrag:function(x,y){this.showFrame(x,y);},b4EndDrag:function(e){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(e){var DOM=YAHOO.util.Dom;var lel=this.getEl();var del=this.getDragEl();DOM.setStyle(del,"visibility","");DOM.setStyle(lel,"visibility","hidden");YAHOO.util.DDM.moveToEl(lel,del);DOM.setStyle(del,"visibility","hidden");DOM.setStyle(lel,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(id,sGroup,config){if(id){this.initTarget(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.2.0",build:"127"}); +YAHOO.util.Attribute=function(hash,owner){if(owner){this.owner=owner;this.configure(hash,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(value,silent){var beforeRetVal;var owner=this.owner;var name=this.name;var event={type:name,prevValue:this.getValue(),newValue:value};if(this.readOnly||(this.writeOnce&&this._written)){return false;} +if(this.validator&&!this.validator.call(owner,value)){return false;} +if(!silent){beforeRetVal=owner.fireBeforeChangeEvent(event);if(beforeRetVal===false){return false;}} +if(this.method){this.method.call(owner,value);} +this.value=value;this._written=true;event.type=name;if(!silent){this.owner.fireChangeEvent(event);} +return true;},configure:function(map,init){map=map||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var key in map){if(key&&YAHOO.lang.hasOwnProperty(map,key)){this[key]=map[key];if(init){this._initialConfig[key]=map[key];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(silent){this.setValue(this.value,silent);}};(function(){var Lang=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(key){var configs=this._configs||{};var config=configs[key];if(!config){return undefined;} +return config.value;},set:function(key,value,silent){var configs=this._configs||{};var config=configs[key];if(!config){return false;} +return config.setValue(value,silent);},getAttributeKeys:function(){var configs=this._configs;var keys=[];var config;for(var key in configs){config=configs[key];if(Lang.hasOwnProperty(configs,key)&&!Lang.isUndefined(config)){keys[keys.length]=key;}} +return keys;},setAttributes:function(map,silent){for(var key in map){if(Lang.hasOwnProperty(map,key)){this.set(key,map[key],silent);}}},resetValue:function(key,silent){var configs=this._configs||{};if(configs[key]){this.set(key,configs[key]._initialConfig.value,silent);return true;} +return false;},refresh:function(key,silent){var configs=this._configs;key=((Lang.isString(key))?[key]:key)||this.getAttributeKeys();for(var i=0,len=key.length;i<len;++i){if(configs[key[i]]&&!Lang.isUndefined(configs[key[i]].value)&&!Lang.isNull(configs[key[i]].value)){configs[key[i]].refresh(silent);}}},register:function(key,map){this.setAttributeConfig(key,map);},getAttributeConfig:function(key){var configs=this._configs||{};var config=configs[key]||{};var map={};for(key in config){if(Lang.hasOwnProperty(config,key)){map[key]=config[key];}} +return map;},setAttributeConfig:function(key,map,init){var configs=this._configs||{};map=map||{};if(!configs[key]){map.name=key;configs[key]=new YAHOO.util.Attribute(map,this);}else{configs[key].configure(map,init);}},configureAttribute:function(key,map,init){this.setAttributeConfig(key,map,init);},resetAttributeConfig:function(key){var configs=this._configs||{};configs[key].resetConfig();},fireBeforeChangeEvent:function(e){var type='before';type+=e.type.charAt(0).toUpperCase()+e.type.substr(1)+'Change';e.type=type;return this.fireEvent(e.type,e);},fireChangeEvent:function(e){e.type+='Change';return this.fireEvent(e.type,e);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var Dom=YAHOO.util.Dom,EventPublisher=YAHOO.util.EventPublisher,AttributeProvider=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(el,map){if(arguments.length){this.init(el,map);}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(child){child=child.get?child.get('element'):child;this.get('element').appendChild(child);},getElementsByTagName:function(tag){return this.get('element').getElementsByTagName(tag);},hasChildNodes:function(){return this.get('element').hasChildNodes();},insertBefore:function(element,before){element=element.get?element.get('element'):element;before=(before&&before.get)?before.get('element'):before;this.get('element').insertBefore(element,before);},removeChild:function(child){child=child.get?child.get('element'):child;this.get('element').removeChild(child);return true;},replaceChild:function(newNode,oldNode){newNode=newNode.get?newNode.get('element'):newNode;oldNode=oldNode.get?oldNode.get('element'):oldNode;return this.get('element').replaceChild(newNode,oldNode);},initAttributes:function(map){map=map||{};var element=Dom.get(map.element)||null;this.setAttributeConfig('element',{value:element,readOnly:true});},addListener:function(type,fn,obj,scope){var el=this.get('element');var scope=scope||this;el=this.get('id')||el;if(!this._events[type]){if(this.DOM_EVENTS[type]){YAHOO.util.Event.addListener(el,type,function(e){if(e.srcElement&&!e.target){e.target=e.srcElement;} +this.fireEvent(type,e);},obj,scope);} +this.createEvent(type,this);this._events[type]=true;} +this.subscribe.apply(this,arguments);},on:function(){this.addListener.apply(this,arguments);},removeListener:function(type,fn){this.unsubscribe.apply(this,arguments);},addClass:function(className){Dom.addClass(this.get('element'),className);},getElementsByClassName:function(className,tag){return Dom.getElementsByClassName(className,tag,this.get('element'));},hasClass:function(className){return Dom.hasClass(this.get('element'),className);},removeClass:function(className){return Dom.removeClass(this.get('element'),className);},replaceClass:function(oldClassName,newClassName){return Dom.replaceClass(this.get('element'),oldClassName,newClassName);},setStyle:function(property,value){var el=this.get('element');if(!el){this._queue[this._queue.length]=['setStyle',arguments];return false;} +return Dom.setStyle(this.get('element'),property,value);},getStyle:function(property){return Dom.getStyle(this.get('element'),property);},fireQueue:function(){var queue=this._queue;for(var i=0,len=queue.length;i<len;++i){this[queue[i][0]].apply(this,queue[i][1]);}},appendTo:function(parent,before){parent=(parent.get)?parent.get('element'):Dom.get(parent);this.fireEvent('beforeAppendTo',{type:'beforeAppendTo',target:parent});before=(before&&before.get)?before.get('element'):Dom.get(before);var element=this.get('element');if(!element){return false;} +if(!parent){return false;} +if(element.parent!=parent){if(before){parent.insertBefore(element,before);}else{parent.appendChild(element);}} +this.fireEvent('appendTo',{type:'appendTo',target:parent});},get:function(key){var configs=this._configs||{};var el=configs.element;if(el&&!configs[key]&&!YAHOO.lang.isUndefined(el.value[key])){return el.value[key];} +return AttributeProvider.prototype.get.call(this,key);},set:function(key,value,silent){var el=this.get('element');if(!el){this._queue[this._queue.length]=['set',arguments];if(this._configs[key]){this._configs[key].value=value;} +return;} +if(!this._configs[key]&&!YAHOO.lang.isUndefined(el[key])){_registerHTMLAttr.call(this,key);} +return AttributeProvider.prototype.set.apply(this,arguments);},setAttributeConfig:function(key,map,init){var el=this.get('element');if(el&&!this._configs[key]&&!YAHOO.lang.isUndefined(el[key])){_registerHTMLAttr.call(this,key,map);}else{AttributeProvider.prototype.setAttributeConfig.apply(this,arguments);}},getAttributeKeys:function(){var el=this.get('element');var keys=AttributeProvider.prototype.getAttributeKeys.call(this);for(var key in el){if(!this._configs[key]){keys[key]=keys[key]||el[key];}} +return keys;},init:function(el,attr){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};attr=attr||{};attr.element=attr.element||el||null;this.DOM_EVENTS={'click':true,'keydown':true,'keypress':true,'keyup':true,'mousedown':true,'mousemove':true,'mouseout':true,'mouseover':true,'mouseup':true};var readyHandler=function(){this.initAttributes(attr);this.setAttributes(attr,true);this.fireQueue();this.fireEvent('contentReady',{type:'contentReady',target:attr.element});};if(YAHOO.lang.isString(el)){_registerHTMLAttr.call(this,'id',{value:el});YAHOO.util.Event.onAvailable(el,function(){attr.element=Dom.get(el);this.fireEvent('available',{type:'available',target:attr.element});},this,true);YAHOO.util.Event.onContentReady(el,function(){readyHandler.call(this);},this,true);}else{readyHandler.call(this);}}};var _registerHTMLAttr=function(key,map){var el=this.get('element');map=map||{};map.name=key;map.method=map.method||function(value){el[key]=value;};map.value=map.value||el[key];this._configs[key]=new YAHOO.util.Attribute(map,this);};YAHOO.augment(YAHOO.util.Element,AttributeProvider);})();YAHOO.register("element",YAHOO.util.Element,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/yahoo-dom-event/README b/interface/ispconfig/interface/js/yui/yahoo-dom-event/README new file mode 100644 index 0000000..1552038 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo-dom-event/README @@ -0,0 +1,35 @@ +yahoo-event-dom.js Release Notes + +*** NOTE *** + +This document is not updated with each release. Changes to +the yahoo-dom-event.js source are noted in the README +file for each component that comprises this aggregate: + +yahoo/README +dom/README +event/README + +************ + +*** version 0.12.0 *** + +The yahoo-event-dom.js file rolls up the three most commonly-used YUI Utilities +into a single file; it includes the following files: + +* Yahoo Global Object +* Dom +* Event + +These three files serve as a common foundation for most YUI components and +third-party implementations. On pages where you do not need additional YUI +Utilities (Connection Manager, Animation Utility, Drag & Drop Utility), the +yahoo-event-dom.js aggregate will often be an optimal choice. + +Note: If you do require additional utilities, the full utilities.js file is +provided in this distribution; utilities.js includes all YUI Utilities in a +single file. + +Please see the blog article on www.yuiblog.com titled "YUI: Weighing in on +Pageweights" at http://yuiblog.com/blog/2006/10/16/pageweight-yui0114/ for more +details. diff --git a/interface/ispconfig/interface/js/yui/yahoo-dom-event/yahoo-dom-event.js b/interface/ispconfig/interface/js/yui/yahoo-dom-event/yahoo-dom-event.js new file mode 100644 index 0000000..15125b4 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo-dom-event/yahoo-dom-event.js @@ -0,0 +1,144 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +if(typeof YAHOO=="undefined"){var YAHOO={};} +YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}} +return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}} +if(unique){ls.push(l);}}}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};} +var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);} +if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:function(name){return YAHOO.env.modules[name]||null;}};YAHOO.lang={isArray:function(obj){if(obj.constructor&&obj.constructor.toString().indexOf('Array')>-1){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return typeof obj=='object'||YAHOO.lang.isFunction(obj);},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);} +return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;} +if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.0",build:"127"}); +(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;} +if(propertyCache[property]){return propertyCache[property];} +while(patterns.HYPHEN.exec(property)){property=property.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());} +propertyCache[property]=property;return property;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];} +return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}} +return val/100;break;default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};} +if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(typeof el.style.filter=='string'){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}} +break;default:el.style[property]=val;}};}else{setStyle=function(el,property,val){el.style[property]=val;};} +YAHOO.util.Dom={get:function(el){if(!el){return null;} +if(typeof el!='string'&&!(el instanceof Array)){return el;} +if(typeof el=='string'){return document.getElementById(el);} +else{var collection=[];for(var i=0,len=el.length;i<len;++i){collection[collection.length]=Y.Dom.get(el[i]);} +return collection;} +return null;},getStyle:function(el,property){property=toCamel(property);var f=function(element){return getStyle(element,property);};return Y.Dom.batch(el,f,Y.Dom,true);},setStyle:function(el,property,val){property=toCamel(property);var f=function(element){setStyle(element,property,val);};Y.Dom.batch(el,f,Y.Dom,true);},getXY:function(el){var f=function(el){if(el.parentNode===null||el.offsetParent===null||this.getStyle(el,'display')=='none'){return false;} +var parentNode=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var doc=document;if(!this.inDocument(el)&&parent.document!=document){doc=parent.document;if(!this.isAncestor(doc.documentElement,el)){return false;}} +var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);return[box.left+scrollLeft,box.top+scrollTop];} +else{pos=[el.offsetLeft,el.offsetTop];parentNode=el.offsetParent;if(parentNode!=el){while(parentNode){pos[0]+=parentNode.offsetLeft;pos[1]+=parentNode.offsetTop;parentNode=parentNode.offsetParent;}} +if(isSafari&&this.getStyle(el,'position')=='absolute'){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}} +if(el.parentNode){parentNode=el.parentNode;} +else{parentNode=null;} +while(parentNode&&parentNode.tagName.toUpperCase()!='BODY'&&parentNode.tagName.toUpperCase()!='HTML') +{if(Y.Dom.getStyle(parentNode,'display')!='inline'){pos[0]-=parentNode.scrollLeft;pos[1]-=parentNode.scrollTop;} +if(parentNode.parentNode){parentNode=parentNode.parentNode;}else{parentNode=null;}} +return pos;};return Y.Dom.batch(el,f,Y.Dom,true);},getX:function(el){var f=function(el){return Y.Dom.getXY(el)[0];};return Y.Dom.batch(el,f,Y.Dom,true);},getY:function(el){var f=function(el){return Y.Dom.getXY(el)[1];};return Y.Dom.batch(el,f,Y.Dom,true);},setXY:function(el,pos,noRetry){var f=function(el){var style_pos=this.getStyle(el,'position');if(style_pos=='static'){this.setStyle(el,'position','relative');style_pos='relative';} +var pageXY=this.getXY(el);if(pageXY===false){return false;} +var delta=[parseInt(this.getStyle(el,'left'),10),parseInt(this.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;} +if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;} +if(pos[0]!==null){el.style.left=pos[0]-pageXY[0]+delta[0]+'px';} +if(pos[1]!==null){el.style.top=pos[1]-pageXY[1]+delta[1]+'px';} +if(!noRetry){var newXY=this.getXY(el);if((pos[0]!==null&&newXY[0]!=pos[0])||(pos[1]!==null&&newXY[1]!=pos[1])){this.setXY(el,pos,true);}}};Y.Dom.batch(el,f,Y.Dom,true);},setX:function(el,x){Y.Dom.setXY(el,[x,null]);},setY:function(el,y){Y.Dom.setXY(el,[null,y]);},getRegion:function(el){var f=function(el){var region=new Y.Region.getRegion(el);return region;};return Y.Dom.batch(el,f,Y.Dom,true);},getClientWidth:function(){return Y.Dom.getViewportWidth();},getClientHeight:function(){return Y.Dom.getViewportHeight();},getElementsByClassName:function(className,tag,root){var method=function(el){return Y.Dom.hasClass(el,className);};return Y.Dom.getElementsBy(method,tag,root);},hasClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var f=function(el){return re.test(el['className']);};return Y.Dom.batch(el,f,Y.Dom,true);},addClass:function(el,className){var f=function(el){if(this.hasClass(el,className)){return;} +el['className']=[el['className'],className].join(' ');};Y.Dom.batch(el,f,Y.Dom,true);},removeClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,className)){return;} +var c=el['className'];el['className']=c.replace(re,' ');if(this.hasClass(el,className)){this.removeClass(el,className);}};Y.Dom.batch(el,f,Y.Dom,true);},replaceClass:function(el,oldClassName,newClassName){if(oldClassName===newClassName){return false;} +var re=new RegExp('(?:^|\\s+)'+oldClassName+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,oldClassName)){this.addClass(el,newClassName);return;} +el['className']=el['className'].replace(re,' '+newClassName+' ');if(this.hasClass(el,oldClassName)){this.replaceClass(el,oldClassName,newClassName);}};Y.Dom.batch(el,f,Y.Dom,true);},generateId:function(el,prefix){prefix=prefix||'yui-gen';el=el||{};var f=function(el){if(el){el=Y.Dom.get(el);}else{el={};} +if(!el.id){el.id=prefix+id_counter++;} +return el.id;};return Y.Dom.batch(el,f,Y.Dom,true);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;} +var f=function(needle){if(haystack.contains&&!isSafari){return haystack.contains(needle);} +else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);} +else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;} +else if(!parent.tagName||parent.tagName.toUpperCase()=='HTML'){return false;} +parent=parent.parentNode;} +return false;}};return Y.Dom.batch(needle,f,Y.Dom,true);},inDocument:function(el){var f=function(el){return this.isAncestor(document.documentElement,el);};return Y.Dom.batch(el,f,Y.Dom,true);},getElementsBy:function(method,tag,root){tag=tag||'*';var nodes=[];if(root){root=Y.Dom.get(root);if(!root){return nodes;}}else{root=document;} +var elements=root.getElementsByTagName(tag);if(!elements.length&&(tag=='*'&&root.all)){elements=root.all;} +for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}} +return nodes;},batch:function(el,method,o,override){var id=el;el=Y.Dom.get(el);var scope=(override)?o:window;if(!el||el.tagName||!el.length){if(!el){return false;} +return method.call(scope,el,o);} +var collection=[];for(var i=0,len=el.length;i<len;++i){if(!el[i]){id=el[i];} +collection[collection.length]=method.call(scope,el[i],o);} +return collection;},getDocumentHeight:function(){var scrollHeight=(document.compatMode!='CSS1Compat')?document.body.scrollHeight:document.documentElement.scrollHeight;var h=Math.max(scrollHeight,Y.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var scrollWidth=(document.compatMode!='CSS1Compat')?document.body.scrollWidth:document.documentElement.scrollWidth;var w=Math.max(scrollWidth,Y.Dom.getViewportWidth());return w;},getViewportHeight:function(){var height=self.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=(mode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;} +return height;},getViewportWidth:function(){var width=self.innerWidth;var mode=document.compatMode;if(mode||isIE){width=(mode=='CSS1Compat')?document.documentElement.clientWidth:document.body.clientWidth;} +return width;}};})();YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];} +this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.0",build:"127"}); +if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var lastError=null;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];} +return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var self=this;var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override){if(!fn||!fn.call){return false;} +if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=this.on(el[i],sType,fn,obj,override)&&ok;} +return ok;}else if(typeof el=="string"){var oEl=this.getEl(el);if(oEl){el=oEl;}else{this.onAvailable(el,function(){YAHOO.util.Event.on(el,sType,fn,obj,override);});return true;}} +if(!el){return false;} +if("unload"==sType&&obj!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,obj,override];return true;} +var scope=el;if(override){if(override===true){scope=obj;}else{scope=override;}} +var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),obj);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1||el!=legacyEvents[legacyIndex][0]){legacyIndex=legacyEvents.length;legacyMap[el.id+sType]=legacyIndex;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};} +legacyHandlers[legacyIndex].push(li);}else{try{this._simpleAdd(el,sType,wrappedFn,false);}catch(ex){this.lastError=ex;this.removeListener(el,sType,fn);return false;}} +return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true,le,lh,li,scope,ret;lh=legacyHandlers[legacyIndex];for(var i=0,len=lh.length;i<len;++i){li=lh[i];if(li&&li[this.WFN]){scope=li[this.ADJ_SCOPE];ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}} +le=legacyEvents[legacyIndex];if(le&&le[2]){le[2](e);} +return ok;},getLegacyIndex:function(el,sType){var key=this.generateId(el)+sType;if(typeof legacyMap[key]=="undefined"){return-1;}else{return legacyMap[key];}},useLegacyEvent:function(el,sType){if(this.webkit&&("click"==sType||"dblclick"==sType)){var v=parseInt(this.webkit,10);if(!isNaN(v)&&v<418){return true;}} +return false;},removeListener:function(el,sType,fn){var i,len;if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);} +return ok;} +if(!fn||!fn.call){return this.purgeElement(el,false,sType);} +if("unload"==sType){for(i=0,len=unloadListeners.length;i<len;i++){var li=unloadListeners[i];if(li&&li[0]==el&&li[1]==sType&&li[2]==fn){unloadListeners.splice(i,1);return true;}} +return false;} +var cacheItem=null;var index=arguments[3];if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);} +if(index>=0){cacheItem=listeners[index];} +if(!el||!cacheItem){return false;} +if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i<len;++i){li=llist[i];if(li&&li[this.EL]==el&&li[this.TYPE]==sType&&li[this.FN]==fn){llist.splice(i,1);break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}} +delete listeners[index][this.WFN];delete listeners[index][this.FN];listeners.splice(index,1);return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}} +return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}} +return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}} +return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}} +return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;} +c=c.caller;}} +return ev;},getCharCode:function(ev){return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,sType,fn){for(var i=0,len=listeners.length;i<len;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}} +return-1;},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;} +return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},_load:function(e){loadComplete=true;var EU=YAHOO.util.Event;if(this.isIE){EU._simpleRemove(window,"load",EU._load);}},_tryPreloadAttach:function(){if(this.locked){return false;} +this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);} +var notAvail=[];for(var i=0,len=onAvailStack.length;i<len;++i){var item=onAvailStack[i];if(item){var el=this.getEl(item.id);if(el){if(!item.checkReady||loadComplete||el.nextSibling||(document&&document.body)){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}} +item.fn.call(scope,item.obj);onAvailStack[i]=null;}}else{notAvail.push(item);}}} +retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;} +this.locked=false;return true;},purgeElement:function(el,recurse,sType){var elListeners=this.getListeners(el,sType);if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn);}} +if(recurse&&el&&el.childNodes){for(i=0,len=el.childNodes.length;i<len;++i){this.purgeElement(el.childNodes[i],recurse,sType);}}},getListeners:function(el,sType){var results=[],searchLists;if(!sType){searchLists=[listeners,unloadListeners];}else if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners];} +for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}} +return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}} +l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}} +unloadListeners=null;if(listeners&&listeners.length>0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);} +j=j-1;} +l=null;EU.clearCache();} +for(i=0,len=legacyEvents.length;i<len;++i){legacyEvents[i][0]=null;legacyEvents[i]=null;} +legacyEvents=null;EU._simpleRemove(window,"unload",EU._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(document&&document.body){EU._load();}else{EU._simpleAdd(window,"load",EU._load);} +EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();} +YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){} +var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);} +this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();} +var found=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}} +return found;},fire:function(){var len=this.subscribers.length;if(!len&&this.silent){return true;} +var args=[],ret=true,i;for(i=0;i<arguments.length;++i){args.push(arguments[i]);} +var argslength=args.length;if(!this.silent){} +for(i=0;i<len;++i){var s=this.subscribers[i];if(s){if(!this.silent){} +var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];} +ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);} +if(false===ret){if(!this.silent){} +return false;}}} +return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);} +return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;} +this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}} +return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];} +subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);} +this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}} +return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);} +return ce.fire.apply(ce,args);}else{return null;}},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}} +return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else if(!keyData){}else if(!handler){} +if(!event){event=YAHOO.util.KeyListener.KEYDOWN;} +var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);} +if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);} +function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;} +if(!keyData.alt){keyData.alt=false;} +if(!keyData.ctrl){keyData.ctrl=false;} +if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}} +this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);} +this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);} +this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+ +(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/yahoo/README b/interface/ispconfig/interface/js/yui/yahoo/README new file mode 100644 index 0000000..3eebc56 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo/README @@ -0,0 +1,64 @@ +YAHOO Global - Release Notes + +2.2.0a + + * Fixed a typo that prevented the proper detection of multiple YAHOO_config listeners + +2.2.0 + + * Added configuration of the library via a YAHOO_config object defined + prior to the reference to the library. Currently it supports a listener + parameter that will execute every time a new module YUI module is loaded. + + * Added YAHOO.register & YAHOO.getVersion for version stamping modules. + + * Added YAHOO.env which is the home for the information about the loaded + YUI modules, and will host more info later. + + * YAHOO.util.Lang was relocated to this package and is now YAHOO.lang. + YAHOO.extend and YAHOO.augment have moved to env (the original + functions still work). + +0.12.2 + + * No change + +0.12.1 + + * No change + +0.12.0 + + * Added YAHOO.augment, which copies all or part of the prototype of one + object to another. + + * YAHOO.namespace now can create multiple namespaces. + + * Added an optional third parameter to YAHOO.extend: overrides. It takes + an object literal of properties/methods to apply to the subclass + prototype, overriding the superclass if present. + +0.11.4 + + * Changed window.YAHOO = window.YAHOO || {} to + if (typeof YAHOO == "undefined") YAHOO = {} because the previous statement + contributed to a memory leak in IE6 when the library was hosted in an + iframe. + +0.11.3 + + * Changed var YAHOO = window.YAHOO || {} to window.YAHOO = window.YAHOO || {}. + This fixes an issue in IE where YAHOO would get overwritten if previously + defined via array notation (window["YAHOO"]). + +0.11.0 + + * Added YAHOO.extend, which provides an easy way to assign the prototype, + constructor, and superclass properties inheritance properties. It also + prevents the constructor of the superclass from being exectuted twice. + +0.10.0 + + * Added YAHOO.log that provides a safe way to plumb logging statements in + code that will work if the logging component isn't available. + diff --git a/interface/ispconfig/interface/js/yui/yahoo/yahoo-debug.js b/interface/ispconfig/interface/js/yui/yahoo/yahoo-debug.js new file mode 100644 index 0000000..de26df2 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo/yahoo-debug.js @@ -0,0 +1,433 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The YAHOO object is the single global object used by YUI Library. It + * contains utility function for setting up namespaces, inheritance, and + * logging. YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces + * created automatically for and used by the library. + * @module yahoo + * @title YAHOO Global + */ + +/** + * YAHOO_config is not included part of the library. Instead it is an object + * that can be defined by the implementer immediately before including the + * YUI library. The properties included in this object will be used to + * configure global properties needed as soon as the library begins to load. + * @class YAHOO_config + * @static + */ + +/** + * A reference to a function that will be executed every time a YAHOO module + * is loaded. As parameter, this function will receive the version + * information for the module. See <a href="YAHOO.env.html#getVersion"> + * YAHOO.env.getVersion</a> for the description of the version data structure. + * @property listener + * @static + */ +if (typeof YAHOO == "undefined") { + /** + * The YAHOO global namespace object. If YAHOO is already defined, the + * existing YAHOO object will not be overwritten so that defined + * namespaces are preserved. + * @class YAHOO + * @static + */ + var YAHOO = {}; +} + +/** + * Returns the namespace specified and creates it if it doesn't exist + * <pre> + * YAHOO.namespace("property.package"); + * YAHOO.namespace("YAHOO.property.package"); + * </pre> + * Either of the above would create YAHOO.property, then + * YAHOO.property.package + * + * Be careful when naming packages. Reserved words may work in some browsers + * and not others. For instance, the following will fail in Safari: + * <pre> + * YAHOO.namespace("really.long.nested.namespace"); + * </pre> + * This fails because "long" is a future reserved word in ECMAScript + * + * @method namespace + * @static + * @param {String*} arguments 1-n namespaces to create + * @return {Object} A reference to the last namespace object created + */ +YAHOO.namespace = function() { + var a=arguments, o=null, i, j, d; + for (i=0; i<a.length; i=i+1) { + d=a[i].split("."); + o=YAHOO; + + // YAHOO is implied, so it is ignored if it is included + for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) { + o[d[j]]=o[d[j]] || {}; + o=o[d[j]]; + } + } + + return o; +}; + +/** + * Uses YAHOO.widget.Logger to output a log message, if the widget is + * available. + * + * @method log + * @static + * @param {String} msg The message to log. + * @param {String} cat The log category for the message. Default + * categories are "info", "warn", "error", time". + * Custom categories can be used as well. (opt) + * @param {String} src The source of the the message (opt) + * @return {Boolean} True if the log operation was successful. + */ +YAHOO.log = function(msg, cat, src) { + var l=YAHOO.widget.Logger; + if(l && l.log) { + return l.log(msg, cat, src); + } else { + return false; + } +}; + + +/** + * Initializes the global by creating the default namespaces and applying + * any new configuration information that is detected. + * @method init + * @static + */ +YAHOO.init = function() { + this.namespace("util", "widget", "example"); + if (typeof YAHOO_config != "undefined") { + var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i; + if (l) { + // if YAHOO is loaded multiple times we need to check to see if + // this is a new config object. If it is, add the new component + // load listener to the stack + for (i=0;i<ls.length;i=i+1) { + if (ls[i]==l) { + unique=false; + break; + } + } + if (unique) { + ls.push(l); + } + } + } +}; + +/** + * Registers a module with the YAHOO object + * @method register + * @static + * @param {String} name the name of the module (event, slider, etc) + * @param {Function} mainClass a reference to class in the module. This + * class will be tagged with the version info + * so that it will be possible to identify the + * version that is in use when multiple versions + * have loaded + * @param {Object} data metadata object for the module. Currently it + * is expected to contain a "version" property + * and a "build" property at minimum. + */ +YAHOO.register = function(name, mainClass, data) { + var mods = YAHOO.env.modules; + if (!mods[name]) { + mods[name] = { versions:[], builds:[] }; + } + var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners; + m.name = name; + m.version = v; + m.build = b; + m.versions.push(v); + m.builds.push(b); + m.mainClass = mainClass; + // fire the module load listeners + for (var i=0;i<ls.length;i=i+1) { + ls[i](m); + } + // label the main class + if (mainClass) { + mainClass.VERSION = v; + mainClass.BUILD = b; + } else { + YAHOO.log("mainClass is undefined for module " + name, "warn"); + } +}; + +/** + * YAHOO.env is used to keep track of what is known about the YUI library and + * the browsing environment + * @class YAHOO.env + * @type Object + * @static + */ +YAHOO.env = YAHOO.env || { + /** + * Keeps the version info for all YUI modules that have reported themselves + * @property modules + * @type Object[] + */ + modules: [], + + /** + * List of functions that should be executed every time a YUI module + * reports itself. + * @property listeners + * @type Function[] + */ + listeners: [], + + /** + * Returns the version data for the specified module: + * <dl> + * <dt>name:</dt> <dd>The name of the module</dd> + * <dt>version:</dt> <dd>The version in use</dd> + * <dt>build:</dt> <dd>The build number in use</dd> + * <dt>versions:</dt> <dd>All versions that were registered</dd> + * <dt>builds:</dt> <dd>All builds that were registered.</dd> + * <dt>mainClass:</dt> <dd>An object that was was stamped with the + * current version and build. If + * mainClass.VERSION != version or mainClass.BUILD != build, + * multiple versions of pieces of the library have been + * loaded, potentially causing issues.</dd> + * </dl> + * + * @method getVersion + * @static + * @param {String} name the name of the module (event, slider, etc) + * @return {Object} The version info + */ + getVersion: function(name) { + return YAHOO.env.modules[name] || null; + } +}; + +/** + * Provides the language utilites and extensions used by the library + * @class YAHOO.lang + */ +YAHOO.lang = { + /** + * Determines whether or not the provided object is an array + * @method isArray + * @param {any} obj The object being testing + * @return Boolean + */ + isArray: function(obj) { // frames lose type, so test constructor string + if (obj.constructor && obj.constructor.toString().indexOf('Array') > -1) { + return true; + } else { + return YAHOO.lang.isObject(obj) && obj.constructor == Array; + } + }, + + /** + * Determines whether or not the provided object is a boolean + * @method isBoolean + * @param {any} obj The object being testing + * @return Boolean + */ + isBoolean: function(obj) { + return typeof obj == 'boolean'; + }, + + /** + * Determines whether or not the provided object is a function + * @method isFunction + * @param {any} obj The object being testing + * @return Boolean + */ + isFunction: function(obj) { + return typeof obj == 'function'; + }, + + /** + * Determines whether or not the provided object is null + * @method isNull + * @param {any} obj The object being testing + * @return Boolean + */ + isNull: function(obj) { + return obj === null; + }, + + /** + * Determines whether or not the provided object is a legal number + * @method isNumber + * @param {any} obj The object being testing + * @return Boolean + */ + isNumber: function(obj) { + return typeof obj == 'number' && isFinite(obj); + }, + + /** + * Determines whether or not the provided object is of type object + * or function + * @method isObject + * @param {any} obj The object being testing + * @return Boolean + */ + isObject: function(obj) { + return typeof obj == 'object' || YAHOO.lang.isFunction(obj); + }, + + /** + * Determines whether or not the provided object is a string + * @method isString + * @param {any} obj The object being testing + * @return Boolean + */ + isString: function(obj) { + return typeof obj == 'string'; + }, + + /** + * Determines whether or not the provided object is undefined + * @method isUndefined + * @param {any} obj The object being testing + * @return Boolean + */ + isUndefined: function(obj) { + return typeof obj == 'undefined'; + }, + + /** + * Determines whether or not the property was added + * to the object instance. Returns false if the property is not present + * in the object, or was inherited from the prototype. + * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x. + * There is a discrepancy between YAHOO.lang.hasOwnProperty and + * Object.prototype.hasOwnProperty when the property is a primitive added to + * both the instance AND prototype with the same value: + * <pre> + * var A = function() {}; + * A.prototype.foo = 'foo'; + * var a = new A(); + * a.foo = 'foo'; + * alert(a.hasOwnProperty('foo')); // true + * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback + * </pre> + * @method hasOwnProperty + * @param {any} obj The object being testing + * @return Boolean + */ + hasOwnProperty: function(obj, prop) { + if (Object.prototype.hasOwnProperty) { + return obj.hasOwnProperty(prop); + } + + return !YAHOO.lang.isUndefined(obj[prop]) && + obj.constructor.prototype[prop] !== obj[prop]; + }, + + /** + * Utility to set up the prototype, constructor and superclass properties to + * support an inheritance strategy that can chain constructors and methods. + * + * @method extend + * @static + * @param {Function} subc the object to modify + * @param {Function} superc the object to inherit + * @param {Object} overrides additional properties/methods to add to the + * subclass prototype. These will override the + * matching items obtained from the superclass + * if present. + */ + extend: function(subc, superc, overrides) { + var F = function() {}; + F.prototype=superc.prototype; + subc.prototype=new F(); + subc.prototype.constructor=subc; + subc.superclass=superc.prototype; + if (superc.prototype.constructor == Object.prototype.constructor) { + superc.prototype.constructor=superc; + } + + if (overrides) { + for (var i in overrides) { + subc.prototype[i]=overrides[i]; + } + } + }, + + /** + * Applies all prototype properties in the supplier to the receiver if the + * receiver does not have these properties yet. Optionally, one or more + * methods/properties can be specified (as additional parameters). This + * option will overwrite the property if receiver has it already. + * + * @method augment + * @static + * @param {Function} r the object to receive the augmentation + * @param {Function} s the object that supplies the properties to augment + * @param {String*} arguments zero or more properties methods to augment the + * receiver with. If none specified, everything + * in the supplier will be used unless it would + * overwrite an existing property in the receiver + */ + augment: function(r, s) { + var rp=r.prototype, sp=s.prototype, a=arguments, i, p; + if (a[2]) { + for (i=2; i<a.length; i=i+1) { + rp[a[i]] = sp[a[i]]; + } + } else { + for (p in sp) { + if (!rp[p]) { + rp[p] = sp[p]; + } + } + } + } +}; + +YAHOO.init(); + +/* + * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a> + * @class YAHOO.util.Lang + */ +YAHOO.util.Lang = YAHOO.lang; + +/** + * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a> + * @for YAHOO + * @method augment + * @static + * @param {Function} r the object to receive the augmentation + * @param {Function} s the object that supplies the properties to augment + * @param {String*} arguments zero or more properties methods to augment the + * receiver with. If none specified, everything + * in the supplier will be used unless it would + * overwrite an existing property in the receiver + */ +YAHOO.augment = YAHOO.lang.augment; + +/** + * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a> + * @method extend + * @static + * @param {Function} subc the object to modify + * @param {Function} superc the object to inherit + * @param {Object} overrides additional properties/methods to add to the + * subclass prototype. These will override the + * matching items obtained from the superclass + * if present. + */ +YAHOO.extend = YAHOO.lang.extend; + +YAHOO.register("yahoo", YAHOO, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/js/yui/yahoo/yahoo-min.js b/interface/ispconfig/interface/js/yui/yahoo/yahoo-min.js new file mode 100644 index 0000000..0747668 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo/yahoo-min.js @@ -0,0 +1,15 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ + +if(typeof YAHOO=="undefined"){var YAHOO={};} +YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}} +return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}} +if(unique){ls.push(l);}}}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};} +var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);} +if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:function(name){return YAHOO.env.modules[name]||null;}};YAHOO.lang={isArray:function(obj){if(obj.constructor&&obj.constructor.toString().indexOf('Array')>-1){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return typeof obj=='object'||YAHOO.lang.isFunction(obj);},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);} +return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;} +if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.0",build:"127"}); \ No newline at end of file diff --git a/interface/ispconfig/interface/js/yui/yahoo/yahoo.js b/interface/ispconfig/interface/js/yui/yahoo/yahoo.js new file mode 100644 index 0000000..de26df2 --- /dev/null +++ b/interface/ispconfig/interface/js/yui/yahoo/yahoo.js @@ -0,0 +1,433 @@ +/* +Copyright (c) 2007, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 2.2.0 +*/ +/** + * The YAHOO object is the single global object used by YUI Library. It + * contains utility function for setting up namespaces, inheritance, and + * logging. YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces + * created automatically for and used by the library. + * @module yahoo + * @title YAHOO Global + */ + +/** + * YAHOO_config is not included part of the library. Instead it is an object + * that can be defined by the implementer immediately before including the + * YUI library. The properties included in this object will be used to + * configure global properties needed as soon as the library begins to load. + * @class YAHOO_config + * @static + */ + +/** + * A reference to a function that will be executed every time a YAHOO module + * is loaded. As parameter, this function will receive the version + * information for the module. See <a href="YAHOO.env.html#getVersion"> + * YAHOO.env.getVersion</a> for the description of the version data structure. + * @property listener + * @static + */ +if (typeof YAHOO == "undefined") { + /** + * The YAHOO global namespace object. If YAHOO is already defined, the + * existing YAHOO object will not be overwritten so that defined + * namespaces are preserved. + * @class YAHOO + * @static + */ + var YAHOO = {}; +} + +/** + * Returns the namespace specified and creates it if it doesn't exist + * <pre> + * YAHOO.namespace("property.package"); + * YAHOO.namespace("YAHOO.property.package"); + * </pre> + * Either of the above would create YAHOO.property, then + * YAHOO.property.package + * + * Be careful when naming packages. Reserved words may work in some browsers + * and not others. For instance, the following will fail in Safari: + * <pre> + * YAHOO.namespace("really.long.nested.namespace"); + * </pre> + * This fails because "long" is a future reserved word in ECMAScript + * + * @method namespace + * @static + * @param {String*} arguments 1-n namespaces to create + * @return {Object} A reference to the last namespace object created + */ +YAHOO.namespace = function() { + var a=arguments, o=null, i, j, d; + for (i=0; i<a.length; i=i+1) { + d=a[i].split("."); + o=YAHOO; + + // YAHOO is implied, so it is ignored if it is included + for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) { + o[d[j]]=o[d[j]] || {}; + o=o[d[j]]; + } + } + + return o; +}; + +/** + * Uses YAHOO.widget.Logger to output a log message, if the widget is + * available. + * + * @method log + * @static + * @param {String} msg The message to log. + * @param {String} cat The log category for the message. Default + * categories are "info", "warn", "error", time". + * Custom categories can be used as well. (opt) + * @param {String} src The source of the the message (opt) + * @return {Boolean} True if the log operation was successful. + */ +YAHOO.log = function(msg, cat, src) { + var l=YAHOO.widget.Logger; + if(l && l.log) { + return l.log(msg, cat, src); + } else { + return false; + } +}; + + +/** + * Initializes the global by creating the default namespaces and applying + * any new configuration information that is detected. + * @method init + * @static + */ +YAHOO.init = function() { + this.namespace("util", "widget", "example"); + if (typeof YAHOO_config != "undefined") { + var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i; + if (l) { + // if YAHOO is loaded multiple times we need to check to see if + // this is a new config object. If it is, add the new component + // load listener to the stack + for (i=0;i<ls.length;i=i+1) { + if (ls[i]==l) { + unique=false; + break; + } + } + if (unique) { + ls.push(l); + } + } + } +}; + +/** + * Registers a module with the YAHOO object + * @method register + * @static + * @param {String} name the name of the module (event, slider, etc) + * @param {Function} mainClass a reference to class in the module. This + * class will be tagged with the version info + * so that it will be possible to identify the + * version that is in use when multiple versions + * have loaded + * @param {Object} data metadata object for the module. Currently it + * is expected to contain a "version" property + * and a "build" property at minimum. + */ +YAHOO.register = function(name, mainClass, data) { + var mods = YAHOO.env.modules; + if (!mods[name]) { + mods[name] = { versions:[], builds:[] }; + } + var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners; + m.name = name; + m.version = v; + m.build = b; + m.versions.push(v); + m.builds.push(b); + m.mainClass = mainClass; + // fire the module load listeners + for (var i=0;i<ls.length;i=i+1) { + ls[i](m); + } + // label the main class + if (mainClass) { + mainClass.VERSION = v; + mainClass.BUILD = b; + } else { + YAHOO.log("mainClass is undefined for module " + name, "warn"); + } +}; + +/** + * YAHOO.env is used to keep track of what is known about the YUI library and + * the browsing environment + * @class YAHOO.env + * @type Object + * @static + */ +YAHOO.env = YAHOO.env || { + /** + * Keeps the version info for all YUI modules that have reported themselves + * @property modules + * @type Object[] + */ + modules: [], + + /** + * List of functions that should be executed every time a YUI module + * reports itself. + * @property listeners + * @type Function[] + */ + listeners: [], + + /** + * Returns the version data for the specified module: + * <dl> + * <dt>name:</dt> <dd>The name of the module</dd> + * <dt>version:</dt> <dd>The version in use</dd> + * <dt>build:</dt> <dd>The build number in use</dd> + * <dt>versions:</dt> <dd>All versions that were registered</dd> + * <dt>builds:</dt> <dd>All builds that were registered.</dd> + * <dt>mainClass:</dt> <dd>An object that was was stamped with the + * current version and build. If + * mainClass.VERSION != version or mainClass.BUILD != build, + * multiple versions of pieces of the library have been + * loaded, potentially causing issues.</dd> + * </dl> + * + * @method getVersion + * @static + * @param {String} name the name of the module (event, slider, etc) + * @return {Object} The version info + */ + getVersion: function(name) { + return YAHOO.env.modules[name] || null; + } +}; + +/** + * Provides the language utilites and extensions used by the library + * @class YAHOO.lang + */ +YAHOO.lang = { + /** + * Determines whether or not the provided object is an array + * @method isArray + * @param {any} obj The object being testing + * @return Boolean + */ + isArray: function(obj) { // frames lose type, so test constructor string + if (obj.constructor && obj.constructor.toString().indexOf('Array') > -1) { + return true; + } else { + return YAHOO.lang.isObject(obj) && obj.constructor == Array; + } + }, + + /** + * Determines whether or not the provided object is a boolean + * @method isBoolean + * @param {any} obj The object being testing + * @return Boolean + */ + isBoolean: function(obj) { + return typeof obj == 'boolean'; + }, + + /** + * Determines whether or not the provided object is a function + * @method isFunction + * @param {any} obj The object being testing + * @return Boolean + */ + isFunction: function(obj) { + return typeof obj == 'function'; + }, + + /** + * Determines whether or not the provided object is null + * @method isNull + * @param {any} obj The object being testing + * @return Boolean + */ + isNull: function(obj) { + return obj === null; + }, + + /** + * Determines whether or not the provided object is a legal number + * @method isNumber + * @param {any} obj The object being testing + * @return Boolean + */ + isNumber: function(obj) { + return typeof obj == 'number' && isFinite(obj); + }, + + /** + * Determines whether or not the provided object is of type object + * or function + * @method isObject + * @param {any} obj The object being testing + * @return Boolean + */ + isObject: function(obj) { + return typeof obj == 'object' || YAHOO.lang.isFunction(obj); + }, + + /** + * Determines whether or not the provided object is a string + * @method isString + * @param {any} obj The object being testing + * @return Boolean + */ + isString: function(obj) { + return typeof obj == 'string'; + }, + + /** + * Determines whether or not the provided object is undefined + * @method isUndefined + * @param {any} obj The object being testing + * @return Boolean + */ + isUndefined: function(obj) { + return typeof obj == 'undefined'; + }, + + /** + * Determines whether or not the property was added + * to the object instance. Returns false if the property is not present + * in the object, or was inherited from the prototype. + * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x. + * There is a discrepancy between YAHOO.lang.hasOwnProperty and + * Object.prototype.hasOwnProperty when the property is a primitive added to + * both the instance AND prototype with the same value: + * <pre> + * var A = function() {}; + * A.prototype.foo = 'foo'; + * var a = new A(); + * a.foo = 'foo'; + * alert(a.hasOwnProperty('foo')); // true + * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback + * </pre> + * @method hasOwnProperty + * @param {any} obj The object being testing + * @return Boolean + */ + hasOwnProperty: function(obj, prop) { + if (Object.prototype.hasOwnProperty) { + return obj.hasOwnProperty(prop); + } + + return !YAHOO.lang.isUndefined(obj[prop]) && + obj.constructor.prototype[prop] !== obj[prop]; + }, + + /** + * Utility to set up the prototype, constructor and superclass properties to + * support an inheritance strategy that can chain constructors and methods. + * + * @method extend + * @static + * @param {Function} subc the object to modify + * @param {Function} superc the object to inherit + * @param {Object} overrides additional properties/methods to add to the + * subclass prototype. These will override the + * matching items obtained from the superclass + * if present. + */ + extend: function(subc, superc, overrides) { + var F = function() {}; + F.prototype=superc.prototype; + subc.prototype=new F(); + subc.prototype.constructor=subc; + subc.superclass=superc.prototype; + if (superc.prototype.constructor == Object.prototype.constructor) { + superc.prototype.constructor=superc; + } + + if (overrides) { + for (var i in overrides) { + subc.prototype[i]=overrides[i]; + } + } + }, + + /** + * Applies all prototype properties in the supplier to the receiver if the + * receiver does not have these properties yet. Optionally, one or more + * methods/properties can be specified (as additional parameters). This + * option will overwrite the property if receiver has it already. + * + * @method augment + * @static + * @param {Function} r the object to receive the augmentation + * @param {Function} s the object that supplies the properties to augment + * @param {String*} arguments zero or more properties methods to augment the + * receiver with. If none specified, everything + * in the supplier will be used unless it would + * overwrite an existing property in the receiver + */ + augment: function(r, s) { + var rp=r.prototype, sp=s.prototype, a=arguments, i, p; + if (a[2]) { + for (i=2; i<a.length; i=i+1) { + rp[a[i]] = sp[a[i]]; + } + } else { + for (p in sp) { + if (!rp[p]) { + rp[p] = sp[p]; + } + } + } + } +}; + +YAHOO.init(); + +/* + * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a> + * @class YAHOO.util.Lang + */ +YAHOO.util.Lang = YAHOO.lang; + +/** + * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a> + * @for YAHOO + * @method augment + * @static + * @param {Function} r the object to receive the augmentation + * @param {Function} s the object that supplies the properties to augment + * @param {String*} arguments zero or more properties methods to augment the + * receiver with. If none specified, everything + * in the supplier will be used unless it would + * overwrite an existing property in the receiver + */ +YAHOO.augment = YAHOO.lang.augment; + +/** + * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a> + * @method extend + * @static + * @param {Function} subc the object to modify + * @param {Function} superc the object to inherit + * @param {Object} overrides additional properties/methods to add to the + * subclass prototype. These will override the + * matching items obtained from the superclass + * if present. + */ +YAHOO.extend = YAHOO.lang.extend; + +YAHOO.register("yahoo", YAHOO, {version: "2.2.0", build: "127"}); diff --git a/interface/ispconfig/interface/keepalive.php b/interface/ispconfig/interface/keepalive.php new file mode 100644 index 0000000..6ba2b8f --- /dev/null +++ b/interface/ispconfig/interface/keepalive.php @@ -0,0 +1,36 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +error_reporting(E_ALL|E_STRICT); + +require_once('../lib/config.inc.php'); +require_once('../lib/app.inc.php'); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/login/index.php b/interface/ispconfig/interface/login/index.php new file mode 100644 index 0000000..a1e2bef --- /dev/null +++ b/interface/ispconfig/interface/login/index.php @@ -0,0 +1,203 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +// + +class login_index { + + public $status = ''; + private $target = ''; + private $app; + private $conf; + + public function render() { + + global $app, $conf; + + /* Redirect to page, if login form was NOT send */ + if(count($_POST) == 0) { + if(isset($_SESSION['s']['user']) && is_array($_SESSION['s']['user']) && is_array($_SESSION['s']['module'])) { + die('HEADER_REDIRECT:'.$_SESSION['s']['module']['startpage']); + } + } + + $app->uses('tpl'); + $app->tpl->newTemplate('form.tpl.htm'); + + $error = ''; + + $app->load_language_file('web/login/lib/lang/'.$conf["language"].'.lng'); + + + //* Login Form was send + if(count($_POST) > 0) { + + //** Check variables + if(!preg_match("/^[\w\.\-\_]{1,64}$/", $_POST['username'])) $error = $app->lng('user_regex_error'); + if(!preg_match("/^.{1,64}$/i", $_POST['passwort'])) $error = $app->lng('pw_error_length'); + + //** iporting variables + $ip = $app->db->quote(ip2long($_SERVER['REMOTE_ADDR'])); + $username = $app->db->quote($_POST['username']); + $passwort = $app->db->quote($_POST['passwort']); + $loginAs = false; + $time = time(); + + if($username != '' && $passwort != '' && $error == '') { + /* + * Check, if there is a "login as" instead of a "normal" login + */ + if (isset($_SESSION['s']['user']) && $_SESSION['s']['user']['active'] == 1){ + /* + * only the admin can "login as" so if the user is NOT a admin, we + * open the startpage (after killing the old session), so the user + * is logout and has to start again! + */ + if ($_SESSION['s']['user']['typ'] != 'admin') { + /* + * The actual user is NOT a admin, but maybe the admin + * has logged in as "normal" user bevore... + */ + if (isset($_SESSION['s_old'])&& ($_SESSION['s_old']['user']['typ'] == 'admin')){ + /* The "old" user is admin, so everything is ok */ + } + else { + die("You don't have the right to 'login as'!"); + } + } + $loginAs = true; + } + else { + /* normal login */ + $loginAs = false; + } + + //* Check if there are already wrong logins + $sql = "SELECT * FROM `attempts_login` WHERE `ip`= '{$ip}' AND `login_time` > (NOW() - INTERVAL 1 MINUTE) LIMIT 1"; + $alreadyfailed = $app->db->queryOneRecord($sql); + //* login to much wrong + if($alreadyfailed['times'] > 5) { + $error = $app->lng('error_user_too_many_logins'); + } else { + if ($loginAs){ + $sql = "SELECT * FROM sys_user WHERE USERNAME = '$username' and PASSWORT = '". $passwort. "'"; + $user = $app->db->queryOneRecord($sql); + } else { + $sql = "SELECT * FROM sys_user WHERE USERNAME = '$username'"; + $user = $app->db->queryOneRecord($sql); + if($user && $user['active'] == 1) { + $saved_password = stripslashes($user['passwort']); + if(substr($saved_password,0,3) == '$1$') { + //* The password is crypt-md5 encrypted + $salt = '$1$'.substr($saved_password,3,8).'$'; + if(crypt($passwort,$salt) != $saved_password) { + $user = false; + } + } else { + //* The password is md5 encrypted + if(md5($passwort) != $saved_password) { + $user = false; + } + } + } else { + $user = false; + } + } + + if($user) { + if($user['active'] == 1) { + // User login right, so attempts can be deleted + $sql = "DELETE FROM `attempts_login` WHERE `ip`='{$ip}'"; + $app->db->query($sql); + $user = $app->db->toLower($user); + if ($loginAs) $oldSession = $_SESSION['s']; + $_SESSION = array(); + if ($loginAs) $_SESSION['s_old'] = $oldSession; // keep the way back! + $_SESSION['s']['user'] = $user; + $_SESSION['s']['user']['theme'] = isset($user['app_theme']) ? $user['app_theme'] : 'default'; + $_SESSION['s']['language'] = $user['language']; + $_SESSION["s"]['theme'] = $_SESSION['s']['user']['theme']; + + if(is_file($_SESSION['s']['user']['startmodule'].'/lib/module.conf.php')) { + include_once($_SESSION['s']['user']['startmodule'].'/lib/module.conf.php'); + $_SESSION['s']['module'] = $module; + } + + $app->plugin->raiseEvent('login',$this); + + echo 'HEADER_REDIRECT:'.$_SESSION['s']['module']['startpage']; + + exit; + } else { + $error = $app->lng('error_user_blocked'); + } + } else { + if(!$alreadyfailed['times'] ) + { + //* user login the first time wrong + $sql = "INSERT INTO `attempts_login` (`ip`, `times`, `login_time`) VALUES ('{$ip}', 1, NOW())"; + $app->db->query($sql); + } elseif($alreadyfailed['times'] >= 1) { + //* update times wrong + $sql = "UPDATE `attempts_login` SET `times`=`times`+1, `login_time`=NOW() WHERE `login_time` >= '{$time}' LIMIT 1"; + $app->db->query($sql); + } + //* Incorrect login - Username and password incorrect + $error = $app->lng('error_user_password_incorrect'); + if($app->db->errorMessage != '') $error .= '<br />'.$app->db->errorMessage != ''; + } + } + } else { + //* Username or password empty + if($error == '') $error = $app->lng('error_user_password_empty'); + } + } + if($error != ''){ + $error = '<div class="box box_error"><h1>Error</h1>'.$error.'</div>'; + } + + + + $app->tpl->setVar('error', $error); + $app->tpl->setVar('username_txt', $app->lng('username_txt')); + $app->tpl->setVar('password_txt', $app->lng('password_txt')); + $app->tpl->setVar('login_button_txt', $app->lng('login_button_txt')); + $app->tpl->setInclude('content_tpl','login/templates/index.htm'); + $app->tpl_defaults(); + + $this->status = 'OK'; + + return $app->tpl->grab(); + + } // << end function + +} // << end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/login/lib/lang/bg.lng b/interface/ispconfig/interface/login/lib/lang/bg.lng new file mode 100644 index 0000000..9a91034 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/bg.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Нова парола ще бъде генерирана и изпратена на електронната ви поща, ако адресът съвпада с въведения в потребителския ви профил.'; +$wb['pw_reset'] = 'Новата ви парола беше изпратена на електронната ви поща.'; +$wb['pw_error'] = 'Греяно потребителското име или електронна поща.'; +$wb['pw_error_noinput'] = 'Моля въведете потребителско име и електронна поща.'; +$wb['pw_reset_mail_msg'] = 'Новата парола за вашия ISPConfig 3 контролен панел е:'; +$wb['pw_reset_mail_title'] = 'Нова парола за вашия ISPConfig 3 контролен панел'; +$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.'; +$wb['pw_error_length'] = 'The password length is > 64 characters.'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/br.lng b/interface/ispconfig/interface/login/lib/lang/br.lng new file mode 100644 index 0000000..4f2d676 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/br.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Uma nova senha foi gerada e será enviada para você via correio eletrônico cadastrado no sistema.'; +$wb['pw_reset'] = 'Senha restabelecida! Será enviada para você via correio eletrônico cadastrado no sistema.'; +$wb['pw_error'] = 'Nome de usuário ou correio eletrônico não coincidem.'; +$wb['pw_error_noinput'] = 'Favor informar nome de usuário e endereço de correio válidos.'; +$wb['pw_reset_mail_msg'] = 'Sua senha do painel de controle foi restabelecida. A sua nova senha é: '; +$wb['pw_reset_mail_title'] = 'Sua senha do painel de controle foi restabelecida.'; +$wb['user_regex_error'] = 'O nome de usuário contém mais de 64 caracteres ou contém caracteres inválidos.'; +$wb['pw_error_length'] = 'Tamanho da senha não pode ser maior do que 64 caracteres.'; +$wb['error_user_password_empty'] = 'Usuário ou Senha em branco.'; +$wb['error_user_password_incorrect'] = 'Usuário ou Senha incorretos.'; +$wb['error_user_blocked'] = 'O usuário está bloqueado.'; +$wb['error_user_too_many_logins'] = 'Várias tentativas de logins incorretas, faça uma nova tentativa dentro de 15 minutos.'; +$wb['username_txt'] = 'Usuário'; +$wb['password_txt'] = 'Senha'; +$wb['login_button_txt'] = 'Entrar'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/de.lng b/interface/ispconfig/interface/login/lib/lang/de.lng new file mode 100644 index 0000000..855798a --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/de.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Ein neues Passwort wird generiert und an die Emailadresse, die in ihren Benutzereinstellungen hinterlegt ist and send to your email address if the email address entered above matches the email addres'; +$wb['pw_reset'] = 'Das Passwort wurde zurückgesetzt und wird per Email an sie geschickt.'; +$wb['pw_error'] = 'Benutzername oder Emailadresse stimmen nicht überein.'; +$wb['pw_error_noinput'] = 'Bitte geben Sie ihre Emailadresse und ihren Benutzernamen ein.'; +$wb['pw_reset_mail_msg'] = 'Das Passwort für ihr ISPConfig 3 Controlpanel Konto wurde zurückgesetzt. Das neue Passwort ist: '; +$wb['pw_reset_mail_title'] = 'ISPConfig 3 Controlpanel Passwort wurde zurückgesetzt.'; +$wb['user_regex_error'] = 'Benutzername beinhaltet nicht erlaubte Zeichen oder ist länger als 64 Zeichen.'; +$wb['pw_error_length'] = 'Die Passwortlänge ist > 64 Zeichen.'; +$wb['error_user_password_empty'] = 'Bwnutzername oder Passwort leer.'; +$wb['error_user_password_incorrect'] = 'Benutzername oder Passwort falsch.'; +$wb['error_user_blocked'] = 'Benutzer ist gesperrt.'; +$wb['error_user_too_many_logins'] = 'Zu viele falsche Logins. Bitte nach 15 Minuten nochmal probieren.'; +$wb['username_txt'] = 'Benutzername'; +$wb['password_txt'] = 'Passwort'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/en.lng b/interface/ispconfig/interface/login/lib/lang/en.lng new file mode 100644 index 0000000..fc488cd --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/en.lng @@ -0,0 +1,22 @@ +<?php + +$wb['error_user_password_empty'] = "Username or Password empty."; +$wb['error_user_password_incorrect'] = "Username or Password wrong."; +$wb['error_user_blocked'] = "User is blocked."; +$wb['error_user_too_many_logins'] = "To many wrong login's, Please retry it after 15 minutes"; +$wb['pass_reset_txt'] = 'A new password will be generated and send to your email address if the email address entered below matches the email address in your client settings.'; +$wb['pw_reset'] = 'The password has been reset and send to your email address.'; +$wb['pw_error'] = 'Username or email address does not match.'; +$wb['pw_error_noinput'] = 'Please enter email address and username.'; + +$wb['pw_reset_mail_msg'] = 'The password to your Damamax Hosting control panel account has been reset. The new password is: '; +$wb['pw_reset_mail_title'] = 'Damamax Hosting Control panel password has been reset.'; + +$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.'; +$wb['pw_error_length'] = 'The password length is > 64 characters.'; + +$wb['username_txt'] = "Username"; +$wb['password_txt'] = "Password"; +$wb['login_button_txt'] = "Login"; + +?> diff --git a/interface/ispconfig/interface/login/lib/lang/es.lng b/interface/ispconfig/interface/login/lib/lang/es.lng new file mode 100644 index 0000000..9db2714 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/es.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Se generará una nueva contraseña y se le enviará a la cuenta de correo indicada en su configuración.'; +$wb['pw_reset'] = 'La nueva contraseña ha sido generada y enviada a su cuenta de correo.'; +$wb['pw_error'] = 'El usuario o la cuenta de correo no coinciden.'; +$wb['pw_error_noinput'] = 'Por favor, introduzca la dirección de correo y el nombre de usuario.'; +$wb['pw_reset_mail_msg'] = 'La contraseña de su cuenta de panel de control ISPConfig 3 ha sido regenerada. La nueva contraseña es: '; +$wb['pw_reset_mail_title'] = 'La contraseña del panel de control ISPConfig 3 ha sido regenerada.'; +$wb['user_regex_error'] = 'El nombre de usuario contiene caracteres no permitidos o tiene más de 64 caracteres.'; +$wb['pw_error_length'] = 'La longitud de la contraseña es superior a 64 caracteres.'; +$wb['error_user_password_empty'] = 'Nombre de usuario o contraseña vacía.'; +$wb['error_user_password_incorrect'] = 'Nombre de usuario o contraseña incorrecta.'; +$wb['error_user_blocked'] = 'El usuario está bloqueado.'; +$wb['error_user_too_many_logins'] = 'Demasiados errores de inicio de sesión. Por favor, vuélvalo a intentar dentro de 15 minutos.'; +$wb['username_txt'] = 'Nombre de usuario'; +$wb['password_txt'] = 'Contraseña'; +$wb['login_button_txt'] = 'Iniciar sesión'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/fi.lng b/interface/ispconfig/interface/login/lib/lang/fi.lng new file mode 100644 index 0000000..7385385 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/fi.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Uusi salasana luodaan ja lähetetään asiakastiedoissasi olevaan sähköpostiosoitteeseen.'; +$wb['pw_reset'] = 'Salasana on vaihdettu ja lähetetty sähköpostiisi.'; +$wb['pw_error'] = 'Käyttäjätunnusta tai sähköpostiosoitetta ei löydy.'; +$wb['pw_error_noinput'] = 'Anna sähköpostiosoite ja käyttäjätunnus.'; +$wb['pw_reset_mail_msg'] = 'Käyttäjätunnuksesi salasana ISPConfi3 Hallintapaneeliin on vaihdettu. Uusi salasanasi: '; +$wb['pw_reset_mail_title'] = 'ISPConfi3 Hallintapaneelin salasana on vaihdettu.'; +$wb['user_regex_error'] = 'Käyttäjänimi sisältää kiellettyjä merkkejä tai on yli 64 merkkiä pitkä.'; +$wb['pw_error_length'] = 'Salasana ei voi olla yli 64 merkkiä pitkä.'; +$wb['error_user_password_empty'] = 'Käyttäjänimi- tai salasana-kenttä on tyhjä.'; +$wb['error_user_password_incorrect'] = 'Käyttäjänimi tai salasana on väärin.'; +$wb['error_user_blocked'] = 'Käyttäjätunnus on estetty.'; +$wb['error_user_too_many_logins'] = 'Liian monta yritystä, yritä uudestaan aikaisintaan 15 minuutin kuluttua.'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['password_txt'] = 'Salasana'; +$wb['login_button_txt'] = 'Kirjaudu'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/fr.lng b/interface/ispconfig/interface/login/lib/lang/fr.lng new file mode 100644 index 0000000..115a33a --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/fr.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Un nouveau mot de passe vous sera envoyé à votre adresse e-mail si celle-ci correspond à celle dans votre espace client.'; +$wb['pw_reset'] = 'Le mot de passe a été réinitialisé, et vous a été envoyé à votre adresse e-mail.'; +$wb['pw_error'] = 'Le nom dutilisateur et/ou ladresse e-mail ne correspondent pas.'; +$wb['pw_error_noinput'] = 'Entrez votre nom dutilisateur et votre adresse e-mail.'; +$wb['pw_reset_mail_msg'] = 'Le mot de passe daccès à votre panel a été réinitialisé. Le nouveau mot de passe est: '; +$wb['pw_reset_mail_title'] = 'Le mot de passe daccès à votre panel a été réinitialisé.'; +$wb['user_regex_error'] = 'Le nom dutilisateur contient des caractères incorrects ou contient plus de 64 caractères.'; +$wb['pw_error_length'] = 'Le nom dutilisateur contient plus de que 64 caractères.'; +$wb['error_user_password_empty'] = 'Le nom dutilisateur ou le mot de passe sont vides.'; +$wb['error_user_password_incorrect'] = 'Le nom dutilisateur ou le mot de passe sont incorrects.'; +$wb['error_user_blocked'] = 'Lutilisateur a été bloqué.'; +$wb['error_user_too_many_logins'] = 'Trop de tentatives effectuées, essayez dans 15 minutes.'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['password_txt'] = 'Mot de passe'; +$wb['login_button_txt'] = 'Connection'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/hu.lng b/interface/ispconfig/interface/login/lib/lang/hu.lng new file mode 100644 index 0000000..1092762 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/hu.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Új jelszót generáltunk és email címére elküldjük, amennyiben a lent beírt email cím megegyezik a nyilvántartásban szereplő címmel.'; +$wb['pw_reset'] = 'Jelszavát reseteltük és elküldtük email címére.'; +$wb['pw_error'] = 'Felhasználónév vagy email cím nem egyezik.'; +$wb['pw_error_noinput'] = 'Kérem üsse be email címét és felahsználónevét.'; +$wb['pw_reset_mail_msg'] = 'The password to your ISPConfig 3 control panel hozzáfárás módosítva. Az új jelszó: '; +$wb['pw_reset_mail_title'] = 'ISPConfig 3 Control panel jelszó módosítva.'; +$wb['user_regex_error'] = 'Felhasználónév érvénytelen karaktereket tartalmaz, vagy több mint 64 karakter'; +$wb['pw_error_length'] = 'A jelszó kevesebb legyen mint 64 karakter'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/it.lng b/interface/ispconfig/interface/login/lib/lang/it.lng new file mode 100644 index 0000000..23940d3 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/it.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Una nuova password sarà generata e spedita alla tua email se l`email inserita corrisponde a quella delle impostazioni dell`utente.'; +$wb['pw_reset'] = 'La password è stata reimpostata e spedita al tuo indirizzo mail.'; +$wb['pw_error'] = 'Nome utente o email non corrispondenti.'; +$wb['pw_error_noinput'] = 'Inserisci nome utente e indirizzo email.'; +$wb['pw_reset_mail_msg'] = 'La password nel tuo pannello di controllo ISPConfig 3 è stata reimpostata. La nuova password è: '; +$wb['pw_reset_mail_title'] = 'Password del pannello di controllo ISPConfig 3 reimpostata.'; +$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.'; +$wb['pw_error_length'] = 'The password length is > 64 characters.'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/ja.lng b/interface/ispconfig/interface/login/lib/lang/ja.lng new file mode 100644 index 0000000..7cfb1d8 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/ja.lng @@ -0,0 +1,17 @@ +<?php +$wb['error_user_password_empty'] = 'ユーザー名またはパスワードが未入力です。'; +$wb['error_user_password_incorrect'] = 'ユーザー名またはパスワードが正しくありません。'; +$wb['error_user_blocked'] = 'ログインが拒否されました。'; +$wb['error_user_too_many_logins'] = '許容回数を超えてログインに失敗しました。15分後に再度お試しください。'; +$wb['pass_reset_txt'] = '新しいパスワードをメールで送りました。ただし、下記に入力したメールアドレスがクライアントの設定と一致している場合のみです。メールが届かない場合は、メールアドレスを確認してください。'; +$wb['pw_reset'] = 'パスワードをリセットしました。新しいパスワードをメールで送信したのでメールボックスを確認してください。'; +$wb['pw_error'] = 'ユーザー名またはメールアドレスが一致しません。'; +$wb['pw_error_noinput'] = 'メールアドレスとユーザー名を入力してください。'; +$wb['pw_reset_mail_msg'] = 'ISPConfig 3 のコントロールパネルのパスワードをリセットしました。新しいパスワードは次の通りです:'; +$wb['pw_reset_mail_title'] = 'ISPConfig3 のコントロールパネルのパスワードをリセットしました。'; +$wb['user_regex_error'] = 'ユーザー名に不正な文字が含まれているか、または64文字を超えています。'; +$wb['pw_error_length'] = 'パスワードの長さが64文字を超えています。短くしてください。'; +$wb['username_txt'] = 'ユーザー名'; +$wb['password_txt'] = 'パスワード'; +$wb['login_button_txt'] = 'ログイン'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/nl.lng b/interface/ispconfig/interface/login/lib/lang/nl.lng new file mode 100644 index 0000000..46e1175 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/nl.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Een nieuw wachtwoord zal worden gegenereerd en na het hierboven ingevulde Emailadres worden gestuurd, op voorwaarde dat het Emailadres overeenkomt met het e-mailadres in uw klanten-settings'; +$wb['pw_reset'] = 'Het wachtwoord is gereset en is verzonden aan uw e-mailadres.'; +$wb['pw_error'] = 'Gebruikersnaam of e-mailadres komen niet overeen.'; +$wb['pw_error_noinput'] = 'Voer a.u.b. uw e-mailadres en gebruikersnaam in.'; +$wb['pw_reset_mail_msg'] = 'Het wachtwoord dat toegang biedt tot ISPConfig 3 is gereset. Het nieuwe wachtwoord is: '; +$wb['pw_reset_mail_title'] = 'Het wachtwoord dat toegang biedt tot ISPConfig 3 is gereset.'; +$wb['user_regex_error'] = 'Gebruikersnaam bevat ongeldige tekens, of is langer dan 64 karakters.'; +$wb['pw_error_length'] = 'Wachtwoord-lengte is groter dan 64 karakters.'; +$wb['error_user_password_empty'] = 'Gebruikersnaam of wachtwoord is leeg.'; +$wb['error_user_password_incorrect'] = 'Gebruikersnaam of wachtwoord is niet juist.'; +$wb['error_user_blocked'] = 'Gebruiker is geblokkeerd.'; +$wb['error_user_too_many_logins'] = 'Teveel onjuiste inlog-pogingen. Probeer over 15 minuten opnieuw in te loggen.'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['login_button_txt'] = 'Inloggen'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/pl.lng b/interface/ispconfig/interface/login/lib/lang/pl.lng new file mode 100644 index 0000000..52f31b6 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/pl.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'Nowe hasło zostanie wygenerowane i wysłane na Twój adres e-mail, jeśli podany adres e-mail będzie pasował do tego w ustawieniach Twojego profilu.'; +$wb['pw_reset'] = 'Nowe hasło zostało wygenerowane i wysłane na Twój adres e-mail.'; +$wb['pw_error'] = 'Nazwa użytkownika lub e-mail nie pasują do siebie.'; +$wb['pw_error_noinput'] = 'Podaj nazwę użytkownika i adres e-mail.'; +$wb['pw_reset_mail_msg'] = 'Hasło do Twojego panelu w ISPConfig 3 zostało z resetowane. Twoje nowe hasło to: '; +$wb['pw_reset_mail_title'] = 'Hasło do paneli w ISPConfig 3 zostało z resetowane.'; +$wb['user_regex_error'] = 'Nazwa użytkownika zawiera niedozwolone znaki lub jest dłuższa niż 64 znaki.'; +$wb['pw_error_length'] = 'Dłogość hasła jest > 64 znaki.'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/pt.lng b/interface/ispconfig/interface/login/lib/lang/pt.lng new file mode 100644 index 0000000..48e217f --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/pt.lng @@ -0,0 +1,18 @@ +<?php +$wb['pass_reset_txt'] = 'Uma nova senha foi gerada e ser-lhe-á enviada para o correio eletrônico registado no sistema.'; +$wb['pw_reset'] = 'Senha restabelecida! Ser-lhe-á enviada para o correio eletrônico registado no sistema.'; +$wb['pw_error'] = 'Nome de utilizador ou correio eletrônico não coincidem.'; +$wb['pw_error_noinput'] = 'Favor informar nome de utilizador e endereço de correio válidos.'; +$wb['pw_reset_mail_msg'] = 'A senha do painel de controle foi restabelecida. A nova senha é: '; +$wb['pw_reset_mail_title'] = 'A senha do painel de controle foi restabelecida.'; +$wb['user_regex_error'] = 'O nome de utilizador contém mais de 64 caracteres ou contém caracteres inválidos.'; +$wb['pw_error_length'] = 'Tamanho da senha não pode ser maior do que 64 caracteres.'; +$wb['error_user_password_empty'] = 'Utilizador ou Senha em branco.'; +$wb['error_user_password_incorrect'] = 'Utilizador ou Senha inválida(o).'; +$wb['error_user_blocked'] = 'O utilizador está bloqueado.'; +$wb['error_user_too_many_logins'] = 'Várias tentativas de logins inválidas, faça uma nova tentativa dentro de 15 minutos.'; +$wb['username_txt'] = 'Utilizador '; +$wb['password_txt'] = 'Senha'; +$wb['login_button_txt'] = 'Entrar'; +?> + diff --git a/interface/ispconfig/interface/login/lib/lang/ro.lng b/interface/ispconfig/interface/login/lib/lang/ro.lng new file mode 100644 index 0000000..bcd64f4 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/ro.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'O noua parola va fi generata si trimisa catre mail-ul tau daca mail-ul de la clienti coincide cu acest mail introdus.'; +$wb['pw_reset'] = 'Parola a fost schimbata si trimisa la mail-ul tau.'; +$wb['pw_error'] = 'Username sau email nu s epotrivesc'; +$wb['pw_error_noinput'] = 'introduceti email address si username.'; +$wb['pw_reset_mail_msg'] = 'Parola la panoul de control a fost resetata . Noua parola este : '; +$wb['pw_reset_mail_title'] = 'parola panoului de control a fost schimbata'; +$wb['user_regex_error'] = 'Username contine caractere nepermise sau are mai mult de 64 caractere'; +$wb['pw_error_length'] = 'Lungime parola > 64 caractere.'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/ru.lng b/interface/ispconfig/interface/login/lib/lang/ru.lng new file mode 100644 index 0000000..200d43d --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/ru.lng @@ -0,0 +1,18 @@ +<?php +$wb['pass_reset_txt'] = 'Новый пароль будет сгенерирован и выслан на ваш email адрес, если он совпадает с тем адресом, что вы ввели здесь.'; +$wb['pw_reset'] = 'Пароль был сброшен и и отправлен вам на почту.'; +$wb['pw_error'] = 'Логин или email адрес не совпадают.'; +$wb['pw_error_noinput'] = 'Введите email адрес и логин.'; +$wb['pw_reset_mail_msg'] = 'Пароль в панель управления ISPConfig 3Был сброшен. Новый пароль: '; +$wb['pw_reset_mail_title'] = 'Пароль для контрольной панеои ISPConfig 3 был сброшен.'; +$wb['user_regex_error'] = 'Логин содержит неправильные символы, или длиннее 64 символов.'; +$wb['pw_error_length'] = 'Длина пароля больше 64 символов.'; +$wb['error_user_password_empty'] = 'Логин или пароль пустые.'; +$wb['error_user_password_incorrect'] = 'Логин или пароль неправильные.'; +$wb['error_user_blocked'] = 'Пользователь заблокирован.'; +$wb['error_user_too_many_logins'] = 'Слишком много неверных попыток, пробуйте снова через 15 минут'; +$wb['username_txt'] = 'Логин'; +$wb['password_txt'] = 'Пароль'; +$wb['login_button_txt'] = 'Войти'; +?> + diff --git a/interface/ispconfig/interface/login/lib/lang/se.lng b/interface/ispconfig/interface/login/lib/lang/se.lng new file mode 100644 index 0000000..24fbbe1 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/se.lng @@ -0,0 +1,17 @@ +<?php +$wb['pass_reset_txt'] = 'A new password will be generated and send to your email address if the email address entered below matches the email address in your client settings.'; +$wb['pw_reset'] = 'The password has been reset and send to your email address.'; +$wb['pw_error'] = 'Username or email address does not match.'; +$wb['pw_error_noinput'] = 'Please enter email address and username.'; +$wb['pw_reset_mail_msg'] = 'The password to your ISPConfig 3 control panel account has been reset. The new password is: '; +$wb['pw_reset_mail_title'] = 'ISPConfig 3 Control panel password has been reset.'; +$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.'; +$wb['pw_error_length'] = 'The password length is > 64 characters.'; +$wb['error_user_password_empty'] = 'Username or Password empty.'; +$wb['error_user_password_incorrect'] = 'Username or Password wrong.'; +$wb['error_user_blocked'] = 'User is blocked.'; +$wb['error_user_too_many_logins'] = 'To many wrong logins, Please retry it after 15 minutes'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['login_button_txt'] = 'Login'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/sk.lng b/interface/ispconfig/interface/login/lib/lang/sk.lng new file mode 100644 index 0000000..ff376ae --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/sk.lng @@ -0,0 +1,17 @@ +<?php +$wb['error_user_password_empty'] = 'U��vate?sk� meno alebo heslo pr�zdne.'; +$wb['error_user_password_incorrect'] = 'U��vate?sk� meno alebo zl� je heslo.'; +$wb['error_user_blocked'] = 'U��vate? je blokovan�.'; +$wb['error_user_too_many_logins'] = 'Pr�li� ve?a zl�ch prihl�sen�, pros�m, sk�ste to znova sa po 15 min�tach'; +$wb['pass_reset_txt'] = 'Nov� heslo bude vytvoren� a poslan� na e-mailov� adresu v pr�pade, �e vlo�en� e-mailov� adresa sa zhoduje s e-mailovou adresou v nastaveniach klienta.'; +$wb['pw_reset'] = 'Heslo bolo resetnut� a posielan� na e-mailov� adresu.'; +$wb['pw_error'] = 'U��vate?sk� meno alebo e-mailov� adresa nezodpoved�.'; +$wb['pw_error_noinput'] = 'Pros�m, zadajte e-mailov� adresu a u��vate?sk� meno.'; +$wb['pw_reset_mail_msg'] = 'Heslo k svojmu �?tu na ovl�dacom paneli bol resetnut�. Nov� heslo je:'; +$wb['pw_reset_mail_title'] = 'Heslo ovl�dacieho panelu bolo resetnut�.'; +$wb['user_regex_error'] = 'U��vate?sk� meno obsahuje neplatn� znaky, alebo je dlh�ia ako 64 znakov.'; +$wb['pw_error_length'] = 'D?�ka hesla je > 64 znakov.'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['password_txt'] = 'Heslo'; +$wb['login_button_txt'] = 'Prihl�senie'; +?> diff --git a/interface/ispconfig/interface/login/lib/lang/tr.lng b/interface/ispconfig/interface/login/lib/lang/tr.lng new file mode 100644 index 0000000..73d464b --- /dev/null +++ b/interface/ispconfig/interface/login/lib/lang/tr.lng @@ -0,0 +1,17 @@ +<?php +$wb['error_user_password_empty'] = 'Kullanıcı adı veya şifre boş'; +$wb['error_user_password_incorrect'] = 'Kullanıcı adı veya şifre yanlış'; +$wb['error_user_blocked'] = 'Kullanıcı engellendi.'; +$wb['error_user_too_many_logins'] = 'Çok fazla yanlış giriş, Lütfen 15 dakika sonra tekrar deneyiniz.'; +$wb['pass_reset_txt'] = 'Eğer girilen mail adresi hesabınızdaki ile eşleşirse, oluşturucak olan yeni şifreniz mail adresinize gönderilecektir.'; +$wb['pw_reset'] = 'Şifreniz resetlenmiş ve mail adresinize gönderilmiştir.'; +$wb['pw_error'] = 'Kullanıcı adı veya Mail adresiniz eşleşmemektedir.'; +$wb['pw_error_noinput'] = 'Lütfen Mail adresinizi veya Kullanıcı adınızı giriniz.'; +$wb['pw_reset_mail_msg'] = 'ISPConfig 3 Kontrol Paneldeki şifreniz resetlenmiştir. Yeni şifreniz: '; +$wb['pw_reset_mail_title'] = 'ISPConfig 3 Kontrol Panel şifresi resetlenmiştir.'; +$wb['user_regex_error'] = 'Kullanıcı adınız izin verilmeyen karakterler içermekte veya 64 karakterden uzundur.'; +$wb['pw_error_length'] = 'Şifre 64 karakterden fazla.'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['password_txt'] = 'Şifre'; +$wb['login_button_txt'] = 'Giriş'; +?> diff --git a/interface/ispconfig/interface/login/lib/module.conf.php b/interface/ispconfig/interface/login/lib/module.conf.php new file mode 100644 index 0000000..b199ad5 --- /dev/null +++ b/interface/ispconfig/interface/login/lib/module.conf.php @@ -0,0 +1,6 @@ +<?php +$module["name"] = "login"; +$module["title"] = "top_menu_login"; +$module["template"] = "module.tpl.htm"; +$module["startpage"] = "login/index.php"; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/login/logout.php b/interface/ispconfig/interface/login/logout.php new file mode 100644 index 0000000..bb3ba95 --- /dev/null +++ b/interface/ispconfig/interface/login/logout.php @@ -0,0 +1,80 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/* + * Check if the logout is forced + */ +$forceLogout = false; +if (isset($_GET['l']) && ($_GET['l']== 1)) $forceLogout = true; + +/* + * if the admin is logged in as client, then ask, if the admin want't to + * "re-login" as admin again + */ +if ((isset($_SESSION['s_old']) && ($_SESSION['s_old']['user']['typ'] == 'admin')) && + (!$forceLogout)){ + echo ' + <br /> <br /> <br /> <br /> + Do you want to re-login as admin or log out?<br /> + <div style="visibility:hidden"> + <input type="text" name="username" value="' . $_SESSION['s_old']['user']['username'] . '" /> + <input type="password" name="passwort" value="' . $_SESSION['s_old']['user']['passwort'] .'" /> + </div> + <input type="hidden" name="s_mod" value="login" /> + <input type="hidden" name="s_pg" value="index" /> + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="Yes, re-login as Admin" onClick="submitLoginForm(' . "'pageForm'" . ');"><span>Yes, re-login as Admin</span></button> + <button class="negative iconstxt icoNegative" type="button" value="No, logout" onClick="loadContent('. "'login/logout.php?l=1'" . ');"><span>No, logout</span></button> + </div> + '; + exit; +} + +$app->plugin->raiseEvent('logout',true); + +$_SESSION["s"]["user"] = null; +$_SESSION["s"]["module"] = null; +$_SESSION['s_old'] = null; + +//header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]); + +if($_SESSION["s"]["site"]["logout"] != '') { + echo('URL_REDIRECT:'.$_SESSION["s"]["site"]["logout"]); +} else { + if($conf["interface_logout_url"] != '') { + echo('URL_REDIRECT:'.$conf["interface_logout_url"]); + } else { + echo('URL_REDIRECT:index.php'); + } +} +exit; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/login/password_reset.php b/interface/ispconfig/interface/login/password_reset.php new file mode 100644 index 0000000..ebe8154 --- /dev/null +++ b/interface/ispconfig/interface/login/password_reset.php @@ -0,0 +1,92 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Loading the template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/password_reset.htm'); + +$app->tpl_defaults(); + +include(ISPC_ROOT_PATH.'/web/login/lib/lang/'.$_SESSION['s']['language'].'.lng'); +$app->tpl->setVar($wb); + +if(isset($_POST['username']) && $_POST['username'] != '' && $_POST['email'] != '' && $_POST['username'] != 'admin') { + + if(!preg_match("/^[\w\.\-\_]{1,64}$/", $_POST['username'])) die($app->lng('user_regex_error')); + if(!preg_match("/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i", $_POST['email'])) die($app->lng('email_error')); + + $username = $app->db->quote($_POST['username']); + $email = $app->db->quote($_POST['email']); + + $client = $app->db->queryOneRecord("SELECT * FROM client WHERE username = '$username' AND email = '$email'"); + + if($client['client_id'] > 0) { + $new_password = md5 (uniqid (rand())); + $salt="$1$"; + $base64_alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + for ($n=0;$n<8;$n++) { + //$salt.=chr(mt_rand(64,126)); + $salt.=$base64_alphabet[mt_rand(0,63)]; + } + $salt.="$"; + $new_password_encrypted = crypt($new_password,$salt); + $new_password_encrypted = $app->db->quote($new_password_encrypted); + + $username = $app->db->quote($client['username']); + $app->db->query("UPDATE sys_user SET passwort = '$new_password_encrypted' WHERE username = '$username'"); + $app->db->query("UPDATE client SET �password� = '$new_password_encrypted' WHERE username = '$username'"); + $app->tpl->setVar("message",$wb['pw_reset']); + + mail($client['email'],$wb['pw_reset_mail_title'],$wb['pw_reset_mail_msg'].$new_password); + + $app->plugin->raiseEvent('password_reset',true); + + } else { + $app->tpl->setVar("message",$wb['pw_error']); + } + +} else { + $app->tpl->setVar("message",$wb['pw_error_noinput']); +} + + + +$app->tpl_defaults(); +$app->tpl->pparse(); + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/login/templates/index.htm b/interface/ispconfig/interface/login/templates/index.htm new file mode 100644 index 0000000..cd12199 --- /dev/null +++ b/interface/ispconfig/interface/login/templates/index.htm @@ -0,0 +1,33 @@ +<h2>Login</h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_login"> + + <tmpl_if name="msg"> + <div id="OKMsg"><p><tmpl_var name="msg"></p></div> + </tmpl_if> + <tmpl_if name="error"> + <div id="errorMsg"><h3>ERROR</h3><ol><li><tmpl_var name="error"></li></ol><br /><a href="#" onclick="loadContent('login/password_reset.php');">Password lost?</a></div> + </tmpl_if> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Login</legend> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <input name="username" id="username" value="" size="30" maxlength="255" type="text" class="textInput" onkeypress="if (event.keyCode && event.keyCode == 13) {submitLoginForm('pageForm'); return false;};" /> + </div> + <div class="ctrlHolder"> + <label for="passwort">{tmpl_var name='password_txt'}</label> + <input name="passwort" id="passwort" value="" size="30" maxlength="255" type="password" class="textInput" onkeypress="if (event.keyCode && event.keyCode == 13) {submitLoginForm('pageForm'); return false;};" /> + </div> + </fieldset> + + <input type="hidden" name="s_mod" value="login" /> + <input type="hidden" name="s_pg" value="index" /> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoKey" type="button" value="{tmpl_var name="add_new_record_txt"}" onClick="submitLoginForm('pageForm');"><span>{tmpl_var name='login_button_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/login/templates/password_reset.htm b/interface/ispconfig/interface/login/templates/password_reset.htm new file mode 100644 index 0000000..f3f99d2 --- /dev/null +++ b/interface/ispconfig/interface/login/templates/password_reset.htm @@ -0,0 +1,33 @@ +<h2>Password Reset</h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_password_reset"> + + <tmpl_if name="msg"> + <div id="OKMsg"><p><tmpl_var name="msg"></p></div> + </tmpl_if> + <tmpl_if name="error"> + <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div> + </tmpl_if> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Password reset</legend> + <div class="ctrlHolder"> + <label for="email"><em>*</em> E-Mail</label> + <input name="email" id="email" value="" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="username"><em>*</em> Username</label> + <input name="username" id="username" value="" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="s_mod" value="login" /> + <input type="hidden" name="s_pg" value="index" /> + + <div class="buttonHolder buttons"> + <button class="positive" type="button" value="{tmpl_var name="add_new_record_txt"}" onClick="submitForm('pageForm','login/password_reset.php');"><span>Resend password</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/form/mail_alias.tform.php b/interface/ispconfig/interface/mail/form/mail_alias.tform.php new file mode 100644 index 0000000..b74e36a --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_alias.tform.php @@ -0,0 +1,114 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Alias"; +$form["description"] = ""; +$form["name"] = "mail_alias"; +$form["action"] = "mail_alias_edit.php"; +$form["db_table"] = "mail_forwarding"; +$form["db_table_idx"] = "forwarding_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "alias"; +$form["list_default"] = "mail_alias_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['alias'] = array ( + 'title' => "Email Alias", + 'width' => 100, + 'template' => "templates/mail_alias_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'email_error_isemail'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'destination' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT email FROM mail_user WHERE {AUTHSQL} ORDER BY email', + 'keyfield' => 'email', + 'valuefield' => 'email' + ), + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'destination_error_isemail'), + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('alias' => 'Alias','forward'=>'Forward') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_aliasdomain.tform.php b/interface/ispconfig/interface/mail/form/mail_aliasdomain.tform.php new file mode 100644 index 0000000..cc60cec --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_aliasdomain.tform.php @@ -0,0 +1,113 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Domain Alias"; +$form["description"] = ""; +$form["name"] = "mail_aliasdomain"; +$form["action"] = "mail_aliasdomain_edit.php"; +$form["db_table"] = "mail_forwarding"; +$form["db_table_idx"] = "forwarding_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "alias"; +$form["list_default"] = "mail_aliasdomain_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['alias'] = array ( + 'title' => "Domain Alias", + 'width' => 100, + 'template' => "templates/mail_aliasdomain_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'source_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^\@[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'source_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'destination' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('alias' => 'Alias','forward'=>'Forward') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_blacklist.tform.php b/interface/ispconfig/interface/mail/form/mail_blacklist.tform.php new file mode 100644 index 0000000..83fc255 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_blacklist.tform.php @@ -0,0 +1,110 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Blacklist"; +$form["description"] = ""; +$form["name"] = "mail_blacklist"; +$form["action"] = "mail_blacklist_edit.php"; +$form["db_table"] = "mail_access"; +$form["db_table_idx"] = "access_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "blacklist"; +$form["list_default"] = "mail_blacklist_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['blacklist'] = array ( + 'title' => "Blacklist", + 'width' => 100, + 'template' => "templates/mail_blacklist_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'REJECT', + 'value' => 'REJECT', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('recipient' => 'Recipient', 'sender' => 'Sender', 'client' => 'Client') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_content_filter.tform.php b/interface/ispconfig/interface/mail/form/mail_content_filter.tform.php new file mode 100644 index 0000000..d07cb56 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_content_filter.tform.php @@ -0,0 +1,116 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Mail Content Filter"; +$form["description"] = ""; +$form["name"] = "mail_content_filter"; +$form["action"] = "mail_content_filter_edit.php"; +$form["db_table"] = "mail_content_filter"; +$form["db_table_idx"] = "content_filter_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "filter"; +$form["list_default"] = "mail_content_filter_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['filter'] = array ( + 'title' => "Filter", + 'width' => 100, + 'template' => "templates/mail_content_filter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('header' => 'Header Filter','body' => 'Body Filter','mime_header' => 'MIME-Header Filter','nested_header' => 'Nested-Header Filter') + ), + 'pattern' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'pattern_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'action' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('DISCARD' => 'DISCARD','DUNNO'=>'DUNNO','FILTER'=>'FILTER','HOLD'=>'HOLD','IGNORE'=>'IGNORE','PREPEND'=>'PREPEND','REDIRECT'=>'REDIRECT','REPLACE'=>'REPLACE','REJECT'=>'REJECT','WARN'=>'WARN') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_domain.tform.php b/interface/ispconfig/interface/mail/form/mail_domain.tform.php new file mode 100644 index 0000000..35f3218 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_domain.tform.php @@ -0,0 +1,101 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Mail Domain"; +$form["description"] = ""; +$form["name"] = "mail_domain"; +$form["action"] = "mail_domain_edit.php"; +$form["db_table"] = "mail_domain"; +$form["db_table_idx"] = "domain_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "domain"; +$form["list_default"] = "mail_domain_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['domain'] = array ( + 'title' => "Domain", + 'width' => 100, + 'template' => "templates/mail_domain_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mail_server = 1 AND mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'domain_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'domain_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_domain_catchall.tform.php b/interface/ispconfig/interface/mail/form/mail_domain_catchall.tform.php new file mode 100644 index 0000000..a598250 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_domain_catchall.tform.php @@ -0,0 +1,119 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Catchall"; +$form["description"] = ""; +$form["name"] = "mail_domain_catchall"; +$form["action"] = "mail_domain_catchall_edit.php"; +$form["db_table"] = "mail_forwarding"; +$form["db_table_idx"] = "forwarding_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "catchall"; +$form["list_default"] = "mail_domain_catchall_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['catchall'] = array ( + 'title' => "Email Catchall", + 'width' => 100, + 'template' => "templates/mail_domain_catchall_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'domain_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^\@[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'domain_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'destination' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT email FROM mail_user WHERE {AUTHSQL} ORDER BY email', + 'keyfield' => 'email', + 'valuefield' => 'email' + ), + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'destination_error_isemail'), + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('alias' => 'Alias','forward'=>'Forward','catchall'=>'Catchall') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_forward.tform.php b/interface/ispconfig/interface/mail/form/mail_forward.tform.php new file mode 100644 index 0000000..ef348f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_forward.tform.php @@ -0,0 +1,108 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Forward"; +$form["description"] = ""; +$form["name"] = "mail_forward"; +$form["action"] = "mail_forward_edit.php"; +$form["db_table"] = "mail_forwarding"; +$form["db_table_idx"] = "forwarding_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "forward"; +$form["list_default"] = "mail_forward_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['forward'] = array ( + 'title' => "Email Forward", + 'width' => 100, + 'template' => "templates/mail_forward_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'email_error_isemail'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'destination' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('forward'=>'Forward','alias' => 'Alias') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_get.tform.php b/interface/ispconfig/interface/mail/form/mail_get.tform.php new file mode 100644 index 0000000..41bc014 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_get.tform.php @@ -0,0 +1,148 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Get Email"; +$form["description"] = ""; +$form["name"] = "mail_get"; +$form["action"] = "mail_get_edit.php"; +$form["db_table"] = "mail_get"; +$form["db_table_idx"] = "mailget_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "mailget"; +$form["list_default"] = "mail_get_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['mailget'] = array ( + 'title' => "Get Email", + 'width' => 100, + 'template' => "templates/mail_get_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('pop3' => 'POP3','imap'=>'IMAP','pop3ssl' => 'POP3SSL','imapssl'=>'IMAPSSL') + ), + 'source_server' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_server_error_isempty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'source_server_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source_username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_username_error_isempty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_password_error_isempty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source_delete' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + 'destination' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT email FROM mail_user WHERE {AUTHSQL} ORDER BY email', + 'keyfield' => 'email', + 'valuefield' => 'email' + ), + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'destination_error_isemail'), + ), + 'value' => '' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_relay_recipient.tform.php b/interface/ispconfig/interface/mail/form/mail_relay_recipient.tform.php new file mode 100644 index 0000000..b89a799 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_relay_recipient.tform.php @@ -0,0 +1,104 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email relay recipient"; +$form["description"] = ""; +$form["name"] = "mail_relay_recipient"; +$form["action"] = "mail_relay_recipient_edit.php"; +$form["db_table"] = "mail_relay_recipient"; +$form["db_table_idx"] = "relay_recipient_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "relay_recipient"; +$form["list_default"] = "mail_relay_recipient_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['relay_recipient'] = array ( + 'title' => "Relay recipient", + 'width' => 100, + 'template' => "templates/mail_relay_recipient_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'OK', + 'value' => 'OK', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_spamfilter.tform.php b/interface/ispconfig/interface/mail/form/mail_spamfilter.tform.php new file mode 100644 index 0000000..e85f7ff --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_spamfilter.tform.php @@ -0,0 +1,146 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter"; +$form["description"] = ""; +$form["name"] = "mail_spamfilter"; +$form["action"] = "mail_spamfilter_edit.php"; +$form["db_table"] = "mail_spamfilter"; +$form["db_table_idx"] = "spamfilter_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "spamfilter"; +$form["list_default"] = "mail_spamfilter_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['spamfilter'] = array ( + 'title' => "Spamfilter", + 'width' => 100, + 'template' => "templates/mail_spamfilter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'email_error_notempty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'email_error_unique'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'spam_rewrite_score_int' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5.00', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'spam_redirect_score_int' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '7.00', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'spam_delete_score_int' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '15.00', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'spam_rewrite_subject' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '***SPAM***', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'spam_redirect_maildir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT mailbox_id,email FROM mail_box WHERE {AUTHSQL} ORDER BY email', + 'keyfield'=> 'mailbox_id', + 'valuefield'=> 'email' + ), + 'default' => '', + 'value' => '' + ), + 'spam_redirect_maildir_purge' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '7', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_transport.tform.php b/interface/ispconfig/interface/mail/form/mail_transport.tform.php new file mode 100644 index 0000000..f277f92 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_transport.tform.php @@ -0,0 +1,111 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Routing"; +$form["description"] = ""; +$form["name"] = "mail_transport"; +$form["action"] = "mail_transport_edit.php"; +$form["db_table"] = "mail_transport"; +$form["db_table_idx"] = "transport_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "transport"; +$form["list_default"] = "mail_transport_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['transport'] = array ( + 'title' => "Email transport", + 'width' => 100, + 'template' => "templates/mail_transport_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'transport' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'sort_order' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => 5, + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10) + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_user.tform.php b/interface/ispconfig/interface/mail/form/mail_user.tform.php new file mode 100644 index 0000000..570ccb4 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_user.tform.php @@ -0,0 +1,280 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Mailbox"; +$form["description"] = ""; +$form["name"] = "mail_user"; +$form["action"] = "mail_user_edit.php"; +$form["db_table"] = "mail_user"; +$form["db_table_idx"] = "mailuser_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "mailuser"; +$form["list_default"] = "mail_user_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['mailuser'] = array ( + 'title' => "Mailbox", + 'width' => 100, + 'template' => "templates/mail_user_mailbox_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'email_error_isemail'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'email_error_unique'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'ENCRYPT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'quota_error_isint'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^([0-9]*)$/', + 'errmsg'=> 'quota_error_value'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'maildir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'homedir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'uid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'gid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'postfix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(1 => 'y',0 => 'n') + ), + /* + 'access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(1 => 'y',0 => 'n') + ), + */ + 'disableimap' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + 'disablepop3' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['autoresponder'] = array ( + 'title' => "Autoresponder", + 'width' => 100, + 'template' => "templates/mail_user_autoresponder_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'autoresponder_text' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '15' + ), + 'autoresponder' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + 'autoresponder_start_date' => array ( + 'datatype' => 'DATETIME', + 'formtype' => 'DATETIME', + 'validators'=> array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_autoresponder', + 'function' => 'start_date', + 'errmsg'=> 'autoresponder_start_date_isfuture'), + ), + ), + 'autoresponder_end_date' => array ( + 'datatype' => 'DATETIME', + 'formtype' => 'DATETIME', + 'validators'=> array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_autoresponder', + 'function' => 'end_date', + 'errmsg'=> 'autoresponder_end_date_isgreater'), + ), + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['filter_records'] = array ( + 'title' => "Mail Filter", + 'width' => 100, + 'template' => "templates/mail_user_mailfilter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'move_junk' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ), + 'plugins' => array ( + 'filter_records' => array ( + 'class' => 'plugin_listview', + 'options' => array( + 'listdef' => 'list/mail_user_filter.list.php', + 'sqlextwhere' => "mailuser_id = ".@intval(@$_REQUEST['id']), + 'sql_order_by' => "ORDER BY rulename" + ) + ) + ) +); + +if($_SESSION["s"]["user"]["typ"] == 'admin' || 'user') { + +$form["tabs"]['mailfilter'] = array ( + 'title' => "Custom Rules", + 'width' => 100, + 'template' => "templates/mail_user_custom_rules_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'custom_mailfilter' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '15' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} + + +?> diff --git a/interface/ispconfig/interface/mail/form/mail_user.tform.php.orig b/interface/ispconfig/interface/mail/form/mail_user.tform.php.orig new file mode 100644 index 0000000..5214b62 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_user.tform.php.orig @@ -0,0 +1,280 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Mailbox"; +$form["description"] = ""; +$form["name"] = "mail_user"; +$form["action"] = "mail_user_edit.php"; +$form["db_table"] = "mail_user"; +$form["db_table_idx"] = "mailuser_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "mailuser"; +$form["list_default"] = "mail_user_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['mailuser'] = array ( + 'title' => "Mailbox", + 'width' => 100, + 'template' => "templates/mail_user_mailbox_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'email_error_isemail'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'email_error_unique'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'ISINT', + 'errmsg'=> 'quota_error_isint'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^([0-9]*)$/', + 'errmsg'=> 'quota_error_value'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'maildir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'homedir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'uid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'gid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'postfix' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(1 => 'y',0 => 'n') + ), + /* + 'access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(1 => 'y',0 => 'n') + ), + */ + 'disableimap' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + 'disablepop3' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['autoresponder'] = array ( + 'title' => "Autoresponder", + 'width' => 100, + 'template' => "templates/mail_user_autoresponder_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'autoresponder_text' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '15' + ), + 'autoresponder' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(1 => 'y',0 => 'n') + ), + 'autoresponder_start_date' => array ( + 'datatype' => 'DATETIME', + 'formtype' => 'DATETIME', + 'validators'=> array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_autoresponder', + 'function' => 'start_date', + 'errmsg'=> 'autoresponder_start_date_isfuture'), + ), + ), + 'autoresponder_end_date' => array ( + 'datatype' => 'DATETIME', + 'formtype' => 'DATETIME', + 'validators'=> array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_autoresponder', + 'function' => 'end_date', + 'errmsg'=> 'autoresponder_end_date_isgreater'), + ), + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['filter_records'] = array ( + 'title' => "Mail Filter", + 'width' => 100, + 'template' => "templates/mail_user_mailfilter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'move_junk' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ), + 'plugins' => array ( + 'filter_records' => array ( + 'class' => 'plugin_listview', + 'options' => array( + 'listdef' => 'list/mail_user_filter.list.php', + 'sqlextwhere' => "mailuser_id = ".@intval(@$_REQUEST['id']), + 'sql_order_by' => "ORDER BY rulename" + ) + ) + ) +); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + +$form["tabs"]['mailfilter'] = array ( + 'title' => "Custom Rules", + 'width' => 100, + 'template' => "templates/mail_user_custom_rules_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'custom_mailfilter' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '15' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php b/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php new file mode 100644 index 0000000..cafab8a --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php @@ -0,0 +1,135 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email filter"; +$form["description"] = ""; +$form["name"] = "mail_user_filter"; +$form["action"] = "mail_user_filter_edit.php"; +$form["db_table"] = "mail_user_filter"; +$form["db_table_idx"] = "filter_id"; +$form["db_history"] = "no"; +$form["tab_default"] = "filter"; +$form["list_default"] = "mail_user_filter_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = 'r'; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['filter'] = array ( + 'title' => "Filter", + 'width' => 100, + 'template' => "templates/mail_user_filter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'mailuser_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["mailuser_id"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'rulename' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'rulename_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('Subject' => 'Subject','From'=>'From','To'=>'To') + ), + 'op' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('contains'=>'Contains','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') + ), + 'searchterm' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'searchterm_is_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'action' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('move' => 'Move to','delete'=>'Delete') + ), + 'target' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-9\.\-\_\ ]{0,100}$/', + 'errmsg'=> 'target_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> diff --git a/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php.orig b/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php.orig new file mode 100644 index 0000000..565d5c4 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_user_filter.tform.php.orig @@ -0,0 +1,135 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email filter"; +$form["description"] = ""; +$form["name"] = "mail_user_filter"; +$form["action"] = "mail_user_filter_edit.php"; +$form["db_table"] = "mail_user_filter"; +$form["db_table_idx"] = "filter_id"; +$form["db_history"] = "no"; +$form["tab_default"] = "filter"; +$form["list_default"] = "mail_user_filter_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = 'r'; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['filter'] = array ( + 'title' => "Filter", + 'width' => 100, + 'template' => "templates/mail_user_filter_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'mailuser_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => @intval($_REQUEST["mailuser_id"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'rulename' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'rulename_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('Subject' => 'Subject','From'=>'From','To'=>'To') + ), + 'op' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('contains'=>'Contains','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') + ), + 'searchterm' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'searchterm_is_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'action' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('move' => 'Move to','delete'=>'Delete') + ), + 'target' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-9\.\-\_\ ]{0,100}$/', + 'errmsg'=> 'target_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> diff --git a/interface/ispconfig/interface/mail/form/mail_whitelist.tform.php b/interface/ispconfig/interface/mail/form/mail_whitelist.tform.php new file mode 100644 index 0000000..bf52f56 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/mail_whitelist.tform.php @@ -0,0 +1,110 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Email Whitelist"; +$form["description"] = ""; +$form["name"] = "mail_whitelist"; +$form["action"] = "mail_whitelist_edit.php"; +$form["db_table"] = "mail_access"; +$form["db_table_idx"] = "access_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "whitelist"; +$form["list_default"] = "mail_whitelist_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['whitelist'] = array ( + 'title' => "Witelist", + 'width' => 100, + 'template' => "templates/mail_whitelist_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'source' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'source_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'OK', + 'value' => 'OK', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('recipient' => 'Recipient', 'sender' => 'Sender', 'client' => 'Client') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/spamfilter_blacklist.tform.php b/interface/ispconfig/interface/mail/form/spamfilter_blacklist.tform.php new file mode 100644 index 0000000..098c0da --- /dev/null +++ b/interface/ispconfig/interface/mail/form/spamfilter_blacklist.tform.php @@ -0,0 +1,119 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter blacklist"; +$form["description"] = ""; +$form["name"] = "spamfilter_blacklist"; +$form["action"] = "spamfilter_blacklist_edit.php"; +$form["db_table"] = "spamfilter_wblist"; +$form["db_table_idx"] = "wblist_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "blacklist"; +$form["list_default"] = "spamfilter_blacklist_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['blacklist'] = array ( + 'title' => "Blacklist", + 'width' => 100, + 'template' => "templates/spamfilter_blacklist_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'wb' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'B', + 'value' => array('W' => 'blacklist', 'B' => 'Blacklist') + ), + 'rid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,email FROM spamfilter_users WHERE {AUTHSQL} ORDER BY email', + 'keyfield'=> 'id', + 'valuefield'=> 'email' + ), + 'value' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'email_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'priority' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => 5, + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10) + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/spamfilter_config.tform.php b/interface/ispconfig/interface/mail/form/spamfilter_config.tform.php new file mode 100644 index 0000000..c04b50e --- /dev/null +++ b/interface/ispconfig/interface/mail/form/spamfilter_config.tform.php @@ -0,0 +1,275 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter Config"; +$form["description"] = ""; +$form["name"] = "spamfilter_config"; +$form["action"] = "spamfilter_config_edit.php"; +$form["db_table"] = "server"; +$form["db_table_idx"] = "server_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "server"; +$form["list_default"] = "spamfilter_config_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['server'] = array ( + 'title' => "Server", + 'width' => 100, + 'template' => "templates/spamfilter_config_server_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'ip_address' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.105', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'ip_address_error_empty'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'netmask' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '255.255.255.0', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'netmask_error_empty'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'gateway' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'gateway_error_empty'), + ), + 'value' => '', + 'width' => '15', + 'maxlength' => '255' + ), + 'hostname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'server1.domain.tld', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'hostname_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'nameservers' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '192.168.0.1,192.168.0.2', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'nameservers_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['mail'] = array ( + 'title' => "Mail", + 'width' => 100, + 'template' => "templates/spamfilter_config_mail_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'module' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('postfix_mysql' => 'postfix_mysql') + ), + 'maildir_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/[domain]/[localpart]/', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'maildir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'homedir_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/home/vmail/', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'homedir_path_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'mailuser_uid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_uid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_gid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '5000', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_gid_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_name_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'mailuser_group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'vmail', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mailuser_group_error_empty'), + ), + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'relayhost' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'relayhost_user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'relayhost_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + 'mailbox_size_limit' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' + ), + 'message_size_limit' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '15' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['getmail'] = array ( + 'title' => "Getmail", + 'width' => 100, + 'template' => "templates/spamfilter_config_getmail_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'getmail_config_dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'getmail_config_dir_error_empty'), + ), + 'value' => '', + 'width' => '40', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/spamfilter_policy.tform.php b/interface/ispconfig/interface/mail/form/spamfilter_policy.tform.php new file mode 100644 index 0000000..bf6588c --- /dev/null +++ b/interface/ispconfig/interface/mail/form/spamfilter_policy.tform.php @@ -0,0 +1,382 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter policy"; +$form["description"] = ""; +$form["name"] = "spamfilter_policy"; +$form["action"] = "spamfilter_policy_edit.php"; +$form["db_table"] = "spamfilter_policy"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "policy"; +$form["list_default"] = "spamfilter_policy_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = 'r'; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['policy'] = array ( + 'title' => "Policy", + 'width' => 100, + 'template' => "templates/spamfilter_policy_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'policy_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'policyname_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'virus_lover' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'spam_lover' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'banned_files_lover' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'bad_header_lover' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'bypass_virus_checks' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'bypass_banned_checks' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'bypass_header_checks' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +$form["tabs"]['quarantine'] = array ( + 'title' => "Quarantine", + 'width' => 100, + 'template' => "templates/spamfilter_quarantine_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'virus_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'spam_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'banned_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'bad_header_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'clean_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'other_quarantine_to' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['taglevel'] = array ( + 'title' => "Tag-Level", + 'width' => 100, + 'template' => "templates/spamfilter_taglevel_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'spam_tag_level' => array ( + 'datatype' => 'DOUBLE', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'spam_tag2_level' => array ( + 'datatype' => 'DOUBLE', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'spam_kill_level' => array ( + 'datatype' => 'DOUBLE', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'spam_dsn_cutoff_level' => array ( + 'datatype' => 'DOUBLE', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'spam_quarantine_cutoff_level' => array ( + 'datatype' => 'DOUBLE', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'spam_modifies_subj' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'spam_subject_tag' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'spam_subject_tag2' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +$form["tabs"]['other'] = array ( + 'title' => "Other", + 'width' => 100, + 'template' => "templates/spamfilter_other_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'addr_extension_virus' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'addr_extension_spam' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'addr_extension_banned' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'addr_extension_bad_header' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'warnvirusrecip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'warnbannedrecip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'warnbadhrecip' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'N', + 'value' => array('N' => 'No','Y' => 'Yes') + ), + 'newvirus_admin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'virus_admin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'banned_admin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'bad_header_admin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'spam_admin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + + 'message_size_limit' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '255' + ), + 'banned_rulenames' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + + ################################## + # ENDE Datatable fields + ################################## + ) +); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/spamfilter_users.tform.php b/interface/ispconfig/interface/mail/form/spamfilter_users.tform.php new file mode 100644 index 0000000..75cc35d --- /dev/null +++ b/interface/ispconfig/interface/mail/form/spamfilter_users.tform.php @@ -0,0 +1,125 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter users"; +$form["description"] = ""; +$form["name"] = "spamfilter_users"; +$form["action"] = "spamfilter_users_edit.php"; +$form["db_table"] = "spamfilter_users"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "users"; +$form["list_default"] = "spamfilter_users_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['users'] = array ( + 'title' => "Users", + 'width' => 100, + 'template' => "templates/spamfilter_users_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'priority' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => 5, + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10) + ), + 'policy_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,policy_name FROM spamfilter_policy WHERE {AUTHSQL} ORDER BY policy_name', + 'keyfield'=> 'id', + 'valuefield'=> 'policy_name' + ), + 'value' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'email_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'fullname' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'fullname_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'local' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'Y', + 'value' => array('Y' => 'Yes','N' => 'No') + ), + + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/form/spamfilter_whitelist.tform.php b/interface/ispconfig/interface/mail/form/spamfilter_whitelist.tform.php new file mode 100644 index 0000000..f3b5414 --- /dev/null +++ b/interface/ispconfig/interface/mail/form/spamfilter_whitelist.tform.php @@ -0,0 +1,119 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Spamfilter Whitelist"; +$form["description"] = ""; +$form["name"] = "spamfilter_whitelist"; +$form["action"] = "spamfilter_whitelist_edit.php"; +$form["db_table"] = "spamfilter_wblist"; +$form["db_table_idx"] = "wblist_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "whitelist"; +$form["list_default"] = "spamfilter_whitelist_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['whitelist'] = array ( + 'title' => "Whitelist", + 'width' => 100, + 'template' => "templates/spamfilter_whitelist_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'wb' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'W', + 'value' => array('W' => 'Whitelist', 'B' => 'Blacklist') + ), + 'rid' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,email FROM spamfilter_users WHERE {AUTHSQL} ORDER BY email', + 'keyfield'=> 'id', + 'valuefield'=> 'email' + ), + 'value' => '' + ), + 'email' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'email_error_notempty'), + ), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'priority' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => 5, + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10) + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/admin.conf.php b/interface/ispconfig/interface/mail/lib/admin.conf.php new file mode 100644 index 0000000..a45d440 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/admin.conf.php @@ -0,0 +1,2 @@ +<?php +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/bg.lng b/interface/ispconfig/interface/mail/lib/lang/bg.lng new file mode 100644 index 0000000..e3a31e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Content Filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'Users'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Accounts'; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Settings'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistics'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Content Filter'; +$wb['Global Filters'] = 'Global Filters'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias.lng new file mode 100644 index 0000000..44b6fed --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'Duplicate Emailaddress.'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['destination_error_isemail'] = 'Destination Emailaddress is invalid.'; +$wb['limit_mailalias_txt'] = 'The max. number of email aliases for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias_list.lng new file mode 100644 index 0000000..0a44ea4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist.lng new file mode 100644 index 0000000..5b2815c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist_list.lng new file mode 100644 index 0000000..a72052f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new Blacklist record'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter.lng new file mode 100644 index 0000000..9d5e5f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Action'; +$wb['active_txt'] = 'Active'; +$wb['pattern_error_empty'] = 'Pattern is empty.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter_list.lng new file mode 100644 index 0000000..8c1e5e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Header and Body Checks'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Pattern'; +$wb['action_txt'] = 'Action'; +$wb['add_new_record_txt'] = 'Add new Content Filter'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain.lng new file mode 100644 index 0000000..6120e82 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Type'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Duplicate Domain.'; +$wb['domain_error_regex'] = 'Invalid domain name.'; +$wb['client_txt'] = 'Client'; +$wb['limit_maildomain_txt'] = 'The max. number of email domains for your account is reached.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall.lng new file mode 100644 index 0000000..382e97f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_unique'] = 'There is already a Catchall record for this domain.'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['domain_error_regex'] = 'Invalid domain name od domain contains invalid characters.'; +$wb['limit_mailcatchall_txt'] = 'The max. number of email catchall accounts for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall_list.lng new file mode 100644 index 0000000..7d076dd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination email address'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_list.lng new file mode 100644 index 0000000..d844781 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new Domain'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward.lng new file mode 100644 index 0000000..7d237e1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination Email'; +$wb['active_txt'] = 'Active'; +$wb['limit_mailforward_txt'] = 'The max. number of email forwarders for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward_list.lng new file mode 100644 index 0000000..f452944 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail Forward'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Email forward'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_get.lng new file mode 100644 index 0000000..5e42823 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'Username'; +$wb['source_password_txt'] = 'Password'; +$wb['source_delete_txt'] = 'Delete emails after retrieval'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['limit_fetchmail_txt'] = 'The max. number of Fetchmail records for your account is reached.'; +$wb['source_server_error_isempty'] = 'Server is empty.'; +$wb['source_username_error_isempty'] = 'Username is empty.'; +$wb['source_password_error_isempty'] = 'Password is empty.'; +$wb['destination_error_isemail'] = 'No destination selected.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_get_list.lng new file mode 100644 index 0000000..4baf67e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Fetch emails from external POP3 / IMAP servers'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'External Server'; +$wb['source_username_txt'] = 'Username'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Account'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter.lng new file mode 100644 index 0000000..e0a2a2f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Rewrite score'; +$wb['spam_redirect_score_int_txt'] = 'Redirect score'; +$wb['spam_delete_score_int_txt'] = 'Delete score'; +$wb['spam_rewrite_subject_txt'] = 'Rewrite subject'; +$wb['spam_redirect_maildir_txt'] = 'Redirect mailbox'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Rewrite email subject above this score.'; +$wb['spam_redirect_txt'] = 'Redirect email above this score to the selected mailbox.'; +$wb['spam_delete_txt'] = 'Delete email above this score.'; +$wb['disable_txt'] = 'Hint: To disable a filtering option, set the score to 0.00.'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'There is already an spamfilter record for this email address.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purge Maildir after'; +$wb['days_txt'] = 'Days.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter_list.lng new file mode 100644 index 0000000..728f3d3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'server_name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Spamfilter record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport.lng new file mode 100644 index 0000000..a4d7bbc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destination'; +$wb['type_txt'] = 'Type'; +$wb['mx_txt'] = 'No MX lookup'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['active_txt'] = 'Active'; +$wb['limit_mailrouting_txt'] = 'The max. number of routes for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport_list.lng new file mode 100644 index 0000000..a96c081 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Advanced Email Routing'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['add_new_record_txt'] = 'Add new transport'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user.lng new file mode 100644 index 0000000..3745036 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user.lng @@ -0,0 +1,41 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Custom mail filter recipe'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'Duplicate Email address.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['error_no_pwd'] = 'Password is empty.'; +$wb['quota_error_isint'] = 'Mailbox size must be a number.'; +$wb['quota_txt'] = 'quota in MB'; +$wb['server_id_txt'] = 'server_id'; +$wb['password_txt'] = 'password'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Enable Receiving'; +$wb['access_txt'] = 'Enable Access'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +$wb['limit_mailbox_txt'] = 'The max. number of mailboxes for your account is reached.'; +$wb['limit_mailquota_txt'] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb['welcome_mail_subject'] = 'Welcome to your new email account.'; +$wb['welcome_mail_message'] = 'Welcome to your new email account. + +Your webmaster.'; +$wb['disableimap_txt'] = 'Disable IMAP'; +$wb['disablepop3_txt'] = 'Disable POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'There is already an alias or forwrd with this email address.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter.lng new file mode 100644 index 0000000..e633c1b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['action_txt'] = 'Action'; +$wb['target_txt'] = 'Folder'; +$wb['active_txt'] = 'Active'; +$wb['rulename_error_empty'] = 'Name is empty.'; +$wb['searchterm_is_empty'] = 'Search term is empty.'; +$wb['source_txt'] = 'Source'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter_list.lng new file mode 100644 index 0000000..2754259 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new Filter'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_list.lng new file mode 100644 index 0000000..6063cef --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Add new Mailbox'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_stats_list.lng new file mode 100644 index 0000000..edde65b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail traffic'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist.lng new file mode 100644 index 0000000..92c365b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Witelist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist_list.lng new file mode 100644 index 0000000..eaa7eb3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new Whitelist record'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..1b17e64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Blacklist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config.lng new file mode 100644 index 0000000..2843133 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config_list.lng new file mode 100644 index 0000000..70e49e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy.lng new file mode 100644 index 0000000..e876330 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Policy Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'SPAM lover'; +$wb['banned_files_lover_txt'] = 'Banned files lover'; +$wb['bad_header_lover_txt'] = 'Bad header lover'; +$wb['bypass_virus_checks_txt'] = 'Bypass virus checks'; +$wb['bypass_banned_checks_txt'] = 'Bypass banned checks'; +$wb['bypass_header_checks_txt'] = 'Bypass header checks'; +$wb['virus_quarantine_to_txt'] = 'Forward virus to email'; +$wb['spam_quarantine_to_txt'] = 'Forward spam to email'; +$wb['banned_quarantine_to_txt'] = 'Forward banned to email'; +$wb['bad_header_quarantine_to_txt'] = 'Forward bad header to email'; +$wb['clean_quarantine_to_txt'] = 'Forward clean to email'; +$wb['other_quarantine_to_txt'] = 'Forward other to email'; +$wb['spam_tag_level_txt'] = 'SPAM tag level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 level'; +$wb['spam_kill_level_txt'] = 'SPAM kill level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM subject tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subject tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy_list.lng new file mode 100644 index 0000000..04491ae --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Policy'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'Spam lover'; +$wb['banned_files_lover_txt'] = 'Banned Files lover'; +$wb['bad_header_lover_txt'] = 'Bad Header lover'; +$wb['add_new_record_txt'] = 'Add Policy record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users.lng new file mode 100644 index 0000000..a93d94d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['email_txt'] = 'Email (Pattern)'; +$wb['fullname_txt'] = 'Name'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users_list.lng new file mode 100644 index 0000000..ed3d7a3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Users'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['fullname_txt'] = 'Name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add Spamfilter User'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..d209d17 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/bg_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Whitelist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br.lng b/interface/ispconfig/interface/mail/lib/lang/br.lng new file mode 100644 index 0000000..5e325a5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Aliases de Correio'; +$wb['Email Blacklist'] = 'Lista Negra de Correio'; +$wb['Blacklist'] = 'Lista Negra'; +$wb['Mail Content Filter'] = 'Filtro de Conteúdo de Correio'; +$wb['Filter'] = 'Filtro'; +$wb['Mail Domain'] = 'Domínio de Correio'; +$wb['Domain'] = 'Domínio'; +$wb['Email Catchall'] = 'Correio Catchall'; +$wb['Email Forward'] = 'Encaminhamento de Correio'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Filtro Spam'; +$wb['Email Routing'] = 'Rota de Correio'; +$wb['Email transport'] = 'Transporte de Correio'; +$wb['Mailbox'] = 'Caixa de Correio'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Filtro de Correio'; +$wb['Custom Rules'] = 'Regras Personalizadas'; +$wb['Email filter'] = 'Filtro de Correio'; +$wb['Email Whitelist'] = 'Lista Branca de Correio'; +$wb['Whitelist'] = 'Lista Branca'; +$wb['Spamfilter blacklist'] = 'Filtro Spam (Lista Negra)'; +$wb['Spamfilter Config'] = 'Configuração do Filtro Spam'; +$wb['Server'] = 'Servidor'; +$wb['Spamfilter policy'] = 'Políticas de Filtro Spam'; +$wb['Policy'] = 'Política'; +$wb['Quarantine'] = 'Quarentena'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Outros'; +$wb['Spamfilter users'] = 'Usuários de Filtro Spam'; +$wb['Users'] = 'Usuários'; +$wb['Spamfilter Whitelist'] = 'Filtro Spam Lista Branca'; +$wb['Email'] = 'Correio'; +$wb['Email Mailbox'] = 'Caixa de Correio'; +$wb['Email Accounts'] = 'Contas de Correio'; +$wb['User / Domain'] = 'Usuário / Domínio'; +$wb['Server Settings'] = 'Configurações do Servidor'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Tráfego de Correio'; +$wb['Statistics'] = 'Estatísticas'; +$wb['Postfix Whitelist'] = 'Postfix (Lista Branca)'; +$wb['Postfix Blacklist'] = 'Postfix (Lista Negra)'; +$wb['Content Filter'] = 'Filtros de Conteúdo'; +$wb['Global Filters'] = 'Filtros Globais'; +$wb['Domain Alias'] = 'Domínios Aliase'; +$wb['Relay Recipients'] = 'Recipientes de Relay'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_alias.lng new file mode 100644 index 0000000..b3b08e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Correio'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Ativo'; +$wb['email_error_isemail'] = 'Endereço de correio inválido.'; +$wb['email_error_unique'] = 'Endereço de correio duplicado.'; +$wb['no_domain_perm'] = 'Você não tem permissão para este domínio.'; +$wb['destination_error_isemail'] = 'Endereço de destino inválido'; +$wb['limit_mailalias_txt'] = 'O número máximo de aliases para sua conta foi atingido.'; +$wb['duplicate_mailbox_txt'] = 'Já existe uma caixa de correio com este endereço.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_alias_list.lng new file mode 100644 index 0000000..c503b0b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aliases de Correio'; +$wb['active_txt'] = 'Ativo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adcionar novo aliases'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain.lng new file mode 100644 index 0000000..7d86028 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Origem'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Ativo'; +$wb['no_domain_perm'] = 'Você não tem permissão para este domínio.'; +$wb['limit_mailaliasdomain_txt'] = 'O número máximo de domínios aliases para sua conta foi atingido.'; +$wb['source_destination_identical_txt'] = 'Origem e Destino são os mesmos.'; +$wb['source_error_empty'] = 'Domínio de origem está em branco.'; +$wb['source_error_unique'] = 'Domínio de origem duplicado.'; +$wb['source_error_regex'] = 'Nome do domínio de origem inválido.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain_list.lng new file mode 100644 index 0000000..beb2c82 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domínio Aliase'; +$wb['active_txt'] = 'Ativo'; +$wb['source_txt'] = 'Origem'; +$wb['destination_txt'] = 'Destino'; +$wb['add_new_record_txt'] = 'Adcionar novo domínio aliase'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist.lng new file mode 100644 index 0000000..6d2cdb2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Lista Negra'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Ativo'; +$wb['source_error_notempty'] = 'Endereço em branco.'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros de correio para sua conta foi atingido..'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist_list.lng new file mode 100644 index 0000000..9395a2c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Correio Lista Negra'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Correio na lista negra'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adcionar novo registro a lista'; +$wb['access_txt'] = 'acesso'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter.lng new file mode 100644 index 0000000..d5cda47 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Filtro'; +$wb['pattern_txt'] = 'Padrão de Expressão Regular.'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Ação'; +$wb['active_txt'] = 'Ativo'; +$wb['pattern_error_empty'] = 'Padrão em branco'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter_list.lng new file mode 100644 index 0000000..c3a616e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Cabeçalhos Postfix e Body Checks'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['pattern_txt'] = 'Padrão'; +$wb['action_txt'] = 'Ação'; +$wb['add_new_record_txt'] = 'Adcionar um novo filtro de conteúdo'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain.lng new file mode 100644 index 0000000..a1cab1c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['active_txt'] = 'Ativo'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Domínio duplicado'; +$wb['domain_error_regex'] = 'Nome de domínio inválido'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_maildomain_txt'] = 'O número máximo de contas de correio eletrônico para este domínio foi atingido.'; +$wb['policy_txt'] = 'Filtro Anti-Spam'; +$wb['no_policy'] = '- desativado -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall.lng new file mode 100644 index 0000000..1b794de --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domínio'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Ativo'; +$wb['domain_error_unique'] = 'Já existe um registro de Catchall para este domínio.'; +$wb['no_domain_perm'] = 'Você não tem permissão para este domínio.'; +$wb['domain_error_regex'] = 'O nome do domínio contém caracteres inválidos'; +$wb['limit_mailcatchall_txt'] = 'O número máximo de catchall para este domínio foi atingido.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall_list.lng new file mode 100644 index 0000000..c4d5481 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Catchall de Correio'; +$wb['active_txt'] = 'Ativo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Endereço de destino'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adcionar novo Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_list.lng new file mode 100644 index 0000000..2afb7db --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domínio de Correio'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adcionar novo domínio'; +$wb['active_txt'] = 'Ativo'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_forward.lng new file mode 100644 index 0000000..1dab622 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Correio'; +$wb['destination_txt'] = 'Correio de Destino'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_mailforward_txt'] = 'O número máximo de encaminhamentos para sua conta foi atingido.'; +$wb['duplicate_mailbox_txt'] = 'Já existe uma caixa de correio com este endereço.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_forward_list.lng new file mode 100644 index 0000000..f9f7ce4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Encaminhamento de Correio'; +$wb['active_txt'] = 'Ativo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adcionar novo encaminhamento'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_get.lng new file mode 100644 index 0000000..bd3a3c2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['source_server_txt'] = 'Servidor Pop3/Imap'; +$wb['source_username_txt'] = 'Usuário'; +$wb['source_password_txt'] = 'Senha'; +$wb['source_delete_txt'] = 'Remover mensagens da origem após o recebimento'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_fetchmail_txt'] = 'O número máximo de Fetchmail para sua conta foi atingido.'; +$wb['source_server_error_isempty'] = 'Servidor em branco.'; +$wb['source_username_error_isempty'] = 'Usuário em branco.'; +$wb['source_password_error_isempty'] = 'Senha em branco.'; +$wb['destination_error_isemail'] = 'Destino não selecionado.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_get_list.lng new file mode 100644 index 0000000..9eaf45b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Fetch de mensagens de um servidor POP3 / IMAP'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_server_txt'] = 'Servidor Externo'; +$wb['source_username_txt'] = 'Usuário'; +$wb['destination_txt'] = 'Destino'; +$wb['add_new_record_txt'] = 'Adcionar nova Conta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient.lng new file mode 100644 index 0000000..cdbf7ca --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Recipiente de Relay'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Ativo'; +$wb['source_error_notempty'] = 'Endereço em branco.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros para esta conta já foi atingido.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient_list.lng new file mode 100644 index 0000000..e6d898c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Recipientes Relay'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Recipiente'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adcione um novo relay recipiente'; +$wb['access_txt'] = 'acesso'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter.lng new file mode 100644 index 0000000..7f8a336 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Pontução de Rewrite'; +$wb['spam_redirect_score_int_txt'] = 'Pontuação de Redirecionamento'; +$wb['spam_delete_score_int_txt'] = 'Remover Pontuação'; +$wb['spam_rewrite_subject_txt'] = 'Re-escrever assunto'; +$wb['spam_redirect_maildir_txt'] = 'Redirecionar Caixa de Correio'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Re-escrever assunto da mensagem depois desta pontuação.'; +$wb['spam_redirect_txt'] = 'Redirecione esta mensagem depois desta pontuação para esta caixa postal'; +$wb['spam_delete_txt'] = 'Remover esta mensagem depois desta pontuação.'; +$wb['disable_txt'] = 'Dica: Para desativar uma opção de filtro, configure a pontuação como 0.00.'; +$wb['email_error_isemail'] = 'Endereço de correio inválido.'; +$wb['email_error_unique'] = 'Já existem registros de spamfilter para esta caixa de correio.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Remover Maildir depois'; +$wb['days_txt'] = 'Dias.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter_list.lng new file mode 100644 index 0000000..9b549a9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Filtro Anti-Spam'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'nome_servidor'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adcionar novo filtro anti-spam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_transport.lng new file mode 100644 index 0000000..51df05d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['destination_txt'] = 'Destino'; +$wb['type_txt'] = 'Tipo'; +$wb['mx_txt'] = 'Sem MX lookup'; +$wb['sort_order_txt'] = 'Ordenar por'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_mailrouting_txt'] = 'O número máximo de rotas para sua conta foi atingido.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_transport_list.lng new file mode 100644 index 0000000..4c67280 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Rota Avançada de Correio'; +$wb['active_txt'] = 'Ativa'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['transport_txt'] = 'Transporte'; +$wb['sort_order_txt'] = 'Ordenar por'; +$wb['add_new_record_txt'] = 'Adcionar um novo transporte'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_user.lng new file mode 100644 index 0000000..4644997 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Formula de filtro de correio'; +$wb['email_txt'] = 'Correio'; +$wb['cryptpwd_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Tamanho da Senha'; +$wb['active_txt'] = 'Ativo'; +$wb['email_error_isemail'] = 'Endereço de Correio Inválido.'; +$wb['email_error_unique'] = 'Endereço de Correio Duplicado.'; +$wb['autoresponder_text_txt'] = 'Texto'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'Sem permissão para este domínio.'; +$wb['error_no_pwd'] = 'Senha em branco.'; +$wb['quota_error_isint'] = 'O tamanho da caixa de correio deve ser um número.'; +$wb['quota_txt'] = 'Cota'; +$wb['server_id_txt'] = 'Aerver_id'; +$wb['password_txt'] = 'Senha'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Habilitar Recebimento'; +$wb['access_txt'] = 'Habilitar Acesso'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- desativado -'; +$wb['limit_mailbox_txt'] = 'O número máximo de caixas de correio para sua conta foi atingido.'; +$wb['limit_mailquota_txt'] = 'O espaço em disco disponível para criação de contas foi atingido.'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'Parabéns sua conta de correio foi criada.'; +$wb['welcome_mail_message'] = 'Parabéns sua conta de correio foi criada. Att. Seu webmaster.'; +$wb['disableimap_txt'] = 'Desativar IMAP'; +$wb['disablepop3_txt'] = 'Disativar POP3'; +$wb['duplicate_alias_or_forward_txt'] = 'Já existe um aliase o encaminhamento com este endereço de correio.'; +$wb['quota_error_value'] = 'Valor de cota inválido. Valores válidos são: 0 para ilimitado ou números > 1'; +$wb['autoresponder_start_date_txt'] = 'Início:'; +$wb['autoresponder_start_date_isfuture'] = 'A data de ínicio não pode estar no passado.'; +$wb['autoresponder_end_date_txt'] = 'Termino:'; +$wb['autoresponder_end_date_isgreater'] = 'A data de início deve ser menor que a data de termino.'; +$wb['move_junk_txt'] = 'Mover Spam para o diretório JUNK'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter.lng new file mode 100644 index 0000000..a9c054b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Nome'; +$wb['action_txt'] = 'Ação'; +$wb['target_txt'] = 'Pasta'; +$wb['active_txt'] = 'Ativo'; +$wb['rulename_error_empty'] = 'Nome está em branco.'; +$wb['searchterm_is_empty'] = 'Termo de busca em branco.'; +$wb['source_txt'] = 'Origem'; +$wb['target_error_regex'] = 'O alvo só pode conter os caracteres: a-z, 0-9, -, ., _, e {espa�o}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter_list.lng new file mode 100644 index 0000000..847d72c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Nome'; +$wb['add_new_record_txt'] = 'Adcionar novo filtro'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Está certo que quer remover este mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_list.lng new file mode 100644 index 0000000..d399f48 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Caixa de Correio'; +$wb['email_txt'] = 'Correio'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Adcionar nova caixa de correio'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_stats_list.lng new file mode 100644 index 0000000..0457c2d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Tráfego de Correio'; +$wb['email_txt'] = 'Correio'; +$wb['this_month_txt'] = 'Este Mês'; +$wb['last_month_txt'] = 'Último Mês'; +$wb['this_year_txt'] = 'Este Ano'; +$wb['last_year_txt'] = 'Último Ano'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist.lng new file mode 100644 index 0000000..15db38f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Lista Branca'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Activo'; +$wb['source_error_notempty'] = 'Endereço em Branco.'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros para sua conta foi atingido.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist_list.lng new file mode 100644 index 0000000..bd84205 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Correio Lista Branca'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereços na Lista Branca'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adcionar um novo registro a lista'; +$wb['access_txt'] = 'acesso'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist.lng new file mode 100644 index 0000000..c282bea --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Usuário'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Prioridade'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_spamfilter_wblist_txt'] = 'O número máximo de registros de lista negra / branca foi atingido para esta conta.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..8190653 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Lista Negra'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['rid_txt'] = 'Usuário'; +$wb['email_txt'] = 'Correio na Lista Negra'; +$wb['add_new_record_txt'] = 'Adcionar novo registro a lista'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config.lng new file mode 100644 index 0000000..30d0138 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Caminho de Configuração Getmail '; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['netmask_txt'] = 'Mascara de Rede'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Servidor de Nomes'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Caminho do Maildir'; +$wb['homedir_path_txt'] = 'Caminho do Homedir'; +$wb['mailuser_uid_txt'] = 'Usuário de Correio UID'; +$wb['mailuser_gid_txt'] = 'Usuário de Correio GID'; +$wb['mailuser_name_txt'] = 'Nome do Usuário de Correio'; +$wb['mailuser_group_txt'] = 'Grupo do Usuário de Correio'; +$wb['relayhost_txt'] = 'Host Relay'; +$wb['relayhost_user_txt'] = 'Usuário Host Relay'; +$wb['relayhost_password_txt'] = 'Senha Host Relay'; +$wb['mailbox_size_limit_txt'] = 'Tamanho Caixa de Correio'; +$wb['message_size_limit_txt'] = 'Tamanho da Mensagem'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config_list.lng new file mode 100644 index 0000000..345903f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Configurações do Servidor'; +$wb['server_name_txt'] = 'Servidor'; +$wb['server_id_txt'] = 'id_servidor'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy.lng new file mode 100644 index 0000000..24eb2ed --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Nome da Regra'; +$wb['virus_lover_txt'] = 'Permitir Vírus'; +$wb['spam_lover_txt'] = 'Permitir SPAM'; +$wb['banned_files_lover_txt'] = 'Permitir Arquivos Banidos'; +$wb['bad_header_lover_txt'] = 'Permitir Bad header'; +$wb['bypass_virus_checks_txt'] = 'Bypassar checagem de vírus'; +$wb['bypass_banned_checks_txt'] = 'Bypassar checagem de banimento'; +$wb['bypass_header_checks_txt'] = 'Bypassar checagem de header'; +$wb['virus_quarantine_to_txt'] = 'Encaminhar o vírus para o correio'; +$wb['spam_quarantine_to_txt'] = 'Encaminhar o spam para o correio'; +$wb['banned_quarantine_to_txt'] = 'Encaminhar banimento para o correio'; +$wb['bad_header_quarantine_to_txt'] = 'Encaminhar bad header para o correio'; +$wb['clean_quarantine_to_txt'] = 'Encaminhamento limpo para o correio'; +$wb['other_quarantine_to_txt'] = 'Encaminhar para outro correio'; +$wb['spam_tag_level_txt'] = 'Nível 1 de marcação de SPAM'; +$wb['spam_tag2_level_txt'] = 'Nível 1 de marcação de SPAM'; +$wb['spam_kill_level_txt'] = 'Nível kill de SPAM'; +$wb['spam_dsn_cutoff_level_txt'] = 'Nível de corte de dns SPAM'; +$wb['spam_quarantine_cutoff_level_txt'] = 'Nível de corte de quarentena SPAM'; +$wb['spam_modifies_subj_txt'] = 'Modificar assunto de mensagem com SPAM'; +$wb['spam_subject_tag_txt'] = 'Marcação de assunto SPAM 1'; +$wb['spam_subject_tag2_txt'] = 'Marcação de assunto SPAM 1'; +$wb['addr_extension_virus_txt'] = 'Addr. extensão de virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extensão de SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extensão de banimento'; +$wb['addr_extension_bad_header_txt'] = 'Addr extensão de bad header'; +$wb['warnvirusrecip_txt'] = 'Aviso de recipiente de vírus.'; +$wb['warnbannedrecip_txt'] = 'Aviso de recipiente de banimento.'; +$wb['warnbadhrecip_txt'] = 'Aviso de recipiente de bad header.'; +$wb['newvirus_admin_txt'] = 'Administrador Novo vírus'; +$wb['virus_admin_txt'] = 'Administrador Vírus'; +$wb['banned_admin_txt'] = 'Administrador de banimento'; +$wb['bad_header_admin_txt'] = 'Administrador de Bad header'; +$wb['spam_admin_txt'] = 'Administrador SPAM'; +$wb['message_size_limit_txt'] = 'Tamanho limite da mensagem'; +$wb['banned_rulenames_txt'] = 'Regras de Banimento'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy_list.lng new file mode 100644 index 0000000..7247b2a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Políticas de Spam'; +$wb['policy_name_txt'] = 'Nome'; +$wb['virus_lover_txt'] = 'Permitir Virus'; +$wb['spam_lover_txt'] = 'Permitir Spam'; +$wb['banned_files_lover_txt'] = 'Permitir Arquivos Banidos'; +$wb['bad_header_lover_txt'] = 'Permitir Bad Header'; +$wb['add_new_record_txt'] = 'Adcionar Registro'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users.lng new file mode 100644 index 0000000..4515009 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['policy_id_txt'] = 'Política'; +$wb['email_txt'] = 'Correio (Padrão)'; +$wb['fullname_txt'] = 'Nome'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users_list.lng new file mode 100644 index 0000000..1fe408e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Filtro Anti-Spam Usuários'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['policy_id_txt'] = 'Políticas'; +$wb['fullname_txt'] = 'Nome'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adcionar Usuário'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist.lng new file mode 100644 index 0000000..951c3f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Usuário'; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['priority_txt'] = 'Prioridade'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_spamfilter_wblist_txt'] = 'O número máximo de registros da lista branca / negra foi atingido para esta conta.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..4420bca --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/br_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Lista Branca'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['rid_txt'] = 'Usuário'; +$wb['email_txt'] = 'Correio na lista branca'; +$wb['add_new_record_txt'] = 'Adcionar um novo correio'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de.lng b/interface/ispconfig/interface/mail/lib/lang/de.lng new file mode 100644 index 0000000..e4a2347 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Inhaltsfilter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Weiterleitung'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email Transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'eigene Regeln'; +$wb['Email filter'] = 'Email Filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter Blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Konfiguration'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter Richtlinie'; +$wb['Policy'] = 'Richtlinie'; +$wb['Quarantine'] = 'Quarantäne'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Andere'; +$wb['Spamfilter users'] = 'Spamfilter Benutzer'; +$wb['Users'] = 'Benutzer'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Konten'; +$wb['User / Domain'] = 'Benutzer / Domain'; +$wb['Server Settings'] = 'Servereinstellungen'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox Datenverkehr'; +$wb['Statistics'] = 'Statistiken'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Inhaltsfilter'; +$wb['Global Filters'] = 'globale Filter'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Empfänger'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_alias.lng new file mode 100644 index 0000000..f9112df --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Emailadresse'; +$wb['destination_txt'] = 'Ziel'; +$wb['active_txt'] = 'Aktiv'; +$wb['email_error_isemail'] = 'Emailadresse ist ungültig'; +$wb['email_error_unique'] = 'Doppelte Emailadresse.'; +$wb['no_domain_perm'] = 'Sie haben keine Berechtigung für diese Domain.'; +$wb['destination_error_isemail'] = 'Ziel Emailadresse ist ungültig.'; +$wb['limit_mailalias_txt'] = 'Die maximale Anzahl an Email Aliases für ihr Konto wurde erreicht.'; +$wb['duplicate_mailbox_txt'] = 'Es existiert bereits eine Mailbox mit dieser Email Adresse'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_alias_list.lng new file mode 100644 index 0000000..f249060 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Quelle'; +$wb['destination_txt'] = 'Ziel'; +$wb['email_txt'] = 'Emailadresse'; +$wb['add_new_record_txt'] = 'Neuen Email Alias hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain.lng new file mode 100644 index 0000000..4ea7715 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Quelle'; +$wb['destination_txt'] = 'Ziel'; +$wb['active_txt'] = 'Aktiv'; +$wb['no_domain_perm'] = 'Sie haben keine Rechte für diese Domain.'; +$wb['limit_mailaliasdomain_txt'] = 'Die max. Anzahl an Email Alias Domains wurde erreicht.'; +$wb['source_destination_identical_txt'] = 'Quell und Ziel Domain sind dieselbe.'; +$wb['source_error_empty'] = 'Quell Domain ist leer.'; +$wb['source_error_unique'] = 'Quell Domain duplizieren.'; +$wb['source_error_regex'] = 'Ungültiger Quell Domainname.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain_list.lng new file mode 100644 index 0000000..1c486c9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domainalias'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Quelle'; +$wb['destination_txt'] = 'Ziel'; +$wb['add_new_record_txt'] = 'Neuen Domainalias hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist.lng new file mode 100644 index 0000000..75b20e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklist Adresse'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_error_notempty'] = 'Adresse ist leer.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Die maximale Anzahl an Emailfilter für ihr Konto wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist_list.lng new file mode 100644 index 0000000..276d3a6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Blacklist'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklisted Adresse'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['add_new_record_txt'] = 'Neuen Blacklisteintrag hinzufügen'; +$wb['access_txt'] = 'Zugriff'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter.lng new file mode 100644 index 0000000..9ea5422 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Daten'; +$wb['action_txt'] = 'Aktion'; +$wb['active_txt'] = 'Aktiv'; +$wb['pattern_error_empty'] = 'Zeichenkette ist leer'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter_list.lng new file mode 100644 index 0000000..126f23c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Header und Body Checks'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Zeichenkette'; +$wb['action_txt'] = 'Aktion'; +$wb['add_new_record_txt'] = 'Neuen Inhaltsfilter hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain.lng new file mode 100644 index 0000000..e1cf325 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktiv'; +$wb['domain_error_empty'] = 'Domain ist leer'; +$wb['domain_error_unique'] = 'Doppelte Domain.'; +$wb['domain_error_regex'] = 'Ungültiger Domainname.'; +$wb['client_txt'] = 'Kunde'; +$wb['limit_maildomain_txt'] = 'Die maximale Anzahl an Emaildomains für ihr Konto wurde erreicht.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- nicht aktiviert -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall.lng new file mode 100644 index 0000000..d67fa10 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Ziel'; +$wb['active_txt'] = 'Aktiv'; +$wb['domain_error_unique'] = 'Es besteht bereits ein Catchall Eintrag für diese Domain.'; +$wb['no_domain_perm'] = 'Sie haben keine Berechtigung für diese Domain.'; +$wb['domain_error_regex'] = 'Ungültiger Domainname oder ungültige Zeichen im Domainnamen.'; +$wb['limit_mailcatchall_txt'] = 'Die maximale Anzahl an Catchall Einträgen für ihr Konto wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall_list.lng new file mode 100644 index 0000000..2c5763f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Quelle'; +$wb['destination_txt'] = 'Ziel Emailadresse'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Neue Catchall hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_list.lng new file mode 100644 index 0000000..0449bc9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Neue Domain hinzufügen'; +$wb['active_txt'] = 'Aktiv'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_forward.lng new file mode 100644 index 0000000..7fcf306 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Emailadresse'; +$wb['destination_txt'] = 'Ziel Emailadresse'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_mailforward_txt'] = 'Die maximale Anzahl an Emailweiterleitungen für ihr Konto wurde erreicht.'; +$wb['duplicate_mailbox_txt'] = 'Es existiert bereits eine Mailbox mit dieser Email Adresse'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_forward_list.lng new file mode 100644 index 0000000..2eee574 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mailweiterleitung'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Quelle'; +$wb['destination_txt'] = 'Ziel'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Neue Mailweiterleitung hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_get.lng new file mode 100644 index 0000000..eb4a3b0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Typ'; +$wb['source_server_txt'] = 'POP3/IMAP Server'; +$wb['source_username_txt'] = 'Benutzername'; +$wb['source_password_txt'] = 'Passwort'; +$wb['source_delete_txt'] = 'Mails nach Empfang löschen'; +$wb['destination_txt'] = 'Ziel'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_fetchmail_txt'] = 'Die maximale Anzahl an Fetchmail Einträgen wurde erreicht.'; +$wb['source_server_error_isempty'] = 'Server ist leer.'; +$wb['source_username_error_isempty'] = 'Benutzername ist leer.'; +$wb['source_password_error_isempty'] = 'Passwort ist leer.'; +$wb['destination_error_isemail'] = 'Kein Ziel gewählt.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server ist kein gültiger Domainname.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_get_list.lng new file mode 100644 index 0000000..3f7cf24 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Hole Emails von externem POP3 / IMAP Server'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'Externer Server'; +$wb['source_username_txt'] = 'Benutzername'; +$wb['destination_txt'] = 'Ziel'; +$wb['add_new_record_txt'] = 'Neues Konto hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient.lng new file mode 100644 index 0000000..535ceb3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay Empfänger'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_error_notempty'] = 'Adresse ist leer.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Die max. Anzahl an Emailfiltern wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient_list.lng new file mode 100644 index 0000000..fc5d6f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay Empfänger'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Empfänger Adresse'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['add_new_record_txt'] = 'Neuen Relay Empfänger hinzufügen'; +$wb['access_txt'] = 'Zugriff'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter.lng new file mode 100644 index 0000000..d411cb1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Rewrite Bewertung'; +$wb['spam_redirect_score_int_txt'] = 'Redirect Bewertung'; +$wb['spam_delete_score_int_txt'] = 'Delete Bewertung'; +$wb['spam_rewrite_subject_txt'] = 'Rewrite Betreff'; +$wb['spam_redirect_maildir_txt'] = 'Redirect Mailbox'; +$wb['active_txt'] = 'Aktiv'; +$wb['spam_rewrite_txt'] = 'Schreibe Email Betreff über dieser Bewertung um.'; +$wb['spam_redirect_txt'] = 'Leite Emails über dieser Bewertung zur ausgewählten Mailbox weiter.'; +$wb['spam_delete_txt'] = 'Lösche Emails über dieser Bewertung.'; +$wb['disable_txt'] = 'Hint: Um eine Filteroption zu deaktivieren, müssen Sie die Bewertung auf 0.00 setzen.'; +$wb['email_error_isemail'] = 'Email Adresse ist ungültig.'; +$wb['email_error_unique'] = 'Es existiert bereits ein Spamfilter Eintrag für diese Email Adresse.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purge Maildir nach'; +$wb['days_txt'] = 'Tagen.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter_list.lng new file mode 100644 index 0000000..f0acef3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'Servername'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Neuen Spamfiltereintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_transport.lng new file mode 100644 index 0000000..16d1e64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Ziel'; +$wb['type_txt'] = 'Typ'; +$wb['mx_txt'] = 'Kein MX Lookup'; +$wb['sort_order_txt'] = 'Sortiert nach'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_mailrouting_txt'] = 'Die maximale Anzahl an Routen für ihr Konto wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_transport_list.lng new file mode 100644 index 0000000..3efda20 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Erweitertes Email Routing'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Sortiert nach'; +$wb['add_new_record_txt'] = 'Neuen Transport hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_user.lng new file mode 100644 index 0000000..6312cd8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Benutzerdefiniertes Mail Filter Rezept'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Passwort'; +$wb['active_txt'] = 'Aktiv'; +$wb['email_error_isemail'] = 'Emailadresse ist ungültig.'; +$wb['email_error_unique'] = 'Doppelte Emailadresse.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'Sie haben keine Berechtigung für diese Domain.'; +$wb['error_no_pwd'] = 'Passwort ist leer.'; +$wb['quota_error_isint'] = 'Mailboxgröße muss eine Zahl sein.'; +$wb['quota_txt'] = 'Quota'; +$wb['server_id_txt'] = 'Server ID'; +$wb['password_txt'] = 'Passwort'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Aktiviere Empfang'; +$wb['access_txt'] = 'Aktiviere Zugriff'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- nicht aktiviert -'; +$wb['limit_mailbox_txt'] = 'Die maximale Anzahl an Mailboxen für ihr Konto wurde erreich.'; +$wb['limit_mailquota_txt'] = 'Der maximale Speicherplatz für ihre Mailboxen wurde erreicht. Der maximal verfügbare Speicher in MB ist'; +$wb['welcome_mail_subject'] = 'Willkommen zu ihrem neuen Emailaccount.'; +$wb['welcome_mail_message'] = 'Willkommen zu ihrem neuen Emailaccount.'; +$wb['disableimap_txt'] = 'IMAP deaktivieren'; +$wb['disablepop3_txt'] = 'POP3 deaktivieren'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@ihredomain.at'; +$wb['duplicate_alias_or_forward_txt'] = 'Es existiert bereits ein Alias oder eine Weiterleitung mit dieser Email Adresse.'; +$wb['quota_error_value'] = 'Ungültige Quota Eingabe. Erlaubte Größen sind: 0 für unlimitiert oder Nummern > 1'; +$wb['autoresponder_start_date_txt'] = 'Startet am'; +$wb['autoresponder_start_date_isfuture'] = 'Startdatum kann nicht in der Vergangenheit liegen.'; +$wb['autoresponder_end_date_txt'] = 'Endet am'; +$wb['autoresponder_end_date_isgreater'] = 'Enddatum muss angegeben werden und muss später als das Startdatum sein.'; +$wb['move_junk_txt'] = 'Spam Emails in den Junk Ordner verschieben'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter.lng new file mode 100644 index 0000000..cc6d3d1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['action_txt'] = 'Aktion'; +$wb['target_txt'] = 'Ordner'; +$wb['active_txt'] = 'Aktiv'; +$wb['rulename_error_empty'] = 'Name ist leer.'; +$wb['searchterm_is_empty'] = 'Suchbegriff ist leer.'; +$wb['source_txt'] = 'Quelle'; +$wb['target_error_regex'] = 'Das Ziel beinhaltet wahrscheinlich diese Zeichen: a-z, 0-9, -, ., _, und {raum}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter_list.lng new file mode 100644 index 0000000..3d9fd82 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Neuen Filter hinzufügen'; +$wb['page_txt'] = 'Seite'; +$wb['page_of_txt'] = 'von'; +$wb['delete_confirmation'] = 'Wollen Sie den Mailfilter wirklich löschen?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_list.lng new file mode 100644 index 0000000..f2e3d7a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox'; +$wb['email_txt'] = 'Emailadresse'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Neue Mailbox hinzufügen'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_stats_list.lng new file mode 100644 index 0000000..88ad07a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail Datenverkehr'; +$wb['email_txt'] = 'Emailadresse'; +$wb['this_month_txt'] = 'Diesen Monat'; +$wb['last_month_txt'] = 'Letzten Monat'; +$wb['this_year_txt'] = 'Dieses Jahr'; +$wb['last_year_txt'] = 'Letztes Jahr'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist.lng new file mode 100644 index 0000000..528c7cf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelist Emailadresse'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_error_notempty'] = 'Emailadresse ist leer.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Die maximale Anzahl an Emailfilter für ihr Konto wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist_list.lng new file mode 100644 index 0000000..cb7f293 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Whitelist'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelisted Adressen'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'Empfänger'; +$wb['add_new_record_txt'] = 'Whitelist Eintrag hinzufügen'; +$wb['access_txt'] = 'Zugriff'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist.lng new file mode 100644 index 0000000..f2bc79a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Benutzer'; +$wb['email_txt'] = 'Emailadresse'; +$wb['priority_txt'] = 'Priorität'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_spamfilter_wblist_txt'] = 'Die maximale Anzahl an White- oder Blacklist Einträgen wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..ca726a9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorität'; +$wb['rid_txt'] = 'Benuzer'; +$wb['email_txt'] = 'Blacklisted Emailadresse'; +$wb['add_new_record_txt'] = 'Blacklist Eintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config.lng new file mode 100644 index 0000000..f82f27f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Adresse'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameserver'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Pfad'; +$wb['homedir_path_txt'] = 'Homedir Pfad'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Gruppe'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Passwort'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Grösse Limit'; +$wb['message_size_limit_txt'] = 'Nachricht Grösse Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config_list.lng new file mode 100644 index 0000000..db92a4b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Serverkonfiguration'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'Server ID'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy.lng new file mode 100644 index 0000000..ff2426f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Richtlinienname'; +$wb['virus_lover_txt'] = 'Virus Liebhaber'; +$wb['spam_lover_txt'] = 'SPAM Liebhaber'; +$wb['banned_files_lover_txt'] = 'Banned Files Liebhaber'; +$wb['bad_header_lover_txt'] = 'Bad Header Liebhaber'; +$wb['bypass_virus_checks_txt'] = 'Umgehe Virus Überprüfungen'; +$wb['bypass_banned_checks_txt'] = 'Umgehe Banned Überprüfungen'; +$wb['bypass_header_checks_txt'] = 'Umgehe Header Überprüfungen'; +$wb['virus_quarantine_to_txt'] = 'Weiterleiten von Viren zur Email Adresse'; +$wb['spam_quarantine_to_txt'] = 'Weiterleiten von Spam zur Email Adresse'; +$wb['banned_quarantine_to_txt'] = 'Weiterleiten von Banned zur Email Adresse'; +$wb['bad_header_quarantine_to_txt'] = 'Weiterleiten von Bad Header zur Email Adresse'; +$wb['clean_quarantine_to_txt'] = 'Weiterleiten von sauberen Mails zur Email Adresse'; +$wb['other_quarantine_to_txt'] = 'Weiterleiten von anderen Mails zur Email Adresse'; +$wb['spam_tag_level_txt'] = 'SPAM tag Level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 Level'; +$wb['spam_kill_level_txt'] = 'SPAM kill Level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff Level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff Level'; +$wb['spam_modifies_subj_txt'] = 'SPAM ändert Betreff'; +$wb['spam_subject_tag_txt'] = 'SPAM Betreff Markierung tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM Betreff Markierung tag2'; +$wb['addr_extension_virus_txt'] = 'Adresserweiterung Virus'; +$wb['addr_extension_spam_txt'] = 'Adresserweiterung SPAM'; +$wb['addr_extension_banned_txt'] = 'Adresserweiterung Banned'; +$wb['addr_extension_bad_header_txt'] = 'Adresserweiterung Bad Header'; +$wb['warnvirusrecip_txt'] = 'Warne Virus Empfänger'; +$wb['warnbannedrecip_txt'] = 'Warne Banned Empfänger'; +$wb['warnbadhrecip_txt'] = 'Warne Bad Header Empfänger'; +$wb['newvirus_admin_txt'] = 'Newvirus Administrator'; +$wb['virus_admin_txt'] = 'Virus Administrator'; +$wb['banned_admin_txt'] = 'Banned Administrator'; +$wb['bad_header_admin_txt'] = 'Bad Header Administrator'; +$wb['spam_admin_txt'] = 'SPAM Administrator'; +$wb['message_size_limit_txt'] = 'Limit der Nachrichtengröße'; +$wb['banned_rulenames_txt'] = 'Banned Richtliniennamen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy_list.lng new file mode 100644 index 0000000..8f77a64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Richtlinie'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'Virus Liebhaber'; +$wb['spam_lover_txt'] = 'Spam Liebhaber'; +$wb['banned_files_lover_txt'] = 'Banned Dateien Liebhaber'; +$wb['bad_header_lover_txt'] = 'Bad Header Liebhaber'; +$wb['add_new_record_txt'] = 'Richtlinien Eintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users.lng new file mode 100644 index 0000000..fcb5811 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorität'; +$wb['policy_id_txt'] = 'Richtlinie'; +$wb['email_txt'] = 'Email (Zeichenkette)'; +$wb['fullname_txt'] = 'Name'; +$wb['local_txt'] = 'lokal'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users_list.lng new file mode 100644 index 0000000..b85e23d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilterbenutzer'; +$wb['local_txt'] = 'Lokal'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorität'; +$wb['policy_id_txt'] = 'Richtlinie'; +$wb['fullname_txt'] = 'Name'; +$wb['email_txt'] = 'Emailadresse'; +$wb['add_new_record_txt'] = 'Spamfilterbenutzer hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist.lng new file mode 100644 index 0000000..1f47c71 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Benutzer'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priorität'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_spamfilter_wblist_txt'] = 'Die maximale Anzahl an White- oder Blacklist Einträgen wurde erreicht.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..ea53892 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/de_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorität'; +$wb['rid_txt'] = 'Benutzer'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Whitelist Eintrag hinzufügen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/en.lng b/interface/ispconfig/interface/mail/lib/lang/en.lng new file mode 100644 index 0000000..0570dfa --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en.lng @@ -0,0 +1,51 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Content Filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'Users'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Accounts'; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Settings'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistics'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Content Filter'; +$wb['Global Filters'] = 'Global Filters'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb["Relay Recipients"] = 'Relay Recipients'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_alias.lng new file mode 100644 index 0000000..d7c5e7a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb["email_txt"] = 'Email'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'Duplicate Emailaddress.'; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["destination_error_isemail"] = 'Destination Emailaddress is invalid.'; +$wb["limit_mailalias_txt"] = 'The max. number of email aliases for your account is reached.'; +$wb["duplicate_mailbox_txt"] = 'There is already a mailbox with this email address'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_alias_list.lng new file mode 100644 index 0000000..10d5a6c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Email Alias'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Email alias'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain.lng new file mode 100644 index 0000000..241eb64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["limit_mailaliasdomain_txt"] = 'The max. number of email alias domains for your account is reached.'; +$wb["source_destination_identical_txt"] = 'Source and target Domain are the same.'; +$wb["source_error_empty"] = 'Source Domain is empty.'; +$wb["source_error_unique"] = 'Duplicate source Domain.'; +$wb["source_error_regex"] = 'Invalid source domain name.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain_list.lng new file mode 100644 index 0000000..8ebfa7d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_aliasdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Domain alias'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["source_txt"] = 'Source'; +$wb["add_new_record_txt"] = 'Add new Domain alias'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist.lng new file mode 100644 index 0000000..4407847 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Blacklist Address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist_list.lng new file mode 100644 index 0000000..9eb28ce --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb["list_head_txt"] = 'Email Blacklist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Blacklisted address'; +$wb["type_txt"] = 'Type'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new Blacklist record'; +$wb["access_txt"] = 'access'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter.lng new file mode 100644 index 0000000..c72c78b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Filter'; +$wb["pattern_txt"] = 'Regexp. Pattern'; +$wb["data_txt"] = 'Data'; +$wb["action_txt"] = 'Action'; +$wb["active_txt"] = 'Active'; +$wb["pattern_error_empty"] = 'Pattern is empty.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter_list.lng new file mode 100644 index 0000000..58de44a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Postfix Header and Body Checks'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["pattern_txt"] = 'Pattern'; +$wb["action_txt"] = 'Action'; +$wb["add_new_record_txt"] = 'Add new Content Filter'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain.lng new file mode 100644 index 0000000..ad93100 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["active_txt"] = 'Active'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'Duplicate Domain.'; +$wb["domain_error_regex"] = 'Invalid domain name.'; +$wb["client_txt"] = 'Client'; +$wb["limit_maildomain_txt"] = 'The max. number of email domains for your account is reached.'; +$wb["policy_txt"] = 'Spamfilter'; +$wb["no_policy"] = '- not enabled -'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall.lng new file mode 100644 index 0000000..211ea3d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb["domain_txt"] = 'Domain'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["domain_error_unique"] = "There is already a Catchall record for this domain."; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["domain_error_regex"] = 'Invalid domain name od domain contains invalid characters.'; +$wb["limit_mailcatchall_txt"] = 'The max. number of email catchall accounts for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall_list.lng new file mode 100644 index 0000000..589423b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Email Catchall'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination email address'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new Catchall'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_list.lng new file mode 100644 index 0000000..787216c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Email Domain'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new Domain'; +$wb["active_txt"] = 'Active'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_forward.lng new file mode 100644 index 0000000..dee6271 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb["email_txt"] = 'Email'; +$wb["destination_txt"] = 'Destination Email'; +$wb["active_txt"] = 'Active'; +$wb["limit_mailforward_txt"] = 'The max. number of email forwarders for your account is reached.'; +$wb["duplicate_mailbox_txt"] = 'There is already a mailbox with this email address'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_forward_list.lng new file mode 100644 index 0000000..f850512 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Mail Forward'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Email forward'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_get.lng new file mode 100644 index 0000000..e2180e5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Type'; +$wb["source_server_txt"] = 'Pop3/Imap Server'; +$wb["source_username_txt"] = 'Username'; +$wb["source_password_txt"] = 'Password'; +$wb["source_delete_txt"] = 'Delete emails after retrieval'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["limit_fetchmail_txt"] = 'The max. number of Fetchmail records for your account is reached.'; +$wb["source_server_error_isempty"] = 'Server is empty.'; +$wb["source_username_error_isempty"] = 'Username is empty.'; +$wb["source_password_error_isempty"] = 'Password is empty.'; +$wb["destination_error_isemail"] = 'No destination selected.'; +$wb["source_server_error_regex"] = 'Pop3/Imap Server is not a valid domain name.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_get_list.lng new file mode 100644 index 0000000..f8b307d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Fetch emails from external POP3 / IMAP servers'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_server_txt"] = 'External Server'; +$wb["source_username_txt"] = 'Username'; +$wb["destination_txt"] = 'Destination'; +$wb["add_new_record_txt"] = 'Add new Account'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient.lng new file mode 100644 index 0000000..fdec9ab --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Relay recipient'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient_list.lng new file mode 100644 index 0000000..44cd894 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Relay recipients'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Recipient address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new relay recipient'; +$wb["access_txt"] = 'access'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter.lng new file mode 100644 index 0000000..72c126c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb["email_txt"] = 'Email'; +$wb["spam_rewrite_score_int_txt"] = 'Rewrite score'; +$wb["spam_redirect_score_int_txt"] = 'Redirect score'; +$wb["spam_delete_score_int_txt"] = 'Delete score'; +$wb["spam_rewrite_subject_txt"] = 'Rewrite subject'; +$wb["spam_redirect_maildir_txt"] = 'Redirect mailbox'; +$wb["active_txt"] = 'Active'; +$wb["spam_rewrite_txt"] = 'Rewrite email subject above this score.'; +$wb["spam_redirect_txt"] = 'Redirect email above this score to the selected mailbox.'; +$wb["spam_delete_txt"] = 'Delete email above this score.'; +$wb["disable_txt"] = 'Hint: To disable a filtering option, set the score to 0.00.'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'There is already an spamfilter record for this email address.'; +$wb["spam_redirect_maildir_purge_txt"] = 'Purge Maildir after'; +$wb["days_txt"] = 'Days.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter_list.lng new file mode 100644 index 0000000..22316fa --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Spamfilter'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["server_name_txt"] = 'server_name'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Spamfilter record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_transport.lng new file mode 100644 index 0000000..152c2eb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["destination_txt"] = 'Destination'; +$wb["type_txt"] = 'Type'; +$wb["mx_txt"] = 'No MX lookup'; +$wb["sort_order_txt"] = 'Sort by'; +$wb["active_txt"] = 'Active'; +$wb["limit_mailrouting_txt"] = 'The max. number of routes for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_transport_list.lng new file mode 100644 index 0000000..febadb8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Advanced Email Routing'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["transport_txt"] = 'Transport'; +$wb["sort_order_txt"] = 'Sort by'; +$wb["add_new_record_txt"] = 'Add new transport'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_user.lng new file mode 100644 index 0000000..c393e0c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_user.lng @@ -0,0 +1,40 @@ +<?php +$wb["custom_mailfilter_txt"] = 'Custom mail filter recipe'; +$wb["email_txt"] = 'Email'; +$wb["cryptpwd_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["active_txt"] = 'Active'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'Duplicate Email address.'; +$wb["autoresponder_text_txt"] = 'Text'; +$wb["autoresponder_txt"] = 'Active'; +$wb["autoresponder_start_date_txt"] = 'Start on'; +$wb["autoresponder_start_date_isfuture"] = 'Start date cannot be in the past.'; +$wb["autoresponder_end_date_txt"] = 'End by'; +$wb["autoresponder_end_date_isgreater"] = 'End date must be set and be later than start date.'; +$wb["no_domain_perm"] = 'You have no permission for this domain.'; +$wb["error_no_pwd"] = 'Password is empty.'; +$wb["quota_error_isint"] = 'Mailbox size must be a number.'; +$wb["quota_txt"] = 'Quota'; +$wb["server_id_txt"] = 'Aerver_id'; +$wb["password_txt"] = 'Password'; +$wb["maildir_txt"] = 'Maildir'; +$wb["postfix_txt"] = 'Enable Receiving'; +$wb["access_txt"] = 'Enable Access'; +$wb["policy_txt"] = 'Spamfilter'; +$wb["no_policy"] = '- not enabled -'; +$wb["limit_mailbox_txt"] = 'The max. number of mailboxes for your account is reached.'; +$wb["limit_mailquota_txt"] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb["welcome_mail_fromname_txt"] = 'DAMAMAX Hosting'; +$wb["welcome_mail_fromemail_txt"] = "webmaster@localhost.tld"; +$wb["welcome_mail_subject"] = 'Welcome to your new email account.'; +$wb["welcome_mail_message"] = "Welcome to your new email account. Your webmaster."; +$wb["disableimap_txt"] = 'Disable IMAP'; +$wb["disablepop3_txt"] = 'Disable POP3'; +$wb["duplicate_alias_or_forward_txt"] = 'There is already an alias or forwrd with this email address.'; +$wb["quota_error_value"] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb["move_junk_txt"] = 'Move Spam Emails to Junk directory'; +$wb["name_txt"] = 'Realname'; +$wb["name_optional_txt"] = '(Optional)'; +$wb['autoresponder_active'] = 'Enable the autoresponder'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter.lng new file mode 100644 index 0000000..3245a09 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb["rulename_txt"] = 'Name'; +$wb["action_txt"] = 'Action'; +$wb["target_txt"] = 'Folder'; +$wb["active_txt"] = 'Active'; +$wb["rulename_error_empty"] = 'Name is empty.'; +$wb["searchterm_is_empty"] = 'Search term is empty.'; +$wb["source_txt"] = 'Source'; +$wb["target_error_regex"] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter_list.lng new file mode 100644 index 0000000..97cc11a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["rulename_txt"] = 'Name'; +$wb["add_new_record_txt"] = 'Add new Filter'; +$wb["page_txt"] = 'Page'; +$wb["page_of_txt"] = 'of'; +$wb["delete_confirmation"] = 'Do you really want to Delete the mailfilter?'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_list.lng new file mode 100644 index 0000000..70497de --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'Mailbox'; +$wb["email_txt"] = 'Email'; +$wb["autoresponder_txt"] = 'Autoresponder'; +$wb["add_new_record_txt"] = 'Add new Mailbox'; +$wb["name_txt"] = 'Realname'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_stats_list.lng new file mode 100644 index 0000000..a2947f7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Mail traffic'; +$wb["email_txt"] = 'Email'; +$wb["this_month_txt"] = 'This month'; +$wb["last_month_txt"] = 'Last month'; +$wb["this_year_txt"] = 'This year'; +$wb["last_year_txt"] = 'Last year'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist.lng new file mode 100644 index 0000000..6c6bed9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Witelist Address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist_list.lng new file mode 100644 index 0000000..22aedf2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb["list_head_txt"] = 'Email Whitelist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Whitelisted address'; +$wb["type_txt"] = 'Type'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new Whitelist record'; +$wb["access_txt"] = 'access'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist.lng new file mode 100644 index 0000000..6478b1f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["wb_txt"] = 'wb'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Email'; +$wb["priority_txt"] = 'Priority'; +$wb["active_txt"] = 'Active'; +$wb["limit_spamfilter_wblist_txt"] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..ca387fb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Spamfilter Blacklist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Blacklisted Email'; +$wb["add_new_record_txt"] = 'Add Blacklist record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config.lng new file mode 100644 index 0000000..28c6b34 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb["getmail_config_dir_txt"] = 'Getmail Config Path'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["netmask_txt"] = 'Netmask'; +$wb["gateway_txt"] = 'Gateway'; +$wb["hostname_txt"] = 'Hostname'; +$wb["nameservers_txt"] = 'Nameservers'; +$wb["module_txt"] = 'Server Module'; +$wb["maildir_path_txt"] = 'Maildir Path'; +$wb["homedir_path_txt"] = 'Homedir Path'; +$wb["mailuser_uid_txt"] = 'Mailuser UID'; +$wb["mailuser_gid_txt"] = 'Mailuser GID'; +$wb["mailuser_name_txt"] = 'Mailuser Name'; +$wb["mailuser_group_txt"] = 'Mailuser Group'; +$wb["relayhost_txt"] = 'Relayhost'; +$wb["relayhost_user_txt"] = 'Relayhost User'; +$wb["relayhost_password_txt"] = 'Relayhost Password'; +$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; +$wb["message_size_limit_txt"] = 'Message Size Limit'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config_list.lng new file mode 100644 index 0000000..710e22b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb["list_head_txt"] = 'Server Configuration'; +$wb["server_name_txt"] = 'Server'; +$wb["server_id_txt"] = 'server_id'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy.lng new file mode 100644 index 0000000..2e0f05d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb["policy_name_txt"] = 'Policy Name'; +$wb["virus_lover_txt"] = 'Virus lover'; +$wb["spam_lover_txt"] = 'SPAM lover'; +$wb["banned_files_lover_txt"] = 'Banned files lover'; +$wb["bad_header_lover_txt"] = 'Bad header lover'; +$wb["bypass_virus_checks_txt"] = 'Bypass virus checks'; +$wb["bypass_banned_checks_txt"] = 'Bypass banned checks'; +$wb["bypass_header_checks_txt"] = 'Bypass header checks'; +$wb["virus_quarantine_to_txt"] = 'Forward virus to email'; +$wb["spam_quarantine_to_txt"] = 'Forward spam to email'; +$wb["banned_quarantine_to_txt"] = 'Forward banned to email'; +$wb["bad_header_quarantine_to_txt"] = 'Forward bad header to email'; +$wb["clean_quarantine_to_txt"] = 'Forward clean to email'; +$wb["other_quarantine_to_txt"] = 'Forward other to email'; +$wb["spam_tag_level_txt"] = 'SPAM tag level'; +$wb["spam_tag2_level_txt"] = 'SPAM tag2 level'; +$wb["spam_kill_level_txt"] = 'SPAM kill level'; +$wb["spam_dsn_cutoff_level_txt"] = 'SPAM dsn cutoff level'; +$wb["spam_quarantine_cutoff_level_txt"] = 'SPAM quarantine cutoff level'; +$wb["spam_modifies_subj_txt"] = 'SPAM modifies subject'; +$wb["spam_subject_tag_txt"] = 'SPAM subject tag'; +$wb["spam_subject_tag2_txt"] = 'SPAM subject tag2'; +$wb["addr_extension_virus_txt"] = 'Addr. extension virus'; +$wb["addr_extension_spam_txt"] = 'Addr. extension SPAM'; +$wb["addr_extension_banned_txt"] = 'Addr. extension banned'; +$wb["addr_extension_bad_header_txt"] = 'Addr extension bad header'; +$wb["warnvirusrecip_txt"] = 'Warn virus recip.'; +$wb["warnbannedrecip_txt"] = 'Warn banned recip.'; +$wb["warnbadhrecip_txt"] = 'Warn bad header recip.'; +$wb["newvirus_admin_txt"] = 'Newvirus admin'; +$wb["virus_admin_txt"] = 'Virus admin'; +$wb["banned_admin_txt"] = 'Banned admin'; +$wb["bad_header_admin_txt"] = 'Bad header admin'; +$wb["spam_admin_txt"] = 'SPAM admin'; +$wb["message_size_limit_txt"] = 'Message size limit'; +$wb["banned_rulenames_txt"] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy_list.lng new file mode 100644 index 0000000..1e87733 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Spamfilter Policy'; +$wb["policy_name_txt"] = 'Name'; +$wb["virus_lover_txt"] = 'Virus lover'; +$wb["spam_lover_txt"] = 'Spam lover'; +$wb["banned_files_lover_txt"] = 'Banned Files lover'; +$wb["bad_header_lover_txt"] = 'Bad Header lover'; +$wb["add_new_record_txt"] = 'Add Policy record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users.lng new file mode 100644 index 0000000..78b346c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["policy_id_txt"] = 'Policy'; +$wb["email_txt"] = 'Email (Pattern)'; +$wb["fullname_txt"] = 'Name'; +$wb["local_txt"] = 'Local'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users_list.lng new file mode 100644 index 0000000..75fc98e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb["list_head_txt"] = 'Spamfilter Users'; +$wb["local_txt"] = 'Local'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["policy_id_txt"] = 'Policy'; +$wb["fullname_txt"] = 'Name'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add Spamfilter User'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist.lng new file mode 100644 index 0000000..6478b1f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["wb_txt"] = 'wb'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Email'; +$wb["priority_txt"] = 'Priority'; +$wb["active_txt"] = 'Active'; +$wb["limit_spamfilter_wblist_txt"] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..72495f5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/en_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Spamfilter Whitelist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Whitelisted Email'; +$wb["add_new_record_txt"] = 'Add Whitelist record'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/es.lng b/interface/ispconfig/interface/mail/lib/lang/es.lng new file mode 100644 index 0000000..fb33170 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Alias de correo'; +$wb['Email Blacklist'] = 'Lista negra de correo'; +$wb['Blacklist'] = 'Lista negra'; +$wb['Mail Content Filter'] = 'Filtro de contenido de correo'; +$wb['Filter'] = 'Filtro'; +$wb['Mail Domain'] = 'Dominio de correo'; +$wb['Domain'] = 'Dominio'; +$wb['Email Catchall'] = 'Correo recoge-todo'; +$wb['Email Forward'] = 'Reenvío de correo'; +$wb['Get Email'] = 'Recoger correo'; +$wb['Spamfilter'] = 'Filtro de spam'; +$wb['Email Routing'] = 'Enrutado de correo'; +$wb['Email transport'] = 'Transporte de correo'; +$wb['Mailbox'] = 'Buzón'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Filtro de correo'; +$wb['Custom Rules'] = 'Ordenes personalizadas'; +$wb['Email filter'] = 'Filtro de correo'; +$wb['Email Whitelist'] = 'Lista blanca de correo'; +$wb['Whitelist'] = 'Lista blanca'; +$wb['Spamfilter blacklist'] = 'Lista negra de filtro de spam'; +$wb['Spamfilter Config'] = 'Configurar filtro de spam'; +$wb['Server'] = 'Servidor'; +$wb['Spamfilter policy'] = 'Política de filtrado de spam'; +$wb['Policy'] = 'Política'; +$wb['Quarantine'] = 'Cuarentena'; +$wb['Tag-Level'] = 'Nivel de etiquetado'; +$wb['Other'] = 'Otro'; +$wb['Spamfilter users'] = 'Usuarios de filtro de spam'; +$wb['Users'] = 'Usuarios'; +$wb['Spamfilter Whitelist'] = 'Lista blanca de filtro de spam'; +$wb['Email'] = 'Correo'; +$wb['Email Mailbox'] = 'Buzón de correo'; +$wb['Email Accounts'] = 'Cuentas de correo'; +$wb['User / Domain'] = 'Usuario / dominio'; +$wb['Server Settings'] = 'Configuración del servidor'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Tráfico de buzón'; +$wb['Statistics'] = 'Estadísticas'; +$wb['Postfix Whitelist'] = 'Lista blanca Postfix'; +$wb['Postfix Blacklist'] = 'Lista negra Postfix'; +$wb['Content Filter'] = 'Filtro de contenido'; +$wb['Global Filters'] = 'Filtros globales'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_alias.lng new file mode 100644 index 0000000..c239568 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Correo'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activar'; +$wb['email_error_isemail'] = 'La dirección de correo no es válida'; +$wb['email_error_unique'] = 'Dirección de correo duplicada'; +$wb['no_domain_perm'] = 'No tiene permiso para administrar este dominio'; +$wb['destination_error_isemail'] = 'La dirección de correo de destino no es válida'; +$wb['limit_mailalias_txt'] = 'Ha alcanzado el número máximo de alias de correo para esta cuenta'; +$wb['duplicate_mailbox_txt'] = 'Ya existe un buzón de correo con esta dirección'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_alias_list.lng new file mode 100644 index 0000000..2f5df20 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Alias de correo'; +$wb['active_txt'] = 'Activar'; +$wb['source_txt'] = 'Origen'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correo'; +$wb['add_new_record_txt'] = 'Añadir nuevo alias de correo'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist.lng new file mode 100644 index 0000000..8efc603 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Direcciones de lista negra'; +$wb['recipient_txt'] = 'Destinatario'; +$wb['active_txt'] = 'Activar'; +$wb['source_error_notempty'] = 'La dirección está vacía'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'Se ha alcanzado el número máximo de filtros de spam para esta cuenta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist_list.lng new file mode 100644 index 0000000..a7394e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Lista negra de correo'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Direcciones en la lista negra'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Receptor'; +$wb['add_new_record_txt'] = 'Añadir nuevo correo a la lista negra'; +$wb['access_txt'] = 'acceso'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter.lng new file mode 100644 index 0000000..ec1ca96 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Filtro'; +$wb['pattern_txt'] = 'Patrón de expresion regular'; +$wb['data_txt'] = 'Fecha'; +$wb['action_txt'] = 'Acción'; +$wb['active_txt'] = 'Activar'; +$wb['pattern_error_empty'] = 'El patrón está vacío'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter_list.lng new file mode 100644 index 0000000..d70bf42 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix comprueba las cabeceras y el cuerpo del mensaje'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['pattern_txt'] = 'Patrón'; +$wb['action_txt'] = 'Acción'; +$wb['add_new_record_txt'] = 'Añadir nuevo filtro de contenido'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain.lng new file mode 100644 index 0000000..1bf9bc3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['type_txt'] = 'Tipo'; +$wb['active_txt'] = 'Activar'; +$wb['domain_error_empty'] = 'El dominio está vacío'; +$wb['domain_error_unique'] = 'Dominio duplicado'; +$wb['domain_error_regex'] = 'Nombre de dominio no válido'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_maildomain_txt'] = 'Se ha alcanzado el número máximo de dominios de correo para esta cuenta'; +$wb['policy_txt'] = 'Filtro de spam'; +$wb['no_policy'] = '- no activado -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall.lng new file mode 100644 index 0000000..f29db05 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Dominio'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activar'; +$wb['domain_error_unique'] = 'Ya hay un registro recoge todo para este dominio'; +$wb['no_domain_perm'] = 'No tiene permiso para administrar este dominio'; +$wb['domain_error_regex'] = 'El nombre de dominio no es válido o contiene caracteres no válidos'; +$wb['limit_mailcatchall_txt'] = 'Se ha alcanzado el número máximo de cuentas recoge-todo de este dominio'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall_list.lng new file mode 100644 index 0000000..c70887e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Correo recoge-todo'; +$wb['active_txt'] = 'Activar'; +$wb['source_txt'] = 'Origen'; +$wb['destination_txt'] = 'Correo de destino'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['add_new_record_txt'] = 'Añadir nuevo correo recoge-todo'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_list.lng new file mode 100644 index 0000000..c647e23 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Dominio de correo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['add_new_record_txt'] = 'Añadir nuevo dominio'; +$wb['active_txt'] = 'Activar'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_forward.lng new file mode 100644 index 0000000..771ef28 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Correo'; +$wb['destination_txt'] = 'Correo de destino'; +$wb['active_txt'] = 'Activar'; +$wb['limit_mailforward_txt'] = 'Se ha alcanzado el número máximo de reenvíos para esta cuenta'; +$wb['duplicate_mailbox_txt'] = 'Ya existe un buzón de correo con esta dirección'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_forward_list.lng new file mode 100644 index 0000000..2c5d9af --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Reenvío de correo'; +$wb['active_txt'] = 'Activar'; +$wb['source_txt'] = 'Origen'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correo'; +$wb['add_new_record_txt'] = 'Añadir nuevo reenvío de correo'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_get.lng new file mode 100644 index 0000000..c0c57ce --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['source_server_txt'] = 'Servidor Pop3/Imap'; +$wb['source_username_txt'] = 'Usuario'; +$wb['source_password_txt'] = 'Contraseña'; +$wb['source_delete_txt'] = 'Borrar los correos después de recibirlos'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activar'; +$wb['limit_fetchmail_txt'] = 'Se ha alcanzado el número máximo de registros Fetchmail de esta cuenta'; +$wb['source_server_error_isempty'] = 'El servidor está vacío.'; +$wb['source_username_error_isempty'] = 'El nombre de usuario está vacío.'; +$wb['source_password_error_isempty'] = 'La contraseña está vacía.'; +$wb['destination_error_isemail'] = 'No se ha seleccionado el destino.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_get_list.lng new file mode 100644 index 0000000..3c133e7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Recoger el correo de servidores POP3 / IMAP externos'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_server_txt'] = 'Servidor externo'; +$wb['source_username_txt'] = 'Usuario'; +$wb['destination_txt'] = 'Destino'; +$wb['add_new_record_txt'] = 'Añadir nueva cuenta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter.lng new file mode 100644 index 0000000..e4e615c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Correo'; +$wb['spam_rewrite_score_int_txt'] = 'Puntuación de reescritura'; +$wb['spam_redirect_score_int_txt'] = 'Puntuación de redirección'; +$wb['spam_delete_score_int_txt'] = 'Borrar puntuación'; +$wb['spam_rewrite_subject_txt'] = 'Reescritura de asunto'; +$wb['spam_redirect_maildir_txt'] = 'Buzón de redirección'; +$wb['active_txt'] = 'Activar'; +$wb['spam_rewrite_txt'] = 'Reescribir el asunto del correo por encima de esta puntuación'; +$wb['spam_redirect_txt'] = 'Redirigir el correo por encima de esta puntuación'; +$wb['spam_delete_txt'] = 'Borrar el correo por encima de esta puntuación'; +$wb['disable_txt'] = 'Pista: para desactivar la opción de filtrado, ponga la puntuación a 0.00.'; +$wb['email_error_isemail'] = 'La dirección de correo no es válida'; +$wb['email_error_unique'] = 'Ya hay un registro de filtrado de spam para este correo'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purgar el buzón después.'; +$wb['days_txt'] = 'Días.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter_list.lng new file mode 100644 index 0000000..f2e2cb1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Filtro de spam'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'server_name'; +$wb['email_txt'] = 'Correo'; +$wb['add_new_record_txt'] = 'Añadir nuevo registro de filtro de spam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_transport.lng new file mode 100644 index 0000000..87904c3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['destination_txt'] = 'Destino'; +$wb['type_txt'] = 'Tipo'; +$wb['mx_txt'] = 'Sin búsqueda MX'; +$wb['sort_order_txt'] = 'Ordenado por'; +$wb['active_txt'] = 'Activar'; +$wb['limit_mailrouting_txt'] = 'Se ha alcanzado el número máximo de rutas para este nivel'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_transport_list.lng new file mode 100644 index 0000000..b23483f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Enrutado de correo avanzado'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'ID Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['transport_txt'] = 'Transporte'; +$wb['sort_order_txt'] = 'Ordenado por'; +$wb['add_new_record_txt'] = 'Añadir nuevo transporte'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_user.lng new file mode 100644 index 0000000..172b2bf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Filtro de correo personalizado'; +$wb['email_txt'] = 'Correo'; +$wb['cryptpwd_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['active_txt'] = 'Activar'; +$wb['email_error_isemail'] = 'La dirección de correo no es válida.'; +$wb['email_error_unique'] = 'Dirección de correo duplicada.'; +$wb['autoresponder_text_txt'] = 'Texto'; +$wb['autoresponder_txt'] = 'Autorespondedor'; +$wb['no_domain_perm'] = 'No tiene permiso para administrar este dominio.'; +$wb['error_no_pwd'] = 'La contraseña está vacía.'; +$wb['quota_error_isint'] = 'El tamaño del buzón de correo debe ser un número.'; +$wb['quota_txt'] = 'cuota en MB'; +$wb['server_id_txt'] = 'server_id'; +$wb['password_txt'] = 'contraseña'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Habilitar recepción'; +$wb['access_txt'] = 'Habilitar acceso'; +$wb['policy_txt'] = 'Filtro de spam'; +$wb['no_policy'] = '- no habilitado -'; +$wb['limit_mailbox_txt'] = 'Se ha alcanzado el número máximo de buzones de correo de su cuenta.'; +$wb['limit_mailquota_txt'] = 'Se ha alcanzado el espacio máximo para sus buzones de correo. El espacio máximo disponible en MB es'; +$wb['welcome_mail_subject'] = 'Bienvenido a su nueva cuenta de correo electrónico.'; +$wb['welcome_mail_message'] = 'Bienvenido a su nueva cuenta de correo electrónico. Fdo: Su administrador web.'; +$wb['disableimap_txt'] = 'Inhabilitar IMAP'; +$wb['disablepop3_txt'] = 'Inhabilitar POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'Ya existe un alias o reenvío con esta dirección de correo electrónico.'; +$wb['quota_error_value'] = 'Valor de cuota no válido. Los valores permitidos son: 0 para ilimitado o números > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter.lng new file mode 100644 index 0000000..743e53f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Nombre'; +$wb['action_txt'] = 'Acción'; +$wb['target_txt'] = 'Carpeta'; +$wb['active_txt'] = 'Activar'; +$wb['rulename_error_empty'] = 'El nombre está vacío.'; +$wb['searchterm_is_empty'] = 'El término de búsqueda está vacío.'; +$wb['source_txt'] = 'Origen'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter_list.lng new file mode 100644 index 0000000..31e0e98 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Nombre'; +$wb['add_new_record_txt'] = 'Añadir nuevo filtro'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = '¿Realmente desea eliminar el filtro de correo?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_list.lng new file mode 100644 index 0000000..163033d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Buzón'; +$wb['email_txt'] = 'Dirección de correo'; +$wb['autoresponder_txt'] = 'Autorespondedor'; +$wb['add_new_record_txt'] = 'Añadir nuevo buzón'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_stats_list.lng new file mode 100644 index 0000000..9837a3f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Tráfico de correo'; +$wb['email_txt'] = 'Correo'; +$wb['this_month_txt'] = 'Este mes'; +$wb['last_month_txt'] = 'Último mes'; +$wb['this_year_txt'] = 'Este año'; +$wb['last_year_txt'] = 'Último año'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist.lng new file mode 100644 index 0000000..1d681a7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Dirección de lista blanca'; +$wb['recipient_txt'] = 'Receptor'; +$wb['active_txt'] = 'Activar'; +$wb['source_error_notempty'] = 'La dirección está vacía'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'Se ha alcanzado el número máximo de filtros de correo para esta cuenta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist_list.lng new file mode 100644 index 0000000..233a25c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Lista blanca de correo'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Dirección en la lista blanca'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Receptor'; +$wb['add_new_record_txt'] = 'Añadir nuevo correo a la lista blanca'; +$wb['access_txt'] = 'acceso'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist.lng new file mode 100644 index 0000000..a411046 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Usuario'; +$wb['email_txt'] = 'Correo'; +$wb['priority_txt'] = 'Prioridad'; +$wb['active_txt'] = 'Activar'; +$wb['limit_spamfilter_wblist_txt'] = 'Se ha alcanzado el número máximo de registros de lista blanca o negra de su cuenta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..6285106 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Listas negras de spam'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridad'; +$wb['rid_txt'] = 'Usuario'; +$wb['email_txt'] = 'Correos en las listas negras'; +$wb['add_new_record_txt'] = 'Añadir registro de lista negra'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config.lng new file mode 100644 index 0000000..f2ba693 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Ruta de configuración de Getmail'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['netmask_txt'] = 'Máscara de red'; +$wb['gateway_txt'] = 'Pasarela'; +$wb['hostname_txt'] = 'Nombre de la máquina'; +$wb['nameservers_txt'] = 'Servidores de nombres'; +$wb['module_txt'] = 'Módulo del servidor'; +$wb['maildir_path_txt'] = 'Ruta de Maildir'; +$wb['homedir_path_txt'] = 'Ruta de Homedir'; +$wb['mailuser_uid_txt'] = 'UID usuario de correo'; +$wb['mailuser_gid_txt'] = 'GID usuario de correo'; +$wb['mailuser_name_txt'] = 'Nombre de usuario de correo'; +$wb['mailuser_group_txt'] = 'Grupo de usuario de correo'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Usuario Relayhost'; +$wb['relayhost_password_txt'] = 'Contraseña Relayhost'; +$wb['mailbox_size_limit_txt'] = 'Límite de tamaño de buzón'; +$wb['message_size_limit_txt'] = 'Límite de tamaño de mensaje'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config_list.lng new file mode 100644 index 0000000..a46257a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Configuración de servidor'; +$wb['server_name_txt'] = 'Servidor'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy.lng new file mode 100644 index 0000000..2932f56 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Nombre de política'; +$wb['virus_lover_txt'] = 'Le gustan los virus'; +$wb['spam_lover_txt'] = 'Le gusta el spam'; +$wb['banned_files_lover_txt'] = 'No se admiten los amantes de los virus'; +$wb['bad_header_lover_txt'] = 'Le gustan las cabeceras malas'; +$wb['bypass_virus_checks_txt'] = 'Saltarse la comprobación de virus'; +$wb['bypass_banned_checks_txt'] = 'Saltarse la comprobación de prohibidos'; +$wb['bypass_header_checks_txt'] = 'Saltarse la comprobación de cabeceras'; +$wb['virus_quarantine_to_txt'] = 'Reenviar virus al correo'; +$wb['spam_quarantine_to_txt'] = 'Reenviar spam al correo'; +$wb['banned_quarantine_to_txt'] = 'Reenviar correo prohibido'; +$wb['bad_header_quarantine_to_txt'] = 'Reenviar cabeceras malas al correo'; +$wb['clean_quarantine_to_txt'] = 'Reenviar correo limpio'; +$wb['other_quarantine_to_txt'] = 'Reenviar otros al correo'; +$wb['spam_tag_level_txt'] = 'Nivel de etiquetado de spam'; +$wb['spam_tag2_level_txt'] = 'Nivel de etiquetado 2 de spam'; +$wb['spam_kill_level_txt'] = 'Nivel para matar el spam'; +$wb['spam_dsn_cutoff_level_txt'] = 'Nivel de dsn cutoff de spam'; +$wb['spam_quarantine_cutoff_level_txt'] = 'Nivel de cuarentena cutoff de spam'; +$wb['spam_modifies_subj_txt'] = 'El spam modifica el asunto'; +$wb['spam_subject_tag_txt'] = 'Etiqueta de asunto de spam'; +$wb['spam_subject_tag2_txt'] = 'Etiqueta 2 de asunto de spam'; +$wb['addr_extension_virus_txt'] = 'Añadir extensión Virus'; +$wb['addr_extension_spam_txt'] = 'Añadir extensión Spam'; +$wb['addr_extension_banned_txt'] = 'Añadir extensión Prohibido (banned)'; +$wb['addr_extension_bad_header_txt'] = 'Añadir extensión Cabecera mala (bad header)'; +$wb['warnvirusrecip_txt'] = 'Alertar al receptor del virus'; +$wb['warnbannedrecip_txt'] = 'Alertar al receptor del prohibido'; +$wb['warnbadhrecip_txt'] = 'Alertar al receptor de las cabeceras malas'; +$wb['newvirus_admin_txt'] = 'Nuevo administrador de virus'; +$wb['virus_admin_txt'] = 'Administrador de virus'; +$wb['banned_admin_txt'] = 'Administrador de prohibidos'; +$wb['bad_header_admin_txt'] = 'Administrador de cabeceras malas'; +$wb['spam_admin_txt'] = 'Administrador de spam'; +$wb['message_size_limit_txt'] = 'Límite de tamaño de mensaje'; +$wb['banned_rulenames_txt'] = 'Nombre de órdenes de prohibido'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy_list.lng new file mode 100644 index 0000000..ce196bb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Política de filtrado de spam'; +$wb['policy_name_txt'] = 'Nombre'; +$wb['virus_lover_txt'] = 'Le gustan los virus'; +$wb['spam_lover_txt'] = 'Le gusta el spam'; +$wb['banned_files_lover_txt'] = 'Prohibir los coleccionistas de virus'; +$wb['bad_header_lover_txt'] = 'Le gustan las cabeceras malas'; +$wb['add_new_record_txt'] = 'Añadir nuevo filtro de spam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users.lng new file mode 100644 index 0000000..361c2fe --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'ID Servidor'; +$wb['priority_txt'] = 'Prioridad'; +$wb['policy_id_txt'] = 'ID Política'; +$wb['email_txt'] = 'Correo'; +$wb['fullname_txt'] = 'Nombre'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users_list.lng new file mode 100644 index 0000000..60d8388 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Usuarios de filtros de spam'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridad'; +$wb['policy_id_txt'] = 'Política'; +$wb['fullname_txt'] = 'Nombre'; +$wb['email_txt'] = 'Correo'; +$wb['add_new_record_txt'] = 'Añadir nuevo usuario de filtro de spam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist.lng new file mode 100644 index 0000000..a411046 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Usuario'; +$wb['email_txt'] = 'Correo'; +$wb['priority_txt'] = 'Prioridad'; +$wb['active_txt'] = 'Activar'; +$wb['limit_spamfilter_wblist_txt'] = 'Se ha alcanzado el número máximo de registros de lista blanca o negra de su cuenta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..e1c7f66 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/es_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Lista blanca de filtro de spam'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridad'; +$wb['rid_txt'] = 'Usuario'; +$wb['email_txt'] = 'Dirección de correo en la lista blanca'; +$wb['add_new_record_txt'] = 'Añadir nuevo registro'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi.lng b/interface/ispconfig/interface/mail/lib/lang/fi.lng new file mode 100644 index 0000000..8409366 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Sähköpostialias'; +$wb['Email Blacklist'] = 'Sähköpostiosoitteiden estolista'; +$wb['Blacklist'] = 'Estolista'; +$wb['Mail Content Filter'] = 'Sähköpostin sisällön suodatin'; +$wb['Filter'] = 'Suodatin'; +$wb['Mail Domain'] = 'Postiverkkotunnus'; +$wb['Domain'] = 'Verkkotunnus'; +$wb['Email Catchall'] = 'Catchall-osoite'; +$wb['Email Forward'] = 'Edelleenohjaus-osoite'; +$wb['Get Email'] = 'Hae sähköposti'; +$wb['Spamfilter'] = 'Roskapostisuodatin'; +$wb['Email Routing'] = 'Sähköpostin reititys'; +$wb['Email transport'] = 'Sähköpostireitti'; +$wb['Mailbox'] = 'Postilaatikko'; +$wb['Autoresponder'] = 'Lomavastaaja'; +$wb['Mail Filter'] = 'Postisuodatin'; +$wb['Custom Rules'] = 'Omat säännöt'; +$wb['Email filter'] = 'Osoitesuodatin'; +$wb['Email Whitelist'] = 'Sähköpostin luotettujen osoitteiden lista'; +$wb['Whitelist'] = 'Luotettujen osoitteiden lista'; +$wb['Spamfilter blacklist'] = 'Roskapostisuodattimen estolista'; +$wb['Spamfilter Config'] = 'Roskapostisuodattimen asetukset'; +$wb['Spamfilter policy'] = 'Roskapostisuodattimen kohtelutapa'; +$wb['Policy'] = 'Kohtelutapa'; +$wb['Quarantine'] = 'Karanteeni'; +$wb['Tag-Level'] = 'Merkkaustaso'; +$wb['Other'] = 'Muu'; +$wb['Spamfilter users'] = 'Roskapostisuodattimen käyttäjät'; +$wb['Users'] = 'Käyttäjät'; +$wb['Spamfilter Whitelist'] = 'Roskapostisuodattimen luotetut osoitteet'; +$wb['Email'] = 'Sähköpostiosoite'; +$wb['Email Mailbox'] = 'Sähköpostin laatikko'; +$wb['Email Accounts'] = 'Sähköpostitilit'; +$wb['User / Domain'] = 'Käyttäjä / Verkkotunnus'; +$wb['Server Settings'] = 'Palvelimen asetukset'; +$wb['Fetchmail'] = 'Sähköpostin nouto'; +$wb['Mailbox traffic'] = 'Postilaatikon liikenne'; +$wb['Statistics'] = 'Tilastot'; +$wb['Postfix Whitelist'] = 'Postipalvelimen sallittu-lista'; +$wb['Postfix Blacklist'] = 'Postipalvelimen estetty-lista'; +$wb['Content Filter'] = 'Sisältösuodatin'; +$wb['Global Filters'] = 'Yleiset suodattimet'; +$wb['Server'] = 'Palvelin'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias.lng new file mode 100644 index 0000000..135c179 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Sähköpostialias'; +$wb['destination_txt'] = 'Kohdeosoite'; +$wb['active_txt'] = 'Käytössä'; +$wb['email_error_isemail'] = 'Sähköpostiosoite on virheellinen.'; +$wb['email_error_unique'] = 'Tämä aliasosoite on jo olemassa'; +$wb['no_domain_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia tähän verkkotunnukseen.'; +$wb['destination_error_isemail'] = 'Kohteena oleva sähköpostiosoite on vääränlainen.'; +$wb['limit_mailalias_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä aliasosoitteita.'; +$wb['duplicate_mailbox_txt'] = 'Aliastunnus on jo olemassa tälle osoitteelle.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias_list.lng new file mode 100644 index 0000000..37dad6e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sähköpostiosoitteen aliastunnus'; +$wb['active_txt'] = 'Käytössä'; +$wb['source_txt'] = 'Lähde'; +$wb['destination_txt'] = 'Kohde'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää uusi aliastunnus'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist.lng new file mode 100644 index 0000000..66cb930 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['source_txt'] = 'Estetty osoite'; +$wb['recipient_txt'] = 'Vastaanottajan osoite'; +$wb['active_txt'] = 'Käytössä'; +$wb['source_error_notempty'] = 'Estetty osoite on tyhjä'; +$wb['type_txt'] = 'Tyyppi'; +$wb['limit_mailfilter_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä suodattimia.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist_list.lng new file mode 100644 index 0000000..2d792ff --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Sähköpostiosoitteiden estolista'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['source_txt'] = 'Estetty sähköpostiosoite'; +$wb['type_txt'] = 'Tyyppi'; +$wb['recipient_txt'] = 'Vastaanottaja'; +$wb['add_new_record_txt'] = 'Lisä uusi osoite estolistalle'; +$wb['access_txt'] = 'Yhteys'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter.lng new file mode 100644 index 0000000..9cac6d3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['type_txt'] = 'Suodatin'; +$wb['pattern_txt'] = 'Etsintäkuvio (RegExp)'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Toiminto'; +$wb['active_txt'] = 'Käytössä'; +$wb['pattern_error_empty'] = 'Etsintäkuvio on tyhjä.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter_list.lng new file mode 100644 index 0000000..ccd1b89 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sähköpostipalvelimen otsikko- ja viestisuodattimet'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['pattern_txt'] = 'Suodatuskuvio (RegExp)'; +$wb['action_txt'] = 'Toiminto'; +$wb['add_new_record_txt'] = 'Lisää uusi suodatussääntö'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain.lng new file mode 100644 index 0000000..fc92040 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Postiverkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['active_txt'] = 'Käytössä'; +$wb['domain_error_empty'] = 'Postiverkkotunnus on tyhjä.'; +$wb['domain_error_unique'] = 'Postiverkkotunnus on jo olemassa.'; +$wb['domain_error_regex'] = 'Vääränlainen postiverkkotunnus.'; +$wb['client_txt'] = 'Asiakastunnus'; +$wb['limit_maildomain_txt'] = 'Käyttäjatunnuksella on jo sallittu määrä postiverkkotunnuksia.'; +$wb['policy_txt'] = 'Roskapostisuodatin'; +$wb['no_policy'] = '- ei käytössä -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall.lng new file mode 100644 index 0000000..802f83d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['destination_txt'] = 'Kohde'; +$wb['active_txt'] = 'Käytössä'; +$wb['domain_error_unique'] = 'Tällä verkkotunnuksella on jo käytössä CatchAll-osoite.'; +$wb['no_domain_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia tähän verkkotunnukseen.'; +$wb['domain_error_regex'] = 'Vääränlainen verkkotunnus tai se sisältää kiellettyjä merkkejä.'; +$wb['limit_mailcatchall_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä CatchAll-tunnuksia.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall_list.lng new file mode 100644 index 0000000..73f8c75 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Sähköpostin CatchAll'; +$wb['active_txt'] = 'Käytössä'; +$wb['source_txt'] = 'Verkkotunnus'; +$wb['destination_txt'] = 'Kohdeosoite'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi CatchAll-osoite'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_list.lng new file mode 100644 index 0000000..e8c4d28 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Postiverkkotunnus'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Postiverkkotunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi postiverkkotunnus.'; +$wb['active_txt'] = 'Käytössä'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward.lng new file mode 100644 index 0000000..2368dde --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Sähköposti'; +$wb['destination_txt'] = 'Vastaanottajan sähköposti'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_mailforward_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä edelleenlähetysosoitteita.'; +$wb['duplicate_mailbox_txt'] = 'Edelleenlähetyssääntö osoitteelle on jo olemassa.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward_list.lng new file mode 100644 index 0000000..15aab44 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postin edelleenlähetys'; +$wb['active_txt'] = 'Käytössä'; +$wb['source_txt'] = 'Mistä:'; +$wb['destination_txt'] = 'Minne:'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää uusi edelleenlähetysosoite'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_get.lng new file mode 100644 index 0000000..5db3b0c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['type_txt'] = 'Palvelimen tyyppi'; +$wb['source_server_txt'] = 'Pop3/Imap-palvelin'; +$wb['source_username_txt'] = 'Käyttäjätunnus'; +$wb['source_password_txt'] = 'Salasana'; +$wb['source_delete_txt'] = 'Poista sähköpostit noudettavasta laatikosta noudon jälkeen'; +$wb['destination_txt'] = 'Kohdepostilaatikko'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_fetchmail_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä noudettavia osoitteita.'; +$wb['source_server_error_isempty'] = 'Palvelin-kenttä on tyhjä.'; +$wb['source_username_error_isempty'] = 'Käyttäjänimi on tyjä.'; +$wb['source_password_error_isempty'] = 'Salasana-kenttä on tyhjä.'; +$wb['destination_error_isemail'] = 'Ei kohdetta valittuna.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_get_list.lng new file mode 100644 index 0000000..be7a29f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Nouda sähköposteja ulkoisilta POP3 / IMAP palvelimilta'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['source_server_txt'] = 'Noudettavan postilaatikon palvelin'; +$wb['source_username_txt'] = 'Käyttäjätunnus'; +$wb['destination_txt'] = 'Kohdepostilaatikko'; +$wb['add_new_record_txt'] = 'Lisää uusi tili'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter.lng new file mode 100644 index 0000000..a833eca --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['spam_rewrite_score_int_txt'] = 'Merkintäpisteet'; +$wb['spam_redirect_score_int_txt'] = 'Edelleenohjauspisteet'; +$wb['spam_delete_score_int_txt'] = 'Poistopisteet'; +$wb['spam_rewrite_subject_txt'] = 'Roskapostin merkintä'; +$wb['spam_redirect_maildir_txt'] = 'Edelleenohjauksen postilaatikko'; +$wb['active_txt'] = 'Käytössä'; +$wb['spam_rewrite_txt'] = 'Merkitse roskapostiksi tämän pistearvon ylittävät sähköpostit.'; +$wb['spam_redirect_txt'] = 'Edelleenohjaa tämän pistearvon ylittävät postit valittuun sähköpostiosoitteeseen.'; +$wb['spam_delete_txt'] = 'Poista tämän pistearvon ylittävät sähköpostit.'; +$wb['disable_txt'] = 'Vihje: poistaaksesi suodatuksen käytöstä, aseta pisteiksi 0.00.'; +$wb['email_error_isemail'] = 'Sähköpostiosoite on virheellinen.'; +$wb['email_error_unique'] = 'Tälle sähköpostiosoitteelle on jo olemassa suodatussääntö.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Poista edelleenohjauslaatikosta'; +$wb['days_txt'] = 'päivää vanhemmat viestit.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter_list.lng new file mode 100644 index 0000000..41f6e3b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodatin'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelimen ID'; +$wb['server_name_txt'] = 'Palvelimen nimi'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää osoite estolistalle'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport.lng new file mode 100644 index 0000000..4b4ad89 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['destination_txt'] = 'Kohde'; +$wb['type_txt'] = 'Tyyppi'; +$wb['mx_txt'] = 'Ei MX-tietoa'; +$wb['sort_order_txt'] = 'Järjestä..'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_mailrouting_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä sähköpostireitityksiä.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport_list.lng new file mode 100644 index 0000000..e91c76e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Edistynyt sähköpostireititys'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['transport_txt'] = 'Reitti'; +$wb['sort_order_txt'] = 'Järjestä..'; +$wb['add_new_record_txt'] = 'Lisää uusi reitti'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user.lng new file mode 100644 index 0000000..71e7440 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Omat sähköpostisuodattimet'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['cryptpwd_txt'] = 'Salasana'; +$wb['active_txt'] = 'Käytössä'; +$wb['email_error_isemail'] = 'Sähköpostiosoite on väärin.'; +$wb['email_error_unique'] = 'Sähköpostiosoite on jo olemassa.'; +$wb['autoresponder_text_txt'] = 'Vastausviesti'; +$wb['autoresponder_txt'] = 'Lomavastaaja'; +$wb['no_domain_perm'] = 'Käyttäjätunnuksella ei ole oikeuksia tähän verkkotunnukeen.'; +$wb['error_no_pwd'] = 'Salasana on tyhjä.'; +$wb['quota_error_isint'] = 'Postilaatikon kokorajan pitää olla numero.'; +$wb['quota_txt'] = 'Postilaatikon koko'; +$wb['server_id_txt'] = 'Palvelimen tunnus'; +$wb['password_txt'] = 'Salasana'; +$wb['maildir_txt'] = 'Postikansio'; +$wb['postfix_txt'] = 'Salli vastaanotto'; +$wb['access_txt'] = 'Salli yhteys'; +$wb['policy_txt'] = 'Roskapostisuodatin'; +$wb['no_policy'] = '- ei käytössä -'; +$wb['limit_mailbox_txt'] = 'Tilisi sallittu postilaatikoiden määrä on ylitetty.'; +$wb['limit_mailquota_txt'] = 'Tilisi sallittu postilaatikoiden koko on ylitetty. Vapaa tila megatavuina on'; +$wb['welcome_mail_fromname_txt'] = 'Antenniserveri'; +$wb['welcome_mail_fromemail_txt'] = 'postmaster@anteniserveri.fi'; +$wb['welcome_mail_subject'] = 'Tervetuloa käyttämään uutta sähköpotitiliäsi.'; +$wb['welcome_mail_message'] = 'Tervetuloa käyttämään uutta sähköpotitiliäsi toivottaa Postmaster'; +$wb['disableimap_txt'] = 'Estä IMAP'; +$wb['disablepop3_txt'] = 'Estä POP3'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['duplicate_alias_or_forward_txt'] = 'Alias- tai edelleenlähetys tälle osoitteelle on jo olemassa.'; +$wb['quota_error_value'] = 'Väärä quota-arvo. Sallittuja ovat numerot > 1 tai 0 rajoittamattomalle.'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter.lng new file mode 100644 index 0000000..a9f7a2b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Säännön nimi'; +$wb['action_txt'] = 'Toiminto'; +$wb['target_txt'] = 'Kansio'; +$wb['active_txt'] = 'Käytössä'; +$wb['rulename_error_empty'] = 'Säännön nimi on tyhjä.'; +$wb['searchterm_is_empty'] = 'Hakusana on tyhjä.'; +$wb['source_txt'] = 'Lähde'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter_list.lng new file mode 100644 index 0000000..ed6639a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Suodatussäännön nimi'; +$wb['add_new_record_txt'] = 'Lisää uusi suodatussääntö'; +$wb['page_txt'] = 'Sivu'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = 'Tahdotko varmasti poistaa tämän suodattimen?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_list.lng new file mode 100644 index 0000000..f37a7b8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Postilaatikko'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['autoresponder_txt'] = 'Lomavastaaja'; +$wb['add_new_record_txt'] = 'Lisää uusi postilaatikko'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_stats_list.lng new file mode 100644 index 0000000..5f5b039 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sähköpostiliikenne'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['this_month_txt'] = 'Tässä kuussa'; +$wb['last_month_txt'] = 'Viime kuussa'; +$wb['this_year_txt'] = 'Tänä vuonna'; +$wb['last_year_txt'] = 'Viime vuonna'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist.lng new file mode 100644 index 0000000..abd8e85 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['source_txt'] = 'Luotettu sähköpostiosoite'; +$wb['recipient_txt'] = 'Vastaanottaja'; +$wb['active_txt'] = 'Käytössä'; +$wb['source_error_notempty'] = 'Osoite on tyhjä'; +$wb['type_txt'] = 'Tyyppi'; +$wb['limit_mailfilter_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä suodattimia.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist_list.lng new file mode 100644 index 0000000..d6b1349 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodattimen luotettujen osoitteiden luettelo'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['source_txt'] = 'Luotettu osoite'; +$wb['type_txt'] = 'Tyyppi'; +$wb['recipient_txt'] = 'Vastaanottaja'; +$wb['add_new_record_txt'] = 'Lisää uusi luotettu osoite'; +$wb['access_txt'] = 'Yhteys'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist.lng new file mode 100644 index 0000000..287d968 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['wb_txt'] = 'Estolista'; +$wb['rid_txt'] = 'Käyttäjätunnus'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_spamfilter_wblist_txt'] = 'Käyttäjätunnuksesi sallima määrä estettyjä tai sallittuja osoitteita on saavutettu.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..d448876 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodattimen estolista'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelimen tunnus'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['rid_txt'] = 'Käyttäjätunnus'; +$wb['email_txt'] = 'Estettävä sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää osoite estolistalle'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config.lng new file mode 100644 index 0000000..7447b48 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail-asetuspolku'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['netmask_txt'] = 'Verkkopeite'; +$wb['gateway_txt'] = 'Yhdyskäytävä'; +$wb['hostname_txt'] = 'Isäntänimi'; +$wb['nameservers_txt'] = 'Nimipalvelimet'; +$wb['module_txt'] = 'Palvelimen moduuli'; +$wb['maildir_path_txt'] = 'Maildir-polku'; +$wb['homedir_path_txt'] = 'Kotikansion polku'; +$wb['mailuser_uid_txt'] = 'Käyttäjätunnus'; +$wb['mailuser_gid_txt'] = 'Käyttäjäryhmä'; +$wb['mailuser_name_txt'] = 'Sähköpostitunnus'; +$wb['mailuser_group_txt'] = 'Sähköpostiryhmä'; +$wb['relayhost_txt'] = 'Edelleenlähetyspalvelin'; +$wb['relayhost_user_txt'] = 'Käyttäjätunnus'; +$wb['relayhost_password_txt'] = 'Salasana'; +$wb['mailbox_size_limit_txt'] = 'Postilaatikon koko'; +$wb['message_size_limit_txt'] = 'Viestien enimmäiskoko'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config_list.lng new file mode 100644 index 0000000..aee0c81 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Palvelimen asetukset'; +$wb['server_name_txt'] = 'Palvelin'; +$wb['server_id_txt'] = 'Palvelimen tunnus'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy.lng new file mode 100644 index 0000000..8f61ba4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Kohtelutavan nimi'; +$wb['virus_lover_txt'] = 'Pitää viruksista'; +$wb['spam_lover_txt'] = 'Pitää roskapostista'; +$wb['banned_files_lover_txt'] = 'Pitää estetyistä tiedostoista'; +$wb['bad_header_lover_txt'] = 'Pitää estetyistä otsikoista'; +$wb['bypass_virus_checks_txt'] = 'Ohita virustarkistukset'; +$wb['bypass_banned_checks_txt'] = 'Ohita tiedostopäätteet'; +$wb['bypass_header_checks_txt'] = 'Ohita otsikkotarkistukset'; +$wb['virus_quarantine_to_txt'] = 'Välitä virus sähköpostiin'; +$wb['spam_quarantine_to_txt'] = 'Välitä roskaposti sähköpostiin'; +$wb['banned_quarantine_to_txt'] = 'Välitä karanteeni sähköpostiin'; +$wb['bad_header_quarantine_to_txt'] = 'Välitä otsikkovirhe sähköpostiin'; +$wb['clean_quarantine_to_txt'] = 'Välitä puhditettu sähköpostiin'; +$wb['other_quarantine_to_txt'] = 'Välitä muut sähköpostiin'; +$wb['spam_tag_level_txt'] = 'Roskapostin merkkaustaso'; +$wb['spam_tag2_level_txt'] = 'Roskapostin 2. merkkaustaso'; +$wb['spam_kill_level_txt'] = 'Roskapostin estotaso'; +$wb['spam_dsn_cutoff_level_txt'] = 'Roskapostin poistotaso'; +$wb['spam_quarantine_cutoff_level_txt'] = 'Roskapostin karanteenin poistotaso'; +$wb['spam_modifies_subj_txt'] = 'Roskaposti muuttaa otsikkoa'; +$wb['spam_subject_tag_txt'] = 'Roskapostin otsikkomerkintä'; +$wb['spam_subject_tag2_txt'] = 'Roskapostin 2. otsikkomerkintä'; +$wb['addr_extension_virus_txt'] = 'Virusviestien merkkaus'; +$wb['addr_extension_spam_txt'] = 'Roskapostien merkkaus'; +$wb['addr_extension_banned_txt'] = 'Estettyjen viestien merkkaus'; +$wb['addr_extension_bad_header_txt'] = 'Otsikkotietovirheiden merkkaus'; +$wb['warnvirusrecip_txt'] = 'Varoita viruksen vastaanottajaa.'; +$wb['warnbannedrecip_txt'] = 'Varoita estetyn vastaanottajaa.'; +$wb['warnbadhrecip_txt'] = 'Varoita otsikkovirheellisen vastaanottajaa.'; +$wb['newvirus_admin_txt'] = 'Virustunnistusten ylläpitäjä'; +$wb['virus_admin_txt'] = 'Virustunnisteiden ylläpitäjä'; +$wb['banned_admin_txt'] = 'Estolistojen ylläpitäjä'; +$wb['bad_header_admin_txt'] = 'Otsikkovirhetunnisteiden ylläpitäjä'; +$wb['spam_admin_txt'] = 'Roskapostitunnisteiden ylläpitäjä'; +$wb['message_size_limit_txt'] = 'Viestin kokoraja'; +$wb['banned_rulenames_txt'] = 'Estojen sääntönimet'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy_list.lng new file mode 100644 index 0000000..3074d45 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodattimen kohtelutapa'; +$wb['policy_name_txt'] = 'Kohtelutavan nimi'; +$wb['virus_lover_txt'] = 'Pitää viruksista'; +$wb['spam_lover_txt'] = 'Pitää roskapostista'; +$wb['banned_files_lover_txt'] = 'Pitää estetyistä tiedostoista'; +$wb['bad_header_lover_txt'] = 'Pitää osikkovirheistä'; +$wb['add_new_record_txt'] = 'Lisää kohtelutapa'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users.lng new file mode 100644 index 0000000..d960f5c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['policy_id_txt'] = 'Kohtelutapa'; +$wb['email_txt'] = 'Sähköpostiosoite (RegExp)'; +$wb['fullname_txt'] = 'Koko nimi'; +$wb['local_txt'] = 'Paikallinen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users_list.lng new file mode 100644 index 0000000..385d617 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodattimen käyttäjät'; +$wb['local_txt'] = 'Paikallinen'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['policy_id_txt'] = 'Kohtelutapa'; +$wb['fullname_txt'] = 'Koko nimi'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['add_new_record_txt'] = 'Lisää Roskapostisuodattimen käyttäjä'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist.lng new file mode 100644 index 0000000..9dee918 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Käyttäjä'; +$wb['email_txt'] = 'Sähköpostiosoite'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_spamfilter_wblist_txt'] = 'Käyttäjätunnuksesi sallima määrä estettyjä tai sallittuja osoitteita on saavutettu.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..a3f00fc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fi_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Roskapostisuodattimen luotettujen osoitteiden luettelo'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['priority_txt'] = 'Tärkeysjärjestys'; +$wb['rid_txt'] = 'Käyttäjä'; +$wb['email_txt'] = 'Luotettu osoite'; +$wb['add_new_record_txt'] = 'Lisää uusi luotettu osoite'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr.lng b/interface/ispconfig/interface/mail/lib/lang/fr.lng new file mode 100644 index 0000000..be44dda --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Alias demails'; +$wb['Email Blacklist'] = 'Liste noire demails'; +$wb['Blacklist'] = 'Liste noire'; +$wb['Mail Content Filter'] = 'Filtre de contenu des mails'; +$wb['Filter'] = 'Filtre'; +$wb['Mail Domain'] = 'Domaine Mail'; +$wb['Domain'] = 'Domaine'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email de suivi'; +$wb['Get Email'] = 'Obtenir un Email'; +$wb['Spamfilter'] = 'Filtre à spam'; +$wb['Email Routing'] = 'Routage demails'; +$wb['Email transport'] = 'Transport demails'; +$wb['Mailbox'] = 'Boîte mails'; +$wb['Autoresponder'] = 'Auto répondeur'; +$wb['Mail Filter'] = 'Filtre mails'; +$wb['Custom Rules'] = 'Règles personalisées'; +$wb['Email filter'] = 'Filtre mails'; +$wb['Email Whitelist'] = 'Liste blanche demails'; +$wb['Whitelist'] = 'Liste blanche'; +$wb['Spamfilter blacklist'] = 'Liste noire du filtre à spam'; +$wb['Spamfilter Config'] = 'Configuration du filtre à spam'; +$wb['Server'] = 'Serveur'; +$wb['Spamfilter policy'] = 'Règles du filtre à spam'; +$wb['Policy'] = 'Règles'; +$wb['Quarantine'] = 'Quarantaine'; +$wb['Tag-Level'] = 'Niveau du tag'; +$wb['Other'] = 'Autre'; +$wb['Spamfilter users'] = 'Utilisateurs du filtre à spam'; +$wb['Users'] = 'Utilisateurs'; +$wb['Spamfilter Whitelist'] = 'Liste blanche du filtre à spam'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Boîte à mails'; +$wb['Email Accounts'] = 'Comptes mails'; +$wb['User / Domain'] = 'Utilisateur / Domaine'; +$wb['Server Settings'] = 'Paramètres du serveur'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Traffic de la boîte à mails'; +$wb['Statistics'] = 'Statistiques'; +$wb['Postfix Whitelist'] = 'Liste blanche de Postfix'; +$wb['Postfix Blacklist'] = 'Liste noire de Postfix'; +$wb['Content Filter'] = 'Filtre de contenu'; +$wb['Global Filters'] = 'Filtres globaux'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias.lng new file mode 100644 index 0000000..8c4921b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Actif'; +$wb['email_error_isemail'] = 'Ladresse email est invalide.'; +$wb['email_error_unique'] = 'Dupliquer ladresse e-mail.'; +$wb['no_domain_perm'] = 'Vous navez pas de permissions pour ce domaine.'; +$wb['destination_error_isemail'] = 'Ladresse email de destination est invalide.'; +$wb['limit_mailalias_txt'] = 'Le nombre max. dalias demails pour votre compte a été atteint.'; +$wb['duplicate_mailbox_txt'] = 'Il y a déja une boîte mail avec cette adresse email'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias_list.lng new file mode 100644 index 0000000..ae4947a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Alias demail'; +$wb['active_txt'] = 'Actif'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel alias demail'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist.lng new file mode 100644 index 0000000..ca715af --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['source_txt'] = 'Adresse de la liste noire'; +$wb['recipient_txt'] = 'Bénéficiaire'; +$wb['active_txt'] = 'Actif'; +$wb['source_error_notempty'] = 'Ladresse est vide.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'Le nombre max. de filtres demails pour votre compte a été atteint.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist_list.lng new file mode 100644 index 0000000..18ae28f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Liste noire demails'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['source_txt'] = 'Adresse de la liste noire'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Bénéficiaire'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel enregistrement'; +$wb['access_txt'] = 'accès'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter.lng new file mode 100644 index 0000000..5aa0caa --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['type_txt'] = 'Filtre'; +$wb['pattern_txt'] = 'Schéma Regexp'; +$wb['data_txt'] = 'Données'; +$wb['action_txt'] = 'Action'; +$wb['active_txt'] = 'Actif'; +$wb['pattern_error_empty'] = 'Le schéma est vide.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter_list.lng new file mode 100644 index 0000000..bee77a2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Entête de Postfix'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Schéma'; +$wb['action_txt'] = 'Action'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau filtre de contenu'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain.lng new file mode 100644 index 0000000..da7e983 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['type_txt'] = 'Type'; +$wb['active_txt'] = 'Actif'; +$wb['domain_error_empty'] = 'Le domaine est vide.'; +$wb['domain_error_unique'] = 'Dupliquer le domaine.'; +$wb['domain_error_regex'] = 'Le domaine est invalide.'; +$wb['client_txt'] = 'Client'; +$wb['limit_maildomain_txt'] = 'Le nombre max. de domaines demails pour votre compte a été atteint.'; +$wb['policy_txt'] = 'Filtre à spam'; +$wb['no_policy'] = '- non activé -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall.lng new file mode 100644 index 0000000..49c9fab --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domaine'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Actif'; +$wb['domain_error_unique'] = 'Il y a déja un enregistrement Catchall pour ce domaine.'; +$wb['no_domain_perm'] = 'Vous navez pas de permissions pour ce domaine.'; +$wb['domain_error_regex'] = 'Nom de domaine invalide, ou contient des caractères invalides.'; +$wb['limit_mailcatchall_txt'] = 'Le nombre max. de comptes Catchall pour votre compte a été atteint.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall_list.lng new file mode 100644 index 0000000..44542bf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Actif'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Adresse email de destination'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_list.lng new file mode 100644 index 0000000..0d89f25 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domaine E-mail'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau domaine'; +$wb['active_txt'] = 'Actif'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward.lng new file mode 100644 index 0000000..dc04099 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Email de destination'; +$wb['active_txt'] = 'Actif'; +$wb['limit_mailforward_txt'] = 'Le nombre max. demails de suivi pour votre compte a été atteint.'; +$wb['duplicate_mailbox_txt'] = 'Il y a déja une bôite à mails avec cette adresse email'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward_list.lng new file mode 100644 index 0000000..d8d5db2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email de suivi'; +$wb['active_txt'] = 'Actif'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau email de suivi'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_get.lng new file mode 100644 index 0000000..9aeb863 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['type_txt'] = 'Type'; +$wb['source_server_txt'] = 'Serveur Pop3/Imap'; +$wb['source_username_txt'] = 'Utilisateur'; +$wb['source_password_txt'] = 'Mot de passe'; +$wb['source_delete_txt'] = 'Supprimer les emails après récupération'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Actif'; +$wb['limit_fetchmail_txt'] = 'Le nombre max. denregistrements Fetchmail pour votre compte a été atteint.'; +$wb['source_server_error_isempty'] = 'Le serveur est vide.'; +$wb['source_username_error_isempty'] = 'Lutilisateur est vide.'; +$wb['source_password_error_isempty'] = 'Le mot de passe est vide.'; +$wb['destination_error_isemail'] = 'Pas de destination sélectionnée.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_get_list.lng new file mode 100644 index 0000000..86fb4d1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Récuprer les emails depuis des serveurs POP3/IMAP externes'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['source_server_txt'] = 'Serveur externe'; +$wb['source_username_txt'] = 'Utilisateur'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau compte'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter.lng new file mode 100644 index 0000000..f93f485 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Réécrire le score'; +$wb['spam_redirect_score_int_txt'] = 'Réorienter le score'; +$wb['spam_delete_score_int_txt'] = 'Supprimer le score'; +$wb['spam_rewrite_subject_txt'] = 'Réécrire le sujet'; +$wb['spam_redirect_maildir_txt'] = 'Réorienter la boîte mail'; +$wb['active_txt'] = 'Actif'; +$wb['spam_rewrite_txt'] = 'Réécrire lobjet de lemail ci-dessus.'; +$wb['spam_redirect_txt'] = 'Réorienter lemail à la boîte mail sélectionnée ci-dessus.'; +$wb['spam_delete_txt'] = 'Supprimer lemail ci-dessus.'; +$wb['disable_txt'] = 'Astuce: Pour désactiver une option de filtrage, mettez le score à 0.00.'; +$wb['email_error_isemail'] = 'Ladresse email est invalide.'; +$wb['email_error_unique'] = 'Il y a déja un enregistrement de filtre à spam avec cette adresse email.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purger le répertoire de mails après'; +$wb['days_txt'] = 'Jours.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter_list.lng new file mode 100644 index 0000000..1a7c0fb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Filtre à spam'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['server_name_txt'] = 'Nom du serveur'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel enregistrement'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport.lng new file mode 100644 index 0000000..7fcdca0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['destination_txt'] = 'Destination'; +$wb['type_txt'] = 'Type'; +$wb['mx_txt'] = 'Pas de résolution MX'; +$wb['sort_order_txt'] = 'Trier par'; +$wb['active_txt'] = 'Actif'; +$wb['limit_mailrouting_txt'] = 'Le nombre max. de routes pour votre compte a été atteint.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport_list.lng new file mode 100644 index 0000000..4430c77 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Routage demail avancé'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['transport_txt'] = 'Déplacement'; +$wb['sort_order_txt'] = 'Trier par'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau déplacement'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user.lng new file mode 100644 index 0000000..c7a818b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user.lng @@ -0,0 +1,41 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Filtre à mails personalisés'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['active_txt'] = 'Actif'; +$wb['email_error_isemail'] = 'Ladresse email est invalide.'; +$wb['email_error_unique'] = 'Dupliquer ladresse email.'; +$wb['autoresponder_text_txt'] = 'Texte'; +$wb['autoresponder_txt'] = 'Auto répondeur'; +$wb['no_domain_perm'] = 'Vous navez pas de permissions sur ce domaine.'; +$wb['error_no_pwd'] = 'Le mot de passe est vide.'; +$wb['quota_error_isint'] = 'La taille de la bôite à mail doit être en MB.'; +$wb['quota_txt'] = 'quota en MB'; +$wb['server_id_txt'] = 'ID Serveur'; +$wb['password_txt'] = 'mot de passe'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Activer la réception'; +$wb['access_txt'] = 'Activer laccès'; +$wb['policy_txt'] = 'Filtre à spam'; +$wb['no_policy'] = '- non activé -'; +$wb['limit_mailbox_txt'] = 'The max. number of mailboxes for your account is reached.'; +$wb['limit_mailquota_txt'] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb['welcome_mail_subject'] = 'Bienvenue sur votre nouveau compte mail.'; +$wb['welcome_mail_message'] = 'Bienvenue sur votre nouveau compte mail. + +Votre webmaster.'; +$wb['disableimap_txt'] = 'Désactiver IMAP'; +$wb['disablepop3_txt'] = 'Désactiver POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'Il y a déja un alias ou un suivi avec cette adresse email.'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter.lng new file mode 100644 index 0000000..aaa3112 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Nom'; +$wb['action_txt'] = 'Action'; +$wb['target_txt'] = 'Répertoire'; +$wb['active_txt'] = 'Actif'; +$wb['rulename_error_empty'] = 'Le nom est vide.'; +$wb['searchterm_is_empty'] = 'Le terme recherché est vide.'; +$wb['source_txt'] = 'Source'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter_list.lng new file mode 100644 index 0000000..96bde24 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Nom'; +$wb['add_new_record_txt'] = 'Ajouter un nouveau filtre'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Voulez-vous vraiment supprimer ce filtre'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_list.lng new file mode 100644 index 0000000..3e037c0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Boîte mail'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Auto répondeur'; +$wb['add_new_record_txt'] = 'Ajouter une nouvelle boîte mail'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_stats_list.lng new file mode 100644 index 0000000..341dfdd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Traffic mail'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Ce mois'; +$wb['last_month_txt'] = 'Le mois dernier'; +$wb['this_year_txt'] = 'Cette année'; +$wb['last_year_txt'] = 'Lannée dernière'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist.lng new file mode 100644 index 0000000..2d80229 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['source_txt'] = 'Adresse de la liste blanche'; +$wb['recipient_txt'] = 'Destinataire'; +$wb['active_txt'] = 'Actif'; +$wb['source_error_notempty'] = 'Ladresse est vide.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'Le nombre max. de filtres à mails pour votre compte a été atteint.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist_list.lng new file mode 100644 index 0000000..1537a96 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Liste blanche demails'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['source_txt'] = 'Adresse de la liste blanche'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Destinataire'; +$wb['add_new_record_txt'] = 'Ajouter un nouvel enregistrement'; +$wb['access_txt'] = 'accès'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist.lng new file mode 100644 index 0000000..530a59e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Utilisateur'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priorité'; +$wb['active_txt'] = 'Actif'; +$wb['limit_spamfilter_wblist_txt'] = 'Le nombre max. denregistrements dans votre liste blanche/noire pour votre compte a été atteint.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..e13895c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Liste noire du filtre à spam'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['priority_txt'] = 'Priorité'; +$wb['rid_txt'] = 'Utilisateur'; +$wb['email_txt'] = 'Email en liste blanche'; +$wb['add_new_record_txt'] = 'Ajouter un enregistrement'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config.lng new file mode 100644 index 0000000..2843133 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config_list.lng new file mode 100644 index 0000000..d59ed84 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Configuration du serveur'; +$wb['server_name_txt'] = 'Serveur'; +$wb['server_id_txt'] = 'ID Serveur'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy.lng new file mode 100644 index 0000000..d40fd4a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Nom de la politique'; +$wb['virus_lover_txt'] = 'Aime les virus'; +$wb['spam_lover_txt'] = 'Aime le spam'; +$wb['banned_files_lover_txt'] = 'Aime les fichiers bannis'; +$wb['bad_header_lover_txt'] = 'Aime les mauvaises entêtes'; +$wb['bypass_virus_checks_txt'] = 'Contourner la vérification des virus'; +$wb['bypass_banned_checks_txt'] = 'Contourner la vérification des bannissements.'; +$wb['bypass_header_checks_txt'] = 'Contourner la vérification des entêtes'; +$wb['virus_quarantine_to_txt'] = 'Faire suivre le virus à lemail'; +$wb['spam_quarantine_to_txt'] = 'Faire suivre le spam à lemail'; +$wb['banned_quarantine_to_txt'] = 'Faire suivre les fichiers bannis à lemail'; +$wb['bad_header_quarantine_to_txt'] = 'Faire suivre les mauvaises entêtes à lemail'; +$wb['clean_quarantine_to_txt'] = 'Faire suivre le nettoyé à lemail'; +$wb['other_quarantine_to_txt'] = 'Faire suivre le nettoyé à lemail'; +$wb['spam_tag_level_txt'] = 'Niveau du tag de SPAM'; +$wb['spam_tag2_level_txt'] = 'Niveau du tag2 de SPAM'; +$wb['spam_kill_level_txt'] = 'Niveau du kill de SPAM'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM subject tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subject tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy_list.lng new file mode 100644 index 0000000..81e5ebf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Politique du filtre à spam'; +$wb['policy_name_txt'] = 'Nom'; +$wb['virus_lover_txt'] = 'Aime les virus'; +$wb['spam_lover_txt'] = 'Aime le spam'; +$wb['banned_files_lover_txt'] = 'Aime les fichiers bannis'; +$wb['bad_header_lover_txt'] = 'Aime les mauvaises entêtes'; +$wb['add_new_record_txt'] = 'Ajouter une entrée à la politique'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users.lng new file mode 100644 index 0000000..e88d33e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['priority_txt'] = 'Priorité'; +$wb['policy_id_txt'] = 'Politique'; +$wb['email_txt'] = 'Email (Schéma)'; +$wb['fullname_txt'] = 'Nom'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users_list.lng new file mode 100644 index 0000000..5544892 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Utilisateurs du filtre à spam'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Serveur'; +$wb['priority_txt'] = 'Priorité'; +$wb['policy_id_txt'] = 'Politique'; +$wb['fullname_txt'] = 'Nom'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Ajouter un utilisateur du filtre à spam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist.lng new file mode 100644 index 0000000..dc51f7b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Utilisateur'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priorité'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..d209d17 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/fr_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Whitelist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu.lng b/interface/ispconfig/interface/mail/lib/lang/hu.lng new file mode 100644 index 0000000..c799c35 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Fekete lista'; +$wb['Blacklist'] = 'Fekete lista'; +$wb['Mail Content Filter'] = 'Mail tartalom szűrő'; +$wb['Filter'] = 'Szűrés'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Gyüjtő'; +$wb['Email Forward'] = 'Email Továbbítás'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamszűrő'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Levelezőláda'; +$wb['Autoresponder'] = 'Autoválasz'; +$wb['Mail Filter'] = 'Mail szűrő'; +$wb['Custom Rules'] = 'Saját szabályok'; +$wb['Email filter'] = 'Email szűrő'; +$wb['Email Whitelist'] = 'Email fehér lista'; +$wb['Whitelist'] = 'Fehér lista'; +$wb['Spamfilter blacklist'] = 'Spamszűrő fekete lista'; +$wb['Spamfilter Config'] = 'Spamszűrő Beállítás'; +$wb['Server'] = 'Szerver'; +$wb['Spamfilter policy'] = 'Spamszűrő szabályok'; +$wb['Policy'] = 'Szabályok'; +$wb['Quarantine'] = 'Karantén'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Egyéb'; +$wb['Spamfilter users'] = 'Spamszűrő felhasználó'; +$wb['Users'] = 'Felhasználók'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email levelezőláda'; +$wb['Email Accounts'] = 'Email hozzáférések'; +$wb['User / Domain'] = 'Felhaszáló / Domain'; +$wb['Server Settings'] = 'Szerver Beállítások'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Levező fiók forgalom'; +$wb['Statistics'] = 'Statisztika'; +$wb['Postfix Whitelist'] = 'Postfix Fehér lista'; +$wb['Postfix Blacklist'] = 'Postfix Fekete lista'; +$wb['Content Filter'] = 'Tartalom szűrő'; +$wb['Global Filters'] = 'Globális szűrők'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias.lng new file mode 100644 index 0000000..f6fb827 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Címzett'; +$wb['active_txt'] = 'Aktív'; +$wb['email_error_isemail'] = 'Érvénytelen email cím.'; +$wb['email_error_unique'] = 'Már létező email cím'; +$wb['no_domain_perm'] = 'Nincs joga ehhez a domainhoz.'; +$wb['destination_error_isemail'] = 'Címzett email címe érvénytelen'; +$wb['limit_mailalias_txt'] = 'Nincs több alias lehetőség.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias_list.lng new file mode 100644 index 0000000..a349fba --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Aktív'; +$wb['source_txt'] = 'Forrás'; +$wb['destination_txt'] = 'Címzett'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Új email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist.lng new file mode 100644 index 0000000..1d2f0e0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['source_txt'] = 'Feketelistás cím'; +$wb['recipient_txt'] = 'Címzett'; +$wb['active_txt'] = 'Aktív'; +$wb['source_error_notempty'] = 'Cím üres.'; +$wb['type_txt'] = 'Típus'; +$wb['limit_mailfilter_txt'] = 'Nincs több szűrő lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist_list.lng new file mode 100644 index 0000000..0552cda --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Feketelista'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['source_txt'] = 'Feketelistás cím'; +$wb['type_txt'] = 'Tipus'; +$wb['recipient_txt'] = 'Címzett'; +$wb['add_new_record_txt'] = 'Új feketelistás'; +$wb['access_txt'] = 'hozzáférés'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter.lng new file mode 100644 index 0000000..687443d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['type_txt'] = 'Szűrő'; +$wb['pattern_txt'] = 'Keresendő. Minta'; +$wb['data_txt'] = 'Adat'; +$wb['action_txt'] = 'Teendő'; +$wb['active_txt'] = 'Aktív'; +$wb['pattern_error_empty'] = 'Minta mező üres.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter_list.lng new file mode 100644 index 0000000..557c9ba --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Fejlés és levéltest ellenőzés'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['pattern_txt'] = 'Minta'; +$wb['action_txt'] = 'Művelet'; +$wb['add_new_record_txt'] = 'Új tartalom szűrő'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain.lng new file mode 100644 index 0000000..abaf759 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Típus'; +$wb['active_txt'] = 'Aktív'; +$wb['domain_error_empty'] = 'Domain üres'; +$wb['domain_error_unique'] = 'Már létező domain'; +$wb['domain_error_regex'] = 'Nem valós Domain név'; +$wb['client_txt'] = 'Kliens'; +$wb['limit_maildomain_txt'] = 'Meghaladta az ön hozzáférésével elérhető domainek számát.'; +$wb['policy_txt'] = 'Spamszűrő'; +$wb['no_policy'] = '- nem engedélyezett -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall.lng new file mode 100644 index 0000000..e064f30 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Címzett'; +$wb['active_txt'] = 'Aktív'; +$wb['domain_error_unique'] = 'Már van Catchall ehhez a domainhez'; +$wb['no_domain_perm'] = 'Nincs joga ehhez a domainhez'; +$wb['domain_error_regex'] = 'Érvénytelen domain vagy a domain érvénytelen karaktereket tartalmaz.'; +$wb['limit_mailcatchall_txt'] = 'Nincs több catchall lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall_list.lng new file mode 100644 index 0000000..effd979 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Aktív'; +$wb['source_txt'] = 'Forrás'; +$wb['destination_txt'] = 'Címzett email címe'; +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Új Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_list.lng new file mode 100644 index 0000000..aa90c42 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Új domain'; +$wb['active_txt'] = 'Aktív'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward.lng new file mode 100644 index 0000000..ec3e281 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Címzett Email'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_mailforward_txt'] = 'Nincs több email továbbítási lehetőség.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward_list.lng new file mode 100644 index 0000000..d9f9177 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email továbbítás'; +$wb['active_txt'] = 'aktív'; +$wb['source_txt'] = 'Forrás'; +$wb['destination_txt'] = 'Címzett'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Új email továbbítás'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_get.lng new file mode 100644 index 0000000..d3e0661 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['type_txt'] = 'Típus'; +$wb['source_server_txt'] = 'Pop3/Imap Szerver'; +$wb['source_username_txt'] = 'Felhasználónév'; +$wb['source_password_txt'] = 'Jelszó'; +$wb['source_delete_txt'] = 'Letöltés után törli a leveleket'; +$wb['destination_txt'] = 'Címzett'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_fetchmail_txt'] = 'Nincs több Legyügyjtés lehetőség.'; +$wb['source_server_error_isempty'] = 'Szerver üres.'; +$wb['source_username_error_isempty'] = 'Felhasználónév üres.'; +$wb['source_password_error_isempty'] = 'Jelszó üres.'; +$wb['destination_error_isemail'] = 'Nem választott címzettet.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_get_list.lng new file mode 100644 index 0000000..bb18a84 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Legyüjtés külső POP3 / IMAP szerverről'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['source_server_txt'] = 'Külső szerver'; +$wb['source_username_txt'] = 'Felhasználónév'; +$wb['destination_txt'] = 'Címzett'; +$wb['add_new_record_txt'] = 'Új legyűjtés'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter.lng new file mode 100644 index 0000000..1aeef9c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Újra pontoz'; +$wb['spam_redirect_score_int_txt'] = 'Átirányítás forrás'; +$wb['spam_delete_score_int_txt'] = 'Pontokat töröl'; +$wb['spam_rewrite_subject_txt'] = 'Tárgy mezőt átír'; +$wb['spam_redirect_maildir_txt'] = 'Átirányít ebbe a levelezőládába'; +$wb['active_txt'] = 'Aktív'; +$wb['spam_rewrite_txt'] = 'Átírja az email tárgyát ha eléri ezt a pontszámot'; +$wb['spam_redirect_txt'] = 'A kiválasztott levelezőládába átirányítja a levelet, ha eléri ezt a pontszámot.'; +$wb['spam_delete_txt'] = 'Törli az email ha eléri ezt a pontszámot'; +$wb['disable_txt'] = 'Tipp: A szürés tiltásához, állítsa a pontot 0.00-ra.'; +$wb['email_error_isemail'] = 'Email cím érvénytelen.'; +$wb['email_error_unique'] = 'Ehhez az emailhez tartozik már egy szűrő.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Levelesládát kiüríti '; +$wb['days_txt'] = 'nap után.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter_list.lng new file mode 100644 index 0000000..aa5879e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamszűrő'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['server_name_txt'] = 'szerver_név'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Új spamszűrő'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport.lng new file mode 100644 index 0000000..d5089f3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Címzett'; +$wb['type_txt'] = 'Típus'; +$wb['mx_txt'] = 'MX rekorde ellenőrzés nélkül'; +$wb['sort_order_txt'] = 'Rendezés'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_mailrouting_txt'] = 'Nincs több Email irányítás lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport_list.lng new file mode 100644 index 0000000..c2e7bf2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Haladó Email irányítás'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Szállító közeg'; +$wb['sort_order_txt'] = 'Rendezés'; +$wb['add_new_record_txt'] = 'Új irányítás'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user.lng new file mode 100644 index 0000000..3aaeca1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Egyéni levelezés szűrő'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Jelszó'; +$wb['active_txt'] = 'Aktív'; +$wb['email_error_isemail'] = 'Email cím érvénytelen.'; +$wb['email_error_unique'] = 'Már lézető email cím.'; +$wb['autoresponder_text_txt'] = 'Szöveg.'; +$wb['autoresponder_txt'] = 'Automatikus válasz'; +$wb['no_domain_perm'] = 'Nincs joga ehhez a domainhoz'; +$wb['error_no_pwd'] = 'Jeszó üres.'; +$wb['quota_error_isint'] = 'Mailbox méret mező csak szákot tartalmazhat'; +$wb['quota_txt'] = 'Korlát MB-ban kifejezve'; +$wb['server_id_txt'] = 'szerver_azonosító'; +$wb['password_txt'] = 'Jelszó'; +$wb['maildir_txt'] = 'levelezőláda'; +$wb['postfix_txt'] = 'Bejövő engedélyezés'; +$wb['access_txt'] = 'Hozzáférés engelyezés'; +$wb['policy_txt'] = 'Spam szűrő'; +$wb['no_policy'] = '- nem engelyézett -'; +$wb['limit_mailbox_txt'] = 'Nincs több mailbox lehetőség.'; +$wb['limit_mailquota_txt'] = 'Mailbox tárhely elfogyott.'; +$wb['welcome_mail_subject'] = 'Isten hozta az új levelezőládjában'; +$wb['welcome_mail_message'] = 'Isten hozta az új levelezőládjában. Az Ön webmestere.'; +$wb['disableimap_txt'] = 'IMAP Tiltás'; +$wb['disablepop3_txt'] = 'POP3 Tiltás'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'There is already an alias or forwrd with this email address.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter.lng new file mode 100644 index 0000000..e51ddd0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Név'; +$wb['action_txt'] = 'Művelet'; +$wb['target_txt'] = 'Mappa'; +$wb['active_txt'] = 'Aktív'; +$wb['rulename_error_empty'] = 'A név üres'; +$wb['searchterm_is_empty'] = 'Keresési feltétel üres'; +$wb['source_txt'] = 'Forrás'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter_list.lng new file mode 100644 index 0000000..1adaa5e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Név'; +$wb['page_txt'] = 'Oldal'; +$wb['page_of_txt'] = 'Összesen'; +$wb['add_new_record_txt'] = 'Új szűrő'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_list.lng new file mode 100644 index 0000000..71d8e6b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Levelező fiók'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Automatikus válasz'; +$wb['add_new_record_txt'] = 'Levelező fiókot létrehoz'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_stats_list.lng new file mode 100644 index 0000000..88b4b81 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email forgalom'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Ebben a hónapban'; +$wb['last_month_txt'] = 'Múlt hónapban'; +$wb['this_year_txt'] = 'Idén'; +$wb['last_year_txt'] = 'Tavaly'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist.lng new file mode 100644 index 0000000..71c3cf3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['source_txt'] = 'Fehérlista Cím'; +$wb['recipient_txt'] = 'Feladó'; +$wb['active_txt'] = 'Aktív'; +$wb['source_error_notempty'] = 'Cím mező üres.'; +$wb['type_txt'] = 'Típus'; +$wb['limit_mailfilter_txt'] = 'Nincs több szűrő lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist_list.lng new file mode 100644 index 0000000..b5bc468 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Fehérlista'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['source_txt'] = 'Fehérlistás cím'; +$wb['type_txt'] = 'Típus'; +$wb['recipient_txt'] = 'Címzett'; +$wb['add_new_record_txt'] = 'Új Fehérlista'; +$wb['access_txt'] = 'hozzáférés'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist.lng new file mode 100644 index 0000000..077a7bc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Felhasználó'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Sorrend'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_spamfilter_wblist_txt'] = 'Nincs több Fehér- Feketelista lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..c526bbb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamszűrő Feketelista'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['priority_txt'] = 'Sorrend'; +$wb['rid_txt'] = 'Felhasználó'; +$wb['email_txt'] = 'Fehérlistás Email'; +$wb['add_new_record_txt'] = 'Új Feketelista'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config.lng new file mode 100644 index 0000000..c137e9a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Legyűjtés beállítás elérés'; +$wb['ip_address_txt'] = 'IP cím'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Átjáró'; +$wb['hostname_txt'] = 'Állomásnév'; +$wb['nameservers_txt'] = 'Névszerverek'; +$wb['module_txt'] = 'Szerver Modul'; +$wb['maildir_path_txt'] = 'Maildir elérési út'; +$wb['homedir_path_txt'] = 'Home könyvtár elérési út'; +$wb['mailuser_uid_txt'] = 'Mailfelhasználó UID'; +$wb['mailuser_gid_txt'] = 'Mailfelhasználó GID'; +$wb['mailuser_name_txt'] = 'Mailfelhasználó Név'; +$wb['mailuser_group_txt'] = 'Mailfelhasználó Csoport'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost felhasználó'; +$wb['relayhost_password_txt'] = 'Relayhost jelszó'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Méret korlát'; +$wb['message_size_limit_txt'] = 'Üzenet méret korlát'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config_list.lng new file mode 100644 index 0000000..59d0449 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Szerver Beállítás'; +$wb['server_name_txt'] = 'Szerver'; +$wb['server_id_txt'] = 'szerver_azonosító'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy.lng new file mode 100644 index 0000000..06cbda5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Szabály neve'; +$wb['virus_lover_txt'] = 'Virust szereti'; +$wb['spam_lover_txt'] = 'SPAMet szereti'; +$wb['banned_files_lover_txt'] = 'Tiltott fáljlokat szereti'; +$wb['bad_header_lover_txt'] = 'Hibás fejlécet szereti'; +$wb['bypass_virus_checks_txt'] = 'Vírus ellenőrzés'; +$wb['bypass_banned_checks_txt'] = 'Tiltottak ellenőrzése'; +$wb['bypass_header_checks_txt'] = 'Fejlécek ellenőrzése'; +$wb['virus_quarantine_to_txt'] = 'Vírus erre az email címre továbbítja'; +$wb['spam_quarantine_to_txt'] = 'Spamet erre az email címre továbbítja'; +$wb['banned_quarantine_to_txt'] = 'Tiltottakat erre az email címre továbbítja'; +$wb['bad_header_quarantine_to_txt'] = 'Hibás fejéceket erre az email címre továbbítja'; +$wb['clean_quarantine_to_txt'] = 'Tiszta leveleket erre az email címre továbbítja'; +$wb['other_quarantine_to_txt'] = 'Egyéb leveleket erre az email címre továbbítja'; +$wb['spam_tag_level_txt'] = 'SPAM tag szint'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 szint'; +$wb['spam_kill_level_txt'] = 'SPAM kill szint'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff szint'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM karantén cutoff szint'; +$wb['spam_modifies_subj_txt'] = 'SPAM módosítja a tárgy mezőt'; +$wb['spam_subject_tag_txt'] = 'SPAM tárgy mező tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM tárgy mező tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension tiltott'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension hibás fejléc'; +$wb['warnvirusrecip_txt'] = 'Virus címzettet figyelmeztet'; +$wb['warnbannedrecip_txt'] = 'Tiltott címzettet figyelmeztet'; +$wb['warnbadhrecip_txt'] = 'Hibás fejéc címzettet figyelmeztet'; +$wb['newvirus_admin_txt'] = 'Új virus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Tiltott admin'; +$wb['bad_header_admin_txt'] = 'Hibás fejléc admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Levél méret limit'; +$wb['banned_rulenames_txt'] = 'Tiltószabály nevek'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy_list.lng new file mode 100644 index 0000000..a592422 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamszűrő szabály'; +$wb['policy_name_txt'] = 'Név'; +$wb['virus_lover_txt'] = 'Virust szereti'; +$wb['spam_lover_txt'] = 'Spamet szereti'; +$wb['banned_files_lover_txt'] = 'Tiltott fájlokat szereti'; +$wb['bad_header_lover_txt'] = 'Hibás fejlécet szereti'; +$wb['add_new_record_txt'] = 'Új Szabály'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users.lng new file mode 100644 index 0000000..4fd29bb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['priority_txt'] = 'Sorrend'; +$wb['policy_id_txt'] = 'Szabály'; +$wb['email_txt'] = 'Email (Minta)'; +$wb['fullname_txt'] = 'Név'; +$wb['local_txt'] = 'Helyi'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users_list.lng new file mode 100644 index 0000000..796a5f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamszűrő Felhasználó'; +$wb['local_txt'] = 'Helyi'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Sorrend'; +$wb['policy_id_txt'] = 'Sazbály'; +$wb['fullname_txt'] = 'Név'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Új Spamszűrő Felhasználó'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist.lng new file mode 100644 index 0000000..077a7bc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Felhasználó'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Sorrend'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_spamfilter_wblist_txt'] = 'Nincs több Fehér- Feketelista lehetőség.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..9a1a635 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/hu_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamszűrő Fehérlista'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['priority_txt'] = 'Sorrend'; +$wb['rid_txt'] = 'Felhasználó'; +$wb['email_txt'] = 'Fehérlistás Email'; +$wb['add_new_record_txt'] = 'Új fehérlistás'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it.lng b/interface/ispconfig/interface/mail/lib/lang/it.lng new file mode 100644 index 0000000..e3a31e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Content Filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'Users'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Accounts'; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Settings'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistics'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Content Filter'; +$wb['Global Filters'] = 'Global Filters'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_alias.lng new file mode 100644 index 0000000..44b6fed --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'Duplicate Emailaddress.'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['destination_error_isemail'] = 'Destination Emailaddress is invalid.'; +$wb['limit_mailalias_txt'] = 'The max. number of email aliases for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_alias_list.lng new file mode 100644 index 0000000..0a44ea4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist.lng new file mode 100644 index 0000000..5b2815c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist_list.lng new file mode 100644 index 0000000..a72052f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new Blacklist record'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter.lng new file mode 100644 index 0000000..9d5e5f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Action'; +$wb['active_txt'] = 'Active'; +$wb['pattern_error_empty'] = 'Pattern is empty.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter_list.lng new file mode 100644 index 0000000..8c1e5e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Header and Body Checks'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Pattern'; +$wb['action_txt'] = 'Action'; +$wb['add_new_record_txt'] = 'Add new Content Filter'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain.lng new file mode 100644 index 0000000..6120e82 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Type'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Duplicate Domain.'; +$wb['domain_error_regex'] = 'Invalid domain name.'; +$wb['client_txt'] = 'Client'; +$wb['limit_maildomain_txt'] = 'The max. number of email domains for your account is reached.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall.lng new file mode 100644 index 0000000..382e97f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_unique'] = 'There is already a Catchall record for this domain.'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['domain_error_regex'] = 'Invalid domain name od domain contains invalid characters.'; +$wb['limit_mailcatchall_txt'] = 'The max. number of email catchall accounts for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall_list.lng new file mode 100644 index 0000000..7d076dd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination email address'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_list.lng new file mode 100644 index 0000000..d844781 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new Domain'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_forward.lng new file mode 100644 index 0000000..7d237e1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination Email'; +$wb['active_txt'] = 'Active'; +$wb['limit_mailforward_txt'] = 'The max. number of email forwarders for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_forward_list.lng new file mode 100644 index 0000000..f452944 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail Forward'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Destination'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Email forward'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_get.lng new file mode 100644 index 0000000..5e42823 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'Username'; +$wb['source_password_txt'] = 'Password'; +$wb['source_delete_txt'] = 'Delete emails after retrieval'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['limit_fetchmail_txt'] = 'The max. number of Fetchmail records for your account is reached.'; +$wb['source_server_error_isempty'] = 'Server is empty.'; +$wb['source_username_error_isempty'] = 'Username is empty.'; +$wb['source_password_error_isempty'] = 'Password is empty.'; +$wb['destination_error_isemail'] = 'No destination selected.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_get_list.lng new file mode 100644 index 0000000..4baf67e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Fetch emails from external POP3 / IMAP servers'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'External Server'; +$wb['source_username_txt'] = 'Username'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Account'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter.lng new file mode 100644 index 0000000..e0a2a2f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Rewrite score'; +$wb['spam_redirect_score_int_txt'] = 'Redirect score'; +$wb['spam_delete_score_int_txt'] = 'Delete score'; +$wb['spam_rewrite_subject_txt'] = 'Rewrite subject'; +$wb['spam_redirect_maildir_txt'] = 'Redirect mailbox'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Rewrite email subject above this score.'; +$wb['spam_redirect_txt'] = 'Redirect email above this score to the selected mailbox.'; +$wb['spam_delete_txt'] = 'Delete email above this score.'; +$wb['disable_txt'] = 'Hint: To disable a filtering option, set the score to 0.00.'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'There is already an spamfilter record for this email address.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purge Maildir after'; +$wb['days_txt'] = 'Days.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter_list.lng new file mode 100644 index 0000000..728f3d3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'server_name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Spamfilter record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_transport.lng new file mode 100644 index 0000000..a4d7bbc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destination'; +$wb['type_txt'] = 'Type'; +$wb['mx_txt'] = 'No MX lookup'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['active_txt'] = 'Active'; +$wb['limit_mailrouting_txt'] = 'The max. number of routes for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_transport_list.lng new file mode 100644 index 0000000..a96c081 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Advanced Email Routing'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['add_new_record_txt'] = 'Add new transport'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_user.lng new file mode 100644 index 0000000..3745036 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_user.lng @@ -0,0 +1,41 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Custom mail filter recipe'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'Duplicate Email address.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['error_no_pwd'] = 'Password is empty.'; +$wb['quota_error_isint'] = 'Mailbox size must be a number.'; +$wb['quota_txt'] = 'quota in MB'; +$wb['server_id_txt'] = 'server_id'; +$wb['password_txt'] = 'password'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Enable Receiving'; +$wb['access_txt'] = 'Enable Access'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +$wb['limit_mailbox_txt'] = 'The max. number of mailboxes for your account is reached.'; +$wb['limit_mailquota_txt'] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb['welcome_mail_subject'] = 'Welcome to your new email account.'; +$wb['welcome_mail_message'] = 'Welcome to your new email account. + +Your webmaster.'; +$wb['disableimap_txt'] = 'Disable IMAP'; +$wb['disablepop3_txt'] = 'Disable POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'There is already an alias or forwrd with this email address.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter.lng new file mode 100644 index 0000000..e633c1b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['action_txt'] = 'Action'; +$wb['target_txt'] = 'Folder'; +$wb['active_txt'] = 'Active'; +$wb['rulename_error_empty'] = 'Name is empty.'; +$wb['searchterm_is_empty'] = 'Search term is empty.'; +$wb['source_txt'] = 'Source'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter_list.lng new file mode 100644 index 0000000..2754259 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new Filter'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_list.lng new file mode 100644 index 0000000..6063cef --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Add new Mailbox'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_stats_list.lng new file mode 100644 index 0000000..edde65b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail traffic'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist.lng new file mode 100644 index 0000000..92c365b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Witelist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist_list.lng new file mode 100644 index 0000000..eaa7eb3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new Whitelist record'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..1b17e64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Blacklist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config.lng new file mode 100644 index 0000000..2843133 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config_list.lng new file mode 100644 index 0000000..70e49e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy.lng new file mode 100644 index 0000000..e876330 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Policy Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'SPAM lover'; +$wb['banned_files_lover_txt'] = 'Banned files lover'; +$wb['bad_header_lover_txt'] = 'Bad header lover'; +$wb['bypass_virus_checks_txt'] = 'Bypass virus checks'; +$wb['bypass_banned_checks_txt'] = 'Bypass banned checks'; +$wb['bypass_header_checks_txt'] = 'Bypass header checks'; +$wb['virus_quarantine_to_txt'] = 'Forward virus to email'; +$wb['spam_quarantine_to_txt'] = 'Forward spam to email'; +$wb['banned_quarantine_to_txt'] = 'Forward banned to email'; +$wb['bad_header_quarantine_to_txt'] = 'Forward bad header to email'; +$wb['clean_quarantine_to_txt'] = 'Forward clean to email'; +$wb['other_quarantine_to_txt'] = 'Forward other to email'; +$wb['spam_tag_level_txt'] = 'SPAM tag level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 level'; +$wb['spam_kill_level_txt'] = 'SPAM kill level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM subject tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subject tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy_list.lng new file mode 100644 index 0000000..04491ae --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Policy'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'Spam lover'; +$wb['banned_files_lover_txt'] = 'Banned Files lover'; +$wb['bad_header_lover_txt'] = 'Bad Header lover'; +$wb['add_new_record_txt'] = 'Add Policy record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users.lng new file mode 100644 index 0000000..a93d94d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['email_txt'] = 'Email (Pattern)'; +$wb['fullname_txt'] = 'Name'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users_list.lng new file mode 100644 index 0000000..ed3d7a3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Users'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['fullname_txt'] = 'Name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add Spamfilter User'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..d209d17 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/it_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Whitelist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja.lng b/interface/ispconfig/interface/mail/lib/lang/ja.lng new file mode 100644 index 0000000..91dcde5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'メールエイリアス'; +$wb['Email Blacklist'] = 'メールブラックリスト'; +$wb['Blacklist'] = 'ブラックリスト'; +$wb['Mail Content Filter'] = 'メールコンテンツフィルター'; +$wb['Filter'] = 'フィルター'; +$wb['Mail Domain'] = 'メールドメイン'; +$wb['Domain'] = 'ドメイン'; +$wb['Email Catchall'] = 'キャッチオール'; +$wb['Email Forward'] = 'メールフォワード'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = '迷惑メールフィルター'; +$wb['Email Routing'] = 'メール配送経路'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'メールボックス'; +$wb['Autoresponder'] = '自動応答'; +$wb['Mail Filter'] = 'メールフィルター'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'メールフィルター'; +$wb['Email Whitelist'] = 'メールホワイトリスト'; +$wb['Whitelist'] = 'ホワイトリスト'; +$wb['Spamfilter blacklist'] = '迷惑メールフィルタ・ブラックリスト'; +$wb['Spamfilter Config'] = '迷惑メールフィルタの設定'; +$wb['Server'] = 'サーバー'; +$wb['Spamfilter policy'] = '迷惑メールフィルタのポリシー'; +$wb['Policy'] = 'ポリシー'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'ユーザー'; +$wb['Spamfilter Whitelist'] = '迷惑メールフィルタ・ホワイトリスト'; +$wb['Email'] = 'メールアドレス'; +$wb['Email Mailbox'] = 'メールボックス'; +$wb['Email Accounts'] = 'メールアカウント'; +$wb['User / Domain'] = 'ユーザー / ドメイン'; +$wb['Server Settings'] = 'サーバーの設定'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'メールボックスの流量'; +$wb['Statistics'] = '利用状況'; +$wb['Postfix Whitelist'] = 'Postfix ホワイトリスト'; +$wb['Postfix Blacklist'] = 'Postfix ブラックリスト'; +$wb['Content Filter'] = 'コンテンツフィルター'; +$wb['Global Filters'] = 'グローバルフィルター'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias.lng new file mode 100644 index 0000000..032fb28 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'メールアドレス'; +$wb['destination_txt'] = '転送先'; +$wb['active_txt'] = '有効'; +$wb['email_error_isemail'] = 'メールアドレスが不正です。'; +$wb['email_error_unique'] = 'メールアドレスが重複しています。'; +$wb['no_domain_perm'] = 'このドメイン向けのエイリアスを設定する権限がありません。'; +$wb['destination_error_isemail'] = '転送先メールアドレスが不正です。'; +$wb['limit_mailalias_txt'] = 'メールエイリアスが最大数に達したため、これ以上追加できません。'; +$wb['duplicate_mailbox_txt'] = 'このメールアドレス向けのメールボックスが既に存在します。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias_list.lng new file mode 100644 index 0000000..d778280 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'メールエイリアス'; +$wb['active_txt'] = '有効'; +$wb['source_txt'] = '転送元'; +$wb['destination_txt'] = '転送先'; +$wb['email_txt'] = 'メールアドレス'; +$wb['add_new_record_txt'] = 'メールエイリアスを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist.lng new file mode 100644 index 0000000..9007f6b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['source_txt'] = 'ブラックリストアドレス'; +$wb['recipient_txt'] = '宛先'; +$wb['active_txt'] = '有効'; +$wb['source_error_notempty'] = 'アドレスを指定してください'; +$wb['type_txt'] = '種別'; +$wb['limit_mailfilter_txt'] = 'メールフィルターが最大数に達したため、これ以上追加できません。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist_list.lng new file mode 100644 index 0000000..35bea5f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'メールブラックリスト'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['source_txt'] = 'ブラックリストアドレス'; +$wb['type_txt'] = '種別'; +$wb['recipient_txt'] = '宛先'; +$wb['add_new_record_txt'] = 'ブラックリストに追加する'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter.lng new file mode 100644 index 0000000..ba657bb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['type_txt'] = 'フィルター'; +$wb['pattern_txt'] = '正規表現パターン'; +$wb['data_txt'] = '値'; +$wb['action_txt'] = '操作'; +$wb['active_txt'] = '有効'; +$wb['pattern_error_empty'] = 'パターンを指定してください'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter_list.lng new file mode 100644 index 0000000..5847006 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix によるヘッダと本文のチェック'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['pattern_txt'] = 'パターン'; +$wb['action_txt'] = '操作'; +$wb['add_new_record_txt'] = 'コンテンツフィルタを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain.lng new file mode 100644 index 0000000..37867b0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['type_txt'] = 'Type'; +$wb['active_txt'] = '有効'; +$wb['domain_error_empty'] = 'ドメインを指定してください'; +$wb['domain_error_unique'] = 'ドメインが重複しています。'; +$wb['domain_error_regex'] = '不正なドメイン名です。'; +$wb['client_txt'] = 'クライアント'; +$wb['limit_maildomain_txt'] = 'メールドメインが最大数に達したため、これ以上追加できません。'; +$wb['policy_txt'] = 'スパムフィルター'; +$wb['no_policy'] = '使わない'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall.lng new file mode 100644 index 0000000..9c29cfb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'ドメイン'; +$wb['destination_txt'] = '配送先'; +$wb['active_txt'] = '有効'; +$wb['domain_error_unique'] = 'このドメイン向けのキャッチオールは設定済みです。既存の設定を確認するか、ドメイン名を変更してください。'; +$wb['no_domain_perm'] = 'このドメイン向けのキャッチオールを設定する権限がありません。'; +$wb['domain_error_regex'] = 'ドメイン名が不正です。無効な文字を含んでいないか確認してください。'; +$wb['limit_mailcatchall_txt'] = 'キャッチオールアカウントが最大数に達したため、これ以上追加できません。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall_list.lng new file mode 100644 index 0000000..e459645 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'キャッチオール'; +$wb['active_txt'] = '有効'; +$wb['source_txt'] = '対象'; +$wb['destination_txt'] = '配送先メールアドレス'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['add_new_record_txt'] = 'キャッチオールアカウントを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_list.lng new file mode 100644 index 0000000..89eaf06 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'メールドメイン'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['add_new_record_txt'] = 'ドメインを追加する'; +$wb['active_txt'] = '有効'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward.lng new file mode 100644 index 0000000..e52a15d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'メールアドレス'; +$wb['destination_txt'] = '転送先メールアドレス'; +$wb['active_txt'] = '有効'; +$wb['limit_mailforward_txt'] = 'メールフォワードが最大数に達したため、これ以上追加できません。'; +$wb['duplicate_mailbox_txt'] = 'このメールアドレス向けのメールボックスが既に存在します。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward_list.lng new file mode 100644 index 0000000..bf0deec --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'メールフォワード'; +$wb['active_txt'] = '有効'; +$wb['source_txt'] = '転送元'; +$wb['destination_txt'] = '転送先'; +$wb['email_txt'] = 'メールアドレス'; +$wb['add_new_record_txt'] = 'メールフォワードを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_get.lng new file mode 100644 index 0000000..a4dd18c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['type_txt'] = '種別'; +$wb['source_server_txt'] = 'POP3/IMAPサーバー'; +$wb['source_username_txt'] = 'ユーザー名'; +$wb['source_password_txt'] = 'パスワード'; +$wb['source_delete_txt'] = '取り込み後にサーバーのメールを削除する'; +$wb['destination_txt'] = '宛先'; +$wb['active_txt'] = '有効'; +$wb['limit_fetchmail_txt'] = 'アカウントで許容されている Fetchmail の設定が最大数に達しました。'; +$wb['source_server_error_isempty'] = 'サーバーを指定してください'; +$wb['source_username_error_isempty'] = 'ユーザー名を指定してください'; +$wb['source_password_error_isempty'] = 'パスワードを指定してください'; +$wb['destination_error_isemail'] = '宛先を選択してください。'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_get_list.lng new file mode 100644 index 0000000..1bf625e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = '外部の POP3 / IMAP サーバーからメールを取り込みます'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['source_server_txt'] = '外部サーバー'; +$wb['source_username_txt'] = 'ユーザー名'; +$wb['destination_txt'] = '宛先'; +$wb['add_new_record_txt'] = '設定を追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter.lng new file mode 100644 index 0000000..77ef6dd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'メールアドレス'; +$wb['spam_rewrite_score_int_txt'] = '書き換えスコア'; +$wb['spam_redirect_score_int_txt'] = 'リダイレクトスコア'; +$wb['spam_delete_score_int_txt'] = '削除スコア'; +$wb['spam_rewrite_subject_txt'] = '書き換えサブジェクト'; +$wb['spam_redirect_maildir_txt'] = 'リダイレクト先メールボックス'; +$wb['active_txt'] = '有効'; +$wb['spam_rewrite_txt'] = 'このスコアを超えるメールのサブジェクトを書き換えます。'; +$wb['spam_redirect_txt'] = 'このスコアを超えるメールを指定したメールボックスにリダイレクトします。'; +$wb['spam_delete_txt'] = 'このスコアを超えるメールを削除します。'; +$wb['disable_txt'] = '注意:スコアを 0.00 にするとフィルタリングが無効になります。'; +$wb['email_error_isemail'] = 'メールアドレスが不正です。'; +$wb['email_error_unique'] = 'このメールアドレスには既にスパムフィルターが設定されています。'; +$wb['spam_redirect_maildir_purge_txt'] = '受信してからメールを削除するまでの日数'; +$wb['days_txt'] = '日'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter_list.lng new file mode 100644 index 0000000..bcc2a12 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'スパムフィルター'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['server_name_txt'] = 'server_name'; +$wb['email_txt'] = 'メールアドレス'; +$wb['add_new_record_txt'] = 'スパムフィルターを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport.lng new file mode 100644 index 0000000..b922a0e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['destination_txt'] = '配送先'; +$wb['type_txt'] = 'トランスポート'; +$wb['mx_txt'] = 'MX を参照しない'; +$wb['sort_order_txt'] = '優先度'; +$wb['active_txt'] = '有効'; +$wb['limit_mailrouting_txt'] = '最大数に達した為、これ以上配送経路を追加できません。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport_list.lng new file mode 100644 index 0000000..7768497 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'メール配送経路の詳細設定'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['transport_txt'] = 'トランスポート'; +$wb['sort_order_txt'] = '優先度'; +$wb['add_new_record_txt'] = '配送経路を追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user.lng new file mode 100644 index 0000000..35eecb9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Custom mail filter recipe'; +$wb['email_txt'] = 'メールアドレス'; +$wb['cryptpwd_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['active_txt'] = '有効'; +$wb['email_error_isemail'] = 'メールアドレスが不正です。'; +$wb['email_error_unique'] = 'メールアドレスが重複しています。'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = '自動応答'; +$wb['no_domain_perm'] = 'このドメインの設定をする権限がありません。'; +$wb['error_no_pwd'] = 'パスワードを指定してください'; +$wb['quota_error_isint'] = 'メールボックスの最大数は数字で指定してください。'; +$wb['quota_txt'] = 'メールボックスの容量'; +$wb['server_id_txt'] = 'Aerver_id'; +$wb['password_txt'] = 'パスワード'; +$wb['maildir_txt'] = 'メールディレクトリ'; +$wb['postfix_txt'] = 'メールを受信する'; +$wb['access_txt'] = 'アクセスを許可する'; +$wb['policy_txt'] = 'スパムフィルター'; +$wb['no_policy'] = '- 利用しない -'; +$wb['limit_mailbox_txt'] = 'メールボックスが最大数に達した為、これ以上追加できません。'; +$wb['limit_mailquota_txt'] = 'メールボックスが一杯です。 上限(MB):'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'ご利用ありがとうございます。'; +$wb['welcome_mail_message'] = 'Welcome to your new email account. Your webmaster.'; +$wb['disableimap_txt'] = 'IMAP を無効にする'; +$wb['disablepop3_txt'] = 'POP3 を無効にする'; +$wb['duplicate_alias_or_forward_txt'] = 'このメールアドレスには既にエイリアスまたはフォワードが設定されています。'; +$wb['quota_error_value'] = '容量の値が不正です。 無制限にする場合は0を、制限する場合は1より大きな整数を指定してください。'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter.lng new file mode 100644 index 0000000..94d29d4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['action_txt'] = '操作'; +$wb['target_txt'] = 'フォルダー'; +$wb['active_txt'] = '有効'; +$wb['rulename_error_empty'] = 'Name is empty.'; +$wb['searchterm_is_empty'] = 'Search term is empty.'; +$wb['source_txt'] = 'Source'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter_list.lng new file mode 100644 index 0000000..847a415 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'フィルターを追加する'; +$wb['page_txt'] = 'ページ'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = '本当にこのメールフィルターを削除してもいいですか?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_list.lng new file mode 100644 index 0000000..6063cef --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Add new Mailbox'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_stats_list.lng new file mode 100644 index 0000000..ee0b9b9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'メールの流量'; +$wb['email_txt'] = 'メールアドレス'; +$wb['this_month_txt'] = '今月'; +$wb['last_month_txt'] = '先月'; +$wb['this_year_txt'] = '今年'; +$wb['last_year_txt'] = '去年'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist.lng new file mode 100644 index 0000000..74d51da --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['source_txt'] = 'ホワイトリストアドレス'; +$wb['recipient_txt'] = '宛先'; +$wb['active_txt'] = '有効'; +$wb['source_error_notempty'] = 'アドレスを指定してください'; +$wb['type_txt'] = '種別'; +$wb['limit_mailfilter_txt'] = 'メールフィルターが最大数に達したため、これ以上追加できません。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist_list.lng new file mode 100644 index 0000000..3f9d104 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'メールホワイトリスト'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['source_txt'] = 'ホワイトリストアドレス'; +$wb['type_txt'] = '種別'; +$wb['recipient_txt'] = '宛先'; +$wb['add_new_record_txt'] = 'ホワイトリストに追加する'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist.lng new file mode 100644 index 0000000..3e85cee --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'ユーザー'; +$wb['email_txt'] = 'メールアドレス'; +$wb['priority_txt'] = '優先度'; +$wb['active_txt'] = '有効'; +$wb['limit_spamfilter_wblist_txt'] = 'ホワイトリストまたはブラックリストが最大数に達しました。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..2e3cc45 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'スパムフィルターブラックリスト'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['priority_txt'] = '優先度'; +$wb['rid_txt'] = 'ユーザー'; +$wb['email_txt'] = 'ブラックリストアドレス'; +$wb['add_new_record_txt'] = 'ブラックリストを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config.lng new file mode 100644 index 0000000..3021108 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['netmask_txt'] = 'ネットマスク'; +$wb['gateway_txt'] = 'ゲートウェイ'; +$wb['hostname_txt'] = 'ホスト名'; +$wb['nameservers_txt'] = 'ネームサーバー'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'メールディレクトリ'; +$wb['homedir_path_txt'] = 'ホームディレクトリ'; +$wb['mailuser_uid_txt'] = 'メールユーザーのUID'; +$wb['mailuser_gid_txt'] = 'メールユーザーのGID'; +$wb['mailuser_name_txt'] = 'メールユーザー名'; +$wb['mailuser_group_txt'] = 'メールユーザーグループ'; +$wb['relayhost_txt'] = 'リレーホスト'; +$wb['relayhost_user_txt'] = 'リレーホストユーザー'; +$wb['relayhost_password_txt'] = 'リレーホストパスワード'; +$wb['mailbox_size_limit_txt'] = 'メールボックスのサイズ'; +$wb['message_size_limit_txt'] = 'メッセージの最大サイズ'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config_list.lng new file mode 100644 index 0000000..49e2dbe --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'サーバーの設定'; +$wb['server_name_txt'] = 'サーバー'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy.lng new file mode 100644 index 0000000..89d377a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'ポリシー名'; +$wb['virus_lover_txt'] = 'ウィルス許容者'; +$wb['spam_lover_txt'] = 'スパム許容者'; +$wb['banned_files_lover_txt'] = 'Banned files lover'; +$wb['bad_header_lover_txt'] = '異常ヘッダー許容者'; +$wb['bypass_virus_checks_txt'] = 'ウィルスチェックを行わない'; +$wb['bypass_banned_checks_txt'] = 'Bypass banned checks'; +$wb['bypass_header_checks_txt'] = 'ヘッダーチェックを行わない'; +$wb['virus_quarantine_to_txt'] = 'Forward virus to email'; +$wb['spam_quarantine_to_txt'] = 'Forward spam to email'; +$wb['banned_quarantine_to_txt'] = 'Forward banned to email'; +$wb['bad_header_quarantine_to_txt'] = 'Forward bad header to email'; +$wb['clean_quarantine_to_txt'] = 'Forward clean to email'; +$wb['other_quarantine_to_txt'] = 'Forward other to email'; +$wb['spam_tag_level_txt'] = 'SPAM tag level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 level'; +$wb['spam_kill_level_txt'] = 'SPAM kill level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM subject tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subject tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy_list.lng new file mode 100644 index 0000000..b2656b7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'スパムフィルターのポリシー'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'ウィルス許容者'; +$wb['spam_lover_txt'] = 'スパム許容者'; +$wb['banned_files_lover_txt'] = 'Banned Files lover'; +$wb['bad_header_lover_txt'] = '異常ヘッダー許容者'; +$wb['add_new_record_txt'] = 'ポリシーを追加する。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users.lng new file mode 100644 index 0000000..815e723 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['priority_txt'] = '優先度'; +$wb['policy_id_txt'] = 'ポリシー'; +$wb['email_txt'] = 'メールアドレス(パターン)'; +$wb['fullname_txt'] = 'Name'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users_list.lng new file mode 100644 index 0000000..00459dc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'スパムフィルターユーザー'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'サーバー'; +$wb['priority_txt'] = '優先度'; +$wb['policy_id_txt'] = 'ポリシー'; +$wb['fullname_txt'] = 'Name'; +$wb['email_txt'] = 'メールアドレス'; +$wb['add_new_record_txt'] = 'スパムフィルターユーザーを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist.lng new file mode 100644 index 0000000..3e85cee --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'サーバー'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'ユーザー'; +$wb['email_txt'] = 'メールアドレス'; +$wb['priority_txt'] = '優先度'; +$wb['active_txt'] = '有効'; +$wb['limit_spamfilter_wblist_txt'] = 'ホワイトリストまたはブラックリストが最大数に達しました。'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..3600997 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ja_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'スパムフィルターホワイトリスト'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['priority_txt'] = '優先度'; +$wb['rid_txt'] = 'ユーザー'; +$wb['email_txt'] = 'ホワイトリストアドレス'; +$wb['add_new_record_txt'] = 'ホワイトリストを追加する'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl.lng b/interface/ispconfig/interface/mail/lib/lang/nl.lng new file mode 100644 index 0000000..b903ae5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Account aliassen'; +$wb['Email Blacklist'] = 'E-mail blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail content filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'E-mail domein'; +$wb['Domain'] = 'Domeinen'; +$wb['Domain Alias'] = 'Domeinaliassen'; +$wb['Email Catchall'] = 'Catch-all records'; +$wb['Email Forward'] = 'Doorstuur records'; +$wb['Get Email'] = 'Ontvang e-mail'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Routing'; +$wb['Email transport'] = 'E-mail transport'; +$wb['Mailbox'] = 'E-mailaccount'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail filter'; +$wb['Custom Rules'] = 'Aangepaste regels'; +$wb['Email filter'] = 'E-mail filter'; +$wb['Email Whitelist'] = 'E-mail whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Overige'; +$wb['Spamfilter users'] = 'Spamfilter gebruikers'; +$wb['Users'] = 'Gebruikers'; +$wb['Spamfilter Whitelist'] = 'Spamfilter whitelist'; +$wb['Email'] = 'E-mail'; +$wb['Email Mailbox'] = 'Accounts'; +$wb['Email Accounts'] = 'E-mail'; +$wb['User / Domain'] = 'Gebruiker / domein'; +$wb['Server Settings'] = 'Server instellingen'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'E-mailaccount dataverkeer'; +$wb['Statistics'] = 'Statistieken'; +$wb['Postfix Whitelist'] = 'Postfix whitelist'; +$wb['Postfix Blacklist'] = 'Postfix blacklist'; +$wb['Content Filter'] = 'Content filter'; +$wb['Global Filters'] = 'Globale filters'; +$wb['Relay Recipients'] = 'Relay ontvangers'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias.lng new file mode 100644 index 0000000..5ee3242 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['destination_txt'] = 'Doorsturen aan account'; +$wb['active_txt'] = 'Actief?'; +$wb['email_error_isemail'] = 'E-mailadres is ongeldig.'; +$wb['email_error_unique'] = 'E-mailadres is reeds toegevoegd.'; +$wb['no_domain_perm'] = 'U heeft geen toestemming voor het aanmaken van een alias op dit domein.'; +$wb['destination_error_isemail'] = 'E-mailadres geadresseerde is ongeldig.'; +$wb['limit_mailalias_txt'] = 'Het max. aantal e-mailaliassen voor uw account is bereikt.'; +$wb['duplicate_mailbox_txt'] = 'Er is al een e-mailaccount ingesteld op het door u gewenste adres.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias_list.lng new file mode 100644 index 0000000..28fe08f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'E-mail account aliassen'; +$wb['active_txt'] = 'Actief?'; +$wb['source_txt'] = 'Geadresseerde'; +$wb['destination_txt'] = 'Doorsturen naar account'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Nieuwe e-mailalias toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain.lng new file mode 100644 index 0000000..c6d8352 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Herkomst'; +$wb['destination_txt'] = 'Bestemming'; +$wb['active_txt'] = 'Actief?'; +$wb['no_domain_perm'] = 'U heeft geen toegang tot dit domein.'; +$wb['limit_mailaliasdomain_txt'] = 'Het maximum aantal e-mail domeinaliassen van uw account is bereikt.'; +$wb['source_destination_identical_txt'] = 'Herkomst en bestemming zijn hetzelfde.'; +$wb['source_error_empty'] = 'Herkomst is niet geselecteerd.'; +$wb['source_error_unique'] = 'Domeinnaam bij Herkomst is al elders gebruikt.'; +$wb['source_error_regex'] = 'Ongeldige herkomst domeinnaam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain_list.lng new file mode 100644 index 0000000..860e583 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'E-mail domeinaliassen'; +$wb['active_txt'] = 'Actief?'; +$wb['source_txt'] = 'Geadresseerd aan'; +$wb['destination_txt'] = 'Doorsturen naar'; +$wb['add_new_record_txt'] = 'Nieuwe domeinalias toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist.lng new file mode 100644 index 0000000..f3dd2f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklist adres'; +$wb['recipient_txt'] = 'Ontvanger'; +$wb['active_txt'] = 'Actief?'; +$wb['source_error_notempty'] = 'Adres is leeg.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'Het max. aantal e-mailfilters voor uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist_list.lng new file mode 100644 index 0000000..a44f067 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'E-mail blacklist'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklisted adres'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Ontvanger'; +$wb['add_new_record_txt'] = 'Nieuw blacklist record toevoegen'; +$wb['access_txt'] = 'Toegang'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter.lng new file mode 100644 index 0000000..97f102a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Patroon'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Actie'; +$wb['active_txt'] = 'Actief?'; +$wb['pattern_error_empty'] = 'Patroon is leeg.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter_list.lng new file mode 100644 index 0000000..bb92651 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix header en body checks'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Patroon'; +$wb['action_txt'] = 'Actie'; +$wb['add_new_record_txt'] = 'Nieuw content filter toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain.lng new file mode 100644 index 0000000..5fbdeac --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['type_txt'] = 'Type'; +$wb['active_txt'] = 'Actief?'; +$wb['domain_error_empty'] = 'Domeinnaam is leeg.'; +$wb['domain_error_unique'] = 'Domeinnaam is reeds aanwezig.'; +$wb['domain_error_regex'] = 'Ongeldige domeinnaam.'; +$wb['client_txt'] = 'Klant'; +$wb['limit_maildomain_txt'] = 'Het max. aantal aan e-maildomeinen voor uw account is bereikt.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- niet ingeschakeld -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall.lng new file mode 100644 index 0000000..d68f7d8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domeinnaam'; +$wb['destination_txt'] = 'Doorsturen naar account'; +$wb['active_txt'] = 'Actief?'; +$wb['domain_error_unique'] = 'Er is al een catch-all record voor dit domein.'; +$wb['no_domain_perm'] = 'U heeft geen toegangsrechten voor dit domein.'; +$wb['domain_error_regex'] = 'Ongeldige domeinnaam of het domein bevat ongeldige karakters.'; +$wb['limit_mailcatchall_txt'] = 'Het max. aantal e-mail catch-all accounts voor uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall_list.lng new file mode 100644 index 0000000..379f879 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'E-mail catch-all records'; +$wb['active_txt'] = 'Actief?'; +$wb['source_txt'] = 'Domeinnaam'; +$wb['destination_txt'] = 'Doorsturen naar account'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['add_new_record_txt'] = 'Nieuwe catch-all toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_list.lng new file mode 100644 index 0000000..0218e9c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'E-mail domeinen'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['add_new_record_txt'] = 'Nieuw domein toevoegen'; +$wb['active_txt'] = 'Actief?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward.lng new file mode 100644 index 0000000..180a138 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['destination_txt'] = 'Doorsturen naar e-mailadres'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_mailforward_txt'] = 'Het max. aantal email forwarders voor uw account is bereikt.'; +$wb['duplicate_mailbox_txt'] = 'Er is al een e-mailaccount aanwezig op het door u gewenste adres.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward_list.lng new file mode 100644 index 0000000..88cf50b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'E-mail doorsturen naar account'; +$wb['active_txt'] = 'Actief?'; +$wb['source_txt'] = 'Geadresseerde'; +$wb['destination_txt'] = 'Doorsturen naar e-mailadres'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Nieuwe e-mail forward toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_get.lng new file mode 100644 index 0000000..f5097af --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Inloggen met protocol'; +$wb['source_server_txt'] = 'POP3/IMAP server'; +$wb['source_username_txt'] = 'Gebruikersnaam'; +$wb['source_password_txt'] = 'Wachtwoord'; +$wb['source_delete_txt'] = 'E-mailberichten na ontvangst verwijderen'; +$wb['destination_txt'] = 'Doorsturen naar account'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_fetchmail_txt'] = 'Het max. aantal Fetchmail records voor uw domein is bereikt.'; +$wb['source_server_error_isempty'] = 'POP3/IMAP server is niet opgegeven.'; +$wb['source_username_error_isempty'] = 'Gebruikersnaam is leeg.'; +$wb['source_password_error_isempty'] = 'Wachtwoord is leeg.'; +$wb['destination_error_isemail'] = 'Er is geen bestemming geselecteerd.'; +$wb['source_server_error_regex'] = 'POP3/IMAP server is een ongeldig adres.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_get_list.lng new file mode 100644 index 0000000..e680ab1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'E-mails ophalen van externe POP3 / IMAP servers'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'Externe server'; +$wb['source_username_txt'] = 'Gebruikersnaam'; +$wb['destination_txt'] = 'Bestemming'; +$wb['add_new_record_txt'] = 'Nieuwe account toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient.lng new file mode 100644 index 0000000..68e0739 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay ontvanger'; +$wb['recipient_txt'] = 'Ontvanger'; +$wb['active_txt'] = 'Actief?'; +$wb['source_error_notempty'] = 'E-mailadres van de ontvanger is leeg.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'Het maximum aantal e-mailfilters van uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient_list.lng new file mode 100644 index 0000000..57e8323 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay ontvangers'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'E-mailadres verzender'; +$wb['recipient_txt'] = 'E-mailadres ontvanger'; +$wb['add_new_record_txt'] = 'Nieuwe relay ontvanger toevoegen'; +$wb['access_txt'] = 'Toegang'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter.lng new file mode 100644 index 0000000..707c6f7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['spam_rewrite_score_int_txt'] = 'Herschrijf score'; +$wb['spam_redirect_score_int_txt'] = 'Verplaats score'; +$wb['spam_delete_score_int_txt'] = 'Verwijdering score'; +$wb['spam_rewrite_subject_txt'] = 'Herschrijf onderwerp'; +$wb['spam_redirect_maildir_txt'] = 'Verplaats naar map'; +$wb['active_txt'] = 'Actief?'; +$wb['spam_rewrite_txt'] = 'Herschrijf e-mail onderwerp boven deze score.'; +$wb['spam_redirect_txt'] = 'Verplaats e-mail boven deze score naar de geselecteerde map.'; +$wb['spam_delete_txt'] = 'Verwijder e-mail boven deze score.'; +$wb['disable_txt'] = 'Hint: Om de filteroptie uit te schakelen, zet de score op 0.00.'; +$wb['email_error_isemail'] = 'E-mailadres is ongeldig.'; +$wb['email_error_unique'] = 'Er is al een spamfilter record voor dit e-mailadres.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Leeg map na'; +$wb['days_txt'] = 'dagen.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter_list.lng new file mode 100644 index 0000000..556cb5d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'Servernaam'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Spamfilter record toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport.lng new file mode 100644 index 0000000..447fde8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['destination_txt'] = 'Bestemming'; +$wb['type_txt'] = 'Type'; +$wb['mx_txt'] = 'MX lookup uitschakelen'; +$wb['sort_order_txt'] = 'Gesorteerd op'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_mailrouting_txt'] = 'Het max. aantal routes voor uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport_list.lng new file mode 100644 index 0000000..99f3d41 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Geavanceerde e-mail routing'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['transport_txt'] = 'Bestemming'; +$wb['sort_order_txt'] = 'Sorteren op'; +$wb['add_new_record_txt'] = 'Nieuw e-mail route toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user.lng new file mode 100644 index 0000000..85a08bb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Aangepaste mail-filter instellingen'; +$wb['email_txt'] = 'E-mail'; +$wb['cryptpwd_txt'] = 'Wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['active_txt'] = 'Actief?'; +$wb['email_error_isemail'] = 'E-mailadres is ongeldig.'; +$wb['email_error_unique'] = 'E-mailadres bestaat reeds.'; +$wb['autoresponder_text_txt'] = 'Tekst'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'U heeft geen toestemming om dit domein te beheren.'; +$wb['error_no_pwd'] = 'Wachtwoord is leeg.'; +$wb['quota_error_isint'] = 'Schijfruimte limiet e-mailaccount moet een numerieke waarde zijn.'; +$wb['quota_txt'] = 'Schijfruimte limiet'; +$wb['server_id_txt'] = 'Server ID'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Inschakelen ontvangen'; +$wb['access_txt'] = 'Inschakelen toegang'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- niet ingeschakeld -'; +$wb['limit_mailbox_txt'] = 'Het max. aantal aan e-mailaccounts voor uw account is bereikt.'; +$wb['limit_mailquota_txt'] = 'De max. ruimte voor e-mailaccounts is bereikt. De max. beschikbare ruimte in MB is'; +$wb['welcome_mail_subject'] = 'Welkom bij uw nieuwe e-mailaccount.'; +$wb['welcome_mail_message'] = 'Welkom in uw nieuwe e-mailaccount.'; +$wb['disableimap_txt'] = 'Uitschakelen IMAP'; +$wb['disablepop3_txt'] = 'Uitschakelen POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'Er is al een e-mailalias of een forward ingesteld voor dit e-mailadres.'; +$wb['quota_error_value'] = 'Ongeldige schijfruimte-limiet. Toegestaan zijn: -1 (onbeperkt) of cijfers (>1)'; +$wb['autoresponder_start_date_txt'] = 'Begin'; +$wb['autoresponder_start_date_isfuture'] = 'Begin-datum kan niet in het verleden liggen.'; +$wb['autoresponder_end_date_txt'] = 'Einde'; +$wb['autoresponder_end_date_isgreater'] = 'Eind-datum mag niet eerder zijn dan de begin-datum.'; +$wb['move_junk_txt'] = 'Verplaats SPAM naar map Ongewenste e-mail'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter.lng new file mode 100644 index 0000000..1a89f90 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Naam'; +$wb['action_txt'] = 'Actie'; +$wb['target_txt'] = 'Map'; +$wb['active_txt'] = 'Actief?'; +$wb['rulename_error_empty'] = 'Naam is leeg.'; +$wb['searchterm_is_empty'] = 'Zoekterm is leeg.'; +$wb['source_txt'] = 'Bron'; +$wb['target_error_regex'] = 'Het doel mag alleen deze tekens bevatten: a-z, 0-9, -, ., _, en {ruimte}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter_list.lng new file mode 100644 index 0000000..fc0af5b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Naam'; +$wb['add_new_record_txt'] = 'Filter toevoegen'; +$wb['page_txt'] = 'Pagina'; +$wb['page_of_txt'] = 'van'; +$wb['delete_confirmation'] = 'Weet u zeker dat u deze e-mailfilter wilt verwijderen?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_list.lng new file mode 100644 index 0000000..efd76bf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'E-mail accounts'; +$wb['email_txt'] = 'E-mail'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Nieuw e-mailaccount toevoegen'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_stats_list.lng new file mode 100644 index 0000000..7d9406b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'E-mail verkeer'; +$wb['email_txt'] = 'E-mailaccount'; +$wb['this_month_txt'] = 'Deze maand'; +$wb['last_month_txt'] = 'Vorige maand'; +$wb['this_year_txt'] = 'Dit jaar'; +$wb['last_year_txt'] = 'Vorig jaar'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist.lng new file mode 100644 index 0000000..8bdc7a7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelist adres'; +$wb['recipient_txt'] = 'Ontvanger'; +$wb['active_txt'] = 'Actief?'; +$wb['source_error_notempty'] = 'Adres is niet ingevuld.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'Het max. aantal e-mailfilters voor uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist_list.lng new file mode 100644 index 0000000..e9ed520 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'E-mail whitelist'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelisted adres'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Ontvanger'; +$wb['add_new_record_txt'] = 'Nieuw whitelist record toevoegen'; +$wb['access_txt'] = 'Toegang'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist.lng new file mode 100644 index 0000000..7c3d30c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Gebruiker'; +$wb['email_txt'] = 'E-mail'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_spamfilter_wblist_txt'] = 'Het max. aantal white- en blacklist-records van uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..adf40b9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter blacklist'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['rid_txt'] = 'Gebruiker'; +$wb['email_txt'] = 'Whitelisted e-mail'; +$wb['add_new_record_txt'] = 'Blacklist record toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config.lng new file mode 100644 index 0000000..7e487c9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Pad'; +$wb['ip_address_txt'] = 'IP Adres'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostnaam'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Pad'; +$wb['homedir_path_txt'] = 'Homedir Pad'; +$wb['mailuser_uid_txt'] = 'Mailgebruiker UID'; +$wb['mailuser_gid_txt'] = 'Mailgebruiker GID'; +$wb['mailuser_name_txt'] = 'Mailgebuiker Naam'; +$wb['mailuser_group_txt'] = 'Mailgebruiker Groep'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost Gebruiker'; +$wb['relayhost_password_txt'] = 'Relayhost Wachtwoord'; +$wb['mailbox_size_limit_txt'] = 'Mailboxgrootte Limiet'; +$wb['message_size_limit_txt'] = 'Berichtgrootte Limiet'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config_list.lng new file mode 100644 index 0000000..cbae14c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Serverconfiguratie'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server ID'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy.lng new file mode 100644 index 0000000..d2ea79d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Policy Naam'; +$wb['virus_lover_txt'] = 'Virus liefhebber'; +$wb['spam_lover_txt'] = 'SPAM liefhebber'; +$wb['banned_files_lover_txt'] = 'Banned bestand liefhebber'; +$wb['bad_header_lover_txt'] = 'Bad header liefhebber'; +$wb['bypass_virus_checks_txt'] = 'Omleiding virus checks'; +$wb['bypass_banned_checks_txt'] = 'Omleiding banned checks'; +$wb['bypass_header_checks_txt'] = 'Omleiding header checks'; +$wb['virus_quarantine_to_txt'] = 'Doorsturen virus naar e-mailadres'; +$wb['spam_quarantine_to_txt'] = 'Doorsturen spam naar e-mailadres'; +$wb['banned_quarantine_to_txt'] = 'Doorsturen banned naar e-mailadres'; +$wb['bad_header_quarantine_to_txt'] = 'Doorsturen bad header naar e-mailadres'; +$wb['clean_quarantine_to_txt'] = 'Doorsturen clean naar e-mailadres'; +$wb['other_quarantine_to_txt'] = 'Doorsturen overige naar e-mailadres'; +$wb['spam_tag_level_txt'] = 'SPAM tag niveau'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 niveau'; +$wb['spam_kill_level_txt'] = 'SPAM kill niveau'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff niveau'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff niveau'; +$wb['spam_modifies_subj_txt'] = 'SPAM onderwerp wijziging'; +$wb['spam_subject_tag_txt'] = 'SPAM onderwerp tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM onderwerp tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extensie virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extensie SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extensie banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr. extensie bad header'; +$wb['warnvirusrecip_txt'] = 'Waarschuw virus geadresseerde'; +$wb['warnbannedrecip_txt'] = 'Waarschuw banned geadresseerde'; +$wb['warnbadhrecip_txt'] = 'Waarschuw bad header geadresseerde'; +$wb['newvirus_admin_txt'] = 'Nieuw virus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Berichtgrootte limiet'; +$wb['banned_rulenames_txt'] = 'Verboden regelnaam'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy_list.lng new file mode 100644 index 0000000..139e395 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter policy'; +$wb['policy_name_txt'] = 'Naam'; +$wb['virus_lover_txt'] = 'Virus liefhebber'; +$wb['spam_lover_txt'] = 'Spam liefhebber'; +$wb['banned_files_lover_txt'] = 'Verbannen bestanden liefhebbers'; +$wb['bad_header_lover_txt'] = 'Verbannen header liefhebbers'; +$wb['add_new_record_txt'] = 'Policy record toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users.lng new file mode 100644 index 0000000..acf65d6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['policy_id_txt'] = 'Policy'; +$wb['email_txt'] = 'E-mail (patroon)'; +$wb['fullname_txt'] = 'Naam'; +$wb['local_txt'] = 'Lokaal'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users_list.lng new file mode 100644 index 0000000..51f6309 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter gebruikers'; +$wb['local_txt'] = 'Lokaal'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['policy_id_txt'] = 'Policy'; +$wb['fullname_txt'] = 'Naam'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Spamfilter gebruiker toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist.lng new file mode 100644 index 0000000..7c3d30c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Gebruiker'; +$wb['email_txt'] = 'E-mail'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_spamfilter_wblist_txt'] = 'Het max. aantal white- en blacklist-records van uw account is bereikt.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..aa4fe00 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/nl_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter whitelist'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioriteit'; +$wb['rid_txt'] = 'Gebruiker'; +$wb['email_txt'] = 'Whitelisted e-mail'; +$wb['add_new_record_txt'] = 'Whitelist record toevoegen'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl.lng b/interface/ispconfig/interface/mail/lib/lang/pl.lng new file mode 100644 index 0000000..2e9f8d9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Alias E-mail'; +$wb['Email Blacklist'] = 'Czarna lista E-mail'; +$wb['Blacklist'] = 'Czarna lista'; +$wb['Mail Content Filter'] = 'Zawartość filrtu E-mail'; +$wb['Filter'] = 'Filtr'; +$wb['Mail Domain'] = 'Domena E-mail'; +$wb['Domain'] = 'Domena'; +$wb['Email Catchall'] = 'E-mail Catchall'; +$wb['Email Forward'] = 'Przekierowanie E-mail'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Filtr spamu'; +$wb['Email Routing'] = 'Ścieżka E-mail'; +$wb['Email transport'] = 'Przenieś E-mail'; +$wb['Mailbox'] = 'Skrzynka pocztowa'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Filtr poczty'; +$wb['Custom Rules'] = 'Podstawowe zasady'; +$wb['Email filter'] = 'Filtr E-mail'; +$wb['Email Whitelist'] = 'Biała lista E-mail'; +$wb['Whitelist'] = 'Biała lista'; +$wb['Spamfilter blacklist'] = 'Filtr spamu czarnej listy'; +$wb['Spamfilter Config'] = 'konfiguracja filtrów spamu'; +$wb['Server'] = 'Serwer'; +$wb['Spamfilter policy'] = 'Polityka filtrów spamu'; +$wb['Policy'] = 'Polityka'; +$wb['Quarantine'] = 'Kwarantanna'; +$wb['Tag-Level'] = 'Poziom uchwytu'; +$wb['Other'] = 'Inny'; +$wb['Spamfilter users'] = 'Filtr spamu użytkowników'; +$wb['Users'] = 'Użytkownicy'; +$wb['Spamfilter Whitelist'] = 'Filtr spamu białej listy'; +$wb['Email'] = 'E-mail'; +$wb['Email Mailbox'] = 'Skrzynka pocztowa E-mail'; +$wb['Email Accounts'] = 'Konta E-mail'; +$wb['User / Domain'] = 'Użytkownik / Domena'; +$wb['Server Settings'] = 'Ustawienia serwera'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Ruch w skrzynce pocztowej'; +$wb['Statistics'] = 'Statystyki'; +$wb['Postfix Whitelist'] = 'Popraw białą listę'; +$wb['Postfix Blacklist'] = 'Popraw czarną listę'; +$wb['Content Filter'] = 'Zawartość filtru'; +$wb['Global Filters'] = 'Globalne filtry'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias.lng new file mode 100644 index 0000000..8556be8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['destination_txt'] = 'Opis'; +$wb['active_txt'] = 'Aktywny'; +$wb['email_error_isemail'] = 'Adres e-mail jest niepoprawny.'; +$wb['email_error_unique'] = 'Duplikat adresów e-mail.'; +$wb['no_domain_perm'] = 'Nie masz dostępu do tej domeny.'; +$wb['destination_error_isemail'] = 'Element docelowy adresów e-mail jest niepoprawny.'; +$wb['limit_mailalias_txt'] = 'Maksymalna ilość aliasów e-mail dla Twojego konta została przekroczona.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias_list.lng new file mode 100644 index 0000000..b6ce95d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aliasy E-mail'; +$wb['active_txt'] = 'Aktywny'; +$wb['source_txt'] = 'źródło'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Dodaj nowy alias e-mail'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist.lng new file mode 100644 index 0000000..528f2f7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['source_txt'] = 'Adres Czarnej listy'; +$wb['recipient_txt'] = 'Odbiorca'; +$wb['active_txt'] = 'Aktywny'; +$wb['source_error_notempty'] = 'Adres jest pusty.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Maksymalna ilość filtrów dla Twojego konta została przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist_list.lng new file mode 100644 index 0000000..ebef666 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Czarna lista E-mail'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['source_txt'] = 'Adresy wpisane na czarną listę'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'Odbiorca'; +$wb['add_new_record_txt'] = 'Dodaj nowy wpis czarnej listy'; +$wb['access_txt'] = 'dostęp'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter.lng new file mode 100644 index 0000000..54efa4f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['type_txt'] = 'Filtr'; +$wb['pattern_txt'] = 'Wyrażenie regularne, wzór'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Akcja'; +$wb['active_txt'] = 'Aktywny'; +$wb['pattern_error_empty'] = 'Wzór jest pusty.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter_list.lng new file mode 100644 index 0000000..6b0dd9b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Popraw nagłowek oraz stronę'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['pattern_txt'] = 'Wzór'; +$wb['action_txt'] = 'Akcja'; +$wb['add_new_record_txt'] = 'Dodaj nowy zbiór filtrów'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain.lng new file mode 100644 index 0000000..6f9c68c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['type_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktywny'; +$wb['domain_error_empty'] = 'Domena jest pusta.'; +$wb['domain_error_unique'] = 'Duplikat domeny.'; +$wb['domain_error_regex'] = 'Niepoprawna nazwa domeny.'; +$wb['client_txt'] = 'Klient'; +$wb['limit_maildomain_txt'] = 'Maksymalna ilość domen e-mail dla Twojego konta została perzekroczona.'; +$wb['policy_txt'] = 'Filtr spamu'; +$wb['no_policy'] = '-nie używane-'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall.lng new file mode 100644 index 0000000..c77cc73 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domena'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['active_txt'] = 'Aktywny'; +$wb['domain_error_unique'] = 'Jest już wpis Catchall dla tej domeny.'; +$wb['no_domain_perm'] = 'Nie masz dostępu do tej domeny.'; +$wb['domain_error_regex'] = 'Nieprawidłowa nazwa domeny. Domena zawiera niedozolone znaki.'; +$wb['limit_mailcatchall_txt'] = 'Maksymalna ilość kont e-mial catchall dla Twojej domeny została przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall_list.lng new file mode 100644 index 0000000..1f0aad1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'E-mail Catchall'; +$wb['active_txt'] = 'Aktywny'; +$wb['source_txt'] = 'źródło'; +$wb['destination_txt'] = 'Element docelowy adresu E-mail'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['add_new_record_txt'] = 'Dodaj nowy Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_list.lng new file mode 100644 index 0000000..ec51e2c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domena E-mail'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['add_new_record_txt'] = 'Dodaj nową domenę'; +$wb['active_txt'] = 'Aktywny'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward.lng new file mode 100644 index 0000000..4e100d6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['destination_txt'] = 'Element docelowy E-mail'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_mailforward_txt'] = 'Maksymalna ilość przekierowań e-mail dla Twojego konta została przekroczona.'; +$wb['duplicate_mailbox_txt'] = 'Istnieje już skrzynka pocztowa o podanym adresie e-mail'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward_list.lng new file mode 100644 index 0000000..1044bd5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Przekierowanie E-mail'; +$wb['active_txt'] = 'Aktywny'; +$wb['source_txt'] = 'źródło'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Dodaj nowe przekierowanie E-mail'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_get.lng new file mode 100644 index 0000000..66fe5a1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['type_txt'] = 'Typ'; +$wb['source_server_txt'] = 'Pop3/Imap Serwer'; +$wb['source_username_txt'] = 'Nazwa uzytkownika'; +$wb['source_password_txt'] = 'Hasło'; +$wb['source_delete_txt'] = 'Usuń adresy e-mail po odzyskaniu'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_fetchmail_txt'] = 'Maksymalna ilość wpisów Fetchmail dla Twojego konta została przekroczona.'; +$wb['source_server_error_isempty'] = 'Serwer jest pusty.'; +$wb['source_username_error_isempty'] = 'Nazwa użytkownika jest pusta.'; +$wb['source_password_error_isempty'] = 'Hasło jest puste.'; +$wb['destination_error_isemail'] = 'Nie wybrano elementu docelowego.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_get_list.lng new file mode 100644 index 0000000..cd473d9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Pokaż adresy e-mail z zewnętrznych serwerów POP3 / IMAP'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['source_server_txt'] = 'Zewnętrzny Serwer'; +$wb['source_username_txt'] = 'Nazwa użytkownika'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['add_new_record_txt'] = 'Dodaj nowe konto'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter.lng new file mode 100644 index 0000000..3879f24 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['spam_rewrite_score_int_txt'] = 'Popraw wynik'; +$wb['spam_redirect_score_int_txt'] = 'Przekieruj wynik'; +$wb['spam_delete_score_int_txt'] = 'Usuń wynik'; +$wb['spam_rewrite_subject_txt'] = 'Popraw temat'; +$wb['spam_redirect_maildir_txt'] = 'Przekieruj skrzynkę pocztową'; +$wb['active_txt'] = 'Aktywny'; +$wb['spam_rewrite_txt'] = 'Popraw temat wiadomości e-mail z tym wynikiem.'; +$wb['spam_redirect_txt'] = 'Przekieruj wiadomość e-mail z tym wynikiem do wybranej skrzynki pocztowej.'; +$wb['spam_delete_txt'] = 'Usuń wiadomość e-mail z tym wynikiem.'; +$wb['disable_txt'] = 'Podpowiedź: Aby wyłączyć opcje filtru, ustaw wynik na 0.00.'; +$wb['email_error_isemail'] = 'Adres e-mail jest niepoprawny.'; +$wb['email_error_unique'] = 'Istnieje już wpis z filtrem spamu dla tego adresu e-mail.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Wyczyść później Maildir'; +$wb['days_txt'] = 'Dni.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter_list.lng new file mode 100644 index 0000000..d6097bb --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Filtr spamu'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['server_name_txt'] = 'nazwa_serwera'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Dodaj nowy wpis z filtrem spamu'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport.lng new file mode 100644 index 0000000..035a5b0 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['destination_txt'] = 'Element docelowy'; +$wb['type_txt'] = 'Typ'; +$wb['mx_txt'] = 'Brak MX'; +$wb['sort_order_txt'] = 'Sortuj według'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_mailrouting_txt'] = 'Maksymalna ilość ścieżek dla Twojego konta została przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport_list.lng new file mode 100644 index 0000000..fa5c584 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Zaawansowane ścieżki E-mail'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['transport_txt'] = 'Przenieś'; +$wb['sort_order_txt'] = 'Sortuj według'; +$wb['add_new_record_txt'] = 'Dodaj nowe przeniesienie'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user.lng new file mode 100644 index 0000000..12f4f7e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Standardowy filtr e-mail'; +$wb['email_txt'] = 'E-mail'; +$wb['cryptpwd_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['active_txt'] = 'Aktywny'; +$wb['email_error_isemail'] = 'Adres e-mail jest niepoprawny.'; +$wb['email_error_unique'] = 'Duplikat adresu e-mail.'; +$wb['autoresponder_text_txt'] = 'Tekst'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'Nie masz dostępu do tej domeny.'; +$wb['error_no_pwd'] = 'Hasło jest puste.'; +$wb['quota_error_isint'] = 'Wielkość skrzynki pocztowej musi być liczbą.'; +$wb['quota_txt'] = 'Limit'; +$wb['server_id_txt'] = 'Serwer_id'; +$wb['password_txt'] = 'Hasło'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Możliwe otrzymywanie'; +$wb['access_txt'] = 'Możliwy dostęp'; +$wb['policy_txt'] = 'Filtr spamu'; +$wb['no_policy'] = '- nie dostępny -'; +$wb['limit_mailbox_txt'] = 'Maksymalna ilość skrzynek pocztowych dla Twojego konta została przekroczona.'; +$wb['limit_mailquota_txt'] = 'Maxymalna pojemność skrzynki pocztowej została przekroczona. Maksymalne dostępne miejsce w MB to: '; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'Witaj w swoim nowym koncie pocztowym.'; +$wb['welcome_mail_message'] = 'Witaj w swoim nowym koncie pocztowym. Admin.'; +$wb['disableimap_txt'] = 'Wyłącz IMAP'; +$wb['disablepop3_txt'] = 'Wyłącz POP3'; +$wb['duplicate_alias_or_forward_txt'] = 'Istnieje już alias lub przekierowanie dla tego adresu e-mail.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter.lng new file mode 100644 index 0000000..129fdae --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Nazwa'; +$wb['action_txt'] = 'Akcja'; +$wb['target_txt'] = 'Folder'; +$wb['active_txt'] = 'Aktywny'; +$wb['rulename_error_empty'] = 'Nazwa jest pusta.'; +$wb['searchterm_is_empty'] = 'Szukany termin jest pusty.'; +$wb['source_txt'] = 'Źródło'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter_list.lng new file mode 100644 index 0000000..cea7c44 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Nazwa'; +$wb['add_new_record_txt'] = 'Dodaj nowy filtr'; +$wb['page_txt'] = 'Strona'; +$wb['page_of_txt'] = 'z'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_list.lng new file mode 100644 index 0000000..287f520 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Skrzynka pocztowa'; +$wb['email_txt'] = 'E-mail'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Dodaj nową skrzynkę pocztową'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_stats_list.lng new file mode 100644 index 0000000..b978068 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Ruch wiadomości'; +$wb['email_txt'] = 'E-mail'; +$wb['this_month_txt'] = 'Ten miesiąc'; +$wb['last_month_txt'] = 'Ostatni miesiąc'; +$wb['this_year_txt'] = 'Ten rok'; +$wb['last_year_txt'] = 'Ostatni rok'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist.lng new file mode 100644 index 0000000..203c5ba --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['source_txt'] = 'Adres białej listy'; +$wb['recipient_txt'] = 'Odbiorca'; +$wb['active_txt'] = 'Aktywny'; +$wb['source_error_notempty'] = 'Adres jest pusty.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Maksymalna ilość filtrów e-mail dla Twojego konta zosała przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist_list.lng new file mode 100644 index 0000000..10e6dfc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'E-mail białej listy'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['source_txt'] = 'Adres dodany do białej listy'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'odbiorca'; +$wb['add_new_record_txt'] = 'Dodaj nowy wpis białej listy'; +$wb['access_txt'] = 'dostęp'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist.lng new file mode 100644 index 0000000..6da8ddc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Użytkownik'; +$wb['email_txt'] = 'E-mail'; +$wb['priority_txt'] = 'Priorytet'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_spamfilter_wblist_txt'] = 'Maksymalna ilość wpisów do białej i czarnej listy dla Twojego konta została przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..c237a7a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Filtr spamu czarnej listy'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['priority_txt'] = 'Priorytet'; +$wb['rid_txt'] = 'Użytkownik'; +$wb['email_txt'] = 'E-mail dodany do czarnej listy'; +$wb['add_new_record_txt'] = 'Dodaj wpis czarnej listy'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config.lng new file mode 100644 index 0000000..c750d95 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Ścieżka konfiguracyjna Getmail'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['netmask_txt'] = 'Maska'; +$wb['gateway_txt'] = 'Bramka'; +$wb['hostname_txt'] = 'Nazwa serwera'; +$wb['nameservers_txt'] = 'Nazwy serwerów'; +$wb['module_txt'] = 'Moduł serwera'; +$wb['maildir_path_txt'] = 'Ścieżka Maildir'; +$wb['homedir_path_txt'] = 'Ścieżka Homedir'; +$wb['mailuser_uid_txt'] = 'UID użytkownika e-mail'; +$wb['mailuser_gid_txt'] = 'GID użytkownika e-mail'; +$wb['mailuser_name_txt'] = 'Nazwa użytkownika e-mail'; +$wb['mailuser_group_txt'] = 'Grupa użytkownika e-mail'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Użytkownik Relayhost'; +$wb['relayhost_password_txt'] = 'Hasło Relayhost'; +$wb['mailbox_size_limit_txt'] = 'Limit wielkości skrzynki pocztowej'; +$wb['message_size_limit_txt'] = 'Limit wielkości wiadomości'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config_list.lng new file mode 100644 index 0000000..45b3f31 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Konfiguracja serwer'; +$wb['server_name_txt'] = 'Serwer'; +$wb['server_id_txt'] = 'id_serwera'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy.lng new file mode 100644 index 0000000..0e4df55 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Nazwa polityki'; +$wb['virus_lover_txt'] = 'Przyjmuj wirusy'; +$wb['spam_lover_txt'] = 'Przyjmuj SPAM'; +$wb['banned_files_lover_txt'] = 'Przyjmuj zablokowane pliki'; +$wb['bad_header_lover_txt'] = 'Przyjmuj złe nagłowki'; +$wb['bypass_virus_checks_txt'] = 'Omijaj zaznaczone jako wirus'; +$wb['bypass_banned_checks_txt'] = 'Omijaj zaznaczone jako zabrobione'; +$wb['bypass_header_checks_txt'] = 'Omijaj zaznaczone jako złe nagłowki'; +$wb['virus_quarantine_to_txt'] = 'Przekieruj wirusy na adres e-mail'; +$wb['spam_quarantine_to_txt'] = 'Przekieruj spam na adres e-mail'; +$wb['banned_quarantine_to_txt'] = 'Przekieruj zabronione na adres e-mail'; +$wb['bad_header_quarantine_to_txt'] = 'Przekieruj złe nagłowki na adres e-mail'; +$wb['clean_quarantine_to_txt'] = 'Przekieruj czyste na adres e-mail'; +$wb['other_quarantine_to_txt'] = 'Przekieruj inne na adres e-mail'; +$wb['spam_tag_level_txt'] = 'Poziom oznaczania spamu'; +$wb['spam_tag2_level_txt'] = 'Poziom oznaczania spamu 2'; +$wb['spam_kill_level_txt'] = 'Poziom usunięcia spamu'; +$wb['spam_dsn_cutoff_level_txt'] = 'Poziom spam przy którym nastąpi odcięcie dns'; +$wb['spam_quarantine_cutoff_level_txt'] = 'Poziom spam przy którym nastąpi odcięcie kwarantanny'; +$wb['spam_modifies_subj_txt'] = 'Modyfikacja tematu'; +$wb['spam_subject_tag_txt'] = 'Przedrostek tematu ze spamem'; +$wb['spam_subject_tag2_txt'] = 'Przedrostek tematu ze spamem 2'; +$wb['addr_extension_virus_txt'] = 'Przedrostek z informacją o wirusie'; +$wb['addr_extension_spam_txt'] = 'Przedrostek z informacją o spamie'; +$wb['addr_extension_banned_txt'] = 'Przedrostek z informacją o zablokowanej treści'; +$wb['addr_extension_bad_header_txt'] = 'Przedrostek z informacją o złych nagłówkach'; +$wb['warnvirusrecip_txt'] = 'Ostrzeż odbiorcę o wirusie'; +$wb['warnbannedrecip_txt'] = 'Ostrzeż odbiorcę o zablokowanej trści'; +$wb['warnbadhrecip_txt'] = 'Ostrzeż odbiorcę o złych nagłówkach'; +$wb['newvirus_admin_txt'] = 'Admin obsługi nowych wirusów'; +$wb['virus_admin_txt'] = 'Admin obsługi wirusów'; +$wb['banned_admin_txt'] = 'Admin obłsugi zablokowanych treści'; +$wb['bad_header_admin_txt'] = 'Admin obsługi złych nagłowków'; +$wb['spam_admin_txt'] = 'Admin obsługi spamu'; +$wb['message_size_limit_txt'] = 'Limit wielkości wiadomości'; +$wb['banned_rulenames_txt'] = 'Zabrobione nazwy zasad'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy_list.lng new file mode 100644 index 0000000..43d9d41 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Polityka filtrów spamu'; +$wb['policy_name_txt'] = 'Nazwa'; +$wb['virus_lover_txt'] = 'Przyjmuj wirusy'; +$wb['spam_lover_txt'] = 'Przyjmuj spam'; +$wb['banned_files_lover_txt'] = 'Przyjmuj zablokowane pliki'; +$wb['bad_header_lover_txt'] = 'Przyjmuj złe nagłowki'; +$wb['add_new_record_txt'] = 'Dodaj wpis plityki'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users.lng new file mode 100644 index 0000000..573f9be --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['priority_txt'] = 'Priorytet'; +$wb['policy_id_txt'] = 'Polityka'; +$wb['email_txt'] = 'Email (Wzór)'; +$wb['fullname_txt'] = 'Nazwa'; +$wb['local_txt'] = 'Lokalne'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users_list.lng new file mode 100644 index 0000000..dde2a62 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Filtr spamu użytkowników'; +$wb['local_txt'] = 'Lokalny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['priority_txt'] = 'Priorytet'; +$wb['policy_id_txt'] = 'Polityka'; +$wb['fullname_txt'] = 'Nazwa'; +$wb['email_txt'] = 'E-mail'; +$wb['add_new_record_txt'] = 'Dodaj filtr spamu użytkownika'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist.lng new file mode 100644 index 0000000..be83601 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Użytkownik'; +$wb['email_txt'] = 'E-mail'; +$wb['priority_txt'] = 'Priorytet'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_spamfilter_wblist_txt'] = 'Maksymalna liczba wpisów białej lub czarnej listy została przekroczona.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..6517cf4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pl_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Filtrs spamu białej listy'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['priority_txt'] = 'Priorytet'; +$wb['rid_txt'] = 'Użytkownik'; +$wb['email_txt'] = 'Adres e-mail dodany do białej listy'; +$wb['add_new_record_txt'] = 'Dodaj wpis do białej listy'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/pt.lng b/interface/ispconfig/interface/mail/lib/lang/pt.lng new file mode 100644 index 0000000..2c051ce --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt.lng @@ -0,0 +1,48 @@ +<?php +$wb['Email Alias'] = 'Aliases de Correio'; +$wb['Email Blacklist'] = 'Lista Negra de Correio'; +$wb['Blacklist'] = 'Lista Negra'; +$wb['Mail Content Filter'] = 'Filtro de Conteúdo de Correio'; +$wb['Filter'] = 'Filtro'; +$wb['Mail Domain'] = 'Domínio de Correio'; +$wb['Domain'] = 'Domínio'; +$wb['Email Catchall'] = 'Correio Catchall'; +$wb['Email Forward'] = 'Encaminhamento de Correio'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Filtro Spam'; +$wb['Email Routing'] = 'Rota de Correio'; +$wb['Email transport'] = 'Transporte de Correio'; +$wb['Mailbox'] = 'Caixa de Correio'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Filtro de Correio'; +$wb['Custom Rules'] = 'Regras Personalizadas'; +$wb['Email filter'] = 'Filtro de Correio'; +$wb['Email Whitelist'] = 'Lista Branca de Correio'; +$wb['Whitelist'] = 'Lista Branca'; +$wb['Spamfilter blacklist'] = 'Filtro Spam (Lista Negra)'; +$wb['Spamfilter Config'] = 'Configuração do Filtro Spam'; +$wb['Server'] = 'Servidor'; +$wb['Spamfilter policy'] = 'Políticas de Filtro Spam'; +$wb['Policy'] = 'Política'; +$wb['Quarantine'] = 'Quarentena'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Outros'; +$wb['Spamfilter users'] = 'Utilizadores de Filtro Spam'; +$wb['Users'] = 'Utilizadores'; +$wb['Spamfilter Whitelist'] = 'Filtro Spam Lista Branca'; +$wb['Email'] = 'Correio'; +$wb['Email Mailbox'] = 'Caixa de Correio'; +$wb['Email Accounts'] = 'Contas de Correio'; +$wb['User / Domain'] = 'Utilizador / Domínio'; +$wb['Server Settings'] = 'Configurações do Servidor'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Tráfego de Correio'; +$wb['Statistics'] = 'Estatísticas'; +$wb['Postfix Whitelist'] = 'Postfix (Lista Branca)'; +$wb['Postfix Blacklist'] = 'Postfix (Lista Negra)'; +$wb['Content Filter'] = 'Filtros de Conteúdo'; +$wb['Global Filters'] = 'Filtros Globais'; +$wb['Domain Alias'] = 'Domínios Alias'; +$wb['Relay Recipients'] = 'Recipientes de Relay'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias.lng new file mode 100644 index 0000000..abb37dc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias.lng @@ -0,0 +1,12 @@ +<?php +$wb['email_txt'] = 'Correio'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activo'; +$wb['email_error_isemail'] = 'Endereço de correio inválido.'; +$wb['email_error_unique'] = 'Endereço de correio duplicado.'; +$wb['no_domain_perm'] = 'Não tem permissão para este domínio.'; +$wb['destination_error_isemail'] = 'Endereço de destino inválido'; +$wb['limit_mailalias_txt'] = 'O número máximo de aliases para a conta foi atingido.'; +$wb['duplicate_mailbox_txt'] = 'Já existe uma caixa de correio com este endereço.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias_list.lng new file mode 100644 index 0000000..7c5c9e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_alias_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Aliases de Correio'; +$wb['active_txt'] = 'Activo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adicionar Alias'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain.lng new file mode 100644 index 0000000..f98f59e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain.lng @@ -0,0 +1,12 @@ +<?php +$wb['source_txt'] = 'Origem'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activo'; +$wb['no_domain_perm'] = 'Não tem permissão para este domínio.'; +$wb['limit_mailaliasdomain_txt'] = 'O número máximo de domínios aliases para a conta foi atingido.'; +$wb['source_destination_identical_txt'] = 'Origem e Destino são os mesmos.'; +$wb['source_error_empty'] = 'Domínio de origem está em branco.'; +$wb['source_error_unique'] = 'Domínio de origem duplicado.'; +$wb['source_error_regex'] = 'Nome do domínio de origem inválido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain_list.lng new file mode 100644 index 0000000..5187206 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_aliasdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Domínio Alias'; +$wb['active_txt'] = 'Activo'; +$wb['source_txt'] = 'Origem'; +$wb['destination_txt'] = 'Destino'; +$wb['add_new_record_txt'] = 'Adicionar Domínio Alias'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist.lng new file mode 100644 index 0000000..5a2da4f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Lista Negra'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Activo'; +$wb['source_error_notempty'] = 'Endereço em branco.'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros de correio para a conta foi atingido..'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist_list.lng new file mode 100644 index 0000000..efb50b1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_blacklist_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Correio Lista Negra'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Correio na lista negra'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adicionar novo registo à lista'; +$wb['access_txt'] = 'acesso'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter.lng new file mode 100644 index 0000000..39c0a61 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Filtro'; +$wb['pattern_txt'] = 'Padrão de Expressão Regular.'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Acção'; +$wb['active_txt'] = 'Activo'; +$wb['pattern_error_empty'] = 'Padrão em branco'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter_list.lng new file mode 100644 index 0000000..e81fded --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_content_filter_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Cabeçalhos Postfix e Body Checks'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['pattern_txt'] = 'Padrão'; +$wb['action_txt'] = 'Acção'; +$wb['add_new_record_txt'] = 'Adicionar Filtro de Conteúdo'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain.lng new file mode 100644 index 0000000..ec01a7e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain.lng @@ -0,0 +1,14 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['active_txt'] = 'Activo'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Domínio duplicado'; +$wb['domain_error_regex'] = 'Nome de domínio inválido'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_maildomain_txt'] = 'O número máximo de contas de correio eletrônico para este domínio foi atingido.'; +$wb['policy_txt'] = 'Filtro Anti-Spam'; +$wb['no_policy'] = '- desactivado -'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall.lng new file mode 100644 index 0000000..3a18b2f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall.lng @@ -0,0 +1,10 @@ +<?php +$wb['domain_txt'] = 'Domínio'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activo'; +$wb['domain_error_unique'] = 'Já existe um registo de Catchall para este domínio.'; +$wb['no_domain_perm'] = 'Não tem permissão para este domínio.'; +$wb['domain_error_regex'] = 'O nome do domínio contém caracteres inválidos'; +$wb['limit_mailcatchall_txt'] = 'O número máximo de catchall para este domínio foi atingido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall_list.lng new file mode 100644 index 0000000..f23bc67 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_catchall_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Catch-all de Correio'; +$wb['active_txt'] = 'Activo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Endereço de destino'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adicionar Catch-all'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_list.lng new file mode 100644 index 0000000..6a493a1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Domínio de Correio'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adicionar Domínio'; +$wb['active_txt'] = 'Activo'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward.lng new file mode 100644 index 0000000..9acc18a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward.lng @@ -0,0 +1,8 @@ +<?php +$wb['email_txt'] = 'Correio'; +$wb['destination_txt'] = 'Correio de Destino'; +$wb['active_txt'] = 'Activo'; +$wb['limit_mailforward_txt'] = 'O número máximo de encaminhamentos para a conta foi atingido.'; +$wb['duplicate_mailbox_txt'] = 'Já existe uma caixa de correio com este endereço.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward_list.lng new file mode 100644 index 0000000..db6622f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_forward_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Encaminhamento de Correio'; +$wb['active_txt'] = 'Activo'; +$wb['source_txt'] = 'origem'; +$wb['destination_txt'] = 'Destino'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adicionar Encaminhamento'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_get.lng new file mode 100644 index 0000000..0d86fe6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_get.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['source_server_txt'] = 'Servidor Pop3/Imap'; +$wb['source_username_txt'] = 'Utilizador '; +$wb['source_password_txt'] = 'Senha'; +$wb['source_delete_txt'] = 'Remover mensagens da origem após a recepção'; +$wb['destination_txt'] = 'Destino'; +$wb['active_txt'] = 'Activo'; +$wb['limit_fetchmail_txt'] = 'O número máximo de Fetchmail para a conta foi atingido.'; +$wb['source_server_error_isempty'] = 'Servidor em branco.'; +$wb['source_username_error_isempty'] = 'Utilizador em branco.'; +$wb['source_password_error_isempty'] = 'Senha em branco.'; +$wb['destination_error_isemail'] = 'Destino não seleccionado.'; +$wb['source_server_error_regex'] = 'Servidor Pop3/Imap não é um nome de domínio válido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_get_list.lng new file mode 100644 index 0000000..3ec9b26 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_get_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Fetch de mensagens de um servidor POP3 / IMAP'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_server_txt'] = 'Servidor Externo'; +$wb['source_username_txt'] = 'Utilizador '; +$wb['destination_txt'] = 'Destino'; +$wb['add_new_record_txt'] = 'Adicionar Conta'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient.lng new file mode 100644 index 0000000..fe741e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Recipiente de Relay'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Activo'; +$wb['source_error_notempty'] = 'Endereço em branco.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros para esta conta já foi atingido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient_list.lng new file mode 100644 index 0000000..4e2ca4c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_relay_recipient_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Recipientes Relay'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Recipiente'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adicionar Recipiente Relay'; +$wb['access_txt'] = 'acesso'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter.lng new file mode 100644 index 0000000..580c204 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter.lng @@ -0,0 +1,18 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Pontução de Rewrite'; +$wb['spam_redirect_score_int_txt'] = 'Pontuação de Redireccionamento'; +$wb['spam_delete_score_int_txt'] = 'Remover Pontuação'; +$wb['spam_rewrite_subject_txt'] = 'Re-escrever assunto'; +$wb['spam_redirect_maildir_txt'] = 'Redireccionar Caixa de Correio'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Re-escrever assunto da mensagem depois desta pontuação.'; +$wb['spam_redirect_txt'] = 'Redireccione esta mensagem depois desta pontuação para esta caixa postal'; +$wb['spam_delete_txt'] = 'Remover esta mensagem depois desta pontuação.'; +$wb['disable_txt'] = 'Dica: Para desactivar uma opção de filtro, configure a pontuação como 0.00.'; +$wb['email_error_isemail'] = 'Endereço de correio inválido.'; +$wb['email_error_unique'] = 'Já existem registos de spamfilter para esta caixa de correio.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Remover Maildir depois'; +$wb['days_txt'] = 'Dias.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter_list.lng new file mode 100644 index 0000000..03ef40d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_spamfilter_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Filtro Anti-Spam'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['server_name_txt'] = 'nome_servidor'; +$wb['email_txt'] = 'Correio'; +$wb['add_new_record_txt'] = 'Adicionar Filtro anti-spam'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport.lng new file mode 100644 index 0000000..c749a81 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['destination_txt'] = 'Destino'; +$wb['type_txt'] = 'Tipo'; +$wb['mx_txt'] = 'Sem MX lookup'; +$wb['sort_order_txt'] = 'Ordenar por'; +$wb['active_txt'] = 'Activo'; +$wb['limit_mailrouting_txt'] = 'O número máximo de rotas para a conta foi atingido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport_list.lng new file mode 100644 index 0000000..4313658 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_transport_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Rota Avançada de Correio'; +$wb['active_txt'] = 'Activa'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['transport_txt'] = 'Transporte'; +$wb['sort_order_txt'] = 'Ordenar por'; +$wb['add_new_record_txt'] = 'Adicionar Transporte'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user.lng new file mode 100644 index 0000000..939dade --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user.lng @@ -0,0 +1,40 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Formula de filtro de correio'; +$wb['email_txt'] = 'Correio'; +$wb['cryptpwd_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Tamanho da Senha'; +$wb['active_txt'] = 'Activo'; +$wb['email_error_isemail'] = 'Endereço de Correio Inválido.'; +$wb['email_error_unique'] = 'Endereço de Correio Duplicado.'; +$wb['autoresponder_text_txt'] = 'Texto'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'Sem permissão para este domínio.'; +$wb['error_no_pwd'] = 'Senha em branco.'; +$wb['quota_error_isint'] = 'O tamanho da caixa de correio deve ser um número.'; +$wb['quota_txt'] = 'Cota'; +$wb['server_id_txt'] = 'Aerver_id'; +$wb['password_txt'] = 'Senha'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Permitir Recepção'; +$wb['access_txt'] = 'Permitir Acesso'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- desactivado -'; +$wb['limit_mailbox_txt'] = 'O número máximo de caixas de correio para a conta foi atingido.'; +$wb['limit_mailquota_txt'] = 'O espaço em disco disponível para criação de contas foi atingido.'; +$wb['welcome_mail_fromname_txt'] = 'LAsi'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'Nova conta de correio.'; +$wb['welcome_mail_message'] = 'Parabéns a conta de correio foi criada.'; +$wb['disableimap_txt'] = 'Desactivar IMAP'; +$wb['disablepop3_txt'] = 'Desactivar POP3'; +$wb['duplicate_alias_or_forward_txt'] = 'Já existe um alias ou encaminhamento com este endereço de correio.'; +$wb['quota_error_value'] = 'Valor de cota inválido. Valores válidos são: 0 para ilimitado ou números > 1'; +$wb['autoresponder_start_date_txt'] = 'Início:'; +$wb['autoresponder_start_date_isfuture'] = 'A data de ínicio não pode estar no passado.'; +$wb['autoresponder_end_date_txt'] = 'Termino:'; +$wb['autoresponder_end_date_isgreater'] = 'A data de início deve ser menor que a data de termino.'; +$wb['move_junk_txt'] = 'Mover Spam para a pasta JUNK'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter.lng new file mode 100644 index 0000000..7554389 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter.lng @@ -0,0 +1,11 @@ +<?php +$wb['rulename_txt'] = 'Nome'; +$wb['action_txt'] = 'Acção'; +$wb['target_txt'] = 'Pasta'; +$wb['active_txt'] = 'Activo'; +$wb['rulename_error_empty'] = 'Nome está em branco.'; +$wb['searchterm_is_empty'] = 'Termo de busca em branco.'; +$wb['source_txt'] = 'Origem'; +$wb['target_error_regex'] = 'O alvo só pode conter os caracteres: a-z, 0-9, -, . e _'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter_list.lng new file mode 100644 index 0000000..f0075f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['rulename_txt'] = 'Nome'; +$wb['add_new_record_txt'] = 'Adicionar Filtro'; +$wb['page_txt'] = 'Página'; +$wb['page_of_txt'] = 'de'; +$wb['delete_confirmation'] = 'Tem a certeza que deseja remover este mailfilter?'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_list.lng new file mode 100644 index 0000000..6150045 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Caixa de Correio'; +$wb['email_txt'] = 'Correio'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Adicionar nova caixa de correio'; +$wb['name_txt'] = 'Realname'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_stats_list.lng new file mode 100644 index 0000000..bb8a6a4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_user_stats_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Tráfego de Correio'; +$wb['email_txt'] = 'Correio'; +$wb['this_month_txt'] = 'Este Mês'; +$wb['last_month_txt'] = 'Último Mês'; +$wb['this_year_txt'] = 'Este Ano'; +$wb['last_year_txt'] = 'Último Ano'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist.lng new file mode 100644 index 0000000..6853a4b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereço Lista Branca'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['active_txt'] = 'Activo'; +$wb['source_error_notempty'] = 'Endereço em Branco.'; +$wb['type_txt'] = 'Tipo'; +$wb['limit_mailfilter_txt'] = 'O número máximo de filtros para a conta foi atingido.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist_list.lng new file mode 100644 index 0000000..1ec69a3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_mail_whitelist_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Correio Lista Branca'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['source_txt'] = 'Endereços na Lista Branca'; +$wb['type_txt'] = 'Tipo'; +$wb['recipient_txt'] = 'Recipiente'; +$wb['add_new_record_txt'] = 'Adicionar Endereço'; +$wb['access_txt'] = 'acesso'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist.lng new file mode 100644 index 0000000..16b8bc6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Utilizador '; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Prioridade'; +$wb['active_txt'] = 'Activo'; +$wb['limit_spamfilter_wblist_txt'] = 'O número máximo de registos de lista negra / branca foi atingido para esta conta.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..b93d91b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Lista Negra'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['rid_txt'] = 'Utilizador '; +$wb['email_txt'] = 'Correio na Lista Negra'; +$wb['add_new_record_txt'] = 'Adicionar novo registo à lista'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config.lng new file mode 100644 index 0000000..5d2d639 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config.lng @@ -0,0 +1,21 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Pasta de Configuração Getmail '; +$wb['ip_address_txt'] = 'Endereço IP'; +$wb['netmask_txt'] = 'Mascara de Rede'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Servidor de Nomes'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Pasta Maildir'; +$wb['homedir_path_txt'] = 'Pasta Homedir'; +$wb['mailuser_uid_txt'] = 'Utilizador de Correio UID'; +$wb['mailuser_gid_txt'] = 'Utilizador de Correio GID'; +$wb['mailuser_name_txt'] = 'Nome do Utilizador de Correio'; +$wb['mailuser_group_txt'] = 'Grupo do Utilizador de Correio'; +$wb['relayhost_txt'] = 'Host Relay'; +$wb['relayhost_user_txt'] = 'Utilizador Host Relay'; +$wb['relayhost_password_txt'] = 'Senha Host Relay'; +$wb['mailbox_size_limit_txt'] = 'Tamanho Caixa de Correio'; +$wb['message_size_limit_txt'] = 'Tamanho da Mensagem'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config_list.lng new file mode 100644 index 0000000..9857bc7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_config_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Configurações do Servidor'; +$wb['server_name_txt'] = 'Servidor'; +$wb['server_id_txt'] = 'id_servidor'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy.lng new file mode 100644 index 0000000..18df72b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy.lng @@ -0,0 +1,39 @@ +<?php +$wb['policy_name_txt'] = 'Nome da Regra'; +$wb['virus_lover_txt'] = 'Permitir Vírus'; +$wb['spam_lover_txt'] = 'Permitir SPAM'; +$wb['banned_files_lover_txt'] = 'Permitir Extensões Banidas'; +$wb['bad_header_lover_txt'] = 'Permitir Bad header'; +$wb['bypass_virus_checks_txt'] = 'Bypassar checagem de vírus'; +$wb['bypass_banned_checks_txt'] = 'Bypassar checagem de banimento'; +$wb['bypass_header_checks_txt'] = 'Bypassar checagem de header'; +$wb['virus_quarantine_to_txt'] = 'Encaminhar o vírus para o correio'; +$wb['spam_quarantine_to_txt'] = 'Encaminhar o spam para o correio'; +$wb['banned_quarantine_to_txt'] = 'Encaminhar banimento para o correio'; +$wb['bad_header_quarantine_to_txt'] = 'Encaminhar bad header para o correio'; +$wb['clean_quarantine_to_txt'] = 'Encaminhamento limpo para o correio'; +$wb['other_quarantine_to_txt'] = 'Encaminhar para outro correio'; +$wb['spam_tag_level_txt'] = 'Nível 1 de marcação de SPAM'; +$wb['spam_tag2_level_txt'] = 'Nível 1 de marcação de SPAM'; +$wb['spam_kill_level_txt'] = 'Nível kill de SPAM'; +$wb['spam_dsn_cutoff_level_txt'] = 'Nível de corte de dns SPAM'; +$wb['spam_quarantine_cutoff_level_txt'] = 'Nível de corte de quarentena SPAM'; +$wb['spam_modifies_subj_txt'] = 'Modificar assunto de mensagem com SPAM'; +$wb['spam_subject_tag_txt'] = 'Marcação de assunto SPAM 1'; +$wb['spam_subject_tag2_txt'] = 'Marcação de assunto SPAM 1'; +$wb['addr_extension_virus_txt'] = 'Addr. extensão de virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extensão de SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extensão de banimento'; +$wb['addr_extension_bad_header_txt'] = 'Addr extensão de bad header'; +$wb['warnvirusrecip_txt'] = 'Aviso de recipiente de vírus.'; +$wb['warnbannedrecip_txt'] = 'Aviso de recipiente de banimento.'; +$wb['warnbadhrecip_txt'] = 'Aviso de recipiente de bad header.'; +$wb['newvirus_admin_txt'] = 'Administrador Novo vírus'; +$wb['virus_admin_txt'] = 'Administrador Vírus'; +$wb['banned_admin_txt'] = 'Administrador de banimento'; +$wb['bad_header_admin_txt'] = 'Administrador de Bad header'; +$wb['spam_admin_txt'] = 'Administrador SPAM'; +$wb['message_size_limit_txt'] = 'Tamanho limite da mensagem'; +$wb['banned_rulenames_txt'] = 'Regras de Banimento'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy_list.lng new file mode 100644 index 0000000..7675b1d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_policy_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Políticas de Spam'; +$wb['policy_name_txt'] = 'Nome'; +$wb['virus_lover_txt'] = 'Permitir Virus'; +$wb['spam_lover_txt'] = 'Permitir Spam'; +$wb['banned_files_lover_txt'] = 'Permitir Extensões Banidas'; +$wb['bad_header_lover_txt'] = 'Permitir Bad Header'; +$wb['add_new_record_txt'] = 'Adicionar Registo'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users.lng new file mode 100644 index 0000000..aa8eea9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['policy_id_txt'] = 'Política'; +$wb['email_txt'] = 'Correio (Padrão)'; +$wb['fullname_txt'] = 'Nome'; +$wb['local_txt'] = 'Local'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users_list.lng new file mode 100644 index 0000000..b2398dd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_users_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Filtro Anti-Spam Utilizadores'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['policy_id_txt'] = 'Políticas'; +$wb['fullname_txt'] = 'Nome'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adicionar Utilizador '; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist.lng new file mode 100644 index 0000000..092bf34 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Utilizador '; +$wb['email_txt'] = 'Correio Eletrônico'; +$wb['priority_txt'] = 'Prioridade'; +$wb['active_txt'] = 'Activo'; +$wb['limit_spamfilter_wblist_txt'] = 'O número máximo de registos da lista branca / negra foi atingido para esta conta.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..b5b68ba --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/pt_spamfilter_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Lista Branca'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['priority_txt'] = 'Prioridade'; +$wb['rid_txt'] = 'Utilizador '; +$wb['email_txt'] = 'Correio na lista branca'; +$wb['add_new_record_txt'] = 'Adicionar um novo correio'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ro.lng b/interface/ispconfig/interface/mail/lib/lang/ro.lng new file mode 100644 index 0000000..f9ad4e6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Filtru Mail Content '; +$wb['Filter'] = 'Filtru'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Reguli personalizate'; +$wb['Email filter'] = 'Filtru Email '; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Carantina'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Altele'; +$wb['Spamfilter users'] = 'Useri Spamfilter '; +$wb['Users'] = 'Useri'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Conturi Email '; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Setari'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistici'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Filtre Content '; +$wb['Global Filters'] = 'Filtre Global'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias.lng new file mode 100644 index 0000000..dbc2f7a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destinatie'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Adresa Email invlida'; +$wb['email_error_unique'] = 'Duplicat Emailaddress.'; +$wb['no_domain_perm'] = 'NU aveti permisiunea pe acest Domain'; +$wb['destination_error_isemail'] = 'Destinatie Emailaddress invalida.'; +$wb['limit_mailalias_txt'] = 'Ati atins numarul maxim de alias-uri pentru contul dumneavoastra '; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias_list.lng new file mode 100644 index 0000000..e9f37c8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'sursa'; +$wb['destination_txt'] = 'Destinatie'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adauga Email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain.lng new file mode 100644 index 0000000..241eb64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["limit_mailaliasdomain_txt"] = 'The max. number of email alias domains for your account is reached.'; +$wb["source_destination_identical_txt"] = 'Source and target Domain are the same.'; +$wb["source_error_empty"] = 'Source Domain is empty.'; +$wb["source_error_unique"] = 'Duplicate source Domain.'; +$wb["source_error_regex"] = 'Invalid source domain name.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain_list.lng new file mode 100644 index 0000000..8ebfa7d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_aliasdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Domain alias'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["source_txt"] = 'Source'; +$wb["add_new_record_txt"] = 'Add new Domain alias'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist.lng new file mode 100644 index 0000000..a0feb78 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Blacklist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address este goala'; +$wb['type_txt'] = 'Tip'; +$wb['limit_mailfilter_txt'] = 'Numarul maxim de filtre pentru contul dumneavoastra'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist_list.lng new file mode 100644 index 0000000..b0342fc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'addrese in Blacklist '; +$wb['type_txt'] = 'Tip'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Adauga inregistrare in Blacklist '; +$wb['access_txt'] = 'acces'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter.lng new file mode 100644 index 0000000..d6f2d8c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Actiune'; +$wb['active_txt'] = 'Active'; +$wb['pattern_error_empty'] = 'Pattern este gol'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter_list.lng new file mode 100644 index 0000000..8cd0f83 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Header si Body Checks'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Pattern'; +$wb['action_txt'] = 'Action'; +$wb['add_new_record_txt'] = 'Add Content Filter'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain.lng new file mode 100644 index 0000000..ce579c2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeniu'; +$wb['type_txt'] = 'Tip'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_empty'] = 'Domeniu necompletat'; +$wb['domain_error_unique'] = 'Domeniu duplicat'; +$wb['domain_error_regex'] = 'Nume de domeniu invalid'; +$wb['client_txt'] = 'Client'; +$wb['limit_maildomain_txt'] = 'Numarul maxuim de conturi email-uri pe contul dumenavoastra a fost atins The max. number of email domains for your account is reached.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall.lng new file mode 100644 index 0000000..9b7134d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destinatie'; +$wb['active_txt'] = 'Active'; +$wb['domain_error_unique'] = 'exista deja un CATCHALL activ pe domeniu'; +$wb['no_domain_perm'] = 'nu aveti drepturi pe acest domeniu'; +$wb['domain_error_regex'] = 'nume de domeniu invalid sau caractere nepermise'; +$wb['limit_mailcatchall_txt'] = 'numarul maxim de CATCHALL pe contul dumneavoatra a fost atins'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall_list.lng new file mode 100644 index 0000000..362af94 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'surse'; +$wb['destination_txt'] = 'Destinatie email address'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Adauga un nou Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_list.lng new file mode 100644 index 0000000..600eefc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add Domain nou'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward.lng new file mode 100644 index 0000000..f75e396 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Email Destinatar '; +$wb['active_txt'] = 'Active'; +$wb['limit_mailforward_txt'] = 'Numarul maxim de FORWARD pentru contul dumneavoastra a fost atins'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward_list.lng new file mode 100644 index 0000000..620cb0d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail Forward'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'sursa'; +$wb['destination_txt'] = 'Destinatie'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adauga Email forward'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_get.lng new file mode 100644 index 0000000..7a8ea8e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Tip'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'Username'; +$wb['source_password_txt'] = 'Password'; +$wb['source_delete_txt'] = 'Sterge email dupa preluare '; +$wb['destination_txt'] = 'Destinatie'; +$wb['active_txt'] = 'Active'; +$wb['limit_fetchmail_txt'] = 'Numarul maxim de FETCHMAIL a fost atins pentru contul dumneavoastra'; +$wb['source_server_error_isempty'] = 'Server este necompletat'; +$wb['source_username_error_isempty'] = 'Username este necompletat'; +$wb['source_password_error_isempty'] = 'Password este necompletat'; +$wb['destination_error_isemail'] = 'Nici o destinatie nu e selectata'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_get_list.lng new file mode 100644 index 0000000..dcfa65c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Scoate mail de pe conturi externe pop3 / imap'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'Server Extern '; +$wb['source_username_txt'] = 'Username'; +$wb['destination_txt'] = 'Destinatie'; +$wb['add_new_record_txt'] = 'Adauga cont nou'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient.lng new file mode 100644 index 0000000..fdec9ab --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Relay recipient'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient_list.lng new file mode 100644 index 0000000..44cd894 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Relay recipients'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Recipient address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new relay recipient'; +$wb["access_txt"] = 'access'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter.lng new file mode 100644 index 0000000..ce7b3a9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Rescrie scor'; +$wb['spam_redirect_score_int_txt'] = 'Redirect scor'; +$wb['spam_delete_score_int_txt'] = 'Delete scor'; +$wb['spam_rewrite_subject_txt'] = 'Rescrie subiect'; +$wb['spam_redirect_maildir_txt'] = 'Redirect mailbox'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Rescrie email subiect peste acest scor'; +$wb['spam_redirect_txt'] = 'Redirect email peste acest scor catre mailbox. selectat'; +$wb['spam_delete_txt'] = 'Sterge email peste scor'; +$wb['disable_txt'] = 'Hint: Pentru anulare optiunea filtrare , seteaza scor la 0.00.'; +$wb['email_error_isemail'] = 'Adresa Email este invalida'; +$wb['email_error_unique'] = 'Deja este un filtru spam pe aceasta adresa'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purge Maildir dupa'; +$wb['days_txt'] = 'Zile.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter_list.lng new file mode 100644 index 0000000..f398413 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'server_nume'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adauga inregistrare Spamfilter '; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport.lng new file mode 100644 index 0000000..6693e9f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destinatie'; +$wb['type_txt'] = 'Tip'; +$wb['mx_txt'] = 'Fara MX lookup'; +$wb['sort_order_txt'] = 'Sortare pe '; +$wb['active_txt'] = 'Active'; +$wb['limit_mailrouting_txt'] = 'numarul maxim de rute pentru contul dumneavoastra a fost atins'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport_list.lng new file mode 100644 index 0000000..5775d27 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Rutare Email avansata'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Sortare pe'; +$wb['add_new_record_txt'] = 'Adauga un nou transport'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user.lng new file mode 100644 index 0000000..1992811 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Schema (recipe) personalizata mail filter '; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Tarie Password '; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address este invalida'; +$wb['email_error_unique'] = 'Duplicate Email_ address.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'Nu aveti permisiuni pe acest domeniu'; +$wb['error_no_pwd'] = 'Password e necompletat'; +$wb['quota_error_isint'] = 'Marimea Mailbox trebuie s afie un numar'; +$wb['quota_txt'] = 'Quota'; +$wb['server_id_txt'] = 'Server_id'; +$wb['password_txt'] = 'Password'; +$wb['maildir_txt'] = 'Maildir'; +$wb['postfix_txt'] = 'Enable Receiving'; +$wb['access_txt'] = 'Enable Access'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +$wb['limit_mailbox_txt'] = 'Numarul maxim de MAILBOX pe contul dumneavoastra a fost atins'; +$wb['limit_mailquota_txt'] = 'Spatiul maxim pentru MAILBOX a fost atins.Acesta este '; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'Bine ati sosit in contul dumneavoastra'; +$wb['welcome_mail_message'] = 'Bine ati sosit la contul de mail. al dumneavoastra webmaster.'; +$wb['disableimap_txt'] = 'Blocheaza IMAP'; +$wb['disablepop3_txt'] = 'Blocheaza POP3'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['duplicate_alias_or_forward_txt'] = 'There is already an alias or forwrd with this email address.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter.lng new file mode 100644 index 0000000..5442a3d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Nume'; +$wb['action_txt'] = 'Actiune'; +$wb['target_txt'] = 'Folder'; +$wb['active_txt'] = 'Active'; +$wb['rulename_error_empty'] = 'Nume e gol'; +$wb['searchterm_is_empty'] = 'Cautare termeni e gol'; +$wb['source_txt'] = 'Sursa'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter_list.lng new file mode 100644 index 0000000..d0df167 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Nume'; +$wb['add_new_record_txt'] = 'Adauga filtru nou'; +$wb['page_txt'] = 'Pagina'; +$wb['page_of_txt'] = 'din'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_list.lng new file mode 100644 index 0000000..6d45a92 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox (casuta postala)'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Adauga Mailbox (casuta postala)'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_stats_list.lng new file mode 100644 index 0000000..525483d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail trafic'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Luna aceasta'; +$wb['last_month_txt'] = 'Ultima luna'; +$wb['this_year_txt'] = 'Anul acesta'; +$wb['last_year_txt'] = 'Ultimul an'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist.lng new file mode 100644 index 0000000..7a3f9f5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Addresa e necompletata'; +$wb['type_txt'] = 'Tip'; +$wb['limit_mailfilter_txt'] = 'numarul maxim de filtre pe contul dumneavoastra a fost atins'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist_list.lng new file mode 100644 index 0000000..e2ab48b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Whitelisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Adauga inregistrare Whitelist '; +$wb['access_txt'] = 'acces'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist.lng new file mode 100644 index 0000000..f24efb5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Prioritate'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..de9cbc9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioritate'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Blacklist Email'; +$wb['add_new_record_txt'] = 'Adauga inregistrare Blacklist '; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config.lng new file mode 100644 index 0000000..1ed8aac --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservere'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config_list.lng new file mode 100644 index 0000000..0590011 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = ' Configuratie Server'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy.lng new file mode 100644 index 0000000..3645b3e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Nume Policy '; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'SPAM lover'; +$wb['banned_files_lover_txt'] = 'Banned file lover'; +$wb['bad_header_lover_txt'] = ' header lover'; +$wb['bypass_virus_checks_txt'] = 'Bypass verificare virus '; +$wb['bypass_banned_checks_txt'] = 'Bypass verificari tip banned '; +$wb['bypass_header_checks_txt'] = 'Bypass verificari header '; +$wb['virus_quarantine_to_txt'] = 'Forward virus catre email'; +$wb['spam_quarantine_to_txt'] = 'Forward spam to email'; +$wb['banned_quarantine_to_txt'] = 'Forward banned catre email'; +$wb['bad_header_quarantine_to_txt'] = 'Forward header defect la email'; +$wb['clean_quarantine_to_txt'] = 'Forward curatare catre email'; +$wb['other_quarantine_to_txt'] = 'Forward altele catre email'; +$wb['spam_tag_level_txt'] = 'SPAM tag level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 level'; +$wb['spam_kill_level_txt'] = 'SPAM kill level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM carantina cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifica subiect'; +$wb['spam_subject_tag_txt'] = 'SPAM subiect tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subiect tag2'; +$wb['addr_extension_virus_txt'] = 'Adresa. extensie virus'; +$wb['addr_extension_spam_txt'] = 'Adresa extensie SPAM'; +$wb['addr_extension_banned_txt'] = 'Adresa extensie banned'; +$wb['addr_extension_bad_header_txt'] = 'Adresa extensie header defect'; +$wb['warnvirusrecip_txt'] = 'Warn virus recipient.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Nou virus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = ' header defect admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned nume reguli'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy_list.lng new file mode 100644 index 0000000..d72f802 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Policy'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'Spam lover'; +$wb['banned_files_lover_txt'] = 'Banned Files lover'; +$wb['bad_header_lover_txt'] = 'Bad Header lover'; +$wb['add_new_record_txt'] = 'Adauga inregistrare Policy '; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users.lng new file mode 100644 index 0000000..d07cd49 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioritate'; +$wb['policy_id_txt'] = 'Policy'; +$wb['email_txt'] = 'Email (Pattern)'; +$wb['fullname_txt'] = 'Nume'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users_list.lng new file mode 100644 index 0000000..fb352a1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Useri'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioritate'; +$wb['policy_id_txt'] = 'Policy'; +$wb['fullname_txt'] = 'Nume'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Adauga Spamfilter User'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist.lng new file mode 100644 index 0000000..f24efb5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Prioritate'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..adb312d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ro_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Prioritate'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Adauga inregistrare Whitelist '; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/ru.lng b/interface/ispconfig/interface/mail/lib/lang/ru.lng new file mode 100644 index 0000000..eaeaf4d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru.lng @@ -0,0 +1,48 @@ +<?php +$wb['Email Alias'] = 'Алиас Email'; +$wb['Email Blacklist'] = 'Черный список email'; +$wb['Blacklist'] = 'Черный список'; +$wb['Mail Content Filter'] = 'Почтовый фильтр контента'; +$wb['Filter'] = 'Фильтр'; +$wb['Mail Domain'] = 'Почтовый домен'; +$wb['Domain'] = 'Домен'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Пересылка Email'; +$wb['Get Email'] = 'Получить Email'; +$wb['Spamfilter'] = 'Спам-фильтр'; +$wb['Email Routing'] = 'Маршруты Email'; +$wb['Email transport'] = 'Транспорты Email'; +$wb['Mailbox'] = 'Почтовый ящик'; +$wb['Autoresponder'] = 'Автоответ'; +$wb['Mail Filter'] = 'Почтовый фильтр'; +$wb['Custom Rules'] = 'Свои правила'; +$wb['Email filter'] = 'Фильтр почты'; +$wb['Email Whitelist'] = 'Белый списокEmail'; +$wb['Whitelist'] = 'Белый список'; +$wb['Spamfilter blacklist'] = 'Черный список спам-фильтра'; +$wb['Spamfilter Config'] = 'Конфиг спам-фильтра'; +$wb['Server'] = 'Сервер'; +$wb['Spamfilter policy'] = 'Правлиа спам-фильтра'; +$wb['Policy'] = 'Правила'; +$wb['Quarantine'] = 'Карантин'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Другое'; +$wb['Spamfilter users'] = 'Пользователи спам-фильтра'; +$wb['Users'] = 'Пользователи'; +$wb['Spamfilter Whitelist'] = 'Белый список спам-фильтра'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Почтовый ящик'; +$wb['Email Accounts'] = 'Почтовые аккаунты'; +$wb['User / Domain'] = 'Пользователи/Домены'; +$wb['Server Settings'] = 'Установки сервера'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Почтовый трафик'; +$wb['Statistics'] = 'Статистика'; +$wb['Postfix Whitelist'] = 'Белый список Postfix'; +$wb['Postfix Blacklist'] = 'Черный список Postfix'; +$wb['Content Filter'] = 'Контент-фильтры'; +$wb['Global Filters'] = 'Глобальные фильтры'; +$wb['Domain Alias'] = 'Алиасы доменов'; +$wb['Relay Recipients'] = 'Relay получатели'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias.lng new file mode 100644 index 0000000..31408f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias.lng @@ -0,0 +1,12 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['email_error_isemail'] = 'Почтовый адрес неправилен.'; +$wb['email_error_unique'] = 'Почтовый адрес дублируется.'; +$wb['no_domain_perm'] = 'Вы не имеете прав для этого домена.'; +$wb['destination_error_isemail'] = 'Email получателя неправилен.'; +$wb['limit_mailalias_txt'] = 'Максимальное число алиасов достигнуто.'; +$wb['duplicate_mailbox_txt'] = 'Ящик с таким e-mail уже существует'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias_list.lng new file mode 100644 index 0000000..079c769 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_alias_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email алиас'; +$wb['active_txt'] = 'Активен?'; +$wb['source_txt'] = 'Отправитель'; +$wb['destination_txt'] = 'Получатель'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Добавить новый Email алиас'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain.lng new file mode 100644 index 0000000..10f6db6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain.lng @@ -0,0 +1,12 @@ +<?php +$wb['source_txt'] = 'Исходный'; +$wb['destination_txt'] = 'Назначение'; +$wb['active_txt'] = 'Активен?'; +$wb['no_domain_perm'] = 'У вас нет прав на этот домен.'; +$wb['limit_mailaliasdomain_txt'] = 'Достигнуто макс. количество почтовых алиасов для домена.'; +$wb['source_destination_identical_txt'] = 'Исходный и конечный домены одинаковые.'; +$wb['source_error_empty'] = 'Исходный домен пустой.'; +$wb['source_error_unique'] = 'Дублирование исходного домена.'; +$wb['source_error_regex'] = 'Неверное имя исходного домена.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain_list.lng new file mode 100644 index 0000000..cfc1338 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_aliasdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Алиас домена'; +$wb['active_txt'] = 'Активен?'; +$wb['source_txt'] = 'Исходный'; +$wb['destination_txt'] = 'Назначение'; +$wb['add_new_record_txt'] = 'Добавить алиас'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist.lng new file mode 100644 index 0000000..e0136d2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Черный список адресов'; +$wb['recipient_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['source_error_notempty'] = 'Адрес пустой!'; +$wb['type_txt'] = 'Тип'; +$wb['limit_mailfilter_txt'] = 'Максимальное число почтовых фильтров достигнуто.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist_list.lng new file mode 100644 index 0000000..2397416 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_blacklist_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Черный список email'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Черный список адресов'; +$wb['type_txt'] = 'Тип'; +$wb['recipient_txt'] = 'Получатель'; +$wb['add_new_record_txt'] = 'Добавить новую запись в чернрый список'; +$wb['access_txt'] = 'доступ'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter.lng new file mode 100644 index 0000000..74514c3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['type_txt'] = 'Фильтр'; +$wb['pattern_txt'] = 'Шаблон (Regexp.)'; +$wb['data_txt'] = 'Дата'; +$wb['action_txt'] = 'Действие'; +$wb['active_txt'] = 'Активен?'; +$wb['pattern_error_empty'] = 'Шаблон пустой.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter_list.lng new file mode 100644 index 0000000..f392584 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_content_filter_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Проверка заголовков и тела письма Postfix'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['pattern_txt'] = 'Шаблон'; +$wb['action_txt'] = 'Действие'; +$wb['add_new_record_txt'] = 'Добавить новый контентный фильтр'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain.lng new file mode 100644 index 0000000..1ce7bcf --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain.lng @@ -0,0 +1,14 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['type_txt'] = 'Тип'; +$wb['active_txt'] = 'Активен?'; +$wb['domain_error_empty'] = 'Домен пустой.'; +$wb['domain_error_unique'] = 'Домен дублирован.'; +$wb['domain_error_regex'] = 'Неправильное имя домена.'; +$wb['client_txt'] = 'Клиент'; +$wb['limit_maildomain_txt'] = 'Максимальное число почтовых доменов, достигнуто.'; +$wb['policy_txt'] = 'Спам-фильтр'; +$wb['no_policy'] = '- не включено -'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall.lng new file mode 100644 index 0000000..c33e7ed --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall.lng @@ -0,0 +1,10 @@ +<?php +$wb['domain_txt'] = 'Домен'; +$wb['destination_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['domain_error_unique'] = 'Уже есть Catchall запись для этого домена.'; +$wb['no_domain_perm'] = 'Вы не имеете прав для этого домена.'; +$wb['domain_error_regex'] = 'Неправльная запись или неразрешенные символы.'; +$wb['limit_mailcatchall_txt'] = 'Максимальное число catchall записей, достигнуто.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall_list.lng new file mode 100644 index 0000000..53fba7f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_catchall_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Активен?'; +$wb['source_txt'] = 'Отправитель'; +$wb['destination_txt'] = 'Email адрес получателя'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['add_new_record_txt'] = 'Добавить Catchall'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_list.lng new file mode 100644 index 0000000..d791191 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Почтовый домен'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['add_new_record_txt'] = 'Добавить новый домен'; +$wb['active_txt'] = 'Активен?'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward.lng new file mode 100644 index 0000000..91c8de4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward.lng @@ -0,0 +1,8 @@ +<?php +$wb['email_txt'] = 'E-mail'; +$wb['destination_txt'] = 'Получатель E-mail'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_mailforward_txt'] = 'Максимальное число forwarders достигнуто.'; +$wb['duplicate_mailbox_txt'] = 'Ящик с таким именем уже существует'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward_list.lng new file mode 100644 index 0000000..6fbccc2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_forward_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Пересылка почты'; +$wb['active_txt'] = 'Активен?'; +$wb['source_txt'] = 'Отправитель'; +$wb['destination_txt'] = 'Получатель'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Добавить новую Email пересылку'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_get.lng new file mode 100644 index 0000000..d1df0ca --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_get.lng @@ -0,0 +1,17 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['type_txt'] = 'Тип'; +$wb['source_server_txt'] = 'Pop3/Imap Сервер'; +$wb['source_username_txt'] = 'Пользовательname'; +$wb['source_password_txt'] = 'Пароль'; +$wb['source_delete_txt'] = 'Удалить emails после поиска'; +$wb['destination_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_fetchmail_txt'] = 'Максимальное число Fetchmail записей, достигнуто.'; +$wb['source_server_error_isempty'] = 'Пустой сервер.'; +$wb['source_username_error_isempty'] = 'Пустой логин.'; +$wb['source_password_error_isempty'] = 'Пустой пароль.'; +$wb['destination_error_isemail'] = 'Не выбран получатель.'; +$wb['source_server_error_regex'] = 'Неверное доменное имя для сервера Pop3/Imap.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_get_list.lng new file mode 100644 index 0000000..6243568 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_get_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Получить почту с внешнего POP3/IMAP сервера'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['source_server_txt'] = 'Внешний сервер'; +$wb['source_username_txt'] = 'Пользовательname'; +$wb['destination_txt'] = 'Получатель'; +$wb['add_new_record_txt'] = 'Добавить новый счет'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient.lng new file mode 100644 index 0000000..f01fe73 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Relay получатель'; +$wb['recipient_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['source_error_notempty'] = 'Пустой адрес.'; +$wb['type_txt'] = 'Тип'; +$wb['limit_mailfilter_txt'] = 'Достигнуто макс. количество почтовых фильтров для вашего аккаунта.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient_list.lng new file mode 100644 index 0000000..e319641 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_relay_recipient_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Relay получатели'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Адрес получателя'; +$wb['recipient_txt'] = 'Получатель'; +$wb['add_new_record_txt'] = 'Добавить нового relay получателя'; +$wb['access_txt'] = 'доступ'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter.lng new file mode 100644 index 0000000..4b9003b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter.lng @@ -0,0 +1,18 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Баллы перезаписи'; +$wb['spam_redirect_score_int_txt'] = 'Баллы перенаправления'; +$wb['spam_delete_score_int_txt'] = 'Удалить баллы'; +$wb['spam_rewrite_subject_txt'] = 'Перезаписать тему'; +$wb['spam_redirect_maildir_txt'] = 'Перенаправить ящик'; +$wb['active_txt'] = 'Активен?'; +$wb['spam_rewrite_txt'] = 'Перезаписать тему сообщения, если баллов больше.'; +$wb['spam_redirect_txt'] = 'Пересылать почту в указанный ящик, если баллов больше.'; +$wb['spam_delete_txt'] = 'Удалить почту, если баллов больше.'; +$wb['disable_txt'] = 'Подсказка: для отключения фильтра установите баллы в 0.00.'; +$wb['email_error_isemail'] = 'Почтовый адрес неправилен.'; +$wb['email_error_unique'] = 'Уже есть запись спам-фильтра для этого адреса.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Очищать Maildir после'; +$wb['days_txt'] = 'дней.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter_list.lng new file mode 100644 index 0000000..60ea0a8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_spamfilter_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['server_name_txt'] = 'Имя сервера'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Добавить новую спам запись'; +$wb['list_head_txt'] = 'Спам-фильтр'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport.lng new file mode 100644 index 0000000..8120616 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport.lng @@ -0,0 +1,11 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['destination_txt'] = 'Получатель'; +$wb['type_txt'] = 'Тип'; +$wb['mx_txt'] = 'Не просматривать MX'; +$wb['sort_order_txt'] = 'Сортировать по'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_mailrouting_txt'] = 'Достигнуто макс. количество маршрутов для вашего аккаунта.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport_list.lng new file mode 100644 index 0000000..7a83161 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_transport_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Расширенная маршрутизация почты'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['transport_txt'] = 'Транспорт'; +$wb['sort_order_txt'] = 'Сортировать по'; +$wb['add_new_record_txt'] = 'Добавить новый транспорт'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user.lng new file mode 100644 index 0000000..e704e5b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user.lng @@ -0,0 +1,42 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Custom mail filter recipe'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Пароль'; +$wb['active_txt'] = 'Активен?'; +$wb['email_error_isemail'] = 'Почтовый адрес неправилен.'; +$wb['email_error_unique'] = 'Email дублируется.'; +$wb['autoresponder_text_txt'] = 'Текст'; +$wb['autoresponder_txt'] = 'Автоответчик'; +$wb['no_domain_perm'] = 'Вы не имеете разрешений для этого домена.'; +$wb['error_no_pwd'] = 'Пароль пустой.'; +$wb['quota_error_isint'] = 'Размер должен быть цифрой.'; +$wb['quota_txt'] = 'квота in MB'; +$wb['server_id_txt'] = 'server_id'; +$wb['password_txt'] = 'пароль'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Разрешить получение'; +$wb['access_txt'] = 'Включить доступ'; +$wb['policy_txt'] = 'Спам-фильтр'; +$wb['no_policy'] = '- не включено -'; +$wb['limit_mailbox_txt'] = 'Число почтовых ящиков превышено.'; +$wb['limit_mailquota_txt'] = 'Место под почтовые ящики превышено. Максимально доступно MB'; +$wb['welcome_mail_subject'] = 'Добро пожаловать в ваш новый счет электронной почты.'; +$wb['welcome_mail_message'] = 'Добро пожаловать в ваш новый счет электронной почты. + +Ваш вебмастер.'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['disableimap_txt'] = 'Запретить IMAP'; +$wb['disablepop3_txt'] = 'Запретить POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'info@youdomain.com'; +$wb['duplicate_alias_or_forward_txt'] = 'Алиас или пересылка уже существуют для этого адреса.'; +$wb['quota_error_value'] = 'Неверное значение квоты. Допустимые значения: 0 не ограничено, или число больше 1'; +$wb['autoresponder_start_date_txt'] = 'Запускать'; +$wb['autoresponder_start_date_isfuture'] = 'Дата запуска не может быть в прошлом.'; +$wb['autoresponder_end_date_txt'] = 'Окончание'; +$wb['autoresponder_end_date_isgreater'] = 'Дата окончания должна быть позже даты запуска.'; +$wb['move_junk_txt'] = 'Перемещать спам в директорию Junk'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter.lng new file mode 100644 index 0000000..2c4ec75 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter.lng @@ -0,0 +1,11 @@ +<?php +$wb['rulename_txt'] = 'Имя'; +$wb['action_txt'] = 'Действие'; +$wb['target_txt'] = 'Каталог'; +$wb['active_txt'] = 'Активен?'; +$wb['rulename_error_empty'] = 'Имя пустое.'; +$wb['searchterm_is_empty'] = 'Поле поиска пустое.'; +$wb['source_txt'] = 'Источник'; +$wb['target_error_regex'] = 'Назначение может содержать только следующие символы: a-z, 0-9, -, . и _'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter_list.lng new file mode 100644 index 0000000..31cdd36 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['rulename_txt'] = 'Имя'; +$wb['add_new_record_txt'] = 'Добавить новый Фильтр'; +$wb['page_txt'] = 'Страница'; +$wb['page_of_txt'] = 'из'; +$wb['delete_confirmation'] = 'Вы действительно хотите удалить почтовый фильтр?'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_list.lng new file mode 100644 index 0000000..50504e9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Почтовый ящик'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Автоответчик'; +$wb['add_new_record_txt'] = 'Добавить новый ящик'; +$wb['name_txt'] = 'Realname'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_stats_list.lng new file mode 100644 index 0000000..8d2d0a5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_user_stats_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Mail трафик'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Этот месяц'; +$wb['last_month_txt'] = 'Последний месяц'; +$wb['this_year_txt'] = 'Этот год'; +$wb['last_year_txt'] = 'Последний год'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist.lng new file mode 100644 index 0000000..b2da250 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Белый список адресов'; +$wb['recipient_txt'] = 'Получатель'; +$wb['active_txt'] = 'Активен?'; +$wb['source_error_notempty'] = 'Адрес пустой.'; +$wb['type_txt'] = 'Тип'; +$wb['limit_mailfilter_txt'] = 'Максимальное число почтовых фильтров записей, достигнуто.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist_list.lng new file mode 100644 index 0000000..9d1bc96 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_mail_whitelist_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Белый список email'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['source_txt'] = 'Адреса белого списка'; +$wb['type_txt'] = 'Тип'; +$wb['recipient_txt'] = 'Получатель'; +$wb['add_new_record_txt'] = 'Добавить новую запись в белый список'; +$wb['access_txt'] = 'доступ'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist.lng new file mode 100644 index 0000000..2254ce9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Пользователь'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Приоритет'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс. чило белых/черных списков для вашего аккаунта достигнуто.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..2a9bad5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Черный список спам-фильтра'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['priority_txt'] = 'Приоритет'; +$wb['rid_txt'] = 'Пользователь'; +$wb['email_txt'] = 'Белый список адресов'; +$wb['add_new_record_txt'] = 'Добавить запись в черный список'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config.lng new file mode 100644 index 0000000..96ab7c2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config.lng @@ -0,0 +1,21 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Путь конфигов Getmail'; +$wb['ip_address_txt'] = 'IP адрес'; +$wb['netmask_txt'] = 'Сетевая маска'; +$wb['gateway_txt'] = 'Шлюз'; +$wb['hostname_txt'] = 'Имя узла'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Сервер Модуль'; +$wb['maildir_path_txt'] = 'Maildir путь'; +$wb['homedir_path_txt'] = 'Homedir путь'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser имя'; +$wb['mailuser_group_txt'] = 'Mailuser группа'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost пользователь'; +$wb['relayhost_password_txt'] = 'Relayhost пароль'; +$wb['mailbox_size_limit_txt'] = 'Лимит объема почтового ящика'; +$wb['message_size_limit_txt'] = 'Лимит объема сообщения'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config_list.lng new file mode 100644 index 0000000..8d7fb32 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_config_list.lng @@ -0,0 +1,6 @@ +<?php +$wb['list_head_txt'] = 'Конфигурация сервера'; +$wb['server_name_txt'] = 'Сервер'; +$wb['server_id_txt'] = 'server_id'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy.lng new file mode 100644 index 0000000..39c0843 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy.lng @@ -0,0 +1,39 @@ +<?php +$wb['policy_name_txt'] = 'Имя правила'; +$wb['virus_lover_txt'] = 'Любитель вирусов'; +$wb['spam_lover_txt'] = 'Любитель спама'; +$wb['banned_files_lover_txt'] = 'Лбюитель запрещенных файлов'; +$wb['bad_header_lover_txt'] = 'Любитель кривых заголовков'; +$wb['bypass_virus_checks_txt'] = 'Обойти проверку на вирусы'; +$wb['bypass_banned_checks_txt'] = 'Обойти проверку забаненых'; +$wb['bypass_header_checks_txt'] = 'Обойти проверку заголовков'; +$wb['virus_quarantine_to_txt'] = 'Передать вирус на email'; +$wb['spam_quarantine_to_txt'] = 'Передать spam на email'; +$wb['banned_quarantine_to_txt'] = 'Передать заблокированный на email'; +$wb['bad_header_quarantine_to_txt'] = 'Передать плохой заголовок email'; +$wb['clean_quarantine_to_txt'] = 'Переслать чистое письмо на email'; +$wb['other_quarantine_to_txt'] = 'Переслать остальное на email'; +$wb['spam_tag_level_txt'] = 'SPAM уровень 1'; +$wb['spam_tag2_level_txt'] = 'SPAM уровень 2'; +$wb['spam_kill_level_txt'] = 'SPAM уровень удаления'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn уровень остановки'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM модифицированная тема'; +$wb['spam_subject_tag_txt'] = 'SPAM тема 1'; +$wb['spam_subject_tag2_txt'] = 'SPAM тема 2'; +$wb['addr_extension_virus_txt'] = 'Адрес - вирус'; +$wb['addr_extension_spam_txt'] = 'Адрес - SPAM'; +$wb['addr_extension_banned_txt'] = 'Адрес - забанен'; +$wb['addr_extension_bad_header_txt'] = 'Адрес - кривые заголовки'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Забаненый получатель.'; +$wb['warnbadhrecip_txt'] = ' Аккуратно, кривой заголовок получателя.'; +$wb['newvirus_admin_txt'] = 'Админ: новый вирус'; +$wb['virus_admin_txt'] = 'Админ: вирус'; +$wb['banned_admin_txt'] = 'Админ: забанен'; +$wb['bad_header_admin_txt'] = 'Админ: кривые заголовки'; +$wb['spam_admin_txt'] = 'Админ: SPAM'; +$wb['message_size_limit_txt'] = 'Превышен размер сообщения'; +$wb['banned_rulenames_txt'] = 'Правила банов'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy_list.lng new file mode 100644 index 0000000..e629986 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_policy_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Политика антиспам'; +$wb['policy_name_txt'] = 'Имя'; +$wb['virus_lover_txt'] = 'Любитель вирусов'; +$wb['spam_lover_txt'] = 'Любитель спама'; +$wb['banned_files_lover_txt'] = 'Любитель запрещенных файлов'; +$wb['bad_header_lover_txt'] = 'Любитель неправильных заголовков'; +$wb['add_new_record_txt'] = 'Добавить новую политику'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users.lng new file mode 100644 index 0000000..d529a41 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['priority_txt'] = 'Приоритет'; +$wb['policy_id_txt'] = 'Политика'; +$wb['email_txt'] = 'Email (Шаблон)'; +$wb['fullname_txt'] = 'Имя'; +$wb['local_txt'] = 'Локальный'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users_list.lng new file mode 100644 index 0000000..f7bd251 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_users_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Пользователи спам-фильтра'; +$wb['local_txt'] = 'Локальный'; +$wb['server_id_txt'] = 'Сервер'; +$wb['priority_txt'] = 'Приоритет'; +$wb['policy_id_txt'] = 'Правило'; +$wb['fullname_txt'] = 'Имя'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Добавить пользователя спам-фильтра'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist.lng new file mode 100644 index 0000000..df2fb91 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Пользователь'; +$wb['email_txt'] = 'E-mail'; +$wb['priority_txt'] = 'Приоритет'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_spamfilter_wblist_txt'] = 'Макс. число белого/черного списка для вашего аккаунта достигнуто.'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..b81b3e9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/ru_spamfilter_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Белый список Спам-фильтра'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['priority_txt'] = 'Приоритет'; +$wb['rid_txt'] = 'Пользователь'; +$wb['email_txt'] = 'Белый список адресов'; +$wb['add_new_record_txt'] = 'Добавить запись в белый список'; +?> + diff --git a/interface/ispconfig/interface/mail/lib/lang/se.lng b/interface/ispconfig/interface/mail/lib/lang/se.lng new file mode 100644 index 0000000..e3a31e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Content Filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'Users'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Accounts'; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Settings'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistics'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Content Filter'; +$wb['Global Filters'] = 'Global Filters'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_alias.lng new file mode 100644 index 0000000..742a20a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Epost'; +$wb['destination_txt'] = 'M�l'; +$wb['active_txt'] = 'Aktiv'; +$wb['email_error_isemail'] = 'Epostadressen �r tom.'; +$wb['email_error_unique'] = 'Dubbla Epostadresser.'; +$wb['no_domain_perm'] = 'Du har ingen beh�righet f�r denna dom�nen.'; +$wb['destination_error_isemail'] = 'Destination Emailaddress is invalid.'; +$wb['limit_mailalias_txt'] = 'The max. number of email aliases for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_alias_list.lng new file mode 100644 index 0000000..c2fd19e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'epost_alias'; +$wb['email_txt'] = 'epost'; +$wb['destination_txt'] = 'm�l'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +$wb['add_new_record_txt'] = 'Add new Email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist.lng new file mode 100644 index 0000000..a158141 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Blacklist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist_list.lng new file mode 100644 index 0000000..497e24d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Epost Svartlista'; +$wb['server_id_txt'] = 'Server'; +$wb['add_new_record_txt'] = 'L�gga till ny Svartlistad epostadress'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Blacklisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter.lng new file mode 100644 index 0000000..9d5e5f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Action'; +$wb['active_txt'] = 'Active'; +$wb['pattern_error_empty'] = 'Pattern is empty.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter_list.lng new file mode 100644 index 0000000..8c1e5e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Header and Body Checks'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Pattern'; +$wb['action_txt'] = 'Action'; +$wb['add_new_record_txt'] = 'Add new Content Filter'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain.lng new file mode 100644 index 0000000..dc8cf7b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�n'; +$wb['type_txt'] = 'Typ'; +$wb['active_txt'] = 'Aktiv'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Duplicate Domain.'; +$wb['domain_error_regex'] = 'Invalid domain name.'; +$wb['client_txt'] = 'Client'; +$wb['limit_maildomain_txt'] = 'The max. number of email domains for your account is reached.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall.lng new file mode 100644 index 0000000..8108545 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Dom�n'; +$wb['destination_txt'] = 'M�l'; +$wb['active_txt'] = 'Aktiv'; +$wb['domain_error_unique'] = 'Det finns alla redan en Catchall f�r denna dom�nen.'; +$wb['no_domain_perm'] = 'Du har inga r�ttigheter f�r denna dom�nen.'; +$wb['domain_error_regex'] = 'Invalid domain name od domain contains invalid characters.'; +$wb['limit_mailcatchall_txt'] = 'The max. number of email catchall accounts for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall_list.lng new file mode 100644 index 0000000..9f4b84c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Epost Catchall'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�n'; +$wb['destination_txt'] = 'Mottagande epost adress'; +$wb['add_new_record_txt'] = 'L�gg till ny Catchall'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'source'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_list.lng new file mode 100644 index 0000000..d0c8ba9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Epost Dom�ner'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�n'; +$wb['add_new_record_txt'] = 'Add new Domain'; +$wb['active_txt'] = 'Active'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_forward.lng new file mode 100644 index 0000000..be714f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Epost'; +$wb['destination_txt'] = 'Mottagande Epost'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_mailforward_txt'] = 'The max. number of email forwarders for your account is reached.'; +$wb['duplicate_mailbox_txt'] = 'There is already a mailbox with this email address'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_forward_list.lng new file mode 100644 index 0000000..1856a72 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Epost Skicka vidare'; +$wb['active_txt'] = 'Aktiv'; +$wb['email_txt'] = 'Epost'; +$wb['destination_txt'] = 'Mottagare'; +$wb['add_new_record_txt'] = 'L�gg till ny Skicka vidare'; +$wb['source_txt'] = 'source'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_get.lng new file mode 100644 index 0000000..5e42823 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'Username'; +$wb['source_password_txt'] = 'Password'; +$wb['source_delete_txt'] = 'Delete emails after retrieval'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['limit_fetchmail_txt'] = 'The max. number of Fetchmail records for your account is reached.'; +$wb['source_server_error_isempty'] = 'Server is empty.'; +$wb['source_username_error_isempty'] = 'Username is empty.'; +$wb['source_password_error_isempty'] = 'Password is empty.'; +$wb['destination_error_isemail'] = 'No destination selected.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_get_list.lng new file mode 100644 index 0000000..4baf67e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Fetch emails from external POP3 / IMAP servers'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'External Server'; +$wb['source_username_txt'] = 'Username'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Account'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter.lng new file mode 100644 index 0000000..e0a2a2f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Rewrite score'; +$wb['spam_redirect_score_int_txt'] = 'Redirect score'; +$wb['spam_delete_score_int_txt'] = 'Delete score'; +$wb['spam_rewrite_subject_txt'] = 'Rewrite subject'; +$wb['spam_redirect_maildir_txt'] = 'Redirect mailbox'; +$wb['active_txt'] = 'Active'; +$wb['spam_rewrite_txt'] = 'Rewrite email subject above this score.'; +$wb['spam_redirect_txt'] = 'Redirect email above this score to the selected mailbox.'; +$wb['spam_delete_txt'] = 'Delete email above this score.'; +$wb['disable_txt'] = 'Hint: To disable a filtering option, set the score to 0.00.'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'There is already an spamfilter record for this email address.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Purge Maildir after'; +$wb['days_txt'] = 'Days.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter_list.lng new file mode 100644 index 0000000..728f3d3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'server_name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add new Spamfilter record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_transport.lng new file mode 100644 index 0000000..a4d7bbc --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Destination'; +$wb['type_txt'] = 'Type'; +$wb['mx_txt'] = 'No MX lookup'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['active_txt'] = 'Active'; +$wb['limit_mailrouting_txt'] = 'The max. number of routes for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_transport_list.lng new file mode 100644 index 0000000..a96c081 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Advanced Email Routing'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Sort by'; +$wb['add_new_record_txt'] = 'Add new transport'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_user.lng new file mode 100644 index 0000000..3745036 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_user.lng @@ -0,0 +1,41 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Custom mail filter recipe'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['active_txt'] = 'Active'; +$wb['email_error_isemail'] = 'Email address is invalid.'; +$wb['email_error_unique'] = 'Duplicate Email address.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['error_no_pwd'] = 'Password is empty.'; +$wb['quota_error_isint'] = 'Mailbox size must be a number.'; +$wb['quota_txt'] = 'quota in MB'; +$wb['server_id_txt'] = 'server_id'; +$wb['password_txt'] = 'password'; +$wb['maildir_txt'] = 'maildir'; +$wb['postfix_txt'] = 'Enable Receiving'; +$wb['access_txt'] = 'Enable Access'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- not enabled -'; +$wb['limit_mailbox_txt'] = 'The max. number of mailboxes for your account is reached.'; +$wb['limit_mailquota_txt'] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb['welcome_mail_subject'] = 'Welcome to your new email account.'; +$wb['welcome_mail_message'] = 'Welcome to your new email account. + +Your webmaster.'; +$wb['disableimap_txt'] = 'Disable IMAP'; +$wb['disablepop3_txt'] = 'Disable POP3'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['duplicate_alias_or_forward_txt'] = 'There is already an alias or forwrd with this email address.'; +$wb['quota_error_value'] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter.lng new file mode 100644 index 0000000..e633c1b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['action_txt'] = 'Action'; +$wb['target_txt'] = 'Folder'; +$wb['active_txt'] = 'Active'; +$wb['rulename_error_empty'] = 'Name is empty.'; +$wb['searchterm_is_empty'] = 'Search term is empty.'; +$wb['source_txt'] = 'Source'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter_list.lng new file mode 100644 index 0000000..2754259 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Name'; +$wb['add_new_record_txt'] = 'Add new Filter'; +$wb['page_txt'] = 'Page'; +$wb['page_of_txt'] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to Delete the mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_list.lng new file mode 100644 index 0000000..6063cef --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mailbox'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Autoresponder'; +$wb['add_new_record_txt'] = 'Add new Mailbox'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_stats_list.lng new file mode 100644 index 0000000..edde65b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail traffic'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist.lng new file mode 100644 index 0000000..355f8be --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['active_txt'] = 'Aktiv'; +$wb['source_txt'] = 'Witelist Address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist_list.lng new file mode 100644 index 0000000..5534d58 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Epost Whitelist'; +$wb['server_id_txt'] = 'Server'; +$wb['add_new_record_txt'] = 'L�gg till ny Whitelist epostadress'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Whitelisted address'; +$wb['type_txt'] = 'Type'; +$wb['recipient_txt'] = 'Recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..1b17e64 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Blacklist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config.lng new file mode 100644 index 0000000..2843133 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Path'; +$wb['ip_address_txt'] = 'IP Address'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservers'; +$wb['module_txt'] = 'Server Module'; +$wb['maildir_path_txt'] = 'Maildir Path'; +$wb['homedir_path_txt'] = 'Homedir Path'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Name'; +$wb['mailuser_group_txt'] = 'Mailuser Group'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost User'; +$wb['relayhost_password_txt'] = 'Relayhost Password'; +$wb['mailbox_size_limit_txt'] = 'Mailbox Size Limit'; +$wb['message_size_limit_txt'] = 'Message Size Limit'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config_list.lng new file mode 100644 index 0000000..70e49e2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Server Configuration'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy.lng new file mode 100644 index 0000000..e876330 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Policy Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'SPAM lover'; +$wb['banned_files_lover_txt'] = 'Banned files lover'; +$wb['bad_header_lover_txt'] = 'Bad header lover'; +$wb['bypass_virus_checks_txt'] = 'Bypass virus checks'; +$wb['bypass_banned_checks_txt'] = 'Bypass banned checks'; +$wb['bypass_header_checks_txt'] = 'Bypass header checks'; +$wb['virus_quarantine_to_txt'] = 'Forward virus to email'; +$wb['spam_quarantine_to_txt'] = 'Forward spam to email'; +$wb['banned_quarantine_to_txt'] = 'Forward banned to email'; +$wb['bad_header_quarantine_to_txt'] = 'Forward bad header to email'; +$wb['clean_quarantine_to_txt'] = 'Forward clean to email'; +$wb['other_quarantine_to_txt'] = 'Forward other to email'; +$wb['spam_tag_level_txt'] = 'SPAM tag level'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 level'; +$wb['spam_kill_level_txt'] = 'SPAM kill level'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn cutoff level'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantine cutoff level'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM subject tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM subject tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Message size limit'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy_list.lng new file mode 100644 index 0000000..04491ae --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Policy'; +$wb['policy_name_txt'] = 'Name'; +$wb['virus_lover_txt'] = 'Virus lover'; +$wb['spam_lover_txt'] = 'Spam lover'; +$wb['banned_files_lover_txt'] = 'Banned Files lover'; +$wb['bad_header_lover_txt'] = 'Bad Header lover'; +$wb['add_new_record_txt'] = 'Add Policy record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users.lng new file mode 100644 index 0000000..a93d94d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['email_txt'] = 'Email (Pattern)'; +$wb['fullname_txt'] = 'Name'; +$wb['local_txt'] = 'Local'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users_list.lng new file mode 100644 index 0000000..ed3d7a3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Users'; +$wb['local_txt'] = 'Local'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['policy_id_txt'] = 'Policy'; +$wb['fullname_txt'] = 'Name'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Add Spamfilter User'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist.lng new file mode 100644 index 0000000..5a85949 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priority'; +$wb['active_txt'] = 'Active'; +$wb['limit_spamfilter_wblist_txt'] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..d209d17 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/se_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Whitelist'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priority'; +$wb['rid_txt'] = 'User'; +$wb['email_txt'] = 'Whitelisted Email'; +$wb['add_new_record_txt'] = 'Add Whitelist record'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk.lng b/interface/ispconfig/interface/mail/lib/lang/sk.lng new file mode 100644 index 0000000..f981e01 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email ?ierna listina'; +$wb['Blacklist'] = '?ierna listina'; +$wb['Mail Content Filter'] = 'Filter obsahu emailu'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Dom�na'; +$wb['Domain'] = 'Dom�na'; +$wb['Email Catchall'] = 'Dom�nov� k��'; +$wb['Email Forward'] = 'Email preposielanie'; +$wb['Get Email'] = 'Z�ska? Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Smerovanie'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Automatick� odpove?'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Vlastn� pravidl�'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Biela listina'; +$wb['Whitelist'] = 'Biela listina'; +$wb['Spamfilter blacklist'] = 'Spamfilter ?ierna listina'; +$wb['Spamfilter Config'] = 'Spamfilter Konfigur�cia'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter politika'; +$wb['Policy'] = 'Politika'; +$wb['Quarantine'] = 'Quarantina'; +$wb['Tag-Level'] = 'Tag-�rove?'; +$wb['Other'] = 'In�'; +$wb['Spamfilter users'] = 'Spamfilter u�ivatelia'; +$wb['Users'] = 'U�ivatelia'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Biela listina'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Scr�nka'; +$wb['Email Accounts'] = 'Email �?et'; +$wb['User / Domain'] = 'U�ivate? / Dom�na'; +$wb['Server Settings'] = 'Nastavenia serveru'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Vy?a�enie schr�nok'; +$wb['Statistics'] = '�tatistiky'; +$wb['Postfix Whitelist'] = 'Postfix Biela listina'; +$wb['Postfix Blacklist'] = 'Postfix ?ierna listina'; +$wb['Content Filter'] = 'Filter obsahu'; +$wb['Global Filters'] = 'Glob�lne Filtere'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias.lng new file mode 100644 index 0000000..9bc1f12 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Cie?'; +$wb['active_txt'] = 'Akt�vne'; +$wb['email_error_isemail'] = 'E-mailov� adresa je neplatn�.'; +$wb['email_error_unique'] = 'Duplicitn� email adresa.'; +$wb['no_domain_perm'] = 'Nem�te �iadne povolenie pre t�to dom�nu.'; +$wb['destination_error_isemail'] = 'Cie?ov� E-mailov� adresa je neplatn�.'; +$wb['limit_mailalias_txt'] = 'Max. po?et e-mailov�ch aliasov na v� �?et je dosiahnut�.'; +$wb['duplicate_mailbox_txt'] = 'Existuje u� schr�nka s touto e-mailov� adresu'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias_list.lng new file mode 100644 index 0000000..de07dea --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Akt�vne'; +$wb['source_txt'] = 'Zdroj'; +$wb['destination_txt'] = 'Cie?'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Prida? nov� alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist.lng new file mode 100644 index 0000000..40723a2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Adresa ?iernej listiny'; +$wb['recipient_txt'] = 'Pr�jemca'; +$wb['active_txt'] = 'Akt�vne'; +$wb['source_error_notempty'] = 'Adresa je pr�zdna.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Max. po?et e-mailov�ch filtrov pre v� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist_list.lng new file mode 100644 index 0000000..f5ffaad --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email ?ierna listina'; +$wb['active_txt'] = 'Act�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Adresa na ?iernu listinu'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'Pr�jemca'; +$wb['add_new_record_txt'] = 'Prida? nov� z�znam do ?iernej listiny'; +$wb['access_txt'] = 'pr�stup'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter.lng new file mode 100644 index 0000000..973c522 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Filter'; +$wb['pattern_txt'] = 'Regexp. Vzorec'; +$wb['data_txt'] = 'Data'; +$wb['action_txt'] = 'Akcia'; +$wb['active_txt'] = 'Akt�vne'; +$wb['pattern_error_empty'] = 'Vzorec je pr�zdny.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter_list.lng new file mode 100644 index 0000000..6f9e80a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Kontrola Hlavi?ky a Tela '; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['pattern_txt'] = 'Vzorka'; +$wb['action_txt'] = 'Akcia'; +$wb['add_new_record_txt'] = 'Prida? nov� filter obsahu'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain.lng new file mode 100644 index 0000000..3f944d8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�ny'; +$wb['type_txt'] = 'Typ'; +$wb['active_txt'] = 'Akt�vne'; +$wb['domain_error_empty'] = 'Dom�na je pr�zdna.'; +$wb['domain_error_unique'] = 'Duplicitn� Dom�na.'; +$wb['domain_error_regex'] = 'Zl� dom�nov� meno.'; +$wb['client_txt'] = 'Klient'; +$wb['limit_maildomain_txt'] = 'Max. po?et e-mailov�ch dom�n pre v� �?et je dosiahnut�.'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- Nie je aktivovan� -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall.lng new file mode 100644 index 0000000..57d42f5 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Dom�na'; +$wb['destination_txt'] = 'Cie?'; +$wb['active_txt'] = 'Akt�vne'; +$wb['domain_error_unique'] = 'V s�?asnosti u� existuje z�znam Dom�nov� k�� pre t�to dom�nu.'; +$wb['no_domain_perm'] = 'Nem�te �iadne povolenie pre t�to dom�nu.'; +$wb['domain_error_regex'] = 'Neplatn� n�zov dom�ny alebo dom�na obsahuje nepovolen� znaky.'; +$wb['limit_mailcatchall_txt'] = 'Max. po?et e-mailov�ch dom�nov�ch ko�ov pre V� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall_list.lng new file mode 100644 index 0000000..b9ea643 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'E-mail Dom�nov� k��'; +$wb['active_txt'] = 'Akt�vne'; +$wb['source_txt'] = 'zdroj'; +$wb['destination_txt'] = 'Cie?ov� e-mailov� adresa'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['add_new_record_txt'] = 'Prida? nov� dom�nov� k��'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_list.lng new file mode 100644 index 0000000..e954961 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Dom�na'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['add_new_record_txt'] = 'Prida? nov� dom�nu'; +$wb['active_txt'] = 'Akt�vne'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward.lng new file mode 100644 index 0000000..6ff58d7 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Cie?ov� Email'; +$wb['active_txt'] = 'Akt�vne'; +$wb['limit_mailforward_txt'] = 'Max. po?et e-mailov�ch prenos v�ho �?tu je dosiahnut�.'; +$wb['duplicate_mailbox_txt'] = 'Existuje u� schr�nku s touto e-mailovou adresou'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward_list.lng new file mode 100644 index 0000000..1f2f724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Forwarding mailov'; +$wb['active_txt'] = 'Akt�vny'; +$wb['source_txt'] = 'Zdroj'; +$wb['destination_txt'] = 'Cie?'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Prida? nov� email forwarding'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_get.lng new file mode 100644 index 0000000..c1bd079 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Typ'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'U�ivate?'; +$wb['source_password_txt'] = 'Heslo'; +$wb['source_delete_txt'] = 'Zmaza? e-maily po na?�tan�'; +$wb['destination_txt'] = 'Cie?'; +$wb['active_txt'] = 'Akt�vne'; +$wb['limit_fetchmail_txt'] = 'Max. po?et z�znamov Fetchmail pre v� �?et je dosiahnut�.'; +$wb['source_server_error_isempty'] = 'Server je pr�zdny.'; +$wb['source_username_error_isempty'] = 'U�ivate? je pr�zdny.'; +$wb['source_password_error_isempty'] = 'Heslo je pr�zdne.'; +$wb['destination_error_isemail'] = '�iadny cie? nebol vybran�.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_get_list.lng new file mode 100644 index 0000000..deb73fa --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Na?�ta? e-maily z extern�ch POP3 / IMAP serverou'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['source_server_txt'] = 'Extern� Server'; +$wb['source_username_txt'] = 'U��vate?sk� meno'; +$wb['destination_txt'] = 'Cie?'; +$wb['add_new_record_txt'] = 'Prida? nov� �?et'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter.lng new file mode 100644 index 0000000..03a632d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Prepis sk�re'; +$wb['spam_redirect_score_int_txt'] = 'Presmerovanie sk�re'; +$wb['spam_delete_score_int_txt'] = 'Zmaza? sk�re'; +$wb['spam_rewrite_subject_txt'] = 'Prepis predmetu'; +$wb['spam_redirect_maildir_txt'] = 'Presmerovanie schr�nky'; +$wb['active_txt'] = 'Akt�vne'; +$wb['spam_rewrite_txt'] = 'Prepis predmet emailu, ktor�ho sk�re je vy��ie.'; +$wb['spam_redirect_txt'] = 'Presmerovanie e-mailu s vy���m sk�re na zvolenej schr�nke.'; +$wb['spam_delete_txt'] = 'Maza? e-maily s vy���m sk�re.'; +$wb['disable_txt'] = 'Tip: Ak chcete zak�za? mo�nos? filtrovania, nastavte sk�re na 0.00.'; +$wb['email_error_isemail'] = 'E-mailov� adresa je neplatn�.'; +$wb['email_error_unique'] = 'Existuje u� spamfilter z�znam pre t�to e-mailov� adresu.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Vy?isti? mailov� z�lo�ku po'; +$wb['days_txt'] = 'Dni.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter_list.lng new file mode 100644 index 0000000..05736a8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['server_name_txt'] = 'meno_servera'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Prida? nov� z�znam pre Spamfilter'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport.lng new file mode 100644 index 0000000..e259510 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['destination_txt'] = 'Cie?'; +$wb['type_txt'] = 'Typ'; +$wb['mx_txt'] = '�iadne vyh?ad�vanie MX'; +$wb['sort_order_txt'] = 'Triedi? pod?a'; +$wb['active_txt'] = 'Akt�vny'; +$wb['limit_mailrouting_txt'] = 'Max. po?et tr�s pre v� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport_list.lng new file mode 100644 index 0000000..c4c17c6 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Pokro?il� Email Smerovanie'; +$wb['active_txt'] = 'Akt�vny'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['transport_txt'] = 'Transport'; +$wb['sort_order_txt'] = 'Zoradi? pod?a'; +$wb['add_new_record_txt'] = 'Prida? nov� smerovanie'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user.lng new file mode 100644 index 0000000..e769110 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Vlastn� mail filter'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['active_txt'] = 'Akt�vne'; +$wb['email_error_isemail'] = 'E-mailov� adresa je neplatn�.'; +$wb['email_error_unique'] = 'Duplicitn� E-mailov� adresa.'; +$wb['autoresponder_text_txt'] = 'Text'; +$wb['autoresponder_txt'] = 'Automatick� odpove?'; +$wb['no_domain_perm'] = 'Nem�te �iadne povolenie pre t�to dom�nu.'; +$wb['error_no_pwd'] = 'Heslo je pr�zdne.'; +$wb['quota_error_isint'] = 'Ve?kos? schr�nky, mus� by? ?�slo.'; +$wb['quota_txt'] = 'Kv�ta'; +$wb['server_id_txt'] = 'Server_id'; +$wb['password_txt'] = 'Heslo'; +$wb['maildir_txt'] = 'Mailov� z�lo�ka'; +$wb['postfix_txt'] = 'Povoli? pr�jem'; +$wb['access_txt'] = 'Povoli? Pr�stup'; +$wb['policy_txt'] = 'Spamfilter'; +$wb['no_policy'] = '- nepovolen� -'; +$wb['limit_mailbox_txt'] = 'Max. po?et po�tov�ch schr�nok pre v� �?et je dosiahnut�.'; +$wb['limit_mailquota_txt'] = 'Maxim�lny priestor pre po�tov� schr�nky je dosiahnut�. Max. dostupn� miesto v MB je'; +$wb['welcome_mail_fromname_txt'] = 'ISPCONFIG 3'; +$wb['welcome_mail_fromemail_txt'] = 'webhosting@domain.ltd'; +$wb['welcome_mail_subject'] = 'Vitajte na svojom novom e-mailovom konte.'; +$wb['welcome_mail_message'] = 'Vitajte na svojom novom e-mailovom konte.'; +$wb['disableimap_txt'] = 'Deaktivova? IMAP'; +$wb['disablepop3_txt'] = 'Deaktivova? POP3'; +$wb['duplicate_alias_or_forward_txt'] = 'Existuje u� alias alebo preposlanie pre t�to e-mailov� adresu.'; +$wb['quota_error_value'] = 'Neplatn� hodnota kv�ty. Povolen� hodnoty s�: 0 pre neobmedzen� alebo ?�sla > 1'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter.lng new file mode 100644 index 0000000..1d3966d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'Meno'; +$wb['action_txt'] = 'Akcia'; +$wb['target_txt'] = 'Z�lo�ka'; +$wb['active_txt'] = 'Akt�vny'; +$wb['rulename_error_empty'] = 'Meno je pr�zdne'; +$wb['searchterm_is_empty'] = 'H?adan� v�raz je pr�zdny.'; +$wb['source_txt'] = 'Zdroj'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter_list.lng new file mode 100644 index 0000000..f2ae6e9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'Meno'; +$wb['add_new_record_txt'] = 'Prida? nov� filter'; +$wb['page_txt'] = 'Strana'; +$wb['page_of_txt'] = 'z'; +$wb['delete_confirmation'] = 'Naozaj chcete zmaza? mailfilter?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_list.lng new file mode 100644 index 0000000..aa3a3c2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Schr�nka'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Automatick� odpove?'; +$wb['add_new_record_txt'] = 'Prida? nov� schr�nku'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_stats_list.lng new file mode 100644 index 0000000..8d9361e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mailov� komunik�cia'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Tento mesiac'; +$wb['last_month_txt'] = 'Minul� mesiac'; +$wb['this_year_txt'] = 'Tento rok'; +$wb['last_year_txt'] = 'Minul� rok'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist.lng new file mode 100644 index 0000000..b5caaf4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Adresa bielej listiny'; +$wb['recipient_txt'] = 'Pr�jemca'; +$wb['active_txt'] = 'Akt�vne'; +$wb['source_error_notempty'] = 'Adresa je pr�zdna.'; +$wb['type_txt'] = 'Typ'; +$wb['limit_mailfilter_txt'] = 'Max. po?et e-mailov�ch filtrov pre v� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist_list.lng new file mode 100644 index 0000000..00c2e4d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email biela listina'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Adresy v bielej listine'; +$wb['type_txt'] = 'Typ'; +$wb['recipient_txt'] = 'Pr�jemca'; +$wb['add_new_record_txt'] = 'Prida? nov� z�znam do bielej listiny'; +$wb['access_txt'] = 'pr�stup'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist.lng new file mode 100644 index 0000000..844c9f3 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'U�ivate?'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priorita'; +$wb['active_txt'] = 'Akt�vne'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. po?et Biela - ?ierna listina alebo z�znamy pre v� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..707477f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter ?ierna listina'; +$wb['active_txt'] = 'Act�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorita'; +$wb['rid_txt'] = 'U�ivate?'; +$wb['email_txt'] = 'Email na ?iernej listine'; +$wb['add_new_record_txt'] = 'Prida? z�znam na ?iernu listinu'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config.lng new file mode 100644 index 0000000..c8de92c --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Config Cesta'; +$wb['ip_address_txt'] = 'IP Adresa'; +$wb['netmask_txt'] = 'Netmaska'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'Nameservery'; +$wb['module_txt'] = 'Server Modul'; +$wb['maildir_path_txt'] = 'Maildir Cesta'; +$wb['homedir_path_txt'] = 'Homedir Cesta'; +$wb['mailuser_uid_txt'] = 'Mailuser UID'; +$wb['mailuser_gid_txt'] = 'Mailuser GID'; +$wb['mailuser_name_txt'] = 'Mailuser Meno'; +$wb['mailuser_group_txt'] = 'Mailuser Skupina'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost U�ivate?'; +$wb['relayhost_password_txt'] = 'Relayhost Heslo'; +$wb['mailbox_size_limit_txt'] = 'Ve?kostn� Limit mailovej schr�nky'; +$wb['message_size_limit_txt'] = 'Ve?kostn� Limit Spr�vy'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config_list.lng new file mode 100644 index 0000000..f219909 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Konfigur�cia servera'; +$wb['server_name_txt'] = 'Server'; +$wb['server_id_txt'] = 'server_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy.lng new file mode 100644 index 0000000..4cd6a43 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Meno politiky'; +$wb['virus_lover_txt'] = 'Milovn�k virusov'; +$wb['spam_lover_txt'] = 'Milovn�k SPAMu'; +$wb['banned_files_lover_txt'] = 'Milovn�k zak�zan�ch s�borov'; +$wb['bad_header_lover_txt'] = 'Milovn�k zl�ch hlavi?iek'; +$wb['bypass_virus_checks_txt'] = 'Vynechanie v�rusovej kontroly'; +$wb['bypass_banned_checks_txt'] = 'Vynechanie kontroly zak�zov '; +$wb['bypass_header_checks_txt'] = 'Vynechanie kontroly hlavi?iek'; +$wb['virus_quarantine_to_txt'] = 'Preposla? v�rus na email'; +$wb['spam_quarantine_to_txt'] = 'Preposla? spam na email'; +$wb['banned_quarantine_to_txt'] = 'Preposla? zak�zany obsah na email'; +$wb['bad_header_quarantine_to_txt'] = 'Preposla? zl� hlavi?ky na email'; +$wb['clean_quarantine_to_txt'] = 'Preposla? ?istenie na email'; +$wb['other_quarantine_to_txt'] = 'Preposla? in� na email'; +$wb['spam_tag_level_txt'] = 'SPAM tag �rovne'; +$wb['spam_tag2_level_txt'] = 'SPAM tag2 �rovne'; +$wb['spam_kill_level_txt'] = 'SPAM kill �rovne'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM dsn �rovne orezania'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM quarantina �rovne orezania'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifik�cia predmetu'; +$wb['spam_subject_tag_txt'] = 'SPAM predmet tag'; +$wb['spam_subject_tag2_txt'] = 'SPAM predmet tag2'; +$wb['addr_extension_virus_txt'] = 'Addr. Roz��renie v�rusu'; +$wb['addr_extension_spam_txt'] = 'Addr. Roz��renie SPAMu'; +$wb['addr_extension_banned_txt'] = 'Addr. Roz��renie z�kazov'; +$wb['addr_extension_bad_header_txt'] = 'Addr Roz��renie zl�ch hlavi?iek'; +$wb['warnvirusrecip_txt'] = 'Upozorni? na v�rus odosielate?a'; +$wb['warnbannedrecip_txt'] = 'Upozorni? o z�kazoch odosielate?a'; +$wb['warnbadhrecip_txt'] = 'Upozorni? o zl�ch hlavi?k�ch odosielate?a'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Z�kazov� admin'; +$wb['bad_header_admin_txt'] = 'Zl� hlavi?ky admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Limit ve?kosti spr�vy'; +$wb['banned_rulenames_txt'] = 'Banned rulenames'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy_list.lng new file mode 100644 index 0000000..cb21bd2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Politika'; +$wb['policy_name_txt'] = 'Meno'; +$wb['virus_lover_txt'] = 'Milovn�k v�rusov'; +$wb['spam_lover_txt'] = 'Milovn�k Spamu'; +$wb['banned_files_lover_txt'] = 'Milovn�k Zak�zan�ch s�borov'; +$wb['bad_header_lover_txt'] = 'Milovn�k Zl�ch hlavi?iek'; +$wb['add_new_record_txt'] = 'Prida? z�znam do politiky'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users.lng new file mode 100644 index 0000000..f193d42 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorita'; +$wb['policy_id_txt'] = 'Politika'; +$wb['email_txt'] = 'E-mail (vzor)'; +$wb['fullname_txt'] = 'Meno'; +$wb['local_txt'] = 'Miestny'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users_list.lng new file mode 100644 index 0000000..2865596 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter U�ivate?a'; +$wb['local_txt'] = 'Miestny'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorita'; +$wb['policy_id_txt'] = 'Politika'; +$wb['fullname_txt'] = 'Meno'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Prida? Spamfilter u�ivate?a'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist.lng new file mode 100644 index 0000000..351ae0e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'U�ivate?'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Priorita'; +$wb['active_txt'] = 'Akt�vne'; +$wb['limit_spamfilter_wblist_txt'] = 'Max. po?et Bielych-?iernych list�n alebo z�znamou pre v� �?et je dosiahnut�.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..3e6e0e8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/sk_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter biela listina'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['priority_txt'] = 'Priorita'; +$wb['rid_txt'] = 'U�ivate?'; +$wb['email_txt'] = 'Email v bielej listine'; +$wb['add_new_record_txt'] = 'Prida? z�znam do bielej listiny'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr.lng b/interface/ispconfig/interface/mail/lib/lang/tr.lng new file mode 100644 index 0000000..5878a98 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr.lng @@ -0,0 +1,47 @@ +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Karalistesi'; +$wb['Blacklist'] = 'Kara liste'; +$wb['Mail Content Filter'] = 'Mail İçerik Filtresi'; +$wb['Filter'] = 'Filtre'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spam filtresi'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mail kutusu'; +$wb['Autoresponder'] = 'Otomatik cevaplayıcı'; +$wb['Mail Filter'] = 'Mail Filtresi'; +$wb['Custom Rules'] = 'Özel Kurallar'; +$wb['Email filter'] = 'Email filtresi'; +$wb['Email Whitelist'] = 'Email Aklistesi'; +$wb['Whitelist'] = 'Akliste'; +$wb['Spamfilter blacklist'] = 'Spam filtre karalistesi'; +$wb['Spamfilter Config'] = 'Spam filtresi Ayarları'; +$wb['Server'] = 'Sunucu'; +$wb['Spamfilter policy'] = 'Spam filtresi kuralları'; +$wb['Policy'] = 'Kural'; +$wb['Quarantine'] = 'Karantina'; +$wb['Tag-Level'] = 'Etiket Düzeyi'; +$wb['Other'] = 'Diğer'; +$wb['Spamfilter users'] = 'Spam filtresi kullanıcıları'; +$wb['Users'] = 'Kullanıcılar'; +$wb['Spamfilter Whitelist'] = 'Spam filtre aklistesi'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Kutusu'; +$wb['Email Accounts'] = 'Email Hesapları'; +$wb['User / Domain'] = 'Kullanıcı / Domain'; +$wb['Server Settings'] = 'Sunucu Ayarları'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mail kutusu trafiği'; +$wb['Statistics'] = 'İstatistikler'; +$wb['Postfix Whitelist'] = 'Postfix Aklistesi'; +$wb['Postfix Blacklist'] = 'Postfix Karalistesi'; +$wb['Content Filter'] = 'İçerik Filtresi'; +$wb['Global Filters'] = 'Global Filtreler'; +$wb['Domain Alias'] = 'Domain Alias'; +$wb['Relay Recipients'] = 'Relay Recipients'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias.lng new file mode 100644 index 0000000..1c94997 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias.lng @@ -0,0 +1,11 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Hedef'; +$wb['active_txt'] = 'Aktif'; +$wb['email_error_isemail'] = 'Email adresi geçersiz.'; +$wb['email_error_unique'] = 'Email adresleri tekrar etmekte'; +$wb['no_domain_perm'] = 'Bu domain için yetkiniz yok.'; +$wb['destination_error_isemail'] = 'Hedef Email adresi geçersiz.'; +$wb['limit_mailalias_txt'] = 'Hesabınızdaki max. email alias sayısına ulaştınız.'; +$wb['duplicate_mailbox_txt'] = 'Bu email adresiyle bir mail kutusu zaten bulunmakta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias_list.lng new file mode 100644 index 0000000..4f0690d --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_alias_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Email Alias'; +$wb['active_txt'] = 'Aktif'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Hedef'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Yeni Email alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain.lng new file mode 100644 index 0000000..5815d1e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain.lng @@ -0,0 +1,11 @@ +<?php +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['active_txt'] = 'Active'; +$wb['no_domain_perm'] = 'You have no permission for this domain.'; +$wb['limit_mailaliasdomain_txt'] = 'The max. number of email alias domains for your account is reached.'; +$wb['source_destination_identical_txt'] = 'Source and target Domain are the same.'; +$wb['source_error_empty'] = 'Source Domain is empty.'; +$wb['source_error_unique'] = 'Duplicate source Domain.'; +$wb['source_error_regex'] = 'Invalid source domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain_list.lng new file mode 100644 index 0000000..d96a63e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_aliasdomain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Domain alias'; +$wb['active_txt'] = 'Active'; +$wb['source_txt'] = 'Source'; +$wb['destination_txt'] = 'Destination'; +$wb['add_new_record_txt'] = 'Add new Domain alias'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist.lng new file mode 100644 index 0000000..77bb386 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['source_txt'] = 'Karalistedeki Adresler'; +$wb['recipient_txt'] = 'Alıcı'; +$wb['active_txt'] = 'Aktif'; +$wb['source_error_notempty'] = 'Adres boş.'; +$wb['type_txt'] = 'Çeşit'; +$wb['limit_mailfilter_txt'] = 'Hesabınızdaki max. email filtresi limitine ulaştınız.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist_list.lng new file mode 100644 index 0000000..a32e81e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_blacklist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Siyah Listesi'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['source_txt'] = 'Siyah Liste Adresleri'; +$wb['type_txt'] = 'Çeşit'; +$wb['recipient_txt'] = 'Alıcı'; +$wb['add_new_record_txt'] = 'Yeni Siyah Liste'; +$wb['access_txt'] = 'erişim'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter.lng new file mode 100644 index 0000000..fc3901f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['type_txt'] = 'Filtre'; +$wb['pattern_txt'] = 'Regexp. Pattern'; +$wb['data_txt'] = 'Veri'; +$wb['action_txt'] = 'Eylem'; +$wb['active_txt'] = 'Aktif'; +$wb['pattern_error_empty'] = 'Desen boş.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter_list.lng new file mode 100644 index 0000000..8dae629 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_content_filter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Postfix Başlık ve İçerik Kontrolü'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['pattern_txt'] = 'Desen'; +$wb['action_txt'] = 'Eylem'; +$wb['add_new_record_txt'] = 'Yeni İçerik Filtresi'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain.lng new file mode 100644 index 0000000..e869681 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain.lng @@ -0,0 +1,13 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Çeşit'; +$wb['active_txt'] = 'Aktif'; +$wb['domain_error_empty'] = 'Domain boş.'; +$wb['domain_error_unique'] = 'Domain Tekrarı.'; +$wb['domain_error_regex'] = 'Geçersiz domain ismi.'; +$wb['client_txt'] = 'Müşteri'; +$wb['limit_maildomain_txt'] = 'Hesabınızdaki max. email domain sayısına ulaştınız.'; +$wb['policy_txt'] = 'Spam filtresi'; +$wb['no_policy'] = '- aktif değil -'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall.lng new file mode 100644 index 0000000..3c6338b --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall.lng @@ -0,0 +1,9 @@ +<?php +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Hedef'; +$wb['active_txt'] = 'Aktif'; +$wb['domain_error_unique'] = 'Bu domain için zaten Catchall kayıdı bulunmakta.'; +$wb['no_domain_perm'] = 'Bu domain için yetkiniz yok.'; +$wb['domain_error_regex'] = 'Geçersiz domain adı. Domain adı izin verilmeyen karakterler içermekte.'; +$wb['limit_mailcatchall_txt'] = 'Hesabınıdaki max. Catchall hesabı limitine ulaştınız..'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall_list.lng new file mode 100644 index 0000000..fdec4fd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_catchall_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Email Catchall'; +$wb['active_txt'] = 'Aktif'; +$wb['source_txt'] = 'source'; +$wb['destination_txt'] = 'Hedef email adresi'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Yeni Catchall'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_list.lng new file mode 100644 index 0000000..5962624 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_domain_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Email Domain'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Yeni Domain'; +$wb['active_txt'] = 'Aktif'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward.lng new file mode 100644 index 0000000..154641e --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward.lng @@ -0,0 +1,7 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['destination_txt'] = 'Destination Email'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_mailforward_txt'] = 'Hesabınızdaki max. email yönlendirme sayısına ulaştınız.'; +$wb['duplicate_mailbox_txt'] = 'Bu email adresiyle bir mail kutusu zaten bulunmakta'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward_list.lng new file mode 100644 index 0000000..88df714 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_forward_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail Yönlendirme'; +$wb['active_txt'] = 'Aktif'; +$wb['source_txt'] = 'Kaynak'; +$wb['destination_txt'] = 'Hedef'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Yeni Mail Yönlendirme'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_get.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_get.lng new file mode 100644 index 0000000..641c6c2 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_get.lng @@ -0,0 +1,16 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['type_txt'] = 'Çeşit'; +$wb['source_server_txt'] = 'Pop3/Imap Server'; +$wb['source_username_txt'] = 'Kullanıcı adı'; +$wb['source_password_txt'] = 'Şifre'; +$wb['source_delete_txt'] = 'Tekrar gelen mailleri sil'; +$wb['destination_txt'] = 'Hedef'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_fetchmail_txt'] = 'Hesabınızdaki max. Fetchmail kaydı sayısına ulaştınız.'; +$wb['source_server_error_isempty'] = 'Sunucu boş.'; +$wb['source_username_error_isempty'] = 'Kullanıcı adı boş.'; +$wb['source_password_error_isempty'] = 'Şifre boş.'; +$wb['destination_error_isemail'] = 'Hedef seçilmedi.'; +$wb['source_server_error_regex'] = 'Pop3/Imap Server is not a valid domain name.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_get_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_get_list.lng new file mode 100644 index 0000000..7cd54a1 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_get_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Harici POP3 / IMAP Sunucuları'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['source_server_txt'] = 'Dış Sunucu'; +$wb['source_username_txt'] = 'Kullanıcı adı'; +$wb['destination_txt'] = 'Hedef'; +$wb['add_new_record_txt'] = 'Yeni Hesap'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient.lng new file mode 100644 index 0000000..b5c8724 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Relay recipient'; +$wb['recipient_txt'] = 'Recipient'; +$wb['active_txt'] = 'Active'; +$wb['source_error_notempty'] = 'Address is empty.'; +$wb['type_txt'] = 'Type'; +$wb['limit_mailfilter_txt'] = 'The max. number of email filters for your account is reached.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient_list.lng new file mode 100644 index 0000000..36045f4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_relay_recipient_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Relay recipients'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['source_txt'] = 'Recipient address'; +$wb['recipient_txt'] = 'Recipient'; +$wb['add_new_record_txt'] = 'Add new relay recipient'; +$wb['access_txt'] = 'access'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter.lng new file mode 100644 index 0000000..08e90f9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter.lng @@ -0,0 +1,17 @@ +<?php +$wb['email_txt'] = 'Email'; +$wb['spam_rewrite_score_int_txt'] = 'Skoru yeniden yaz'; +$wb['spam_redirect_score_int_txt'] = 'Skoru yönlendir'; +$wb['spam_delete_score_int_txt'] = 'Skoru sil'; +$wb['spam_rewrite_subject_txt'] = 'Konuyu yeniden yaz'; +$wb['spam_redirect_maildir_txt'] = 'Mail kutusunu yönlendir'; +$wb['active_txt'] = 'Aktif'; +$wb['spam_rewrite_txt'] = 'Bu değerin üstünde olan email konusunu tekrar yaz.'; +$wb['spam_redirect_txt'] = 'Bu değerin üstünde olan emaili seçili mail kutusuna yönlendir.'; +$wb['spam_delete_txt'] = 'Bu değerin üstünde olan maili sil.'; +$wb['disable_txt'] = 'İpucu: Bir filtre seçeneğini devre dışı bırakmak isterseniz, skorunu 0.00 giriniz.'; +$wb['email_error_isemail'] = 'Email adresi geçersiz.'; +$wb['email_error_unique'] = 'Bu email adresi için spamfilter kaydı zaten mevcut.'; +$wb['spam_redirect_maildir_purge_txt'] = 'Mail dizini temizleme'; +$wb['days_txt'] = 'Gün.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter_list.lng new file mode 100644 index 0000000..5caf344 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_spamfilter_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Spam filtresi'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['server_name_txt'] = 'sunucu adı'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Yeni Spam Filtresi'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport.lng new file mode 100644 index 0000000..b9c1d90 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport.lng @@ -0,0 +1,10 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['destination_txt'] = 'Hedef'; +$wb['type_txt'] = 'Çeşit'; +$wb['mx_txt'] = 'No MX lookup'; +$wb['sort_order_txt'] = 'Sırala'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_mailrouting_txt'] = 'Hesabınızdaki max. rota sayısına ulaştınız.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport_list.lng new file mode 100644 index 0000000..44d1e00 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_transport_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Gelişmiş Email Rotası'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['transport_txt'] = 'Nakil'; +$wb['sort_order_txt'] = 'Sırala'; +$wb['add_new_record_txt'] = 'Yeni Rota'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_user.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user.lng new file mode 100644 index 0000000..ed15471 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user.lng @@ -0,0 +1,39 @@ +<?php +$wb['custom_mailfilter_txt'] = 'Özel mail filtresi'; +$wb['email_txt'] = 'Email'; +$wb['cryptpwd_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['active_txt'] = 'Aktif'; +$wb['email_error_isemail'] = 'Email adresi geçersiz.'; +$wb['email_error_unique'] = 'Duplicate Email address.'; +$wb['autoresponder_text_txt'] = 'Metin'; +$wb['autoresponder_txt'] = 'Otomatik cevaplayıcı'; +$wb['no_domain_perm'] = 'Bu domain için yetkiniz yok.'; +$wb['error_no_pwd'] = 'Şifre boş.'; +$wb['quota_error_isint'] = 'Mail kutusu boyutu sayı olmak zorunda.'; +$wb['quota_txt'] = 'Kota'; +$wb['server_id_txt'] = 'Server_id'; +$wb['password_txt'] = 'Şifre'; +$wb['maildir_txt'] = 'Mail dizini'; +$wb['postfix_txt'] = 'Alış Aktif'; +$wb['access_txt'] = 'Erişim Aktif'; +$wb['policy_txt'] = 'Spam filtresi'; +$wb['no_policy'] = '- aktif değil -'; +$wb['limit_mailbox_txt'] = 'Hesabınızdaki mail kutusu limiti sayısına ulaştınız.'; +$wb['limit_mailquota_txt'] = 'Mail kutunuz için max. alana ulaştınız. Max. kullanılabilir alan MB:'; +$wb['welcome_mail_fromname_txt'] = 'ISPConfig3'; +$wb['welcome_mail_fromemail_txt'] = 'webmaster@localhost.tld'; +$wb['welcome_mail_subject'] = 'Yeni email hesabınıza hoşgeldiniz.'; +$wb['welcome_mail_message'] = 'Yeni email hesabınıza hoşgeldiniz. Webmaster\ınız...'; +$wb['disableimap_txt'] = 'IMAP Devre Dışı'; +$wb['disablepop3_txt'] = 'POP3 Devre Dışı'; +$wb['duplicate_alias_or_forward_txt'] = 'Bu email adresinde alias veya yönlendirme zaten var.'; +$wb['quota_error_value'] = 'Geçersiz kota değeri. İzin verilen değerler: Limitsiz için 0 veya 1den büyük'; +$wb['autoresponder_start_date_txt'] = 'Start on'; +$wb['autoresponder_start_date_isfuture'] = 'Start date cannot be in the past.'; +$wb['autoresponder_end_date_txt'] = 'End by'; +$wb['autoresponder_end_date_isgreater'] = 'End date must be set and be later than start date.'; +$wb['move_junk_txt'] = 'Move Spam Emails to Junk directory'; +$wb['name_txt'] = 'Realname'; +$wb['name_optional_txt'] = '(Optional)'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter.lng new file mode 100644 index 0000000..abf45c4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter.lng @@ -0,0 +1,10 @@ +<?php +$wb['rulename_txt'] = 'İsim'; +$wb['action_txt'] = 'Eylem'; +$wb['target_txt'] = 'Klasör'; +$wb['active_txt'] = 'Aktif'; +$wb['rulename_error_empty'] = 'İsim boş.'; +$wb['searchterm_is_empty'] = 'Search term is empty.'; +$wb['source_txt'] = 'Kaynak'; +$wb['target_error_regex'] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter_list.lng new file mode 100644 index 0000000..cd8b078 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_filter_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['rulename_txt'] = 'İsim'; +$wb['add_new_record_txt'] = 'Yeni Filtre'; +$wb['page_txt'] = 'Sayfa'; +$wb['page_of_txt'] = '/'; +$wb['delete_confirmation'] = 'Bu mail filtresini silmek istediğinizden emin misiniz?'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_list.lng new file mode 100644 index 0000000..ee99944 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Mail kutusu'; +$wb['email_txt'] = 'Email'; +$wb['autoresponder_txt'] = 'Otomatik cevaplayıcı'; +$wb['add_new_record_txt'] = 'Yeni Mail kutusu'; +$wb['name_txt'] = 'Realname'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_stats_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_stats_list.lng new file mode 100644 index 0000000..ddb4fa9 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_user_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Mail trafiği'; +$wb['email_txt'] = 'Email'; +$wb['this_month_txt'] = 'Bu ay'; +$wb['last_month_txt'] = 'Geçen ay'; +$wb['this_year_txt'] = 'Bu yıl'; +$wb['last_year_txt'] = 'Geçen ay'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist.lng new file mode 100644 index 0000000..05ada4a --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['source_txt'] = 'Whitelist Adresi'; +$wb['recipient_txt'] = 'Alıcı'; +$wb['active_txt'] = 'Aktif'; +$wb['source_error_notempty'] = 'Adres boş.'; +$wb['type_txt'] = 'Çeşit'; +$wb['limit_mailfilter_txt'] = 'Hesabınızdaki max. email filtresi limitine ulaştınız.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist_list.lng new file mode 100644 index 0000000..5f79579 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_mail_whitelist_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Email Aklistesi'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['source_txt'] = 'Beyaz listedeki adresler'; +$wb['type_txt'] = 'Çeşit'; +$wb['recipient_txt'] = 'Alıcı'; +$wb['add_new_record_txt'] = 'Yeni Beyaz Liste Kaydı'; +$wb['access_txt'] = 'erişim'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist.lng new file mode 100644 index 0000000..fe6afee --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Kullanıcı'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Öncelik'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_spamfilter_wblist_txt'] = 'Hesabınızdaki max. ak/kara liste kaydına ulaştınız.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist_list.lng new file mode 100644 index 0000000..f9dd9ed --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_blacklist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfilter Blacklist'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['priority_txt'] = 'Öncelik'; +$wb['rid_txt'] = 'Kullanıcı'; +$wb['email_txt'] = 'Karalistedeki Emailler'; +$wb['add_new_record_txt'] = 'Yeni Karaliste Kaydı'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config.lng new file mode 100644 index 0000000..1f4a076 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config.lng @@ -0,0 +1,20 @@ +<?php +$wb['getmail_config_dir_txt'] = 'Getmail Konfig. Yolu'; +$wb['ip_address_txt'] = 'IP Adresi'; +$wb['netmask_txt'] = 'Netmask'; +$wb['gateway_txt'] = 'Gateway'; +$wb['hostname_txt'] = 'Hostname'; +$wb['nameservers_txt'] = 'İsim sunucuları'; +$wb['module_txt'] = 'Sunucu Modülü'; +$wb['maildir_path_txt'] = 'Mail dizini yolu'; +$wb['homedir_path_txt'] = 'Kullanıcı dizini yolu'; +$wb['mailuser_uid_txt'] = 'Mail kullanıcısı UID'; +$wb['mailuser_gid_txt'] = 'Mail kullanıcısı GID'; +$wb['mailuser_name_txt'] = 'Mail kullanıcısı Adı'; +$wb['mailuser_group_txt'] = 'Mail kullanıcısı Grubu'; +$wb['relayhost_txt'] = 'Relayhost'; +$wb['relayhost_user_txt'] = 'Relayhost Kullanıcısı'; +$wb['relayhost_password_txt'] = 'Relayhost Şifresi'; +$wb['mailbox_size_limit_txt'] = 'Mail kutusu boyutu'; +$wb['message_size_limit_txt'] = 'Mesaj uzunluk limiti'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config_list.lng new file mode 100644 index 0000000..dd5ce0f --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_config_list.lng @@ -0,0 +1,5 @@ +<?php +$wb['list_head_txt'] = 'Sunucu Konfigurasyonu'; +$wb['server_name_txt'] = 'Sunucu'; +$wb['server_id_txt'] = 'sunucu_id'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy.lng new file mode 100644 index 0000000..11dedf4 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy.lng @@ -0,0 +1,38 @@ +<?php +$wb['policy_name_txt'] = 'Kural Adı'; +$wb['virus_lover_txt'] = 'Virüs koruması'; +$wb['spam_lover_txt'] = 'SPAM koruması'; +$wb['banned_files_lover_txt'] = 'Yasaklı dosyalar koruması'; +$wb['bad_header_lover_txt'] = 'Kötü başlık koruması'; +$wb['bypass_virus_checks_txt'] = 'Virüs kontrolünü geçme'; +$wb['bypass_banned_checks_txt'] = 'Yasaklı kontrolleri geçme'; +$wb['bypass_header_checks_txt'] = 'Başlık kontrolünü geçme'; +$wb['virus_quarantine_to_txt'] = 'Virüsü mail olarak ilet'; +$wb['spam_quarantine_to_txt'] = 'Spamı mail olarak ilet'; +$wb['banned_quarantine_to_txt'] = 'Yasaklıları mail olarak ilet'; +$wb['bad_header_quarantine_to_txt'] = 'Kötü başlığı mail olarak ilet'; +$wb['clean_quarantine_to_txt'] = 'Temiz olanı mail olarak ilet'; +$wb['other_quarantine_to_txt'] = 'Diğerlerini mail olarak ilet'; +$wb['spam_tag_level_txt'] = 'SPAM etiket düzeyi'; +$wb['spam_tag2_level_txt'] = 'SPAM etiket2 düzeyi'; +$wb['spam_kill_level_txt'] = 'SPAM yok etme düzeyi'; +$wb['spam_dsn_cutoff_level_txt'] = 'SPAM DNS durdurma limiti'; +$wb['spam_quarantine_cutoff_level_txt'] = 'SPAM karantina durdurma düzeyi'; +$wb['spam_modifies_subj_txt'] = 'SPAM modifies subject'; +$wb['spam_subject_tag_txt'] = 'SPAM konu etiketi'; +$wb['spam_subject_tag2_txt'] = 'SPAM konu etiketi2'; +$wb['addr_extension_virus_txt'] = 'Addr. extension virus'; +$wb['addr_extension_spam_txt'] = 'Addr. extension SPAM'; +$wb['addr_extension_banned_txt'] = 'Addr. extension banned'; +$wb['addr_extension_bad_header_txt'] = 'Addr extension bad header'; +$wb['warnvirusrecip_txt'] = 'Warn virus recip.'; +$wb['warnbannedrecip_txt'] = 'Warn banned recip.'; +$wb['warnbadhrecip_txt'] = 'Warn bad header recip.'; +$wb['newvirus_admin_txt'] = 'Newvirus admin'; +$wb['virus_admin_txt'] = 'Virus admin'; +$wb['banned_admin_txt'] = 'Banned admin'; +$wb['bad_header_admin_txt'] = 'Bad header admin'; +$wb['spam_admin_txt'] = 'SPAM admin'; +$wb['message_size_limit_txt'] = 'Mesaj boyutu limiti'; +$wb['banned_rulenames_txt'] = 'Yasaklı kural isimleri'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy_list.lng new file mode 100644 index 0000000..1344e85 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_policy_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spam Filtresi Kuralları'; +$wb['policy_name_txt'] = 'İsim'; +$wb['virus_lover_txt'] = 'Virüs koruması'; +$wb['spam_lover_txt'] = 'Spam koruması'; +$wb['banned_files_lover_txt'] = 'Yasaklı dosyalar koruması'; +$wb['bad_header_lover_txt'] = 'Kötü başlık koruması'; +$wb['add_new_record_txt'] = 'Yeni Kural Kaydı'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users.lng new file mode 100644 index 0000000..b1e3ff8 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users.lng @@ -0,0 +1,8 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['priority_txt'] = 'Öncelik'; +$wb['policy_id_txt'] = 'Kural'; +$wb['email_txt'] = 'Email (Desen)'; +$wb['fullname_txt'] = 'İsim'; +$wb['local_txt'] = 'Yerel'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users_list.lng new file mode 100644 index 0000000..095a4bd --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_users_list.lng @@ -0,0 +1,10 @@ +<?php +$wb['list_head_txt'] = 'Spam Filtresi Kullanıcıları'; +$wb['local_txt'] = 'Yerel'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['priority_txt'] = 'Öncelik'; +$wb['policy_id_txt'] = 'Kural'; +$wb['fullname_txt'] = 'İsim'; +$wb['email_txt'] = 'Email'; +$wb['add_new_record_txt'] = 'Yeni Spam Filtresi Kullanıcısı'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist.lng new file mode 100644 index 0000000..fe6afee --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist.lng @@ -0,0 +1,9 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['wb_txt'] = 'wb'; +$wb['rid_txt'] = 'Kullanıcı'; +$wb['email_txt'] = 'Email'; +$wb['priority_txt'] = 'Öncelik'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_spamfilter_wblist_txt'] = 'Hesabınızdaki max. ak/kara liste kaydına ulaştınız.'; +?> diff --git a/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist_list.lng b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist_list.lng new file mode 100644 index 0000000..7b9bf43 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/lang/tr_spamfilter_whitelist_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Spamfiltre Beyaz listesi'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['priority_txt'] = 'Öncelik'; +$wb['rid_txt'] = 'Kullanıcı'; +$wb['email_txt'] = 'Beyaz liste Email'; +$wb['add_new_record_txt'] = 'Yeni Beyaz Liste'; +?> diff --git a/interface/ispconfig/interface/mail/lib/module.conf.php b/interface/ispconfig/interface/mail/lib/module.conf.php new file mode 100644 index 0000000..4ea0529 --- /dev/null +++ b/interface/ispconfig/interface/mail/lib/module.conf.php @@ -0,0 +1,125 @@ +<?php + +$module['name'] = 'mail'; +$module['title'] = 'top_menu_email'; +$module['template'] = 'module.tpl.htm'; +$module['startpage'] = 'mail/mail_domain_list.php'; +$module['tab_width'] = ''; + + +//**** Email accounts menu +$items = array(); + +$items[] = array( 'title' => 'Domain', + 'target' => 'content', + 'link' => 'mail/mail_domain_list.php'); + +$items[] = array( 'title' => 'Domain Alias', + 'target' => 'content', + 'link' => 'mail/mail_aliasdomain_list.php'); + +$items[] = array( 'title' => 'Email Mailbox', + 'target' => 'content', + 'link' => 'mail/mail_user_list.php'); + +$items[] = array( 'title' => 'Email Alias', + 'target' => 'content', + 'link' => 'mail/mail_alias_list.php'); + +$items[] = array( 'title' => 'Email Forward', + 'target' => 'content', + 'link' => 'mail/mail_forward_list.php'); + +$items[] = array( 'title' => 'Email Catchall', + 'target' => 'content', + 'link' => 'mail/mail_domain_catchall_list.php'); + +$items[] = array( 'title' => 'Email Routing', + 'target' => 'content', + 'link' => 'mail/mail_transport_list.php'); + +$module['nav'][] = array( 'title' => 'Email Accounts', + 'open' => 1, + 'items' => $items); + +//**** Spamfilter menu +$items = array(); + +$items[] = array( 'title' => 'Whitelist', + 'target' => 'content', + 'link' => 'mail/spamfilter_whitelist_list.php'); + +$items[] = array( 'title' => 'Blacklist', + 'target' => 'content', + 'link' => 'mail/spamfilter_blacklist_list.php'); + +if($_SESSION['s']['user']['typ'] == 'admin') { + + $items[] = array( 'title' => 'User / Domain', + 'target' => 'content', + 'link' => 'mail/spamfilter_users_list.php'); + + $items[] = array( 'title' => 'Policy', + 'target' => 'content', + 'link' => 'mail/spamfilter_policy_list.php'); + +// $items[] = array( 'title' => 'Server Settings', +// 'target' => 'content', +// 'link' => 'mail/spamfilter_config_list.php'); +} + +$module['nav'][] = array( 'title' => 'Spamfilter', + 'open' => 1, + 'items' => $items); + +//**** Fetchmail menu +$items = array(); + +$items[] = array( 'title' => 'Fetchmail', + 'target' => 'content', + 'link' => 'mail/mail_get_list.php'); + + +$module['nav'][] = array( 'title' => 'Fetchmail', + 'open' => 1, + 'items' => $items); + +//**** Statistics menu +$items = array(); + +$items[] = array( 'title' => 'Mailbox traffic', + 'target' => 'content', + 'link' => 'mail/mail_user_stats.php'); + + +$module['nav'][] = array( 'title' => 'Statistics', + 'open' => 1, + 'items' => $items); + + +//**** Global filters menu +$items = array(); +if($_SESSION['s']['user']['typ'] == 'admin') { + + $items[] = array( 'title' => 'Postfix Whitelist', + 'target' => 'content', + 'link' => 'mail/mail_whitelist_list.php'); + + $items[] = array( 'title' => 'Postfix Blacklist', + 'target' => 'content', + 'link' => 'mail/mail_blacklist_list.php'); + + $items[] = array( 'title' => 'Content Filter', + 'target' => 'content', + 'link' => 'mail/mail_content_filter_list.php'); + + $items[] = array( 'title' => 'Relay Recipients', + 'target' => 'content', + 'link' => 'mail/mail_relay_recipient_list.php'); + + $module['nav'][] = array( 'title' => 'Global Filters', + 'open' => 1, + 'items' => $items); +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_alias.list.php b/interface/ispconfig/interface/mail/list/mail_alias.list.php new file mode 100644 index 0000000..57b7ef6 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_alias.list.php @@ -0,0 +1,79 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_alias"; + +// Database table +$liste["table"] = "mail_forwarding"; + +// Index index field of the database table +$liste["table_idx"] = "forwarding_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_alias_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_alias_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_alias_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "destination", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_aliasdomain.list.php b/interface/ispconfig/interface/mail/list/mail_aliasdomain.list.php new file mode 100644 index 0000000..7cb7a9e --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_aliasdomain.list.php @@ -0,0 +1,79 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_aliasdomain"; + +// Database table +$liste["table"] = "mail_forwarding"; + +// Index index field of the database table +$liste["table_idx"] = "forwarding_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_aliasdomain_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_aliasdomain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_aliasdomain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "destination", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_blacklist.list.php b/interface/ispconfig/interface/mail/list/mail_blacklist.list.php new file mode 100644 index 0000000..8f73012 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_blacklist.list.php @@ -0,0 +1,95 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_blacklist"; + +// Database table +$liste["table"] = "mail_access"; + +// Index index field of the database table +$liste["table_idx"] = "access_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_blacklist_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_blacklist_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_blacklist_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "type", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('recipient' => 'Recipient', 'sender' => 'Sender', 'client' => 'Client')); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_content_filter.list.php b/interface/ispconfig/interface/mail/list/mail_content_filter.list.php new file mode 100644 index 0000000..2d16f7d --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_content_filter.list.php @@ -0,0 +1,96 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_content_filter"; + +// Database table +$liste["table"] = "mail_content_filter"; + +// Index index field of the database table +$liste["table_idx"] = "content_filter_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_content_filter_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_content_filter_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_content_filter_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "pattern", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "action", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => array('DISCARD' => 'DISCARD','DUNNO'=>'DUNNO','FILTER'=>'FILTER','HOLD'=>'HOLD','IGNORE'=>'IGNORE','PREPEND'=>'PREPEND','REDIRECT'=>'REDIRECT','REPLACE'=>'REPLACE','REJECT'=>'REJECT','WARN'=>'WARN')); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_domain.list.php b/interface/ispconfig/interface/mail/list/mail_domain.list.php new file mode 100644 index 0000000..34b1fb1 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_domain.list.php @@ -0,0 +1,86 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_domain"; + +// Database table +$liste["table"] = "mail_domain"; + +// Index index field of the database table +$liste["table_idx"] = "domain_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_domain_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_domain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_domain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_domain_catchall.list.php b/interface/ispconfig/interface/mail/list/mail_domain_catchall.list.php new file mode 100644 index 0000000..118856b --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_domain_catchall.list.php @@ -0,0 +1,79 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_domain_catchall"; + +// Database table +$liste["table"] = "mail_forwarding"; + +// Index index field of the database table +$liste["table_idx"] = "forwarding_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_domain_catchall_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_domain_catchall_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_domain_catchall_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "destination", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_forward.list.php b/interface/ispconfig/interface/mail/list/mail_forward.list.php new file mode 100644 index 0000000..7af79a5 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_forward.list.php @@ -0,0 +1,79 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_forward"; + +// Database table +$liste["table"] = "mail_forwarding"; + +// Index index field of the database table +$liste["table_idx"] = "forwarding_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_forward_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_forward_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_forward_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "destination", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_get.list.php b/interface/ispconfig/interface/mail/list/mail_get.list.php new file mode 100644 index 0000000..0e0beb0 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_get.list.php @@ -0,0 +1,102 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_get"; + +// Database table +$liste["table"] = "mail_get"; + +// Index index field of the database table +$liste["table_idx"] = "mailget_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_get_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_get_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_get_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "source_server", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "source_username", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "destination", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_relay_recipient.list.php b/interface/ispconfig/interface/mail/list/mail_relay_recipient.list.php new file mode 100644 index 0000000..0302fff --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_relay_recipient.list.php @@ -0,0 +1,85 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_relay_recipient"; + +// Database table +$liste["table"] = "mail_relay_recipient"; + +// Index index field of the database table +$liste["table_idx"] = "relay_recipient_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_relay_recipient_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_relay_recipient_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_relay_recipient_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_spamfilter.list.php b/interface/ispconfig/interface/mail/list/mail_spamfilter.list.php new file mode 100644 index 0000000..91963c0 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_spamfilter.list.php @@ -0,0 +1,85 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_spamfilter"; + +// Database table +$liste["table"] = "server"; + +// Index index field of the database table +$liste["table_idx"] = "server_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_spamfilter_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_spamfilter_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_spamfilter_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "server_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_transport.list.php b/interface/ispconfig/interface/mail/list/mail_transport.list.php new file mode 100644 index 0000000..5d3afdd --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_transport.list.php @@ -0,0 +1,104 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_transport"; + +// Database table +$liste["table"] = "mail_transport"; + +// Index index field of the database table +$liste["table_idx"] = "transport_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_transport_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_transport_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_transport_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "transport", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "sort_order", + 'datatype' => "INTEGER", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_user.list.php b/interface/ispconfig/interface/mail/list/mail_user.list.php new file mode 100644 index 0000000..a3fc54b --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_user.list.php @@ -0,0 +1,78 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_user"; + +// Database table +$liste["table"] = "mail_user"; + +// Index index field of the database table +$liste["table_idx"] = "mailuser_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_user_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_user_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_user_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "email", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "autoresponder", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_user_filter.list.php b/interface/ispconfig/interface/mail/list/mail_user_filter.list.php new file mode 100644 index 0000000..d4c29a5 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_user_filter.list.php @@ -0,0 +1,60 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_user_filter"; + +// Database table +$liste["table"] = "mail_user_filter"; + +// Index index field of the database table +$liste["table_idx"] = "filter_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_user_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_user_filter_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_user_filter_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "no"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "rulename", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_user_stats.list.php b/interface/ispconfig/interface/mail/list/mail_user_stats.list.php new file mode 100644 index 0000000..f7bc464 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_user_stats.list.php @@ -0,0 +1,60 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_user_stats"; + +// Database table +$liste["table"] = "mail_user"; + +// Index index field of the database table +$liste["table_idx"] = "mailuser_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_user_stats.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_user_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_user_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "email", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/mail_whitelist.list.php b/interface/ispconfig/interface/mail/list/mail_whitelist.list.php new file mode 100644 index 0000000..b34d97f --- /dev/null +++ b/interface/ispconfig/interface/mail/list/mail_whitelist.list.php @@ -0,0 +1,94 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "mail_whitelist"; + +// Database table +$liste["table"] = "mail_access"; + +// Index index field of the database table +$liste["table_idx"] = "access_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "mail_whitelist_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "mail_whitelist_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "mail_whitelist_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "source", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "type", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('recipient' => 'Recipient', 'sender' => 'Sender', 'client' => 'Client')); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/spamfilter_blacklist.list.php b/interface/ispconfig/interface/mail/list/spamfilter_blacklist.list.php new file mode 100644 index 0000000..d082784 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/spamfilter_blacklist.list.php @@ -0,0 +1,108 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "spamfilter_blacklist"; + +// Database table +$liste["table"] = "spamfilter_wblist"; + +// Index index field of the database table +$liste["table_idx"] = "wblist_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "spamfilter_blacklist_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "spamfilter_blacklist_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "spamfilter_blacklist_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "priority", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10)); + +$liste["item"][] = array( 'field' => "rid", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,email FROM spamfilter_users WHERE {AUTHSQL} ORDER BY email', + 'keyfield'=> 'id', + 'valuefield'=> 'email' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "email", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/spamfilter_config.list.php b/interface/ispconfig/interface/mail/list/spamfilter_config.list.php new file mode 100644 index 0000000..8d672ff --- /dev/null +++ b/interface/ispconfig/interface/mail/list/spamfilter_config.list.php @@ -0,0 +1,60 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "spamfilter_config"; + +// Database table +$liste["table"] = "server"; + +// Index index field of the database table +$liste["table_idx"] = "server_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "spamfilter_config_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "spamfilter_config_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "spamfilter_config_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "server_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/spamfilter_policy.list.php b/interface/ispconfig/interface/mail/list/spamfilter_policy.list.php new file mode 100644 index 0000000..2b60ff0 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/spamfilter_policy.list.php @@ -0,0 +1,116 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "spamfilter_policy"; + +// Database table +$liste["table"] = "spamfilter_policy"; + +// Index index field of the database table +$liste["table_idx"] = "id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "spamfilter_policy_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "spamfilter_policy_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "spamfilter_policy_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "policy_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "virus_lover", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "spam_lover", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "banned_files_lover", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "bad_header_lover", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + + + + + + + + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/spamfilter_users.list.php b/interface/ispconfig/interface/mail/list/spamfilter_users.list.php new file mode 100644 index 0000000..e088a3b --- /dev/null +++ b/interface/ispconfig/interface/mail/list/spamfilter_users.list.php @@ -0,0 +1,108 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "spamfilter_users"; + +// Database table +$liste["table"] = "spamfilter_users"; + +// Index index field of the database table +$liste["table_idx"] = "id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "spamfilter_users_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "spamfilter_users_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "spamfilter_users_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "local", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "priority", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10)); + +$liste["item"][] = array( 'field' => "policy_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,policy_name FROM spamfilter_policy WHERE {AUTHSQL} ORDER BY policy_name', + 'keyfield'=> 'id', + 'valuefield'=> 'policy_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "fullname", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/list/spamfilter_whitelist.list.php b/interface/ispconfig/interface/mail/list/spamfilter_whitelist.list.php new file mode 100644 index 0000000..f765fd8 --- /dev/null +++ b/interface/ispconfig/interface/mail/list/spamfilter_whitelist.list.php @@ -0,0 +1,108 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "spamfilter_whitelist"; + +// Database table +$liste["table"] = "spamfilter_wblist"; + +// Index index field of the database table +$liste["table_idx"] = "wblist_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "spamfilter_whitelist_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "spamfilter_whitelist_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "spamfilter_whitelist_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "priority", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10)); + +$liste["item"][] = array( 'field' => "rid", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,email FROM spamfilter_users WHERE {AUTHSQL} ORDER BY email', + 'keyfield'=> 'id', + 'valuefield'=> 'email' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "email", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_alias_del.php b/interface/ispconfig/interface/mail/mail_alias_del.php new file mode 100644 index 0000000..4d4c5b2 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_alias_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_alias.list.php"; +$tform_def_file = "form/mail_alias.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_alias_edit.php b/interface/ispconfig/interface/mail/mail_alias_edit.php new file mode 100644 index 0000000..d031d29 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_alias_edit.php @@ -0,0 +1,145 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_alias.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailalias',"type = 'alias'")) { + $app->error($app->tform->wordbook["limit_mailalias_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailalias',"type = 'alias'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailalias_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $email = $this->dataRecord["source"]; + $email_parts = explode("@",$email); + $app->tpl->setVar("email_local_part",$email_parts[0]); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r').' ORDER BY domain'; + $domains = $app->db->queryAllRecords($sql); + $domain_select = ''; + if(is_array($domains)) { + foreach( $domains as $domain) { + $selected = ($domain["domain"] == @$email_parts[1])?'SELECTED':''; + $domain_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + } + $app->tpl->setVar("email_domain",$domain_select); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Check if Domain belongs to user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["email_domain"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailalias FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_mailalias"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE sys_groupid = $client_group_id AND type = 'alias'"); + if($tmp["number"] >= $client["limit_mailalias"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailalias_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + + // compose the email field + $this->dataRecord["source"] = $_POST["email_local_part"]."@".$_POST["email_domain"]; + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + unset($this->dataRecord["email_local_part"]); + unset($this->dataRecord["email_domain"]); + + //* Check if there is no active mailbox with this address + $tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE postfix = 'y' AND email = '".$app->db->quote($this->dataRecord["source"])."'"); + if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("duplicate_mailbox_txt")."<br>"; + unset($tmp); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app; + + $domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("update mail_forwarding SET sys_groupid = ".$domain['sys_groupid']." WHERE forwarding_id = ".$this->id); + + } + + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_alias_list.php b/interface/ispconfig/interface/mail/mail_alias_list.php new file mode 100644 index 0000000..f4a3d7c --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_alias_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_alias.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'alias'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_aliasdomain_del.php b/interface/ispconfig/interface/mail/mail_aliasdomain_del.php new file mode 100644 index 0000000..52a54a1 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_aliasdomain_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_aliasdomain.list.php"; +$tform_def_file = "form/mail_aliasdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_aliasdomain_edit.php b/interface/ispconfig/interface/mail/mail_aliasdomain_edit.php new file mode 100644 index 0000000..91fbf93 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_aliasdomain_edit.php @@ -0,0 +1,141 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_aliasdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailaliasdomain',"type = 'aliasdomain'")) { + $app->error($app->tform->wordbook["limit_mailaliasdomain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailaliasdomain',"type = 'aliasdomain'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailaliasdomain_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $source_domain = substr($this->dataRecord["source"],1); + $destination_domain = substr($this->dataRecord["destination"],1); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r').' ORDER BY domain'; + $domains = $app->db->queryAllRecords($sql); + + $source_select = ''; + $destination_select = ''; + if(is_array($domains)) { + foreach( $domains as $domain) { + $selected = ($domain["domain"] == @$source_domain)?'SELECTED':''; + $source_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + $selected = ($domain["domain"] == @$destination_domain)?'SELECTED':''; + $destination_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + } + $app->tpl->setVar("source_domain",$source_select); + $app->tpl->setVar("destination_domain",$destination_select); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Check if source Domain belongs to user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["source"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["source"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // Check if the destination domain belongs to the user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["destination"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["destination"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + if(!$app->tform->checkClientLimit('limit_mailaliasdomain',"type = 'aliasdomain'")) { + $app->error($app->tform->wordbook["limit_mailaliasdomain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailaliasdomain',"type = 'aliasdomain'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailaliasdomain_txt"]); + } + } // end if user is not admin + + if($this->dataRecord["source"] == $this->dataRecord["destination"]) $app->tform->errorMessage .= $app->tform->wordbook["source_destination_identical_txt"]; + + // compose the source and destination field + $this->dataRecord["source"] = "@".$app->db->quote($this->dataRecord["source"]); + $this->dataRecord["destination"] = "@".$app->db->quote($this->dataRecord["destination"]); + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app; + + $domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = '".$app->db->quote($_POST["destination"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("update mail_forwarding SET sys_groupid = ".$domain['sys_groupid']." WHERE forwarding_id = ".$this->id); + + } + + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_aliasdomain_list.php b/interface/ispconfig/interface/mail/mail_aliasdomain_list.php new file mode 100644 index 0000000..2725d45 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_aliasdomain_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_aliasdomain.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'aliasdomain'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_blacklist_del.php b/interface/ispconfig/interface/mail/mail_blacklist_del.php new file mode 100644 index 0000000..b11d70d --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_blacklist_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_blacklist.list.php"; +$tform_def_file = "form/mail_blacklist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_blacklist_edit.php b/interface/ispconfig/interface/mail/mail_blacklist_edit.php new file mode 100644 index 0000000..b0ac8c8 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_blacklist_edit.php @@ -0,0 +1,114 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_blacklist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailfilter')) { + $app->error($app->tform->wordbook["limit_mailfilter_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailfilter')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailfilter_txt"]); + } + } + + parent::onShowNew(); + } + + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from mail_access WHERE access_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailfilter FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_mailfilter"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(access_id) as number FROM mail_access WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_mailfilter"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailfilter_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + parent::onSubmit(); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_blacklist_list.php b/interface/ispconfig/interface/mail/mail_blacklist_list.php new file mode 100644 index 0000000..7e14475 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_blacklist_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_blacklist.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "access = 'REJECT'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_content_filter_del.php b/interface/ispconfig/interface/mail/mail_content_filter_del.php new file mode 100644 index 0000000..8726589 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_content_filter_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_content_filter.list.php"; +$tform_def_file = "form/mail_content_filter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_content_filter_edit.php b/interface/ispconfig/interface/mail/mail_content_filter_edit.php new file mode 100644 index 0000000..d2cd618 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_content_filter_edit.php @@ -0,0 +1,75 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_content_filter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('These Filters are only for Admins.'); + + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from mail_content_filter WHERE content_filter_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_content_filter_list.php b/interface/ispconfig/interface/mail/mail_content_filter_list.php new file mode 100644 index 0000000..aa47d9d --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_content_filter_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_content_filter.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +// $app->listform_actions->SQLExtWhere = "type = 'local'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_catchall_del.php b/interface/ispconfig/interface/mail/mail_domain_catchall_del.php new file mode 100644 index 0000000..2560fac --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_catchall_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_domain_catchall.list.php"; +$tform_def_file = "form/mail_domain_catchall.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_catchall_edit.php b/interface/ispconfig/interface/mail/mail_domain_catchall_edit.php new file mode 100644 index 0000000..219926e --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_catchall_edit.php @@ -0,0 +1,138 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_domain_catchall.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailcatchall',"type = 'catchall'")) { + $app->error($app->tform->wordbook["limit_mailcatchall_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailcatchall',"type = 'catchall'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailcatchall_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $email = $this->dataRecord["source"]; + $email_parts = explode("@",$email); + $app->tpl->setVar("email_local_part",$email_parts[0]); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r'); + $domains = $app->db->queryAllRecords($sql); + $domain_select = ''; + if(is_array($domains)) { + foreach( $domains as $domain) { + $selected = (isset($email_parts[1]) && $domain["domain"] == $email_parts[1])?'SELECTED':''; + $domain_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + } + $app->tpl->setVar("email_domain",$domain_select); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Check if Domain belongs to user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["email_domain"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailcatchall FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another catchall + if($this->id == 0 && $client["limit_mailcatchall"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE sys_groupid = $client_group_id AND type = 'catchall'"); + if($tmp["number"] >= $client["limit_mailcatchall"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailcatchall_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + // compose the email field + $this->dataRecord["source"] = "@".$_POST["email_domain"]; + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + //unset($this->dataRecord["email_local_part"]); + unset($this->dataRecord["email_domain"]); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app; + + $domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("update mail_forwarding SET sys_groupid = ".$domain['sys_groupid']." WHERE forwarding_id = ".$this->id); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_catchall_list.php b/interface/ispconfig/interface/mail/mail_domain_catchall_list.php new file mode 100644 index 0000000..f698668 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_catchall_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_domain_catchall.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'catchall'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_del.php b/interface/ispconfig/interface/mail/mail_domain_del.php new file mode 100644 index 0000000..9713642 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_del.php @@ -0,0 +1,92 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_domain.list.php"; +$tform_def_file = "form/mail_domain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + $domain = $this->dataRecord['domain']; + + // Before we delete the email domain, + // we will delete all depending records. + + // Delete all forwardings where the osurce or destination belongs to this domain + $records = $app->db->queryAllRecords("SELECT forwarding_id as id FROM mail_forwarding WHERE source like '%@".$app->db->quote($domain)."' OR destination like '%@".$app->db->quote($domain)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('mail_forwarding','forwarding_id',$rec['id']); + } + + // Delete all fetchmail accounts where destination belongs to this domain + $records = $app->db->queryAllRecords("SELECT mailget_id as id FROM mail_get WHERE destination like '%@".$app->db->quote($domain)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('mail_get','mailget_id',$rec['id']); + } + + // Delete all mailboxes where destination belongs to this domain + $records = $app->db->queryAllRecords("SELECT mailuser_id as id FROM mail_user WHERE email like '%@".$app->db->quote($domain)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('mail_user','mailuser_id',$rec['id']); + } + + // Delete all spamfilters that belong to this domain + $records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = '@".$app->db->quote($domain)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('spamfilter_users','id',$rec['id']); + } + + } +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_edit.php b/interface/ispconfig/interface/mail/mail_domain_edit.php new file mode 100644 index 0000000..7acf673 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_edit.php @@ -0,0 +1,327 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_domain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_maildomain')) { + $app->error($app->tform->wordbook["limit_maildomain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_maildomain')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_maildomain_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] == 'admin') { + // Getting Clients of the user + if($_SESSION["s"]["user"]["typ"] == 'admin') { + $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name"; + } else { + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $sql = "SELECT client.client_id, limit_web_domain, default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"; + } + $clients = $app->db->queryAllRecords($sql); + $client_select = ''; + if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= "<option value='0'></option>"; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = ($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } elseif ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client.client_id, contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id order by contact_name"); + + // Set the webserver to the default server of the client + $tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_webserver]"); + $app->tpl->setVar("server_id","<option value='$client[default_webserver]'>$tmp[server_name]</option>"); + unset($tmp); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']; + $clients = $app->db->queryAllRecords($sql); + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } + + + + + // Get the spamfilter policys for the user + $tmp_user = $app->db->queryOneRecord("SELECT policy_id FROM spamfilter_users WHERE email = '@".$this->dataRecord["domain"]."'"); + $sql = "SELECT id, policy_name FROM spamfilter_policy WHERE ".$app->tform->getAuthSQL('r'); + $policys = $app->db->queryAllRecords($sql); + $policy_select = "<option value='0'>".$app->tform->wordbook["no_policy"]."</option>"; + if(is_array($policys)) { + foreach( $policys as $p) { + $selected = ($p["id"] == $tmp_user["policy_id"])?'SELECTED':''; + $policy_select .= "<option value='$p[id]' $selected>$p[policy_name]</option>\r\n"; + } + } + $app->tpl->setVar("policy",$policy_select); + unset($policys); + unset($policy_select); + unset($tmp_user); + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 1); + $app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]); + } else { + $app->tpl->setVar("edit_disabled", 0); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + if($_SESSION["s"]["user"]["typ"] != 'admin') { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_maildomain, default_mailserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // When the record is updated + if($this->id > 0) { + // restore the server ID if the user is not admin and record is edited + $tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_domain WHERE domain_id = ".intval($this->id)); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + // When the record is inserted + } else { + // set the server ID to the default mailserver of the client + $this->dataRecord["server_id"] = $client["default_mailserver"]; + + // Check if the user may add another mail_domain + if($client["limit_maildomain"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(domain_id) as number FROM mail_domain WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_maildomain"]) { + $app->error($app->tform->wordbook["limit_maildomain_txt"]); + } + } + } + + // Clients may not set the client_group_id, so we unset them if user is not a admin + if(!$app->auth->has_clients($_SESSION['s']['user']['userid'])) unset($this->dataRecord["client_group_id"]); + } + + //* make sure that the email domain is lowercase + if(isset($this->dataRecord["domain"])) $this->dataRecord["domain"] = strtolower($this->dataRecord["domain"]); + + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + // make sure that the record belongs to the client group and not the admin group when a dmin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE mail_domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE mail_domain SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE domain_id = ".$this->id); + } + + // Spamfilter policy + $policy_id = intval($this->dataRecord["policy"]); + if($policy_id > 0) { + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".mysql_real_escape_string($this->dataRecord["domain"])."'"); + if($tmp_user["id"] > 0) { + // There is already a record that we will update + $app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]); + } else { + $tmp_domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain_id = ".$this->id); + // We create a new record + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`) + VALUES (".$_SESSION["s"]["user"]["userid"].", ".$tmp_domain["sys_groupid"].", 'riud', 'riud', '', ".$this->dataRecord["server_id"].", 5, ".$policy_id.", '@".mysql_real_escape_string($this->dataRecord["domain"])."', '@".mysql_real_escape_string($this->dataRecord["domain"])."', 'Y')"; + $app->db->datalogInsert('spamfilter_users', $insert_data, 'id'); + unset($tmp_domain); + } + } // endif spamfilter policy + } + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id, domain from mail_domain WHERE domain_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + //* If the user is neither admin nor reseller + } else { + //* We do not allow users to change a domain which has been created by the admin + $rec = $app->db->queryOneRecord("SELECT domain from mail_domain WHERE domain_id = ".$this->id); + if($rec['domain'] != $this->dataRecord["domain"] && $app->tform->checkPerm($this->id,'u')) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'); + $this->dataRecord["domain"] = $rec['domain']; + } + unset($rec); + } + } + + + + function onAfterUpdate() { + global $app, $conf; + + // make sure that the record belongs to the clinet group and not the admin group when admin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE mail_domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE mail_domain SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE domain_id = ".$this->id); + } + + // Spamfilter policy + $policy_id = intval($this->dataRecord["policy"]); + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".mysql_real_escape_string($this->dataRecord["domain"])."'"); + if($policy_id > 0) { + if($tmp_user["id"] > 0) { + // There is already a record that we will update + $app->db->datalogUpdate('spamfilter_users', "policy_id = $policy_id", 'id', $tmp_user["id"]); + } else { + $tmp_domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain_id = ".$this->id); + // We create a new record + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`) + VALUES (".$_SESSION["s"]["user"]["userid"].", ".$tmp_domain["sys_groupid"].", 'riud', 'riud', '', ".$this->dataRecord["server_id"].", 5, ".$policy_id.", '@".mysql_real_escape_string($this->dataRecord["domain"])."', '@".mysql_real_escape_string($this->dataRecord["domain"])."', 'Y')"; + $app->db->datalogInsert('spamfilter_users', $insert_data, 'id'); + unset($tmp_domain); + } + } else { + if($tmp_user["id"] > 0) { + // There is already a record but the user shall have no policy, so we delete it + $app->db->datalogDelete('spamfilter_users', 'id', $tmp_user["id"]); + } + } // endif spamfilter policy + //** If the domain name or owner has been changed, change the domain and owner in all mailbox records + if($this->oldDataRecord['domain'] != $this->dataRecord['domain'] || (isset($this->dataRecord['client_group_id']) && $this->oldDataRecord['sys_groupid'] != $this->dataRecord['client_group_id'])) { + $app->uses('getconf'); + $mail_config = $app->getconf->get_server_config($this->dataRecord["server_id"],'mail'); + + //* Update the mailboxes + $mailusers = $app->db->queryAllRecords("SELECT * FROM mail_user WHERE email like '%@".mysql_real_escape_string($this->oldDataRecord['domain'])."'"); + $sys_groupid = (isset($this->dataRecord['client_group_id']))?$this->dataRecord['client_group_id']:$this->oldDataRecord['sys_groupid']; + if(is_array($mailusers)) { + foreach($mailusers as $rec) { + // setting Maildir, Homedir, UID and GID + $mail_parts = explode("@",$rec['email']); + $maildir = str_replace("[domain]",$this->dataRecord['domain'],$mail_config["maildir_path"]); + $maildir = str_replace("[localpart]",$mail_parts[0],$maildir); + $maildir = mysql_real_escape_string($maildir); + $email = mysql_real_escape_string($mail_parts[0].'@'.$this->dataRecord['domain']); + $app->db->datalogUpdate('mail_user', "maildir = '$maildir', email = '$email', sys_groupid = '$sys_groupid'", 'mailuser_id', $rec['mailuser_id']); + } + } + + //* Update the aliases + $forwardings = $app->db->queryAllRecords("SELECT * FROM mail_forwarding WHERE source like '%@".mysql_real_escape_string($this->oldDataRecord['domain'])."' OR destination like '%@".mysql_real_escape_string($this->oldDataRecord['domain'])."'"); + if(is_array($forwardings)) { + foreach($forwardings as $rec) { + $destination = mysql_real_escape_string(str_replace($this->oldDataRecord['domain'],$this->dataRecord['domain'],$rec['destination'])); + $source = mysql_real_escape_string(str_replace($this->oldDataRecord['domain'],$this->dataRecord['domain'],$rec['source'])); + $app->db->datalogUpdate('mail_forwarding', "source = '$source', destination = '$destination', sys_groupid = '$sys_groupid'", 'forwarding_id', $rec['forwarding_id']); + } + } + + //* Delete the old spamfilter record + $tmp = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".mysql_real_escape_string($this->oldDataRecord["domain"])."'"); + $app->db->datalogDelete('spamfilter_users', 'id', $tmp["id"]); + unset($tmp); + + } // end if domain name changed + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_domain_list.php b/interface/ispconfig/interface/mail/mail_domain_list.php new file mode 100644 index 0000000..0d26bd9 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_domain_list.php @@ -0,0 +1,27 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_domain.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +// $app->listform_actions->SQLExtWhere = "type = 'local'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_forward_del.php b/interface/ispconfig/interface/mail/mail_forward_del.php new file mode 100644 index 0000000..9fc76db --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_forward_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_forward.list.php"; +$tform_def_file = "form/mail_forward.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_forward_edit.php b/interface/ispconfig/interface/mail/mail_forward_edit.php new file mode 100644 index 0000000..0fef7a5 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_forward_edit.php @@ -0,0 +1,141 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_forward.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailforward',"type = 'forward'")) { + $app->error($app->tform->wordbook["limit_mailforward_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailforward',"type = 'forward'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailforward_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $email = $this->dataRecord["source"]; + $email_parts = explode("@",$email); + $app->tpl->setVar("email_local_part",$email_parts[0]); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r').' ORDER BY domain'; + $domains = $app->db->queryAllRecords($sql); + $domain_select = ''; + foreach( $domains as $domain) { + $selected = (isset($email_parts[1]) && $domain["domain"] == $email_parts[1])?'SELECTED':''; + $domain_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + $app->tpl->setVar("email_domain",$domain_select); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Check if Domain belongs to user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["email_domain"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailforward FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_mailforward"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE sys_groupid = $client_group_id AND type = 'forward'"); + if($tmp["number"] >= $client["limit_mailforward"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailforward_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + // compose the email field + $this->dataRecord["source"] = $_POST["email_local_part"]."@".$_POST["email_domain"]; + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + unset($this->dataRecord["email_local_part"]); + unset($this->dataRecord["email_domain"]); + + //* Check if there is no active mailbox with this address + $tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE postfix = 'y' AND email = '".$app->db->quote($this->dataRecord["source"])."'"); + if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("duplicate_mailbox_txt")."<br>"; + unset($tmp); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app; + + $domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("update mail_forwarding SET sys_groupid = ".$domain['sys_groupid']." WHERE forwarding_id = ".$this->id); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_forward_list.php b/interface/ispconfig/interface/mail/mail_forward_list.php new file mode 100644 index 0000000..da5c57d --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_forward_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_forward.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'forward'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_get_del.php b/interface/ispconfig/interface/mail/mail_get_del.php new file mode 100644 index 0000000..e66f852 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_get_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_get.list.php"; +$tform_def_file = "form/mail_get.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_get_edit.php b/interface/ispconfig/interface/mail/mail_get_edit.php new file mode 100644 index 0000000..f088e22 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_get_edit.php @@ -0,0 +1,109 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_get.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_fetchmail')) { + $app->error($app->tform->wordbook["limit_fetchmail_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_fetchmail')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_fetchmail_txt"]); + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_fetchmail FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another transport. + if($this->id == 0 && $client["limit_fetchmail"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(mailget_id) as number FROM mail_get WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_fetchmail"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_fetchmail_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + // Set the server ID according to the selected destination + $tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["destination"])."'"); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app; + + $tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["destination"])."'"); + $app->db->query("update mail_get SET sys_groupid = ".$tmp['sys_groupid']." WHERE mailget_id = ".$this->id); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_get_list.php b/interface/ispconfig/interface/mail/mail_get_list.php new file mode 100644 index 0000000..c08b064 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_get_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_get.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +// $app->listform_actions->SQLExtWhere = ""; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_relay_recipient_del.php b/interface/ispconfig/interface/mail/mail_relay_recipient_del.php new file mode 100644 index 0000000..acb264c --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_relay_recipient_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_relay_recipient.list.php"; +$tform_def_file = "form/mail_relay_recipient.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_relay_recipient_edit.php b/interface/ispconfig/interface/mail/mail_relay_recipient_edit.php new file mode 100644 index 0000000..70a18bd --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_relay_recipient_edit.php @@ -0,0 +1,59 @@ +<?php +/* +Copyright (c) 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_relay_recipient.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_relay_recipient_list.php b/interface/ispconfig/interface/mail/mail_relay_recipient_list.php new file mode 100644 index 0000000..6c9f3b4 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_relay_recipient_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_relay_recipient.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +# $app->listform_actions->SQLExtWhere = "access = 'OK'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_spamfilter_del.php b/interface/ispconfig/interface/mail/mail_spamfilter_del.php new file mode 100644 index 0000000..02832b8 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_spamfilter_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_spamfilter.list.php"; +$tform_def_file = "form/mail_spamfilter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_spamfilter_edit.php b/interface/ispconfig/interface/mail/mail_spamfilter_edit.php new file mode 100644 index 0000000..bafdfb4 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_spamfilter_edit.php @@ -0,0 +1,124 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_spamfilter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowEnd() { + global $app, $conf; + + // Getting email from data record + $email = $this->dataRecord["email"]; + $email_parts = explode("@",$email); + $app->tpl->setVar("email_local_part",$email_parts[0]); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE type = 'local' AND ".$app->tform->getAuthSQL('r'); + $domains = $app->db->queryAllRecords($sql); + $domain_select = ''; + foreach( $domains as $domain) { + $selected = ($domain["domain"] == $email_parts[1])?'SELECTED':''; + $domain_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + $app->tpl->setVar("email_domain",$domain_select); + + // calculate scores + if(count($this->dataRecord) > 0) { + $app->tpl->setVar("spam_rewrite_score_int",number_format($this->dataRecord["spam_rewrite_score_int"] / 100, 2, '.', '')); + $app->tpl->setVar("spam_redirect_score_int",number_format($this->dataRecord["spam_redirect_score_int"] / 100, 2, '.', '')); + $app->tpl->setVar("spam_delete_score_int",number_format($this->dataRecord["spam_delete_score_int"] / 100, 2, '.', '')); + } + + // Changing maildir to mailbox_id + $sql = "SELECT mailbox_id FROM mail_box WHERE maildir = '".$this->dataRecord["spam_redirect_maildir"]."' AND ".$app->tform->getAuthSQL('r'); + $mailbox = $app->db->queryOneRecord($sql); + $this->dataRecord["spam_redirect_maildir"] = $mailbox["mailbox_id"]; + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Check if Domain belongs to user + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["email_domain"]) $app->tform->errorMessage .= $app->tform->wordbook["no_domain_perm"]; + + // compose the email field + if($_POST["email_local_part"] != '') { + $this->dataRecord["email"] = $_POST["email_local_part"]."@".$_POST["email_domain"]; + } else { + $this->dataRecord["email"] = $_POST["email_domain"]; + } + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + unset($this->dataRecord["email_local_part"]); + unset($this->dataRecord["email_domain"]); + + // calculate scores + $this->dataRecord["spam_rewrite_score_int"] = $_POST["spam_rewrite_score_int"] * 100; + $this->dataRecord["spam_redirect_score_int"] = $_POST["spam_redirect_score_int"] * 100; + $this->dataRecord["spam_delete_score_int"] = $_POST["spam_delete_score_int"] * 100; + + // Changing mailbox_id to maildir + $sql = "SELECT maildir FROM mail_box WHERE mailbox_id = '".intval($_POST["spam_redirect_maildir"])."' AND ".$app->tform->getAuthSQL('r'); + $mailbox = $app->db->queryOneRecord($sql); + $this->dataRecord["spam_redirect_maildir"] = $mailbox["maildir"]; + + parent::onSubmit(); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_spamfilter_list.php b/interface/ispconfig/interface/mail/mail_spamfilter_list.php new file mode 100644 index 0000000..51c75b4 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_spamfilter_list.php @@ -0,0 +1,23 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_spamfilter.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_transport_del.php b/interface/ispconfig/interface/mail/mail_transport_del.php new file mode 100644 index 0000000..b6463a2 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_transport_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_transport.list.php"; +$tform_def_file = "form/mail_transport.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_transport_edit.php b/interface/ispconfig/interface/mail/mail_transport_edit.php new file mode 100644 index 0000000..4223a81 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_transport_edit.php @@ -0,0 +1,179 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_transport.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailrouting')) { + $app->error($app->tform->wordbook["limit_mailrouting_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailrouting')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailrouting_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $tmp_parts = explode(":",$this->dataRecord["transport"]); + if(!empty($this->id) && !stristr($this->dataRecord["transport"],':')) { + $rec["type"] = 'custom'; + } else { + if(empty($this->id) && empty($tmp_parts[0])) { + $rec["type"] = 'smtp'; + } else { + $rec["type"] = $tmp_parts[0]; + } + } + if(@$tmp_parts[2] != '') { + $dest = @$tmp_parts[1].':'.@$tmp_parts[2]; + } elseif($tmp_parts[1] != '') { + $dest = $tmp_parts[1]; + } else { + $dest = $this->dataRecord["transport"]; + } + if(@substr($dest,0,1) == '[') { + $rec["mx"] = 'checked="CHECKED"'; + $rec["destination"] = @str_replace(']','',@str_replace('[','',$dest)); + } else { + $rec["mx"] = ''; + $rec["destination"] = @$dest; + } + + $types = array('smtp' => 'smtp','uucp' => 'uucp','slow' => 'slow', 'error' => 'error', 'custom' => 'custom','' => 'null'); + $type_select = ''; + if(is_array($types)) { + foreach( $types as $key => $val) { + $selected = ($key == $rec["type"])?'SELECTED':''; + $type_select .= "<option value='$key' $selected>$val</option>\r\n"; + } + } + $rec["type"] = $type_select; + $app->tpl->setVar($rec); + unset($type); + unset($types); + + parent::onShowEnd(); + } + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from mail_transport WHERE transport_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailrouting FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another transport. + if($this->id == 0 && $client["limit_mailrouting"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(transport_id) as number FROM mail_transport WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_mailrouting"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailrouting_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + //* Compose transport field + if($this->dataRecord["mx"] == 'y') { + if(stristr($this->dataRecord["destination"],':')) { + $tmp_parts = explode(":",$this->dataRecord["destination"]); + $transport = '['.$tmp_parts[0].']:'.$tmp_parts[1]; + } else { + $transport = '['.$this->dataRecord["destination"].']'; + } + } else { + $transport = $this->dataRecord["destination"]; + } + + if($this->dataRecord["type"] == 'custom') { + $this->dataRecord["transport"] = $transport; + } else { + $this->dataRecord["transport"] = $this->dataRecord["type"].':'.$transport; + } + + unset($this->dataRecord["type"]); + unset($this->dataRecord["mx"]); + unset($this->dataRecord["destination"]); + + parent::onSubmit(); + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_transport_list.php b/interface/ispconfig/interface/mail/mail_transport_list.php new file mode 100644 index 0000000..42db6ae --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_transport_list.php @@ -0,0 +1,26 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_transport.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +// $app->listform_actions->SQLExtWhere = "type = 'local'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_user_del.php b/interface/ispconfig/interface/mail/mail_user_del.php new file mode 100644 index 0000000..cb180fc --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_del.php @@ -0,0 +1,66 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_user.list.php"; +$tform_def_file = "form/mail_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '".mysql_real_escape_string($this->dataRecord["email"])."'"); + $app->db->datalogDelete('spamfilter_users', 'id', $tmp_user["id"]); + + } +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_user_edit.php b/interface/ispconfig/interface/mail/mail_user_edit.php new file mode 100644 index 0000000..3e76975 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_edit.php @@ -0,0 +1,328 @@ +<?php +/* +Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +//$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailbox')) { + $app->error($app->tform->wordbook["limit_mailbox_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailbox')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailbox_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + $email = $this->dataRecord["email"]; + $email_parts = explode("@",$email); + $app->tpl->setVar("email_local_part",$email_parts[0]); + + // Getting Domains of the user + $sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r').' ORDER BY domain'; + $domains = $app->db->queryAllRecords($sql); + $domain_select = ''; + if(is_array($domains)) { + foreach( $domains as $domain) { + $selected = ($domain["domain"] == @$email_parts[1])?'SELECTED':''; + $domain_select .= "<option value='$domain[domain]' $selected>$domain[domain]</option>\r\n"; + } + } + $app->tpl->setVar("email_domain",$domain_select); + unset($domains); + unset($domain_select); + + // Get the spamfilter policys for the user + $tmp_user = $app->db->queryOneRecord("SELECT policy_id FROM spamfilter_users WHERE email = '".$this->dataRecord["email"]."'"); + $sql = "SELECT id, policy_name FROM spamfilter_policy WHERE ".$app->tform->getAuthSQL('r'); + $policys = $app->db->queryAllRecords($sql); + $policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>"; + if(is_array($policys)) { + foreach( $policys as $p) { + $selected = ($p["id"] == $tmp_user["policy_id"])?'SELECTED':''; + $policy_select .= "<option value='$p[id]' $selected>$p[policy_name]</option>\r\n"; + } + } + $app->tpl->setVar("policy",$policy_select); + unset($policys); + unset($policy_select); + unset($tmp_user); + + // Convert quota from Bytes to MB + if($this->dataRecord["quota"] != -1) $app->tpl->setVar("quota",$this->dataRecord["quota"] / 1024 / 1024); + + // Is autoresponder set? + if ($this->dataRecord['autoresponder'] == 'y') { + $app->tpl->setVar("ar_active", 'checked="checked"'); + } else { + $app->tpl->setVar("ar_active", ''); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + //* Check if Domain belongs to user + if(isset($_POST["email_domain"])) { + $domain = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + if($domain["domain"] != $_POST["email_domain"]) $app->tform->errorMessage .= $app->tform->lng("no_domain_perm"); + } + + + //* if its an insert, check that the password is not empty + if($this->id == 0 && $_POST["password"] == '') { + $app->tform->errorMessage .= $app->tform->lng("error_no_pwd")."<br>"; + } + + //* Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailbox, limit_mailquota FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_mailbox"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_mailbox"]) { + $app->tform->errorMessage .= $app->tform->lng("limit_mailbox_txt")."<br>"; + } + unset($tmp); + } + + // Check the quota and adjust + if(isset($_POST["quota"]) && $client["limit_mailquota"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != ".intval($this->id)." AND ".$app->tform->getAuthSQL('u')); + $mailquota = $tmp["mailquota"] / 1024 / 1024; + $new_mailbox_quota = intval($this->dataRecord["quota"]); + if(($mailquota + $new_mailbox_quota > $client["limit_mailquota"]) || ($new_mailbox_quota == 0 && $client["limit_mailquota"] != -1)) { + $max_free_quota = $client["limit_mailquota"] - $mailquota; + $app->tform->errorMessage .= $app->tform->lng("limit_mailquota_txt").": ".$max_free_quota."<br>"; + // Set the quota field to the max free space + $this->dataRecord["quota"] = $max_free_quota; + } + unset($tmp); + unset($tmp_quota); + } + } // end if user is not admin + + + //* compose the email field + if(isset($_POST["email_local_part"]) && isset($_POST["email_domain"])) { + $this->dataRecord["email"] = strtolower($_POST["email_local_part"]."@".$_POST["email_domain"]); + + // Set the server id of the mailbox = server ID of mail domain. + $this->dataRecord["server_id"] = $domain["server_id"]; + + unset($this->dataRecord["email_local_part"]); + unset($this->dataRecord["email_domain"]); + + // Convert quota from MB to Bytes + if($this->dataRecord["quota"] != -1) $this->dataRecord["quota"] = $this->dataRecord["quota"] * 1024 * 1024; + + // setting Maildir, Homedir, UID and GID + $app->uses('getconf'); + $mail_config = $app->getconf->get_server_config($domain["server_id"],'mail'); + $maildir = str_replace("[domain]",$domain["domain"],$mail_config["maildir_path"]); + $maildir = str_replace("[localpart]",strtolower($_POST["email_local_part"]),$maildir); + $this->dataRecord["maildir"] = $maildir; + $this->dataRecord["homedir"] = $mail_config["homedir_path"]; + $this->dataRecord["uid"] = $mail_config["mailuser_uid"]; + $this->dataRecord["gid"] = $mail_config["mailuser_gid"]; + + //* Check if there is no alias or forward with this address + $tmp = $app->db->queryOneRecord("SELECT count(forwarding_id) as number FROM mail_forwarding WHERE active = 'y' AND source = '".$app->db->quote($this->dataRecord["email"])."'"); + if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("duplicate_alias_or_forward_txt")."<br>"; + unset($tmp); + + } + + //* if autoresponder checkbox not selected, do not save dates + if (!isset($_POST['autoresponder']) && array_key_exists('autoresponder_start_date', $_POST)) { + $this->dataRecord['autoresponder_start_date'] = array_map(create_function('$item','return 0;'), $this->dataRecord['autoresponder_start_date']); + $this->dataRecord['autoresponder_end_date'] = array_map(create_function('$item','return 0;'), $this->dataRecord['autoresponder_end_date']); + } + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + // Set the domain owner as mailbox owner + $domain = $app->db->queryOneRecord("SELECT sys_groupid, server_id FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("UPDATE mail_user SET sys_groupid = ".$domain["sys_groupid"]." WHERE mailuser_id = ".$this->id); + + // send a welcome email to create the mailbox +// mail($this->dataRecord["email"],$app->tform->wordbook["welcome_mail_subject"],$app->tform->wordbook["welcome_mail_message"]); + + // tries to detect current charset, and encode subject-header and body from it to ISO-8859-1. + $fromCharset = mb_detect_encoding($app->tform->lng("welcome_mail_subject")); + $iconvPreferences = array("input-charset" => $fromCharset, + "output-charset" => "ISO-8859-1", + "line-length" => 76, + "line-break-chars" => "\n", + "scheme" => "Q"); + + $welcomeFromName = $app->tform->lng("welcome_mail_fromname_txt"); + $welcomeFromEmail = $app->tform->lng("welcome_mail_fromemail_txt"); + $mailHeaders = "MIME-Version: 1.0" . "\n"; + $mailHeaders .= "Content-type: text/plain; charset=iso-8859-1" . "\n"; + $mailHeaders .= "From: $welcomeFromName <$welcomeFromEmail>" . "\n"; + $mailHeaders .= "Reply-To: <$welcomeFromEmail>" . "\n"; + $mailTarget = $this->dataRecord["email"]; + $mailSubject = iconv_mime_encode("trimoff", $app->tform->lng("welcome_mail_subject"), $iconvPreferences); + $mailSubject = str_replace("trimoff: ", "", $mailSubject); + $mailBody = iconv ($fromCharset, "ISO-8859-1", $app->tform->lng("welcome_mail_message")); + + mail($mailTarget, $mailSubject, $mailBody, $mailHeaders); + + // Spamfilter policy + $policy_id = intval($this->dataRecord["policy"]); + if($policy_id > 0) { + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '".mysql_real_escape_string($this->dataRecord["email"])."'"); + if($tmp_user["id"] > 0) { + // There is already a record that we will update + $app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]); + } else { + // We create a new record + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`) + VALUES (".$_SESSION["s"]["user"]["userid"].", ".$domain["sys_groupid"].", 'riud', 'riud', '', ".$domain["server_id"].", 10, ".$policy_id.", '".mysql_real_escape_string($this->dataRecord["email"])."', '".mysql_real_escape_string($this->dataRecord["email"])."', 'Y')"; + $app->db->datalogInsert('spamfilter_users', $insert_data, 'id'); + } + } // endif spamfilter policy + + + // Set the fields for dovecot + if(isset($this->dataRecord["email"])) { + $disableimap = ($this->dataRecord["disableimap"])?'y':'n'; + $disablepop3 = ($this->dataRecord["disablepop3"])?'y':'n'; + $disabledeliver = ($this->dataRecord["postfix"] == 'y')?'n':'y'; + $disablesmtp = ($this->dataRecord["postfix"] == 'y')?'n':'y'; + + $sql = "UPDATE mail_user SET disableimap = '$disableimap', disablepop3 = '$disablepop3', disablesmtp = '$disablesmtp', disabledeliver = '$disabledeliver' WHERE mailuser_id = ".$this->id; + $app->db->query($sql); + } + } + + function onAfterUpdate() { + global $app, $conf; + + // Set the domain owner as mailbox owner + if(isset($_POST["email_domain"])) { + $domain = $app->db->queryOneRecord("SELECT sys_groupid, server_id FROM mail_domain WHERE domain = '".$app->db->quote($_POST["email_domain"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("UPDATE mail_user SET sys_groupid = ".$domain["sys_groupid"]." WHERE mailuser_id = ".$this->id); + + // Spamfilter policy + $policy_id = intval($this->dataRecord["policy"]); + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '".mysql_real_escape_string($this->dataRecord["email"])."'"); + if($policy_id > 0) { + if($tmp_user["id"] > 0) { + // There is already a record that we will update + $app->db->datalogUpdate('spamfilter_users', "policy_id = $policy_id", 'id', $tmp_user["id"]); + } else { + // We create a new record + $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`) + VALUES (".$_SESSION["s"]["user"]["userid"].", ".$domain["sys_groupid"].", 'riud', 'riud', '', ".$domain["server_id"].", 10, ".$policy_id.", '".mysql_real_escape_string($this->dataRecord["email"])."', '".mysql_real_escape_string($this->dataRecord["email"])."', 'Y')"; + $app->db->datalogInsert('spamfilter_users', $insert_data, 'id'); + } + }else { + if($tmp_user["id"] > 0) { + // There is already a record but the user shall have no policy, so we delete it + $app->db->datalogDelete('spamfilter_users', 'id', $tmp_user["id"]); + } + } // endif spamfilter policy + } + + // Set the fields for dovecot + if(isset($this->dataRecord["email"])) { + $disableimap = ($this->dataRecord["disableimap"])?'y':'n'; + $disablepop3 = ($this->dataRecord["disablepop3"])?'y':'n'; + $disabledeliver = ($this->dataRecord["postfix"] == 'y')?'n':'y'; + $disablesmtp = ($this->dataRecord["postfix"] == 'y')?'n':'y'; + + $sql = "UPDATE mail_user SET disableimap = '$disableimap', disablepop3 = '$disablepop3', disablesmtp = '$disablesmtp', disabledeliver = '$disabledeliver' WHERE mailuser_id = ".$this->id; + $app->db->query($sql); + } + + //** If the email address has been changed, change it in all aliases too + if(isset($this->dataRecord['email']) && $this->oldDataRecord['email'] != $this->dataRecord['email']) { + //if($this->oldDataRecord['email'] != $this->dataRecord['email']) { + + //* Update the aliases + $forwardings = $app->db->queryAllRecords("SELECT * FROM mail_forwarding WHERE destination = '".$app->db->quote($this->oldDataRecord['email'])."'"); + if(is_array($forwardings)) { + foreach($forwardings as $rec) { + $destination = $app->db->quote($this->dataRecord['email']); + $app->db->datalogUpdate('mail_forwarding', "destination = '$destination'", 'forwarding_id', $rec['forwarding_id']); + } + } + + } // end if email addess changed + + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + +?> diff --git a/interface/ispconfig/interface/mail/mail_user_filter_del.php b/interface/ispconfig/interface/mail/mail_user_filter_del.php new file mode 100644 index 0000000..81689b1 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_filter_del.php @@ -0,0 +1,83 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_user_filter.list.php"; +$tform_def_file = "form/mail_user_filter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onAfterDelete() { + global $app, $conf; + + $mailuser = $app->db->queryOneRecord("SELECT custom_mailfilter FROM mail_user WHERE mailuser_id = ".$this->dataRecord["mailuser_id"]); + $skip = false; + $lines = explode("\n",$mailuser['custom_mailfilter']); + $out = ''; + + foreach($lines as $line) { + $line = trim($line); + if($line == '### BEGIN FILTER_ID:'.$this->id) { + $skip = true; + } + if($skip == false && $line != '') $out .= $line ."\n"; + if($line == '### END FILTER_ID:'.$this->id) { + $skip = false; + } + } + + $out = mysql_real_escape_string($out); + $app->db->datalogUpdate('mail_user', "custom_mailfilter = '$out'", 'mailuser_id', $this->dataRecord["mailuser_id"]); + + } + +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_user_filter_edit.php b/interface/ispconfig/interface/mail/mail_user_filter_edit.php new file mode 100644 index 0000000..382460a --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_filter_edit.php @@ -0,0 +1,232 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_user_filter.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent mail_user record + $mailuser = $app->db->queryOneRecord("SELECT * FROM mail_user WHERE mailuser_id = '".intval($_REQUEST["mailuser_id"])."' AND ".$app->tform->getAuthSQL('r')); + + // Check if Domain belongs to user + if($mailuser["mailuser_id"] != $_POST["mailuser_id"]) $app->tform->errorMessage .= $app->tform->wordbook["no_mailuser_perm"]; + + // Set the mailuser_id + $this->dataRecord["mailuser_id"] = $mailuser["mailuser_id"]; + + // Remove leading dots + if(substr($this->dataRecord['target'],0,1) == '.') $this->dataRecord['target'] = substr($this->dataRecord['target'],1); + + parent::onSubmit(); + } + + /* + function onAfterInsert() { + global $app, $conf; + + $this->onAfterUpdate(); + + $app->db->query("UPDATE mail_user_filter SET sys_groupid = ".$mailuser['sys_groupid']." WHERE filter_id = ".$this->id); + } + + function onAfterUpdate() { + global $app, $conf; + + $mailuser = $app->db->queryOneRecord("SELECT custom_mailfilter FROM mail_user WHERE mailuser_id = ".$this->dataRecord["mailuser_id"]); + $skip = false; + $lines = explode("\n",$mailuser['custom_mailfilter']); + $out = ''; + $found = false; + + foreach($lines as $line) { + $line = rtrim($line); + if($line == '### BEGIN FILTER_ID:'.$this->id) { + $skip = true; + $found = true; + } + if($skip == false && $line != '') $out .= $line ."\n"; + if($line == '### END FILTER_ID:'.$this->id) { + $out .= $this->getRule(); + $skip = false; + } + } + + // We did not found our rule, so we add it now as first rule. + if($found == false) { + $new_rule = $this->getRule(); + $out = $new_rule . $out; + } + + $out = $app->db->quote($out); + $app->db->datalogUpdate('mail_user', "custom_mailfilter = '$out'", 'mailuser_id', $this->dataRecord["mailuser_id"]); + + } + + function getRule() { + + global $app,$conf; + + $app->uses("getconf"); + $mailuser_rec = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE mailuser_id = ".intval($this->dataRecord["mailuser_id"])); + $mail_config = $app->getconf->get_server_config(intval($mailuser_rec["server_id"]),'mail'); + + if($mail_config['mail_filter_syntax'] == 'sieve') { + + // ####################################################### + // Filter in Sieve Syntax + // ####################################################### + + $content = ''; + $content .= '### BEGIN FILTER_ID:'.$this->id."\n"; + + //$content .= 'require ["fileinto", "regex", "vacation"];'."\n"; + + $content .= 'if header :regex ["'.strtolower($this->dataRecord["source"]).'"] ["'; + + $searchterm = preg_quote($this->dataRecord["searchterm"]); + + if($this->dataRecord["op"] == 'contains') { + $content .= ".*".$searchterm; + } elseif ($this->dataRecord["op"] == 'is') { + $content .= $searchterm."$"; + } elseif ($this->dataRecord["op"] == 'begins') { + $content .= " ".$searchterm.""; + } elseif ($this->dataRecord["op"] == 'ends') { + $content .= ".*".$searchterm."$"; + } + + $content .= '"] {'."\n"; + + if($this->dataRecord["action"] == 'move') { + $content .= ' fileinto "'.$this->dataRecord["target"].'";' . "\n"; + } else { + $content .= " discard;\n"; + } + + $content .= " stop;\n}\n"; + + $content .= '### END FILTER_ID:'.$this->id."\n"; + + } else { + + // ####################################################### + // Filter in Maildrop Syntax + // ####################################################### + $content = ''; + $content .= '### BEGIN FILTER_ID:'.$this->id."\n"; + + $TargetNoQuotes = $this->dataRecord["target"]; + $TargetQuotes = "\"$TargetNoQuotes\""; + + $TestChDirNoQuotes = '$DEFAULT/.'.$TargetNoQuotes; + $TestChDirQuotes = "\"$TestChDirNoQuotes\""; + + $MailDirMakeNoQuotes = $TargetQuotes.' $DEFAULT'; + + $EchoTargetFinal = $TargetNoQuotes; + + + if($this->dataRecord["action"] == 'move') { + + $content .= " +`test -e ".$TestChDirQuotes." && exit 1 || exit 0` +if ( ".'$RETURNCODE'." != 1 ) +{ + `maildirmake -f $MailDirMakeNoQuotes` + `chmod -R 0700 ".$TestChDirQuotes."` + `echo \"INBOX.$EchoTargetFinal\" >> ".'$DEFAULT'."/courierimapsubscribed` +} +"; + } + + $content .= "if (/^".$this->dataRecord["source"].":"; + + $searchterm = preg_quote($this->dataRecord["searchterm"]); + + if($this->dataRecord["op"] == 'contains') { + $content .= ".*".$searchterm."/:h)\n"; + } elseif ($this->dataRecord["op"] == 'is') { + $content .= $searchterm."$/:h)\n"; + } elseif ($this->dataRecord["op"] == 'begins') { + $content .= " ".$searchterm."/:h)\n"; + } elseif ($this->dataRecord["op"] == 'ends') { + $content .= ".*".$searchterm."$/:h)\n"; + } + + $content .= "{\n"; + $content .= "exception {\n"; + + if($this->dataRecord["action"] == 'move') { + $content .= 'ID' . "$this->id" . 'EndFolder = "$DEFAULT/.' . $this->dataRecord['target'] . '/"' . "\n"; + $content .= "to ". '$ID' . "$this->id" . 'EndFolder' . "\n"; + } else { + $content .= "to /dev/null\n"; + } + + $content .= "}\n"; + $content .= "}\n"; + + //} + + $content .= '### END FILTER_ID:'.$this->id."\n"; + + } + + return $content; + } + */ + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_user_list.php b/interface/ispconfig/interface/mail/mail_user_list.php new file mode 100644 index 0000000..e7cb7c8 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_list.php @@ -0,0 +1,44 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_user.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->load('listform_actions'); + + +class list_action extends listform_actions { + + function onShow() { + global $app,$conf; + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('mail'); + + if($global_config['mailboxlist_webmail_link'] == 'y') { + $app->tpl->setVar('mailboxlist_webmail_link',1); + } else { + $app->tpl->setVar('mailboxlist_webmail_link',0); + } + + parent::onShow(); + } + +} + +$list = new list_action; +$list->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_user_stats.php b/interface/ispconfig/interface/mail/mail_user_stats.php new file mode 100644 index 0000000..694202f --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_user_stats.php @@ -0,0 +1,63 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_user_stats.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->load('listform_actions'); + +class list_action extends listform_actions { + + function prepareDataRow($rec) + { + global $app; + + $rec = $app->listform->decode($rec); + + //* Alternating datarow colors + $this->DataRowColor = ($this->DataRowColor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; + $rec['bgcolor'] = $this->DataRowColor; + + //* Set the statistics colums + //** Traffic of the current month + $tmp_date = date('Y-m'); + $tmp_rec = $app->db->queryOneRecord("SELECT traffic as t FROM mail_traffic WHERE mailuser_id = ".$rec['mailuser_id']." AND month = '$tmp_date'"); + $rec['this_month'] = number_format(intval($tmp_rec['t'])/1024/1024, 0, '.', ' '); + + //** Traffic of the current year + $tmp_date = date('Y'); + $tmp_rec = $app->db->queryOneRecord("SELECT sum(traffic) as t FROM mail_traffic WHERE mailuser_id = ".$rec['mailuser_id']." AND month like '$tmp_date%'"); + $rec['this_year'] = number_format(intval($tmp_rec['t'])/1024/1024, 0, '.', ' '); + + //** Traffic of the last month + $tmp_date = date('Y-m',mktime(0, 0, 0, date("m")-1, date("d"), date("Y"))); + $tmp_rec = $app->db->queryOneRecord("SELECT traffic as t FROM mail_traffic WHERE mailuser_id = ".$rec['mailuser_id']." AND month = '$tmp_date'"); + $rec['last_month'] = number_format(intval($tmp_rec['t'])/1024/1024, 0, '.', ' '); + + //** Traffic of the last year + $tmp_date = date('Y',mktime(0, 0, 0, date("m"), date("d"), date("Y")-1)); + $tmp_rec = $app->db->queryOneRecord("SELECT sum(traffic) as t FROM mail_traffic WHERE mailuser_id = ".$rec['mailuser_id']." AND month like '$tmp_date%'"); + $rec['last_year'] = number_format(intval($tmp_rec['t'])/1024/1024, 0, '.', ' '); + + //* The variable "id" contains always the index variable + $rec['id'] = $rec[$this->idx_key]; + return $rec; + } +} + +$list = new list_action; +$list->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_whitelist_del.php b/interface/ispconfig/interface/mail/mail_whitelist_del.php new file mode 100644 index 0000000..217f49e --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_whitelist_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_whitelist.list.php"; +$tform_def_file = "form/mail_whitelist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_whitelist_edit.php b/interface/ispconfig/interface/mail/mail_whitelist_edit.php new file mode 100644 index 0000000..092f578 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_whitelist_edit.php @@ -0,0 +1,113 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/mail_whitelist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_mailfilter')) { + $app->error($app->tform->wordbook["limit_mailfilter_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_mailfilter')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_mailfilter_txt"]); + } + } + + parent::onShowNew(); + } + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from mail_access WHERE access_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_mailfilter FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_mailfilter"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(access_id) as number FROM mail_access WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_mailfilter"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_mailfilter_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + parent::onSubmit(); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/mail_whitelist_list.php b/interface/ispconfig/interface/mail/mail_whitelist_list.php new file mode 100644 index 0000000..b247008 --- /dev/null +++ b/interface/ispconfig/interface/mail/mail_whitelist_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/mail_whitelist.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "access = 'OK'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_blacklist_del.php b/interface/ispconfig/interface/mail/spamfilter_blacklist_del.php new file mode 100644 index 0000000..d3ca8c4 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_blacklist_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_blacklist.list.php"; +$tform_def_file = "form/spamfilter_blacklist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_blacklist_edit.php b/interface/ispconfig/interface/mail/spamfilter_blacklist_edit.php new file mode 100644 index 0000000..3f7e5f0 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_blacklist_edit.php @@ -0,0 +1,118 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/spamfilter_blacklist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_spamfilter_wblist')) { + $app->error($app->tform->wordbook["limit_spamfilter_wblist_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_spamfilter_wblist')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_spamfilter_wblist_txt"]); + } + } + + parent::onShowNew(); + } + + /* + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from spamfilter_wblist WHERE id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + */ + +function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_spamfilter_wblist FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_spamfilter_wblist"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(wblist_id) as number FROM spamfilter_wblist WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_spamfilter_wblist"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_spamfilter_wblist_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + // Select and set the server_id so it matches the server_id of the spa,filter_users record + $tmp = $app->db->queryOneRecord("SELECT server_id FROM spamfilter_users WHERE id = ".intval($this->dataRecord["rid"])); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + + parent::onSubmit(); + } +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_blacklist_list.php b/interface/ispconfig/interface/mail/spamfilter_blacklist_list.php new file mode 100644 index 0000000..4733bdc --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_blacklist_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_blacklist.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "wb = 'B'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_config_del.php b/interface/ispconfig/interface/mail/spamfilter_config_del.php new file mode 100644 index 0000000..31357e9 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_config_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_config.list.php"; +$tform_def_file = "form/spamfilter_config.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_config_edit.php b/interface/ispconfig/interface/mail/spamfilter_config_edit.php new file mode 100644 index 0000000..26f369d --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_config_edit.php @@ -0,0 +1,96 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/spamfilter_config.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowEdit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + + if($app->tform->errorMessage == '') { + $app->uses('ini_parser,getconf'); + + $section = $this->active_tab; + $server_id = $this->id; + + $this->dataRecord = $app->getconf->get_server_config($server_id,$section); + } + + $record = $app->tform->getHTML($this->dataRecord, $this->active_tab,'EDIT'); + + $record['id'] = $this->id; + $app->tpl->setVar($record); + } + + function onUpdateSave($sql) { + global $app; + + if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges'); + $app->uses('ini_parser,getconf'); + + $section = $app->tform->getCurrentTab(); + $server_id = $this->id; + + $server_config_array = $app->getconf->get_server_config($server_id); + $server_config_array[$section] = $app->tform->encode($this->dataRecord,$section); + $server_config_str = $app->ini_parser->get_ini_string($server_config_array); + + $sql = "UPDATE server SET config = '".$app->db->quote($server_config_str)."' WHERE server_id = ".$server_id; + $app->db->query($sql); + } + +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_config_list.php b/interface/ispconfig/interface/mail/spamfilter_config_list.php new file mode 100644 index 0000000..16cc359 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_config_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_config.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +//$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_policy_del.php b/interface/ispconfig/interface/mail/spamfilter_policy_del.php new file mode 100644 index 0000000..04d15e0 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_policy_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_policy.list.php"; +$tform_def_file = "form/spamfilter_policy.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_policy_edit.php b/interface/ispconfig/interface/mail/spamfilter_policy_edit.php new file mode 100644 index 0000000..795b31b --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_policy_edit.php @@ -0,0 +1,95 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/spamfilter_policy.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_spamfilter_policy')) { + $app->error($app->tform->wordbook["limit_spamfilter_policy_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_spamfilter_policy')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_spamfilter_policy_txt"]); + } + } + + parent::onShowNew(); + } + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_spamfilter_policy FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_spamfilter_policy"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM spamfilter_policy WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_spamfilter_policy"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_spamfilter_policy_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + parent::onSubmit(); + } +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_policy_list.php b/interface/ispconfig/interface/mail/spamfilter_policy_list.php new file mode 100644 index 0000000..3d97b60 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_policy_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_policy.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +//$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_users_del.php b/interface/ispconfig/interface/mail/spamfilter_users_del.php new file mode 100644 index 0000000..9bc5e31 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_users_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_users.list.php"; +$tform_def_file = "form/spamfilter_users.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_users_edit.php b/interface/ispconfig/interface/mail/spamfilter_users_edit.php new file mode 100644 index 0000000..20ae7fe --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_users_edit.php @@ -0,0 +1,111 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/spamfilter_users.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_spamfilter_user')) { + $app->error($app->tform->wordbook["limit_spamfilter_user_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_spamfilter_user')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_spamfilter_user_txt"]); + } + } + + parent::onShowNew(); + } + + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from spamfilter_users WHERE id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + +function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_spamfilter_user FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_spamfilter_user"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM spamfilter_users WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_spamfilter_user"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_spamfilter_user_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + parent::onSubmit(); + } +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_users_list.php b/interface/ispconfig/interface/mail/spamfilter_users_list.php new file mode 100644 index 0000000..9d4ea21 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_users_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_users.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +//$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_whitelist_del.php b/interface/ispconfig/interface/mail/spamfilter_whitelist_del.php new file mode 100644 index 0000000..b7e2e36 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_whitelist_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_whitelist.list.php"; +$tform_def_file = "form/spamfilter_whitelist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_whitelist_edit.php b/interface/ispconfig/interface/mail/spamfilter_whitelist_edit.php new file mode 100644 index 0000000..ddef3ae --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_whitelist_edit.php @@ -0,0 +1,119 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/spamfilter_whitelist.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_spamfilter_wblist')) { + $app->error($app->tform->wordbook["limit_spamfilter_wblist_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_spamfilter_wblist')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_spamfilter_wblist_txt"]); + } + } + + parent::onShowNew(); + } + + /* + function onBeforeUpdate() { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $rec = $app->db->queryOneRecord("SELECT server_id from spamfilter_wblist WHERE id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + } + */ + + function onSubmit() { + global $app, $conf; + + // Check the client limits, if user is not the admin + if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_spamfilter_wblist FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Check if the user may add another mailbox. + if($this->id == 0 && $client["limit_spamfilter_wblist"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(wblist_id) as number FROM spamfilter_wblist WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_spamfilter_wblist"]) { + $app->tform->errorMessage .= $app->tform->wordbook["limit_spamfilter_wblist_txt"]."<br>"; + } + unset($tmp); + } + } // end if user is not admin + + // Select and set the server_id so it matches the server_id of the spa,filter_users record + $tmp = $app->db->queryOneRecord("SELECT server_id FROM spamfilter_users WHERE id = ".intval($this->dataRecord["rid"])); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + + + parent::onSubmit(); + } +} + +$app->tform_actions = new page_action; +$app->tform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/spamfilter_whitelist_list.php b/interface/ispconfig/interface/mail/spamfilter_whitelist_list.php new file mode 100644 index 0000000..5944ee0 --- /dev/null +++ b/interface/ispconfig/interface/mail/spamfilter_whitelist_list.php @@ -0,0 +1,24 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/spamfilter_whitelist.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +$app->uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/templates/mail_alias_edit.htm b/interface/ispconfig/interface/mail/templates/mail_alias_edit.htm new file mode 100644 index 0000000..cfa724b --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_alias_edit.htm @@ -0,0 +1,39 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_alias"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label"><em>*</em> {tmpl_var name='email_txt'}</p> + <div class="multiField"> + <label for="email_local_part" class="blockLabel">Alias<input type="text" id="email_local_part" name="email_local_part" size="20" value="{tmpl_var name='email_local_part'}" class="textInput" /></label> + <label for="email_at" class="blockLabel email_at"> <span id="email_at" name="email_at" />@</label> + <label for="email_domain" class="blockLabel">Domain<select name="email_domain" id="email_domain" class="selectInput">{tmpl_var name='email_domain'}</select></label> + </div> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <select name="destination" id="destination" class="selectInput"> + {tmpl_var name='destination'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="type" value="alias"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_alias_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_alias_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_alias_list.htm b/interface/ispconfig/interface/mail/templates/mail_alias_list.htm new file mode 100644 index 0000000..489e5af --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_alias_list.htm @@ -0,0 +1,57 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_alias"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_alias_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_alias_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_destination"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_alias_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_alias_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_alias_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_destination"><a href="#" onClick="loadContent('mail/mail_alias_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="destination"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_alias_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_aliasdomain_edit.htm b/interface/ispconfig/interface/mail/templates/mail_aliasdomain_edit.htm new file mode 100644 index 0000000..53fd3e3 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_aliasdomain_edit.htm @@ -0,0 +1,37 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_aliasdomain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='source_txt'}</label> + <select name="source" id="source" class="selectInput"> + {tmpl_var name='source_domain'} + </select> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <select name="destination" id="destination" class="selectInput"> + {tmpl_var name='destination_domain'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="type" value="aliasdomain"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_aliasdomain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_aliasdomain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_aliasdomain_list.htm b/interface/ispconfig/interface/mail/templates/mail_aliasdomain_list.htm new file mode 100644 index 0000000..8761af0 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_aliasdomain_list.htm @@ -0,0 +1,57 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_aliasdomain"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_aliasdomain_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_aliasdomain_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_destination"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_alias_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_destination"><a href="#" onClick="loadContent('mail/mail_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="destination"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_aliasdomain_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_blacklist_edit.htm b/interface/ispconfig/interface/mail/templates/mail_blacklist_edit.htm new file mode 100644 index 0000000..e64fe2d --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_blacklist_edit.htm @@ -0,0 +1,41 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_blacklist"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="source">{tmpl_var name='source_txt'}</label> + <input name="source" id="source" value="{tmpl_var name='source'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input name="access" type="hidden" value="{tmpl_var name='access'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_blacklist_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_blacklist_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_blacklist_list.htm b/interface/ispconfig/interface/mail/templates/mail_blacklist_list.htm new file mode 100644 index 0000000..d2f3785 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_blacklist_list.htm @@ -0,0 +1,60 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_blacklist"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_blacklist_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_type" scope="col"><tmpl_var name="type_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_blacklist_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_blacklist_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_type"><select name="search_type" onChange="submitForm('pageForm','mail/mail_blacklist_list.php');">{tmpl_var name='search_type'}</select></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_blacklist_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_type"><a href="#" onClick="loadContent('mail/mail_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="type"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_blacklist_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_content_filter_edit.htm b/interface/ispconfig/interface/mail/templates/mail_content_filter_edit.htm new file mode 100644 index 0000000..ffe844e --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_content_filter_edit.htm @@ -0,0 +1,50 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_content_filter"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="pattern">{tmpl_var name='pattern_txt'}</label> + <input name="pattern" id="pattern" value="{tmpl_var name='pattern'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="data">{tmpl_var name='data_txt'}</label> + <input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="action">{tmpl_var name='action_txt'}</label> + <select name="action" id="action" class="selectInput"> + {tmpl_var name='action'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_content_filter_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_content_filter_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_content_filter_list.htm b/interface/ispconfig/interface/mail/templates/mail_content_filter_list.htm new file mode 100644 index 0000000..8715083 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_content_filter_list.htm @@ -0,0 +1,60 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_content_filter"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_content_filter_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_pattern" scope="col"><tmpl_var name="pattern_txt"></th> + <th class="tbl_col_action" scope="col"><tmpl_var name="action_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_content_filter_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_content_filter_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_pattern"><input type="text" name="search_pattern" value="{tmpl_var name='search_pattern'}" /></td> + <td class="tbl_col_action"><select name="search_action" onChange="submitForm('pageForm','mail/mail_content_filter_list.php');">{tmpl_var name='search_action'}</select></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_content_filter_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_content_filter_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_content_filter_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_pattern"><a href="#" onClick="loadContent('mail/mail_content_filter_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="pattern"}</a></td> + <td class="tbl_col_action"><a href="#" onClick="loadContent('mail/mail_content_filter_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="action"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_content_filter_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_domain_catchall_edit.htm b/interface/ispconfig/interface/mail/templates/mail_domain_catchall_edit.htm new file mode 100644 index 0000000..6970fba --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_domain_catchall_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_domain_catchall"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='email_txt'}</p> + <div class="multiField"> + <label for="email_at" class="blockLabel email_at"> <span id="email_at" name="email_at" />@</label> + <label for="email_domain" class="blockLabel">Domain<select name="email_domain" id="email_domain" class="selectInput">{tmpl_var name='email_domain'}</select></label> + </div> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <select name="destination" id="destination" class="selectInput"> + {tmpl_var name='destination'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="type" value="catchall"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_domain_catchall_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_domain_catchall_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_domain_catchall_list.htm b/interface/ispconfig/interface/mail/templates/mail_domain_catchall_list.htm new file mode 100644 index 0000000..0ae6a31 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_domain_catchall_list.htm @@ -0,0 +1,57 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_domain_catchall"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_domain_catchall_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_domain_catchall_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_destination"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_domain_catchall_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_domain_catchall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_domain_catchall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_destination"><a href="#" onClick="loadContent('mail/mail_domain_catchall_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="destination"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_domain_catchall_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_domain_edit.htm b/interface/ispconfig/interface/mail/templates/mail_domain_edit.htm new file mode 100644 index 0000000..f0dd1a4 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_domain_edit.htm @@ -0,0 +1,67 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label> + <select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled"> + {tmpl_var name='server_id'} + </select> + <input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" /> + <tmpl_else> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + + <tmpl_if name="is_reseller"> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='domain_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="policy">{tmpl_var name='policy_txt'}</label> + <select name="policy" id="policy" class="selectInput"> + {tmpl_var name='policy'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="type" value="local"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_domain_list.htm b/interface/ispconfig/interface/mail/templates/mail_domain_list.htm new file mode 100644 index 0000000..fabeaad --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_domain_list.htm @@ -0,0 +1,57 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_domain"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_domain_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_domain_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_domain_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_domain_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('mail/mail_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_domain_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_forward_edit.htm b/interface/ispconfig/interface/mail/templates/mail_forward_edit.htm new file mode 100644 index 0000000..d64504f --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_forward_edit.htm @@ -0,0 +1,37 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_forward"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label"><em>*</em> {tmpl_var name='email_txt'}</p> + <div class="multiField"> + <label for="email_local_part" class="blockLabel">Alias<input type="text" id="email_local_part" name="email_local_part" size="20" value="{tmpl_var name='email_local_part'}" class="textInput" /></label> + <label for="email_at" class="blockLabel email_at"> <span id="email_at" name="email_at" />@</label> + <label for="email_domain" class="blockLabel">Domain<select name="email_domain" id="email_domain" class="selectInput">{tmpl_var name='email_domain'}</select></label> + </div> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <textarea rows="10" cols="40" name="destination" id="destination" type="text" class="textInput">{tmpl_var name='destination'}</textarea> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="type" value="forward"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_forward_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_forward_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_forward_list.htm b/interface/ispconfig/interface/mail/templates/mail_forward_list.htm new file mode 100644 index 0000000..833a433 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_forward_list.htm @@ -0,0 +1,57 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_forward"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_forward_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_forward_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_destination"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_forward_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_destination"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="destination"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_forward_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_get_edit.htm b/interface/ispconfig/interface/mail/templates/mail_get_edit.htm new file mode 100644 index 0000000..2da485e --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_get_edit.htm @@ -0,0 +1,54 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_get"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="source_server">{tmpl_var name='source_server_txt'}</label> + <input name="source_server" id="source_server" value="{tmpl_var name='source_server'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="source_username">{tmpl_var name='source_username_txt'}</label> + <input name="source_username" id="source_username" value="{tmpl_var name='source_username'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="source_password">{tmpl_var name='source_password_txt'}</label> + <input name="source_password" id="source_password" value="{tmpl_var name='source_password'}" size="30" maxlength="255" type="password" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='source_delete_txt'}</p> + <div class="multiField"> + {tmpl_var name='source_delete'} + </div> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <select name="destination" id="destination" class="selectInput"> + {tmpl_var name='destination'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_get_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_get_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_get_list.htm b/interface/ispconfig/interface/mail/templates/mail_get_list.htm new file mode 100644 index 0000000..924aa31 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_get_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_get"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_get_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_source_server" scope="col"><tmpl_var name="source_server_txt"></th> + <th class="tbl_col_source_username" scope="col"><tmpl_var name="source_username_txt"></th> + <th class="tbl_col_destination" scope="col"><tmpl_var name="destination_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_get_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_get_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_source_server"><input type="text" name="search_source_server" value="{tmpl_var name='search_source_server'}" /></td> + <td class="tbl_col_source_username"><input type="text" name="search_source_username" value="{tmpl_var name='search_source_username'}" /></td> + <td class="tbl_col_destination"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_get_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_source_server"><a href="#" onClick="loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source_server"}</a></td> + <td class="tbl_col_source_username"><a href="#" onClick="loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source_username"}</a></td> + <td class="tbl_col_destination"><a href="#" onClick="loadContent('mail/mail_get_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="destination"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_get_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_relay_recipient_edit.htm b/interface/ispconfig/interface/mail/templates/mail_relay_recipient_edit.htm new file mode 100644 index 0000000..4d02075 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_relay_recipient_edit.htm @@ -0,0 +1,35 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_relay_recipient"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Relay recipient</legend> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="source">{tmpl_var name='source_txt'}</label> + <input name="source" id="source" value="{tmpl_var name='source'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="access" value="OK"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_relay_recipient_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_relay_recipient_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_relay_recipient_list.htm b/interface/ispconfig/interface/mail/templates/mail_relay_recipient_list.htm new file mode 100644 index 0000000..072e9f8 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_relay_recipient_list.htm @@ -0,0 +1,55 @@ +<h2><tmpl_var name="list_head_txt"></h2> + +<div class="panel panel_list_mail_relay_recipient"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_relay_recipient_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_relay_recipient_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_relay_recipient_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_relay_recipient_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_relay_recipient_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_relay_recipient_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_relay_recipient_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_relay_recipient_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_transport_edit.htm b/interface/ispconfig/interface/mail/templates/mail_transport_edit.htm new file mode 100644 index 0000000..5f16db3 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_transport_edit.htm @@ -0,0 +1,56 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_transport"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='domain_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput formLengthHalf"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='mx_txt'}</p> + <div class="multiField"> + <input type="checkbox" value="y" id="mx" name="mx" {tmpl_var name='mx'} /> + </div> + </div> + <div class="ctrlHolder"> + <label for="destination">{tmpl_var name='destination_txt'}</label> + <input name="destination" id="transport" value="{tmpl_var name='destination'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="sort_order">{tmpl_var name='sort_order_txt'}</label> + <select name="sort_order" id="sort_order" class="selectInput formLengthHalf"> + {tmpl_var name='sort_order'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_transport_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_transport_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_transport_list.htm b/interface/ispconfig/interface/mail/templates/mail_transport_list.htm new file mode 100644 index 0000000..ede0f23 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_transport_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_transport"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_transport_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_transport" scope="col"><tmpl_var name="transport_txt"></th> + <th class="tbl_col_sort_order" scope="col"><tmpl_var name="sort_order_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_transport_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_transport_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_transport"><input type="text" name="search_transport" value="{tmpl_var name='search_transport'}" /></td> + <td class="tbl_col_sort_order"><input type="text" name="search_sort_order" value="{tmpl_var name='search_sort_order'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_transport_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_transport_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_transport_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('mail/mail_transport_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_transport"><a href="#" onClick="loadContent('mail/mail_transport_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="transport"}</a></td> + <td class="tbl_col_sort_order"><a href="#" onClick="loadContent('mail/mail_transport_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="sort_order"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_transport_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_autoresponder_edit.htm b/interface/ispconfig/interface/mail/templates/mail_user_autoresponder_edit.htm new file mode 100644 index 0000000..594f2e4 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_autoresponder_edit.htm @@ -0,0 +1,37 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="autoresponder_text">{tmpl_var name='autoresponder_text_txt'}</label> + <textarea name="autoresponder_text" id="autoresponder_text" rows='15' cols='30'>{tmpl_var name='autoresponder_text'}</textarea> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='autoresponder_txt'}</p> + <div class="multiField"> + <div class="ctrlHolder" style="margin-bottom: 5px;"> + <input type="checkbox" value="y" id="autoresponder" name="autoresponder" onclick="AR_ResetDates();" {tmpl_var name='ar_active'} /> {tmpl_var name='autoresponder_active'}<br /> + </div> + + <p style="margin-bottom: 3px;"> + <label for="autoresponder_start_date[day]" style="width: 55px;">{tmpl_var name='autoresponder_start_date_txt'}</label> + {tmpl_var name='autoresponder_start_date'} <a href="javascript:AR_SetNow();">now</a></p> + + <label for="password" style="width: 55px;">{tmpl_var name='autoresponder_end_date_txt'}</label> + {tmpl_var name='autoresponder_end_date'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> \ No newline at end of file diff --git a/interface/ispconfig/interface/mail/templates/mail_user_custom_rules_edit.htm b/interface/ispconfig/interface/mail/templates/mail_user_custom_rules_edit.htm new file mode 100644 index 0000000..0ca1b3c --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_custom_rules_edit.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="custom_mailfilter">{tmpl_var name='custom_mailfilter_txt'}</label> + <textarea name="custom_mailfilter" id="custom_mailfilter" rows='15' cols='30'>{tmpl_var name='custom_mailfilter'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_filter_edit.htm b/interface/ispconfig/interface/mail/templates/mail_user_filter_edit.htm new file mode 100644 index 0000000..8a99287 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_filter_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_user_filter"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="rulename" class="wf_preField">{tmpl_var name='rulename_txt'}</label> + <input type="text" id="rulename" name="rulename" value="{tmpl_var name='rulename'}" size="30" maxlength="255" class="textInput"> + </div> + <div class="ctrlHolder"> + <label for="source" class="wf_preField">{tmpl_var name='source_txt'}</label> + <select id="source" name="source" class="textInput formLengthHalf">{tmpl_var name='source'}</select> + <select id="op" name="op" class="textInput formLengthHalf">{tmpl_var name='op'}</select> + <input type="text" id="searchterm" name="searchterm" value="{tmpl_var name='searchterm'}" size="30" maxlength="255" class="textInput"> + </div> + <div class="ctrlHolder"> + <label for="action" class="wf_preField">{tmpl_var name='action_txt'}</label> + <select id="action" name="action" class="textInput formLengthHalf">{tmpl_var name='action'}</select> + <input type="text" id="target" name="target" value="{tmpl_var name='target'}" size="30" maxlength="255" class="textInput formLengthHalf"> + </div> + <div class="ctrlHolder"> + <label for="active" class="wf_preField">{tmpl_var name='active_txt'}</label> + <span class="">{tmpl_var name='active'}</span> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input name="mailuser_id" type="hidden" value="{tmpl_var name='mailuser_id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_user_filter_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='mailuser_id'}');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_filter_list.htm b/interface/ispconfig/interface/mail/templates/mail_user_filter_list.htm new file mode 100644 index 0000000..22b3c23 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_filter_list.htm @@ -0,0 +1,45 @@ + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_user_filter_edit.php?mailuser_id={tmpl_var name='parent_id'}');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_rulename" scope="col"><tmpl_var name="rulename_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_rulename"><input type="text" name="search_rulename" value="{tmpl_var name='search_rulename'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_user_edit.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_rulename"><a href="#" onClick="loadContent('mail/mail_user_filter_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="rulename"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_user_filter_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_list.htm b/interface/ispconfig/interface/mail/templates/mail_user_list.htm new file mode 100644 index 0000000..254fd8c --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_list.htm @@ -0,0 +1,58 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_user"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_user_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th> + <th class="tbl_col_name" scope="col"><tmpl_var name="name_txt"></th> + <th class="tbl_col_autoresponder" scope="col"><tmpl_var name="autoresponder_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td> + <td class="tbl_col_name"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td> + <td class="tbl_col_autoresponder"><input type="text" name="search_autoresponder" value="{tmpl_var name='search_autoresponder'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_email"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="email"}</a></td> + <td class="tbl_col_name"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="name"}</a></td> + <td class="tbl_col_autoresponder"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="autoresponder"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <tmpl_if name="mailboxlist_webmail_link"><a class="icons16 icoWebmailer" href="mail/webmailer.php?id={tmpl_var name='id'}" target="webmail"><span>{tmpl_var name='delete_txt'}</span></a></tmpl_if> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_user_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="4"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_mailbox_edit.htm b/interface/ispconfig/interface/mail/templates/mail_user_mailbox_edit.htm new file mode 100644 index 0000000..80f1422 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_mailbox_edit.htm @@ -0,0 +1,67 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="name">{tmpl_var name='name_txt'}</label> + <input name="name" id="name" value="{tmpl_var name='name'}" size="30" maxlength="255" type="text" class="textInput" /> {tmpl_var name='name_optional_txt'} + </div> + <div class="ctrlHolder"> + <p class="label"><em>*</em> {tmpl_var name='email_txt'}</p> + <div class="multiField"> + <label for="email_local_part" class="blockLabel formLengthEmailDomain">Alias<input type="text" id="email_local_part" name="email_local_part" size="20" value="{tmpl_var name='email_local_part'}" class="textInput" /></label> + <label for="email_at" class="blockLabel email_at"> <span id="email_at" name="email_at" />@</label> + <label for="email_domain" class="blockLabel formLengthEmailDomain">Domain<select name="email_domain" id="email_domain" class="selectInput">{tmpl_var name='email_domain'}</select></label> + </div> + </div> + <div class="ctrlHolder"> + <label for="password">{tmpl_var name='password_txt'}</label> + <input name="password" id="password" value="{tmpl_var name='password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="quota">{tmpl_var name='quota_txt'}</label> + <input name="quota" id="quota" value="{tmpl_var name='quota'}" size="30" maxlength="255" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> MB</p> + </div> + <div class="ctrlHolder"> + <label for="policy">{tmpl_var name='policy_txt'}</label> + <select name="policy" id="policy" class="selectInput"> + {tmpl_var name='policy'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='postfix_txt'}</p> + <div class="multiField"> + {tmpl_var name='postfix'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='disableimap_txt'}</p> + <div class="multiField"> + {tmpl_var name='disableimap'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='disablepop3_txt'}</p> + <div class="multiField"> + {tmpl_var name='disablepop3'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_mailfilter_edit.htm b/interface/ispconfig/interface/mail/templates/mail_user_mailfilter_edit.htm new file mode 100644 index 0000000..12a6f62 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_mailfilter_edit.htm @@ -0,0 +1,26 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='move_junk_txt'}</p> + <div class="multiField"> + {tmpl_var name='move_junk'} + </div> + </div> + </fieldset> + + {tmpl_var name='filter_records'} + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_user_stats_list.htm b/interface/ispconfig/interface/mail/templates/mail_user_stats_list.htm new file mode 100644 index 0000000..47e4b07 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_user_stats_list.htm @@ -0,0 +1,52 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_user_stats"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th> + <th class="tbl_col_this_month" scope="col"><tmpl_var name="this_month_txt"></th> + <th class="tbl_col_last_month" scope="col"><tmpl_var name="last_month_txt"></th> + <th class="tbl_col_this_year" scope="col"><tmpl_var name="this_year_txt"></th> + <th class="tbl_col_last_year" scope="col"><tmpl_var name="last_year_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td> + <td class="tbl_col_this_month"></td> + <td class="tbl_col_last_month"></td> + <td class="tbl_col_this_year"></td> + <td class="tbl_col_last_year"></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_user_stats.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_email"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="email"}</a></td> + <td class="tbl_col_this_month"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="this_month"} MB</a></td> + <td class="tbl_col_last_month"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="last_month"} MB</a></td> + <td class="tbl_col_this_year"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="this_year"} MB</a></td> + <td class="tbl_col_last_year"><a href="#" onClick="loadContent('mail/mail_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="last_year"} MB</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_whitelist_edit.htm b/interface/ispconfig/interface/mail/templates/mail_whitelist_edit.htm new file mode 100644 index 0000000..d8e6b8b --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_whitelist_edit.htm @@ -0,0 +1,41 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_mail_whitelist"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="source">{tmpl_var name='source_txt'}</label> + <input name="source" id="source" value="{tmpl_var name='source'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input name="access" type="hidden" value="{tmpl_var name='access'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/mail_whitelist_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/mail_whitelist_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/mail_whitelist_list.htm b/interface/ispconfig/interface/mail/templates/mail_whitelist_list.htm new file mode 100644 index 0000000..ad8a69a --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/mail_whitelist_list.htm @@ -0,0 +1,60 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_mail_whitelist"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/mail_whitelist_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_source" scope="col"><tmpl_var name="source_txt"></th> + <th class="tbl_col_type" scope="col"><tmpl_var name="type_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/mail_whitelist_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/mail_whitelist_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_source"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" /></td> + <td class="tbl_col_type"><select name="search_type" onChange="submitForm('pageForm','mail/mail_whitelist_list.php');">{tmpl_var name='search_type'}</select></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/mail_whitelist_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/mail_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/mail_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_source"><a href="#" onClick="loadContent('mail/mail_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="source"}</a></td> + <td class="tbl_col_type"><a href="#" onClick="loadContent('mail/mail_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="type"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/mail_whitelist_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_edit.htm new file mode 100644 index 0000000..36058d9 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_edit.htm @@ -0,0 +1,49 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_blacklist"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> +<!-- + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> +--> + <div class="ctrlHolder"> + <label for="rid">{tmpl_var name='rid_txt'}</label> + <select name="rid" id="rid" class="selectInput"> + {tmpl_var name='rid'} + </select> + </div> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="priority">{tmpl_var name='priority_txt'}</label> + <select name="priority" id="priority" class="selectInput formLengthHalf"> + {tmpl_var name='priority'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="wb" value="{tmpl_var name='wb'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_blacklist_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_blacklist_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_list.htm b/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_list.htm new file mode 100644 index 0000000..5594044 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_blacklist_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_spamfilter_blacklist"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/spamfilter_blacklist_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th> + <th class="tbl_col_rid" scope="col"><tmpl_var name="rid_txt"></th> + <th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/spamfilter_blacklist_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/spamfilter_blacklist_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_priority"><select name="search_priority" onChange="submitForm('pageForm','mail/spamfilter_blacklist_list.php');">{tmpl_var name='search_priority'}</select></td> + <td class="tbl_col_rid"><select name="search_rid" onChange="submitForm('pageForm','mail/spamfilter_blacklist_list.php');">{tmpl_var name='search_rid'}</select></td> + <td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/spamfilter_blacklist_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/spamfilter_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/spamfilter_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_priority"><a href="#" onClick="loadContent('mail/spamfilter_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="priority"}</a></td> + <td class="tbl_col_rid"><a href="#" onClick="loadContent('mail/spamfilter_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="rid"}</a></td> + <td class="tbl_col_email"><a href="#" onClick="loadContent('mail/spamfilter_blacklist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="email"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/spamfilter_blacklist_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_config_getmail_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_config_getmail_edit.htm new file mode 100644 index 0000000..1bdb886 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_config_getmail_edit.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_config"> + + <div class="pnl_formsarea"> + <fieldset id="wf_area_spamfilter_config"> + <span class="wf_oneField"> + <label for="getmail_config_dir" class="wf_preField">{tmpl_var name='getmail_config_dir_txt'}</label> + <input type="text" id="getmail_config_dir" name="getmail_config_dir" value="{tmpl_var name='getmail_config_dir'}" size="40" maxlength="255"> + </span> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_config_list.htm b/interface/ispconfig/interface/mail/templates/spamfilter_config_list.htm new file mode 100644 index 0000000..0a6680a --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_config_list.htm @@ -0,0 +1,51 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_spamfilter_config"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/spamfilter_config_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_server_name" scope="col"><tmpl_var name="server_name_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_server_name"><input type="text" name="search_server_name" value="{tmpl_var name='search_server_name'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/spamfilter_config_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_server_name"><a href="#" onClick="loadContent('mail/spamfilter_config_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_name"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/spamfilter_config_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="2"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_config_mail_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_config_mail_edit.htm new file mode 100644 index 0000000..3526589 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_config_mail_edit.htm @@ -0,0 +1,66 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_config"> + + <div class="pnl_formsarea"> + <fieldset id="wf_area_spamfilter_config"> + <span class="wf_oneField"> + <label for="module" class="wf_preField">{tmpl_var name='module_txt'}</label> + <select id="module" name="module">{tmpl_var name='module'}</select> + </span> + <span class="wf_oneField"> + <label for="maildir_path" class="wf_preField">{tmpl_var name='maildir_path_txt'}</label> + <input type="text" id="maildir_path" name="maildir_path" value="{tmpl_var name='maildir_path'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="homedir_path" class="wf_preField">{tmpl_var name='homedir_path_txt'}</label> + <input type="text" id="homedir_path" name="homedir_path" value="{tmpl_var name='homedir_path'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="mailuser_uid" class="wf_preField">{tmpl_var name='mailuser_uid_txt'}</label> + <input type="text" id="mailuser_uid" name="mailuser_uid" value="{tmpl_var name='mailuser_uid'}" size="10" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="mailuser_gid" class="wf_preField">{tmpl_var name='mailuser_gid_txt'}</label> + <input type="text" id="mailuser_gid" name="mailuser_gid" value="{tmpl_var name='mailuser_gid'}" size="10" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="mailuser_name" class="wf_preField">{tmpl_var name='mailuser_name_txt'}</label> + <input type="text" id="mailuser_name" name="mailuser_name" value="{tmpl_var name='mailuser_name'}" size="10" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="mailuser_group" class="wf_preField">{tmpl_var name='mailuser_group_txt'}</label> + <input type="text" id="mailuser_group" name="mailuser_group" value="{tmpl_var name='mailuser_group'}" size="10" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="relayhost" class="wf_preField">{tmpl_var name='relayhost_txt'}</label> + <input type="text" id="relayhost" name="relayhost" value="{tmpl_var name='relayhost'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="relayhost_user" class="wf_preField">{tmpl_var name='relayhost_user_txt'}</label> + <input type="text" id="relayhost_user" name="relayhost_user" value="{tmpl_var name='relayhost_user'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="relayhost_password" class="wf_preField">{tmpl_var name='relayhost_password_txt'}</label> + <input type="text" id="relayhost_password" name="relayhost_password" value="{tmpl_var name='relayhost_password'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="mailbox_size_limit" class="wf_preField">{tmpl_var name='mailbox_size_limit_txt'}</label> + <input type="text" id="mailbox_size_limit" name="mailbox_size_limit" value="{tmpl_var name='mailbox_size_limit'}" size="10" maxlength="15"> + </span> + <span class="wf_oneField"> + <label for="message_size_limit" class="wf_preField">{tmpl_var name='message_size_limit_txt'}</label> + <input type="text" id="message_size_limit" name="message_size_limit" value="{tmpl_var name='message_size_limit'}" size="10" maxlength="15"> + </span> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_config_server_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_config_server_edit.htm new file mode 100644 index 0000000..ac45009 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_config_server_edit.htm @@ -0,0 +1,38 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_config"> + + <div class="pnl_formsarea"> + <fieldset id="wf_area_spamfilter_config"> + <span class="wf_oneField"> + <label for="ip_address" class="wf_preField">{tmpl_var name='ip_address_txt'}</label> + <input type="text" id="ip_address" name="ip_address" value="{tmpl_var name='ip_address'}" size="15" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="netmask" class="wf_preField">{tmpl_var name='netmask_txt'}</label> + <input type="text" id="netmask" name="netmask" value="{tmpl_var name='netmask'}" size="15" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="gateway" class="wf_preField">{tmpl_var name='gateway_txt'}</label> + <input type="text" id="gateway" name="gateway" value="{tmpl_var name='gateway'}" size="15" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="hostname" class="wf_preField">{tmpl_var name='hostname_txt'}</label> + <input type="text" id="hostname" name="hostname" value="{tmpl_var name='hostname'}" size="40" maxlength="255"> + </span> + <span class="wf_oneField"> + <label for="nameservers" class="wf_preField">{tmpl_var name='nameservers_txt'}</label> + <input type="text" id="nameservers" name="nameservers" value="{tmpl_var name='nameservers'}" size="40" maxlength="255"> + </span> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="wf_actions buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_config_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_config_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_other_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_other_edit.htm new file mode 100644 index 0000000..4040671 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_other_edit.htm @@ -0,0 +1,80 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_policy"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="addr_extension_virus">{tmpl_var name='addr_extension_virus_txt'}</label> + <input name="addr_extension_virus" id="addr_extension_virus" value="{tmpl_var name='addr_extension_virus'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="addr_extension_spam">{tmpl_var name='addr_extension_spam_txt'}</label> + <input name="addr_extension_spam" id="addr_extension_spam" value="{tmpl_var name='addr_extension_spam'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="addr_extension_banned">{tmpl_var name='addr_extension_banned_txt'}</label> + <input name="addr_extension_banned" id="addr_extension_banned" value="{tmpl_var name='addr_extension_banned'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="addr_extension_bad_header">{tmpl_var name='addr_extension_bad_header_txt'}</label> + <input name="addr_extension_bad_header" id="addr_extension_bad_header" value="{tmpl_var name='addr_extension_bad_header'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="warnvirusrecip">{tmpl_var name='warnvirusrecip_txt'}</label> + <select name="warnvirusrecip" id="warnvirusrecip" class="selectInput formLengthBool"> + {tmpl_var name='warnvirusrecip'} + </select> + </div> + <div class="ctrlHolder"> + <label for="warnbannedrecip">{tmpl_var name='warnbannedrecip_txt'}</label> + <select name="warnbannedrecip" id="warnbannedrecip" class="selectInput formLengthBool"> + {tmpl_var name='warnbannedrecip'} + </select> + </div> + <div class="ctrlHolder"> + <label for="warnbadhrecip">{tmpl_var name='warnbadhrecip_txt'}</label> + <select name="warnbadhrecip" id="warnbadhrecip" class="selectInput formLengthBool"> + {tmpl_var name='warnbadhrecip'} + </select> + </div> + <div class="ctrlHolder"> + <label for="newvirus_admin">{tmpl_var name='newvirus_admin_txt'}</label> + <input name="newvirus_admin" id="newvirus_admin" value="{tmpl_var name='newvirus_admin'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="virus_admin">{tmpl_var name='virus_admin_txt'}</label> + <input name="virus_admin" id="virus_admin" value="{tmpl_var name='virus_admin'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="banned_admin">{tmpl_var name='banned_admin_txt'}</label> + <input name="banned_admin" id="banned_admin" value="{tmpl_var name='banned_admin'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="bad_header_admin">{tmpl_var name='bad_header_admin_txt'}</label> + <input name="bad_header_admin" id="bad_header_admin" value="{tmpl_var name='bad_header_admin'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="spam_admin">{tmpl_var name='spam_admin_txt'}</label> + <input name="spam_admin" id="spam_admin" value="{tmpl_var name='spam_admin'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="message_size_limit">{tmpl_var name='message_size_limit_txt'}</label> + <input name="message_size_limit" id="message_size_limit" value="{tmpl_var name='message_size_limit'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="banned_rulenames">{tmpl_var name='banned_rulenames_txt'}</label> + <input name="banned_rulenames" id="banned_rulenames" value="{tmpl_var name='banned_rulenames'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_policy_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_policy_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_policy_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_policy_edit.htm new file mode 100644 index 0000000..b725df5 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_policy_edit.htm @@ -0,0 +1,64 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_policy"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="policy_name">{tmpl_var name='policy_name_txt'}</label> + <input name="policy_name" id="policy_name" value="{tmpl_var name='policy_name'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="virus_lover">{tmpl_var name='virus_lover_txt'}</label> + <select name="virus_lover" id="virus_lover" class="selectInput formLengthBool"> + {tmpl_var name='virus_lover'} + </select> + </div> + <div class="ctrlHolder"> + <label for="spam_lover">{tmpl_var name='spam_lover_txt'}</label> + <select name="spam_lover" id="spam_lover" class="selectInput formLengthBool"> + {tmpl_var name='spam_lover'} + </select> + </div> + <div class="ctrlHolder"> + <label for="banned_files_lover">{tmpl_var name='banned_files_lover_txt'}</label> + <select name="banned_files_lover" id="banned_files_lover" class="selectInput formLengthBool"> + {tmpl_var name='banned_files_lover'} + </select> + </div> + <div class="ctrlHolder"> + <label for="bad_header_lover">{tmpl_var name='bad_header_lover_txt'}</label> + <select name="bad_header_lover" id="bad_header_lover" class="selectInput formLengthBool"> + {tmpl_var name='bad_header_lover'} + </select> + </div> + <div class="ctrlHolder"> + <label for="bypass_virus_checks">{tmpl_var name='bypass_virus_checks_txt'}</label> + <select name="bypass_virus_checks" id="bypass_virus_checks" class="selectInput formLengthBool"> + {tmpl_var name='bypass_virus_checks'} + </select> + </div> + <div class="ctrlHolder"> + <label for="bypass_banned_checks">{tmpl_var name='bypass_banned_checks_txt'}</label> + <select name="bypass_banned_checks" id="bypass_banned_checks" class="selectInput formLengthBool"> + {tmpl_var name='bypass_banned_checks'} + </select> + </div> + <div class="ctrlHolder"> + <label for="bypass_header_checks">{tmpl_var name='bypass_header_checks_txt'}</label> + <select name="bypass_header_checks" id="bypass_header_checks" class="selectInput formLengthBool"> + {tmpl_var name='bypass_header_checks'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_policy_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_policy_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_policy_list.htm b/interface/ispconfig/interface/mail/templates/spamfilter_policy_list.htm new file mode 100644 index 0000000..276dd53 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_policy_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_spamfilter_policy"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/spamfilter_policy_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_policy_name" scope="col"><tmpl_var name="policy_name_txt"></th> + <th class="tbl_col_virus_lover" scope="col"><tmpl_var name="virus_lover_txt"></th> + <th class="tbl_col_spam_lover" scope="col"><tmpl_var name="spam_lover_txt"></th> + <th class="tbl_col_banned_files_lover" scope="col"><tmpl_var name="banned_files_lover_txt"></th> + <th class="tbl_col_bad_header_lover" scope="col"><tmpl_var name="bad_header_lover_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_policy_name"><input type="text" name="search_policy_name" value="{tmpl_var name='search_policy_name'}" /></td> + <td class="tbl_col_virus_lover"><select name="search_virus_lover" onChange="submitForm('pageForm','mail/spamfilter_policy_list.php');">{tmpl_var name='search_virus_lover'}</select></td> + <td class="tbl_col_spam_lover"><select name="search_spam_lover" onChange="submitForm('pageForm','mail/spamfilter_policy_list.php');">{tmpl_var name='search_spam_lover'}</select></td> + <td class="tbl_col_banned_files_lover"><select name="search_banned_files_lover" onChange="submitForm('pageForm','mail/spamfilter_policy_list.php');">{tmpl_var name='search_banned_files_lover'}</select></td> + <td class="tbl_col_bad_header_lover"><select name="search_bad_header_lover" onChange="submitForm('pageForm','mail/spamfilter_policy_list.php');">{tmpl_var name='search_bad_header_lover'}</select></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/spamfilter_policy_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_policy_name"><a href="#" onClick="loadContent('mail/spamfilter_policy_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="policy_name"}</a></td> + <td class="tbl_col_virus_lover"><a href="#" onClick="loadContent('mail/spamfilter_policy_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="virus_lover"}</a></td> + <td class="tbl_col_spam_lover"><a href="#" onClick="loadContent('mail/spamfilter_policy_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="spam_lover"}</a></td> + <td class="tbl_col_banned_files_lover"><a href="#" onClick="loadContent('mail/spamfilter_policy_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="banned_files_lover"}</a></td> + <td class="tbl_col_bad_header_lover"><a href="#" onClick="loadContent('mail/spamfilter_policy_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="bad_header_lover"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/spamfilter_policy_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_quarantine_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_quarantine_edit.htm new file mode 100644 index 0000000..de33b33 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_quarantine_edit.htm @@ -0,0 +1,44 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_policy"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="virus_quarantine_to">{tmpl_var name='virus_quarantine_to_txt'}</label> + <input name="virus_quarantine_to" id="virus_quarantine_to" value="{tmpl_var name='virus_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="spam_quarantine_to">{tmpl_var name='spam_quarantine_to_txt'}</label> + <input name="spam_quarantine_to" id="spam_quarantine_to" value="{tmpl_var name='spam_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="banned_quarantine_to">{tmpl_var name='banned_quarantine_to_txt'}</label> + <input name="banned_quarantine_to" id="banned_quarantine_to" value="{tmpl_var name='banned_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="bad_header_quarantine_to">{tmpl_var name='bad_header_quarantine_to_txt'}</label> + <input name="bad_header_quarantine_to" id="bad_header_quarantine_to" value="{tmpl_var name='bad_header_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> +<!-- + <div class="ctrlHolder"> + <label for="clean_quarantine_to">{tmpl_var name='clean_quarantine_to_txt'}</label> + <input name="clean_quarantine_to" id="clean_quarantine_to" value="{tmpl_var name='clean_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="other_quarantine_to">{tmpl_var name='other_quarantine_to_txt'}</label> + <input name="other_quarantine_to" id="other_quarantine_to" value="{tmpl_var name='other_quarantine_to'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> +--> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_policy_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_policy_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_taglevel_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_taglevel_edit.htm new file mode 100644 index 0000000..aef98d3 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_taglevel_edit.htm @@ -0,0 +1,52 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_policy"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="spam_tag_level">{tmpl_var name='spam_tag_level_txt'}</label> + <input name="spam_tag_level" id="spam_tag_level" value="{tmpl_var name='spam_tag_level'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="spam_tag2_level">{tmpl_var name='spam_tag2_level_txt'}</label> + <input name="spam_tag2_level" id="spam_tag2_level" value="{tmpl_var name='spam_tag2_level'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="spam_kill_level">{tmpl_var name='spam_kill_level_txt'}</label> + <input name="spam_kill_level" id="spam_kill_level" value="{tmpl_var name='spam_kill_level'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="spam_dsn_cutoff_level">{tmpl_var name='spam_dsn_cutoff_level_txt'}</label> + <input name="spam_dsn_cutoff_level" id="spam_dsn_cutoff_level" value="{tmpl_var name='spam_dsn_cutoff_level'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="spam_quarantine_cutoff_level">{tmpl_var name='spam_quarantine_cutoff_level_txt'}</label> + <input name="spam_quarantine_cutoff_level" id="spam_quarantine_cutoff_level" value="{tmpl_var name='spam_quarantine_cutoff_level'}" size="10" maxlength="255" type="text" class="textInput formLengthLimit" /> + </div> + <div class="ctrlHolder"> + <label for="spam_modifies_subj">{tmpl_var name='spam_modifies_subj_txt'}</label> + <select name="spam_modifies_subj" id="spam_modifies_subj" class="selectInput formLengthBool"> + {tmpl_var name='spam_modifies_subj'} + </select> + </div> + <div class="ctrlHolder"> + <label for="spam_subject_tag">{tmpl_var name='spam_subject_tag_txt'}</label> + <input name="spam_subject_tag" id="spam_subject_tag" value="{tmpl_var name='spam_subject_tag'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="spam_subject_tag2">{tmpl_var name='spam_subject_tag2_txt'}</label> + <input name="spam_subject_tag2" id="spam_subject_tag2" value="{tmpl_var name='spam_subject_tag2'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_policy_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_policy_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_users_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_users_edit.htm new file mode 100644 index 0000000..01d5699 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_users_edit.htm @@ -0,0 +1,50 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_users"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="priority">{tmpl_var name='priority_txt'}</label> + <select name="priority" id="priority" class="selectInput formLengthLimit"> + {tmpl_var name='priority'} + </select> + </div> + <div class="ctrlHolder"> + <label for="policy_id">{tmpl_var name='policy_id_txt'}</label> + <select name="policy_id" id="policy_id" class="selectInput"> + {tmpl_var name='policy_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="fullname">{tmpl_var name='fullname_txt'}</label> + <input name="fullname" id="fullname" value="{tmpl_var name='fullname'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="local">{tmpl_var name='local_txt'}</label> + <select name="local" id="local" class="selectInput formLengthBool"> + {tmpl_var name='local'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_users_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_users_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_users_list.htm b/interface/ispconfig/interface/mail/templates/spamfilter_users_list.htm new file mode 100644 index 0000000..f574327 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_users_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_spamfilter_users"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/spamfilter_users_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_local" scope="col"><tmpl_var name="local_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th> + <th class="tbl_col_policy_id" scope="col"><tmpl_var name="policy_id_txt"></th> + <th class="tbl_col_fullname" scope="col"><tmpl_var name="fullname_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_local"><select name="search_local" onChange="submitForm('pageForm','mail/spamfilter_users_list.php');">{tmpl_var name='search_local'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/spamfilter_users_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_priority"><select name="search_priority" onChange="submitForm('pageForm','mail/spamfilter_users_list.php');">{tmpl_var name='search_priority'}</select></td> + <td class="tbl_col_policy_id"><select name="search_policy_id" onChange="submitForm('pageForm','mail/spamfilter_users_list.php');">{tmpl_var name='search_policy_id'}</select></td> + <td class="tbl_col_fullname"><input type="text" name="search_fullname" value="{tmpl_var name='search_fullname'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/spamfilter_users_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_local"><a href="#" onClick="loadContent('mail/spamfilter_users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="local"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/spamfilter_users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_priority"><a href="#" onClick="loadContent('mail/spamfilter_users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="priority"}</a></td> + <td class="tbl_col_policy_id"><a href="#" onClick="loadContent('mail/spamfilter_users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="policy_id"}</a></td> + <td class="tbl_col_fullname"><a href="#" onClick="loadContent('mail/spamfilter_users_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="fullname"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/spamfilter_users_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_edit.htm b/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_edit.htm new file mode 100644 index 0000000..3ef8f5f --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_edit.htm @@ -0,0 +1,49 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_spamfilter_whitelist"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> +<!-- + <div class="ctrlHolder"> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </div> +--> + <div class="ctrlHolder"> + <label for="rid">{tmpl_var name='rid_txt'}</label> + <select name="rid" id="rid" class="selectInput"> + {tmpl_var name='rid'} + </select> + </div> + <div class="ctrlHolder"> + <label for="email">{tmpl_var name='email_txt'}</label> + <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="priority">{tmpl_var name='priority_txt'}</label> + <select name="priority" id="priority" class="selectInput formLengthHalf"> + {tmpl_var name='priority'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + <input type="hidden" name="wb" value="{tmpl_var name='wb'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_whitelist_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_whitelist_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_list.htm b/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_list.htm new file mode 100644 index 0000000..e4c2b20 --- /dev/null +++ b/interface/ispconfig/interface/mail/templates/spamfilter_whitelist_list.htm @@ -0,0 +1,63 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_spamfilter_whitelist"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('mail/spamfilter_whitelist_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_priority" scope="col"><tmpl_var name="priority_txt"></th> + <th class="tbl_col_rid" scope="col"><tmpl_var name="rid_txt"></th> + <th class="tbl_col_email" scope="col"><tmpl_var name="email_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','mail/spamfilter_whitelist_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','mail/spamfilter_whitelist_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_priority"><select name="search_priority" onChange="submitForm('pageForm','mail/spamfilter_whitelist_list.php');">{tmpl_var name='search_priority'}</select></td> + <td class="tbl_col_rid"><select name="search_rid" onChange="submitForm('pageForm','mail/spamfilter_whitelist_list.php');">{tmpl_var name='search_rid'}</select></td> + <td class="tbl_col_email"><input type="text" name="search_email" value="{tmpl_var name='search_email'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','mail/spamfilter_whitelist_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('mail/spamfilter_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('mail/spamfilter_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_priority"><a href="#" onClick="loadContent('mail/spamfilter_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="priority"}</a></td> + <td class="tbl_col_rid"><a href="#" onClick="loadContent('mail/spamfilter_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="rid"}</a></td> + <td class="tbl_col_email"><a href="#" onClick="loadContent('mail/spamfilter_whitelist_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="email"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('mail/spamfilter_whitelist_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/mail/webmailer.php b/interface/ispconfig/interface/mail/webmailer.php new file mode 100644 index 0000000..ee2ea38 --- /dev/null +++ b/interface/ispconfig/interface/mail/webmailer.php @@ -0,0 +1,68 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('mail'); + +/* get the id of the mail (must be int!) */ +if (!isset($_GET['id'])){ + die ("No E-Mail selected!"); +} +$emailId = intval($_GET['id']); + +/* + * Get the data to connect to the database + */ +$dbData = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE mailuser_id = " . $emailId); +$serverId = intval($dbData['server_id']); +if ($serverId == 0){ + die ("No E-Mail - Server found!"); +} + +$serverData = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ".$serverId); + +$app->uses('getconf'); +$global_config = $app->getconf->get_global_config('mail'); + +if($global_config['webmail_url'] != '') { + header('Location:' . $global_config['webmail_url']); +} else { + +/* + * We only redirect to the login-form, so there is no need, to check any rights + */ + isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http'; + header('Location:' . $http . '://' . $serverData['server_name'] . '/webmail'); +} +exit; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/datalog_del.php b/interface/ispconfig/interface/monitor/datalog_del.php new file mode 100644 index 0000000..ab52f7b --- /dev/null +++ b/interface/ispconfig/interface/monitor/datalog_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/datalog.list.php"; +$tform_def_file = "form/datalog.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/datalog_list.php b/interface/ispconfig/interface/monitor/datalog_list.php new file mode 100644 index 0000000..2a6bf42 --- /dev/null +++ b/interface/ispconfig/interface/monitor/datalog_list.php @@ -0,0 +1,64 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/datalog.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + +$app->uses('listform_actions'); + +$servers = $app->db->queryAllRecords("SELECT server_id, updated FROM server"); + +$sql = '('; +foreach($servers as $sv) { + $sql .= " (datalog_id > ".$sv['updated']." AND server_id = ".$sv['server_id'].") OR "; +} +$sql = substr($sql,0,-4); +$sql .= ')'; + +$app->listform_actions->SQLExtWhere = $sql; +$app->listform_actions->SQLOrderBy = "ORDER BY tstamp DESC, datalog_id DESC"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/lib/admin.conf.php b/interface/ispconfig/interface/monitor/lib/admin.conf.php new file mode 100644 index 0000000..a45d440 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/admin.conf.php @@ -0,0 +1,2 @@ +<?php +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/lib/lang/bg.lng b/interface/ispconfig/interface/monitor/lib/lang/bg.lng new file mode 100644 index 0000000..5512e7e --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/bg.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Сървърът работи от'; +$wb['Users online'] = 'Потребители online'; +$wb['System load 1 minute'] = 'Натоварване на системата за 1 минута'; +$wb['System load 5 minutes'] = 'Натоварване на системата за 5 минути'; +$wb['System load 15 minutes'] = 'Натоварване на системата за 15 минути'; +$wb['Server Load'] = 'Натоварване на сървъра'; +$wb['Disk usage'] = 'Твърд диск'; +$wb['Memory usage'] = 'Памет'; +$wb['no_data_serverload_txt'] = 'Няма налична информация за натоварването на сървъра. Моля проверете по-късно.'; +$wb['no_data_memusage_txt'] = 'Няма налична информация за паметта. Моля проверете по-късно.'; +$wb['no_data_diskusage_txt'] = 'Няма налична информация за твърдия диск. Моля проверете по-късно.'; +$wb['no_data_cpuinfo_txt'] = 'Няма налична информация за процесора. Моля проверете по-късно.'; +$wb['no_data_services_txt'] = 'Няма налична информация за услугите. Моля проверете по-късно.'; +$wb['no_logdata_txt'] = 'Няма налични логове. Моля проверете по-късно.'; +$wb['Monitoring'] = 'Наблюдение'; +$wb['Server to Monitor'] = 'Наблюдаван сървър'; +$wb['Logfiles'] = 'Логове'; +$wb['Status of services'] = 'Състояние на услугите'; +$wb['No Refresh'] = 'Без опресняване'; +$wb['minutes'] = 'минути'; +$wb['Show Overview'] = 'Show Overview'; +$wb['System State (All Servers)'] = 'System State (All Servers)'; +$wb['Hardware-Information'] = 'Hardware-Information'; +$wb['Show CPU info'] = 'Show CPU info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID state'; +$wb['Show Server load'] = 'Show Server load'; +$wb['Show Disk usage'] = 'Show Disk usage'; +$wb['Show Memory usage'] = 'Show Memory usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail-Queue'; +$wb['Show Mail-Log'] = 'Show Mail-Log'; +$wb['Show Mail warn-Log'] = 'Show Mail warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail err-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/bg_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/bg_datalog_list.lng new file mode 100644 index 0000000..8ad63ff --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/bg_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Jobqueue'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'DB Table'; +$wb['action_txt'] = 'Action'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/bg_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/bg_syslog_list.lng new file mode 100644 index 0000000..00da5ab --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/bg_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Log'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Message'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/br.lng b/interface/ispconfig/interface/monitor/lib/lang/br.lng new file mode 100644 index 0000000..c0b781a --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/br.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Servidor online desde'; +$wb['Users online'] = 'Usuários Online'; +$wb['System load 1 minute'] = 'Sistema carregado 1 Min'; +$wb['System load 5 minutes'] = 'Sistema carregado 5 Min'; +$wb['System load 15 minutes'] = 'Sistema carregado 15 Min'; +$wb['Server Load'] = 'Servidor carregado'; +$wb['Disk usage'] = 'Uso do disco'; +$wb['Memory usage'] = 'Uso da memória'; +$wb['no_data_serverload_txt'] = 'Sem registro carga do servidor disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_memusage_txt'] = 'Sem registro uso de memória disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_diskusage_txt'] = 'Sem registro de uso de disco disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_cpuinfo_txt'] = 'Sem registro de CPU disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_services_txt'] = 'Sem registro sobre os serviços disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_updates_txt'] = 'Sem atualização de dados disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_raid_txt'] = 'Sem registro de RAID disponível no momento. Tente novamente mais tarde.'; +$wb['no_data_rkhunter_txt'] = 'Sem registro de RKHUNTER disponível no momento. Tente novamente mais tarde.'; +$wb['no_data_mailq_txt'] = 'Sem registro de fila de correio disponível no momento. Tente novamente mais tarde.'; +$wb['no_logdata_txt'] = 'Sem registro de log disponível no momento. Tente novamente mais tarde.'; +$wb['Monitoring'] = 'Monitoramento'; +$wb['Server to Monitor'] = 'Servidor a monitorar'; +$wb['Logfiles'] = 'Arquivos de log'; +$wb['Status of services'] = 'Status dos serviços'; +$wb['No Refresh'] = 'Não atualize'; +$wb['minutes'] = 'minutos'; +$wb['Show Overview'] = 'Exibir Visão Geral'; +$wb['System State (All Servers)'] = 'Estado do Sistema (Todos os Servidores)'; +$wb['Hardware-Information'] = 'Informação de Hardware'; +$wb['Show CPU info'] = 'Exibir informações da CPU'; +$wb['Server State'] = 'Estado do Servidor'; +$wb['Show Update State'] = 'Exiba Status Atualizado'; +$wb['Show RAID state'] = 'Exiba Status do RAID'; +$wb['Show Server load'] = 'Exiba Carga do Servidor'; +$wb['Show Disk usage'] = 'Exiba Uso de Disco'; +$wb['Show Memory usage'] = 'Exiba Uso de Memória'; +$wb['Show Services'] = 'Exibir Serviços'; +$wb['Show Mail-Queue'] = 'Exibir Fila de Correio'; +$wb['Show Mail-Log'] = 'Exibir Log de Correio'; +$wb['Show Mail warn-Log'] = 'Exibir Log de Avisos de Correio'; +$wb['Show Mail err-Log'] = 'Exibir Log de Erros de Correio'; +$wb['Show System-Log'] = 'Exibir Log de Sistema'; +$wb['Show ISPC Cron-Log'] = 'Exibir ISPC Log do Cron'; +$wb['Show Freshclam-Log'] = 'Exibir Log do Freshclam'; +$wb['Show Clamav-Log'] = 'Exibir Log do Clamav'; +$wb['Show ISPConfig-Log'] = 'Exibir Log do ISPConfig'; +$wb['Show RKHunter-Log'] = 'Exibir Log do RKHunter'; +$wb['Show Jobqueue'] = 'Exibir Fila de Trabalho'; +$wb['monitor_general_serverstate_txt'] = 'Estado do Servidor'; +$wb['monitor_general_systemstate_txt'] = 'Estado do Sistema'; +$wb['monitor_diskusage_filesystem_txt'] = 'Sistema de Arquivos'; +$wb['monitor_diskusage_type_txt'] = 'Tipo'; +$wb['monitor_diskusage_size_txt'] = 'Tamanho'; +$wb['monitor_diskusage_used_txt'] = 'Usado'; +$wb['monitor_diskusage_available_txt'] = 'Disponível'; +$wb['monitor_diskusage_usage_txt'] = 'Uso %'; +$wb['monitor_diskusage_mounted_txt'] = 'Montado em'; +$wb['monitor_logs_mail_txt'] = 'Log de Correio'; +$wb['monitor_logs_mailwarn_txt'] = 'Log de Avisos'; +$wb['monitor_logs_mailerr_txt'] = 'Log de Erros'; +$wb['monitor_logs_messages_txt'] = 'Log de Sistema'; +$wb['monitor_logs_ispccron_txt'] = 'Log do ISPConfig Cron'; +$wb['monitor_logs_freshclam_txt'] = 'Logo do Freshclam'; +$wb['monitor_logs_clamav_txt'] = 'Log do Clamav '; +$wb['monitor_logs_ispc_txt'] = 'Log do ISPConfig'; +$wb['monitor_nomdadm_txt'] = 'mdadm não está instalado ou seu servidor não suporta RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter não está instalado, então não existem logs a exibir'; +$wb['monitor_serverstate_server_txt'] = 'Servidor'; +$wb['monitor_serverstate_state_txt'] = 'Estado'; +$wb['monitor_serverstate_unknown_txt'] = 'desconhecido'; +$wb['monitor_serverstate_info_txt'] = 'informações'; +$wb['monitor_serverstate_warning_txt'] = 'aviso'; +$wb['monitor_serverstate_critical_txt'] = 'crítico'; +$wb['monitor_serverstate_error_txt'] = 'erro'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Mais informações..'; +$wb['monitor_serverstate_more_txt'] = 'Mais...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Definições de anti-virus ok ...'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Definições de anti-virus DESATUALIZADAS!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Espaço em disco está ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'O espaço em disco está cheio'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Seu disco está ficando cheio'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Seu disco está muito cheio'; +$wb['monitor_serverstate_hdfull_txt'] = 'Seu disco não tem mais espaço'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Disco Rígido: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'infomação'; +$wb['monitor_serverstate_listwarning_txt'] = 'aviso'; +$wb['monitor_serverstate_listcritical_txt'] = 'crítico'; +$wb['monitor_serverstate_listerror_txt'] = 'erro'; +$wb['monitor_serverstate_listunknown_txt'] = 'desconhecido'; +$wb['monitor_serverstate_loadok_txt'] = 'Servidor carregado ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Seu servidor está com uma carga alta'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Seu servidor está ficando com uma carga alta'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Seu servidor está com uma carga muito alta'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Seu servidor está com uma carga super alta'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Carga do Servidor: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Sua fila de correio está OK'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Sua fila de correio está ficando com uma carga alta'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Sua fila de correio está com uma carga alta'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Sua fila de correio está com uma carga muito alta'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Sua fila de correio está com uma carga super alta'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Fila de Correio: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Seu RAID está ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Seu RAID está em modo RESYNC'; +$wb['monitor_serverstate_raidfault_txt'] = 'Seu RAID possui um disco com falhas. Troque-o o mais rápido possível!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Seu RAID não está mais funcionando.'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Estado do RAID: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Todos os serviços necessários estão on-line'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Um ou mais serviços necessários estão off-line'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Serviços:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'O System-Log está O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Existem alguns avisos em seu System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Existem erros no seu System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Seu sistema está atualizado.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Um ou mais componentes necessitam de atualização'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Atualização-Sistema:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Servidor Webr:'; +$wb['monitor_services_ftp_txt'] = 'Servidor FTP:'; +$wb['monitor_services_smtp_txt'] = 'Servidor SMTP:'; +$wb['monitor_services_pop_txt'] = 'Servidor POP:'; +$wb['monitor_services_imap_txt'] = 'Servidor IMAP:'; +$wb['monitor_services_mydns_txt'] = 'Servidor myDNS:'; +$wb['monitor_services_mysql_txt'] = 'Servidor MySql:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data de: '; +$wb['monitor_settings_datetimeformat_txt'] = 'd/m/Y H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Atualizar sequência:'; +$wb['monitor_settings_server_txt'] = 'Servidor'; +$wb['monitor_title_cpuinfo_txt'] = 'Informação da CPU'; +$wb['monitor_title_updatestate_txt'] = 'Atualizar Estado'; +$wb['monitor_title_mailq_txt'] = 'Fila de Correio'; +$wb['monitor_title_raidstate_txt'] = 'Estado do RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'Log do RKHunter'; +$wb['monitor_updates_nosupport_txt'] = 'Sua distribuição não suporta este tipo de monitoramento'; +$wb['monitor_title_fail2ban_txt'] = 'Log do Fail2Ban'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/br_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/br_datalog_list.lng new file mode 100644 index 0000000..04fdf24 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/br_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Fila de Trabalho'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Servidor'; +$wb['dbtable_txt'] = 'Tabela BD'; +$wb['action_txt'] = 'Ação'; +$wb['status_txt'] = 'Situação'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/br_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/br_syslog_list.lng new file mode 100644 index 0000000..23f3c6d --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/br_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Log do Painel'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Servidor'; +$wb['loglevel_txt'] = 'Nível do Log'; +$wb['message_txt'] = 'Mensagem'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/de.lng b/interface/ispconfig/interface/monitor/lib/lang/de.lng new file mode 100644 index 0000000..b600d28 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/de.lng @@ -0,0 +1,138 @@ +<?php +$wb['Memory usage'] = 'Speicherauslastung'; +$wb['Server online since'] = 'Server ist online seit'; +$wb['Users online'] = 'Benutzer online'; +$wb['System load 1 minute'] = 'Systemlast 1 Minute'; +$wb['System load 5 minutes'] = 'Systemlast 5 Minuten'; +$wb['System load 15 minutes'] = 'Systemlast 15 Minuten'; +$wb['Server Load'] = 'Serverauslastung'; +$wb['Disk usage'] = 'Festplattenbelegung'; +$wb['no_data_serverload_txt'] = 'Derzeit stehen keine Daten über die Serverlast zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_memusage_txt'] = 'Derzeit stehen keine Daten über die Speicherauslastung zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_diskusage_txt'] = 'Derzeit stehen keine Daten über die Festplattenbelegung zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_cpuinfo_txt'] = 'Derzeit stehen keine Daten über die CPU zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_services_txt'] = 'Derzeit stehen keine Daten über die Dienste zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_logdata_txt'] = 'Derzeit stehen keine Protokolldaten zur Verfügung. Bitte später erneut überprüfen.'; +$wb['Monitoring'] = 'Überwachung'; +$wb['Server to Monitor'] = 'Zu überwachende Server'; +$wb['Logfiles'] = 'Protokolldateien'; +$wb['Status of services'] = 'Dienststatus'; +$wb['No Refresh'] = 'keine Aktualisierung'; +$wb['minutes'] = 'Minuten'; +$wb['Show Overview'] = 'Übersicht zeigen'; +$wb['System State (All Servers)'] = 'Systemstatus (Alle Server)'; +$wb['Hardware-Information'] = 'Hardwareinformationen'; +$wb['Show CPU info'] = 'CPU Informationen'; +$wb['Server State'] = 'Serverstatus'; +$wb['Show Update State'] = 'Updatestatus anzeigen'; +$wb['Show RAID state'] = 'RAID Status anzeigen'; +$wb['Show Server load'] = 'Serverauslastung anzeigen'; +$wb['Show Disk usage'] = 'Festplattenbelegung anzeigen'; +$wb['Show Memory usage'] = 'Speicherauslastung anzeigen'; +$wb['Show Services'] = 'Dienste anzeigen'; +$wb['Show Mail-Queue'] = 'Mailwarteschlange anzeigen'; +$wb['Show Mail-Log'] = 'Mail-Protokoll anzeigen'; +$wb['Show Mail warn-Log'] = 'Mail Warn-Protokoll anzeigen'; +$wb['Show Mail err-Log'] = 'Mail Err-Protokoll anzeigen'; +$wb['Show System-Log'] = 'System-Protokoll anzeigen'; +$wb['Show Freshclam-Log'] = 'Freshclam-Protokoll anzeigen'; +$wb['Show Clamav-Log'] = 'Clamav-Protokoll anzeigen'; +$wb['Show ISPConfig-Log'] = 'ISPConfig-Protokoll anzeigen'; +$wb['Show RKHunter-Log'] = 'RKHunter-Protokoll anzeigen'; +$wb['Show Jobqueue'] = 'Jobwarteschlange anzeigen'; +$wb['Show ISPC Cron-Log'] = 'ISPC Cron-Protokoll anzeigen'; +$wb['no_data_updates_txt'] = 'Derzeit stehen keine Daten über Updates zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_raid_txt'] = 'Derzeit stehen keine Daten über RAID zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_rkhunter_txt'] = 'Derzeit stehen keine Daten von RKHunter zur Verfügung. Bitte später erneut überprüfen.'; +$wb['no_data_mailq_txt'] = 'Derzeit stehen keine Daten der Mailqueue zur Verfügung.Bitte später erneut überprüfen.'; +$wb['monitor_general_serverstate_txt'] = 'Serverstatus'; +$wb['monitor_general_systemstate_txt'] = 'Systemstatus'; +$wb['monitor_diskusage_filesystem_txt'] = 'Dateisystem'; +$wb['monitor_diskusage_type_txt'] = 'Typ'; +$wb['monitor_diskusage_size_txt'] = 'Größe'; +$wb['monitor_diskusage_used_txt'] = 'In Verwendung'; +$wb['monitor_diskusage_available_txt'] = 'verfügbar'; +$wb['monitor_diskusage_usage_txt'] = 'Verwendung in %'; +$wb['monitor_diskusage_mounted_txt'] = 'gemountet unter'; +$wb['monitor_logs_mail_txt'] = 'Mail - Protokoll'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Protokoll'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Protokoll'; +$wb['monitor_logs_messages_txt'] = 'Systemmeldungen - Protokoll'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Protokoll'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Protokoll'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Protokoll'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Protokoll'; +$wb['monitor_nomdadm_txt'] = 'mdadm ist auf ihrem Server nicht installiert oder der Server besitzt kein unterstütztes RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter ist nicht installiert, deshalb gibt es keine Protokolldatei'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'Status'; +$wb['monitor_serverstate_unknown_txt'] = 'unbekannt'; +$wb['monitor_serverstate_info_txt'] = 'Info'; +$wb['monitor_serverstate_warning_txt'] = 'Warnung'; +$wb['monitor_serverstate_critical_txt'] = 'kritisch'; +$wb['monitor_serverstate_error_txt'] = 'Fehler'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Mehr Informationen...'; +$wb['monitor_serverstate_more_txt'] = 'mehr...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Ihr Virenschutz ist in Ordnung.'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Ihr Virenschutz ist VERALTET!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???'; +$wb['monitor_serverstate_hdok_txt'] = 'Die Festplattenauslastung ist in Ordnung'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Die Festplatte ist bald voll'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Die Festplatte wird langsam voll'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Die Festplatte ist sehr voll'; +$wb['monitor_serverstate_hdfull_txt'] = 'Die Festplatte hat keinen Platz mehr frei'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Festplatte: ???'; +$wb['monitor_serverstate_listok_txt'] = 'in Ordnung'; +$wb['monitor_serverstate_listinfo_txt'] = 'Information'; +$wb['monitor_serverstate_listwarning_txt'] = 'Warnung'; +$wb['monitor_serverstate_listcritical_txt'] = 'kritisch'; +$wb['monitor_serverstate_listerror_txt'] = 'Fehler'; +$wb['monitor_serverstate_listunknown_txt'] = 'unbekannt'; +$wb['monitor_serverstate_loadok_txt'] = 'Die Serverauslastung ist in Ordnung'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Der Server ist extrem ausgelastet'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Der Server ist stark ausgelastet'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Der Server ist stärker ausgelastet'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Der Server ist höchst ausgelastet'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Serverauslastung: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Die Mailq Auslastung ist in Ordnung'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Die Mailq ist extrem ausgelastet'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Die Mailq ist stark ausgelastet'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Die Mailq ist stärker ausgelastet'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Die Mailq ist höchst ausgelastet'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Das RAID ist in Ordnung'; +$wb['monitor_serverstate_raidresync_txt'] = 'Das RAID ist im RESYNC Modus'; +$wb['monitor_serverstate_raidfault_txt'] = 'Das RAID hat eine DEFEKTE Festplatte. Bitte schnellstmöglich ersetzen!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Das RAID funktioniert nicht mehr'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID Status: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Alle benötigten Dienste sind online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Einer oder mehrere benötigte Dienste sind offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Dienste: ???'; +$wb['monitor_serverstate_syslogok_txt'] = 'Das System-Protokoll ist in Ordnung'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Es gibt Warnungen im System-Protokoll'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Es gibt Fehler im System-Protokoll'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'System-Protokoll: ???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Ihr System ist aktuell'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Eine oder mehrere Komponenten benötigen ein Update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update: ???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Daten vom: '; +$wb['monitor_settings_datetimeformat_txt'] = 'd-m-Y H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Aktualisierungsrate:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Informationen'; +$wb['monitor_title_updatestate_txt'] = 'Updatestatus'; +$wb['monitor_title_mailq_txt'] = 'Mailwarteschlange'; +$wb['monitor_title_raidstate_txt'] = 'RAID-Status'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Protokoll'; +$wb['monitor_updates_nosupport_txt'] = 'Ihre Distribution wird für die Überwachung nicht unterstützt'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/de_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/de_datalog_list.lng new file mode 100644 index 0000000..0b6bf9a --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/de_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Jobwarteschlange'; +$wb['tstamp_txt'] = 'Datum'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'Datenbanktabelle'; +$wb['action_txt'] = 'Aktion'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/de_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/de_syslog_list.lng new file mode 100644 index 0000000..bd879a0 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/de_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Protokoll'; +$wb['tstamp_txt'] = 'Datum'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Protokolllevel'; +$wb['message_txt'] = 'Nachricht'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/en.lng b/interface/ispconfig/interface/monitor/lib/lang/en.lng new file mode 100644 index 0000000..a28cf09 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/en.lng @@ -0,0 +1,138 @@ +<?php +$wb["Server online since"] = "Server online since"; +$wb["Users online"] = "Users Online"; +$wb["System load 1 minute"] = "System load 1 minute"; +$wb["System load 5 minutes"] = "System load 5 minutes"; +$wb["System load 15 minutes"] = "System load 15 minutes"; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Disk Usage'; +$wb['Memory usage'] = 'Memory Usage'; +$wb['no_data_serverload_txt'] = 'No data about the server load available at the moment. Please check again later.'; +$wb['no_data_memusage_txt'] = 'No data about the memory usage available at the moment. Please check again later.'; +$wb['no_data_diskusage_txt'] = 'No data about the disk usage available at the moment. Please check again later.'; +$wb['no_data_cpuinfo_txt'] = 'No data about the CPU available at the moment. Please check again later.'; +$wb['no_data_services_txt'] = 'No data about the services available at the moment. Please check again later.'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['no_logdata_txt'] = 'No log data available at the moment. Please check again later.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Server to Monitor'; +$wb['Logfiles'] = 'Logfiles'; +$wb['Status of services'] = 'Status of Services'; +$wb['No Refresh'] = 'No Refresh'; +$wb["minutes"] = "minutes"; +$wb["Show Overview"] = "Show Overview"; +$wb["System State (All Servers)"] = "System State (All Servers)"; +$wb['Hardware-Information'] = 'Hardware Information'; +$wb['Show CPU info'] = 'Show CPU Info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID State'; +$wb['Show Server load'] = 'Show Server Load'; +$wb['Show Disk usage'] = 'Show Disk Usage'; +$wb['Show Memory usage'] = 'Show Memory Usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail Queue'; +$wb['Show Mail-Log'] = 'Show Mail Log'; +$wb['Show Mail warn-Log'] = 'Show Mail Warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail Error-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'ClamAV - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your virus protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your virus protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mail queue load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mail queue is under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mail queue is under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mail queue is under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mail queue is under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mail queue: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULTY disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services: ???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your system log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your system log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'System log: ???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your system is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more components needs an update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System Update: ???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh Sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update Status'; +$wb['monitor_title_mailq_txt'] = 'Mail Queue'; +$wb['monitor_title_raidstate_txt'] = 'RAID Status'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter Log'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/en_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/en_datalog_list.lng new file mode 100644 index 0000000..1cb7f59 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/en_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Jobqueue'; +$wb["tstamp_txt"] = 'Date'; +$wb["server_id_txt"] = 'Server'; +$wb["dbtable_txt"] = 'DB Table'; +$wb["action_txt"] = 'Action'; +$wb["status_txt"] = 'Status'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/lib/lang/en_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/en_syslog_list.lng new file mode 100644 index 0000000..96c1322 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/en_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb["list_head_txt"] = 'ISPConfig Log'; +$wb["tstamp_txt"] = 'Date'; +$wb["server_id_txt"] = 'Server'; +$wb["loglevel_txt"] = 'Loglevel'; +$wb["message_txt"] = 'Message'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/lib/lang/es.lng b/interface/ispconfig/interface/monitor/lib/lang/es.lng new file mode 100644 index 0000000..63363bc --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/es.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Servidor en línea desde'; +$wb['Users online'] = 'Usuarios en línea'; +$wb['System load 1 minute'] = 'Carga del sistema hace 1 minuto'; +$wb['System load 5 minutes'] = 'Carga del sistema hace 5 minutos'; +$wb['System load 15 minutes'] = 'Carga del sistema hace 15 minutos'; +$wb['Server Load'] = 'Carga del servidor'; +$wb['Disk usage'] = 'Uso de disco'; +$wb['Memory usage'] = 'Uso de memoria'; +$wb['no_data_serverload_txt'] = 'No hay datos acerca de la carga del servidor en este momento. Por favor, inténtelo más tarde'; +$wb['no_data_memusage_txt'] = 'No hay datos acerca del uso de memoria en este momento. Por favor, inténtelo más tarde'; +$wb['no_data_diskusage_txt'] = 'No hay datos acerca del uso de disco en este momento. Por favor, inténtelo más tarde'; +$wb['no_data_cpuinfo_txt'] = 'No hay datos acerca de la CPU en este momento. Por favor, inténtelo más tarde'; +$wb['no_data_services_txt'] = 'No hay datos acerca de los servicios en este momento. Por favor, inténtelo más tarde'; +$wb['no_logdata_txt'] = 'No hay datos acerca del registro en este momento. Por favor, inténtelo más tarde'; +$wb['Monitoring'] = 'Monitorizando'; +$wb['Server to Monitor'] = 'Servidor a monitorizar'; +$wb['Logfiles'] = 'Archivos de registro'; +$wb['Status of services'] = 'Estado de los servicios'; +$wb['No Refresh'] = 'Sin refresco'; +$wb['minutes'] = 'minutos'; +$wb['Show Overview'] = 'Mostrar descripción general'; +$wb['System State (All Servers)'] = 'Estado del sistema (todos los servidores)'; +$wb['Hardware-Information'] = 'Información del hardware'; +$wb['Show CPU info'] = 'Mostrar información de la CPU'; +$wb['Server State'] = 'Estado del servidor'; +$wb['Show Update State'] = 'Mostrar estado de la actualización'; +$wb['Show RAID state'] = 'Mostrar estado del RAID'; +$wb['Show Server load'] = 'Mostrar la carga del servidor'; +$wb['Show Disk usage'] = 'Mostra el uso del disco'; +$wb['Show Memory usage'] = 'Mostrar el uso de la memoria'; +$wb['Show Services'] = 'Mostrar los servicios'; +$wb['Show Mail-Queue'] = 'Mostrar la cola de correo'; +$wb['Show Mail-Log'] = 'Mostrar el registro de correo'; +$wb['Show Mail warn-Log'] = 'Mostrar las advertencias de correo'; +$wb['Show Mail err-Log'] = 'Mostrar los errores de correo'; +$wb['Show System-Log'] = 'Mostrar el registro del sistema'; +$wb['Show Freshclam-Log'] = 'Mostrar el registro de Freshclam'; +$wb['Show Clamav-Log'] = 'Mostrar el registro de ClamAV'; +$wb['Show ISPConfig-Log'] = 'Mostrar el registro de ISPConfig'; +$wb['Show RKHunter-Log'] = 'Mostrar el registro de RKHunter'; +$wb['Show Jobqueue'] = 'Mostrar la cola de trabajo'; +$wb['Show ISPC Cron-Log'] = 'Mostrar el registro cron de ISPC'; +$wb['no_data_updates_txt'] = 'En este momento no hay datos sobre las actualizaciones. Por favor, inténtelo más tarde'; +$wb['no_data_raid_txt'] = 'En este momento no hay datos sobre RAID. Por favor, inténtelo más tarde'; +$wb['no_data_rkhunter_txt'] = 'En este momento no hay datos sobre RKHunter. Por favor, inténtelo más tarde'; +$wb['no_data_mailq_txt'] = 'En este momento no hay datos sobre Mailqueue. Por favor, inténtelo más tarde'; +$wb['monitor_general_serverstate_txt'] = 'Estado del servidor'; +$wb['monitor_general_systemstate_txt'] = 'Estado del sistema'; +$wb['monitor_diskusage_filesystem_txt'] = 'Sistema de ficheros'; +$wb['monitor_diskusage_type_txt'] = 'Tipo'; +$wb['monitor_diskusage_size_txt'] = 'Tamaño'; +$wb['monitor_diskusage_used_txt'] = 'Usado'; +$wb['monitor_diskusage_available_txt'] = 'Disponible'; +$wb['monitor_diskusage_usage_txt'] = '% de uso'; +$wb['monitor_diskusage_mounted_txt'] = 'Montado en'; +$wb['monitor_logs_mail_txt'] = 'Registros de correo'; +$wb['monitor_logs_mailwarn_txt'] = 'Registros de advertencias de correo'; +$wb['monitor_logs_mailerr_txt'] = 'Registros de errores de correo'; +$wb['monitor_logs_messages_txt'] = 'Registros de mensajes del sistema'; +$wb['monitor_logs_ispccron_txt'] = 'Registros cron de ISPConfig'; +$wb['monitor_logs_freshclam_txt'] = 'Registros de Freshclam '; +$wb['monitor_logs_clamav_txt'] = 'Registros de Clamav'; +$wb['monitor_logs_ispc_txt'] = 'Registros de ISPConfig'; +$wb['monitor_nomdadm_txt'] = 'mdadm no está instalado o su servidor no soporta RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter no está instalado, por lo que no hay registros a mostrar'; +$wb['monitor_serverstate_server_txt'] = 'Servidor'; +$wb['monitor_serverstate_state_txt'] = 'Estado'; +$wb['monitor_serverstate_unknown_txt'] = 'desconocido'; +$wb['monitor_serverstate_info_txt'] = 'información'; +$wb['monitor_serverstate_warning_txt'] = 'advertencia'; +$wb['monitor_serverstate_critical_txt'] = 'crítico'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Más información...'; +$wb['monitor_serverstate_more_txt'] = 'Más...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Su protección antivirus está bien'; +$wb['monitor_serverstate_fclamoutdated_txt'] = '¡Su protección antivirus está ANTICUADA!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'El estado de su espacio de disco duro es bueno'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Su disco duro está bastante lleno'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Su disco duro está casi lleno'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Su disco duro está muy lleno'; +$wb['monitor_serverstate_hdfull_txt'] = 'Su disco duro no tiene más espacio libre'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Disco duro: ???'; +$wb['monitor_serverstate_listok_txt'] = 'bien'; +$wb['monitor_serverstate_listinfo_txt'] = 'información'; +$wb['monitor_serverstate_listwarning_txt'] = 'advertencia'; +$wb['monitor_serverstate_listcritical_txt'] = 'critico'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'desconocido'; +$wb['monitor_serverstate_loadok_txt'] = 'La carga de su servidor es buena'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Su servidor tiene una carga pesada'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Su servidor tiene una carga alta'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Su servidor tiene una carga muy alta'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Su servidor tiene una carga altísima'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Carga del servidor: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Su carga de correo es buena'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Su carga de correo es pesada'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Su carga de correo es alta'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Su carga de correo es muy alta'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Su carga de correo es altísima'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Carga del correo: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Su RAID está bien'; +$wb['monitor_serverstate_raidresync_txt'] = 'Su RAID está en modo RESYNC'; +$wb['monitor_serverstate_raidfault_txt'] = 'Su RAID tiene un disco DEFECTUOSO. ¡Reemplázelo a la mayor brevedad posible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Su RAID no está funcionando'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Estado del RAID: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Todos los servicios necesarios están en línea'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Uno o más servicios necesarios está fuera de línea'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Servicios: ???'; +$wb['monitor_serverstate_syslogok_txt'] = 'El registro del sistema está bien'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Hay algunas advertencias en su registro del sistema'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Hay errores en su registro del sistema'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'Registro del sistema: ???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Su sistema está actualizado'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Uno o más componentes necesitan ser actualizados'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Actualización del sistema: ???'; +$wb['monitor_services_online_txt'] = 'En línea'; +$wb['monitor_services_offline_txt'] = 'Fuera de línea'; +$wb['monitor_services_web_txt'] = 'Servidor web:'; +$wb['monitor_services_ftp_txt'] = 'Servidor FTP:'; +$wb['monitor_services_smtp_txt'] = 'Servidor SMTP:'; +$wb['monitor_services_pop_txt'] = 'Servidor POP3:'; +$wb['monitor_services_imap_txt'] = 'Servidor IMAP:'; +$wb['monitor_services_mydns_txt'] = 'Servidor MyDNS:'; +$wb['monitor_services_mysql_txt'] = 'Servidor MySQL:'; +$wb['monitor_settings_datafromdate_txt'] = 'Datos desde:'; +$wb['monitor_settings_datetimeformat_txt'] = 'd-m-Y H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Secuencia de refresco:'; +$wb['monitor_settings_server_txt'] = 'Servidor'; +$wb['monitor_title_cpuinfo_txt'] = 'Información de la CPU'; +$wb['monitor_title_updatestate_txt'] = 'Actualizar estado'; +$wb['monitor_title_mailq_txt'] = 'Cola de correo'; +$wb['monitor_title_raidstate_txt'] = 'Estado del RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'Registro de RKHunter'; +$wb['monitor_updates_nosupport_txt'] = 'Su distribución no es soportada por este monitorizador'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/es_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/es_datalog_list.lng new file mode 100644 index 0000000..38f384f --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/es_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Cola de trabajo'; +$wb['tstamp_txt'] = 'Fecha'; +$wb['server_id_txt'] = 'Servidor'; +$wb['dbtable_txt'] = 'Tabla BD'; +$wb['action_txt'] = 'Acción'; +$wb['status_txt'] = 'Estado'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/es_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/es_syslog_list.lng new file mode 100644 index 0000000..17f89f2 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/es_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Registro de ISPConfig'; +$wb['tstamp_txt'] = 'Fecha'; +$wb['server_id_txt'] = 'Servidor'; +$wb['loglevel_txt'] = 'Nivel de registro'; +$wb['message_txt'] = 'Mensaje'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fi.lng b/interface/ispconfig/interface/monitor/lib/lang/fi.lng new file mode 100644 index 0000000..6b3978d --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fi.lng @@ -0,0 +1,138 @@ +<?php +$wb['Memory usage'] = 'Muistin käyttö'; +$wb['Server online since'] = 'Palvelimen päälläoloaika'; +$wb['Users online'] = 'Käyttäjiä kirjautuneena'; +$wb['System load 1 minute'] = 'Järjestelmän 1 minuutin kuorma'; +$wb['System load 5 minutes'] = 'Järjestelmän 5 minuutin kuorma'; +$wb['System load 15 minutes'] = 'Järjestelmän 15 minuutin kuorma'; +$wb['Server Load'] = 'Palvelimen kuorma'; +$wb['Disk usage'] = 'Levytilan käyttö'; +$wb['no_data_serverload_txt'] = 'Tietoja palvelimen kuormasta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_memusage_txt'] = 'Tietoja muistin käytöstä ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_diskusage_txt'] = 'Tietoja levytilan käytöstä ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_cpuinfo_txt'] = 'Tietoja prosessorin kuormasta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_services_txt'] = 'Tietoja palveluiden tilasta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_updates_txt'] = 'Tietoja päivitysten tilasta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_raid_txt'] = 'Tietoja RAID-laitteiden tilasta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_rkhunter_txt'] = 'Tietoja RKHunter-tuloksista ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_data_mailq_txt'] = 'Tietoja postipalvelimen jonosta ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['no_logdata_txt'] = 'Lokitietoja ei ole tällä hetkellä saatavana. Yritä myöhemmin uudelleen.'; +$wb['Monitoring'] = 'Valvonta'; +$wb['Server to Monitor'] = 'Mitä palvelinta valvotaan'; +$wb['Logfiles'] = 'Lokitiedostot'; +$wb['Status of services'] = 'Palveluiden tila'; +$wb['No Refresh'] = 'Ei päivitystä'; +$wb['minutes'] = 'minuuttia'; +$wb['Show Overview'] = 'Näytä yleiskatsaus'; +$wb['System State (All Servers)'] = 'Järjestelmän tila (Kaikki palvelimet)'; +$wb['Hardware-Information'] = 'Laitteiston tiedot'; +$wb['Show CPU info'] = 'Prosessorin tiedot'; +$wb['Server State'] = 'Palvelimen tila'; +$wb['Show Update State'] = 'Päivitysten tila'; +$wb['Show RAID state'] = 'RAID-järjestelmän tila'; +$wb['Show Server load'] = 'Näytä palvelimen kuorma'; +$wb['Show Disk usage'] = 'Näytä levytilan käyttö'; +$wb['Show Memory usage'] = 'Näytä muistin käyttö'; +$wb['Show Services'] = 'Näytä palveluiden tila'; +$wb['Show Mail-Queue'] = 'Näytä sähköpostijono'; +$wb['Show Mail-Log'] = 'Näytä postipalvelimen loki'; +$wb['Show Mail warn-Log'] = 'Näytä postipalvelimen varoitusloki'; +$wb['Show Mail err-Log'] = 'Näytä postipalvelimen virheloki'; +$wb['Show System-Log'] = 'Näytä järjestelmäloki'; +$wb['Show Freshclam-Log'] = 'Näytä Freshclam-Loki'; +$wb['Show Clamav-Log'] = 'Näytä Clamav-Loki'; +$wb['Show ISPConfig-Log'] = 'Näytä ISPConfig-Loki'; +$wb['Show ISPC Cron-Log'] = 'Näytä ISPC Cron-Loki'; +$wb['Show RKHunter-Log'] = 'Näytä RKHunter-Loki'; +$wb['Show Jobqueue'] = 'Näytä työjono'; +$wb['monitor_general_serverstate_txt'] = 'Palvelimen tila'; +$wb['monitor_general_systemstate_txt'] = 'Järjestelmän tila'; +$wb['monitor_diskusage_filesystem_txt'] = 'Levyosio'; +$wb['monitor_diskusage_type_txt'] = 'Tyyppi'; +$wb['monitor_diskusage_size_txt'] = 'Koko'; +$wb['monitor_diskusage_used_txt'] = 'Käytetty'; +$wb['monitor_diskusage_available_txt'] = 'Vapaana'; +$wb['monitor_diskusage_usage_txt'] = 'Käyttöaste'; +$wb['monitor_diskusage_mounted_txt'] = 'Liitospiste'; +$wb['monitor_logs_mail_txt'] = 'Postipalvelimen pääloki'; +$wb['monitor_logs_mailwarn_txt'] = 'Postipalvelimen varoitusloki'; +$wb['monitor_logs_mailerr_txt'] = 'Postipalvelimen virheloki'; +$wb['monitor_logs_messages_txt'] = 'Järjestelmän viestiloki'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig-ajastusloki'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam-päivitysloki'; +$wb['monitor_logs_clamav_txt'] = 'Clamav-päivitysloki'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig-pääloki'; +$wb['monitor_nomdadm_txt'] = 'mdadm ei ole asennettuna tai palvelimessasi ei ole tuettuja RAID-laitteita.'; +$wb['monitor_norkhunter_txt'] = 'RKHunter ei ole asennettuna, joten siitä ei ole tulostietoja.'; +$wb['monitor_serverstate_server_txt'] = 'Palvelin'; +$wb['monitor_serverstate_state_txt'] = 'Tila'; +$wb['monitor_serverstate_unknown_txt'] = 'tuntematonta'; +$wb['monitor_serverstate_info_txt'] = 'viestiä'; +$wb['monitor_serverstate_warning_txt'] = 'varoitusta'; +$wb['monitor_serverstate_critical_txt'] = 'kriittistä'; +$wb['monitor_serverstate_error_txt'] = 'virhettä'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Lisätietoja...'; +$wb['monitor_serverstate_more_txt'] = 'Lisää...'; +$wb['monitor_serverstate_hdok_txt'] = 'Kiintolevyllä on tarpeeksi vapaata tilaa.'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Kiintolevy on täyttymässä.'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Kiintolevy on melkein täynnä!'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Kiintolevys on todella täynnä.!!'; +$wb['monitor_serverstate_hdfull_txt'] = 'Kiintolevyllä ei ole enää vapaata tilaa!!!'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Kiintolevyn tila tuntematon?'; +$wb['monitor_serverstate_fclamok_txt'] = 'Virustunnisteet ovat ajantasalla.'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Virustunnisteet ovat vanhentuneet!.'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Virustunnisteiden tila tuntematon?'; +$wb['monitor_serverstate_listok_txt'] = 'Kunnossa.'; +$wb['monitor_serverstate_listinfo_txt'] = 'Huomio:'; +$wb['monitor_serverstate_listwarning_txt'] = 'Varoitus!'; +$wb['monitor_serverstate_listcritical_txt'] = 'Kriittinen!!'; +$wb['monitor_serverstate_listerror_txt'] = 'Virhe!?'; +$wb['monitor_serverstate_listunknown_txt'] = 'Tuntematon?'; +$wb['monitor_serverstate_loadok_txt'] = 'Palvelimen kuormatilanne on hyvä.'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Palvelimen kuormatilanne on kohtalainen.'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Palvelimen kuormatilanne on huono!'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Palvelimen kuormatilanne on todella huono!!'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Palvelimella on liian paljon kuormaa!!!!'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Palvelimen kuormatilanne on tuntematon?'; +$wb['monitor_serverstate_mailqok_txt'] = 'Sähköpostijonon tilanne on hyvä.'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Sähköpostijonon tilanne on kohtalainen.'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Sähköpostijonon tilanne on huono!'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Sähköpostijonon tilanne on todella huono!!'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Sähköpostijonoa on liian paljon!!!!'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Sähköpostijonon tilanne on tuntematon?'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID-pakka on kunnossa'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID-pakkaa synkronoidaan'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID-pakassa on rikkinäinen levy. Vaihda heti kun mahdollista!'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID-pakka ei toimi enää'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID-pakan tila tuntematon?'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Kaikki tarvittavat palvelut ovat toiminnassa.'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Yksi tai usempi tarvittavista palveluista ei toimi.'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Tarvittavien palveluiden tila on tuntematon?'; +$wb['monitor_serverstate_syslogok_txt'] = 'Järjestelmäloki on kunnossa.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Järjestelmälokissa on joitakin varoituksia.'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Järjestelmälokissa on virheitä.'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'Järjestelmälokin tilanne on tuntematon?'; +$wb['monitor_serverstate_updatesok_txt'] = 'Järjestelmän päivitykset ovat ajantasalla..'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Yksi tai useampi järjestelmän osista tarvitsee päityksen.'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Järjestelmän päivitysten tila tuntematon?'; +$wb['monitor_services_online_txt'] = 'Käynnissä'; +$wb['monitor_services_offline_txt'] = 'Sammuksissa'; +$wb['monitor_services_web_txt'] = 'WWW-palvelin:'; +$wb['monitor_services_ftp_txt'] = 'FTP-palvelin:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-palvelin:'; +$wb['monitor_services_pop_txt'] = 'POP3-palvelin:'; +$wb['monitor_services_imap_txt'] = 'IMAP-palvelin:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-palvelin:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-palvelin:'; +$wb['monitor_settings_datetimeformat_txt'] = 'd.m.Y H:i'; +$wb['monitor_settings_datafromdate_txt'] = 'Tietojen päiväys: '; +$wb['monitor_settings_refreshsq_txt'] = 'Päivitysväli:'; +$wb['monitor_settings_server_txt'] = 'Palvelin'; +$wb['monitor_title_cpuinfo_txt'] = 'Prosessoritiedot'; +$wb['monitor_title_updatestate_txt'] = 'Päivitysten tila'; +$wb['monitor_title_mailq_txt'] = 'Sähköpostijono'; +$wb['monitor_title_raidstate_txt'] = 'RAID-laitteiden tila'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-tulokset'; +$wb['monitor_updates_nosupport_txt'] = 'Käyttämäsi Linux-jakelu ei tue päivitysten valvontaa.'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fi_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/fi_datalog_list.lng new file mode 100644 index 0000000..eb26582 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fi_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Työjono'; +$wb['tstamp_txt'] = 'Päiväys'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['dbtable_txt'] = 'Tietokannan taulu'; +$wb['action_txt'] = 'Toiminto'; +$wb['status_txt'] = 'Tila'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fi_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/fi_syslog_list.lng new file mode 100644 index 0000000..54aaa4e --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fi_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Loki'; +$wb['tstamp_txt'] = 'Päiväys'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['loglevel_txt'] = 'Lokitaso'; +$wb['message_txt'] = 'Viesti'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fr.lng b/interface/ispconfig/interface/monitor/lib/lang/fr.lng new file mode 100644 index 0000000..a322c4f --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fr.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Serveur en ligne depuis'; +$wb['Users online'] = 'utilisateurs en ligne'; +$wb['System load 1 minute'] = 'Charge du système 1 minute'; +$wb['System load 5 minutes'] = 'Charge du système 5 minutes'; +$wb['System load 15 minutes'] = 'Charge du système 15 minutes'; +$wb['Server Load'] = 'Charge du serveur'; +$wb['Disk usage'] = 'Usage du disque'; +$wb['Memory usage'] = 'Usage de la mémoire'; +$wb['no_data_serverload_txt'] = 'Pas de données concernant la charge du serveur actuellement. Réésayez plus tard.'; +$wb['no_data_memusage_txt'] = 'Pas de données concernant lusage de la mémoire actuellement. Réésayez plus tard.'; +$wb['no_data_diskusage_txt'] = 'Pas de données concernant lusage du disque actuellement. Réésayez plus tard.'; +$wb['no_data_cpuinfo_txt'] = 'Pas de données concernant le CPU actuellement. Réésayez plus tard.'; +$wb['no_data_services_txt'] = 'Pas de données concernant les services actuellement. Réésayez plus tard.'; +$wb['no_logdata_txt'] = 'Pas de logs disponibles actuellement. Réésayez plus tard.'; +$wb['Monitoring'] = 'Surveillance'; +$wb['Server to Monitor'] = 'Serveur à surveiller'; +$wb['Logfiles'] = 'Fichiers de logs'; +$wb['Status of services'] = 'Status des services'; +$wb['No Refresh'] = 'Pas de rafraichissement'; +$wb['minutes'] = 'minutes'; +$wb['Show Overview'] = 'Vue générale'; +$wb['System State (All Servers)'] = 'Status du système (Tous serveurs)'; +$wb['Hardware-Information'] = 'Infos. sur le materiel'; +$wb['Show CPU info'] = 'Voir les infos. CPU'; +$wb['Server State'] = 'Status du serveur'; +$wb['Show Update State'] = 'Mise à jour du status'; +$wb['Show RAID state'] = 'Voir le status RAID'; +$wb['Show Server load'] = 'Voir la charge du serveur'; +$wb['Show Disk usage'] = 'Voir lusage du disque'; +$wb['Show Memory usage'] = 'Voir lusage de la mémoire'; +$wb['Show Services'] = 'Voir les services'; +$wb['Show Mail-Queue'] = 'Voir la mailqueue'; +$wb['Show Mail-Log'] = 'Voir les logs mails'; +$wb['Show Mail warn-Log'] = 'Voir les logs mails davertissement'; +$wb['Show Mail err-Log'] = 'Voir les logs mails derreur'; +$wb['Show System-Log'] = 'Voir les logs système'; +$wb['Show Freshclam-Log'] = 'Voir les logs de Freshclam'; +$wb['Show Clamav-Log'] = 'Voir les logs de Clamav'; +$wb['Show ISPConfig-Log'] = 'Voir les logs dISPConfig'; +$wb['Show RKHunter-Log'] = 'Voir les logs de RKHunter'; +$wb['Show ISPC Cron-Log'] = 'Voir les logs des crons ISPC'; +$wb['no_data_updates_txt'] = 'Pas de données concernant les mises à jour actuellement. Réésayez plus tard.'; +$wb['no_data_raid_txt'] = 'Pas de données concernant le RAID actuellement. Réésayez plus tard.'; +$wb['no_data_rkhunter_txt'] = 'Pas de données concernant RKHunter actuellement. Réésayez plus tard.'; +$wb['no_data_mailq_txt'] = 'Pas de données concernant la queue de mails actuellement. Réésayez plus tard.'; +$wb['monitor_general_serverstate_txt'] = 'Status du serveur'; +$wb['monitor_general_systemstate_txt'] = 'Status du système'; +$wb['monitor_diskusage_filesystem_txt'] = 'Système de fichiers'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Taille'; +$wb['monitor_diskusage_used_txt'] = 'Utilisé'; +$wb['monitor_diskusage_available_txt'] = 'Disponible'; +$wb['monitor_diskusage_usage_txt'] = 'Utilisé%'; +$wb['monitor_diskusage_mounted_txt'] = 'Monté sur'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Avertissements Mail - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Erreurs Mail - Log'; +$wb['monitor_logs_messages_txt'] = 'Messages Système - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm nest pas installé ou votre serveur ne prend pas en charge le RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter nest pas installé, il ny a donc pas de logs'; +$wb['monitor_serverstate_server_txt'] = 'Serveur'; +$wb['monitor_serverstate_state_txt'] = 'Status'; +$wb['monitor_serverstate_unknown_txt'] = 'inconnu'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'avertissement'; +$wb['monitor_serverstate_critical_txt'] = 'critique'; +$wb['monitor_serverstate_error_txt'] = 'erreur'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Plus dinformations...'; +$wb['monitor_serverstate_more_txt'] = 'Plus...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Votre protection virus est OK'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Votre protection virus est PERIMEE'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: !'; +$wb['monitor_serverstate_hdok_txt'] = 'Le status de lusage de votre disque est OK'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Votre espace disque se rempli'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Votre espace disque est chargé'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Votre espace disque est très chargé'; +$wb['monitor_serverstate_hdfull_txt'] = 'Votre espace disque est plein'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Disque dur: '; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'avertissement'; +$wb['monitor_serverstate_listcritical_txt'] = 'critique'; +$wb['monitor_serverstate_listerror_txt'] = 'erreur'; +$wb['monitor_serverstate_listunknown_txt'] = 'inconnu'; +$wb['monitor_serverstate_loadok_txt'] = 'La charge de votre serveur est correcte'; +$wb['monitor_serverstate_loadheavy_txt'] = 'La charge de votre serveur est légèrement élevée'; +$wb['monitor_serverstate_loadhigh_txt'] = 'La charge de votre serveur est élevée'; +$wb['monitor_serverstate_loaghigher_txt'] = 'La charge de votre serveur est très élevée'; +$wb['monitor_serverstate_loadhighest_txt'] = 'La charge de votre serveur est extrèmement élevée'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Charge du serveur: '; +$wb['monitor_serverstate_mailqok_txt'] = 'La charge de Mailq est correcte'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'La charge de Mailq est légèrement élevée'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'La charge de Mailq est élevée'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'La charge de Mailq est très élevée'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'La charge de Mailq est extrèmement élevée'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: '; +$wb['monitor_serverstate_raidok_txt'] = 'Votre RAID est ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Votre RAID est en mode RESYNC'; +$wb['monitor_serverstate_raidfault_txt'] = 'Votre RAID à une erreur FAULT de disque. Remplacez le rapidement!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Votre RAID nest pas fonctionnel'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Status RAID: '; +$wb['monitor_serverstate_servicesonline_txt'] = 'Tous les services nécessaires sont en ligne'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Un ou plusieurs services sont hors-ligne'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services: '; +$wb['monitor_serverstate_syslogok_txt'] = 'Votre log système est OK'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Il y a des avertissements dans votre log système'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Il y a des erreurs dans votre log système'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'Log système: '; +$wb['monitor_serverstate_updatesok_txt'] = 'Votre système est à jour.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Un ou plusieurs composants nécessitent une mise à jour'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Mise à jour du système: '; +$wb['monitor_services_online_txt'] = 'En ligne'; +$wb['monitor_services_offline_txt'] = 'Hors-ligne'; +$wb['monitor_services_web_txt'] = 'Serveur Web:'; +$wb['monitor_services_ftp_txt'] = 'Serveur FTP:'; +$wb['monitor_services_smtp_txt'] = 'Serveur SMTP:'; +$wb['monitor_services_pop_txt'] = 'Serveur POP3:'; +$wb['monitor_services_imap_txt'] = 'Serveur IMAP:'; +$wb['monitor_services_mydns_txt'] = 'Serveur myDNS:'; +$wb['monitor_services_mysql_txt'] = 'Serveur mySQL:'; +$wb['monitor_settings_datafromdate_txt'] = 'Données depuis: '; +$wb['monitor_settings_datetimeformat_txt'] = 'd-m-Y H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Séquence de rafraichissement:'; +$wb['monitor_settings_server_txt'] = 'Serveur'; +$wb['monitor_title_cpuinfo_txt'] = 'Infos. CPU'; +$wb['monitor_title_updatestate_txt'] = 'Status de mise à jour'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'Status RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'Log RKHunter'; +$wb['monitor_updates_nosupport_txt'] = 'Votre distribution nest pas supportée par le moniteur'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fr_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/fr_datalog_list.lng new file mode 100644 index 0000000..e47b9f0 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fr_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Processus en attente'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Serveur'; +$wb['dbtable_txt'] = 'Table DB'; +$wb['action_txt'] = 'Action'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/fr_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/fr_syslog_list.lng new file mode 100644 index 0000000..00da5ab --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/fr_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Log'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Message'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/hu.lng b/interface/ispconfig/interface/monitor/lib/lang/hu.lng new file mode 100644 index 0000000..8135d99 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/hu.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Szerver műkődési idő'; +$wb['Users online'] = 'Online felhasználók'; +$wb['System load 1 minute'] = 'Rendszer load 1 az elmúlt 1 percben'; +$wb['System load 5 minutes'] = 'Rendszer load 5 az elmúlt 1 percben'; +$wb['System load 15 minutes'] = 'Rendszer load 15 az elmúlt 1 percben'; +$wb['Server Load'] = 'Szerver Load'; +$wb['Disk usage'] = 'Lemez kihasználtság'; +$wb['Memory usage'] = 'Memória használat'; +$wb['no_data_serverload_txt'] = 'Nincs adat a szerver terheléséről'; +$wb['no_data_memusage_txt'] = 'Nincs adat a memória használatról'; +$wb['no_data_diskusage_txt'] = 'Nincs adat a lemez kihasználtságról'; +$wb['no_data_cpuinfo_txt'] = 'Nincs adat a processzor használatról'; +$wb['no_data_services_txt'] = 'Nincs adat a szolgáltatásokról'; +$wb['no_logdata_txt'] = 'Nincs adat a naplófájlokról'; +$wb['Monitoring'] = 'Monitorozás'; +$wb['Server to Monitor'] = 'Monitorozott szerver'; +$wb['Logfiles'] = 'Naplófájlok'; +$wb['Status of services'] = 'Szolgáltatások állapota'; +$wb['No Refresh'] = 'Nincs frissités'; +$wb['minutes'] = 'percenként'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['Show Overview'] = 'Show Overview'; +$wb['System State (All Servers)'] = 'System State (All Servers)'; +$wb['Hardware-Information'] = 'Hardware-Information'; +$wb['Show CPU info'] = 'Show CPU info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID state'; +$wb['Show Server load'] = 'Show Server load'; +$wb['Show Disk usage'] = 'Show Disk usage'; +$wb['Show Memory usage'] = 'Show Memory usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail-Queue'; +$wb['Show Mail-Log'] = 'Show Mail-Log'; +$wb['Show Mail warn-Log'] = 'Show Mail warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail err-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/hu_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/hu_datalog_list.lng new file mode 100644 index 0000000..a88ef92 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/hu_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Munkamenet sor'; +$wb['tstamp_txt'] = 'Dátum'; +$wb['server_id_txt'] = 'Szerver'; +$wb['dbtable_txt'] = 'DB Tábla'; +$wb['action_txt'] = 'Művelet'; +$wb['status_txt'] = 'Állapot'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/hu_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/hu_syslog_list.lng new file mode 100644 index 0000000..d306d66 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/hu_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Log'; +$wb['tstamp_txt'] = 'Dátum'; +$wb['server_id_txt'] = 'Szerver'; +$wb['loglevel_txt'] = 'Naplózási szint'; +$wb['message_txt'] = 'Üzenet'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/it.lng b/interface/ispconfig/interface/monitor/lib/lang/it.lng new file mode 100644 index 0000000..a898c7d --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/it.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Server online da'; +$wb['Users online'] = 'Utenti online'; +$wb['System load 1 minute'] = 'Carico del sistema ultimo minuto'; +$wb['System load 5 minutes'] = 'Carico del sistema ultimi 5 minuti'; +$wb['System load 15 minutes'] = 'Carico del sistema ultimi 15 minuti'; +$wb['Server Load'] = 'Carico del server'; +$wb['Disk usage'] = 'Utilizzo dischi'; +$wb['Memory usage'] = 'Utilizzo memoria'; +$wb['no_data_serverload_txt'] = 'Dati riguardo il carico del server attualmente non disponibili. Riprova più tardi.'; +$wb['no_data_memusage_txt'] = 'Dati riguardo l`uso della memoria attualmente non disponibili. Riprova più tardi.'; +$wb['no_data_diskusage_txt'] = 'Dati riguardo l`uso dei dischi attualmente non disponibili. Riprova più tardi.'; +$wb['no_data_cpuinfo_txt'] = 'Dati riguardo la CPU attualmente non disponibili. Riprova più tardi.'; +$wb['no_data_services_txt'] = 'Dati riguardo i servizi attualmente non disponibili. Riprova più tardi.'; +$wb['no_logdata_txt'] = 'Log attualmente non disponibili. Riprova più tardi.'; +$wb['Monitoring'] = 'Monitoraggio'; +$wb['Server to Monitor'] = 'Server da monitorare'; +$wb['Logfiles'] = 'File dei log'; +$wb['Status of services'] = 'Stato dei servizi'; +$wb['No Refresh'] = 'No Aggiornamento'; +$wb['minutes'] = 'minuti'; +$wb['Show Overview'] = 'Mostra panoramica'; +$wb['System State (All Servers)'] = 'Stato del sistema (Tutti i server)'; +$wb['Hardware-Information'] = 'Informationi Hardware'; +$wb['Show CPU info'] = 'Mostra info CPU'; +$wb['Server State'] = 'Stato del server'; +$wb['Show Update State'] = 'Mostra stato aggiornamento'; +$wb['Show RAID state'] = 'Mostra stato RAID'; +$wb['Show Server load'] = 'Mostra carico Server'; +$wb['Show Disk usage'] = 'Mostra utilizzo dischi'; +$wb['Show Memory usage'] = 'Mostra utilizzo memoria'; +$wb['Show Services'] = 'Mostra servizi'; +$wb['Show Mail-Queue'] = 'Mostra code mail'; +$wb['Show Mail-Log'] = 'Mostra log mail'; +$wb['Show Mail warn-Log'] = 'Mostra log avvisi mail'; +$wb['Show Mail err-Log'] = 'Mostra log errori mail'; +$wb['Show Freshclam-Log'] = 'Mostra log Freshclam'; +$wb['Show Clamav-Log'] = 'Mostra log Clamav'; +$wb['Show ISPConfig-Log'] = 'Mostra log ISPConfig'; +$wb['Show System-Log'] = 'Mostra log di sistema'; +$wb['Show RKHunter-Log'] = 'Mostra log RKHunter'; +$wb['Show Jobqueue'] = 'Mostra Jobqueue'; +$wb['Show ISPC Cron-Log'] = 'Mostra log cron ISPC'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/it_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/it_datalog_list.lng new file mode 100644 index 0000000..740dff1 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/it_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Jobqueue'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'Tabella DB'; +$wb['action_txt'] = 'Azione'; +$wb['status_txt'] = 'Stato'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/it_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/it_syslog_list.lng new file mode 100644 index 0000000..3b372ec --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/it_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Log ISPConfig'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Livello Log'; +$wb['message_txt'] = 'Messaggio'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ja.lng b/interface/ispconfig/interface/monitor/lib/lang/ja.lng new file mode 100644 index 0000000..b08f3b2 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ja.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'サーバーの稼働時間'; +$wb['Users online'] = 'ログイン中のユーザー数'; +$wb['System load 1 minute'] = 'システムの負荷(1分)'; +$wb['System load 5 minutes'] = 'システムの負荷(5分)'; +$wb['System load 15 minutes'] = 'システムの負荷(15分)'; +$wb['Server Load'] = 'サーバーの負荷'; +$wb['Disk usage'] = 'ディスク使用量'; +$wb['Memory usage'] = 'メモリ使用量'; +$wb['no_data_serverload_txt'] = 'サーバーの負荷データがまだありません。後程確認をしてください。'; +$wb['no_data_memusage_txt'] = 'メモリの使用量データがまだありません。後程確認をしてください。'; +$wb['no_data_diskusage_txt'] = 'ディスクの使用量データがまだありません。後程確認をしてください。'; +$wb['no_data_cpuinfo_txt'] = 'CPU のデータがまだありません。後程確認をしてください。'; +$wb['no_data_services_txt'] = 'サービスのデータがまだありません。後程確認をしてください。'; +$wb['no_data_updates_txt'] = '更新に関する情報がまだありません。後程確認をしてください。'; +$wb['no_data_raid_txt'] = 'RAIDのデータがまだありません。後程確認をしてください。'; +$wb['no_data_rkhunter_txt'] = 'RKHunterのデータがまだありません。後程確認をしてください。'; +$wb['no_data_mailq_txt'] = 'メールキューの情報がまだありません。後程確認をしてください。'; +$wb['no_logdata_txt'] = 'ログデータがまだありません。後程確認をしてください。'; +$wb['Monitoring'] = '監視'; +$wb['Server to Monitor'] = '監視対象のサーバー'; +$wb['Logfiles'] = 'ログファイル'; +$wb['Status of services'] = 'サービスの状態'; +$wb['No Refresh'] = '更新しない'; +$wb['minutes'] = '分'; +$wb['Show Overview'] = '概要を見る'; +$wb['System State (All Servers)'] = 'システムの状態(全サーバー)'; +$wb['Hardware-Information'] = 'ハードウェアの情報'; +$wb['Show CPU info'] = 'CPUの情報を見る'; +$wb['Server State'] = 'サーバーの状態'; +$wb['Show Update State'] = '更新の状態を見る'; +$wb['Show RAID state'] = 'RAIDの状態を見る'; +$wb['Show Server load'] = 'サーバーの負荷を見る'; +$wb['Show Disk usage'] = 'ディスク使用量を見る'; +$wb['Show Memory usage'] = 'メモリ使用量を見る'; +$wb['Show Services'] = 'サービスを見る'; +$wb['Show Mail-Queue'] = 'メールキューを見る'; +$wb['Show Mail-Log'] = 'メールログを見る'; +$wb['Show Mail warn-Log'] = 'メール警告ログを見る'; +$wb['Show Mail err-Log'] = 'メールエラーログを見る'; +$wb['Show System-Log'] = 'システムログを見る'; +$wb['Show ISPC Cron-Log'] = 'ISPConfigのcronログを見る'; +$wb['Show Freshclam-Log'] = 'Freshclam のログを見る'; +$wb['Show Clamav-Log'] = 'Clamav のログを見る'; +$wb['Show ISPConfig-Log'] = 'ISPConfigのログを見る'; +$wb['Show RKHunter-Log'] = 'RKHunterのログを見る'; +$wb['Show Jobqueue'] = 'ジョブのキューを見る'; +$wb['monitor_general_serverstate_txt'] = 'サーバーの状態'; +$wb['monitor_general_systemstate_txt'] = 'システムの状態'; +$wb['monitor_diskusage_filesystem_txt'] = 'ファイルシステム'; +$wb['monitor_diskusage_type_txt'] = '種別'; +$wb['monitor_diskusage_size_txt'] = 'サイズ'; +$wb['monitor_diskusage_used_txt'] = '使用済'; +$wb['monitor_diskusage_available_txt'] = '未使用'; +$wb['monitor_diskusage_usage_txt'] = '使用率(%)'; +$wb['monitor_diskusage_mounted_txt'] = 'マウントポイント'; +$wb['monitor_logs_mail_txt'] = 'メール - ログ'; +$wb['monitor_logs_mailwarn_txt'] = 'メール警告 - ログ'; +$wb['monitor_logs_mailerr_txt'] = 'メールエラー - ログ'; +$wb['monitor_logs_messages_txt'] = 'システムメッセージ - ログ'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - ログ'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - ログ'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - ログ'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - ログ'; +$wb['monitor_nomdadm_txt'] = 'mdadmがインストールされていないか、利用可能なRAIDデバイスが存在しません。'; +$wb['monitor_norkhunter_txt'] = 'RKHunterがインストールされていないため、データが存在しません。'; +$wb['monitor_serverstate_server_txt'] = 'サーバー'; +$wb['monitor_serverstate_state_txt'] = '状態'; +$wb['monitor_serverstate_unknown_txt'] = '不明'; +$wb['monitor_serverstate_info_txt'] = '情報'; +$wb['monitor_serverstate_warning_txt'] = '警告'; +$wb['monitor_serverstate_critical_txt'] = '危険'; +$wb['monitor_serverstate_error_txt'] = 'エラー'; +$wb['monitor_serverstate_moreinfo_txt'] = '詳細を見る'; +$wb['monitor_serverstate_more_txt'] = '詳細を見る'; +$wb['monitor_serverstate_fclamok_txt'] = 'ウイルスプロテクションが正常稼働しています。'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'ウイルスプロテクションを最新のものに更新してください。'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam:???!'; +$wb['monitor_serverstate_hdok_txt'] = 'ハードディスクの容量に問題はありません。'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'ハードディスクが足りなくなりそうです。'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'もうじきハードディスクが足りなくなります。'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'ハードディスクの残容量がほとんどありません。'; +$wb['monitor_serverstate_hdfull_txt'] = 'ハードディスクに空きスペースがありません。'; +$wb['monitor_serverstate_hdunknown_txt'] = 'ハードディスク:???'; +$wb['monitor_serverstate_listok_txt'] = '正常'; +$wb['monitor_serverstate_listinfo_txt'] = '情報'; +$wb['monitor_serverstate_listwarning_txt'] = '警告'; +$wb['monitor_serverstate_listcritical_txt'] = '危険'; +$wb['monitor_serverstate_listerror_txt'] = 'エラー'; +$wb['monitor_serverstate_listunknown_txt'] = '不明'; +$wb['monitor_serverstate_loadok_txt'] = 'サーバーの負荷は正常です。'; +$wb['monitor_serverstate_loadheavy_txt'] = 'サーバーの負荷が重くなっています(4段階中1)'; +$wb['monitor_serverstate_loadhigh_txt'] = 'サーバーの負荷が重くなっています(4段階中2)'; +$wb['monitor_serverstate_loaghigher_txt'] = 'サーバーの負荷が重くなっています(4段階中3)'; +$wb['monitor_serverstate_loadhighest_txt'] = 'サーバーの負荷が重くなっています(4段階中4)'; +$wb['monitor_serverstate_loadunknown_txt'] = 'サーバーの負荷:???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Mailq の負荷は正常です。'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Mailq の負荷が重くなっています(4段階中1)'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Mailq の負荷が重くなっています(4段階中2)'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Mailq の負荷が重くなっています(4段階中3)'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Mailq の負荷が重くなっています(4段階中4)'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq:???'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID が正常稼働しています。'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID は RESYNCモードで動作しています'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID でディスク障害が発生しています。速やかに交換してください。'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID は停止しています'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAIDの状態:???'; +$wb['monitor_serverstate_servicesonline_txt'] = '必要なすべてのサービスが稼動しています。'; +$wb['monitor_serverstate_servicesoffline_txt'] = '必要なサービスのうち1つ以上のサービスが停止しています。'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'サービス:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'システムログに問題はありません。'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'システムログに警告が出ています。'; +$wb['monitor_serverstate_syslogerror_txt'] = 'システムログにエラーが出ています。'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'システムは最新です。'; +$wb['monitor_serverstate_updatesneeded_txt'] = '更新が必要なコンポーネントが存在します。'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'システムの更新:???'; +$wb['monitor_services_online_txt'] = 'オンライン'; +$wb['monitor_services_offline_txt'] = 'オフライン'; +$wb['monitor_services_web_txt'] = 'ウェブサーバー:'; +$wb['monitor_services_ftp_txt'] = 'FTPサーバー:'; +$wb['monitor_services_smtp_txt'] = 'SMTPサーバー:'; +$wb['monitor_services_pop_txt'] = 'POP3サーバー:'; +$wb['monitor_services_imap_txt'] = 'IMAPサーバー:'; +$wb['monitor_services_mydns_txt'] = 'myDNSサーバー:'; +$wb['monitor_services_mysql_txt'] = 'MySQLサーバー:'; +$wb['monitor_settings_datafromdate_txt'] = '開始日時:'; +$wb['monitor_settings_datetimeformat_txt'] = 'Y/m/d H:i'; +$wb['monitor_settings_refreshsq_txt'] = '表示更新間隔:'; +$wb['monitor_settings_server_txt'] = 'サーバー'; +$wb['monitor_title_cpuinfo_txt'] = 'CPUの情報'; +$wb['monitor_title_updatestate_txt'] = '更新状態'; +$wb['monitor_title_mailq_txt'] = 'メールキュー'; +$wb['monitor_title_raidstate_txt'] = 'RAIDの状態'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunterのログ'; +$wb['monitor_updates_nosupport_txt'] = 'このディストリビューションはISPConfigで監視できません。'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ja_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ja_datalog_list.lng new file mode 100644 index 0000000..c1f136d --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ja_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ジョブのキュー'; +$wb['tstamp_txt'] = '日付'; +$wb['server_id_txt'] = 'サーバー'; +$wb['dbtable_txt'] = 'DBテーブル'; +$wb['action_txt'] = '操作'; +$wb['status_txt'] = '状態'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ja_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ja_syslog_list.lng new file mode 100644 index 0000000..598b8d4 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ja_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig のログ'; +$wb['tstamp_txt'] = '日付'; +$wb['server_id_txt'] = 'サーバー'; +$wb['loglevel_txt'] = 'ログレベル'; +$wb['message_txt'] = 'メッセージ'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/nl.lng b/interface/ispconfig/interface/monitor/lib/lang/nl.lng new file mode 100644 index 0000000..3315572 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/nl.lng @@ -0,0 +1,138 @@ +<?php +$wb['Memory usage'] = 'Geheugengebruik'; +$wb['Server online since'] = 'Server online sinds'; +$wb['Users online'] = 'Gebruikers online'; +$wb['System load 1 minute'] = 'System load 1 minuut'; +$wb['System load 5 minutes'] = 'System load 5 minuten'; +$wb['System load 15 minutes'] = 'System load 15 minuten'; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Schrijfruimte gebruik'; +$wb['no_data_serverload_txt'] = 'Er zijn op dit moment geen gegevens van de server load. Probeer het later opnieuw.'; +$wb['no_data_memusage_txt'] = 'Er zijn op dit moment geen gegevens van het geheugengebruik. Probeer het later opnieuw.'; +$wb['no_data_diskusage_txt'] = 'Er zijn op dit moment geen gegevens van het schijfruimte gebruik. Probeer het later opnieuw.'; +$wb['no_data_cpuinfo_txt'] = 'Er is op dit moment geen informatie over de CPU beschikbaar. Probeer het later opnieuw.'; +$wb['no_data_services_txt'] = 'Er zijn op dit moment geen gegevens beschikbaar van de services. Probeer het later opnieuw.'; +$wb['no_logdata_txt'] = 'Er zijn op dit moment geen logboekgegevens beschikbaar. Probeer het later opnieuw.'; +$wb['Monitoring'] = 'Controle'; +$wb['Server to Monitor'] = 'Details-status per server'; +$wb['Logfiles'] = 'Toon logbestanden'; +$wb['Status of services'] = 'Status van de services'; +$wb['No Refresh'] = 'Niet vernieuwen'; +$wb['minutes'] = 'minuten'; +$wb['Show Overview'] = 'Totaaloverzicht'; +$wb['System State (All Servers)'] = 'Statussen van alle servers'; +$wb['Hardware-Information'] = 'Hardware informatie'; +$wb['Show CPU info'] = 'CPU informatie'; +$wb['Server State'] = 'Server status'; +$wb['Show Update State'] = 'Updates'; +$wb['Show RAID state'] = 'RAID status'; +$wb['Show Server load'] = 'Server load'; +$wb['Show Disk usage'] = 'Schijfruimte gebruik'; +$wb['Show Memory usage'] = 'Geheugen gebruik'; +$wb['Show Services'] = 'Services'; +$wb['Show Mail-Queue'] = 'E-mail wachtrij'; +$wb['Show Mail-Log'] = 'E-Mail mail-log'; +$wb['Show Mail warn-Log'] = 'E-Mail warn-log'; +$wb['Show Mail err-Log'] = 'E-Mail mail-err-log'; +$wb['Show System-Log'] = 'Systeem logboek'; +$wb['Show Freshclam-Log'] = 'Freshclam-log'; +$wb['Show Clamav-Log'] = 'Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'ISPConfig-log'; +$wb['Show RKHunter-Log'] = 'Rootkit Hunter-log'; +$wb['Show Jobqueue'] = 'ISPConfig taak-wachtrij'; +$wb['Show ISPC Cron-Log'] = 'ISPConfig Cron-log'; +$wb['no_data_updates_txt'] = 'Er zijn op dit moment geen gegevens beschikbaar. Probeer het later opnieuw.'; +$wb['no_data_raid_txt'] = 'Er is op dit moment geen RAID informatie bekend. Probeer het later opnieuw.'; +$wb['no_data_rkhunter_txt'] = 'Er is op dit moment geen informatie beschikbaar over de Rootkit Hunter. Probeer het later opnieuw.'; +$wb['no_data_mailq_txt'] = 'Er is op dit moment geen informatie van de mail wachtrij beschikbaar. Probeer het later opnieuw.'; +$wb['monitor_general_serverstate_txt'] = 'Server status'; +$wb['monitor_general_systemstate_txt'] = 'Systeemstatus'; +$wb['monitor_diskusage_filesystem_txt'] = 'Bestandssysteem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Grootte'; +$wb['monitor_diskusage_used_txt'] = 'Gebruikt'; +$wb['monitor_diskusage_available_txt'] = 'Beschikbaar'; +$wb['monitor_diskusage_usage_txt'] = '% Gebruikt'; +$wb['monitor_diskusage_mounted_txt'] = 'Gekoppeld aan'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'Systemberichten - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is niet geinstalleerd of deze server ondersteunt/gebruikt geen software RAID.'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is niet geinstalleerd. Hierdoor is er geen informatie beschikbaar.'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'status'; +$wb['monitor_serverstate_unknown_txt'] = 'onbekend'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'waarschuwing'; +$wb['monitor_serverstate_critical_txt'] = 'kritiek'; +$wb['monitor_serverstate_error_txt'] = 'fout'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Meer informatie...'; +$wb['monitor_serverstate_more_txt'] = 'Meer...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Anti-virus beveiliging werkt correct.'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Anti-virus software is verouderd.'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Harde schijf status is OK'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Schrijfruimte raakt geleidelijk vol'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Er is nauwelijks schijfruimte beschikbaar'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Er is zeer weinig schijfruimte beschikbaar'; +$wb['monitor_serverstate_hdfull_txt'] = 'Er is geen schijfruimte beschikbaar'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Harde schijf: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'waarschuwing'; +$wb['monitor_serverstate_listcritical_txt'] = 'kritiek'; +$wb['monitor_serverstate_listerror_txt'] = 'fout'; +$wb['monitor_serverstate_listunknown_txt'] = 'onbekend'; +$wb['monitor_serverstate_loadok_txt'] = 'Server load binnen veilige marges'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Server wordt bovengemiddeld belast'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Server wordt zwaar belast'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Server wordt erg zwaar belast'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Server wordt zeer zwaar belast'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Mailq load binnen veilige marges'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Mailq wordt bovengemiddeld belast'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq wordt zwaar belast'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq wordt erg zwaar belast'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq wordt zeer zwaar belast'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID functioneert correct'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID-array wordt gesynchroniseerd (RESYNC mode)'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID-array heeft een defecte schijf. Zo spoedig mogelijk vervangen!'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID-configuratie is uitgeschakeld!'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID status: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Alle vereiste services zijn online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Een of meerdere vereiste services zijn offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services :???'; +$wb['monitor_serverstate_syslogok_txt'] = 'Systeem logboek is ok'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Er komen waarschuwingen voor in System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Er komen fouten voor in System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Systeem is up-to-date'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Een of meerdere onderdelen moeten worden bijgewerkt'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Systeem-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP Server:'; +$wb['monitor_services_pop_txt'] = 'POP3 Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS Server:'; +$wb['monitor_services_mysql_txt'] = 'MySQL Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data vanaf: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Vernieuwingsfrequentie:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Informatie'; +$wb['monitor_title_updatestate_txt'] = 'Status update'; +$wb['monitor_title_mailq_txt'] = 'E-mail wachtrij'; +$wb['monitor_title_raidstate_txt'] = 'RAID status'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Uw distributie ondersteunt deze controle-software niet'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/nl_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/nl_datalog_list.lng new file mode 100644 index 0000000..87e01c2 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/nl_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig taak-wachtrij'; +$wb['tstamp_txt'] = 'Datum'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'Database tabel'; +$wb['action_txt'] = 'Actie'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/nl_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/nl_syslog_list.lng new file mode 100644 index 0000000..90a685f --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/nl_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig logboek'; +$wb['tstamp_txt'] = 'Datum'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Bericht'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/pl.lng b/interface/ispconfig/interface/monitor/lib/lang/pl.lng new file mode 100644 index 0000000..8ffd298 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pl.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Serwer online do tej pory'; +$wb['Users online'] = 'Użytkowników Online'; +$wb['System load 1 minute'] = 'Obciążenie systemu przez ostatnią minute'; +$wb['System load 5 minutes'] = 'Obciążenie systemu przez ostatnie 5 minut'; +$wb['System load 15 minutes'] = 'Obciążenie systemu przez ostatnie 15 minut'; +$wb['Server Load'] = 'Serwer włączony'; +$wb['Disk usage'] = 'Użycie dysku'; +$wb['Memory usage'] = 'Użycie pamięci'; +$wb['no_data_serverload_txt'] = 'Żadne dane o serwerze nie zostały załadowane w tym momencie. Prosze spróbować ponownie później.'; +$wb['no_data_memusage_txt'] = 'Żadne dane o użyciu pamięci nie zostały załadowane w tym momencie. Prosze spróbować ponownie później.'; +$wb['no_data_diskusage_txt'] = 'Żadne dane o użyciu dysku nie zostały załadowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_data_cpuinfo_txt'] = 'Żadne dane o procesorze nie zostały załadowane w tym momencie. Prosze spróbować ponownie później.'; +$wb['no_data_services_txt'] = 'Żadne dane o serwisach nie zostały zaladowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_data_updates_txt'] = 'Żadne dane o akutalizacjach nie zostały załadowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_data_raid_txt'] = 'Żadne dane o RAID nie zostały załadowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_data_rkhunter_txt'] = 'Żadne dane o RKHunter nie zostały załadowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_data_mailq_txt'] = 'Żadne dane o Mail nie zostały załadowane w tym momencie. Proszę spróbować ponownie później.'; +$wb['no_logdata_txt'] = 'Log nie jest dostępny w tym momencie. Proszę spróbować ponownie później.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Serwer do monitorowania'; +$wb['Logfiles'] = 'Pliki logów'; +$wb['Status of services'] = 'Stan serwisów'; +$wb['No Refresh'] = 'Nie odświeżaj'; +$wb['minutes'] = 'minuty'; +$wb['Show Overview'] = 'Pokaż wszystko'; +$wb['System State (All Servers)'] = 'Status systemu (Wszystkie serwery)'; +$wb['Hardware-Information'] = 'Informacje o sprzęcie'; +$wb['Show CPU info'] = 'Pokaż informacje o procesorze'; +$wb['Server State'] = 'Status serwera'; +$wb['Show Update State'] = 'Pokaż status aktualizacji'; +$wb['Show RAID state'] = 'Pokaż status RAID'; +$wb['Show Server load'] = 'Pokaż obciążenie serwera'; +$wb['Show Disk usage'] = 'Pokaż użycie dysku'; +$wb['Show Memory usage'] = 'Pokaż użycie pamięci'; +$wb['Show Services'] = 'Pokaż serwisy'; +$wb['Show Mail-Queue'] = 'Pokaż kolejke Mail'; +$wb['Show Mail-Log'] = 'Pokaż Log Mail'; +$wb['Show Mail warn-Log'] = 'Pokaż Log ostrzeżeń Mail'; +$wb['Show Mail err-Log'] = 'Pokaż Log błedów Mail'; +$wb['Show System-Log'] = 'Pokaż Log systemowy'; +$wb['Show ISPC Cron-Log'] = 'Pokaż Log ISPC Crone'; +$wb['Show Freshclam-Log'] = 'Pokaż Log Freshclam'; +$wb['Show Clamav-Log'] = 'Pokaż Log Clamav'; +$wb['Show ISPConfig-Log'] = 'Pokaż Log ISPConfig'; +$wb['Show RKHunter-Log'] = 'Pokaż Log RKHunter'; +$wb['Show Jobqueue'] = 'Pokaż kolejkę zadań'; +$wb['monitor_general_serverstate_txt'] = 'Stan serwera'; +$wb['monitor_general_systemstate_txt'] = 'Stan systemu'; +$wb['monitor_diskusage_filesystem_txt'] = 'System plików'; +$wb['monitor_diskusage_type_txt'] = 'Typ'; +$wb['monitor_diskusage_size_txt'] = 'Wielkość'; +$wb['monitor_diskusage_used_txt'] = 'Używane'; +$wb['monitor_diskusage_available_txt'] = 'Dostępne'; +$wb['monitor_diskusage_usage_txt'] = 'Wykorzystane%'; +$wb['monitor_diskusage_mounted_txt'] = 'Zamontowane w'; +$wb['monitor_logs_mail_txt'] = 'Log Mail'; +$wb['monitor_logs_mailwarn_txt'] = 'Log ostrzeżeń Mail'; +$wb['monitor_logs_mailerr_txt'] = 'Log błedów Mail'; +$wb['monitor_logs_messages_txt'] = 'Log wiadomości systemu'; +$wb['monitor_logs_ispccron_txt'] = 'Log ISPConfig Cron'; +$wb['monitor_logs_freshclam_txt'] = 'Log Freshclam'; +$wb['monitor_logs_clamav_txt'] = 'Log Clamav'; +$wb['monitor_logs_ispc_txt'] = 'Log ISPConfig'; +$wb['monitor_nomdadm_txt'] = 'mdadm nie jest zainstalowany lub twój serwer nie obsluguje RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter nie jest zainstalowany, więc nie ma Log-u'; +$wb['monitor_serverstate_server_txt'] = 'Serwer'; +$wb['monitor_serverstate_state_txt'] = 'Status'; +$wb['monitor_serverstate_unknown_txt'] = 'nieznany'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'ostrzeżenie'; +$wb['monitor_serverstate_critical_txt'] = 'krytyczny'; +$wb['monitor_serverstate_error_txt'] = 'bład'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Więcej informacji...'; +$wb['monitor_serverstate_more_txt'] = 'Więcej...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Twoja ochrona antyvirusowa jest ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Twoja ochrona antyvirusowa nie jest aktualna!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Stan pamięci na dysku twardym jest ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Stan pamięci na dysku twardym kończy się'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Twardy dysk jest prawie pełny'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Na twardym dysku pozostało mało miejsca'; +$wb['monitor_serverstate_hdfull_txt'] = 'Na dysku twardym nie ma już wolnego miejsca'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Twardy dysk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'ostrzeżenie'; +$wb['monitor_serverstate_listcritical_txt'] = 'krytyczny'; +$wb['monitor_serverstate_listerror_txt'] = 'bład'; +$wb['monitor_serverstate_listunknown_txt'] = 'nieznany'; +$wb['monitor_serverstate_loadok_txt'] = 'Serwer działa poprawnie'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Serwer zaczyna być przeciązony'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Serwer jest średnio obiciążony'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Serwer jest za bardzo obciążony'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Serwer jest krytycznie przeciążony'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Przeciążenie serwera: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Mailq działa poprawnie'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Mailq zaczyna być przeciązony'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Mailq jest średnio obiciążony'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Mailq jest za bardzo obciążony'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Mailq jest krytycznie przeciążony'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID działa poprawnie'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID nie jest z synchronizowany'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID ma jeden niesprawny dysk. Wymień go najszybciej jak to możliwe!'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID nie włączy się już więcej'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Stan RAID: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Wszystkie wymagane serwisy działają poprawnie'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Jeden z wymaganych serwisów jest wyłączony'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Serwisy:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'Log systemowy jest ok'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'W logu systemowym są ostrzeżenia'; +$wb['monitor_serverstate_syslogerror_txt'] = 'W logu systemowym są błedy'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'Log systemowy:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Twój system jest aktualny.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Jeden lub więcej komponentów wymaga aktualizacji'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Aktualizacja systemu:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Serwer:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Serwer:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Serwer:'; +$wb['monitor_services_pop_txt'] = 'POP3-Serwer:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Serwer:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Serwer:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Serwer:'; +$wb['monitor_settings_datafromdate_txt'] = 'Dane z: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Odśwież sekwencje:'; +$wb['monitor_settings_server_txt'] = 'Serwer'; +$wb['monitor_title_cpuinfo_txt'] = 'Info o procesorze'; +$wb['monitor_title_updatestate_txt'] = 'Aktualizuj status'; +$wb['monitor_title_mailq_txt'] = 'Kolejka Mail'; +$wb['monitor_title_raidstate_txt'] = 'Status RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'Log RKHunter'; +$wb['monitor_updates_nosupport_txt'] = 'Twoja dystrybucja systemu nie obsługuje monitorowania'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/pl_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/pl_datalog_list.lng new file mode 100644 index 0000000..398ca51 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pl_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Kolejka zadań'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Serwer'; +$wb['dbtable_txt'] = 'Tabele DB'; +$wb['action_txt'] = 'Akcja'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/pl_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/pl_syslog_list.lng new file mode 100644 index 0000000..125494b --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pl_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Log ISPConfig'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Serwer'; +$wb['loglevel_txt'] = 'Poziom Logu'; +$wb['message_txt'] = 'Wiadomość'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/pt.lng b/interface/ispconfig/interface/monitor/lib/lang/pt.lng new file mode 100644 index 0000000..6720285 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pt.lng @@ -0,0 +1,139 @@ +<?php +$wb['Server online since'] = 'Servidor online desde'; +$wb['Users online'] = 'Utilizadores Online'; +$wb['System load 1 minute'] = 'Sistema carregado 1 Min'; +$wb['System load 5 minutes'] = 'Sistema carregado 5 Min'; +$wb['System load 15 minutes'] = 'Sistema carregado 15 Min'; +$wb['Server Load'] = 'Servidor carregado'; +$wb['Disk usage'] = 'Uso do disco'; +$wb['Memory usage'] = 'Uso da memória'; +$wb['no_data_serverload_txt'] = 'Sem registo carga do servidor disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_memusage_txt'] = 'Sem registo uso de memória disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_diskusage_txt'] = 'Sem registo de uso de disco disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_cpuinfo_txt'] = 'Sem registo de CPU disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_services_txt'] = 'Sem registo sobre os serviços disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_updates_txt'] = 'Sem actualização de dados disponíveis no momento. Tente novamente mais tarde.'; +$wb['no_data_raid_txt'] = 'Sem registo de RAID disponível no momento. Tente novamente mais tarde.'; +$wb['no_data_rkhunter_txt'] = 'Sem registo de RKHUNTER disponível no momento. Tente novamente mais tarde.'; +$wb['no_data_mailq_txt'] = 'Sem registo de fila de correio disponível no momento. Tente novamente mais tarde.'; +$wb['no_logdata_txt'] = 'Sem registo de log disponível no momento. Tente novamente mais tarde.'; +$wb['Monitoring'] = 'Monitoramento'; +$wb['Server to Monitor'] = 'Servidor a monitorar'; +$wb['Logfiles'] = 'Ficheiros de log'; +$wb['Status of services'] = 'Status dos serviços'; +$wb['No Refresh'] = 'Não actualize'; +$wb['minutes'] = 'minutos'; +$wb['Show Overview'] = 'Exibir Visão Geral'; +$wb['System State (All Servers)'] = 'Estado do Sistema (Todos os Servidores)'; +$wb['Hardware-Information'] = 'Informação de Hardware'; +$wb['Show CPU info'] = 'Exibir informações da CPU'; +$wb['Server State'] = 'Estado do Servidor'; +$wb['Show Update State'] = 'Exiba Status Actualizado'; +$wb['Show RAID state'] = 'Exiba Status do RAID'; +$wb['Show Server load'] = 'Exiba Carga do Servidor'; +$wb['Show Disk usage'] = 'Exiba Uso de Disco'; +$wb['Show Memory usage'] = 'Exiba Uso de Memória'; +$wb['Show Services'] = 'Exibir Serviços'; +$wb['Show Mail-Queue'] = 'Exibir Fila de Correio'; +$wb['Show Mail-Log'] = 'Exibir Log de Correio'; +$wb['Show Mail warn-Log'] = 'Exibir Log de Avisos de Correio'; +$wb['Show Mail err-Log'] = 'Exibir Log de Erros de Correio'; +$wb['Show System-Log'] = 'Exibir Log de Sistema'; +$wb['Show ISPC Cron-Log'] = 'Exibir ISPC Log do Cron'; +$wb['Show Freshclam-Log'] = 'Exibir Log do Freshclam'; +$wb['Show Clamav-Log'] = 'Exibir Log do Clamav'; +$wb['Show ISPConfig-Log'] = 'Exibir Log do ISPConfig'; +$wb['Show RKHunter-Log'] = 'Exibir Log do RKHunter'; +$wb['Show Jobqueue'] = 'Exibir Fila de Trabalho'; +$wb['monitor_general_serverstate_txt'] = 'Estado do Servidor'; +$wb['monitor_general_systemstate_txt'] = 'Estado do Sistema'; +$wb['monitor_diskusage_filesystem_txt'] = 'Sistema de Ficheiros'; +$wb['monitor_diskusage_type_txt'] = 'Tipo'; +$wb['monitor_diskusage_size_txt'] = 'Tamanho'; +$wb['monitor_diskusage_used_txt'] = 'Usado'; +$wb['monitor_diskusage_available_txt'] = 'Disponível'; +$wb['monitor_diskusage_usage_txt'] = 'Uso %'; +$wb['monitor_diskusage_mounted_txt'] = 'Montado em'; +$wb['monitor_logs_mail_txt'] = 'Log de Correio'; +$wb['monitor_logs_mailwarn_txt'] = 'Log de Avisos'; +$wb['monitor_logs_mailerr_txt'] = 'Log de Erros'; +$wb['monitor_logs_messages_txt'] = 'Log de Sistema'; +$wb['monitor_logs_ispccron_txt'] = 'Log do ISPConfig Cron'; +$wb['monitor_logs_freshclam_txt'] = 'Logo do Freshclam'; +$wb['monitor_logs_clamav_txt'] = 'Log do Clamav '; +$wb['monitor_logs_ispc_txt'] = 'Log do ISPConfig'; +$wb['monitor_nomdadm_txt'] = 'mdadm não está instalado ou o servidor não suporta RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter não está instalado, então não existem logs a exibir'; +$wb['monitor_serverstate_server_txt'] = 'Servidor'; +$wb['monitor_serverstate_state_txt'] = 'Estado'; +$wb['monitor_serverstate_unknown_txt'] = 'desconhecido'; +$wb['monitor_serverstate_info_txt'] = 'informações'; +$wb['monitor_serverstate_warning_txt'] = 'aviso'; +$wb['monitor_serverstate_critical_txt'] = 'crítico'; +$wb['monitor_serverstate_error_txt'] = 'erro'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Mais informações..'; +$wb['monitor_serverstate_more_txt'] = 'Mais...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Definições de anti-virus ok ...'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Definições de anti-virus DESACTUALIZADAS!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Espaço em disco está ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'O espaço em disco está cheio'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'O disco está a ficar cheio'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'O disco está muito cheio'; +$wb['monitor_serverstate_hdfull_txt'] = 'O disco não tem mais espaço'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Disco Rígido: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'infomação'; +$wb['monitor_serverstate_listwarning_txt'] = 'aviso'; +$wb['monitor_serverstate_listcritical_txt'] = 'crítico'; +$wb['monitor_serverstate_listerror_txt'] = 'erro'; +$wb['monitor_serverstate_listunknown_txt'] = 'desconhecido'; +$wb['monitor_serverstate_loadok_txt'] = 'Servidor carregado ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'O servidor está com uma carga alta'; +$wb['monitor_serverstate_loadhigh_txt'] = 'O servidor está a ficar com uma carga alta'; +$wb['monitor_serverstate_loaghigher_txt'] = 'O servidor está com uma carga muito alta'; +$wb['monitor_serverstate_loadhighest_txt'] = 'O servidor está com uma carga extremamente alta'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Carga do Servidor: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'A fila de correio está OK'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'A fila de correio está a ficar com uma carga alta'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'A fila de correio está com uma carga alta'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'A fila de correio está com uma carga muito alta'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'A fila de correio está com uma carga extremamente alta'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Fila de Correio: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'O RAID está ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'O RAID está em modo RESYNC'; +$wb['monitor_serverstate_raidfault_txt'] = 'O RAID possui um disco com falhas. Troque-o o mais rápido possível!'; +$wb['monitor_serverstate_raiderror_txt'] = 'O RAID deixou de funcionar.'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Estado do RAID: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Todos os serviços necessários estão on-line'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Um ou mais serviços necessários estão off-line'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Serviços:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'O System-Log está O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Existem alguns avisos no System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Existem erros no System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'O sistema está actualizado.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Um ou mais componentes necessitam de actualização'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Actualização-Sistema:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Servidor Webr:'; +$wb['monitor_services_ftp_txt'] = 'Servidor FTP:'; +$wb['monitor_services_smtp_txt'] = 'Servidor SMTP:'; +$wb['monitor_services_pop_txt'] = 'Servidor POP:'; +$wb['monitor_services_imap_txt'] = 'Servidor IMAP:'; +$wb['monitor_services_mydns_txt'] = 'Servidor myDNS:'; +$wb['monitor_services_mysql_txt'] = 'Servidor MySql:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data de: '; +$wb['monitor_settings_datetimeformat_txt'] = 'd/m/Y H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Actualizar sequência:'; +$wb['monitor_settings_server_txt'] = 'Servidor'; +$wb['monitor_title_cpuinfo_txt'] = 'Informação da CPU'; +$wb['monitor_title_updatestate_txt'] = 'Actualizar Estado'; +$wb['monitor_title_mailq_txt'] = 'Fila de Correio'; +$wb['monitor_title_raidstate_txt'] = 'Estado do RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'Log do RKHunter'; +$wb['monitor_updates_nosupport_txt'] = 'Esta distribuição Linux não suporta este tipo de monitorização'; +$wb['monitor_title_fail2ban_txt'] = 'Log do Fail2Ban'; +?> + diff --git a/interface/ispconfig/interface/monitor/lib/lang/pt_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/pt_datalog_list.lng new file mode 100644 index 0000000..655e1e3 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pt_datalog_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Fila de Trabalho'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Servidor'; +$wb['dbtable_txt'] = 'Tabela BD'; +$wb['action_txt'] = 'Acção'; +$wb['status_txt'] = 'Situação'; +?> + diff --git a/interface/ispconfig/interface/monitor/lib/lang/pt_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/pt_syslog_list.lng new file mode 100644 index 0000000..f8ff04c --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/pt_syslog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Log do Painel'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Servidor'; +$wb['loglevel_txt'] = 'Nível do Log'; +$wb['message_txt'] = 'Mensagem'; +?> + diff --git a/interface/ispconfig/interface/monitor/lib/lang/ro.lng b/interface/ispconfig/interface/monitor/lib/lang/ro.lng new file mode 100644 index 0000000..a28cf09 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ro.lng @@ -0,0 +1,138 @@ +<?php +$wb["Server online since"] = "Server online since"; +$wb["Users online"] = "Users Online"; +$wb["System load 1 minute"] = "System load 1 minute"; +$wb["System load 5 minutes"] = "System load 5 minutes"; +$wb["System load 15 minutes"] = "System load 15 minutes"; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Disk Usage'; +$wb['Memory usage'] = 'Memory Usage'; +$wb['no_data_serverload_txt'] = 'No data about the server load available at the moment. Please check again later.'; +$wb['no_data_memusage_txt'] = 'No data about the memory usage available at the moment. Please check again later.'; +$wb['no_data_diskusage_txt'] = 'No data about the disk usage available at the moment. Please check again later.'; +$wb['no_data_cpuinfo_txt'] = 'No data about the CPU available at the moment. Please check again later.'; +$wb['no_data_services_txt'] = 'No data about the services available at the moment. Please check again later.'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['no_logdata_txt'] = 'No log data available at the moment. Please check again later.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Server to Monitor'; +$wb['Logfiles'] = 'Logfiles'; +$wb['Status of services'] = 'Status of Services'; +$wb['No Refresh'] = 'No Refresh'; +$wb["minutes"] = "minutes"; +$wb["Show Overview"] = "Show Overview"; +$wb["System State (All Servers)"] = "System State (All Servers)"; +$wb['Hardware-Information'] = 'Hardware Information'; +$wb['Show CPU info'] = 'Show CPU Info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID State'; +$wb['Show Server load'] = 'Show Server Load'; +$wb['Show Disk usage'] = 'Show Disk Usage'; +$wb['Show Memory usage'] = 'Show Memory Usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail Queue'; +$wb['Show Mail-Log'] = 'Show Mail Log'; +$wb['Show Mail warn-Log'] = 'Show Mail Warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail Error-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'ClamAV - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your virus protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your virus protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mail queue load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mail queue is under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mail queue is under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mail queue is under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mail queue is under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mail queue: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULTY disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services: ???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your system log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your system log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'System log: ???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your system is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more components needs an update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System Update: ???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh Sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update Status'; +$wb['monitor_title_mailq_txt'] = 'Mail Queue'; +$wb['monitor_title_raidstate_txt'] = 'RAID Status'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter Log'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ro_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ro_datalog_list.lng new file mode 100644 index 0000000..35c79ac --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ro_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Jobqueue'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'DB Table'; +$wb['action_txt'] = 'Actiune'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ro_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ro_syslog_list.lng new file mode 100644 index 0000000..572095d --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ro_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Log'; +$wb['tstamp_txt'] = 'Data'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Mesaj'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/ru.lng b/interface/ispconfig/interface/monitor/lib/lang/ru.lng new file mode 100644 index 0000000..a4eb131 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ru.lng @@ -0,0 +1,139 @@ +<?php +$wb['Server online since'] = 'Сервер работает '; +$wb['Users online'] = 'Пользователей онлайн'; +$wb['System load 1 minute'] = 'Загрузка системы за 1 минуту'; +$wb['System load 5 minutes'] = 'Загрузка системы за 5 минут'; +$wb['System load 15 minutes'] = 'Загрузка системы за 15 минут'; +$wb['Server Load'] = 'Загрузка сервера'; +$wb['Disk usage'] = 'Использование диска'; +$wb['Memory usage'] = 'Использование памяти'; +$wb['no_data_serverload_txt'] = ' Нет данных по загрузке сервера в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_memusage_txt'] = 'Нет данных по загрузке памяти в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_diskusage_txt'] = 'Нет данных по загрузке HDD в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_cpuinfo_txt'] = 'Нет данных по загрузке процессора в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_services_txt'] = 'Нет данных по доступным службам в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_logdata_txt'] = 'Нет информации в логах в данный момент. Пожалуйста, проверьте позже.'; +$wb['Monitoring'] = 'Мониторинг'; +$wb['Server to Monitor'] = 'Сервер для мониторинга'; +$wb['Logfiles'] = 'Лог-файлы'; +$wb['Status of services'] = 'Статус служб'; +$wb['No Refresh'] = 'Не обновлять'; +$wb['minutes'] = 'минут'; +$wb['Show Overview'] = 'Обзор'; +$wb['System State (All Servers)'] = 'Состояние (все сервера)'; +$wb['Hardware-Information'] = 'Информация о железе'; +$wb['Show CPU info'] = 'Показать информацию о CPU'; +$wb['Server State'] = 'Состояние сервера'; +$wb['Show Update State'] = 'Показать состояние обновлений'; +$wb['Show RAID state'] = 'Показать состояние RAID'; +$wb['Show Server load'] = 'Показать загрузку сервера'; +$wb['Show Disk usage'] = 'Показать использование диска'; +$wb['Show Memory usage'] = 'Показать использование памяти'; +$wb['Show Services'] = 'Показать службы'; +$wb['Show Mail-Queue'] = 'Показать очередь почты'; +$wb['Show Mail-Log'] = 'Показать логи почты'; +$wb['Show Mail warn-Log'] = 'Показать warn-log почты'; +$wb['Show Mail err-Log'] = 'Показать err-log почты'; +$wb['Show System-Log'] = 'Показать системный лог'; +$wb['Show Freshclam-Log'] = 'Показать Freshclam-лог'; +$wb['Show Clamav-Log'] = 'Показать Clamav-лог'; +$wb['Show ISPConfig-Log'] = 'Показать ISPConfig-лог'; +$wb['Show RKHunter-Log'] = 'Показать RKHunter-лог'; +$wb['Show Jobqueue'] = 'Показать очередь задач'; +$wb['Show ISPC Cron-Log'] = 'Показать ISPC Cron-лог'; +$wb['no_data_updates_txt'] = 'Нет информации по обновлениям на данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_raid_txt'] = 'Нет информации по RAID в данное время. Пожалуйста, проверьте позже.'; +$wb['no_data_rkhunter_txt'] = 'Нет информации по RKHunter в данный момент. Пожалуйста, проверьте позже.'; +$wb['no_data_mailq_txt'] = 'Нет информации по почтовой очереди на данный момент. Пожалуйста, проверьте позже.'; +$wb['monitor_general_serverstate_txt'] = 'Состояние сервера'; +$wb['monitor_general_systemstate_txt'] = 'Состояние системы'; +$wb['monitor_diskusage_filesystem_txt'] = 'Файловая система'; +$wb['monitor_diskusage_type_txt'] = 'Тип'; +$wb['monitor_diskusage_size_txt'] = 'Размер'; +$wb['monitor_diskusage_used_txt'] = 'Использовано'; +$wb['monitor_diskusage_available_txt'] = 'Доступно'; +$wb['monitor_diskusage_usage_txt'] = 'Исп.%'; +$wb['monitor_diskusage_mounted_txt'] = 'Монтирован'; +$wb['monitor_logs_mail_txt'] = 'Mail - логи'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - логи'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - логи'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - логи'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - логи'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - логи'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - логи'; +$wb['monitor_nomdadm_txt'] = 'mdadm не установлен в вашей системе, или ваш сервер не поддерживает RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter не установлен, поэтому нет логов'; +$wb['monitor_serverstate_server_txt'] = 'Сервер'; +$wb['monitor_serverstate_state_txt'] = 'Состояние'; +$wb['monitor_serverstate_unknown_txt'] = 'неизвестно'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warnings'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'errors'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Больше информации...'; +$wb['monitor_serverstate_more_txt'] = 'Дальше...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Защита от вирусов в порядке'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Антивирусные базы ПРОСРОЧЕНЫ!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Свободного места на HDD много, все ОК.'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Свободного места на жестком диске мало'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Жесткий диск практически заполнен'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Места на жестком диске почти нет'; +$wb['monitor_serverstate_hdfull_txt'] = 'Жесткий диск заполнен'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Жесткий диск: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warnings'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'errors'; +$wb['monitor_serverstate_listunknown_txt'] = 'неизвество'; +$wb['monitor_serverstate_loadok_txt'] = 'Загрузка сервера в порядке'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Средняя загрузка сервера'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Высокая загрузка сервера'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Очень высокая загрузка сервера'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Максимальная загрузка сервера'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Загрузка сервера: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Загрузка Mailq нормальная'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Загрузка Mailq средняя'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Загрузка Mailq выше средного'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Загрузка Mailq почти максимальная'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Загрузка Mailq максимальная'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID в порядке'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID в режиме RESYNC'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID имеет один сбойный диск. ЗАМЕНИТЬ как можно скорее!'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID не работоспособен'; +$wb['monitor_serverstate_raidunknown_txt'] = 'Состояние RAID: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Все необходимые службы запущены'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Некоторые необходимые службы не запущены'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Службы:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'System-Log в порядке '; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Есть предупреждения в System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Есть ошибки в System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Система не требует обновлений.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Некоторые компоненты требуют обновления'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Обновление системы:???'; +$wb['monitor_services_online_txt'] = 'Онлайн'; +$wb['monitor_services_offline_txt'] = 'Оффлайн'; +$wb['monitor_services_web_txt'] = 'Web-сервер:'; +$wb['monitor_services_ftp_txt'] = 'FTP-сервер:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-сервер:'; +$wb['monitor_services_pop_txt'] = 'POP3-сервер:'; +$wb['monitor_services_imap_txt'] = 'IMAP-сервер:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-сервер:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-сервер:'; +$wb['monitor_settings_datafromdate_txt'] = 'Данные из: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Обновление:'; +$wb['monitor_settings_server_txt'] = 'Сервер'; +$wb['monitor_title_cpuinfo_txt'] = 'Информация CPU'; +$wb['monitor_title_updatestate_txt'] = 'Состояние обновлений'; +$wb['monitor_title_mailq_txt'] = 'Почтовая очередь'; +$wb['monitor_title_raidstate_txt'] = 'Состояние RAID'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Ваш дистрибутив не поддерживает мониторинг'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> + diff --git a/interface/ispconfig/interface/monitor/lib/lang/ru_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ru_datalog_list.lng new file mode 100644 index 0000000..1ad3c88 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ru_datalog_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Задачи'; +$wb['tstamp_txt'] = 'Дата'; +$wb['server_id_txt'] = 'Сервер'; +$wb['dbtable_txt'] = 'Таблица БД'; +$wb['action_txt'] = 'Действие'; +$wb['status_txt'] = 'Статус'; +?> + diff --git a/interface/ispconfig/interface/monitor/lib/lang/ru_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/ru_syslog_list.lng new file mode 100644 index 0000000..e940f1a --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/ru_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig логи'; +$wb['tstamp_txt'] = 'Дата'; +$wb['server_id_txt'] = 'Сервер'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Сообщение'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/se.lng b/interface/ispconfig/interface/monitor/lib/lang/se.lng new file mode 100644 index 0000000..499f62c --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/se.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Server online since'; +$wb['Users online'] = 'Users Online'; +$wb['System load 1 minute'] = 'System load 1 minute'; +$wb['System load 5 minutes'] = 'System load 5 minutes'; +$wb['System load 15 minutes'] = 'System load 15 minutes'; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Disk usage'; +$wb['Memory usage'] = 'Memory usage'; +$wb['no_data_serverload_txt'] = 'No data about the server load available at the moment. Please check again later.'; +$wb['no_data_memusage_txt'] = 'No data about the memory usage available at the moment. Please check again later.'; +$wb['no_data_diskusage_txt'] = 'No data about the disk usage available at the moment. Please check again later.'; +$wb['no_data_cpuinfo_txt'] = 'No data about the CPU available at the moment. Please check again later.'; +$wb['no_data_services_txt'] = 'No data about the services available at the moment. Please check again later.'; +$wb['no_logdata_txt'] = 'No log data available at the moment. Please check again later.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Server to Monitor'; +$wb['Logfiles'] = 'Logfiles'; +$wb['Status of services'] = 'Status of services'; +$wb['No Refresh'] = 'No Refresh'; +$wb['minutes'] = 'minutes'; +$wb['Show Overview'] = 'Show Overview'; +$wb['System State (All Servers)'] = 'System State (All Servers)'; +$wb['Hardware-Information'] = 'Hardware-Information'; +$wb['Show CPU info'] = 'Show CPU info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID state'; +$wb['Show Server load'] = 'Show Server load'; +$wb['Show Disk usage'] = 'Show Disk usage'; +$wb['Show Memory usage'] = 'Show Memory usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail-Queue'; +$wb['Show Mail-Log'] = 'Show Mail-Log'; +$wb['Show Mail warn-Log'] = 'Show Mail warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail err-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/se_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/se_datalog_list.lng new file mode 100644 index 0000000..8ad63ff --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/se_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Jobqueue'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'DB Table'; +$wb['action_txt'] = 'Action'; +$wb['status_txt'] = 'Status'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/se_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/se_syslog_list.lng new file mode 100644 index 0000000..00da5ab --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/se_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Log'; +$wb['tstamp_txt'] = 'Date'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = 'Loglevel'; +$wb['message_txt'] = 'Message'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/sk.lng b/interface/ispconfig/interface/monitor/lib/lang/sk.lng new file mode 100644 index 0000000..4f84e6c --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/sk.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Server online since'; +$wb['Users online'] = 'Users Online'; +$wb['System load 1 minute'] = 'System load 1 minute'; +$wb['System load 5 minutes'] = 'System load 5 minutes'; +$wb['System load 15 minutes'] = 'System load 15 minutes'; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Disk usage'; +$wb['Memory usage'] = 'Memory usage'; +$wb['no_data_serverload_txt'] = 'No data about the server load available at the moment. Please check again later.'; +$wb['no_data_memusage_txt'] = 'No data about the memory usage available at the moment. Please check again later.'; +$wb['no_data_diskusage_txt'] = 'No data about the disk usage available at the moment. Please check again later.'; +$wb['no_data_cpuinfo_txt'] = 'No data about the CPU available at the moment. Please check again later.'; +$wb['no_data_services_txt'] = 'No data about the services available at the moment. Please check again later.'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['no_logdata_txt'] = 'No log data available at the moment. Please check again later.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Server to Monitor'; +$wb['Logfiles'] = 'Logfiles'; +$wb['Status of services'] = 'Status of services'; +$wb['No Refresh'] = 'No Refresh'; +$wb['minutes'] = 'minutes'; +$wb['Show Overview'] = 'Show Overview'; +$wb['System State (All Servers)'] = 'System State (All Servers)'; +$wb['Hardware-Information'] = 'Hardware-Information'; +$wb['Show CPU info'] = 'Show CPU info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID state'; +$wb['Show Server load'] = 'Show Server load'; +$wb['Show Disk usage'] = 'Show Disk usage'; +$wb['Show Memory usage'] = 'Show Memory usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail-Queue'; +$wb['Show Mail-Log'] = 'Show Mail-Log'; +$wb['Show Mail warn-Log'] = 'Show Mail warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail err-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/sk_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/sk_datalog_list.lng new file mode 100644 index 0000000..9899724 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/sk_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Front pr�ce'; +$wb['tstamp_txt'] = 'D�tum'; +$wb['server_id_txt'] = 'Server'; +$wb['dbtable_txt'] = 'DB Tabulky'; +$wb['action_txt'] = 'Akcia'; +$wb['status_txt'] = 'Stav'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/sk_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/sk_syslog_list.lng new file mode 100644 index 0000000..6a28f38 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/sk_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'Log'; +$wb['tstamp_txt'] = 'D�tum'; +$wb['server_id_txt'] = 'Server'; +$wb['loglevel_txt'] = '�rove? logovania'; +$wb['message_txt'] = 'Spr�va'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/tr.lng b/interface/ispconfig/interface/monitor/lib/lang/tr.lng new file mode 100644 index 0000000..3a375a2 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/tr.lng @@ -0,0 +1,138 @@ +<?php +$wb['Server online since'] = 'Sunucunun Online olduğu zaman'; +$wb['Users online'] = 'Online Kullanıcılar'; +$wb['System load 1 minute'] = '1 dakikalık sistem yükü'; +$wb['System load 5 minutes'] = '5 dakikalık sistem yükü'; +$wb['System load 15 minutes'] = '15 dakikalık sistem yükü'; +$wb['Server Load'] = 'Sunucu Yükü'; +$wb['Disk usage'] = 'Disk kullanımı'; +$wb['Memory usage'] = 'Hafıza kullanımı'; +$wb['no_data_serverload_txt'] = 'Şu anda sunucu yükü hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_memusage_txt'] = 'Şu anda hafıza kullanımı hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_diskusage_txt'] = 'Şu anda disk kullanımı hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_cpuinfo_txt'] = 'Şu anda işlemci hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_services_txt'] = 'Şu anda servisler hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_updates_txt'] = 'Şu anda güncellemeler hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_raid_txt'] = 'Şu anda RAID hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_rkhunter_txt'] = 'Şu anda RKHunter hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_data_mailq_txt'] = 'Şu anda Mail kuyruğu hakkında bir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['no_logdata_txt'] = 'Şu anda hiçbir kayıt bulunmamaktadır. Lütfen daha sonra tekrar deneyiniz.'; +$wb['Monitoring'] = 'İzleme'; +$wb['Server to Monitor'] = 'İzlenecek Sunucular'; +$wb['Logfiles'] = 'Kayıt dosyaları'; +$wb['Status of services'] = 'Servislerin durumu'; +$wb['No Refresh'] = 'Yenileme Yok'; +$wb['minutes'] = 'dakika'; +$wb['Show Overview'] = 'Genel İzleme'; +$wb['System State (All Servers)'] = 'Sistem Durumu (Bütün Sunucular)'; +$wb['Hardware-Information'] = 'Donanım Bilgisi'; +$wb['Show CPU info'] = 'CPU Bilgisi'; +$wb['Server State'] = 'Sunucu Durumu'; +$wb['Show Update State'] = 'Güncelleme Durumu'; +$wb['Show RAID state'] = 'RAID Durumu'; +$wb['Show Server load'] = 'Sistem yükü'; +$wb['Show Disk usage'] = 'Disk kullanımı'; +$wb['Show Memory usage'] = 'Hafıza kullanımı'; +$wb['Show Services'] = 'Servisler'; +$wb['Show Mail-Queue'] = 'Mail kuyruğu'; +$wb['Show Mail-Log'] = 'Mail kayıtları'; +$wb['Show Mail warn-Log'] = 'Mail uyarı kayıtları'; +$wb['Show Mail err-Log'] = 'Mail hata kayıtları'; +$wb['Show System-Log'] = 'Sistem kayıtları'; +$wb['Show ISPC Cron-Log'] = 'Zam. Görev kayıtları'; +$wb['Show Freshclam-Log'] = 'Freshclam kayıtları'; +$wb['Show Clamav-Log'] = 'Clamav kayıtları'; +$wb['Show ISPConfig-Log'] = 'ISPConfig kayıtları'; +$wb['Show RKHunter-Log'] = 'RKHunter kayıtları'; +$wb['Show Jobqueue'] = 'İş kuyruğu'; +$wb['monitor_general_serverstate_txt'] = 'Sunucu Durumu'; +$wb['monitor_general_systemstate_txt'] = 'Sistem Durumu'; +$wb['monitor_diskusage_filesystem_txt'] = 'Dosya sistemi'; +$wb['monitor_diskusage_type_txt'] = 'Çeşit'; +$wb['monitor_diskusage_size_txt'] = 'Boyut'; +$wb['monitor_diskusage_used_txt'] = 'Kullanımda'; +$wb['monitor_diskusage_available_txt'] = 'Kullanılabilir'; +$wb['monitor_diskusage_usage_txt'] = 'Kullanım%'; +$wb['monitor_diskusage_mounted_txt'] = 'Üzerinde'; +$wb['monitor_logs_mail_txt'] = 'Mail kayıtları'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail uyarı kayıtları'; +$wb['monitor_logs_mailerr_txt'] = 'Mail hata kayıtları'; +$wb['monitor_logs_messages_txt'] = 'Sistem mesaj kayıtları'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig görev kayıtları'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam kayıtları'; +$wb['monitor_logs_clamav_txt'] = 'Clamav kayıtları'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig kayıtları'; +$wb['monitor_nomdadm_txt'] = 'mdadm Sunucu üzerinde kurulu değil veya Sunucunuz RAID desteklemiyor'; +$wb['monitor_norkhunter_txt'] = 'RKHunter kurulu değil, bu yüzden herhangi bir kayıt dosyası bulunmamakta'; +$wb['monitor_serverstate_server_txt'] = 'Sunucu'; +$wb['monitor_serverstate_state_txt'] = 'Mevki'; +$wb['monitor_serverstate_unknown_txt'] = 'bilinmeyen'; +$wb['monitor_serverstate_info_txt'] = 'bilgi'; +$wb['monitor_serverstate_warning_txt'] = 'uyarı'; +$wb['monitor_serverstate_critical_txt'] = 'kritik'; +$wb['monitor_serverstate_error_txt'] = 'hata'; +$wb['monitor_serverstate_moreinfo_txt'] = 'Daha fazla bilgi...'; +$wb['monitor_serverstate_more_txt'] = 'Ayrıntı...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Virüs koruma sorunsuz'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Virüs koruma GÜNCEL DEĞİL!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'Harddisk durumu sorunsuz'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Harddisk dolacak'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Harddisk dolmaya yakın'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Harddisk çok dolu'; +$wb['monitor_serverstate_hdfull_txt'] = 'Harddiskte artık boş yer YOK!'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'tamam'; +$wb['monitor_serverstate_listinfo_txt'] = 'bilgi'; +$wb['monitor_serverstate_listwarning_txt'] = 'uyarı'; +$wb['monitor_serverstate_listcritical_txt'] = 'kritik'; +$wb['monitor_serverstate_listerror_txt'] = 'hata'; +$wb['monitor_serverstate_listunknown_txt'] = 'bilinmeyen'; +$wb['monitor_serverstate_loadok_txt'] = 'Sunucu yük durumu sorunsuz'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Sunucu aşırı yük altında'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Sunucu fazla yük altında'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Sunucu daha fazla yük altında'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Sunucu çok fazla yük altında'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Sunucu Yükü: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Mailq yük durumu sorunsuz'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Mailq aşırı yük altında'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Sunucu fazla yük altında'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Sunucu daha fazla yük altında'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Sunucu çok fazla yük altında'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'RAID sorunsuz'; +$wb['monitor_serverstate_raidresync_txt'] = 'RAID, RESYNC modunda'; +$wb['monitor_serverstate_raidfault_txt'] = 'RAID bir hatalı diske sahip. Mümkün olan en kısa zamanda değiştiriniz!'; +$wb['monitor_serverstate_raiderror_txt'] = 'RAID artık çalışmıyor'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID durumu: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'Tüm gerekli servisler çalışıyor'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'Bir veya daha fazla gerekli servis çalışmıyor'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Servisler:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'Sistem kayıtları sorunsuz'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'Sistem kayıtlarında birkaç uyarı var'; +$wb['monitor_serverstate_syslogerror_txt'] = 'Sistem kayıtlarında birkaç hata var'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Sistem güncel'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'Bir veya daha fazla bileşen güncellemeye gerek duyuyor'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'Sistem Güncelliği:???'; +$wb['monitor_services_online_txt'] = 'Çalışıyor'; +$wb['monitor_services_offline_txt'] = 'Çalışmıyor'; +$wb['monitor_services_web_txt'] = 'Web-Sunucu:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Sunucu:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Sunucu:'; +$wb['monitor_services_pop_txt'] = 'POP3-Sunucu:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Sunucu:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Sunucu:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Sunucu:'; +$wb['monitor_settings_datafromdate_txt'] = 'Verilerin tarihi: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Yenileme sıklığı:'; +$wb['monitor_settings_server_txt'] = 'Sunucu'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Bilgisi'; +$wb['monitor_title_updatestate_txt'] = 'Güncellik Durumu'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID Durumu'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter Kaydı'; +$wb['monitor_updates_nosupport_txt'] = 'Dağıtımınız, bu izlemeyi desteklemiyor'; +$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/tr_datalog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/tr_datalog_list.lng new file mode 100644 index 0000000..8752c6b --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/tr_datalog_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'İş Kuyruğu'; +$wb['tstamp_txt'] = 'Tarih'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['dbtable_txt'] = 'DB Tablo'; +$wb['action_txt'] = 'Eylem'; +$wb['status_txt'] = 'Durum'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/lang/tr_syslog_list.lng b/interface/ispconfig/interface/monitor/lib/lang/tr_syslog_list.lng new file mode 100644 index 0000000..32346de --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/lang/tr_syslog_list.lng @@ -0,0 +1,7 @@ +<?php +$wb['list_head_txt'] = 'ISPConfig Kayıtları'; +$wb['tstamp_txt'] = 'Tarih'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['loglevel_txt'] = 'Kayıt düzeyi'; +$wb['message_txt'] = 'Mesaj'; +?> diff --git a/interface/ispconfig/interface/monitor/lib/module.conf.php b/interface/ispconfig/interface/monitor/lib/module.conf.php new file mode 100644 index 0000000..5161ba8 --- /dev/null +++ b/interface/ispconfig/interface/monitor/lib/module.conf.php @@ -0,0 +1,160 @@ +<?php + +/* + Config of the Module + */ +$module["name"] = "monitor"; +$module["title"] = "top_menu_monitor"; +$module["template"] = "module.tpl.htm"; +$module["tab_width"] = ''; +$module["startpage"] = "monitor/show_sys_state.php?state=system"; + +unset($items); +$items[] = array( 'title' => "Show Overview", + 'target' => 'content', + 'link' => 'monitor/show_sys_state.php?state=system'); + +$items[] = array( 'title' => "Show System-Log", + 'target' => 'content', + 'link' => 'monitor/log_list.php'); + +$items[] = array( 'title' => 'Show Jobqueue', + 'target' => 'content', + 'link' => 'monitor/datalog_list.php'); + +$module["nav"][] = array( 'title' => 'System State (All Servers)', + 'open' => 1, + 'items' => $items); + + +/* + We need all the available servers on the left navigation. + So fetch them from the database and add then to the navigation as dropdown-list +*/ + +$servers = $app->db->queryAllRecords("SELECT server_id, server_name FROM server order by server_name"); + +$dropDown = "<select id='server_id' onchange=\"loadContent('monitor/show_sys_state.php?state=server&server=' + document.getElementById('server_id').value);\">"; +foreach ($servers as $server) +{ + $dropDown .= "<option value='" . $server['server_id'] . "|" . $server['server_name'] . "'>" . $server['server_name'] . "</option>"; +} +$dropDown .= "</select>"; + +/* + Now add them as dropdown to the navigation + */ +unset($items); +$items[] = array( 'title' => $dropDown, + 'target' => '', // no action! + 'link' => ''); // no action! + +$module["nav"][] = array( 'title' => 'Server to Monitor', + 'open' => 1, + 'items' => $items); + +/* + The first Server at the list is the server first selected + */ +$_SESSION['monitor']['server_id'] = $servers[0]['server_id']; +$_SESSION['monitor']['server_name'] = $servers[0]['server_name']; + +/* + * Clear and set the Navigation-Items + */ +unset($items); + +$items[] = array( 'title' => "Show CPU info", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=cpu_info'); + +$module["nav"][] = array( 'title' => 'Hardware-Information', + 'open' => 1, + 'items' => $items); + +/* + * Clear and set the Navigation-Items + */ +unset($items); +$items[] = array( 'title' => "Show Overview", + 'target' => 'content', + 'link' => 'monitor/show_sys_state.php?state=server'); + +$items[] = array( 'title' => "Show Update State", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=system_update'); + +$items[] = array( 'title' => "Show RAID state", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=raid_state'); + +$items[] = array( 'title' => "Show Server load", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=server_load'); + +$items[] = array( 'title' => "Show Disk usage", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=disk_usage'); + +$items[] = array( 'title' => "Show Memory usage", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=mem_usage'); + +$items[] = array( 'title' => "Show Services", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=services'); + + +$module["nav"][] = array( 'title' => 'Server State', + 'open' => 1, + 'items' => $items); + +/* + * Clear and set the Navigation-Items + */ +unset($items); + +$items[] = array( 'title' => "Show Mail-Queue", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=mailq'); + +$items[] = array( 'title' => "Show Mail-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_mail'); + +$items[] = array( 'title' => "Show Mail warn-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_mail_warn'); + +$items[] = array( 'title' => "Show Mail err-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_mail_err'); + +$items[] = array( 'title' => "Show System-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_messages'); + +$items[] = array( 'title' => "Show ISPC Cron-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_ispc_cron'); + +$items[] = array( 'title' => "Show Freshclam-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_freshclam'); + +$items[] = array( 'title' => "Show Clamav-Log", + 'target' => 'content', + 'link' => 'monitor/show_log.php?log=log_clamav'); + +$items[] = array( 'title' => "Show RKHunter-Log", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=rkhunter'); + +$items[] = array( 'title' => "Show fail2ban-Log", + 'target' => 'content', + 'link' => 'monitor/show_data.php?type=fail2ban'); + +$module["nav"][] = array( 'title' => 'Logfiles', + 'open' => 1, + 'items' => $items); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/list/datalog.list.php b/interface/ispconfig/interface/monitor/list/datalog.list.php new file mode 100644 index 0000000..330e603 --- /dev/null +++ b/interface/ispconfig/interface/monitor/list/datalog.list.php @@ -0,0 +1,91 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of list +$liste['name'] = 'datalog'; + +//* Database table +$liste['table'] = 'sys_datalog'; + +//* Primary index column +$liste['table_idx'] = 'datalog_id'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script file for listing +$liste['file'] = 'datalog_list.php'; + +//* Script file to edit +$liste['edit_file'] = 'datalog_list.php'; + +//* Script file to delete +$liste['delete_file'] = 'datalog_del.php'; + +//* Paging template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'no'; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "tstamp", + 'datatype' => "DATETIME", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + + +$liste['item'][] = array( 'field' => 'server_id', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => '', + 'value' => ''); + +$liste["item"][] = array( 'field' => "action", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('i' => "Insert",'u' => "Update",'d' => "Delete")); + + +$liste["item"][] = array( 'field' => "dbtable", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/list/log.list.php b/interface/ispconfig/interface/monitor/list/log.list.php new file mode 100644 index 0000000..12dad4a --- /dev/null +++ b/interface/ispconfig/interface/monitor/list/log.list.php @@ -0,0 +1,90 @@ +<?php +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + +//* Name of list +$liste['name'] = 'syslog'; + +//* Database table +$liste['table'] = 'sys_log'; + +//* Primary index column +$liste['table_idx'] = 'syslog_id'; + +//* Search Field Prefix +$liste['search_prefix'] = 'search_'; + +//* Records per page +$liste['records_per_page'] = 15; + +//* Script file for listing +$liste['file'] = 'log_list.php'; + +//* Script file to edit +$liste['edit_file'] = 'log_list.php'; + +//* Script file to delete +$liste['delete_file'] = 'log_del.php'; + +//* Paging template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +//* Enable auth +$liste['auth'] = 'no'; + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "tstamp", + 'datatype' => "DATETIME", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + + +$liste['item'][] = array( 'field' => 'server_id', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => '', + 'value' => ''); + +$liste["item"][] = array( 'field' => "loglevel", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('0' => "Debug",'1' => "Warning",'2' => "Error")); + + +$liste["item"][] = array( 'field' => "message", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/log_del.php b/interface/ispconfig/interface/monitor/log_del.php new file mode 100644 index 0000000..1c33a21 --- /dev/null +++ b/interface/ispconfig/interface/monitor/log_del.php @@ -0,0 +1,44 @@ +<?php + +/* +Copyright (c) 2008 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + +$syslog_id = intval($_GET['id']); +$app->db->query("UPDATE sys_log SET loglevel = 0 WHERE syslog_id = '$syslog_id'"); + +header('Location: log_list.php'); +exit; + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/log_list.php b/interface/ispconfig/interface/monitor/log_list.php new file mode 100644 index 0000000..c0587c0 --- /dev/null +++ b/interface/ispconfig/interface/monitor/log_list.php @@ -0,0 +1,55 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/log.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + +$app->uses('listform_actions'); +//$app->listform_actions->SQLExtWhere = "wb = 'W'"; + +$app->listform_actions->SQLOrderBy = "ORDER BY tstamp DESC, syslog_id DESC"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/monitor/show_data.php b/interface/ispconfig/interface/monitor/show_data.php new file mode 100644 index 0000000..cd3f00d --- /dev/null +++ b/interface/ispconfig/interface/monitor/show_data.php @@ -0,0 +1,139 @@ +<?php + +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + + +/* Get the dataType to show */ +$dataType = $_GET["type"]; + +/* Get some translations */ +$monTransDate = $app->lng("monitor_settings_datafromdate_txt"); +$monTransSrv = $app->lng("monitor_settings_server_txt"); + + +$output = ''; + +switch($dataType) { + case 'server_load': + $template = 'templates/show_data.htm'; + $output .= showServerLoad(); + $time = getDataTime('server_load'); + $title = $app->lng("Server Load").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'disk_usage': + $template = 'templates/show_data.htm'; + $output .= showDiskUsage(); + $time = getDataTime('disk_usage'); + $title = $app->lng("Disk usage").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'mem_usage': + $template = 'templates/show_data.htm'; + $output .= showMemUsage(); + $time = getDataTime('mem_usage'); + $title = $app->lng("Memory usage").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'cpu_info': + $template = 'templates/show_data.htm'; + $output .= showCpuInfo(); + $time = getDataTime('cpu_info'); + $title = $app->lng("monitor_title_cpuinfo_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'services': + $template = 'templates/show_data.htm'; + $output .= showServices(); + $time = getDataTime('services'); + $title = $app->lng("Status of services").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'system_update': + $template = 'templates/show_data.htm'; + $output .= showSystemUpdate(); + $time = getDataTime('system_update'); + $title = $app->lng("monitor_title_updatestate_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'mailq': + $template = 'templates/show_data.htm'; + $output .= showMailq(); + $time = getDataTime('mailq'); + $title = $app->lng("monitor_title_mailq_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'raid_state': + $template = 'templates/show_data.htm'; + $output .= showRaidState(); + $time = getDataTime('raid_state'); + $title = $app->lng("monitor_title_raidstate_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'rkhunter': + $template = 'templates/show_data.htm'; + $output .= showRKHunter(); + $time = getDataTime('rkhunter'); + $title = $app->lng("monitor_title_rkhunterlog_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'fail2ban': + $template = 'templates/show_data.htm'; + $output .= showFail2ban(); + $time = getDataTime('log_fail2ban'); + $title = $app->lng("monitor_title_fail2ban_txt") . ' (' . $monTransSrv . ' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + default: + $template = ''; + break; +} + + +// Loading the template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl', $template); + +$app->tpl->setVar("output", $output); +$app->tpl->setVar("list_head_txt", $title); +$app->tpl->setVar("list_desc_txt", $description); +$app->tpl->setVar("time", $time); +$app->tpl->setVar("monTransDate", $monTransDate); + +$app->tpl_defaults(); +$app->tpl->pparse(); +?> diff --git a/interface/ispconfig/interface/monitor/show_log.php b/interface/ispconfig/interface/monitor/show_log.php new file mode 100644 index 0000000..d64eedc --- /dev/null +++ b/interface/ispconfig/interface/monitor/show_log.php @@ -0,0 +1,143 @@ +<?php + +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('monitor'); + +// Loading the template +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/show_log.htm'); + +// Importing the GET values +$refresh = (isset($_GET["refresh"]))?intval($_GET["refresh"]):0; +$logParam = $_GET["log"]; + +/* Get some translations */ +$monTransDate = $app->lng("monitor_settings_datafromdate_txt"); +$monTransSrv = $app->lng("monitor_settings_server_txt"); +$monTransRefreshsq = $app->lng("monitor_settings_refreshsq_txt"); + +/* + Setting the db-type and the caption + */ +switch($logParam) { + case 'log_mail': + $logId = 'log_mail'; + $title = $app->lng("monitor_logs_mail_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_mail_warn': + $logId = 'log_mail_warn'; + $title = $app->lng("monitor_logs_mailwarn_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_mail_err': + $logId = 'log_mail_err'; + $title = $app->lng("monitor_logs_mailerr_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_messages': + $logId = 'log_messages'; + $title = $app->lng("monitor_logs_messages_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_ispc_cron': + $logId = 'log_ispc_cron'; + $title = $app->lng("monitor_logs_ispccron_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_freshclam': + $logId = 'log_freshclam'; + $title = $app->lng("monitor_logs_freshclam_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_clamav': + $logId = 'log_clamav'; + $title = $app->lng("monitor_logs_clamav_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + case 'log_ispconfig': + $logId = 'log_ispconfig'; + $title = $app->lng("monitor_logs_ispc_txt").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; + $description = ''; + break; + default: + $logId = '???'; + $title = '???'; + $description = ''; + break; +} + + +/* + Creating the array with the refresh intervals + Attention: the core-moule ist triggered every 5 minutes, + so reload every 2 minutes is impossible! +*/ +$refresh_values = array('0' => '- '.$app->lng("No Refresh").' -','5' => '5 '.$app->lng("minutes"),'10' => '10 '.$app->lng("minutes"),'15' => '15 '.$app->lng("minutes"),'30' => '30 '.$app->lng("minutes"),'60' => '60 '.$app->lng("minutes")); +$tmp = ''; +foreach($refresh_values as $key => $val) { + if($key == $refresh) { + $tmp .= "<option value='$key' SELECTED>$val</option>"; + } else { + $tmp .= "<option value='$key'>$val</option>"; + } +} +$app->tpl->setVar("refresh",$tmp); + + +/* fetch the Data from the DB */ +$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = '" . $app->db->quote($logId) . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + +if(isset($record['data'])) { + $data = unserialize($record['data']); + + $logData = nl2br($data); + + $app->tpl->setVar("log_data", $logData); +} else { + $app->tpl->setVar("log_data", $app->lng("no_logdata_txt")); +} + +$app->tpl->setVar("title", $title); +$app->tpl->setVar("log_id",$logId); +$app->tpl->setVar("description", $description); +$app->tpl->setVar("time", getDataTime($logId)); +$app->tpl->setVar("monTransDate", $monTransDate); +$app->tpl->setVar("monTransRefreshsq", $monTransRefreshsq); + +$app->tpl_defaults(); +$app->tpl->pparse(); +?> diff --git a/interface/ispconfig/interface/monitor/show_sys_state.php b/interface/ispconfig/interface/monitor/show_sys_state.php new file mode 100644 index 0000000..75353ff --- /dev/null +++ b/interface/ispconfig/interface/monitor/show_sys_state.php @@ -0,0 +1,508 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +/* Check permissions for module */ +$app->auth->check_module_permissions('monitor'); + +/* Change the Server if needed */ +if (isset($_GET['server'])){ + $server = explode('|', $_GET['server'], 2); + $_SESSION['monitor']['server_id'] = $server[0]; + $_SESSION['monitor']['server_name'] = $server[1]; +} + +/* + * Loading the template + */ +$app->uses('tpl'); +$app->tpl->newTemplate("form.tpl.htm"); +$app->tpl->setInclude('content_tpl','templates/show_sys_state.htm'); + +/* Get some translations */ +$monTransRefreshsq = $app->lng("monitor_settings_refreshsq_txt"); + +/* + * setting the content + */ +if ($_GET['state'] == 'server') +{ + $output = _getServerState($_SESSION['monitor']['server_id'], $_SESSION['monitor']['server_name'], true); + $title = $app->lng("monitor_general_serverstate_txt"); + $stateType = 'server'; +} +else +{ + $output = _getSysState(); + $title = $app->lng("monitor_general_systemstate_txt"); + $stateType = 'system'; +} + +$app->tpl->setVar("state_data",$output); +$app->tpl->setVar("state_type",$stateType); +$app->tpl->setVar("list_head_txt",$title); +$app->tpl->setVar("list_desc_txt",$description); +$app->tpl->setVar("monTransRefreshsq", $monTransRefreshsq); + +/* + Creating the array with the refresh intervals + Attention: the core-module ist triggered every 5 minutes, + so reload every 2 minutes is impossible! +*/ +$refresh = (isset($_GET["refresh"]))?intval($_GET["refresh"]):0; + +$refresh_values = array('0' => '- '.$app->lng("No Refresh").' -','5' => '5 '.$app->lng("minutes"),'10' => '10 '.$app->lng("minutes"),'15' => '15 '.$app->lng("minutes"),'30' => '30 '.$app->lng("minutes"),'60' => '60 '.$app->lng("minutes")); +$tmp = ''; +foreach($refresh_values as $key => $val) { + if($key == $refresh) { + $tmp .= "<option value='$key' SELECTED>$val</option>"; + } else { + $tmp .= "<option value='$key'>$val</option>"; + } +} +$app->tpl->setVar("refresh",$tmp); + +/* + * doing the output + */ +$app->tpl_defaults(); +$app->tpl->pparse(); + + +function _getSysState(){ + global $app; + + /* + * Get all Servers and calculate the state of them + */ + $html = ''; + + $servers = $app->db->queryAllRecords("SELECT server_id, server_name FROM server order by server_name"); + foreach ($servers as $server) + { + $html .= _getServerState($server['server_id'], $server['server_name'], false); + } + + return $html; +} + +/* + * Calculates the State of ONE Server + */ +function _getServerState($serverId, $serverName, $showAll) +{ + global $app; + + /* The State of the server */ + $serverState = 'ok'; + + /** The messages */ + $messages = array(); + + /** The Result of the function */ + $res = ''; + + /* + * get all monitoring-data from the server als process then + * (count them and set the server-state) + */ + $records = $app->db->queryAllRecords("SELECT DISTINCT type FROM monitor_data WHERE server_id = " . $serverId); + foreach($records as $record){ + _processDbState($record['type'], $serverId, &$serverState, &$messages); + } + + $res .= '<div class="systemmonitor-state state-'.$serverState.'">'; + $res .= '<div class="systemmonitor-device device-server">'; + $res .= '<div class="systemmonitor-content icons32 ico-'.$serverState.'">'; + $res .= $app->lng("monitor_serverstate_server_txt") . ': ' . $serverName . '<br />'; + $res .= $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . '<br />'; + // $res .= sizeof($messages[$app->lng("monitor_serverstate_listok_txt")]) . ' ok | '; + $res .= sizeof($messages[$app->lng("monitor_serverstate_listunknown_txt")]) . ' ' . $app->lng("monitor_serverstate_unknown_txt") . ' | '; + $res .= sizeof($messages[$app->lng("monitor_serverstate_listinfo_txt")]) . ' ' . $app->lng("monitor_serverstate_info_txt") . ' | '; + $res .= sizeof($messages[$app->lng("monitor_serverstate_listwarning_txt")]) . ' ' . $app->lng("monitor_serverstate_warning_txt") . ' | '; + $res .= sizeof($messages[$app->lng("monitor_serverstate_listcritical_txt")]) . ' ' . $app->lng("monitor_serverstate_critical_txt") . ' | '; + $res .= sizeof($messages[$app->lng("monitor_serverstate_listerror_txt")]) . ' ' . $app->lng("monitor_serverstate_error_txt") . '<br />'; + $res .= '<br />'; + + if ($showAll){ + /* + * if we have to show all, then we do it... + */ + + /* + * Show all messages + */ + foreach($messages as $key => $state){ + /* + * There is no need, to show the "ok" - messages + */ +// if ($key != 'ok') + { + $res .= $key . ':<br />'; + foreach ($state as $msg) + { + $res .= $msg . '<br />'; + } + $res .= '<br />'; + } + } + } + else + { + /* + * if not, we only show a link to the server... + */ + $res .= "<a href='#' onclick='loadContent(\"monitor/show_sys_state.php?state=server&server=" . $serverId . '|' . $serverName . "\");'>" . $app->lng("monitor_serverstate_moreinfo_txt") . "</a>"; + } + $res .= '</div>'; + $res .= '</div>'; + $res .= '</div>'; + + if ($showAll){ + /* + * Show some state-info + */ + //$res .= showServerLoad(); + //$res .= ' '. showDiskUsage(); + //$res .= ' '.showServices(); + } + + + return $res; +} + +/* + * gets the state from the db and process it + */ +function _processDbState($type, $serverId, $serverState, $messages) +{ + global $app; + + /* + * Always the NEWEST record of each monitoring is responsible for the + * state + */ + // get the State from the DB + $record = $app->db->queryOneRecord("SELECT state FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $serverId . " order by created desc"); + // change the new state to the highest state + $serverState = _setState($serverState, $record['state']); + + /* + * The message depands on the type and the state + */ + if ($type == 'cpu_info'){ + /* this type has no state */ + } + if ($type == 'disk_usage'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_hdok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'info': + $messages[$app->lng("monitor_serverstate_listinfo_txt")][] = $app->lng("monitor_serverstate_hdgoingfull_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_hdnearlyfull_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'critical': + $messages[$app->lng("monitor_serverstate_listcritical_txt")][] = $app->lng("monitor_serverstate_hdveryfull_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_hdfull_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_hdunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=disk_usage\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + if ($type == 'mem_usage'){ + /* this type has no state */ + } + if ($type == 'server_load'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_loadok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'info': + $messages[$app->lng("monitor_serverstate_listinfo_txt")][] = $app->lng("monitor_serverstate_loadheavy_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_loadhigh_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'critical': + $messages[$app->lng("monitor_serverstate_listcritical_txt")][] = $app->lng("monitor_serverstate_loadhigher_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_loadhighest_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_loadunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=server_load\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + if ($type == 'services'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_servicesonline_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=services\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_servicesoffline_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=services\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_servicesunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=services\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + if ($type == 'system_update'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_updatesok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=system_update\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_updatesneeded_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=system_update\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'no_state': + /* + * not debian and not Ubuntu, so the state could not be monitored... + */ + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_updatesunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=system_update\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + + if ($type == 'raid_state'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_raidok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=raid_state\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'info': + $messages[$app->lng("monitor_serverstate_listinfo_txt")][] = $app->lng("monitor_serverstate_raidresync_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=raid_state\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'critical': + $messages[$app->lng("monitor_serverstate_listcritical_txt")][] = $app->lng("monitor_serverstate_raidfault_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=raid_state\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_raiderror_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=raid_state\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'no_state': + /* + * mdadm is not installed or the RAID is not supported... + */ + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_raidunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=raid_state\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + + + if ($type == 'mailq'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_mailqok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'info': + $messages[$app->lng("monitor_serverstate_listinfo_txt")][] = $app->lng("monitor_serverstate_mailqheavy_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_mailqhigh_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'critical': + $messages[$app->lng("monitor_serverstate_listcritical_txt")][] = $app->lng("monitor_serverstate_mailqhigher_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_mailqhighest_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_mailqunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=mailq\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + + if ($type == 'sys_log'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_syslogok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/log_list.php\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_syslogwarning_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/log_list.php\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'error': + $messages[$app->lng("monitor_serverstate_listerror_txt")][] = $app->lng("monitor_serverstate_syslogerror_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/log_list.php\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_syslogunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/log_list.php\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + + if ($type == 'log_clamav'){ + /* this type has no state */ + } + + if ($type == 'log_freshclam'){ + switch ($record['state']) { + case 'ok': + $messages[$app->lng("monitor_serverstate_listok_txt")][] = $app->lng("monitor_serverstate_fclamok_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + case 'warning': + $messages[$app->lng("monitor_serverstate_listwarning_txt")][] = $app->lng("monitor_serverstate_fclamoutdated_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + default: + $messages[$app->lng("monitor_serverstate_listunknown_txt")][] = $app->lng("monitor_serverstate_fclamunknown_txt") . ' ' . + "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[" . $app->lng("monitor_serverstate_more_txt") . "]</a>"; + break; + } + } + + if ($type == 'log_ispconfig'){ + /* this type has no state */ + } + if ($type == 'log_mail'){ + /* this type has no state */ + } + if ($type == 'log_mail_err'){ + /* this type has no state */ + } + if ($type == 'log_mail_warn'){ + /* this type has no state */ + } + if ($type == 'log_messages'){ + /* this type has no state */ + } + if ($type == 'rkhunter'){ + /* this type has no state */ + } +} + + /* + * Set the state to the given level (or higher, but not lesser). + * * If the actual state is critical and you call the method with ok, + * then the state is critical. + * + * * If the actual state is critical and you call the method with error, + * then the state is error. + */ +function _setState($oldState, $newState) +{ + /* + * Calculate the weight of the old state + */ + switch ($oldState) { + case 'no_state': $oldInt = 0; + break; + case 'ok': $oldInt = 1; + break; + case 'unknown': $oldInt = 2; + break; + case 'info': $oldInt = 3; + break; + case 'warning': $oldInt = 4; + break; + case 'critical': $oldInt = 5; + break; + case 'error': $oldInt = 6; + break; + } + /* + * Calculate the weight of the new state + */ + switch ($newState) { + case 'no_state': $newInt = 0 ; + break; + case 'ok': $newInt = 1 ; + break; + case 'unknown': $newInt = 2 ; + break; + case 'info': $newInt = 3 ; + break; + case 'warning': $newInt = 4 ; + break; + case 'critical': $newInt = 5 ; + break; + case 'error': $newInt = 6 ; + break; + } + + /* + * Set to the higher level + */ + if ($newInt > $oldInt){ + return $newState; + } + else + { + return $oldState; + } +} + +?> diff --git a/interface/ispconfig/interface/monitor/templates/datalog_list.htm b/interface/ispconfig/interface/monitor/templates/datalog_list.htm new file mode 100644 index 0000000..93eede0 --- /dev/null +++ b/interface/ispconfig/interface/monitor/templates/datalog_list.htm @@ -0,0 +1,49 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_datalog"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_tstamp" scope="col"><tmpl_var name="tstamp_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_action" scope="col"><tmpl_var name="action_txt"></th> + <th class="tbl_col_dbtable" scope="col"><tmpl_var name="dbtable_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_tstamp"> </td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','monitor/datalog_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_action"><select name="search_action" onChange="submitForm('pageForm','monitor/datalog_list.php');">{tmpl_var name='search_action'}</select></td> + <td class="tbl_col_dbtable"><input type="text" name="search_dbtable" value="{tmpl_var name='search_dbtable'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','monitor/datalog_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_tstamp">{tmpl_var name="tstamp"}</td> + <td class="tbl_col_server_id">{tmpl_var name="server_id"}</td> + <td class="tbl_col_action">{tmpl_var name="action"}</td> + <td class="tbl_col_dbtable">{tmpl_var name="dbtable"}</td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <!--<a class="icons16 icoDelete" href="javascript: del_record('monitor/datalog_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> --> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/monitor/templates/show_data.htm b/interface/ispconfig/interface/monitor/templates/show_data.htm new file mode 100644 index 0000000..f83440f --- /dev/null +++ b/interface/ispconfig/interface/monitor/templates/show_data.htm @@ -0,0 +1,12 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_system"> + + <div class="pnl_formarea"> + <fieldset><legend><tmpl_var name="monTransDate"><tmpl_var name="time"></legend> + <div class="systemmonitor"><tmpl_var name="output"></div> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/monitor/templates/show_log.htm b/interface/ispconfig/interface/monitor/templates/show_log.htm new file mode 100644 index 0000000..b607727 --- /dev/null +++ b/interface/ispconfig/interface/monitor/templates/show_log.htm @@ -0,0 +1,25 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_logview"> + + <div class="pnl_toolsarea"> + <fieldset class="inlineLabels"><legend><tmpl_var name="monTransRefreshsq"></legend> + <div class="buttons"> + <div class="ctrlHolder"> + <label for="refreshinterval">{tmpl_var name='refreshinterval_txt'}</label> + <select name="refreshinterval" id="refreshinterval" class="selectInput withicons" onChange="loadContentRefresh('monitor/show_log.php?log={tmpl_var name="log_id"}')"> + {tmpl_var name='refresh'} + </select> + </div> + </div> + </fieldset> + </div> + + <div class="pnl_formarea"> + <fieldset><legend><tmpl_var name="monTransDate"><tmpl_var name="time"></legend> + <div class="codeview"><tmpl_var name="log_data"></div> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/monitor/templates/show_sys_state.htm b/interface/ispconfig/interface/monitor/templates/show_sys_state.htm new file mode 100644 index 0000000..904361c --- /dev/null +++ b/interface/ispconfig/interface/monitor/templates/show_sys_state.htm @@ -0,0 +1,25 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_sys_state"> + + <div class="pnl_toolsarea"> + <fieldset class="inlineLabels"><legend><tmpl_var name="monTransRefreshsq"></legend> + <div class="buttons"> + <div class="ctrlHolder"> + <label for="refreshinterval">{tmpl_var name='refreshinterval_txt'}</label> + <select name="refreshinterval" id="refreshinterval" class="selectInput withicons" onChange="loadContentRefresh('monitor/show_sys_state.php?state={tmpl_var name="state_type"}')"> + {tmpl_var name='refresh'} + </select> + </div> + </div> + </fieldset> + </div> + + <div class="pnl_formarea"> + <fieldset><legend></legend> + <div class="stateview"><tmpl_var name="state_data"></div> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/monitor/templates/syslog_list.htm b/interface/ispconfig/interface/monitor/templates/syslog_list.htm new file mode 100644 index 0000000..0bbb03c --- /dev/null +++ b/interface/ispconfig/interface/monitor/templates/syslog_list.htm @@ -0,0 +1,56 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_syslog"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_tstamp" scope="col"><tmpl_var name="tstamp_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_loglevel" scope="col"><tmpl_var name="loglevel_txt"></th> + <th class="tbl_col_message" scope="col"><tmpl_var name="message_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_tstamp"> </td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','monitor/log_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_loglevel"><select name="search_loglevel" onChange="submitForm('pageForm','monitor/log_list.php');">{tmpl_var name='search_loglevel'}</select></td> + <td class="tbl_col_message"><input type="text" name="search_message" value="{tmpl_var name='search_message'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','monitor/log_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_tstamp">{tmpl_var name="tstamp"}</td> + <td class="tbl_col_server_id">{tmpl_var name="server_id"}</td> + <td class="tbl_col_loglevel">{tmpl_var name="loglevel"}</td> + <td class="tbl_col_message">{tmpl_var name="message"}</td> + <td class="tbl_col_buttons"> + <tmpl_if name="loglevel" op="==" value="Error"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('monitor/log_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </tmpl_if> + <tmpl_if name="loglevel" op="==" value="Warning"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('monitor/log_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </tmpl_if> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/monitor/tools.inc.php b/interface/ispconfig/interface/monitor/tools.inc.php new file mode 100644 index 0000000..0001bd9 --- /dev/null +++ b/interface/ispconfig/interface/monitor/tools.inc.php @@ -0,0 +1,456 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +function showServerLoad(){ + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'server_load' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + + /* + Format the data + */ + if (strlen($data['up_minutes']) == "1") $data['up_minutes'] = "0".$data['up_minutes']; + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'"> + <table> + <tr> + <td>' . $app->lng("Server online since").':</td> + <td>' . $data['up_days'] . ' days, ' . $data['up_hours'] . ':' . $data['up_minutes'] . ' hours</center></td> + </tr> + <tr> + <td>' . $app->lng("Users online").':</td> + <td>' . $data['user_online'] . '</td> + </tr>' . + '<tr> + <td>' . $app->lng("System load 1 minute") . ':</td> + <td>' . $data['load_1'] . '</td> + </tr> + <tr> + <td>' . $app->lng("System load 5 minutes") . ':</td> + <td>' . $data['load_5'] . '</td> + </tr> + <tr> + <td>'.$app->lng("System load 15 minutes").':</td> + <td>' . $data['load_15'] . '</td> + </tr> + </table> + </div> + </div>'; + } else { + $html = '<p>'.$app->lng("no_data_serverload_txt").'</p>'; + } + + return $html; +} + +function showDiskUsage () { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'disk_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + + /* + Format the data + */ + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'"> + <table> + <tr> + <td>'.$app->lng("monitor_diskusage_filesystem_txt").'</td> + <td>'.$app->lng("monitor_diskusage_type_txt").'</td> + <td>'.$app->lng("monitor_diskusage_size_txt").'</td> + <td>'.$app->lng("monitor_diskusage_used_txt").'</td> + <td>'.$app->lng("monitor_diskusage_available_txt").'</td> + <td>'.$app->lng("monitor_diskusage_usage_txt").'</td> + <td>'.$app->lng("monitor_diskusage_mounted_txt").'</td> + </tr>'; + foreach($data as $line) { + $html .= '<tr>'; + foreach ($line as $item) { + $html .= '<td>' . $item . '</td>'; + } + $html .= '</tr>'; + } + $html .= '</table>'; + $html .= '</div></div>'; + } else { + $html = '<p>'.$app->lng("no_data_diskusage_txt").'</p>'; + } + + + return $html; +} + +function showMemUsage () { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mem_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + + /* + Format the data + */ + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'"> + <table>'; + + foreach($data as $key => $value){ + if ($key != '') { + $html .= '<tr> + <td>' . $key . ':</td> + <td>' . $value . '</td> + </tr>'; + } + } + $html .= '</table>'; + $html .= '</div></div>'; + + } else { + $html = '<p>'.$app->lng("no_data_memusage_txt").'</p>'; + } + + return $html; +} + +function showCpuInfo () { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'cpu_info' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + + /* + Format the data + */ + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'"> + <table>'; + foreach($data as $key => $value){ + if ($key != '') { + $html .= '<tr> + <td>' . $key . ':</td> + <td>' . $value . '</td> + </tr>'; + } + } + $html .= '</table>'; + $html .= '</div></div>'; + } else { + $html = '<p>'.$app->lng("no_data_cpuinfo_txt").'</p>'; + } + + return $html; +} + +function showServices () { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'services' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + + /* + Format the data + */ + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'"> + <table>'; + + if($data['webserver'] != -1) { + if($data['webserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_web_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + + if($data['ftpserver'] != -1) { + if($data['ftpserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_ftp_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + if($data['smtpserver'] != -1) { + if($data['smtpserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_smtp_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + if($data['pop3server'] != -1) { + if($data['pop3server'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_pop_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + if($data['imapserver'] != -1) { + if($data['imapserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_imap_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + if($data['bindserver'] != -1) { + if($data['bindserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_mydns_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + if($data['mysqlserver'] != -1) { + if($data['mysqlserver'] == 1) { + $status = '<span class="online">'.$app->lng("monitor_services_online_txt").'</span>'; + } else { + $status = '<span class="offline">'.$app->lng("monitor_services_offline_txt").'</span>'; + } + $html .= '<tr> + <td>'.$app->lng("monitor_services_mysql_txt").'</td> + <td>'.$status.'</td> + </tr>'; + } + + + $html .= '</table></div></div>'; + } else { + $html = '<p>'.$app->lng("no_data_services_txt").'</p>'; + } + + + return $html; +} + +function showSystemUpdate() { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'system_update' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'">'; + /* + * First, we have to detect, if there is any monitoring-data. + * If not (because the destribution is not supported) show this. + */ + if ($record['state'] == 'no_state'){ + $html .= '<p>'.$app->lng("monitor_updates_nosupport_txt").'</p>'; + } + else { + $data = unserialize($record['data']); + $html .= nl2br($data['output']); + } + $html .= '</div></div>'; + } else { + $html = '<p>'.$app->lng("no_data_updates_txt").'</p>'; + } + + return $html; +} + +function showRaidState() { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'raid_state' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'">'; + + /* + * First, we have to detect, if there is any monitoring-data. + * If not (because the destribution is not supported) show this. + */ + if ($record['state'] == 'no_state'){ + $html .= '<p>'.$app->lng("monitor_nomdadm_txt").'</p>'; + } + else { + $data = unserialize($record['data']); + $html .= nl2br($data['output']); + } + $html .= '</div></div>'; + + } else { + $html = '<p>'.$app->lng("no_data_raid_txt").'</p>'; + } + + return $html; +} + +function showRKHunter() { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'rkhunter' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'">'; + + /* + * First, we have to detect, if there is any monitoring-data. + * If not (because rkhunter is not installed) show this. + */ + $data = unserialize($record['data']); + if ($data['output'] == ''){ + $html .= '<p>'.$app->lng("monitor_norkhunter_txt").'</p>'; + } + else { + $html .= nl2br($data['output']); + } + $html .= '</div></div>'; + + } else { + $html = '<p>'.$app->lng("no_data_rkhunter_txt").'</p>'; + } + + return $html; +} + +function showFail2ban() { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'log_fail2ban' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $html = + '<div class="systemmonitor-state state-'.$record['state'].'"> + <div class="systemmonitor-content icons32 ico-'.$record['state'].'">'; + + /* + * First, we have to detect, if there is any monitoring-data. + * If not (because fail2ban is not installed) show this. + */ + $data = unserialize($record['data']); + if ($data == ''){ + $html .= '<p>'. + 'fail2ban is not installed at this server.<br />' . + 'See more (for debian) <a href="http://www.howtoforge.com/fail2ban_debian_etch" target="htf">here...</a>'. + '</p>'; + } + else { + $html .= nl2br($data); + } + $html .= '</div></div>'; + + } else { + $html = '<p>There is no data available at the moment.</p>'; + } + + return $html; +} + +function showMailq() { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mailq' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + if(isset($record['data'])) { + $data = unserialize($record['data']); + $html = nl2br($data['output']); + } else { + $html = '<p>'.$app->lng("no_data_mailq_txt").'</p>'; + } + + return $html; +} + +function getDataTime($type) { + global $app; + + /* fetch the Data from the DB */ + $record = $app->db->queryOneRecord("SELECT created FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); + + /* TODO: datetimeformat should be set somewhat other way */ + $dateTimeFormat = $app->lng("monitor_settings_datetimeformat_txt"); + + if(isset($record['created'])) { +// $res = date('Y-m-d H:i', $record['created']); + $res = date($dateTimeFormat, $record['created']); + } else { + $res = '????-??-?? ??:??'; + } + return $res; +} +?> diff --git a/interface/ispconfig/interface/mymodule/form/support_message.tform.php b/interface/ispconfig/interface/mymodule/form/support_message.tform.php new file mode 100644 index 0000000..638f6ae --- /dev/null +++ b/interface/ispconfig/interface/mymodule/form/support_message.tform.php @@ -0,0 +1,132 @@ +<?php + +// Title of the form. +$form['title'] = 'Support Message'; + +// Optional description of the form. +$form['description'] = ''; + +// Name of the form which cannot contain spaces or foreign characters. +$form['name'] = 'support_message'; + +// The file that is used to call the form in the browser. +$form['action'] = 'support_message_edit.php'; + +// The name of the database table used to store the data +$form['db_table'] = 'mail_user'; + +// The name of the database table index field. +// This field must be a numeric auto increment column. +$form['db_table_idx'] = 'support_message_id'; + +// Should changes to this table be stored in the database history (sys_datalog) table. +// This should be set to 'yes' for all tables that store configuration information. +$form['db_history'] = 'no'; + +// The name of the tab that is shown when the form is opened +$form['tab_default'] = 'mymodule'; + +// The name of the default list file of this form +$form['list_default'] = 'support_message_list.php'; + +// Use the internal authentication system for this table. This should +// be set to 'yes' in most cases, otherwise 'no'. +$form['auth'] = 'yes'; + +//** Authentication presets. The defaults below does not need to be changed in most cases. + +// 0 = id of the user, > 0 id must match with id of current user +$form['auth_preset']['userid'] = 0; + + // 0 = default groupid of the user, > 0 id must match with groupid of current +$form['auth_preset']['groupid'] = 0; // user + +// Permissions with the following codes: r = read, i = insert, u = update, d = delete +$form['auth_preset']['perm_user'] = 'riud'; +$form['auth_preset']['perm_group'] = 'riud'; +$form['auth_preset']['perm_other'] = ''; + +// The form definition of the first tab. The name of the tab is called 'message'. We refer +// to this name in the $form['tab_default'] setting above. +$form['tabs']['message'] = array( + 'title' => 'Message', // Title of the Tab + 'width' => 100, // Tab width + 'template' => 'templates/support_message_edit.htm', // Template file name + 'fields' => array( + + //*** BEGIN Datatable columns ********************************** + + 'recipient_id' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array( + 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'validators' => array( 0 => array( 'type' => 'ISINT', + 'errmsg'=> 'recipient_id_is_not_integer' + ), + ), + 'value' => '' + ), + + 'sender_id' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array( + 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'validators' => array( 0 => array( 'type' => 'ISINT', + 'errmsg' => 'recipient_id_is_not_integer' + ), + ), + 'value' => '' + ), + + 'subject' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', + 'errmsg'=> 'subject_is_empty' + ), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + + 'message' => array( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXTAREA', + 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', + 'errmsg'=> 'message_is_empty' + ), + ), + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '10', + 'maxlength' => '255' + ), + + 'tstamp' => array( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => time(), + 'value' => '', + 'width' => '30', + 'maxlength' => '30' + ), + + //*** END Datatable columns ********************************** + ) +); +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/lib/admin.conf.php b/interface/ispconfig/interface/mymodule/lib/admin.conf.php new file mode 100644 index 0000000..3e558ca --- /dev/null +++ b/interface/ispconfig/interface/mymodule/lib/admin.conf.php @@ -0,0 +1,7 @@ +<?php + +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +?> diff --git a/interface/ispconfig/interface/mymodule/lib/mymodule.config.php b/interface/ispconfig/interface/mymodule/lib/mymodule.config.php new file mode 100644 index 0000000..3ff9431 --- /dev/null +++ b/interface/ispconfig/interface/mymodule/lib/mymodule.config.php @@ -0,0 +1,47 @@ +<?php + +//**** Module Definition **** + +// Name of the module. The module name must match the name of the module directory. +// The module name may not contain spaces. +$module['name'] = 'mymodule'; + +// Title of the module which is dispalayed in the top navigation. +$module['title'] = 'Mymodule'; + +// The template file of the module. This is always 'module.tpl.htm' unless +// there are any special requirements such as a three column layout. +$module['template'] = 'module.tpl.htm'; + +// The page that is displayed when the module is loaded. +// The path must is relative to the web/ directory +$module['startpage'] = 'mymodule/index.php'; + +// The width of the tab. Normally you should leave this empty and +// let the browser define the width automatically. +$module['tab_width'] = ''; + +//**** Menu Definition **** + +// Make sure that the items array is empty +$items = array(); + +// Add a menu item with the label 'Send message' +$items[] = array( 'title' => 'Send message', + 'target' => 'content', + 'link' => 'mymodule/support_message_edit.php' + ); + +// Add a menu item with the label 'View messages' +$items[] = array( 'title' => 'View messages', + 'target' => 'content', + 'link' => 'mymodule/support_message_list.php' + ); + +// Append the menu $items defined above to a menu section labeled 'Support' +$module['nav'][] = array( 'title' => 'Support', + 'open' => 1, + 'items' => $items + ); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/list/support_message.list.php b/interface/ispconfig/interface/mymodule/list/support_message.list.php new file mode 100644 index 0000000..e1fd4f5 --- /dev/null +++ b/interface/ispconfig/interface/mymodule/list/support_message.list.php @@ -0,0 +1,63 @@ +<?php + +// Name of the list +$liste['name'] = 'support_message'; + +/* Database table +$liste['table'] = 'support_message'; + +// Index index field of the database table +$liste['table_idx'] = 'support_message_id'; + +// Search Field Prefix +$liste['search_prefix'] = 'search_'; + +// Records per page +$liste['records_per_page']= 15; + +// Script File of the list +$liste['file'] = 'support_message_list.php'; + +// Script file of the edit form +$liste['edit_file'] = 'support_message_edit.php'; + +// Script File of the delete script +$liste['delete_file'] = 'support_message_del.php'; + +// Paging Template +$liste['paging_tpl'] = 'templates/paging.tpl.htm'; + +// Enable auth +$liste['auth'] = 'yes'; + +//****** Search fields + +$liste['item'][] = array( + 'field' => 'sender_id', + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'op' => '=', + 'prefix' => '', + 'suffix' => '', + 'width' => '', + 'datasource' => array( + 'type' => 'SQL', + 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username', + 'keyfield' => 'userid', + 'valuefield' => 'username' + ), + 'value' => '' + ); + +$liste['item'][] = array( + 'field' => 'subject', + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'op' => 'like', + 'prefix' => '%', + 'suffix' => '%', + 'width' => '', + 'value' => '' + ); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/support_message_del.php b/interface/ispconfig/interface/mymodule/support_message_del.php new file mode 100644 index 0000000..a01ba1a --- /dev/null +++ b/interface/ispconfig/interface/mymodule/support_message_del.php @@ -0,0 +1,21 @@ +<?php + +// From and List definition files +$list_def_file = 'list/support_message.list.php'; +$tform_def_file = 'form/support_message.tform.php'; + +// Include the base libraries +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Check module permissions +if(!stristr($_SESSION['s']['user']['modules'],'help')) { + header('Location: ../index.php'); + die; +} + +// Load the form +$app->uses('tform_actions'); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/support_message_edit.php b/interface/ispconfig/interface/mymodule/support_message_edit.php new file mode 100644 index 0000000..8dee496 --- /dev/null +++ b/interface/ispconfig/interface/mymodule/support_message_edit.php @@ -0,0 +1,33 @@ +<?php + +// Set the path to the form definition file. +$tform_def_file = 'mymodule/support_message.tform.php'; + +// include the core configuration and application classes +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Check the module permissions and redirect if not allowed. +if(!stristr($_SESSION['s']['user']['modules'],'help')) { + header('Location: ../index.php'); + die; +} + +// Load the templating and form classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +// Create a class page_action that extends the tform_actions base class +class page_action extends tform_actions { + + //* Customisations for the page actions will be defined here + +} + +// Create the new page object +$page = new page_action(); + +// Start the page rendering and action handling +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/support_message_list.php b/interface/ispconfig/interface/mymodule/support_message_list.php new file mode 100644 index 0000000..43cd9bc --- /dev/null +++ b/interface/ispconfig/interface/mymodule/support_message_list.php @@ -0,0 +1,24 @@ +<?php + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +// Path to the list definition file +$list_def_file = 'list/support_message.list.php'; + +// Check the module permissions +if(!stristr($_SESSION['s']['user']['modules'],'help')) { + header('Location: ../index.php'); + die(); +} + +// Loading the class +$app->uses('listform_actions'); + +// Optional limit +// $app->listform_actions->SQLExtWhere = 'type = 'alias''; + +// Start the form rendering and action ahndling +$app->listform_actions->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/mymodule/templates/support_message_edit.html b/interface/ispconfig/interface/mymodule/templates/support_message_edit.html new file mode 100644 index 0000000..6bd86f2 --- /dev/null +++ b/interface/ispconfig/interface/mymodule/templates/support_message_edit.html @@ -0,0 +1,14 @@ +<!-- +To change this template, choose Tools | Templates +and open the template in the editor. +--> +<!DOCTYPE html> +<html> + <head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + <body> + <div>TODO write content</div> + </body> +</html> diff --git a/interface/ispconfig/interface/mymodule/templates/support_message_view.html b/interface/ispconfig/interface/mymodule/templates/support_message_view.html new file mode 100644 index 0000000..6bd86f2 --- /dev/null +++ b/interface/ispconfig/interface/mymodule/templates/support_message_view.html @@ -0,0 +1,14 @@ +<!-- +To change this template, choose Tools | Templates +and open the template in the editor. +--> +<!DOCTYPE html> +<html> + <head> + <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + <body> + <div>TODO write content</div> + </body> +</html> diff --git a/interface/ispconfig/interface/nav.php b/interface/ispconfig/interface/nav.php new file mode 100644 index 0000000..73a6371 --- /dev/null +++ b/interface/ispconfig/interface/nav.php @@ -0,0 +1,102 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../lib/config.inc.php'); +require_once('../lib/app.inc.php'); + +$app->uses('tpl'); + +//** Top Naviation +if(isset($_GET['nav']) && $_GET['nav'] == 'top') { + + $app->tpl->newTemplate('topnav.tpl.htm'); + + //* Check User Login and current module + if(isset($_SESSION["s"]["user"]) && $_SESSION["s"]["user"]['active'] == 1 && is_array($_SESSION['s']['module'])) { + //* Loading modules of the user and building top navigation + $modules = explode(',', $_SESSION['s']['user']['modules']); + if(is_array($modules)) { + foreach($modules as $mt) { + if(is_file($mt.'/lib/module.conf.php')) { + if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.'); + include_once($mt.'/lib/module.conf.php'); + $active = ($module['name'] == $_SESSION['s']['module']['name']) ? 1 : 0; + $topnav[] = array( 'title' => $app->lng($module['title']), + 'active' => $active, + 'module' => $module['name']); + } + } + } + } else { + //* Loading Login Module + include_once('login/lib/module.conf.php'); + $_SESSION['s']['module'] = $module; + $topnav[] = array( 'title' => 'Login', + 'active' => 1); + $module = null; + unset($module); + } + + //* Topnavigation + $app->tpl->setLoop('nav_top',$topnav); + +} + +//** Side Naviation +if(isset($_GET['nav']) && $_GET['nav'] == 'side') { + + $app->tpl->newTemplate('sidenav.tpl.htm'); + + //* translating module navigation + $nav_translated = array(); + if(isset($_SESSION['s']['module']['nav']) && is_array($_SESSION['s']['module']['nav'])) { + foreach($_SESSION['s']['module']['nav'] as $nav) { + $tmp_items = array(); + foreach($nav['items'] as $item) { + $item['title'] = $app->lng($item['title']); + $tmp_items[] = $item; + } + $nav['title'] = $app->lng($nav['title']); + $nav['startpage'] = $nav['items'][0]['link']; + $nav['items'] = $tmp_items; + $nav_translated[] = $nav; + } + } else { + $nav_translated = null; + } + + $app->tpl->setLoop('nav_left',$nav_translated); + +} + +$app->tpl_defaults(); +$app->tpl->pparse(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/remote/index.php b/interface/ispconfig/interface/remote/index.php new file mode 100644 index 0000000..25ebc8f --- /dev/null +++ b/interface/ispconfig/interface/remote/index.php @@ -0,0 +1,15 @@ +<?php + +require_once('../../lib/config.inc.php'); +$conf['start_session'] = false; +require_once('../../lib/app.inc.php'); + +$app->load('remoting'); + +$server = new SoapServer(null, array('uri' => $_SERVER['REQUEST_URI'])); +$server->setClass('remoting'); +$server->handle(); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/robots.txt b/interface/ispconfig/interface/robots.txt new file mode 100644 index 0000000..61186cb --- /dev/null +++ b/interface/ispconfig/interface/robots.txt @@ -0,0 +1,2 @@ +User-Agent: * +Disallow: / \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/ajax_get_ip.php b/interface/ispconfig/interface/sites/ajax_get_ip.php new file mode 100644 index 0000000..603c824 --- /dev/null +++ b/interface/ispconfig/interface/sites/ajax_get_ip.php @@ -0,0 +1,56 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$server_id = intval($_GET["server_id"]); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + + $sql = "SELECT ip_address FROM server_ip WHERE server_id = $server_id"; + $ips = $app->db->queryAllRecords($sql); + // $ip_select = "<option value=''></option>"; + $ip_select = "*"; + if(is_array($ips)) { + foreach( $ips as $ip) { + //$selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; + $ip_select .= "#$ip[ip_address]"; + } + } + unset($tmp); + unset($ips); +} + +echo $ip_select; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/cron_del.php b/interface/ispconfig/interface/sites/cron_del.php new file mode 100644 index 0000000..516b447 --- /dev/null +++ b/interface/ispconfig/interface/sites/cron_del.php @@ -0,0 +1,64 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +Modified 2009, Marius Cramer, pixcept KG +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/cron.list.php"; +$tform_def_file = "form/cron.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission')); + } +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/cron_edit.php b/interface/ispconfig/interface/sites/cron_edit.php new file mode 100644 index 0000000..6301fc9 --- /dev/null +++ b/interface/ispconfig/interface/sites/cron_edit.php @@ -0,0 +1,221 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +Modified 2009, Marius Cramer, pixcept KG +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/cron.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions,validate_cron'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_cron')) { + $app->error($app->tform->wordbook["limit_cron_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_cron')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_cron_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 1); + $app->tpl->setVar("parent_domain_id_value", $this->dataRecord["parent_domain_id"]); + } else { + $app->tpl->setVar("edit_disabled", 0); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_cron, limit_cron_type FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // When the record is updated + if($this->id > 0) { + // When the record is inserted + } else { + // Check if the user may add another cron job. + if($client["limit_cron"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM cron WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_cron"]) { + $app->error($app->tform->wordbook["limit_cron_txt"]); + } + } + } + } + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // Set fixed values + $this->dataRecord["server_id"] = $parent_domain["server_id"]; + + //* get type of command + $command = $this->dataRecord["command"]; + if(preg_match("'^http(s)?:\/\/'i", $command)) { + $this->dataRecord["type"] = 'url'; + } else { + $domain_owner = $app->db->queryOneRecord("SELECT limit_cron_type FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ".intval($parent_domain["sys_groupid"])); + if($domain_owner["limit_cron_type"] == 'full') $this->dataRecord["type"] = 'full'; + else $this->dataRecord["type"] = 'chrooted'; + } + + parent::onSubmit(); + } + + function onUpdateSave($sql) { + global $app; + + $has_error = false; + //* last chance to stop this, so check frequency limit! + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_cron_frequency FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + if($client["limit_cron_frequency"] > 1) { + if($app->tform->cron_min_freq < $client["limit_cron_frequency"]) { + $app->error($app->tform->wordbook["limit_cron_frequency_txt"]); + $has_error = true; + } + } + } + + if($has_error == true) { + parent::onError(); + exit; + } + else parent::onUpdateSave($sql); + } + + function onInsertSave($sql) { + global $app; + + $has_error = false; + //* last chance to stop this, so check frequency limit! + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_cron_frequency FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + if($client["limit_cron_frequency"] > 1) { + if($app->tform->cron_min_freq < $client["limit_cron_frequency"]) { + $app->error($app->tform->wordbook["limit_cron_frequency_txt"]); + $has_error = true; + } + } + } + + if($has_error == true) { + parent::onError(); + exit; + } else { + return parent::onInsertSave($sql); + } + } + + function onAfterInsert() { + global $app, $conf; + + $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".intval($this->dataRecord["parent_domain_id"])); + $server_id = $web["server_id"]; + + // The cron shall be owned by the same group then the website + $sys_groupid = $web['sys_groupid']; + + $sql = "UPDATE shell_user SET server_id = $server_id, sys_groupid = '$sys_groupid' WHERE id = ".$this->id; + $app->db->query($sql); + } + + function onAfterUpdate() { + global $app, $conf; + + + } + + function getClientName() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the group-id of the user + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + } else { + // Get the group-id from the data itself + $web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id'])); + $client_group_id = $web['sys_groupid']; + } + /* get the name of the client */ + $tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id); + $clientName = $tmp['name']; + if ($clientName == "") $clientName = 'default'; + $clientName = convertClientName($clientName); + + return $clientName; + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/cron_list.php b/interface/ispconfig/interface/sites/cron_list.php new file mode 100644 index 0000000..68e2316 --- /dev/null +++ b/interface/ispconfig/interface/sites/cron_list.php @@ -0,0 +1,23 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/cron.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('listform_actions'); + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/database_del.php b/interface/ispconfig/interface/sites/database_del.php new file mode 100644 index 0000000..aa958a1 --- /dev/null +++ b/interface/ispconfig/interface/sites/database_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/database.list.php"; +$tform_def_file = "form/database.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/database_edit.php b/interface/ispconfig/interface/sites/database_edit.php new file mode 100644 index 0000000..3b06bde --- /dev/null +++ b/interface/ispconfig/interface/sites/database_edit.php @@ -0,0 +1,338 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/database.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_database')) { + $app->error($app->tform->wordbook["limit_database_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_database')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_database_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf, $interfaceConf; + + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT default_dbserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Set the webserver to the default server of the client + $tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_dbserver]"); + $app->tpl->setVar("server_id","<option value='$client[default_dbserver]'>$tmp[server_name]</option>"); + unset($tmp); + + } elseif ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client.client_id, limit_web_domain, default_webserver, contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Set the webserver to the default server of the client + $tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_webserver]"); + $app->tpl->setVar("server_id","<option value='$client[default_webserver]'>$tmp[server_name]</option>"); + unset($tmp); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name"; + $clients = $app->db->queryAllRecords($sql); + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } else { + + // The user is admin + if($this->id > 0) { + $server_id = $this->dataRecord["server_id"]; + } else { + // Get the first server ID + $tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1"); + $server_id = $tmp['server_id']; + } + + $sql = "SELECT ip_address FROM server_ip WHERE server_id = $server_id"; + $ips = $app->db->queryAllRecords($sql); + $ip_select = "<option value='*'>*</option>"; + //$ip_select = ""; + if(is_array($ips)) { + foreach( $ips as $ip) { + $selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; + $ip_select .= "<option value='$ip[ip_address]' $selected>$ip[ip_address]</option>\r\n"; + } + } + $app->tpl->setVar("ip_address",$ip_select); + unset($tmp); + unset($ips); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name"; + $clients = $app->db->queryAllRecords($sql); + $client_select = "<option value='0'></option>"; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } + + /* + * If the names are restricted -> remove the restriction, so that the + * data can be edited + */ + + //* Get the database name and database user prefix + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + $dbname_prefix = replacePrefix($global_config['dbname_prefix'], $this->dataRecord); + $dbuser_prefix = replacePrefix($global_config['dbuser_prefix'], $this->dataRecord); + + if ($this->dataRecord['database_name'] != ""){ + /* REMOVE the restriction */ + $app->tpl->setVar("database_name", str_replace($dbname_prefix , '', $this->dataRecord['database_name'])); + $app->tpl->setVar("database_user", str_replace($dbuser_prefix , '', $this->dataRecord['database_user'])); + } + + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $app->tpl->setVar("database_name_prefix", $global_config['dbname_prefix']); + $app->tpl->setVar("database_user_prefix", $global_config['dbuser_prefix']); + } else { + $app->tpl->setVar("database_name_prefix", $dbname_prefix); + $app->tpl->setVar("database_user_prefix", $dbuser_prefix); + } + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 1); + $app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]); + $app->tpl->setVar("database_charset_value", $this->dataRecord["database_charset"]); + } else { + $app->tpl->setVar("edit_disabled", 0); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT default_dbserver, limit_database FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // When the record is updated + if($this->id > 0) { + // restore the server ID if the user is not admin and record is edited + $tmp = $app->db->queryOneRecord("SELECT server_id FROM web_database WHERE database_id = ".intval($this->id)); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + // When the record is inserted + } else { + // set the server ID to the default dbserver of the client + $this->dataRecord["server_id"] = $client["default_dbserver"]; + + + // Check if the user may add another database + if($client["limit_database"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(database_id) as number FROM web_database WHERE sys_groupid = $client_group_id"); + if($tmp["number"] >= $client["limit_database"]) { + $app->error($app->tform->wordbook["limit_database_txt"]); + } + } + + } + + // Clients may not set the client_group_id, so we unset them if user is not a admin and the client is not a reseller + if(!$app->auth->has_clients($_SESSION['s']['user']['userid'])) unset($this->dataRecord["client_group_id"]); + } + + + parent::onSubmit(); + } + + function onBeforeUpdate() { + global $app, $conf, $interfaceConf; + + /* + * If the names should be restricted -> do it! + */ + + + //* Get the database name and database user prefix + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + $dbname_prefix = replacePrefix($global_config['dbname_prefix'], $this->dataRecord); + $dbuser_prefix = replacePrefix($global_config['dbuser_prefix'], $this->dataRecord); + + //* Prevent that the database name and charset is changed + $old_record = $app->tform->getDataRecord($this->id); + if($old_record["database_name"] != $dbname_prefix . $this->dataRecord["database_name"]) { + $app->tform->errorMessage .= $app->tform->wordbook["database_name_change_txt"].'<br />'; + } + if($old_record["database_charset"] != $this->dataRecord["database_charset"]) { + $app->tform->errorMessage .= $app->tform->wordbook["database_charset_change_txt"].'<br />'; + } + + //* Database username and database name shall not be empty + if($this->dataRecord['database_name'] == '') $app->tform->errorMessage .= $app->tform->wordbook["database_name_error_empty"].'<br />'; + if($this->dataRecord['database_user'] == '') $app->tform->errorMessage .= $app->tform->wordbook["database_user_error_empty"].'<br />'; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + if($old_record["server_id"] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + } + unset($old_record); + + if(strlen($dbname_prefix . $this->dataRecord['database_name']) > 64) $app->tform->errorMessage .= str_replace('{db}',$dbname_prefix . $this->dataRecord['database_name'],$app->tform->wordbook["database_name_error_len"]).'<br />'; + if(strlen($dbuser_prefix . $this->dataRecord['database_user']) > 16) $app->tform->errorMessage .= str_replace('{user}',$dbuser_prefix . $this->dataRecord['database_user'],$app->tform->wordbook["database_user_error_len"]).'<br />'; + + if ($app->tform->errorMessage == ''){ + /* restrict the names if there is no error */ + /* crop user and db names if they are too long -> mysql: user: 16 chars / db: 64 chars */ + $this->dataRecord['database_name'] = substr($dbname_prefix . $this->dataRecord['database_name'], 0, 64); + $this->dataRecord['database_user'] = substr($dbuser_prefix . $this->dataRecord['database_user'], 0, 16); + } + + parent::onBeforeUpdate(); + } + + function onBeforeInsert() { + global $app, $conf, $interfaceConf; + + //* Database username and database name shall not be empty + if($this->dataRecord['database_name'] == '') $app->tform->errorMessage .= $app->tform->wordbook["database_name_error_empty"].'<br />'; + if($this->dataRecord['database_user'] == '') $app->tform->errorMessage .= $app->tform->wordbook["database_user_error_empty"].'<br />'; + + //* Get the database name and database user prefix + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + $dbname_prefix = replacePrefix($global_config['dbname_prefix'], $this->dataRecord); + $dbuser_prefix = replacePrefix($global_config['dbuser_prefix'], $this->dataRecord); + + if(strlen($dbname_prefix . $this->dataRecord['database_name']) > 64) $app->tform->errorMessage .= str_replace('{db}',$dbname_prefix . $this->dataRecord['database_name'],$app->tform->wordbook["database_name_error_len"]).'<br />'; + if(strlen($dbuser_prefix . $this->dataRecord['database_user']) > 16) $app->tform->errorMessage .= str_replace('{user}',$dbuser_prefix . $this->dataRecord['database_user'],$app->tform->wordbook["database_user_error_len"]).'<br />'; + + + /* restrict the names */ + /* crop user and db names if they are too long -> mysql: user: 16 chars / db: 64 chars */ + if ($app->tform->errorMessage == ''){ + $this->dataRecord['database_name'] = substr($dbname_prefix . $this->dataRecord['database_name'], 0, 64); + $this->dataRecord['database_user'] = substr($dbuser_prefix . $this->dataRecord['database_user'], 0, 16); + } + + parent::onBeforeInsert(); + } + + function onAfterInsert() { + global $app, $conf; + + // make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_database SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE database_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_database SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE database_id = ".$this->id); + } + } + + function onAfterUpdate() { + global $app, $conf; + + // make sure that the record belongs to the client group and not the admin group when a admin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_database SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE database_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_database SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE database_id = ".$this->id); + } + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/database_list.php b/interface/ispconfig/interface/sites/database_list.php new file mode 100644 index 0000000..d042843 --- /dev/null +++ b/interface/ispconfig/interface/sites/database_list.php @@ -0,0 +1,73 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/database.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->load('listform_actions'); + + +class list_action extends listform_actions { + + function onShow() { + global $app,$conf; + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + + if($global_config['dblist_phpmyadmin_link'] == 'y') { + $app->tpl->setVar('dblist_phpmyadmin_link',1); + } else { + $app->tpl->setVar('dblist_phpmyadmin_link',0); + } + + parent::onShow(); + } + +} + +$list = new list_action; +$list->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/database_phpmyadmin.php b/interface/ispconfig/interface/sites/database_phpmyadmin.php new file mode 100644 index 0000000..1dc1530 --- /dev/null +++ b/interface/ispconfig/interface/sites/database_phpmyadmin.php @@ -0,0 +1,70 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +/* + * get the id of the database (must be int!) + */ +if (!isset($_GET['id'])){ + die ("No DB selected!"); +} +$databaseId = intval($_GET['id']); + +/* + * Get the data to connect to the database + */ +$dbData = $app->db->queryOneRecord("SELECT server_id FROM web_database WHERE database_id = " . $databaseId); +$serverId = intval($dbData['server_id']); +if ($serverId == 0){ + die ("No DB-Server found!"); +} +$serverData = $app->db->queryOneRecord( + "SELECT server_name FROM server WHERE server_id = " . + $serverId); + +$app->uses('getconf'); +$global_config = $app->getconf->get_global_config('sites'); + +/* + * We only redirect to the login-form, so there is no need, to check any rights + */ +if($global_config['phpmyadmin_url'] != '') { + header('Location:'.$global_config['phpmyadmin_url']); +} else { + isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http'; + header('location:' . $http . '://' . $serverData['server_name'] . '/phpmyadmin'); +} +exit; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/cron.tform.php b/interface/ispconfig/interface/sites/form/cron.tform.php new file mode 100644 index 0000000..2440271 --- /dev/null +++ b/interface/ispconfig/interface/sites/form/cron.tform.php @@ -0,0 +1,189 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Cron Job"; +$form["description"] = ""; +$form["name"] = "cron"; +$form["action"] = "cron_edit.php"; +$form["db_table"] = "cron"; +$form["db_table_idx"] = "id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "cron"; +$form["list_default"] = "cron_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['cron'] = array ( + 'title' => "Cron Job", + 'width' => 100, + 'template' => "templates/cron_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND web_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'server_id_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'run_min' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'run_time_format', + 'errmsg'=> 'run_min_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'run_hour' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'run_time_format', + 'errmsg'=> 'run_hour_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'run_mday' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'run_time_format', + 'errmsg'=> 'run_mday_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'run_month' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'run_time_format', + 'errmsg'=> 'run_month_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'run_wday' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'run_time_format', + 'errmsg'=> 'run_wday_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'command' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'command_error_empty'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_cron', + 'function' => 'command_format', + 'errmsg'=> 'command_error_format'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'url', + 'valuelimit' => 'list:url,full,chrooted', + 'value' => array('url' => 'Url', 'full' => 'Full', 'chrooted' => 'Chrooted') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/database.tform.php b/interface/ispconfig/interface/sites/form/database.tform.php new file mode 100644 index 0000000..a7e3045 --- /dev/null +++ b/interface/ispconfig/interface/sites/form/database.tform.php @@ -0,0 +1,155 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Database"; +$form["description"] = ""; +$form["name"] = "database"; +$form["action"] = "database_edit.php"; +$form["db_table"] = "web_database"; +$form["db_table_idx"] = "database_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "database"; +$form["list_default"] = "database_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['database'] = array ( + 'title' => "Database", + 'width' => 100, + 'template' => "templates/database_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} AND db_server = 1 ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('mysql' => 'MySQL') + ), + 'database_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'database_name_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'database_name_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-9_]{2,64}$/', + 'errmsg'=> 'database_name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'database_user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'database_user_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'database_user_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-zA-Z0-9_]{2,64}$/', + 'errmsg'=> 'database_user_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'database_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'database_charset' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('' => 'DB-Default','latin1' => 'Latin 1','utf8' => 'UTF-8') + ), + 'remote_access' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + 'remote_ips' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_database', + 'function' => 'valid_ip_list', + 'errmsg' => 'database_remote_error_ips'), + ), + 'default' => '', + 'value' => '', + 'width' => '60' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/ftp_user.tform.php b/interface/ispconfig/interface/sites/form/ftp_user.tform.php new file mode 100644 index 0000000..2b65c85 --- /dev/null +++ b/interface/ispconfig/interface/sites/form/ftp_user.tform.php @@ -0,0 +1,253 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "FTP User"; +$form["description"] = ""; +$form["name"] = "ftp_user"; +$form["action"] = "ftp_user_edit.php"; +$form["db_table"] = "ftp_user"; +$form["db_table_idx"] = "ftp_user_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "ftp"; +$form["list_default"] = "ftp_user_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['ftp'] = array ( + 'title' => "FTP User", + 'width' => 100, + 'template' => "templates/ftp_user_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'username_error_unique'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'username_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption' => 'CRYPT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'quota_size' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'quota_size_error_empty'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + +$form["tabs"]['advanced'] = array ( + 'title' => "Options", + 'width' => 100, + 'template' => "templates/ftp_user_advanced.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'uid' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'uid_error_empty'), + ), + 'default' => '0', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'gid' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'uid_error_empty'), + ), + 'default' => '0', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'directory_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'quota_files' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'ul_ratio' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'dl_ratio' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'ul_bandwidth' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'dl_bandwidth' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} else { + +$form["tabs"]['advanced'] = array ( + 'title' => "Options", + 'width' => 100, + 'template' => "templates/ftp_user_advanced_client.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'directory_error_empty'), + 1 => array ( 'type' => 'CUSTOM', + 'class' => 'validate_ftpuser', + 'function' => 'ftp_dir', + 'errmsg' => 'directory_error_notinweb'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/shell_user.tform.php b/interface/ispconfig/interface/sites/form/shell_user.tform.php new file mode 100644 index 0000000..cd4dadf --- /dev/null +++ b/interface/ispconfig/interface/sites/form/shell_user.tform.php @@ -0,0 +1,196 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Shell User"; +$form["description"] = ""; +$form["name"] = "shell_user"; +$form["action"] = "shell_user_edit.php"; +$form["db_table"] = "shell_user"; +$form["db_table_idx"] = "shell_user_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "shell"; +$form["list_default"] = "shell_user_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['shell'] = array ( + 'title' => "Shell User", + 'width' => 100, + 'template' => "templates/shell_user_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'username' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'username_error_unique'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'username_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption' => 'CRYPT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'chroot' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'valuelimit' => 'client:ssh_chroot', + 'value' => array('no' => 'None', 'jailkit' => 'Jailkit') + ), + 'quota_size' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'quota_size_error_empty'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + +$form["tabs"]['advanced'] = array ( + 'title' => "Options", + 'width' => 100, + 'template' => "templates/shell_user_advanced.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'puser' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'uid_error_empty'), + ), + 'default' => '0', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'pgroup' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'uid_error_empty'), + ), + 'default' => '0', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'shell' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '/bin/bash', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'dir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'directory_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/web_aliasdomain.tform.php b/interface/ispconfig/interface/sites/form/web_aliasdomain.tform.php new file mode 100644 index 0000000..1a8dc0b --- /dev/null +++ b/interface/ispconfig/interface/sites/form/web_aliasdomain.tform.php @@ -0,0 +1,142 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Web Aliasdomain"; +$form["description"] = ""; +$form["name"] = "web_domain"; +$form["action"] = "web_aliasdomain_edit.php"; +$form["db_table"] = "web_domain"; +$form["db_table_idx"] = "domain_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "domain"; +$form["list_default"] = "web_aliasdomain_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['domain'] = array ( + 'title' => "Domain", + 'width' => 100, + 'template' => "templates/web_aliasdomain_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'domain_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'domain_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('vhost' => 'Site', 'alias' => 'Alias', 'subdomain' => 'Subdomain') + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'redirect_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L') + ), + 'redirect_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', + 'errmsg'=> 'redirect_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'subdomain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('none' => 'none', 'www' => 'www.', '*' => '*.') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/web_domain.tform.php b/interface/ispconfig/interface/sites/form/web_domain.tform.php new file mode 100644 index 0000000..a91e7fb --- /dev/null +++ b/interface/ispconfig/interface/sites/form/web_domain.tform.php @@ -0,0 +1,463 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Web Domain"; +$form["description"] = ""; +$form["name"] = "web_domain"; +$form["action"] = "web_domain_edit.php"; +$form["db_table"] = "web_domain"; +$form["db_table_idx"] = "domain_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "domain"; +$form["list_default"] = "web_domain_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +// Clients may not change the website basic settings if they are not resellers +if($app->auth->has_clients($_SESSION['s']['user']['userid']) || $app->auth->is_admin()) { + $web_domain_edit_readonly = false; +} else { + $web_domain_edit_readonly = true; +} + + +$form["tabs"]['domain'] = array ( + 'title' => "Domain", + 'width' => 100, + 'template' => "templates/web_domain_edit.htm", + 'readonly' => $web_domain_edit_readonly, + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND web_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'ip_address' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT ip_address,ip_address FROM server_ip WHERE {AUTHSQL} ORDER BY ip_address', + 'keyfield'=> 'ip_address', + 'valuefield'=> 'ip_address' + ), + 'value' => '' + ), + 'domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'domain_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'domain_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('vhost' => 'Site', 'alias' => 'Alias') + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'site' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'vhost_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('name' => 'Namebased', 'ip' => 'IP-Based') + ), + 'hd_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'hd_quota_error_empty'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'traffic_quota' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'traffic_quota_error_empty'), + ), + 'default' => '-1', + 'value' => '', + 'width' => '7', + 'maxlength' => '7' + ), + 'cgi' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'ssi' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'suexec' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'errordocs' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'CHECKBOX', + 'default' => '1', + 'value' => array(0 => '0',1 => '1') + ), + 'subdomain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('none' => 'none', 'www' => 'www.', '*' => '*.') + ), + 'ssl' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'n', + 'value' => array(0 => 'n',1 => 'y') + ), + 'php' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'fast-cgi', + 'valuelimit' => 'client:web_php_options', + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +$form["tabs"]['redirect'] = array ( + 'title' => "Redirect", + 'width' => 100, + 'template' => "templates/web_domain_redirect.htm", + 'readonly' => false, + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'redirect_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L') + ), + 'redirect_path' => array ( + 'datatype' => 'VARCHAR', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', + 'errmsg'=> 'redirect_error_regex'), + ), + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['ssl'] = array ( + 'title' => "SSL", + 'width' => 100, + 'template' => "templates/web_domain_ssl.htm", + 'readonly' => false, + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'ssl_state' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', + 'errmsg'=> 'ssl_state_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ssl_locality' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', + 'errmsg'=> 'ssl_locality_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ssl_organisation' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', + 'errmsg'=> 'ssl_organisation_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ssl_organisation_unit' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', + 'errmsg'=> 'ssl_organistaion_unit_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ssl_country' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^(([.]{0})|([A-Z]{2,2}))$/', + 'errmsg'=> 'ssl_country_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '2', + 'maxlength' => '2' + ), + 'ssl_domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ssl_request' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '10' + ), + 'ssl_cert' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '10' + ), + 'ssl_bundle' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'cols' => '30', + 'rows' => '10' + ), + 'ssl_action' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('' => 'None', 'save' => 'Save Certificate', 'create' => 'Create Certificate','del' => 'Delete Certificate') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +//* Statistics +$form["tabs"]['stats'] = array ( + 'title' => "Stats", + 'width' => 100, + 'template' => "templates/web_domain_stats.htm", + 'readonly' => false, + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'stats_password' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption' => 'CRYPT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +if($_SESSION["s"]["user"]["typ"] == 'admin') { + +$form["tabs"]['advanced'] = array ( + 'title' => "Options", + 'width' => 100, + 'template' => "templates/web_domain_advanced.htm", + 'readonly' => false, + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'document_root' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'documentroot_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'system_user' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'sysuser_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'system_group' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'sysgroup_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'allow_override' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'allow_override_error_empty'), + ), + 'default' => 'All', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'php_open_basedir' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'php_open_basedir_error_empty'), + ), + 'default' => 'All', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'apache_directives' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +} + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/form/web_subdomain.tform.php b/interface/ispconfig/interface/sites/form/web_subdomain.tform.php new file mode 100644 index 0000000..b6b1a3c --- /dev/null +++ b/interface/ispconfig/interface/sites/form/web_subdomain.tform.php @@ -0,0 +1,136 @@ +<?php + +/* + Form Definition + + Tabledefinition + + Datatypes: + - INTEGER (Forces the input to Int) + - DOUBLE + - CURRENCY (Formats the values to currency notation) + - VARCHAR (no format check, maxlength: 255) + - TEXT (no format check) + - DATE (Dateformat, automatic conversion to timestamps) + + Formtype: + - TEXT (Textfield) + - TEXTAREA (Textarea) + - PASSWORD (Password textfield, input is not shown when edited) + - SELECT (Select option field) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hint: + The ID field of the database table is not part of the datafield definition. + The ID field must be always auto incement (int or bigint). + + +*/ + +$form["title"] = "Subdomain"; +$form["description"] = ""; +$form["name"] = "web_subdomain"; +$form["action"] = "web_subdomain_edit.php"; +$form["db_table"] = "web_domain"; +$form["db_table_idx"] = "domain_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "domain"; +$form["list_default"] = "web_subdomain_list.php"; +$form["auth"] = 'yes'; // yes / no + +$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['domain'] = array ( + 'title' => "Domain", + 'width' => 100, + 'template' => "templates/web_subdomain_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' + ), + 'domain' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'domain_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'domain_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/', + 'errmsg'=> 'domain_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('vhost' => 'Site', 'alias' => 'Alias', 'subdomain' => 'Subdomain') + ), + 'parent_domain_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'value' => '' + ), + 'redirect_type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => 'y', + 'value' => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L') + ), + 'redirect_path' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', + 'errmsg'=> 'redirect_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n',1 => 'y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/ftp_user_del.php b/interface/ispconfig/interface/sites/ftp_user_del.php new file mode 100644 index 0000000..479e19a --- /dev/null +++ b/interface/ispconfig/interface/sites/ftp_user_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/ftp_user.list.php"; +$tform_def_file = "form/ftp_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/ftp_user_edit.php b/interface/ispconfig/interface/sites/ftp_user_edit.php new file mode 100644 index 0000000..9823813 --- /dev/null +++ b/interface/ispconfig/interface/sites/ftp_user_edit.php @@ -0,0 +1,209 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/ftp_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_ftp_user')) { + $app->error($app->tform->wordbook["limit_ftp_user_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_ftp_user')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_ftp_user_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf, $interfaceConf; + /* + * If the names are restricted -> remove the restriction, so that the + * data can be edited + */ + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + // $ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); + $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); + + if ($this->dataRecord['username'] != ""){ + /* REMOVE the restriction */ + $app->tpl->setVar("username", str_replace($ftpuser_prefix , '', $this->dataRecord['username'])); + } + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $app->tpl->setVar("username_prefix", $global_config['ftpuser_prefix']); + } + else { + $app->tpl->setVar("username_prefix", $ftpuser_prefix); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // Set a few fixed values + $this->dataRecord["server_id"] = $parent_domain["server_id"]; + + //die(print_r($this->dataRecord)); + + if(isset($this->dataRecord['username']) && trim($this->dataRecord['username']) == '') $app->tform->errorMessage .= $app->tform->lng('username_error_empty').'<br />'; + if(isset($this->dataRecord['username']) && empty($this->dataRecord['parent_domain_id'])) $app->tform->errorMessage .= $app->tform->lng('parent_domain_id_error_empty').'<br />'; + + parent::onSubmit(); + } + + function onBeforeInsert() { + global $app, $conf, $interfaceConf; + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + //$ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); + $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); + + if ($app->tform->errorMessage == '') { + $this->dataRecord['username'] = $ftpuser_prefix . $this->dataRecord['username']; + } + + parent::onBeforeInsert(); + } + + function onAfterInsert() { + global $app, $conf; + + $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".intval($this->dataRecord["parent_domain_id"])); + $server_id = $web["server_id"]; + $dir = $web["document_root"]; + $uid = $web["system_user"]; + $gid = $web["system_group"]; + + // The FTP user shall be owned by the same group then the website + $sys_groupid = $web['sys_groupid']; + + $sql = "UPDATE ftp_user SET server_id = $server_id, dir = '$dir', uid = '$uid', gid = '$gid', sys_groupid = '$sys_groupid' WHERE ftp_user_id = ".$this->id; + $app->db->query($sql); + + + } + + function onBeforeUpdate() { + global $app, $conf, $interfaceConf; + + /* + * If the names should be restricted -> do it! + */ + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + //$ftpuser_prefix = ($global_config['ftpuser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['ftpuser_prefix']); + $ftpuser_prefix = replacePrefix($global_config['ftpuser_prefix'], $this->dataRecord); + + /* restrict the names */ + if ($app->tform->errorMessage == '') { + $this->dataRecord['username'] = $ftpuser_prefix . $this->dataRecord['username']; + } + } + + function onAfterUpdate() { + global $app, $conf; + + //* When the site of the FTP user has been changed + if($this->oldDataRecord['parent_domain_id'] != $this->dataRecord['parent_domain_id']) { + $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".intval($this->dataRecord["parent_domain_id"])); + $server_id = $web["server_id"]; + $dir = $web["document_root"]; + $uid = $web["system_user"]; + $gid = $web["system_group"]; + + // The FTP user shall be owned by the same group then the website + $sys_groupid = $web['sys_groupid']; + + $sql = "UPDATE ftp_user SET server_id = $server_id, dir = '$dir', uid = '$uid', gid = '$gid', sys_groupid = '$sys_groupid' WHERE ftp_user_id = ".$this->id; + $app->db->query($sql); + } + + } + + function getClientName() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + // Get the group-id of the user + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + } else { + // Get the group-id from the data itself + $web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id'])); + $client_group_id = $web['sys_groupid']; + } + /* get the name of the client */ + $tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id); + $clientName = $tmp['name']; + if ($clientName == "") $clientName = 'default'; + $clientName = convertClientName($clientName); + return $clientName; + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/ftp_user_list.php b/interface/ispconfig/interface/sites/ftp_user_list.php new file mode 100644 index 0000000..2daaf6b --- /dev/null +++ b/interface/ispconfig/interface/sites/ftp_user_list.php @@ -0,0 +1,55 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/ftp_user.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +//$app->listform_actions->SQLExtWhere = "type = 'subdomain'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/admin.conf.php b/interface/ispconfig/interface/sites/lib/admin.conf.php new file mode 100644 index 0000000..a45d440 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/admin.conf.php @@ -0,0 +1,2 @@ +<?php +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/bg.lng b/interface/ispconfig/interface/sites/lib/lang/bg.lng new file mode 100644 index 0000000..96c4d23 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'База данни'; +$wb['Options'] = 'Настройки'; +$wb['Shell User'] = 'Shell потребител'; +$wb['Domain'] = 'Домейн'; +$wb['Redirect'] = 'Пренасочване'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Поддомейн'; +$wb['Sites'] = 'Сайтове'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP потребител'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell потребител'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Statistics'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_cron.lng b/interface/ispconfig/interface/sites/lib/lang/bg_cron.lng new file mode 100644 index 0000000..fecb4ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_cron_list.lng new file mode 100644 index 0000000..ad56ea9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Jobs'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Hour'; +$wb['run_mday_txt'] = 'Day of month'; +$wb['run_month_txt'] = 'Month'; +$wb['run_wday_txt'] = 'Day of week'; +$wb['command_txt'] = 'Command'; +$wb['add_new_cron_txt'] = 'Add new Cron job'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_database.lng b/interface/ispconfig/interface/sites/lib/lang/bg_database.lng new file mode 100644 index 0000000..36a772a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Сървър'; +$wb['type_txt'] = 'Тип'; +$wb['database_name_txt'] = 'Ине на базата данни'; +$wb['database_user_txt'] = 'Потребител за базата данни'; +$wb['database_password_txt'] = 'Парола за базата данни'; +$wb['password_strength_txt'] = 'Сила на паролата'; +$wb['database_charset_txt'] = 'Charset на базата данни'; +$wb['remote_access_txt'] = 'Отдалечен достъп'; +$wb['client_txt'] = 'Клиент'; +$wb['active_txt'] = 'Активна'; +$wb['database_name_error_empty'] = 'Не е посочено име на базата данни.'; +$wb['database_name_error_unique'] = 'Вече съществува база данни с това име.'; +$wb['database_name_error_regex'] = 'Невалидно име на базата данни.'; +$wb['database_user_error_empty'] = 'Не е посочен потребител за базата данни.'; +$wb['database_user_error_unique'] = 'Вече съществува потребител с това име.'; +$wb['database_user_error_regex'] = 'Невалидно потребителско име.'; +$wb['limit_database_txt'] = 'Достигнат е максималният разрешен брой бази данни.'; +$wb['database_name_change_txt'] = 'Името на базата данни не може да бъде променено.'; +$wb['database_charset_change_txt'] = 'Charset на базата данни не може да бъде променен.'; +$wb['remote_ips_txt'] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb['database_remote_error_ips'] = 'At least one of the entered ip addresses is invalid.'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_database_list.lng new file mode 100644 index 0000000..4ca18c1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Бази данни'; +$wb['active_txt'] = 'Активна'; +$wb['remote_access_txt'] = 'Отдалечен достъп'; +$wb['server_id_txt'] = 'Сървър'; +$wb['database_name_txt'] = 'База данни'; +$wb['add_new_record_txt'] = 'Нова база данни'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user.lng new file mode 100644 index 0000000..7627ad7 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Директория'; +$wb['quota_files_txt'] = 'Filequota'; +$wb['ul_ratio_txt'] = 'Uploadratio'; +$wb['dl_ratio_txt'] = 'Downloadratio'; +$wb['ul_bandwidth_txt'] = 'Uploadbandwidth'; +$wb['dl_bandwidth_txt'] = 'Downloadbandwidth'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Потребителско име'; +$wb['password_txt'] = 'Парола'; +$wb['password_strength_txt'] = 'Сила на паролата'; +$wb['quota_size_txt'] = 'Harddisk-Quota'; +$wb['active_txt'] = 'Активен'; +$wb['limit_ftp_user_txt'] = 'Достигнат е максималният разрешен брой FTP потребители,'; +$wb['username_error_empty'] = 'Не е посочено потребителско име.'; +$wb['username_error_unique'] = 'Вече съществува потебител с това име.'; +$wb['username_error_regex'] = 'Невалидно потребителско име.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'Не е посочено GID.'; +$wb['directory_error_empty'] = 'Не е посочена директория.'; +$wb['quota_files_unity_txt'] = 'Files'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user_list.lng new file mode 100644 index 0000000..b5663c5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP потребители'; +$wb['active_txt'] = 'Активен'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Потребител'; +$wb['add_new_record_txt'] = 'Нов FTP потребител'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/bg_shell_user.lng new file mode 100644 index 0000000..5e75413 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Username'; +$wb['gid_txt'] = 'Група'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Директория'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Потребител'; +$wb['password_txt'] = 'Парола'; +$wb['password_strength_txt'] = 'Сила на паролата'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Активен'; +$wb['username_error_empty'] = 'Не е посочено потребителско име.'; +$wb['username_error_unique'] = 'Вече съществува потребител с това име.'; +$wb['username_error_regex'] = 'Невалидно потребителско име.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'Не е посочено GID.'; +$wb['directory_error_empty'] = 'Не е посочена директория.'; +$wb['limit_shell_user_txt'] = 'Достигнат е максималният разрешен брой Shell потребители.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_shell_user_list.lng new file mode 100644 index 0000000..254095e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell потребител'; +$wb['active_txt'] = 'Активен'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Потребителско име'; +$wb['add_new_record_txt'] = 'Нов Shell потребител'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_aliasdomain_list.lng new file mode 100644 index 0000000..c30d559 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Активен'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Нов aliasdomain'; +$wb['domain_error_empty'] = 'Не е посочен домейн.'; +$wb['domain_error_unique'] = 'Домейнът вече съществува.'; +$wb['domain_error_regex'] = 'Невалдно име на домейн.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_domain.lng new file mode 100644 index 0000000..d705cb4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'State'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Организация'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Държава'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Сървър'; +$wb['domain_txt'] = 'Домейн'; +$wb['type_txt'] = 'Тип'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Активен'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux потребител'; +$wb['system_group_txt'] = 'Linux група'; +$wb['ip_address_txt'] = 'IP адрес'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Собствени страници за грешки'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Клиент'; +$wb['limit_web_domain_txt'] = 'Достигнат е максималният разрешен брой домейни.'; +$wb['limit_web_aliasdomain_txt'] = 'Достигнат е максималният разрешен брой aliasdomains.'; +$wb['limit_web_subdomain_txt'] = 'Достигнат е максималният разрешен брой поддомейни.'; +$wb['apache_directives_txt'] = 'Apache директиви'; +$wb['domain_error_empty'] = 'Не е посочен домейн.'; +$wb['domain_error_unique'] = 'Вече съществува такъв домейн.'; +$wb['domain_error_regex'] = 'Невалидно име на домейн.'; +$wb['hd_quota_error_empty'] = 'Не е посочена Harddisk.'; +$wb['traffic_quota_error_empty'] = 'Не е посочена Traffic quota.'; +$wb['error_ssl_state_empty'] = 'Не е посочен SSL State.'; +$wb['error_ssl_locality_empty'] = 'Не е посочен SSL Locality.'; +$wb['error_ssl_organisation_empty'] = 'Не е посочена SSL организация.'; +$wb['error_ssl_organisation_unit_empty'] = 'Не е посочен SSL Organisation Unit.'; +$wb['error_ssl_country_empty'] = 'Не е посочена SSL държава.'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['client_group_id_txt'] = 'Client'; +$wb['stats_password_txt'] = 'Webstatistics password'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_domain_list.lng new file mode 100644 index 0000000..57d63e5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Сайтове'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Активен'; +$wb['server_id_txt'] = 'Сървър'; +$wb['domain_txt'] = 'Домейн'; +$wb['add_new_record_txt'] = 'Нов сайт'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_sites_stats_list.lng new file mode 100644 index 0000000..b217f80 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web traffic'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain.lng new file mode 100644 index 0000000..265bb17 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'State'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Организация'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Държава'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Сървър'; +$wb['domain_txt'] = 'Домейн'; +$wb['type_txt'] = 'Тип'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Активен'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux потребител'; +$wb['system_group_txt'] = 'Linux група'; +$wb['ip_address_txt'] = 'IP адрес'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Клиент'; +$wb['limit_web_domain_txt'] = 'Достигнат е максималният разрешен брой домейни.'; +$wb['limit_web_aliasdomain_txt'] = 'Достигнат е максималният разрешен брой aliasdomains.'; +$wb['limit_web_subdomain_txt'] = 'Достигнат е максималният разрешен брой поддомейни.'; +$wb['apache_directives_txt'] = 'Apache директиви'; +$wb['domain_error_empty'] = 'Не е посочен домейн.'; +$wb['domain_error_unique'] = 'Вече съществува такъв домейн.'; +$wb['domain_error_regex'] = 'Невалидно име на домейн.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain_list.lng new file mode 100644 index 0000000..d08e405 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/bg_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Поддомейни'; +$wb['active_txt'] = 'Активен'; +$wb['server_id_txt'] = 'Сървър'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['domain_txt'] = 'Поддомейн'; +$wb['add_new_record_txt'] = 'Нов поддомейн'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br.lng b/interface/ispconfig/interface/sites/lib/lang/br.lng new file mode 100644 index 0000000..f78b138 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Bancos de Dados'; +$wb['Options'] = 'Opções'; +$wb['Shell User'] = 'Usuário de Shell'; +$wb['Domain'] = 'Website'; +$wb['Redirect'] = 'Redirecionamento'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Sub-domínio'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Alias de Domínio'; +$wb['FTP-User'] = 'Usuário-FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Usuário-Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Estatísticas'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Tarefas no Cron'; +$wb['Statistics'] = 'Estatísticas'; +$wb['Web traffic'] = 'Tráfego Web'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_cron.lng b/interface/ispconfig/interface/sites/lib/lang/br_cron.lng new file mode 100644 index 0000000..f0739c6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site Web Parente'; +$wb['active_txt'] = 'Ativo'; +$wb['client_txt'] = 'Cliente'; +$wb['run_min_txt'] = 'Minutos'; +$wb['run_hour_txt'] = 'Horas'; +$wb['run_mday_txt'] = 'Dias do mês'; +$wb['run_month_txt'] = 'Meses'; +$wb['run_wday_txt'] = 'Dias da semana'; +$wb['command_txt'] = 'Comando a executar (os comandos serão executados via sh ou urls via wget)'; +$wb['limit_cron_txt'] = 'O número máximo de tarefas no cron foi atingido.'; +$wb['limit_cron_frequency_txt'] = 'A frequência das tarefas no cron ultrapassou o limite permitido.'; +$wb['run_min_error_format'] = 'Formato dos minutos inválido.'; +$wb['run_hour_error_format'] = 'Formato dos horas inválido.'; +$wb['run_mday_error_format'] = 'Formato dos dias do mês inválido.'; +$wb['run_month_error_format'] = 'Formato dos meses inválido.'; +$wb['run_wday_error_format'] = 'Formato dos dias da semana inválido.'; +$wb['command_error_format'] = 'Formato de comando inválido. Somente endereços url http/https são permitidos.'; +$wb['unknown_fieldtype_error'] = 'Um tipo desconhecido de campo foi usado.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_cron_list.lng new file mode 100644 index 0000000..b974f0f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Tarefas no Cron'; +$wb['active_txt'] = 'Ativas'; +$wb['server_id_txt'] = 'Servidor'; +$wb['run_min_txt'] = 'Minutos'; +$wb['run_hour_txt'] = 'Horas'; +$wb['run_mday_txt'] = 'Dias do mês'; +$wb['run_month_txt'] = 'Mês'; +$wb['run_wday_txt'] = 'Dia da semana'; +$wb['command_txt'] = 'Comando'; +$wb['add_new_cron_txt'] = 'Adcionar uma nova tarefa no cron'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_database.lng b/interface/ispconfig/interface/sites/lib/lang/br_database.lng new file mode 100644 index 0000000..a0f3d68 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['database_name_txt'] = 'Nome do Banco de Dados'; +$wb['database_user_txt'] = 'Usuário do Banco de Dados'; +$wb['database_password_txt'] = 'Senha do Banco de Dados'; +$wb['password_strength_txt'] = 'Segurança da Senha'; +$wb['database_charset_txt'] = 'Charset do Banco de Dados'; +$wb['remote_access_txt'] = 'Acesso Remoto'; +$wb['client_txt'] = 'Cliente'; +$wb['active_txt'] = 'Ativo'; +$wb['database_name_error_empty'] = 'O nome do banco está em branco.'; +$wb['database_name_error_unique'] = 'Já existe um banco de dados com este nome no servidor. O nome escolhido deve ser único.'; +$wb['database_name_error_regex'] = 'Nome do banco inválido. O nome do banco só pode conter estes caracteres: a-z, A-Z, 0-9 e o underscore. Tamanho: 2 - 64 caracteres.'; +$wb['database_user_error_empty'] = 'O nome do usuário está em branco.'; +$wb['database_user_error_unique'] = 'Já existe um banco de dados com este nome no servidor. O nome escolhido deve ser único.'; +$wb['database_user_error_regex'] = 'Nome do banco inválido. O nome do banco só pode conter estes caracteres: a-z, A-Z, 0-9 e o underscore. Tamanho: 2 - 64 caracteres.'; +$wb['limit_database_txt'] = 'O limite máximo de bancos de dados foi atingido.'; +$wb['database_name_change_txt'] = 'O nome do banco não pode ser modificado'; +$wb['database_charset_change_txt'] = 'O charset do banco não pode ser mudado'; +$wb['remote_ips_txt'] = 'Endereços IP Remotos (separados por , deixe em branco para <i>quaisquer ips</i>)'; +$wb['database_remote_error_ips'] = 'Pelo menos um dos endereços ip informados não é válido.'; +$wb['database_name_error_len'] = 'Nome do banco de dados - {db} - é muito longo. 64 caracteres é o número máximo permitido incluindo prefixo.'; +$wb['database_user_error_len'] = 'Nome de usuário de banco - {user}- é muito longo. 16 caracteres é o número máximo permitido incluindo prefixo.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_database_list.lng new file mode 100644 index 0000000..449baa8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_database_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Bancos de Dados'; +$wb['active_txt'] = 'Ativo'; +$wb['remote_access_txt'] = 'Acesso Remoto'; +$wb['server_id_txt'] = 'Servidor'; +$wb['database_user_txt'] = 'Usuário do Banco'; +$wb['database_name_txt'] = 'Nome do banco'; +$wb['add_new_record_txt'] = 'Adcionar um novo banco'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/br_ftp_user.lng new file mode 100644 index 0000000..e24355f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Diretório'; +$wb['quota_files_txt'] = 'Cota de Arquivo'; +$wb['quota_files_unity_txt'] = 'Arquivos'; +$wb['ul_ratio_txt'] = 'Taxa de Upload'; +$wb['dl_ratio_txt'] = 'Taxa de Download'; +$wb['ul_bandwidth_txt'] = 'Banda de Upload'; +$wb['dl_bandwidth_txt'] = 'Banda de Download'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Usuário'; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Tamanho da senha'; +$wb['quota_size_txt'] = 'Cota de Disco'; +$wb['active_txt'] = 'Ativo'; +$wb['limit_ftp_user_txt'] = 'O número máximo de usuários de FTP para sua conta foi atingido.'; +$wb['username_error_empty'] = 'Nome de usuário em branco.'; +$wb['username_error_unique'] = 'O nome de usuário deve ser único.'; +$wb['username_error_regex'] = 'O nome de usuário contém caracteres não permitidos.'; +$wb['quota_size_error_empty'] = 'Quota em branco.'; +$wb['uid_error_empty'] = 'GID em branco.'; +$wb['directory_error_empty'] = 'Diretório vazio.'; +$wb['directory_error_notinweb'] = 'O diretório não esta dentro do diretório web principal.'; +$wb['parent_domain_id_error_empty'] = 'Nenhum website selecionado.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_ftp_user_list.lng new file mode 100644 index 0000000..a9540c9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Usuário-FTP'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Usuário'; +$wb['add_new_record_txt'] = 'Adcionar um novo Usuário FTP'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/br_shell_user.lng new file mode 100644 index 0000000..2a99587 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Nome do usuário'; +$wb['gid_txt'] = 'Groupo'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Diretório'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Nome do usuário'; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Dificuldade da senha'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Ativo'; +$wb['username_error_empty'] = 'Nome de usuário em branco.'; +$wb['username_error_unique'] = 'O nome de usuário deve ser único.'; +$wb['username_error_regex'] = 'O nome do usuário contém caracteres não permitidos.'; +$wb['quota_size_error_empty'] = 'Quota em branco.'; +$wb['uid_error_empty'] = 'GID em branco.'; +$wb['directory_error_empty'] = 'Diretório vazio.'; +$wb['limit_shell_user_txt'] = 'O número máximo de usuários shell para sua conta foi atingido.'; +$wb['parent_domain_id_error_empty'] = 'Nenhum website selecionado.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_shell_user_list.lng new file mode 100644 index 0000000..512f9fe --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Usuário de Shell'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Usuário'; +$wb['add_new_record_txt'] = 'Adcionar novo usuário de Shell'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_aliasdomain_list.lng new file mode 100644 index 0000000..f9dbfa2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Domínio Alias'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Domínio Alias'; +$wb['add_new_record_txt'] = 'Adcionar novo domínio alias'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'O domínio deve ser único.'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_domain.lng new file mode 100644 index 0000000..5f8321f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Estado'; +$wb['ssl_locality_txt'] = 'Localização'; +$wb['ssl_organisation_txt'] = 'Empresa'; +$wb['ssl_organisation_unit_txt'] = 'Departamento'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Requisição SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Site Parente'; +$wb['redirect_type_txt'] = 'Tipo Redirecionamento'; +$wb['redirect_path_txt'] = 'Caminho de redirecionamento'; +$wb['active_txt'] = 'Ativo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Usuário Linux'; +$wb['system_group_txt'] = 'Groupo Linux'; +$wb['ip_address_txt'] = 'Endereço-IP'; +$wb['vhost_type_txt'] = 'Tipo de VHost'; +$wb['hd_quota_txt'] = 'Cota de Disco'; +$wb['traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Suas Páginas de Erro'; +$wb['subdomain_txt'] = 'Auto-Subdomínio'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'O número máximo de domínios web para sua conta foi atingido.'; +$wb['limit_web_aliasdomain_txt'] = 'O número máximo de aliases domínio para sua conta foi atingido.'; +$wb['limit_web_subdomain_txt'] = 'O número máximo de sub-domínios para sua conta foi atingido.'; +$wb['apache_directives_txt'] = 'Diretivas do Apache'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Já existe site, alias ou sub-domínio com este nome'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +$wb['hd_quota_error_empty'] = 'Quota de disco está em branco.'; +$wb['traffic_quota_error_empty'] = 'Quota de tráfego está em branco.'; +$wb['error_ssl_state_empty'] = 'Estado do SSL está em branco.'; +$wb['error_ssl_locality_empty'] = 'Localização do SSL está em branco.'; +$wb['error_ssl_organisation_empty'] = 'Empresa do SSL está em branco.'; +$wb['error_ssl_organisation_unit_empty'] = 'Departamento do SSL está em branco.'; +$wb['error_ssl_country_empty'] = 'País do SSL em branco.'; +$wb['client_group_id_txt'] = 'Cliente'; +$wb['stats_password_txt'] = 'Senha do diretório de estatísticas'; +$wb['ssl_domain_txt'] = 'Domínio SSL'; +$wb['allow_override_txt'] = 'Permitir Sobrescrever'; +$wb['limit_web_quota_free_txt'] = 'Cota Max. de disco disponível'; +$wb['ssl_state_error_regex'] = 'Estado inválido para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_locality_error_regex'] = 'Localidade inválida para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_organisation_error_regex'] = 'Empresa inválida para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Departamento inválido para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_country_error_regex'] = 'País inválido para SSL. São caracteres válidos: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Cota máxima de Tráfego disponível'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_domain_list.lng new file mode 100644 index 0000000..dc52003 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Websites'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adcionar um novo site'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_sites_stats_list.lng new file mode 100644 index 0000000..903c905 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Tráfego Web'; +$wb['domain_txt'] = 'Domínio'; +$wb['this_month_txt'] = 'Este mês'; +$wb['last_month_txt'] = 'Último mês'; +$wb['this_year_txt'] = 'Este ano'; +$wb['last_year_txt'] = 'Último ano'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain.lng new file mode 100644 index 0000000..0a63c46 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Estado'; +$wb['ssl_locality_txt'] = 'Localidade'; +$wb['ssl_organisation_txt'] = 'Empresa'; +$wb['ssl_organisation_unit_txt'] = 'Departamento'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Requisição SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'Pacote SSL'; +$wb['ssl_action_txt'] = 'Ação SSL'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Site Parente'; +$wb['redirect_type_txt'] = 'Tipo do Redirecionamento'; +$wb['redirect_path_txt'] = 'Caminho do Redirecionamento'; +$wb['active_txt'] = 'Ativo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Usuário no Linux'; +$wb['system_group_txt'] = 'Grupo no Linux'; +$wb['ip_address_txt'] = 'Endereço-IP'; +$wb['vhost_type_txt'] = 'Tipo de VHost'; +$wb['hd_quota_txt'] = 'Cota de Disco'; +$wb['traffic_quota_txt'] = 'Cota de Tráfico'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'O número máximo de domínios web para esta conta foi atingido.'; +$wb['limit_web_aliasdomain_txt'] = 'O número máximo de aliases para esta conta foi atingido.'; +$wb['limit_web_subdomain_txt'] = 'O número máximo de sub-domínios para esta conta foi atingido.'; +$wb['apache_directives_txt'] = 'Diretivas apache'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Já existe alias ou sub-domínio com este nome.'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain_list.lng new file mode 100644 index 0000000..8351167 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/br_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sub-domínios'; +$wb['active_txt'] = 'Ativo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Sub-domínio'; +$wb['add_new_record_txt'] = 'Adcionar um novo sub-domínio'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de.lng b/interface/ispconfig/interface/sites/lib/lang/de.lng new file mode 100644 index 0000000..d921ad4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Datenbank'; +$wb['Options'] = 'Optionen'; +$wb['Shell User'] = 'Shell Benutzer'; +$wb['Domain'] = 'Domain'; +$wb['Redirect'] = 'Umleitung'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP Benutzer'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell Benutzer'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Statistiken'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_cron.lng b/interface/ispconfig/interface/sites/lib/lang/de_cron.lng new file mode 100644 index 0000000..f002b12 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Zugeordnete Website'; +$wb['active_txt'] = 'Aktiv'; +$wb['client_txt'] = 'Kunde'; +$wb['run_min_txt'] = 'Minuten'; +$wb['run_hour_txt'] = 'Stunden'; +$wb['run_mday_txt'] = 'Tage des Monats'; +$wb['run_month_txt'] = 'Monate'; +$wb['run_wday_txt'] = 'Tage der Woche'; +$wb['command_txt'] = 'Auszuführender Befehl (Befehle werden mit sh ausgeführt, urls mit wget)'; +$wb['limit_cron_txt'] = 'Die maximale Anzahl von erlaubten Cron Jobs ist bereits erreicht.'; +$wb['limit_cron_frequency_txt'] = 'Die Ausführungshäufigkeit übersteigt Ihr erlaubtes Limit.'; +$wb['run_min_error_format'] = 'Das Format für Minuten ist nicht korrekt.'; +$wb['run_hour_error_format'] = 'Das Format für Stunden ist nicht korrekt.'; +$wb['run_mday_error_format'] = 'Das Format für Tage des Monats ist nicht korrekt.'; +$wb['run_month_error_format'] = 'Das Format für Monate ist nicht korrekt.'; +$wb['run_wday_error_format'] = 'Das Format für Wochentage ist nicht korrekt.'; +$wb['command_error_format'] = 'Das Format für den Befehl ist nicht korrekt. Beachten Sie, dass bei einem URL Aufruf nur http und https erlaubt ist.'; +$wb['unknown_fieldtype_error'] = 'Es wurde ein unbekanntes Feld verwendet.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_cron_list.lng new file mode 100644 index 0000000..9778e9f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Jobs'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Stunde'; +$wb['run_mday_txt'] = 'Tag des Monats'; +$wb['run_month_txt'] = 'Monat'; +$wb['run_wday_txt'] = 'Tag der Woche'; +$wb['command_txt'] = 'Befehl'; +$wb['add_new_cron_txt'] = 'Neuen Cron Job anlegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_database.lng b/interface/ispconfig/interface/sites/lib/lang/de_database.lng new file mode 100644 index 0000000..f604997 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Typ'; +$wb['database_name_txt'] = 'Datenbankname'; +$wb['database_user_txt'] = 'Datenbank Benutzer'; +$wb['database_password_txt'] = 'Datenbank Passwort'; +$wb['database_charset_txt'] = 'Datenbank Zeichensatz'; +$wb['remote_access_txt'] = 'Remotezugang'; +$wb['remote_ips_txt'] = 'Remotezugang-IPs (mit Komma trennen, keine Eingabe für <i>alle</i>)'; +$wb['database_remote_error_ips'] = 'Mindestens eine der eingegebenen IP Adressen ist ungültig.'; +$wb['client_txt'] = 'Kunde'; +$wb['active_txt'] = 'Aktiv'; +$wb['database_name_error_empty'] = 'Datenbankname ist leer.'; +$wb['database_name_error_unique'] = 'Es existiert bereits eine Datenbank mit diesem Namen am Server. Um einen eindeutigen Namen zu erhalten können sie z.B. den Domainnamen vor dem Datenbanknamen verwenden.'; +$wb['database_name_error_regex'] = 'Ungültiger Datenbankname. Der Datenbankname darf die Zeichen: a-z, A-Z, 0-9 und den Unterstrich beinhalten. Länge: 2 - 64 Zeichen.'; +$wb['database_user_error_empty'] = 'Datenbank Benutzer ist leer.'; +$wb['database_user_error_unique'] = 'Es existiert bereits ein Benutzer mit diesem Namen am Server. Um einen eindeutigen Namen zu erhalten können sie z.B. den Domainnamen vor dem Benutzernamen verwenden.'; +$wb['database_user_error_regex'] = 'Ungültiger Benutzername. Der Benutzername darf die Zeichen: a-z, A-Z, 0-9 und den Unterstrich beinhalten. Länge: 2 - 64 Zeichen.'; +$wb['limit_database_txt'] = 'Die maximale Anzahl an Datenbanken wurde erreicht.'; +$wb['database_name_change_txt'] = 'Der Datenbankname kann nicht geändert werden.'; +$wb['database_charset_change_txt'] = 'Der Zeichensatz der Datenbank kann nicht geändert werden.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['database_name_error_len'] = 'Datenbank Name - {db} - zu lang. Die max. Datenbank Namen Länge inkl. Präfix ist 64 Zeichen.'; +$wb['database_user_error_len'] = 'Datenbank Benutzername - {user}- zu lang. Die max. Datenbank Benutzernamen Länge inkl. Präfix ist 16 Zeichen.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_database_list.lng new file mode 100644 index 0000000..b34ac4e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Datenbank'; +$wb['active_txt'] = 'Aktiv'; +$wb['remote_access_txt'] = 'Remotezugang'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Datenbankname'; +$wb['add_new_record_txt'] = 'Neue Datenbank hinzufügen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/de_ftp_user.lng new file mode 100644 index 0000000..dcd8b02 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Verzeichnis'; +$wb['quota_files_txt'] = 'Dateiquota'; +$wb['quota_files_unity_txt'] = 'Dateien'; +$wb['ul_ratio_txt'] = 'Uploadrate'; +$wb['dl_ratio_txt'] = 'Downloadrate'; +$wb['ul_bandwidth_txt'] = 'Uploadbandbreite'; +$wb['dl_bandwidth_txt'] = 'Downloadbandbreite'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Benutzername'; +$wb['password_txt'] = 'Passwort'; +$wb['quota_size_txt'] = 'Festplatten Quota'; +$wb['active_txt'] = 'Aktiv'; +$wb['limit_ftp_user_txt'] = 'Die maximale Anzahl an FTP Benutzer für ihr Konto wurde erreicht.'; +$wb['username_error_empty'] = 'Benutzername ist leer.'; +$wb['username_error_unique'] = 'Der Benutzername muss einzigartig sein.'; +$wb['username_error_regex'] = 'Der Benutzername enthält nicht erlaubte Zeichen.'; +$wb['quota_size_error_empty'] = 'Quota ist leer.'; +$wb['uid_error_empty'] = 'GID ist leer.'; +$wb['directory_error_empty'] = 'Verzeichnis ist leer.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['directory_error_notinweb'] = 'Das Verzeichnis befindet sich nicht innerhalb des Verzeichnisses der Website.'; +$wb['parent_domain_id_error_empty'] = 'Keine Website ausgewählt.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_ftp_user_list.lng new file mode 100644 index 0000000..a2d162c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP Benutzer'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Benutzername'; +$wb['add_new_record_txt'] = 'Neuen FTP Benutzer hinzufügen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/de_shell_user.lng new file mode 100644 index 0000000..92589ee --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Benutzername'; +$wb['gid_txt'] = 'Gruppe'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Verzeichnis'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Benutzername'; +$wb['password_txt'] = 'Passwort'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Aktiv'; +$wb['username_error_empty'] = 'Benutzername ist leer.'; +$wb['username_error_unique'] = 'Der Benutzername muss eindeutig sein.'; +$wb['username_error_regex'] = 'Der Benutzername enthält ungültige Zeichen.'; +$wb['quota_size_error_empty'] = 'Quota ist leer'; +$wb['uid_error_empty'] = 'GID ist leer.'; +$wb['directory_error_empty'] = 'Verzeichnis ist leer.'; +$wb['limit_shell_user_txt'] = 'Die maximale Anzahl an Shellbenutzer wurde erreicht.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['parent_domain_id_error_empty'] = 'Keine Website ausgewählt.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_shell_user_list.lng new file mode 100644 index 0000000..cd82289 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shellbenutzer'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Benutzername'; +$wb['add_new_record_txt'] = 'Neuen Shellbenutzer hinzufügen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_aliasdomain_list.lng new file mode 100644 index 0000000..98fb1a3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Neue Aliasdomain hinzufügen'; +$wb['domain_error_empty'] = 'Domain ist leer.'; +$wb['domain_error_unique'] = 'Domain muss eindeutig sein.'; +$wb['domain_error_regex'] = 'Domainname ist ungültig.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_domain.lng new file mode 100644 index 0000000..d8cbfcd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Bundesland'; +$wb['ssl_locality_txt'] = 'Lokalität'; +$wb['ssl_organisation_txt'] = 'Firma'; +$wb['ssl_organisation_unit_txt'] = 'Abteilung'; +$wb['ssl_country_txt'] = 'Land'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Zertifikat'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Aktion'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Typ'; +$wb['redirect_path_txt'] = 'Redirect Pfad'; +$wb['active_txt'] = 'Aktiv'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux Benutzer'; +$wb['system_group_txt'] = 'Linux Gruppe'; +$wb['ip_address_txt'] = 'IP-Adresse'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Festplatten Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Kunde'; +$wb['limit_web_domain_txt'] = 'Die maximale Anzahl an Webdomains für ihr Konto wurde erreicht.'; +$wb['limit_web_aliasdomain_txt'] = 'Die maximale Anzahl an Aliasdomains für ihr Konto wurde erreicht.'; +$wb['limit_web_subdomain_txt'] = 'Die maximale Anzahl an Subdomains für ihr Konto wurde erreicht.'; +$wb['apache_directives_txt'] = 'Apache Direktiven'; +$wb['domain_error_empty'] = 'Domain ist leer.'; +$wb['domain_error_unique'] = 'Domain muss eindeutig sein'; +$wb['domain_error_regex'] = 'Domainname ungültig.'; +$wb['hd_quota_error_empty'] = 'Harddisk Quota ist leer.'; +$wb['traffic_quota_error_empty'] = 'Traffic Quota ist leer.'; +$wb['errordocs_txt'] = 'Eigene Fehlerseiten'; +$wb['error_ssl_state_empty'] = 'SSL Status ist leer.'; +$wb['error_ssl_locality_empty'] = 'SSL Lokalität ist leer.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation ist leer.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Abteilung ist leer.'; +$wb['error_ssl_country_empty'] = 'SSL Land ist leer.'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['client_group_id_txt'] = 'Kunde'; +$wb['stats_password_txt'] = 'Webstatistik Passwort'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. möglicher Festplatten Quota'; +$wb['ssl_state_error_regex'] = 'Ungültige SSL State. Gültige Zeichen sind: a-z, 0-9 und .,-_'; +$wb['ssl_locality_error_regex'] = 'Ungültige SSL Locality. Gülige Zeichen sind: a-z, 0-9 und .,-_'; +$wb['ssl_organisation_error_regex'] = 'Ungültige SSL Organisation. Gültige Zeichen sind: a-z, 0-9 und .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Ungültige SSL Organisation Unit. Gültige Zeichen sind: a-z, 0-9 und .,-_'; +$wb['ssl_country_error_regex'] = 'Ungültiges SSL Land. Gültige Zeichen sind: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. möglicher Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_domain_list.lng new file mode 100644 index 0000000..71f0e0a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Websites'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Neue Website hinzufügen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_sites_stats_list.lng new file mode 100644 index 0000000..660abfb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web Datenverkehr'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'Diesen Monat'; +$wb['last_month_txt'] = 'Letzten Monat'; +$wb['this_year_txt'] = 'Dieses Jahr'; +$wb['last_year_txt'] = 'Letztes Jahr'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain.lng new file mode 100644 index 0000000..8b1fa8d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Bundesland'; +$wb['ssl_locality_txt'] = 'Lokalität'; +$wb['ssl_organisation_txt'] = 'Unternehmen'; +$wb['ssl_organisation_unit_txt'] = 'Abteilung'; +$wb['ssl_country_txt'] = 'Land'; +$wb['ssl_request_txt'] = 'SSL Anfrage'; +$wb['ssl_cert_txt'] = 'SSL Zertifikat'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Aktion'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Typ'; +$wb['redirect_path_txt'] = 'Redirect Pfad'; +$wb['active_txt'] = 'Aktiv'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux Benutzer'; +$wb['system_group_txt'] = 'Linux Gruppe'; +$wb['ip_address_txt'] = 'IP-Adresse'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Festplatten Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Kunde'; +$wb['limit_web_domain_txt'] = 'Die maximale Anzahl an Webdomains für ihr Konto wurde erreicht.'; +$wb['limit_web_aliasdomain_txt'] = 'Die maximale Anzahl an Aliasdomains für ihr Konto wurde erreicht.'; +$wb['limit_web_subdomain_txt'] = 'Die maximale Anzahl an Web Subdomains für ihr Konto wurde erreicht.'; +$wb['apache_directives_txt'] = 'Apache Direktiven'; +$wb['domain_error_empty'] = 'Domain ist leer.'; +$wb['domain_error_unique'] = 'Domain muss eindeutig sein.'; +$wb['domain_error_regex'] = 'Domainname ist ungültig.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain_list.lng new file mode 100644 index 0000000..ba4fc6d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/de_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdomains'; +$wb['active_txt'] = 'Aktiv'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Subdomain'; +$wb['add_new_record_txt'] = 'Neue Subdomain hinzufügen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/en.lng b/interface/ispconfig/interface/sites/lib/lang/en.lng new file mode 100644 index 0000000..36c63bc --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Database'; +$wb['Options'] = 'Options'; +$wb['Shell User'] = 'Shell User'; +$wb['Domain'] = 'Domain'; +$wb['Website'] = 'Website'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain for website'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Aliasdomain for website'; +$wb['FTP-User'] = 'FTP-User'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-User'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb["Stats"] = 'Statistics'; +$wb["Cron"] = 'Cron'; +$wb["Cron Jobs"] = 'Cron Jobs'; +$wb["Statistics"] = 'Statistics'; +$wb["Web traffic"] = 'Web Traffic'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_cron.lng b/interface/ispconfig/interface/sites/lib/lang/en_cron.lng new file mode 100644 index 0000000..8cb7f08 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_cron_list.lng new file mode 100644 index 0000000..b5c8d15 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb["list_head_txt"] = 'Cron Jobs'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["run_min_txt"] = 'Minute'; +$wb["run_hour_txt"] = 'Hour'; +$wb["run_mday_txt"] = 'Day of month'; +$wb["run_month_txt"] = 'Month'; +$wb["run_wday_txt"] = 'Day of week'; +$wb["command_txt"] = 'Command'; +$wb["add_new_cron_txt"] = 'Add new Cron job'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_database.lng b/interface/ispconfig/interface/sites/lib/lang/en_database.lng new file mode 100644 index 0000000..48d7ea3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_database.lng @@ -0,0 +1,25 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Type'; +$wb["database_name_txt"] = 'Database name'; +$wb["database_user_txt"] = 'Database user'; +$wb["database_password_txt"] = 'Database password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["database_charset_txt"] = 'Database charset'; +$wb["remote_access_txt"] = 'Remote Access'; +$wb["remote_ips_txt"] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb["database_remote_error_ips"] = 'At least one of the entered ip addresses is invalid.'; +$wb["client_txt"] = 'Client'; +$wb["active_txt"] = 'Active'; +$wb["database_name_error_empty"] = 'Database name is empty.'; +$wb["database_name_error_unique"] = 'There is already a database with this name on the server. To get a unique name, e.g. prepend your domain name to the database name.'; +$wb["database_name_error_regex"] = 'Invalid database name. The database name may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["database_user_error_empty"] = 'Database user is empty.'; +$wb["database_user_error_unique"] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb["database_user_error_regex"] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["limit_database_txt"] = 'The max. number of databases is reached.'; +$wb["database_name_change_txt"] = 'The database name can not be changed'; +$wb["database_charset_change_txt"] = 'The database charset can not be changed'; +$wb["database_name_error_len"] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb["database_user_error_len"] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/en_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_database_list.lng new file mode 100644 index 0000000..ff599d2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_database_list.lng @@ -0,0 +1,9 @@ +<?php +$wb["list_head_txt"] = 'Database'; +$wb["active_txt"] = 'Active'; +$wb["remote_access_txt"] = 'Remote Access'; +$wb["server_id_txt"] = 'Server'; +$wb["database_user_txt"] = 'Database user'; +$wb["database_name_txt"] = 'Database name'; +$wb["add_new_record_txt"] = 'Add new Database'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/en_ftp_user.lng new file mode 100644 index 0000000..f5b1116 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_ftp_user.lng @@ -0,0 +1,28 @@ +<?php +$wb["uid_txt"] = 'UID'; +$wb["gid_txt"] = 'GID'; +$wb["dir_txt"] = 'Directory'; +$wb["quota_files_txt"] = 'Filequota'; +$wb["quota_files_unity_txt"] = 'Files'; +$wb["ul_ratio_txt"] = 'Uploadratio'; +$wb["dl_ratio_txt"] = 'Downloadratio'; +$wb["ul_bandwidth_txt"] = 'Uploadbandwidth'; +$wb["dl_bandwidth_txt"] = 'Downloadbandwidth'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["quota_size_txt"] = 'Harddisk-Quota'; +$wb["active_txt"] = 'Active'; +$wb["limit_ftp_user_txt"] = 'The max. number of FTP users for your account is reached.'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["username_error_regex"] = 'The username contains charachters that are not allowed.'; +$wb["quota_size_error_empty"] = 'Quota is empty.'; +$wb["uid_error_empty"] = 'UID empty.'; +$wb["uid_error_empty"] = 'GID empty.'; +$wb["directory_error_empty"] = 'Directory empty.'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb["parent_domain_id_error_empty"] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/en_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_ftp_user_list.lng new file mode 100644 index 0000000..2c4f87f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'FTP-User'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["username_txt"] = 'Username'; +$wb["add_new_record_txt"] = 'Add new FTP-User'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/en_shell_user.lng new file mode 100644 index 0000000..80e3e0a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_shell_user.lng @@ -0,0 +1,23 @@ +<?php +$wb["uid_txt"] = 'Web Username'; +$wb["gid_txt"] = 'Group'; +$wb["shell_txt"] = 'Shell'; +$wb["dir_txt"] = 'Dir'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Site'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["chroot_txt"] = 'Chroot Shell'; +$wb["quota_size_txt"] = 'Quota'; +$wb["active_txt"] = 'Active'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["username_error_regex"] = 'The username contains charachters that are not allowed.'; +$wb["quota_size_error_empty"] = 'Quota is empty.'; +$wb["uid_error_empty"] = 'UID empty.'; +$wb["uid_error_empty"] = 'GID empty.'; +$wb["directory_error_empty"] = 'Directory empty.'; +$wb["limit_shell_user_txt"] = 'The max number of shell users is reached.'; +$wb["parent_domain_id_error_empty"] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/en_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_shell_user_list.lng new file mode 100644 index 0000000..5b6f613 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Shell User'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Site'; +$wb["username_txt"] = 'Username'; +$wb["add_new_record_txt"] = 'Add new Shell-User'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_aliasdomain_list.lng new file mode 100644 index 0000000..3945d23 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb["list_head_txt"] = 'Aliasdomain'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["domain_txt"] = 'Aliasdomain'; +$wb["add_new_record_txt"] = 'Add new aliasdomain'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'Domain must be unique.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_domain.lng new file mode 100644 index 0000000..b26014d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_domain.lng @@ -0,0 +1,61 @@ +<?php +$wb["ssl_state_txt"] = 'State'; +$wb["ssl_locality_txt"] = 'Locality'; +$wb["ssl_organisation_txt"] = 'Organisation'; +$wb["ssl_organisation_unit_txt"] = 'Organisation Unit'; +$wb["ssl_country_txt"] = 'Country'; +$wb["ssl_request_txt"] = 'SSL Request'; +$wb["ssl_cert_txt"] = 'SSL Certificate'; +$wb["ssl_bundle_txt"] = 'SSL Bundle'; +$wb["ssl_action_txt"] = 'SSL Action'; +$wb["ssl_domain_txt"] = 'SSL Domain'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["parent_domain_id_txt"] = 'Parent Website'; +$wb["redirect_type_txt"] = 'Redirect Type'; +$wb["redirect_path_txt"] = 'Redirect Path'; +$wb["active_txt"] = 'Active'; +$wb["document_root_txt"] = 'Documentroot'; +$wb["system_user_txt"] = 'Linux User'; +$wb["system_group_txt"] = 'Linux Group'; +$wb["ip_address_txt"] = 'IP-Address'; +$wb["vhost_type_txt"] = 'VHost Type'; +$wb["hd_quota_txt"] = 'Harddisk Quota'; +$wb["traffic_quota_txt"] = 'Traffic Quota'; +$wb["cgi_txt"] = 'CGI'; +$wb["ssi_txt"] = 'SSI'; +$wb["errordocs_txt"] = 'Own Error-Documents'; +$wb["subdomain_txt"] = 'Auto-Subdomain'; +$wb["ssl_txt"] = 'SSL'; +$wb["suexec_txt"] = 'SuEXEC'; +$wb["php_txt"] = 'PHP'; +$wb["client_txt"] = 'Client'; +$wb["limit_web_domain_txt"] = 'The max. number of web domains for your account is reached.'; +$wb["limit_web_aliasdomain_txt"] = 'The max. number of aliasdomains for your account is reached.'; +$wb["limit_web_subdomain_txt"] = 'The max. number of web subdomains for your account is reached.'; +$wb["apache_directives_txt"] = 'Apache directives'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'There is already a website or sub / aliasdomain with this domain name.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +$wb["hd_quota_error_empty"] = 'Harddisk quota is 0 or empty.'; +$wb["traffic_quota_error_empty"] = 'Traffic quota is empty.'; +$wb['error_ssl_state_empty'] = 'SSL State is empty.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL Country is empty.'; +$wb["client_group_id_txt"] = 'Client'; +$wb["stats_password_txt"] = 'Webstatistics password'; +$wb["allow_override_txt"] = 'Allow Override'; +$wb["limit_web_quota_free_txt"] = 'Max. available Harddisk Quota'; +$wb["ssl_state_error_regex"] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb["ssl_locality_error_regex"] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb["ssl_organisation_error_regex"] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb["ssl_organistaion_unit_error_regex"] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota'; +$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb["php_open_basedir_txt"] = 'PHP open_basedir'; +$wb["traffic_quota_exceeded_txt"] = 'Traffic quota exceeded'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_domain_list.lng new file mode 100644 index 0000000..493350e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Websites'; +$wb["domain_id_txt"] = 'ID'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new website'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_sites_stats_list.lng new file mode 100644 index 0000000..20f018b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Web traffic'; +$wb["domain_txt"] = 'Domain'; +$wb["this_month_txt"] = 'This month'; +$wb["last_month_txt"] = 'Last month'; +$wb["this_year_txt"] = 'This year'; +$wb["last_year_txt"] = 'Last year'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain.lng new file mode 100644 index 0000000..6bd3b08 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb["ssl_state_txt"] = 'State'; +$wb["ssl_locality_txt"] = 'Locality'; +$wb["ssl_organisation_txt"] = 'Organisation'; +$wb["ssl_organisation_unit_txt"] = 'Organisation Unit'; +$wb["ssl_country_txt"] = 'Country'; +$wb["ssl_request_txt"] = 'SSL Request'; +$wb["ssl_cert_txt"] = 'SSL Certificate'; +$wb["ssl_bundle_txt"] = 'SSL Bundle'; +$wb["ssl_action_txt"] = 'SSL Action'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["parent_domain_id_txt"] = 'Parent Website'; +$wb["redirect_type_txt"] = 'Redirect Type'; +$wb["redirect_path_txt"] = 'Redirect Path'; +$wb["active_txt"] = 'Active'; +$wb["document_root_txt"] = 'Documentroot'; +$wb["system_user_txt"] = 'Linux User'; +$wb["system_group_txt"] = 'Linux Group'; +$wb["ip_address_txt"] = 'IP-Address'; +$wb["vhost_type_txt"] = 'VHost Type'; +$wb["hd_quota_txt"] = 'Harddisk Quota'; +$wb["traffic_quota_txt"] = 'Traffic Quaota'; +$wb["cgi_txt"] = 'CGI'; +$wb["ssi_txt"] = 'SSI'; +$wb["ssl_txt"] = 'SSL'; +$wb["suexec_txt"] = 'SuEXEC'; +$wb["php_txt"] = 'PHP'; +$wb["client_txt"] = 'Client'; +$wb["limit_web_domain_txt"] = 'The max. number of web domains for your account is reached.'; +$wb["limit_web_aliasdomain_txt"] = 'The max. number of aliasdomains for your account is reached.'; +$wb["limit_web_subdomain_txt"] = 'The max. number of web subdomains for your account is reached.'; +$wb["apache_directives_txt"] = 'Apache directives'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'There is already a website or sub / aliasdomain with this domain name.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +$wb["host_txt"] = 'Host'; +$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain_list.lng new file mode 100644 index 0000000..8273dbd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/en_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Subdomains'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["domain_txt"] = 'Subdomain'; +$wb["add_new_record_txt"] = 'Add new subdomain'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/es.lng b/interface/ispconfig/interface/sites/lib/lang/es.lng new file mode 100644 index 0000000..29ce8de --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Base de datos'; +$wb['Options'] = 'Opciones'; +$wb['Shell User'] = 'Usuario de consola (shell)'; +$wb['Domain'] = 'Dominio'; +$wb['Redirect'] = 'Redirección'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdominio'; +$wb['Sites'] = 'Sitios'; +$wb['Aliasdomain'] = 'Alias de dominio'; +$wb['FTP-User'] = 'Usuario FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Usuario de consola'; +$wb['Shell'] = 'Consola (shell)'; +$wb['Websites'] = 'Sitios web'; +$wb['Stats'] = 'Estadísticas'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_cron.lng b/interface/ispconfig/interface/sites/lib/lang/es_cron.lng new file mode 100644 index 0000000..cce69f3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio web padre'; +$wb['active_txt'] = 'Activar'; +$wb['client_txt'] = 'Cliente'; +$wb['run_min_txt'] = 'Minutos'; +$wb['run_hour_txt'] = 'Horas'; +$wb['run_mday_txt'] = 'Días del mes'; +$wb['run_month_txt'] = 'Meses'; +$wb['run_wday_txt'] = 'Días de la semana'; +$wb['command_txt'] = 'Comando a ejecutar (los comandos son ejecutados via sh y las URLs via wget)'; +$wb['limit_cron_txt'] = 'Se ha alcanzado el número máximo de tareas cron.'; +$wb['limit_cron_frequency_txt'] = 'La frecuencia de la tarea cron excede el límite permitido.'; +$wb['run_min_error_format'] = 'Formato no válido para los minutos.'; +$wb['run_hour_error_format'] = 'Formato no válido para las horas.'; +$wb['run_mday_error_format'] = 'Formato no válido para los días del mes.'; +$wb['run_month_error_format'] = 'Formato no válido para los meses.'; +$wb['run_wday_error_format'] = 'Formato no válido para los días de la semana.'; +$wb['command_error_format'] = 'Formato de comando no válido. En el caso de las llamadas a URLs sólo se permite http o https.'; +$wb['unknown_fieldtype_error'] = 'Se ha usado un tipo de campo desconocido.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_cron_list.lng new file mode 100644 index 0000000..f2d2ce4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Tareas cron'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['run_min_txt'] = 'Minuto'; +$wb['run_hour_txt'] = 'Hora'; +$wb['run_mday_txt'] = 'Día del mes'; +$wb['run_month_txt'] = 'Mes'; +$wb['run_wday_txt'] = 'Día de la semana'; +$wb['command_txt'] = 'Comando'; +$wb['add_new_cron_txt'] = 'Añadir nueva tarea cron'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_database.lng b/interface/ispconfig/interface/sites/lib/lang/es_database.lng new file mode 100644 index 0000000..70df8ee --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['database_name_txt'] = 'Nombre BD'; +$wb['database_user_txt'] = 'Usuario BD'; +$wb['database_password_txt'] = 'Contraseña usuario BD'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['database_charset_txt'] = 'Tabla de caracteres BD'; +$wb['remote_access_txt'] = 'Acceso remoto'; +$wb['client_txt'] = 'Cliente'; +$wb['active_txt'] = 'Activar'; +$wb['database_name_error_empty'] = 'El nombre de la base de datos está vacío'; +$wb['database_name_error_unique'] = 'Ya existe una base de datos con este nombre. Para conseguir un nombre único, anteponga su nombre de dominio al nombre de la base de datos'; +$wb['database_name_error_regex'] = 'El nombre de la base de datos no es válido. El nombre de la base de datos puede contener estos caracteres: a-z, A-Z, 0-9 y _ (sin ñ;ç;áéíóú ni signos de puntuación). Longitud: 2-64 caracteres.'; +$wb['database_user_error_empty'] = 'El usuario de la base de datos está vacío'; +$wb['database_user_error_unique'] = 'Ya existe un usuario de base de datos con este nombre. Para conseguir un nombre único, anteponga su nombre de dominio al nombre del usuario'; +$wb['database_user_error_regex'] = 'El nombre de usuario no es válido. El nombre del usuario de la base de datos puede contener estos caracteres: a-z, A-Z, 0-9 y _ (sin ñ;ç;áéíóú ni signos de puntuación). Longitud: 2-64 caracteres.'; +$wb['limit_database_txt'] = 'Se ha alcanzado el número máximo de bases de datos'; +$wb['database_name_change_txt'] = 'El nombre de la base de datos no se puede cambiar'; +$wb['database_charset_change_txt'] = 'La tabla de caracteres de la base de datos no se puede cambiar'; +$wb['remote_ips_txt'] = 'IPs de acceso remoto (separadas por ,) (dejar en blanco para admitir <i>cualquiera</i>)'; +$wb['database_remote_error_ips'] = 'Al menos una de las IP introducidas no es válida.'; +$wb['database_name_error_len'] = 'El nombre de la base de datos - {db} - es demasiado largo. La longitud máxima del nombre de la base de datos, incluyendo el prefijo, es de 64 caracteres.'; +$wb['database_user_error_len'] = 'El nombre de usuario de la base de datos - {user}- es demasiado largo. La longitud máxima del nombre de usuario de la base de datos, incluyendo el prefijo, es de 16 caracteres.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_database_list.lng new file mode 100644 index 0000000..66fcbdc --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Base de datos'; +$wb['active_txt'] = 'Activar'; +$wb['remote_access_txt'] = 'Acceso remoto'; +$wb['server_id_txt'] = 'Servidor'; +$wb['database_name_txt'] = 'Nombre de la base de datos'; +$wb['add_new_record_txt'] = 'Añadir nueva base de datos'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/es_ftp_user.lng new file mode 100644 index 0000000..efa6f33 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Directorio'; +$wb['quota_files_txt'] = 'Cuota de ficheros'; +$wb['ul_ratio_txt'] = 'Velocidad de subida'; +$wb['dl_ratio_txt'] = 'Velocidad de bajada'; +$wb['ul_bandwidth_txt'] = 'Ancho de banda de subida'; +$wb['dl_bandwidth_txt'] = 'Ancho de banda de bajada'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio web'; +$wb['username_txt'] = 'Usuario'; +$wb['password_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['quota_size_txt'] = 'Cuota de disco'; +$wb['active_txt'] = 'Activar'; +$wb['limit_ftp_user_txt'] = 'Se ha alcanzado el número máximo de usuarios FTP'; +$wb['username_error_empty'] = 'El usuario está vacío'; +$wb['username_error_unique'] = 'El usuario debe ser único'; +$wb['username_error_regex'] = 'El usuario contiene caracteres no válidos'; +$wb['quota_size_error_empty'] = 'Cuota vacía'; +$wb['uid_error_empty'] = 'GID vacío'; +$wb['directory_error_empty'] = 'Directorio vacío'; +$wb['quota_files_unity_txt'] = 'Ficheros'; +$wb['directory_error_notinweb'] = 'El directorio no está dentro del directorio web raíz.'; +$wb['parent_domain_id_error_empty'] = 'No se ha seleccionado un sitio web.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_ftp_user_list.lng new file mode 100644 index 0000000..c965523 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Usuario FTP'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio web'; +$wb['username_txt'] = 'Usuario'; +$wb['add_new_record_txt'] = 'Añadir nuevo usuario FTP'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/es_shell_user.lng new file mode 100644 index 0000000..6bafd70 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Usuario web'; +$wb['gid_txt'] = 'Grupo'; +$wb['shell_txt'] = 'Consola (shell)'; +$wb['dir_txt'] = 'Dir'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio'; +$wb['username_txt'] = 'Usuario'; +$wb['password_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['chroot_txt'] = 'Consola chroot'; +$wb['quota_size_txt'] = 'Cuota'; +$wb['active_txt'] = 'Activar'; +$wb['username_error_empty'] = 'El usuario está vacío'; +$wb['username_error_unique'] = 'El nombre de usuario debe ser único'; +$wb['username_error_regex'] = 'El nombre de usuario contiene caracteres no permitidos'; +$wb['quota_size_error_empty'] = 'Cuota vacía'; +$wb['uid_error_empty'] = 'GID vacío'; +$wb['directory_error_empty'] = 'Directorio vacío'; +$wb['limit_shell_user_txt'] = 'Se ha alcanzado el número máximo de usuarios de consola'; +$wb['parent_domain_id_error_empty'] = 'No se ha seleccionado un sitio web.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_shell_user_list.lng new file mode 100644 index 0000000..a64cc4e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Usuario de consola'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio'; +$wb['username_txt'] = 'Usuario'; +$wb['add_new_record_txt'] = 'Añadir nuevo usuario de consola'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_aliasdomain_list.lng new file mode 100644 index 0000000..a383b3d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Alias de dominio'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio web'; +$wb['domain_txt'] = 'Alias de dominio'; +$wb['add_new_record_txt'] = 'Añadir nuevo alias de dominio'; +$wb['domain_error_empty'] = 'El dominio está vacío'; +$wb['domain_error_unique'] = 'El domino debe ser único'; +$wb['domain_error_regex'] = 'El nombre de dominio no es válido'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_domain.lng new file mode 100644 index 0000000..feaa532 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Provincia/Estado'; +$wb['ssl_locality_txt'] = 'Localidad'; +$wb['ssl_organisation_txt'] = 'Organización'; +$wb['ssl_organisation_unit_txt'] = 'Unidad de la organización'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Petición SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'Paquete SSL'; +$wb['ssl_action_txt'] = 'Acción SSL'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Sitio web padre'; +$wb['redirect_type_txt'] = 'Tipo de redirección'; +$wb['redirect_path_txt'] = 'Ruta de redirección'; +$wb['active_txt'] = 'Activar'; +$wb['document_root_txt'] = 'Carpeta inicial'; +$wb['system_user_txt'] = 'Usuario Linux'; +$wb['system_group_txt'] = 'Grupo Linux'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['vhost_type_txt'] = 'Tipo vhost'; +$wb['hd_quota_txt'] = 'Cuota de disco'; +$wb['traffic_quota_txt'] = 'Cuota de tráfico'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Documentos de error propios'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'Se ha alcanzado el número máximo de dominios web de esta cuenta'; +$wb['limit_web_aliasdomain_txt'] = 'Se ha alcanzado el número máximo de alias de dominios de esta cuenta'; +$wb['limit_web_subdomain_txt'] = 'Se ha alcanzado el número máximo de subdominios web de esta cuenta'; +$wb['apache_directives_txt'] = 'Directivas de Apache'; +$wb['domain_error_empty'] = 'El dominio está vacío'; +$wb['domain_error_unique'] = 'El dominio debe ser único'; +$wb['domain_error_regex'] = 'El dominio no es válido'; +$wb['hd_quota_error_empty'] = 'La cuota de disco está vacía'; +$wb['traffic_quota_error_empty'] = 'La cuota de tráfico está vacía'; +$wb['error_ssl_state_empty'] = 'Provincia/Estado SSL está vacío'; +$wb['error_ssl_locality_empty'] = 'Localidad SSL está vacío'; +$wb['error_ssl_organisation_empty'] = 'Organización SSL está vacío'; +$wb['error_ssl_organisation_unit_empty'] = 'Unidad de organización de SSL está vacío'; +$wb['error_ssl_country_empty'] = 'País SSL está vacío'; +$wb['subdomain_txt'] = 'Autosubdominio'; +$wb['client_group_id_txt'] = 'Cliente'; +$wb['stats_password_txt'] = 'Contraseña de estadísticas web'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_domain_list.lng new file mode 100644 index 0000000..f0248c5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sitios web'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['add_new_record_txt'] = 'Añadir nuevo sitio web'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_sites_stats_list.lng new file mode 100644 index 0000000..8c31b6f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Tráfico web'; +$wb['domain_txt'] = 'Dominio'; +$wb['this_month_txt'] = 'Este mes'; +$wb['last_month_txt'] = 'Último mes'; +$wb['this_year_txt'] = 'Este año'; +$wb['last_year_txt'] = 'Último año'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain.lng new file mode 100644 index 0000000..0b799cc --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Estado o provincia'; +$wb['ssl_locality_txt'] = 'Localidad'; +$wb['ssl_organisation_txt'] = 'Organización'; +$wb['ssl_organisation_unit_txt'] = 'Unidad de la organización'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Solicitud SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'Paquete SSL (Bundle)'; +$wb['ssl_action_txt'] = 'Acción SSL'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Dominio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Sitio web padre'; +$wb['redirect_type_txt'] = 'Tipo de redirección'; +$wb['redirect_path_txt'] = 'Ruta de redirección'; +$wb['active_txt'] = 'Activar'; +$wb['document_root_txt'] = 'DocumentRoot'; +$wb['system_user_txt'] = 'Usuario Linux'; +$wb['system_group_txt'] = 'Grupo Linux'; +$wb['ip_address_txt'] = 'Dirección IP'; +$wb['vhost_type_txt'] = 'Tipo VHost'; +$wb['hd_quota_txt'] = 'Cuota de disco duro'; +$wb['traffic_quota_txt'] = 'Cuota de tráfico web'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'Se ha alcanzado el número máximo de dominios web de su cuenta.'; +$wb['limit_web_aliasdomain_txt'] = 'Se ha alcanzado el número máximo de alias de dominio de su cuenta.'; +$wb['limit_web_subdomain_txt'] = 'Se ha alcanzado el número máximo de subdominios de su cuenta.'; +$wb['apache_directives_txt'] = 'Directivas de Apache'; +$wb['domain_error_empty'] = 'El dominio está vacío.'; +$wb['domain_error_unique'] = 'El dominio debe ser único.'; +$wb['domain_error_regex'] = 'El nombre de dominio no es válido.'; +$wb['host_txt'] = 'Alojamiento'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain_list.lng new file mode 100644 index 0000000..2b3afa5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/es_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdominio'; +$wb['active_txt'] = 'Activar'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Sitio web'; +$wb['domain_txt'] = 'Subdominio'; +$wb['add_new_record_txt'] = 'Añadir nuevo subdominio'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi.lng b/interface/ispconfig/interface/sites/lib/lang/fi.lng new file mode 100644 index 0000000..4e6e6b6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Tietokanta'; +$wb['Options'] = 'Asetukset'; +$wb['Shell User'] = 'Shell-käyttäjä'; +$wb['Domain'] = 'Verkkotunnus'; +$wb['Redirect'] = 'Edelleenohjaus'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Aliverkkotunnus'; +$wb['Sites'] = 'Verkkotunnukset'; +$wb['Aliasdomain'] = 'Aliasverkkotunnus'; +$wb['FTP-User'] = 'FTP-käyttäjätunnus'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-käyttäjä'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Verkkotunnukset'; +$wb['Stats'] = 'Tilastot'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_cron.lng b/interface/ispconfig/interface/sites/lib/lang/fi_cron.lng new file mode 100644 index 0000000..648b85c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Omistava verkkotunnus'; +$wb['active_txt'] = 'Käytössä'; +$wb['client_txt'] = 'Asiakas'; +$wb['run_min_txt'] = 'Minuutit'; +$wb['run_hour_txt'] = 'Tunnit'; +$wb['run_mday_txt'] = 'Päivämäärät'; +$wb['run_month_txt'] = 'Kuukaudet'; +$wb['run_wday_txt'] = 'Viikonpäivät'; +$wb['command_txt'] = 'Suoritettava komento (komennot suoritetaan käyttäen ohjelmaa sh, url-tehtävät ohjelmalla wget)'; +$wb['limit_cron_txt'] = 'Käyttäjätunnuksen sallittu ajastettujen tehtävien määrä on saavutettu.'; +$wb['limit_cron_frequency_txt'] = 'Ajastettujen tehtävien suoritusväli on pienenmpi kuin sallittu.'; +$wb['run_min_error_format'] = 'Minuutti-asetus on vääranlainen.'; +$wb['run_hour_error_format'] = 'Tunti-asetus on vääranlainen'; +$wb['run_mday_error_format'] = 'Päivämäärä-asetus on vääranlainen'; +$wb['run_month_error_format'] = 'Kuukausi-asetus on vääranlainen'; +$wb['run_wday_error_format'] = 'Viikonpäivä-asetus on vääranlainen'; +$wb['command_error_format'] = 'Komento-asetus on vääranlainen. Huomaa että url-komennoissa vain http/https-osoitteet ovat sallittuja.'; +$wb['unknown_fieldtype_error'] = 'Käytetty tuntematonta kenttätyyppiä.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_cron_list.lng new file mode 100644 index 0000000..b5072ec --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Ajastetut tehtävät'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['run_min_txt'] = 'Minuutit'; +$wb['run_hour_txt'] = 'Tunnit'; +$wb['run_mday_txt'] = 'Päivämäärät'; +$wb['run_month_txt'] = 'Kuukaudet'; +$wb['run_wday_txt'] = 'Viikonpäivät'; +$wb['command_txt'] = 'Suoritettava komento'; +$wb['add_new_cron_txt'] = 'Lisää uusi ajastettu tehtävä'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_database.lng b/interface/ispconfig/interface/sites/lib/lang/fi_database.lng new file mode 100644 index 0000000..2d2dcd8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Palvelin'; +$wb['type_txt'] = 'Tyyppi'; +$wb['database_name_txt'] = 'Tietokannan nimi'; +$wb['database_user_txt'] = 'Tietokannan käyttäjä'; +$wb['database_password_txt'] = 'Tietokannan salasana'; +$wb['remote_access_txt'] = 'Tietokannan etäyhteys'; +$wb['client_txt'] = 'Asiakas'; +$wb['active_txt'] = 'Käytössä'; +$wb['database_name_error_empty'] = 'Tietokanta on tyhjä.'; +$wb['database_name_error_unique'] = 'Palvelimella on jo tämän niminen tietokanta. Lisää vaikka verkkotunnuksesi tieokannan nimeen.'; +$wb['database_name_error_regex'] = 'Tietokannan nimi on väärän muotoinen. Tietokannan nimi voi sisältää vain merkkejä a-z, A-Z, 0-9 ja alaviivan (_). Pituus 2 - 64 merkkiä.'; +$wb['database_user_error_empty'] = 'Tietokannan käyttäjä on tyhjä.'; +$wb['database_user_error_unique'] = 'Palvelimella on jo tämän niminen tietokantakäyttäjä. Lisää vaikka verkkotunnuksesi tietokantakäyttäjän nimeen.'; +$wb['database_user_error_regex'] = 'Tietokannan Käyttäjätunnus on väärän muotoinen. Tietokantakäyttäjän nimi voi sisältää vain merkkejä a-z, A-Z, 0-9 ja alaviivan (_). Pituus 2 - 64 merkkiä.'; +$wb['limit_database_txt'] = 'Tietokantojen sallittu määrä on ylitetty.'; +$wb['database_name_change_txt'] = 'Tietokannan nimeä ei voi vaihtaa'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['database_charset_txt'] = 'Tietokannan merkistö'; +$wb['database_charset_change_txt'] = 'Tietokannan merkistöä ei voi vaihtaa'; +$wb['remote_ips_txt'] = 'Etäkäytön ip-osoittteet (pilkulla erotettu lista, jätä tyhjäksi jos haluat sallia <i>kaikki</i>)'; +$wb['database_remote_error_ips'] = 'Ainakin yksi annetuista ip-osoitteista on väärin.'; +$wb['database_name_error_len'] = 'Tietokannan nimi on liian pitkä. Nimen enimmäispituus etuliite mukaanlukien on 64 merkkiä.'; +$wb['database_user_error_len'] = 'Tietokanan käyttäjän nimi on liian pitkä. Nimen enimmäispituus etuliite mukaanlukien on 16 merkkiä.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_database_list.lng new file mode 100644 index 0000000..a231a6f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Tietokanta'; +$wb['active_txt'] = 'Käytössä'; +$wb['remote_access_txt'] = 'Etäyhteys'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['database_name_txt'] = 'Tietokannnan nimi'; +$wb['add_new_record_txt'] = 'Lisää uusi tietokanta'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user.lng new file mode 100644 index 0000000..3e6da30 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'Käyttäjätunnus'; +$wb['gid_txt'] = 'Käyttäjäryhmä'; +$wb['dir_txt'] = 'Kotihakemisto'; +$wb['quota_files_txt'] = 'Tiedostomäärä'; +$wb['ul_ratio_txt'] = 'Lähetysraja'; +$wb['dl_ratio_txt'] = 'Latausraja'; +$wb['ul_bandwidth_txt'] = 'Lähetyksen nopeusraja'; +$wb['dl_bandwidth_txt'] = 'Latauksen nopeusraja'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Verkkotunnus'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['password_txt'] = 'Salasana'; +$wb['quota_size_txt'] = 'Levytila'; +$wb['active_txt'] = 'Käytössä'; +$wb['limit_ftp_user_txt'] = 'Käyttäjätunnuksella on jo sallittu määrä FTP-käyttäjätunnuksia'; +$wb['username_error_empty'] = 'Käyttäjätunnus-kenttä on tyhjä.'; +$wb['username_error_unique'] = 'Tämä käyttäjätunnus on jo olemassa.'; +$wb['username_error_regex'] = 'Käyttäjätunnus sisältää kiellettyjä merkkejä.'; +$wb['quota_size_error_empty'] = 'Levytila-kenttä on tyhjä.'; +$wb['uid_error_empty'] = 'Käyttäjäryhmä-kenttä on tyhjä.'; +$wb['directory_error_empty'] = 'Kotihakemisto-kenttä on tyhjä.'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['quota_files_unity_txt'] = 'Tiedostot'; +$wb['directory_error_notinweb'] = 'Kansio ei ole www-juurikansion sisällä.'; +$wb['parent_domain_id_error_empty'] = 'Ei www-sivua valittuna.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user_list.lng new file mode 100644 index 0000000..81c60b6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP-käyttäjätunnus'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Verkkotunnus'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi FTP-käyttäjätunnus'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/fi_shell_user.lng new file mode 100644 index 0000000..94d8ca8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Hallintapaneelin käyttäjätunnus'; +$wb['gid_txt'] = 'Käyttäjäryhmä'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Kansio'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Sivusto'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['password_txt'] = 'Salasana'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Levytila'; +$wb['active_txt'] = 'Käytössä'; +$wb['username_error_empty'] = 'Käyttäjätunnus on tyhjä.'; +$wb['username_error_unique'] = 'Käyttäjänimen pitää olla yksilöllinen.'; +$wb['username_error_regex'] = 'Käyttäjätunnus sisältää kiellettyjä merkkejä.'; +$wb['quota_size_error_empty'] = 'Levytila-kenttä on tyhjä.'; +$wb['uid_error_empty'] = 'Käyttäjä-ID-kenttä on tyhjä.'; +$wb['directory_error_empty'] = 'Kansio-kenttä on tyhjä.'; +$wb['limit_shell_user_txt'] = 'Shell-käyttäjien määrä on ylitetty.'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['parent_domain_id_error_empty'] = 'Ei www-sivua valittuna.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_shell_user_list.lng new file mode 100644 index 0000000..c09edb2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell-käyttäjä'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Verkkotunnus'; +$wb['username_txt'] = 'Käyttäjätunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi Shell-käyttäjä'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_aliasdomain_list.lng new file mode 100644 index 0000000..8f5c5cc --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasverkkotunnus'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Sivusto'; +$wb['domain_txt'] = 'Aliasverkkotunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi aliasverkkotunnus'; +$wb['domain_error_empty'] = 'Aliasverkkotunnus on tyhjä.'; +$wb['domain_error_unique'] = 'Tämä aliasverkkotunnus on jo olemassa.'; +$wb['domain_error_regex'] = 'Aliasverkkotunnus on vääränlainen.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_domain.lng new file mode 100644 index 0000000..9845b3c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Lääni'; +$wb['ssl_locality_txt'] = 'Lokaali'; +$wb['ssl_organisation_txt'] = 'Organisaatio'; +$wb['ssl_organisation_unit_txt'] = 'Organisaatioyksikkö'; +$wb['ssl_country_txt'] = 'Maa'; +$wb['ssl_request_txt'] = 'SSL-pyyntö'; +$wb['ssl_cert_txt'] = 'SSL-sertifikaatti'; +$wb['ssl_bundle_txt'] = 'SSL-paketti'; +$wb['ssl_action_txt'] = 'SSL-toiminto'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['parent_domain_id_txt'] = 'Pääsivusto'; +$wb['redirect_type_txt'] = 'Edelleenohjauksen tyyppi'; +$wb['redirect_path_txt'] = 'Edelleenohjausosoite'; +$wb['active_txt'] = 'Käytössä'; +$wb['document_root_txt'] = 'Dokumenttikansio'; +$wb['system_user_txt'] = 'Linux-käyttäjä'; +$wb['system_group_txt'] = 'Käyttäjäryhmä'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['vhost_type_txt'] = 'Virtuaali-isännän tyyppi'; +$wb['hd_quota_txt'] = 'Levytila'; +$wb['traffic_quota_txt'] = 'Liikenneraja'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Asiakas'; +$wb['limit_web_domain_txt'] = 'Käyttäjtunnuksella on jo sallittu määrä verkkotunnuksia.'; +$wb['limit_web_aliasdomain_txt'] = 'Käyttäjtunnuksella on jo sallittu määrä aliasverkkotunnuksia.'; +$wb['limit_web_subdomain_txt'] = 'Käyttäjtunnuksella on jo sallittu määrä aliverkkotunnuksia.'; +$wb['apache_directives_txt'] = 'Apachen direktiivit'; +$wb['domain_error_empty'] = 'Verkkotunnus-kenttä on tyhjä.'; +$wb['domain_error_unique'] = 'Tämä verkkotunnus on jo olemassa.'; +$wb['domain_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['hd_quota_error_empty'] = 'Levytila-kenttä on tyhjä.'; +$wb['traffic_quota_error_empty'] = 'Liikenneraja-kenttä on tyhjä.'; +$wb['errordocs_txt'] = 'Omat virhesivut'; +$wb['subdomain_txt'] = 'Automaattinen aliverkkotunnus'; +$wb['error_ssl_state_empty'] = 'SSL-lääni-kenttä on tyhjä.'; +$wb['error_ssl_locality_empty'] = 'SSL-lokaali-kenttä on tyhjä.'; +$wb['error_ssl_organisation_empty'] = 'SSL-organisaatio-kenttä on tyhjä.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL-organisaatioyksikkö-kenttä on tyhjä.'; +$wb['error_ssl_country_empty'] = 'SSL-maa-kenttä on tyhjä.'; +$wb['client_group_id_txt'] = 'Asiakas'; +$wb['stats_password_txt'] = 'Tilastoinnin salasana'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_domain_list.lng new file mode 100644 index 0000000..8f5691c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Verkkotunnukset'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi verkkotunnus'; +$wb['domain_id_txt'] = 'Verkkotunnus'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_sites_stats_list.lng new file mode 100644 index 0000000..3d9b079 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Liikennemäärät'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['this_month_txt'] = 'Tässä kuussa'; +$wb['last_month_txt'] = 'Viime kuussa'; +$wb['this_year_txt'] = 'Tänä vuonna'; +$wb['last_year_txt'] = 'Viime vuonna'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain.lng new file mode 100644 index 0000000..79f789e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Lääni'; +$wb['ssl_locality_txt'] = 'Lokaali'; +$wb['ssl_organisation_txt'] = 'Organisaatio'; +$wb['ssl_organisation_unit_txt'] = 'Organisaatoyksikkö'; +$wb['ssl_country_txt'] = 'Maa'; +$wb['ssl_request_txt'] = 'SSL-pyyntö'; +$wb['ssl_cert_txt'] = 'SSL-sertifikaatti'; +$wb['ssl_bundle_txt'] = 'SSL-paketti'; +$wb['ssl_action_txt'] = 'SSL-toiminto'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['domain_txt'] = 'Verkkotunnus'; +$wb['type_txt'] = 'Tyyppi'; +$wb['parent_domain_id_txt'] = 'Pääsivu'; +$wb['redirect_type_txt'] = 'Edelleenohjauksen tyyppi'; +$wb['redirect_path_txt'] = 'Edelleenohjausosoite'; +$wb['active_txt'] = 'Käytössä'; +$wb['document_root_txt'] = 'Dokumentikansio'; +$wb['system_user_txt'] = 'Linux-käyttäjä'; +$wb['system_group_txt'] = 'Käyttäjäryhmä'; +$wb['ip_address_txt'] = 'IP-osoite'; +$wb['vhost_type_txt'] = 'Virtuaali-isännän tyyppi'; +$wb['hd_quota_txt'] = 'Levytila'; +$wb['traffic_quota_txt'] = 'Liikenneraja'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Asiakas'; +$wb['limit_web_domain_txt'] = 'Käytttäjätunnuksella on jo sallittu määrä verkkotunnuksia.'; +$wb['limit_web_aliasdomain_txt'] = 'Käytttäjätunnuksella on jo sallittu määrä aliasverkkotunnuksia.'; +$wb['limit_web_subdomain_txt'] = 'Käytttäjätunnuksella on jo sallittu määrä aliverkkotunnuksia.'; +$wb['apache_directives_txt'] = 'Apachen direktiivit'; +$wb['domain_error_empty'] = 'Verkkotunnus-kenttä on tyhjä.'; +$wb['domain_error_unique'] = 'Tämä verkkotunnus on jo olemassa.'; +$wb['domain_error_regex'] = 'Verkkotunnus on vääränlainen.'; +$wb['host_txt'] = 'Isäntä'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain_list.lng new file mode 100644 index 0000000..31fb170 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fi_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aliverkkotunnukset'; +$wb['active_txt'] = 'Käytössä'; +$wb['server_id_txt'] = 'Palvelin'; +$wb['parent_domain_id_txt'] = 'Pääverkkotunnus'; +$wb['domain_txt'] = 'Aliverkkotunnus'; +$wb['add_new_record_txt'] = 'Lisää uusi aliverkkotunnus'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr.lng b/interface/ispconfig/interface/sites/lib/lang/fr.lng new file mode 100644 index 0000000..11bf18e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Base de données'; +$wb['Options'] = 'Options'; +$wb['Shell User'] = 'Utilisateur Shell'; +$wb['Domain'] = 'Domaine'; +$wb['Redirect'] = 'Redirection'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Sous-domaine'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Alias'; +$wb['FTP-User'] = 'Utilisateur FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Utilisateur Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Sites Web'; +$wb['Stats'] = 'Statistiques'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_cron.lng b/interface/ispconfig/interface/sites/lib/lang/fr_cron.lng new file mode 100644 index 0000000..67722ca --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site Parent'; +$wb['active_txt'] = 'Actif'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Heures'; +$wb['run_mday_txt'] = 'Jours du mois'; +$wb['run_month_txt'] = 'Mois'; +$wb['run_wday_txt'] = 'Jours de la semaine'; +$wb['command_txt'] = 'Commande à éxécuter (commandes via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'La maximum de cron autorisés a été atteint.'; +$wb['limit_cron_frequency_txt'] = 'La fréquence du cron excède la limite autorisée.'; +$wb['run_min_error_format'] = 'Format invalide pour les minutes.'; +$wb['run_hour_error_format'] = 'Format invalide pour les heures.'; +$wb['run_mday_error_format'] = 'Format invalide pour les jours du mois.'; +$wb['run_month_error_format'] = 'Format invalide pour les mois.'; +$wb['run_wday_error_format'] = 'Format invalide pour les jours du mois.'; +$wb['command_error_format'] = 'Format de la commande invalide.'; +$wb['unknown_fieldtype_error'] = 'Un champ inconnu a été utilisé'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_cron_list.lng new file mode 100644 index 0000000..72bd119 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Crons'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Heure'; +$wb['run_mday_txt'] = 'Jour du mois'; +$wb['run_month_txt'] = 'Mois'; +$wb['run_wday_txt'] = 'Jour de la semaine'; +$wb['command_txt'] = 'Commande'; +$wb['add_new_cron_txt'] = 'Nouveau Cron'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_database.lng b/interface/ispconfig/interface/sites/lib/lang/fr_database.lng new file mode 100644 index 0000000..a8e5a19 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Serveur'; +$wb['type_txt'] = 'Type'; +$wb['database_name_txt'] = 'Nom de la base'; +$wb['database_user_txt'] = 'Nom dutilisateur'; +$wb['database_password_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du pass'; +$wb['database_charset_txt'] = 'Charset de la base'; +$wb['remote_access_txt'] = 'Accès à Distance'; +$wb['client_txt'] = 'Client'; +$wb['active_txt'] = 'Actif'; +$wb['database_name_error_empty'] = 'Le nom de la base ne peut être vide.'; +$wb['database_name_error_unique'] = 'Il y a déja une base portant ce nom sur le serveur.'; +$wb['database_name_error_regex'] = 'Nom de la base incorrect. Le nom de la base peut uniquement contenir ces caractères: a-z, A-Z, 0-9 et le tiret bas. Taille: 2 - 64 caractères.'; +$wb['database_user_error_empty'] = 'Le nom dutilisateur ne peut être vide.'; +$wb['database_user_error_unique'] = 'Il y a déja un utilisateur de base avec ce nom.'; +$wb['database_user_error_regex'] = 'Nom dutilisateur incorrect. Le nom dutilisateur peut uniquement contenir ces caractères: a-z, A-Z, 0-9 et le tiret bas. Taille: 2 - 64 caractères.'; +$wb['limit_database_txt'] = 'Le nombre maximum de bases de données a été atteint.'; +$wb['database_name_change_txt'] = 'Le nom de la base ne peut être modifié'; +$wb['database_charset_change_txt'] = 'Le charset de la base ne peut être modifié'; +$wb['remote_ips_txt'] = 'IP daccès à distance (séparés par des virgules, ne rien mettre pour tout autoriser)'; +$wb['database_remote_error_ips'] = 'Lune des IP entrées nest pas valide'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_database_list.lng new file mode 100644 index 0000000..feb751b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Base'; +$wb['active_txt'] = 'Actif'; +$wb['remote_access_txt'] = 'Accès à distance'; +$wb['server_id_txt'] = 'Serveur'; +$wb['database_name_txt'] = 'Nom de la base'; +$wb['add_new_record_txt'] = 'Nouvelle base de données'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user.lng new file mode 100644 index 0000000..466273d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Répertoire'; +$wb['quota_files_txt'] = 'Quota de fichiers'; +$wb['ul_ratio_txt'] = 'Ratio upload'; +$wb['dl_ratio_txt'] = 'Ratio download'; +$wb['ul_bandwidth_txt'] = 'Bande passante upload'; +$wb['dl_bandwidth_txt'] = 'Bande passante download'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site web'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['password_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['quota_size_txt'] = 'Quota disque'; +$wb['active_txt'] = 'Actif'; +$wb['limit_ftp_user_txt'] = 'Le nombre maximum dutilisateurs FTP a été atteint.'; +$wb['username_error_empty'] = 'Le nom dutilisateur est vide.'; +$wb['username_error_unique'] = 'Le nom dutilisateur doit être unique.'; +$wb['username_error_regex'] = 'Le nom dutilisateur contient des caractères invalides.'; +$wb['quota_size_error_empty'] = 'Le quota est vide.'; +$wb['uid_error_empty'] = 'Le GID est vide.'; +$wb['directory_error_empty'] = 'Le répertoire est vide.'; +$wb['quota_files_unity_txt'] = 'Fichiers'; +$wb['directory_error_notinweb'] = 'Le répertoire nest pas dans la racine web.'; +$wb['parent_domain_id_error_empty'] = 'Pas de site web sélectionné.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user_list.lng new file mode 100644 index 0000000..2281e48 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Utilisateur FTP'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site web'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['add_new_record_txt'] = 'Nouvel utilisateur FTP'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/fr_shell_user.lng new file mode 100644 index 0000000..d80f39a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Nom dutilisateur web'; +$wb['gid_txt'] = 'Groupe'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Repertoire'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['password_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['chroot_txt'] = 'Chrotter le shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Actif'; +$wb['username_error_empty'] = 'Le nom dutilisateur est vide.'; +$wb['username_error_unique'] = 'Le nom dutilisateur doit être unique.'; +$wb['username_error_regex'] = 'Le nom dutilisateur contient des caractères invalides.'; +$wb['quota_size_error_empty'] = 'Le quota est vide.'; +$wb['uid_error_empty'] = 'Le GID est vide.'; +$wb['directory_error_empty'] = 'Le répertoire est vide.'; +$wb['limit_shell_user_txt'] = 'Le nombre maximum dutilisateurs shell a été atteint..'; +$wb['parent_domain_id_error_empty'] = 'Pas de site web sélectionné.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_shell_user_list.lng new file mode 100644 index 0000000..ff862e1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Utilisateur Shell'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site web'; +$wb['username_txt'] = 'Nom dutilisateur'; +$wb['add_new_record_txt'] = 'Nouvel utilisateur Shell'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_aliasdomain_list.lng new file mode 100644 index 0000000..b212012 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Alias de domaine'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site web'; +$wb['domain_txt'] = 'Alias de domaine'; +$wb['add_new_record_txt'] = 'Nouvel alias de domaine'; +$wb['domain_error_empty'] = 'Le nom de domaine est vide.'; +$wb['domain_error_unique'] = 'Le nom de domaine doit être unique.'; +$wb['domain_error_regex'] = 'Le nom de domaine est invalide.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_domain.lng new file mode 100644 index 0000000..895ccef --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Pays'; +$wb['ssl_locality_txt'] = 'Localité'; +$wb['ssl_organisation_txt'] = 'Organisation'; +$wb['ssl_organisation_unit_txt'] = 'Unité dorganisation'; +$wb['ssl_country_txt'] = 'Pays'; +$wb['ssl_request_txt'] = 'Requête SSL'; +$wb['ssl_cert_txt'] = 'Certificat SSL'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'Action SSL'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Site web parent'; +$wb['redirect_type_txt'] = 'Type de redirection'; +$wb['redirect_path_txt'] = 'Chemin de redirection'; +$wb['active_txt'] = 'Actif'; +$wb['document_root_txt'] = 'Racine du document'; +$wb['system_user_txt'] = 'Utilisateur Linux'; +$wb['system_group_txt'] = 'Groupe Linux'; +$wb['ip_address_txt'] = 'Adresse IP'; +$wb['vhost_type_txt'] = 'Type de VHost'; +$wb['hd_quota_txt'] = 'Quota disque'; +$wb['traffic_quota_txt'] = 'Quota de traffic'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Pages derreurs personalisés'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'Le nombre maximum de noms de domaine pour votre compte a été atteint.'; +$wb['limit_web_aliasdomain_txt'] = 'Le nombre maximum dalias de domaine pour votre compte a été atteint.'; +$wb['limit_web_subdomain_txt'] = 'Le nombre maximum de sous-domaines pour votre compte a été atteint.'; +$wb['apache_directives_txt'] = 'Directives Apache'; +$wb['domain_error_empty'] = 'Le nom de domaine est vide.'; +$wb['domain_error_unique'] = 'Le nom de domaine doit être unique.'; +$wb['domain_error_regex'] = 'Le nom de domaine est invalide.'; +$wb['hd_quota_error_empty'] = 'Le quota disque est vide.'; +$wb['traffic_quota_error_empty'] = 'Le quota de traffic est vide.'; +$wb['error_ssl_state_empty'] = 'Létat du SSL est vide.'; +$wb['error_ssl_locality_empty'] = 'La localité du SSL est vide.'; +$wb['error_ssl_organisation_empty'] = 'Lorganisation du SSL est vide.'; +$wb['error_ssl_organisation_unit_empty'] = 'lunité dorganisation du SSL est vide.'; +$wb['error_ssl_country_empty'] = 'Le pays du SSL est vide.'; +$wb['subdomain_txt'] = 'Auto sous-domaine'; +$wb['client_group_id_txt'] = 'Client'; +$wb['stats_password_txt'] = 'Mot de passe statistiques web'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_domain_list.lng new file mode 100644 index 0000000..ddf66f8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sites web'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['add_new_record_txt'] = 'Nouveau site web'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_sites_stats_list.lng new file mode 100644 index 0000000..41018d3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Traffic Web'; +$wb['domain_txt'] = 'Domaine'; +$wb['this_month_txt'] = 'Ce mois'; +$wb['last_month_txt'] = 'Mois précédent'; +$wb['this_year_txt'] = 'Cette année'; +$wb['last_year_txt'] = 'Année précédente'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain.lng new file mode 100644 index 0000000..8558868 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Pays'; +$wb['ssl_locality_txt'] = 'Lieu'; +$wb['ssl_organisation_txt'] = 'Organisation'; +$wb['ssl_organisation_unit_txt'] = 'Unité dorganisation'; +$wb['ssl_country_txt'] = 'Pays'; +$wb['ssl_request_txt'] = 'Requête SSL'; +$wb['ssl_cert_txt'] = 'Certificat SSL'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'Action SSL'; +$wb['server_id_txt'] = 'Serveur'; +$wb['domain_txt'] = 'Domaine'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Site web parent'; +$wb['redirect_type_txt'] = 'Type de redirection'; +$wb['redirect_path_txt'] = 'Chemin de redirection'; +$wb['active_txt'] = 'Actif'; +$wb['document_root_txt'] = 'Racine du document'; +$wb['system_user_txt'] = 'Utilisateur Linux'; +$wb['system_group_txt'] = 'Groupe Linux'; +$wb['ip_address_txt'] = 'Adresse IP'; +$wb['vhost_type_txt'] = 'Type de VHost'; +$wb['hd_quota_txt'] = 'Quota disque'; +$wb['traffic_quota_txt'] = 'Quota de traffic'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'Le nombre maximum de noms de domaine pour votre compte a été atteint.'; +$wb['limit_web_aliasdomain_txt'] = 'Le nombre maximum dalias de domaine pour votre compte a été atteint.'; +$wb['limit_web_subdomain_txt'] = 'Le nombre maximum de sous-domaines pour votre compte a été atteint.'; +$wb['apache_directives_txt'] = 'Directives Apache'; +$wb['domain_error_empty'] = 'Le nom de domaine est vide.'; +$wb['domain_error_unique'] = 'Le nom de domaine doit être unique.'; +$wb['domain_error_regex'] = 'Le nom de domaine est invalide.'; +$wb['host_txt'] = 'Hôte'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain_list.lng new file mode 100644 index 0000000..9bfbd30 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/fr_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sous-domaines'; +$wb['active_txt'] = 'Actif'; +$wb['server_id_txt'] = 'Serveur'; +$wb['parent_domain_id_txt'] = 'Site web'; +$wb['domain_txt'] = 'Sous-domaine'; +$wb['add_new_record_txt'] = 'Nouveau sous-domaine'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu.lng b/interface/ispconfig/interface/sites/lib/lang/hu.lng new file mode 100644 index 0000000..c02b30f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Adatbázis'; +$wb['Options'] = 'Beállítások'; +$wb['Shell User'] = 'Shell felhasználó'; +$wb['Domain'] = 'Domain'; +$wb['Redirect'] = 'Átirányítás'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Aldomain'; +$wb['Sites'] = 'Weboldalak'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP-felhasználó'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-felhasználó'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Weboldalak'; +$wb['Stats'] = 'Statisztikák'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_cron.lng b/interface/ispconfig/interface/sites/lib/lang/hu_cron.lng new file mode 100644 index 0000000..fecb4ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_cron_list.lng new file mode 100644 index 0000000..ad56ea9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Jobs'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Hour'; +$wb['run_mday_txt'] = 'Day of month'; +$wb['run_month_txt'] = 'Month'; +$wb['run_wday_txt'] = 'Day of week'; +$wb['command_txt'] = 'Command'; +$wb['add_new_cron_txt'] = 'Add new Cron job'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_database.lng b/interface/ispconfig/interface/sites/lib/lang/hu_database.lng new file mode 100644 index 0000000..621f6a0 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Szerver'; +$wb['type_txt'] = 'Típus'; +$wb['database_name_txt'] = 'Adatbázis neve'; +$wb['database_user_txt'] = 'Adatbázis felhasználó'; +$wb['database_password_txt'] = 'Adatbázis jeszó'; +$wb['database_charset_txt'] = 'Adatbázis karakterkódolás'; +$wb['remote_access_txt'] = 'Távoli hozzáférés'; +$wb['client_txt'] = 'Kliens'; +$wb['active_txt'] = 'Aktív'; +$wb['database_name_error_empty'] = 'Adatbázis neve üres.'; +$wb['database_name_error_unique'] = 'Adatbázis név már foglalt.'; +$wb['database_name_error_regex'] = 'Hibás adatbázisnév. A következő karaktereket használhatja: a-z, A-Z, 0-9 és aláhúzás (_). Hossza: 2 - 64 karakter.'; +$wb['database_user_error_empty'] = 'Adatbázis felhasználó üres.'; +$wb['database_user_error_unique'] = 'adatbázi felhasználónév már foglalt.'; +$wb['database_user_error_regex'] = 'Hibás adatbázis felhasználónév. A következő karaktereket használhatja: a-z, A-Z, 0-9 és aláhúzás (_). Hossza: 2 - 64 karakter.'; +$wb['limit_database_txt'] = 'Nincs több adatbázis lehetőség.'; +$wb['database_name_change_txt'] = 'Adatbázis neve nem módosítható.'; +$wb['database_charset_change_txt'] = 'Adatbázis karakterkódolás nem módosítható.'; +$wb['password_strength_txt'] = 'Jelszó erőssége'; +$wb['remote_ips_txt'] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb['database_remote_error_ips'] = 'At least one of the entered ip addresses is invalid.'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_database_list.lng new file mode 100644 index 0000000..8560704 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Adatbázis'; +$wb['active_txt'] = 'Aktív'; +$wb['remote_access_txt'] = 'Távoli hozzáférés'; +$wb['server_id_txt'] = 'Szerver'; +$wb['database_name_txt'] = 'Adatbázis neve'; +$wb['add_new_record_txt'] = 'Új adatbázis'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user.lng new file mode 100644 index 0000000..a2f8169 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Könyvtár'; +$wb['quota_files_txt'] = 'Fájlkorlát'; +$wb['ul_ratio_txt'] = 'Feltöltési arány'; +$wb['dl_ratio_txt'] = 'Letöltési arány'; +$wb['ul_bandwidth_txt'] = 'Feltöltési sávszélesség'; +$wb['dl_bandwidth_txt'] = 'Letöltési sávszélesség'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['username_txt'] = 'Felhasználónév'; +$wb['password_txt'] = 'Jelszó'; +$wb['quota_size_txt'] = 'Tárhely korlát'; +$wb['active_txt'] = 'Aktív'; +$wb['limit_ftp_user_txt'] = 'Nincs több FTP felhasználó lehetőség.'; +$wb['username_error_empty'] = 'Felhasználónév üres.'; +$wb['username_error_unique'] = 'Felhasználónév már foglalt.'; +$wb['username_error_regex'] = 'Felhasználónév illegális karaktereket tartalmaz.'; +$wb['quota_size_error_empty'] = 'Korlát Üres'; +$wb['uid_error_empty'] = 'GID üres.'; +$wb['directory_error_empty'] = 'Könyvtár üres.'; +$wb['quota_files_unity_txt'] = 'Fájlok'; +$wb['password_strength_txt'] = 'Jelszó erőssége'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user_list.lng new file mode 100644 index 0000000..54578fd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP-felhasználó'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['username_txt'] = 'Felhasználónév'; +$wb['add_new_record_txt'] = 'Új FTP-felhasználó'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/hu_shell_user.lng new file mode 100644 index 0000000..30d6e04 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web felhasználónév'; +$wb['gid_txt'] = 'Csoport'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Könyvtár'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['username_txt'] = 'Felhasználónév'; +$wb['password_txt'] = 'Jelszó'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Korlát'; +$wb['active_txt'] = 'Aktív'; +$wb['username_error_empty'] = 'Felhasználónév üres'; +$wb['username_error_unique'] = 'Felhasználónév már foglalt.'; +$wb['username_error_regex'] = 'Felhasználónév illegális karaktereket tartalmaz.'; +$wb['quota_size_error_empty'] = 'Korlát üres.'; +$wb['uid_error_empty'] = 'GID üres.'; +$wb['directory_error_empty'] = 'Könyvtár üres.'; +$wb['limit_shell_user_txt'] = 'The max number of shell users is reached.'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_shell_user_list.lng new file mode 100644 index 0000000..22a38a1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell felhasználó'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['username_txt'] = 'Felhasználónév'; +$wb['add_new_record_txt'] = 'Új Shell felhasználó'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_aliasdomain_list.lng new file mode 100644 index 0000000..a8506ee --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Új Aliasdomain'; +$wb['domain_error_empty'] = 'Domain üres'; +$wb['domain_error_unique'] = 'Domain már foglalt.'; +$wb['domain_error_regex'] = 'Domain név hibás.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_domain.lng new file mode 100644 index 0000000..0f04213 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Állam'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Cég'; +$wb['ssl_organisation_unit_txt'] = 'Osztály'; +$wb['ssl_country_txt'] = 'Állam'; +$wb['ssl_request_txt'] = 'SSL Kérés'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Aktció'; +$wb['server_id_txt'] = 'Szerver'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Tipus'; +$wb['parent_domain_id_txt'] = 'Szülő Weboldal'; +$wb['redirect_type_txt'] = 'Átirányítás tipusa'; +$wb['redirect_path_txt'] = 'Átirányítás útvonal'; +$wb['active_txt'] = 'Aktív'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux felahsználó'; +$wb['system_group_txt'] = 'Linux csoport'; +$wb['ip_address_txt'] = 'IP-ím'; +$wb['vhost_type_txt'] = 'VHost Típus'; +$wb['hd_quota_txt'] = 'Táhely Korlát'; +$wb['traffic_quota_txt'] = 'Forgalom Korlát'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Saját hibaoldal'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Kliens'; +$wb['limit_web_domain_txt'] = 'Nincs több weboldal lehetőség.'; +$wb['limit_web_aliasdomain_txt'] = 'Nincs több aliasdomain lehetőség.'; +$wb['limit_web_subdomain_txt'] = 'Nincs több aldomain lehetőség.'; +$wb['apache_directives_txt'] = 'Apache directivák'; +$wb['domain_error_empty'] = 'Domain üres'; +$wb['domain_error_unique'] = 'Domain már foglalt.'; +$wb['domain_error_regex'] = 'Domain név hibás.'; +$wb['hd_quota_error_empty'] = 'Tárgely korlát üres.'; +$wb['traffic_quota_error_empty'] = 'Forgalom korlát üres.'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['error_ssl_state_empty'] = 'SSL State is empty.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL Country is empty.'; +$wb['client_group_id_txt'] = 'Kliens'; +$wb['stats_password_txt'] = 'Statisztika jelszó'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_domain_list.lng new file mode 100644 index 0000000..88ec412 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Websites'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new website'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_sites_stats_list.lng new file mode 100644 index 0000000..b217f80 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web traffic'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain.lng new file mode 100644 index 0000000..369622b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Megye'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Cég'; +$wb['ssl_organisation_unit_txt'] = 'Osztály'; +$wb['ssl_country_txt'] = 'Ország'; +$wb['ssl_request_txt'] = 'SSL Kérés'; +$wb['ssl_cert_txt'] = 'SSL Tanusítvány'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Akció'; +$wb['server_id_txt'] = 'Szrver'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Típus'; +$wb['parent_domain_id_txt'] = 'Szülő weboldal'; +$wb['redirect_type_txt'] = 'Átirányítás tipusa'; +$wb['redirect_path_txt'] = 'Átirány útvonal'; +$wb['active_txt'] = 'Aktív'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux Felhasználó'; +$wb['system_group_txt'] = 'Linux Csoport'; +$wb['ip_address_txt'] = 'IP-cím'; +$wb['vhost_type_txt'] = 'VHost Típus'; +$wb['hd_quota_txt'] = 'Tárhely Korlát'; +$wb['traffic_quota_txt'] = 'Forgalom Korlát'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Kliens'; +$wb['limit_web_domain_txt'] = 'Nincs több weboldal lehetőség.'; +$wb['limit_web_aliasdomain_txt'] = 'Nincs több aliasdomain lehetőség'; +$wb['limit_web_subdomain_txt'] = 'Nincs több aldomain lehetőség.'; +$wb['apache_directives_txt'] = 'Apache directivák'; +$wb['domain_error_empty'] = 'Domain üres'; +$wb['domain_error_unique'] = 'Domain már foglalt.'; +$wb['domain_error_regex'] = 'Domain név érvénytelen'; +$wb['host_txt'] = 'Állomás'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain_list.lng new file mode 100644 index 0000000..268a1b9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/hu_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Aldomainok'; +$wb['active_txt'] = 'Aktív'; +$wb['server_id_txt'] = 'Szerver'; +$wb['parent_domain_id_txt'] = 'Weboldal'; +$wb['domain_txt'] = 'aldomain'; +$wb['add_new_record_txt'] = 'Új Aldomain'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it.lng b/interface/ispconfig/interface/sites/lib/lang/it.lng new file mode 100644 index 0000000..2dd1d27 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Database'; +$wb['Options'] = 'Opzioni'; +$wb['Shell User'] = 'Utente Shell'; +$wb['Domain'] = 'Domini'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Sottodomini'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Alias domini'; +$wb['FTP-User'] = 'Utenti FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Utenti Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Siti'; +$wb['Stats'] = 'Statistics'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_cron.lng b/interface/ispconfig/interface/sites/lib/lang/it_cron.lng new file mode 100644 index 0000000..fecb4ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_cron_list.lng new file mode 100644 index 0000000..ad56ea9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Jobs'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Hour'; +$wb['run_mday_txt'] = 'Day of month'; +$wb['run_month_txt'] = 'Month'; +$wb['run_wday_txt'] = 'Day of week'; +$wb['command_txt'] = 'Command'; +$wb['add_new_cron_txt'] = 'Add new Cron job'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_database.lng b/interface/ispconfig/interface/sites/lib/lang/it_database.lng new file mode 100644 index 0000000..8921c11 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Tipo'; +$wb['database_name_txt'] = 'Nome Database'; +$wb['database_user_txt'] = 'Utente Database'; +$wb['database_password_txt'] = 'Password Database'; +$wb['password_strength_txt'] = 'Sicurezza della Password'; +$wb['database_charset_txt'] = 'Database charset'; +$wb['remote_access_txt'] = 'Accesso remoto'; +$wb['client_txt'] = 'Cliente'; +$wb['active_txt'] = 'Attivo'; +$wb['database_name_error_empty'] = 'Database name is empty.'; +$wb['database_name_error_unique'] = 'There is already a database with this name on the server. To get a unique name, e.g. prepend your domain name to the database name.'; +$wb['database_name_error_regex'] = 'Invalid database name. The database name may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb['database_user_error_empty'] = 'Database user is empty.'; +$wb['database_user_error_unique'] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb['database_user_error_regex'] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb['limit_database_txt'] = 'The max. number of databases is reached.'; +$wb['database_name_change_txt'] = 'The database name can not be changed'; +$wb['database_charset_change_txt'] = 'The database charset can not be changed'; +$wb['remote_ips_txt'] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb['database_remote_error_ips'] = 'At least one of the entered ip addresses is invalid.'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_database_list.lng new file mode 100644 index 0000000..891b4d6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Database'; +$wb['active_txt'] = 'Attivo'; +$wb['remote_access_txt'] = 'Accesso remoto'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Nome Database'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo Database'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/it_ftp_user.lng new file mode 100644 index 0000000..9da2719 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Cartella'; +$wb['quota_files_txt'] = 'Filequota'; +$wb['ul_ratio_txt'] = 'Uploadratio'; +$wb['dl_ratio_txt'] = 'Downloadratio'; +$wb['ul_bandwidth_txt'] = 'Banda Upload'; +$wb['dl_bandwidth_txt'] = 'Banda Download'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Sito'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['quota_size_txt'] = 'Harddisk-Quota'; +$wb['active_txt'] = 'Attivo'; +$wb['limit_ftp_user_txt'] = 'The max. number of FTP users for your account is reached.'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['username_error_regex'] = 'The username contains charachters that are not allowed.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'GID empty.'; +$wb['directory_error_empty'] = 'Directory empty.'; +$wb['quota_files_unity_txt'] = 'Files'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_ftp_user_list.lng new file mode 100644 index 0000000..9469625 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Utente FTP'; +$wb['active_txt'] = 'Attivo'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Sito'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo utente FTP'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/it_shell_user.lng new file mode 100644 index 0000000..0f2ea6c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Username'; +$wb['gid_txt'] = 'Group'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Dir'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Active'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['username_error_regex'] = 'The username contains charachters that are not allowed.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'GID empty.'; +$wb['directory_error_empty'] = 'Directory empty.'; +$wb['limit_shell_user_txt'] = 'The max number of shell users is reached.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_shell_user_list.lng new file mode 100644 index 0000000..e6fc063 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Utente Shell'; +$wb['active_txt'] = 'Attivo'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Sito'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo Shell'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_aliasdomain_list.lng new file mode 100644 index 0000000..e734adb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Add new aliasdomain'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_domain.lng new file mode 100644 index 0000000..2bb621f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Stato'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Organizzazione'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Regione'; +$wb['ssl_request_txt'] = 'Richiesta SSL'; +$wb['ssl_cert_txt'] = 'Certificato SSL'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dominio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Tipo Redirect'; +$wb['redirect_path_txt'] = 'Percorso Redirect'; +$wb['active_txt'] = 'Attivo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Utente Linux'; +$wb['system_group_txt'] = 'Gruppo Linux'; +$wb['ip_address_txt'] = 'Indirizzo IP'; +$wb['vhost_type_txt'] = 'Tipo VHost'; +$wb['hd_quota_txt'] = 'Quota Harddisk'; +$wb['traffic_quota_txt'] = 'Quota Traffico'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Erorri personalizzati'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'The max. number of web domains for your account is reached.'; +$wb['limit_web_aliasdomain_txt'] = 'The max. number of aliasdomains for your account is reached.'; +$wb['limit_web_subdomain_txt'] = 'The max. number of web subdomains for your account is reached.'; +$wb['apache_directives_txt'] = 'Apache directives'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['hd_quota_error_empty'] = 'Harddisk quota is empty.'; +$wb['traffic_quota_error_empty'] = 'Traffic quota is empty.'; +$wb['error_ssl_state_empty'] = 'SSL State is empty.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL Country is empty.'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['client_group_id_txt'] = 'Client'; +$wb['stats_password_txt'] = 'Webstatistics password'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_domain_list.lng new file mode 100644 index 0000000..a749148 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Siti'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Attivo'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dominio'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo sito'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_sites_stats_list.lng new file mode 100644 index 0000000..b217f80 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web traffic'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain.lng new file mode 100644 index 0000000..53ee315 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Stato'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Organizzazione'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Country'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dominio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Tipo Redirect'; +$wb['redirect_path_txt'] = 'Percorso Redirect'; +$wb['active_txt'] = 'Attivo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Utente Linux'; +$wb['system_group_txt'] = 'Gruppo Linux'; +$wb['ip_address_txt'] = 'Indirizzo IP'; +$wb['vhost_type_txt'] = 'Tipo VHost'; +$wb['hd_quota_txt'] = 'Quota Harddisk'; +$wb['traffic_quota_txt'] = 'Quota Traffico'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'The max. number of web domains for your account is reached.'; +$wb['limit_web_aliasdomain_txt'] = 'The max. number of aliasdomains for your account is reached.'; +$wb['limit_web_subdomain_txt'] = 'The max. number of web subdomains for your account is reached.'; +$wb['apache_directives_txt'] = 'Direttive Apache'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain_list.lng new file mode 100644 index 0000000..5ba43b0 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/it_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Sottodomini'; +$wb['active_txt'] = 'Attivo'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Sito'; +$wb['domain_txt'] = 'Sottodominio'; +$wb['add_new_record_txt'] = 'Aggiungi nuovo sottodominio'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja.lng b/interface/ispconfig/interface/sites/lib/lang/ja.lng new file mode 100644 index 0000000..4d27232 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'データベース'; +$wb['Options'] = 'オプション'; +$wb['Shell User'] = 'Shellユーザー'; +$wb['Domain'] = 'ウェブサイト'; +$wb['Redirect'] = 'リダイレクト'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'サブドメイン'; +$wb['Sites'] = 'サイト'; +$wb['Aliasdomain'] = 'エイリアスドメイン'; +$wb['FTP-User'] = 'FTPユーザー'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shellユーザー'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'ウェブサイト'; +$wb['Stats'] = '利用状況'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_cron.lng b/interface/ispconfig/interface/sites/lib/lang/ja_cron.lng new file mode 100644 index 0000000..fecb4ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_cron_list.lng new file mode 100644 index 0000000..276b548 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cronジョブ'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['run_min_txt'] = '分'; +$wb['run_hour_txt'] = '時間'; +$wb['run_mday_txt'] = '日'; +$wb['run_month_txt'] = '月'; +$wb['run_wday_txt'] = '曜日'; +$wb['command_txt'] = 'コマンド'; +$wb['add_new_cron_txt'] = 'cronジョブを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_database.lng b/interface/ispconfig/interface/sites/lib/lang/ja_database.lng new file mode 100644 index 0000000..48d7ea3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_database.lng @@ -0,0 +1,25 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Type'; +$wb["database_name_txt"] = 'Database name'; +$wb["database_user_txt"] = 'Database user'; +$wb["database_password_txt"] = 'Database password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["database_charset_txt"] = 'Database charset'; +$wb["remote_access_txt"] = 'Remote Access'; +$wb["remote_ips_txt"] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb["database_remote_error_ips"] = 'At least one of the entered ip addresses is invalid.'; +$wb["client_txt"] = 'Client'; +$wb["active_txt"] = 'Active'; +$wb["database_name_error_empty"] = 'Database name is empty.'; +$wb["database_name_error_unique"] = 'There is already a database with this name on the server. To get a unique name, e.g. prepend your domain name to the database name.'; +$wb["database_name_error_regex"] = 'Invalid database name. The database name may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["database_user_error_empty"] = 'Database user is empty.'; +$wb["database_user_error_unique"] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb["database_user_error_regex"] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["limit_database_txt"] = 'The max. number of databases is reached.'; +$wb["database_name_change_txt"] = 'The database name can not be changed'; +$wb["database_charset_change_txt"] = 'The database charset can not be changed'; +$wb["database_name_error_len"] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb["database_user_error_len"] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_database_list.lng new file mode 100644 index 0000000..50ed81a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'データベース'; +$wb['active_txt'] = '有効'; +$wb['remote_access_txt'] = 'リモートアドレス'; +$wb['server_id_txt'] = 'サーバー'; +$wb['database_name_txt'] = 'データベース名'; +$wb['add_new_record_txt'] = 'データベースを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user.lng new file mode 100644 index 0000000..8374012 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'ディレクトリ'; +$wb['quota_files_txt'] = '最大ファイル数'; +$wb['quota_files_unity_txt'] = 'ファイル'; +$wb['ul_ratio_txt'] = 'アップロードレート'; +$wb['dl_ratio_txt'] = 'ダウンロードレート'; +$wb['ul_bandwidth_txt'] = 'アップロードバンド幅'; +$wb['dl_bandwidth_txt'] = 'ダウンロードバンド幅'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'ウェブサイト'; +$wb['username_txt'] = 'ユーザー名'; +$wb['password_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['quota_size_txt'] = 'ディスクの容量'; +$wb['active_txt'] = '有効'; +$wb['limit_ftp_user_txt'] = 'FTPユーザーが最大数に達しました。'; +$wb['username_error_empty'] = 'ユーザー名を指定してください'; +$wb['username_error_unique'] = '既に登録済みのユーザー名です。別の名前に変更してください。'; +$wb['username_error_regex'] = 'ユーザー名に不正な文字が使われています。修正してください。'; +$wb['quota_size_error_empty'] = 'ディスクの容量を指定してください'; +$wb['uid_error_empty'] = 'GID を指定してください。'; +$wb['directory_error_empty'] = 'ディレクトリを指定してください。'; +$wb['directory_error_notinweb'] = 'ディレクトリはウェブのルートディレクトリ以下にしてください。'; +$wb['parent_domain_id_error_empty'] = 'ウェブサイトを選択してください。'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user_list.lng new file mode 100644 index 0000000..eee5a0c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTPユーザー'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'ウェブサイト'; +$wb['username_txt'] = 'ユーザー名'; +$wb['add_new_record_txt'] = 'FTPユーザーを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/ja_shell_user.lng new file mode 100644 index 0000000..e87896e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'ユーザー'; +$wb['gid_txt'] = 'グループ'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'ディレクトリ'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'サイト'; +$wb['username_txt'] = 'ユーザー名'; +$wb['password_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['chroot_txt'] = 'Chroot の方式'; +$wb['quota_size_txt'] = 'ディスクの容量'; +$wb['active_txt'] = '有効'; +$wb['username_error_empty'] = 'ユーザー名を指定してください'; +$wb['username_error_unique'] = '既に登録済みのユーザー名です。別の名前に変更してください。'; +$wb['username_error_regex'] = 'ユーザー名に不正な文字が使われています。修正してください。'; +$wb['quota_size_error_empty'] = 'ディスクの容量を指定してください'; +$wb['uid_error_empty'] = 'GID を指定してください。'; +$wb['directory_error_empty'] = 'ディレクトリを指定してください。'; +$wb['limit_shell_user_txt'] = 'Shellユーザーが最大数に達しました。'; +$wb['parent_domain_id_error_empty'] = 'ウェブサイトを選択してください。'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_shell_user_list.lng new file mode 100644 index 0000000..18ce007 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shellユーザー'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'サイト'; +$wb['username_txt'] = 'ユーザー名'; +$wb['add_new_record_txt'] = 'Shellユーザーを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_aliasdomain_list.lng new file mode 100644 index 0000000..7d91673 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'エイリアスドメイン'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'ウェブサイト'; +$wb['domain_txt'] = 'エイリアスドメイン'; +$wb['add_new_record_txt'] = 'エイリアスドメインを追加する'; +$wb['domain_error_empty'] = 'ドメインを指定してください'; +$wb['domain_error_unique'] = '既に登録済みのドメイン名です。別の名前に変更してください。'; +$wb['domain_error_regex'] = 'ドメイン名が不正です。'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_domain.lng new file mode 100644 index 0000000..5e97a98 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'State(都道府県)'; +$wb['ssl_locality_txt'] = 'Locality(地域)'; +$wb['ssl_organisation_txt'] = 'Organisation(組織)'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit(部署)'; +$wb['ssl_country_txt'] = 'Country(国)'; +$wb['ssl_request_txt'] = 'SSL CSR'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'Chainファイル'; +$wb['ssl_action_txt'] = 'SSL 証明書の操作'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['type_txt'] = '種別'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'リダイレクトの方式'; +$wb['redirect_path_txt'] = 'リダイレクト先'; +$wb['active_txt'] = '有効'; +$wb['document_root_txt'] = 'ドキュメントルート'; +$wb['system_user_txt'] = 'Linuxユーザー'; +$wb['system_group_txt'] = 'Linuxグループ'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'ディスクの容量'; +$wb['traffic_quota_txt'] = 'トラフィックの許容量'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = '独自のエラーページを使う'; +$wb['subdomain_txt'] = '自動サブドメイン'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'クライアント'; +$wb['limit_web_domain_txt'] = 'ウェブドメインが最大数に達したため、これ以上追加できません。'; +$wb['limit_web_aliasdomain_txt'] = 'エイリアスドメインが最大数に達した為、これ以上追加できません。'; +$wb['limit_web_subdomain_txt'] = 'ウェブサブドメインが最大数に達しました。'; +$wb['apache_directives_txt'] = 'Apache ディレクティブ'; +$wb['domain_error_empty'] = 'ドメインを指定してください'; +$wb['domain_error_unique'] = '同名のサブドメインまたはエイリアスドメインが存在します。'; +$wb['domain_error_regex'] = 'ドメイン名が不正です。'; +$wb['hd_quota_error_empty'] = 'ディスクの容量を入力してください。'; +$wb['traffic_quota_error_empty'] = 'トラフィックの許容量を入力してください。'; +$wb['error_ssl_state_empty'] = 'SSL の State(都道府県)を入力してください。'; +$wb['error_ssl_locality_empty'] = 'SSL の Locality(地域)を入力してください。'; +$wb['error_ssl_organisation_empty'] = 'SSL の Organization(組織)を入力してください。'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL の Organization Unit(部署)を入力してください。'; +$wb['error_ssl_country_empty'] = 'SSL の Country(国)を入力してください。'; +$wb['client_group_id_txt'] = 'クライアント'; +$wb['stats_password_txt'] = 'アクセス統計ページのパスワード'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_domain_list.lng new file mode 100644 index 0000000..e987d40 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ウェブサイト'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['add_new_record_txt'] = 'ウェブサイトを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_sites_stats_list.lng new file mode 100644 index 0000000..53a9ae3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'ウェブトラフィック'; +$wb['domain_txt'] = 'ドメイン'; +$wb['this_month_txt'] = '今月'; +$wb['last_month_txt'] = '先月'; +$wb['this_year_txt'] = '今年'; +$wb['last_year_txt'] = '去年'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain.lng new file mode 100644 index 0000000..10b02ec --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'State(都道府県)'; +$wb['ssl_locality_txt'] = 'Locality(地域)'; +$wb['ssl_organisation_txt'] = 'Organisation(組織)'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit(部署)'; +$wb['ssl_country_txt'] = 'Country(国)'; +$wb['ssl_request_txt'] = 'SSL CSR'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'Chainファイル'; +$wb['ssl_action_txt'] = 'SSL 証明書の操作'; +$wb['server_id_txt'] = 'サーバー'; +$wb['domain_txt'] = 'ドメイン'; +$wb['type_txt'] = '種別'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'リダイレクトの方式'; +$wb['redirect_path_txt'] = 'リダイレクト先'; +$wb['active_txt'] = '有効'; +$wb['document_root_txt'] = 'ドキュメントルート'; +$wb['system_user_txt'] = 'Linuxユーザー'; +$wb['system_group_txt'] = 'Linuxグループ'; +$wb['ip_address_txt'] = 'IPアドレス'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'ディスクの容量'; +$wb['traffic_quota_txt'] = 'トラフィックの許容量'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'クライアント'; +$wb['limit_web_domain_txt'] = 'ウェブドメインが最大数に達したため、これ以上追加できません。'; +$wb['limit_web_aliasdomain_txt'] = 'エイリアスドメインが最大数に達した為、これ以上追加できません。'; +$wb['limit_web_subdomain_txt'] = 'ウェブサブドメインが最大数に達しました。'; +$wb['apache_directives_txt'] = 'Apache ディレクティブ'; +$wb['domain_error_empty'] = 'ドメインを指定してください'; +$wb['domain_error_unique'] = '同名のサブドメインまたはエイリアスドメインが存在します。'; +$wb['domain_error_regex'] = 'ドメイン名が不正です。'; +$wb['host_txt'] = 'ホスト'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain_list.lng new file mode 100644 index 0000000..dc91127 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ja_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'サブドメイン'; +$wb['active_txt'] = '有効'; +$wb['server_id_txt'] = 'サーバー'; +$wb['parent_domain_id_txt'] = 'ウェブサイト'; +$wb['domain_txt'] = 'サブドメイン'; +$wb['add_new_record_txt'] = 'サブドメインを追加する'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl.lng b/interface/ispconfig/interface/sites/lib/lang/nl.lng new file mode 100644 index 0000000..78860ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Databases'; +$wb['Options'] = 'Opties'; +$wb['Shell User'] = 'Shell gebruiker'; +$wb['Domain'] = 'Overzicht'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Website subdomeinen'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Website domeinaliassen'; +$wb['FTP-User'] = 'FTP gebruikers'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell gebruikers'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Statistieken'; +$wb['Website'] = 'Website overzicht'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_cron.lng b/interface/ispconfig/interface/sites/lib/lang/nl_cron.lng new file mode 100644 index 0000000..f85eca2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['active_txt'] = 'Actief?'; +$wb['client_txt'] = 'Klant'; +$wb['run_min_txt'] = 'Minuten'; +$wb['run_hour_txt'] = 'Uren'; +$wb['run_mday_txt'] = 'Dagen van maand'; +$wb['run_month_txt'] = 'Maanden'; +$wb['run_wday_txt'] = 'Dagen van week'; +$wb['command_txt'] = 'Uit te voeren commando<br />(Shell-commando -> sh, URL -> wget)'; +$wb['limit_cron_txt'] = 'Het max. aantal toegestane Cron taken is bereikt.'; +$wb['limit_cron_frequency_txt'] = 'De cronjob frequentie overschrijdt de toegestaande limiet.'; +$wb['run_min_error_format'] = 'Ongeldige indeling voor minuten.'; +$wb['run_hour_error_format'] = 'Ongeldige indeling voor uren.'; +$wb['run_mday_error_format'] = 'Ongeldige indeling voor dagen van maand.'; +$wb['run_month_error_format'] = 'Ongeldige indeling maand.'; +$wb['run_wday_error_format'] = 'Ongeldige indeling voor dagen van week.'; +$wb['command_error_format'] = 'Ongeldige commando indeling. In geval van een URL, alleen http/https wordt ondersteund.'; +$wb['unknown_fieldtype_error'] = 'Een onbekend veld-type wordt gebruikt.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_cron_list.lng new file mode 100644 index 0000000..1785ec1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron takenoverzicht'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minuut'; +$wb['run_hour_txt'] = 'Uur'; +$wb['run_mday_txt'] = 'Dag van maand'; +$wb['run_month_txt'] = 'Maand'; +$wb['run_wday_txt'] = 'Dag van week'; +$wb['command_txt'] = 'Commando'; +$wb['add_new_cron_txt'] = 'Nieuwe Cron taak toevoegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_database.lng b/interface/ispconfig/interface/sites/lib/lang/nl_database.lng new file mode 100644 index 0000000..d4dfbf6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['database_name_txt'] = 'Databasenaam'; +$wb['database_user_txt'] = 'Database gebruikersnaam'; +$wb['database_password_txt'] = 'Database wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['database_charset_txt'] = 'Database karakterset'; +$wb['remote_access_txt'] = 'Externe toegang'; +$wb['client_txt'] = 'Klant'; +$wb['active_txt'] = 'Actief?'; +$wb['database_name_error_empty'] = 'Databasenaam is leeg.'; +$wb['database_name_error_unique'] = 'De databasenaam is al in gebruik. Kies een andere naam. U zou bijv. ook uw domeinnaam als databasenaam kunnen gebruiken.'; +$wb['database_name_error_regex'] = 'Ongeldige databasenaam. Gebruik alleen deze karakters: a-z, A-Z, 0-9 en de underscore. Lengte: 2 - 64 karakters.'; +$wb['database_user_error_empty'] = 'Gebruikersnaam niet ingevuld.'; +$wb['database_user_error_unique'] = 'Er bestaat al een database gebruiker met deze naam op de server. Om een unieke naam te verkrijgen, kunt u bijv. uw domeinnaam als gebruikersnaam gebruiken.'; +$wb['database_user_error_regex'] = 'Ongeldige gebruikersnaam. Gebruik alleen deze karakters: a-z, A-Z, 0-9 en de underscore. Lengte: 2 - 64 karakters.'; +$wb['limit_database_txt'] = 'The max. aantal databases is bereikt.'; +$wb['database_name_change_txt'] = 'De databasenaam kan niet worden gewijzigd.'; +$wb['database_charset_change_txt'] = 'De database karakterset kan niet gewijzigd worden.'; +$wb['remote_ips_txt'] = 'Externe toegang IP-adressen.<br />(Komma-gescheiden, lege waarden = iedereen accepteren)'; +$wb['database_remote_error_ips'] = 'Tenminste 1 IP-adres is ongeldig.'; +$wb['database_name_error_len'] = 'Databasenaam - {db} - is te lang. De maximale lengte is 64 tekens.'; +$wb['database_user_error_len'] = 'Database gebruikersnaam - {user} - is te lang. De maximale lengte inclusief prefix is 16 tekens.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_database_list.lng new file mode 100644 index 0000000..d6a243e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Databases'; +$wb['active_txt'] = 'Actief?'; +$wb['remote_access_txt'] = 'Externe toegang'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Databasenaam'; +$wb['add_new_record_txt'] = 'Nieuwe database toevoegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user.lng new file mode 100644 index 0000000..ebf411d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Directory'; +$wb['quota_files_txt'] = '# Bestanden'; +$wb['ul_ratio_txt'] = 'Upload-limiet'; +$wb['dl_ratio_txt'] = 'Download-limiet'; +$wb['ul_bandwidth_txt'] = 'Max. upload snelheid'; +$wb['dl_bandwidth_txt'] = 'Max. download snelheid'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['quota_size_txt'] = 'Schijfruimte-limiet'; +$wb['active_txt'] = 'Actief?'; +$wb['limit_ftp_user_txt'] = 'Het max. aantal FTP gebruikers voor uw account is bereikt.'; +$wb['username_error_empty'] = 'Gebruikersnaam is leeg.'; +$wb['username_error_unique'] = 'De gebruikersnaam moet uniek zijn.'; +$wb['username_error_regex'] = 'De gebruikersnaam bevat ongeldige karakters.'; +$wb['quota_size_error_empty'] = 'Schijfruimte-limiet is leeg.'; +$wb['uid_error_empty'] = 'GID is leeg.'; +$wb['directory_error_empty'] = 'Directory is leeg.'; +$wb['quota_files_unity_txt'] = 'bestanden'; +$wb['directory_error_notinweb'] = 'Directory is niet binnen de website-root directory.'; +$wb['parent_domain_id_error_empty'] = 'Geen website geselecteerd.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user_list.lng new file mode 100644 index 0000000..449092f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP gebruikers'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['add_new_record_txt'] = 'Nieuwe FTP-gebruiker toevoegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/nl_shell_user.lng new file mode 100644 index 0000000..f38dca8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Website gebruikersnaam'; +$wb['gid_txt'] = 'Website groep'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Directory'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['password_txt'] = 'Wachtwoord'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Schijfruimte limiet'; +$wb['active_txt'] = 'Actief?'; +$wb['username_error_empty'] = 'Gebruikersnaam is leeg.'; +$wb['username_error_unique'] = 'De gebruikersnaam moet uniek zijn.'; +$wb['username_error_regex'] = 'De gebruikersnaam bevat karakters die niet zijn toegestaan.'; +$wb['quota_size_error_empty'] = 'Schijfruimte limiet is leeg.'; +$wb['uid_error_empty'] = 'GID leeg.'; +$wb['directory_error_empty'] = 'Directory leeg.'; +$wb['limit_shell_user_txt'] = 'Het maximum aantal shell gebruikers is bereikt.'; +$wb['parent_domain_id_error_empty'] = 'Geen website geselecteerd.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_shell_user_list.lng new file mode 100644 index 0000000..3356863 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell gebruikers'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Gebruikersnaam'; +$wb['add_new_record_txt'] = 'Nieuwe Shell gebruiker toevoegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_aliasdomain_list.lng new file mode 100644 index 0000000..a698fad --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Website domeinaliassen'; +$wb['active_txt'] = 'Actief'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Domeinalias'; +$wb['add_new_record_txt'] = 'Nieuwe domeinalias toevoegen'; +$wb['domain_error_empty'] = 'Domein is leeg.'; +$wb['domain_error_unique'] = 'Domein moet uniek zijn.'; +$wb['domain_error_regex'] = 'Domeinnaam is ongeldig.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_domain.lng new file mode 100644 index 0000000..ba8743f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Provincie'; +$wb['ssl_locality_txt'] = 'Plaats'; +$wb['ssl_organisation_txt'] = 'Organisatie'; +$wb['ssl_organisation_unit_txt'] = 'Organisatie afdeling'; +$wb['ssl_country_txt'] = 'Landcode (<a href=http://www.digicert.com/ssl-certificate-country-codes.htm onclick=window.open(this.href);return false;>zie codes</a>)'; +$wb['ssl_request_txt'] = 'SSL verzoek'; +$wb['ssl_cert_txt'] = 'SSL certificaat'; +$wb['ssl_bundle_txt'] = 'SSL bundel'; +$wb['ssl_action_txt'] = 'SSL actie'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domeinnaam'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Koppelen aan website'; +$wb['redirect_type_txt'] = 'Redirect type'; +$wb['redirect_path_txt'] = 'Redirect pad'; +$wb['active_txt'] = 'Actief?'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux gebruiker'; +$wb['system_group_txt'] = 'Linux groep'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['vhost_type_txt'] = 'VHost type'; +$wb['hd_quota_txt'] = 'Schijfruimte limiet'; +$wb['traffic_quota_txt'] = 'Dataverkeer limiet'; +$wb['cgi_txt'] = 'CGI scripts'; +$wb['ssi_txt'] = 'SSI (CGI)'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP5 module'; +$wb['client_txt'] = 'Klant'; +$wb['limit_web_domain_txt'] = 'Het max. aantal web domeinen voor uw account is bereikt.'; +$wb['limit_web_aliasdomain_txt'] = 'Het max. aantal domeinaliassen voor uw account is bereikt.'; +$wb['limit_web_subdomain_txt'] = 'Het max. aantal web subdomeinen voor uw account is bereikt.'; +$wb['apache_directives_txt'] = 'Apache richtlijnen'; +$wb['domain_error_empty'] = 'Domeinnaam is leeg.'; +$wb['domain_error_unique'] = 'Domein moet uniek zijn.'; +$wb['domain_error_regex'] = 'Domeinnaam is ongeldig.'; +$wb['hd_quota_error_empty'] = 'Schijfruimte limiet is leeg.'; +$wb['traffic_quota_error_empty'] = 'Dataverkeer limiet is leeg.'; +$wb['errordocs_txt'] = 'Eigen fout-paginas'; +$wb['error_ssl_state_empty'] = 'SSL: provincie is leeg.'; +$wb['error_ssl_locality_empty'] = 'SSL: plaats is leeg.'; +$wb['error_ssl_organisation_empty'] = 'SSL: organisatie is leeg.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL: organsatie afdeling is leeg.'; +$wb['error_ssl_country_empty'] = 'SSL: Land is leeg.'; +$wb['subdomain_txt'] = 'Automatische subdomeinen'; +$wb['client_group_id_txt'] = 'Klant'; +$wb['stats_password_txt'] = 'Website statistieken wachtwoord'; +$wb['ssl_domain_txt'] = 'SSL Domein'; +$wb['allow_override_txt'] = 'Optie: Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Maximale beschikbare schijfruimte-gebruik'; +$wb['ssl_state_error_regex'] = 'Ongeldige SSL Provincie. Geldige tekens zijn: a-z, 0-9 en .,-_'; +$wb['ssl_locality_error_regex'] = 'Ongeldige SSL Plaats. Geldige tekens zijn: a-z, 0-9 en .,-_'; +$wb['ssl_organisation_error_regex'] = 'Ongeldige SSL Organisatie. Geldige tekens zijn: a-z, 0-9 en .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Ongeldige SSL Organisatie afdeling. Geldige tekens zijn: a-z, 0-9 en .,-_'; +$wb['ssl_country_error_regex'] = 'Ongeldige SSL Landcode. Geldige tekens zijn: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_domain_list.lng new file mode 100644 index 0000000..1158d6d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Website overzicht'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domein'; +$wb['add_new_record_txt'] = 'Nieuwe website toevoegen'; +$wb['domain_id_txt'] = 'ID'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_sites_stats_list.lng new file mode 100644 index 0000000..67ce6f4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Website statistieken'; +$wb['domain_txt'] = 'Website domein'; +$wb['this_month_txt'] = 'Deze maand'; +$wb['last_month_txt'] = 'Laatste maand'; +$wb['this_year_txt'] = 'Dit jaar'; +$wb['last_year_txt'] = 'Vorig jaar'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain.lng new file mode 100644 index 0000000..58f5be4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Provincie'; +$wb['ssl_locality_txt'] = 'Plaats'; +$wb['ssl_organisation_txt'] = 'Organisatie'; +$wb['ssl_organisation_unit_txt'] = 'Organisatie afdeling'; +$wb['ssl_country_txt'] = 'Land'; +$wb['ssl_request_txt'] = 'SSL verzoek'; +$wb['ssl_cert_txt'] = 'SSL certificaat'; +$wb['ssl_bundle_txt'] = 'SSL bundel'; +$wb['ssl_action_txt'] = 'SSL actie'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domein'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Gekoppeld aan website'; +$wb['redirect_type_txt'] = 'Redirect type'; +$wb['redirect_path_txt'] = 'Redirect pad'; +$wb['active_txt'] = 'Actief?'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux gebruiker'; +$wb['system_group_txt'] = 'Linux groep'; +$wb['ip_address_txt'] = 'IP-adres'; +$wb['vhost_type_txt'] = 'VHost type'; +$wb['hd_quota_txt'] = 'Schijfruimte limiet'; +$wb['traffic_quota_txt'] = 'Dataverkeer limiet'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI (CGI)'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP5 module'; +$wb['client_txt'] = 'Klant'; +$wb['limit_web_domain_txt'] = 'Het max. aantal web domainen voor uw account is bereikt.'; +$wb['limit_web_aliasdomain_txt'] = 'Het max. aantal domeinaliassen voor uw account is bereikt.'; +$wb['limit_web_subdomain_txt'] = 'Het max. aantal web subdomeinen voor uw account is bereikt.'; +$wb['apache_directives_txt'] = 'Apache directives'; +$wb['domain_error_empty'] = 'Domein is leeg.'; +$wb['domain_error_unique'] = 'Domein moet uniek zijn.'; +$wb['domain_error_regex'] = 'Domeinnaam ongeldig.'; +$wb['host_txt'] = 'Hostnaam'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain_list.lng new file mode 100644 index 0000000..db8db09 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/nl_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Website subdomeinen'; +$wb['active_txt'] = 'Actief?'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Subdomein'; +$wb['add_new_record_txt'] = 'Nieuw subdomein toevoegen'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl.lng b/interface/ispconfig/interface/sites/lib/lang/pl.lng new file mode 100644 index 0000000..bd25bfd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Baza danych'; +$wb['Options'] = 'Opcje'; +$wb['Shell User'] = 'Użytkownik Shell'; +$wb['Domain'] = 'Strona www'; +$wb['Redirect'] = 'Przekierowanie'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomena'; +$wb['Sites'] = 'Strony'; +$wb['Aliasdomain'] = 'Alias domeny'; +$wb['FTP-User'] = 'Użytkownik FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Użytkownik Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Strony www'; +$wb['Stats'] = 'Statystyki'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_cron.lng b/interface/ispconfig/interface/sites/lib/lang/pl_cron.lng new file mode 100644 index 0000000..7771708 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Macierzysta'; +$wb['active_txt'] = 'Aktywny'; +$wb['client_txt'] = 'Klient'; +$wb['run_min_txt'] = 'Minuty'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Dni w miesiącu'; +$wb['run_month_txt'] = 'Miesiące'; +$wb['run_wday_txt'] = 'Dni w tygodniu'; +$wb['command_txt'] = 'Komenda uruchamiająca (komenda która wykona via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'Maksymalna ilość zadań crone została przekroczona.'; +$wb['limit_cron_frequency_txt'] = 'Częstotliwość wykonywania zadań przez crone została przekroczona.'; +$wb['run_min_error_format'] = 'Nieprawidłowy format minut.'; +$wb['run_hour_error_format'] = 'Nieprawidłowy format godzin.'; +$wb['run_mday_error_format'] = 'Niepoprawny format dni w miesiącu.'; +$wb['run_month_error_format'] = 'Niepoprawny format miesięcy.'; +$wb['run_wday_error_format'] = 'Niepoprawny format dni w tygodniu.'; +$wb['command_error_format'] = 'Niepoprawny format komendy. Proszę zanotuj że w zbiorze url może być tylko adres http/https który ma pozwolenie.'; +$wb['unknown_fieldtype_error'] = 'Został użyty niepoprawny format pola.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_cron_list.lng new file mode 100644 index 0000000..3c1d836 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Zadania Cron'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['run_min_txt'] = 'Minuta'; +$wb['run_hour_txt'] = 'Godzina'; +$wb['run_mday_txt'] = 'Dzień w miesiącu'; +$wb['run_month_txt'] = 'Miesiąc'; +$wb['run_wday_txt'] = 'Dzień tygodnia'; +$wb['command_txt'] = 'Komenda'; +$wb['add_new_cron_txt'] = 'Dodaj nowe zadanie Cron'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_database.lng b/interface/ispconfig/interface/sites/lib/lang/pl_database.lng new file mode 100644 index 0000000..75b44c4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Serwer'; +$wb['type_txt'] = 'Typ'; +$wb['database_name_txt'] = 'Nazwa bazy danych'; +$wb['database_user_txt'] = 'Użytkownik bazy danych'; +$wb['database_password_txt'] = 'Hasło bazy danych'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['database_charset_txt'] = 'Kodowanie bazy danych'; +$wb['remote_access_txt'] = 'Dostęp zewnętrzny'; +$wb['remote_ips_txt'] = 'Zewnętrzny dostęp z adresów IP (adresy zrodziel , i zostaw póste pola dla <i>każdego</i>)'; +$wb['database_remote_error_ips'] = 'Jeden z podanych adresów IP ma niepoprawny format.'; +$wb['client_txt'] = 'Klient'; +$wb['active_txt'] = 'Aktywny'; +$wb['database_name_error_empty'] = 'Nazwa bazy danych jest pusta.'; +$wb['database_name_error_unique'] = 'Istnieje już baza danych o takiej nazwie na serwerze. Aby mieć unikatową nazwę, np.: nazwij bazę danych tak samo jak domenę.'; +$wb['database_name_error_regex'] = 'Nieprawidłowa nazwa bazy danych. Nazwa bazy danych może zawierać znaki takie jak: a-z, A-Z, 0-9 oraz podkreślenie. Długość: 2 - 64 znaków.'; +$wb['database_user_error_empty'] = 'Nazwa użytkownika bazy danych jest pusta.'; +$wb['database_user_error_unique'] = 'Jest już użytkownik bazy danych o takiej nazwie. Aby mieć unikatową nazwę, np.: nazwij użytkownika tak samo jak domenę.'; +$wb['database_user_error_regex'] = 'Nieprawidłowa nazwa użytkownika bazy danych. Nazwa użytkownika bazy danych może zawierać znaki takie jak: a-z, A-Z, 0-9 oraz podkreślenie. Długość: 2 - 64 znaków.'; +$wb['limit_database_txt'] = 'Maksymalna liczba baz danych została przekroczona.'; +$wb['database_name_change_txt'] = 'Nie można zmienić nazwy bazy danych'; +$wb['database_charset_change_txt'] = 'Nie można zmienić kodowania bazy danych'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_database_list.lng new file mode 100644 index 0000000..ca92d98 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Baza danych'; +$wb['active_txt'] = 'Aktywna'; +$wb['remote_access_txt'] = 'Zewnętrzny dostęp'; +$wb['server_id_txt'] = 'Serwer'; +$wb['database_name_txt'] = 'Nazwa bazy danych'; +$wb['add_new_record_txt'] = 'Dodaj nową bazę danych'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user.lng new file mode 100644 index 0000000..0c49209 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Katalog'; +$wb['quota_files_txt'] = 'Limit plików'; +$wb['quota_files_unity_txt'] = 'Pliki'; +$wb['ul_ratio_txt'] = 'Ilość upload-u'; +$wb['dl_ratio_txt'] = 'Ilość download-u'; +$wb['ul_bandwidth_txt'] = 'Szybkość wysyłania'; +$wb['dl_bandwidth_txt'] = 'Szybkość ściągania'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona www'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['password_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['quota_size_txt'] = 'Limit na twardym dysku'; +$wb['active_txt'] = 'Aktywny'; +$wb['limit_ftp_user_txt'] = 'Maksymalna ilość użytkowników FTP dla Twojego konta została przekroczona.'; +$wb['username_error_empty'] = 'Nazwa użytkiownika jest pusta.'; +$wb['username_error_unique'] = 'Nazwa użytkownika musi być uniatowa.'; +$wb['username_error_regex'] = 'Nazwa użytkownika zawiera niedozwolone znaki.'; +$wb['quota_size_error_empty'] = 'Limit jest pusty.'; +$wb['uid_error_empty'] = 'GID jest puste.'; +$wb['directory_error_empty'] = 'Element docelowy jest pusty.'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'Nie wybrano żadnej strony www.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user_list.lng new file mode 100644 index 0000000..fecbba3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Użytkownik FTP'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona www'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['add_new_record_txt'] = 'Dodaj nowego użytkownika FTP'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/pl_shell_user.lng new file mode 100644 index 0000000..ff60f8f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Sieciowa nazwa użytkownika'; +$wb['gid_txt'] = 'Grupa'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Ścieżka'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['password_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['chroot_txt'] = 'Admin Shell'; +$wb['quota_size_txt'] = 'Limit'; +$wb['active_txt'] = 'Aktywny'; +$wb['username_error_empty'] = 'Nazwa użytkownika jest pusta.'; +$wb['username_error_unique'] = 'Nazwa użytkownika musi być unikatowa.'; +$wb['username_error_regex'] = 'Nazwa użytkownika.'; +$wb['quota_size_error_empty'] = 'Limit jest pusty.'; +$wb['uid_error_empty'] = 'GID jest pusty.'; +$wb['directory_error_empty'] = 'Element docelowy jest pusty.'; +$wb['limit_shell_user_txt'] = 'Maksymalna liczba użytkowników shell została przekroczona.'; +$wb['parent_domain_id_error_empty'] = 'Nie wybrano żadnej strony www.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_shell_user_list.lng new file mode 100644 index 0000000..850c0eb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Użytkownik Shell'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona'; +$wb['username_txt'] = 'Nazwa użytkownika'; +$wb['add_new_record_txt'] = 'Dodaj nowego uzytkownika Shell'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_aliasdomain_list.lng new file mode 100644 index 0000000..6dd8022 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Alias domeny'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona www'; +$wb['domain_txt'] = 'Alias domeny'; +$wb['add_new_record_txt'] = 'Dodaj nowy alias domeny'; +$wb['domain_error_empty'] = 'Domena jest pusta.'; +$wb['domain_error_unique'] = 'Domena musi być unikatowa.'; +$wb['domain_error_regex'] = 'Nazwa domeny ma niepoprawny format.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_domain.lng new file mode 100644 index 0000000..5b5106c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Stan'; +$wb['ssl_locality_txt'] = 'Lokalność'; +$wb['ssl_organisation_txt'] = 'Organizacja'; +$wb['ssl_organisation_unit_txt'] = 'Jednosta organizacji'; +$wb['ssl_country_txt'] = 'Państwo'; +$wb['ssl_request_txt'] = 'Żądanie SSL'; +$wb['ssl_cert_txt'] = 'Certyfikat SSL'; +$wb['ssl_bundle_txt'] = 'Paczka SSL'; +$wb['ssl_action_txt'] = 'Akcja SSL'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Aktualna strona www'; +$wb['redirect_type_txt'] = 'Typ przekierowania'; +$wb['redirect_path_txt'] = 'Ścieżka przekierowania'; +$wb['active_txt'] = 'Aktywny'; +$wb['document_root_txt'] = 'Głowny katalog'; +$wb['system_user_txt'] = 'Użytkownik Linuksa'; +$wb['system_group_txt'] = 'Grupa Linuks'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['vhost_type_txt'] = 'Typ wirtualnego serwera'; +$wb['hd_quota_txt'] = 'Limit dysku twardego'; +$wb['traffic_quota_txt'] = 'Limit ruchu na serwerze'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Własne strony błędów'; +$wb['subdomain_txt'] = 'Automatyczna subdomena'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Klient'; +$wb['limit_web_domain_txt'] = 'Maksymalna ilość domen dla Twojego konta została przekroczona.'; +$wb['limit_web_aliasdomain_txt'] = 'Maksymalna ilość aliasów domen dla Twojego konta została przekroczona.'; +$wb['limit_web_subdomain_txt'] = 'Maksymalna ilość subdomen dla Twojego konta została przekroczona.'; +$wb['apache_directives_txt'] = 'Dyrektywy Apache'; +$wb['domain_error_empty'] = 'Domena jest pusta.'; +$wb['domain_error_unique'] = 'Istnieje już strona www, alias lub subdomena dla tej domeny.'; +$wb['domain_error_regex'] = 'Nazwa domeny jest niepoprawna.'; +$wb['hd_quota_error_empty'] = 'Limit twardego dysku jest pusty.'; +$wb['traffic_quota_error_empty'] = 'Limit ruchu na serwerze jest pusty.'; +$wb['error_ssl_state_empty'] = 'Stan SSL jest pusty.'; +$wb['error_ssl_locality_empty'] = 'Lokalność SSL jest pusta.'; +$wb['error_ssl_organisation_empty'] = 'Organizacja SSL jest pusta.'; +$wb['error_ssl_organisation_unit_empty'] = 'Jednosta ogranizacji SSL jest pusta.'; +$wb['error_ssl_country_empty'] = 'Państwo SSL jest puste.'; +$wb['client_group_id_txt'] = 'Klient'; +$wb['stats_password_txt'] = 'Hasło statystyk strony www'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_domain_list.lng new file mode 100644 index 0000000..62b7455 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Strony www'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['add_new_record_txt'] = 'Dodaj nową stronę'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_sites_stats_list.lng new file mode 100644 index 0000000..e7b96d7 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Ruch na stronie www'; +$wb['domain_txt'] = 'Domena'; +$wb['this_month_txt'] = 'Ten miesiąc'; +$wb['last_month_txt'] = 'Ostatni miesiąc'; +$wb['this_year_txt'] = 'Ten rok'; +$wb['last_year_txt'] = 'Ostatni rok'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain.lng new file mode 100644 index 0000000..18e5a93 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Stan'; +$wb['ssl_locality_txt'] = 'Lokalność'; +$wb['ssl_organisation_txt'] = 'Organizacja'; +$wb['ssl_organisation_unit_txt'] = 'Jednostka organizacji'; +$wb['ssl_country_txt'] = 'Państwo'; +$wb['ssl_request_txt'] = 'Żądanie SSL'; +$wb['ssl_cert_txt'] = 'Certyfikat SSL'; +$wb['ssl_bundle_txt'] = 'Paczka SSL'; +$wb['ssl_action_txt'] = 'Akcja SSL'; +$wb['server_id_txt'] = 'Serwer'; +$wb['domain_txt'] = 'Domena'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Macieżysta strona www'; +$wb['redirect_type_txt'] = 'Typ przekierowania'; +$wb['redirect_path_txt'] = 'Ścieżka przekierowania'; +$wb['active_txt'] = 'Aktywny'; +$wb['document_root_txt'] = 'Główny katalog'; +$wb['system_user_txt'] = 'Użytkownik Linuksa'; +$wb['system_group_txt'] = 'Grupa Linuks'; +$wb['ip_address_txt'] = 'Adres IP'; +$wb['vhost_type_txt'] = 'Typ wirtualnego hosta'; +$wb['hd_quota_txt'] = 'Limit twardego dysku'; +$wb['traffic_quota_txt'] = 'Limit ruchu na serwerze'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Klient'; +$wb['limit_web_domain_txt'] = 'Maksymalna ilość domen dla Twojego konta została przekroczona.'; +$wb['limit_web_aliasdomain_txt'] = 'Maksymalna ilość aliasów dla Twojego konta została przekroczona.'; +$wb['limit_web_subdomain_txt'] = 'Maksymalna ilość subdomen dla Twojego konta została przekroczona.'; +$wb['apache_directives_txt'] = 'Dyrektywy Apache'; +$wb['domain_error_empty'] = 'Domena jest pusta.'; +$wb['domain_error_unique'] = 'Istnieje już domena, alias lub subdomena o podanej nazwie.'; +$wb['domain_error_regex'] = 'Nazwa domeny jest nieprawidłowa.'; +$wb['host_txt'] = 'Serwer'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain_list.lng new file mode 100644 index 0000000..9ccb0a3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pl_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdomeny'; +$wb['active_txt'] = 'Aktywny'; +$wb['server_id_txt'] = 'Serwer'; +$wb['parent_domain_id_txt'] = 'Strona www'; +$wb['domain_txt'] = 'Subdomena'; +$wb['add_new_record_txt'] = 'Dodaj nową subdomene'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/pt.lng b/interface/ispconfig/interface/sites/lib/lang/pt.lng new file mode 100644 index 0000000..d6bc1e1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt.lng @@ -0,0 +1,23 @@ +<?php +$wb['Database'] = 'Base de Dados'; +$wb['Options'] = 'Opções'; +$wb['Shell User'] = 'Utilizador de Shell'; +$wb['Domain'] = 'Website'; +$wb['Redirect'] = 'Redireccionamento'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Sub-domínio'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Alias de Domínio'; +$wb['FTP-User'] = 'Utilizador -FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Utilizador -Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Estatísticas'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Tarefas no Cron'; +$wb['Statistics'] = 'Estatísticas'; +$wb['Web traffic'] = 'Tráfego Web'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_cron.lng b/interface/ispconfig/interface/sites/lib/lang/pt_cron.lng new file mode 100644 index 0000000..373a37d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_cron.lng @@ -0,0 +1,22 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site Web Parente'; +$wb['active_txt'] = 'Activo'; +$wb['client_txt'] = 'Cliente'; +$wb['run_min_txt'] = 'Minutos'; +$wb['run_hour_txt'] = 'Horas'; +$wb['run_mday_txt'] = 'Dias do mês'; +$wb['run_month_txt'] = 'Meses'; +$wb['run_wday_txt'] = 'Dias da semana'; +$wb['command_txt'] = 'Comando a executar (os comandos serão executados via sh ou urls via wget)'; +$wb['limit_cron_txt'] = 'O número máximo de tarefas no cron foi atingido.'; +$wb['limit_cron_frequency_txt'] = 'A frequência das tarefas no cron ultrapassou o limite permitido.'; +$wb['run_min_error_format'] = 'Formato dos minutos inválido.'; +$wb['run_hour_error_format'] = 'Formato dos horas inválido.'; +$wb['run_mday_error_format'] = 'Formato dos dias do mês inválido.'; +$wb['run_month_error_format'] = 'Formato dos meses inválido.'; +$wb['run_wday_error_format'] = 'Formato dos dias da semana inválido.'; +$wb['command_error_format'] = 'Formato de comando inválido. Apenas endereços url http/https são permitidos.'; +$wb['unknown_fieldtype_error'] = 'Um tipo desconhecido de campo foi usado.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_cron_list.lng new file mode 100644 index 0000000..f5cd15a --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_cron_list.lng @@ -0,0 +1,13 @@ +<?php +$wb['list_head_txt'] = 'Tarefas no Cron'; +$wb['active_txt'] = 'Activas'; +$wb['server_id_txt'] = 'Servidor'; +$wb['run_min_txt'] = 'Minutos'; +$wb['run_hour_txt'] = 'Horas'; +$wb['run_mday_txt'] = 'Dias do mês'; +$wb['run_month_txt'] = 'Mês'; +$wb['run_wday_txt'] = 'Dia da semana'; +$wb['command_txt'] = 'Comando'; +$wb['add_new_cron_txt'] = 'Adicionar uma nova tarefa no cron'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_database.lng b/interface/ispconfig/interface/sites/lib/lang/pt_database.lng new file mode 100644 index 0000000..5ffc49e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_database.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Servidor'; +$wb['type_txt'] = 'Tipo'; +$wb['database_name_txt'] = 'Nome da Base de Dados'; +$wb['database_user_txt'] = 'Utilizador da Base de Dados'; +$wb['database_password_txt'] = 'Senha da Base de Dados'; +$wb['password_strength_txt'] = 'Segurança da Senha'; +$wb['database_charset_txt'] = 'Charset da Base de Dados'; +$wb['remote_access_txt'] = 'Acesso Remoto'; +$wb['client_txt'] = 'Cliente'; +$wb['active_txt'] = 'Activo'; +$wb['database_name_error_empty'] = 'O nome da base de dados está em branco.'; +$wb['database_name_error_unique'] = 'Já existe uma base de dados com este nome no servidor. O nome escolhido deve ser único.'; +$wb['database_name_error_regex'] = 'Nome inválido. O nome da base de dados só pode conter estes caracteres: a-z, A-Z, 0-9 e o underscore. Tamanho: 2 - 64 caracteres.'; +$wb['database_user_error_empty'] = 'O nome do utilizador está em branco.'; +$wb['database_user_error_unique'] = 'Já existe uma base de dados com este nome no servidor. O nome escolhido deve ser único.'; +$wb['database_user_error_regex'] = 'Nome inválido. O nome da base de dados só pode conter estes caracteres: a-z, A-Z, 0-9 e o underscore. Tamanho: 2 - 64 caracteres.'; +$wb['limit_database_txt'] = 'O limite máximo de bases de dados foi atingido.'; +$wb['database_name_change_txt'] = 'O nome da base de dados não pode ser modificado'; +$wb['database_charset_change_txt'] = 'O charset da base de dados não pode ser mudado'; +$wb['remote_ips_txt'] = 'Endereços IP Remotos (separados por , deixe em branco para <i>quaisquer ips</i>)'; +$wb['database_remote_error_ips'] = 'Pelo menos um dos endereços ip informados não é válido.'; +$wb['database_name_error_len'] = 'O nome da base de dados - {db} - é muito longo. 64 caracteres é o número máximo permitido incluindo prefixo.'; +$wb['database_user_error_len'] = 'O nome de utilizador da base de dados - {user}- é muito longo. 16 caracteres é o número máximo permitido incluindo prefixo.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_database_list.lng new file mode 100644 index 0000000..6a09c69 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_database_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Base de Dados'; +$wb['active_txt'] = 'Activo'; +$wb['remote_access_txt'] = 'Acesso Remoto'; +$wb['server_id_txt'] = 'Servidor'; +$wb['database_name_txt'] = 'Nome da Base de Dados'; +$wb['add_new_record_txt'] = 'Adicionar uma nova base de dados'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user.lng new file mode 100644 index 0000000..5573ba3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user.lng @@ -0,0 +1,28 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Pasta'; +$wb['quota_files_txt'] = 'Cota de Ficheiros'; +$wb['quota_files_unity_txt'] = 'Ficheiros'; +$wb['ul_ratio_txt'] = 'Taxa de Upload'; +$wb['dl_ratio_txt'] = 'Taxa de Download'; +$wb['ul_bandwidth_txt'] = 'Banda de Upload'; +$wb['dl_bandwidth_txt'] = 'Banda de Download'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Utilizador '; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Tamanho da senha'; +$wb['quota_size_txt'] = 'Cota de Disco'; +$wb['active_txt'] = 'Activo'; +$wb['limit_ftp_user_txt'] = 'O número máximo de utilizadors de FTP para a conta foi atingido.'; +$wb['username_error_empty'] = 'Nome de utilizador em branco.'; +$wb['username_error_unique'] = 'O nome de utilizador deve ser único.'; +$wb['username_error_regex'] = 'O nome de utilizador contém caracteres não permitidos.'; +$wb['quota_size_error_empty'] = 'Quota em branco.'; +$wb['uid_error_empty'] = 'GID em branco.'; +$wb['directory_error_empty'] = 'Pasta vazia.'; +$wb['directory_error_notinweb'] = 'A pasta não esta dentro da pasta web principal.'; +$wb['parent_domain_id_error_empty'] = 'Nenhum website seleccionado.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user_list.lng new file mode 100644 index 0000000..c9f7ed2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_ftp_user_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Utilizador -FTP'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Utilizador '; +$wb['add_new_record_txt'] = 'Adicionar um novo Utilizador FTP'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/pt_shell_user.lng new file mode 100644 index 0000000..4e4cddb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_shell_user.lng @@ -0,0 +1,23 @@ +<?php +$wb['uid_txt'] = 'Nome do utilizador'; +$wb['gid_txt'] = 'Groupo'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Pasta'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Nome do utilizador'; +$wb['password_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Dificuldade da senha'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Activo'; +$wb['username_error_empty'] = 'Nome de utilizador em branco.'; +$wb['username_error_unique'] = 'O nome de utilizador deve ser único.'; +$wb['username_error_regex'] = 'O nome do utilizador contém caracteres não permitidos.'; +$wb['quota_size_error_empty'] = 'Quota em branco.'; +$wb['uid_error_empty'] = 'GID em branco.'; +$wb['directory_error_empty'] = 'Pasta vazia.'; +$wb['limit_shell_user_txt'] = 'O número máximo de utilizadors shell para a conta foi atingido.'; +$wb['parent_domain_id_error_empty'] = 'Nenhum website seleccionado.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_shell_user_list.lng new file mode 100644 index 0000000..f704ab6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_shell_user_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Utilizador de Shell'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Utilizador '; +$wb['add_new_record_txt'] = 'Adicionar Utilizador de Shell'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_aliasdomain_list.lng new file mode 100644 index 0000000..9295fb1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_aliasdomain_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Domínio Alias'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Domínio Alias'; +$wb['add_new_record_txt'] = 'Adicionar Alias de Domínio'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'O domínio deve ser único.'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_domain.lng new file mode 100644 index 0000000..0cf10f8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_domain.lng @@ -0,0 +1,61 @@ +<?php +$wb['ssl_state_txt'] = 'Estado'; +$wb['ssl_locality_txt'] = 'Localização'; +$wb['ssl_organisation_txt'] = 'Empresa'; +$wb['ssl_organisation_unit_txt'] = 'Departamento'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Requisição SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Site Parente'; +$wb['redirect_type_txt'] = 'Tipo Redireccionamento'; +$wb['redirect_path_txt'] = 'Pasta de redireccionamento'; +$wb['active_txt'] = 'Activo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Utilizador Linux'; +$wb['system_group_txt'] = 'Groupo Linux'; +$wb['ip_address_txt'] = 'Endereço-IP'; +$wb['vhost_type_txt'] = 'Tipo de VHost'; +$wb['hd_quota_txt'] = 'Cota de Disco'; +$wb['traffic_quota_txt'] = 'Cota de Tráfego'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Páginas de Erro'; +$wb['subdomain_txt'] = 'Auto-Subdomínio'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'O número máximo de domínios web para a conta foi atingido.'; +$wb['limit_web_aliasdomain_txt'] = 'O número máximo de aliases domínio para a conta foi atingido.'; +$wb['limit_web_subdomain_txt'] = 'O número máximo de sub-domínios para a conta foi atingido.'; +$wb['apache_directives_txt'] = 'Directivas do Apache'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Já existe site, alias ou sub-domínio com este nome'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +$wb['hd_quota_error_empty'] = 'Quota de disco está em branco.'; +$wb['traffic_quota_error_empty'] = 'Quota de tráfego está em branco.'; +$wb['error_ssl_state_empty'] = 'Estado do SSL está em branco.'; +$wb['error_ssl_locality_empty'] = 'Localização do SSL está em branco.'; +$wb['error_ssl_organisation_empty'] = 'Empresa do SSL está em branco.'; +$wb['error_ssl_organisation_unit_empty'] = 'Departamento do SSL está em branco.'; +$wb['error_ssl_country_empty'] = 'País do SSL em branco.'; +$wb['client_group_id_txt'] = 'Cliente'; +$wb['stats_password_txt'] = 'Senha da pasta de estatísticas'; +$wb['ssl_domain_txt'] = 'Domínio SSL'; +$wb['allow_override_txt'] = 'Permitir Sobrescrever'; +$wb['limit_web_quota_free_txt'] = 'Cota Max. de disco disponível'; +$wb['ssl_state_error_regex'] = 'Estado inválido para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_locality_error_regex'] = 'Localidade inválida para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_organisation_error_regex'] = 'Empresa inválida para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Departamento inválido para SSL. São caracteres válidos: a-z, 0-9 e .,-_'; +$wb['ssl_country_error_regex'] = 'País inválido para SSL. São caracteres válidos: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Cota máxima de Tráfego disponível'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_domain_list.lng new file mode 100644 index 0000000..fadc95c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_domain_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Websites'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['add_new_record_txt'] = 'Adicionar um novo site'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_sites_stats_list.lng new file mode 100644 index 0000000..18bf044 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_sites_stats_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Tráfego Web'; +$wb['domain_txt'] = 'Domínio'; +$wb['this_month_txt'] = 'Este mês'; +$wb['last_month_txt'] = 'Último mês'; +$wb['this_year_txt'] = 'Este ano'; +$wb['last_year_txt'] = 'Último ano'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain.lng new file mode 100644 index 0000000..a1f332d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain.lng @@ -0,0 +1,41 @@ +<?php +$wb['ssl_state_txt'] = 'Estado'; +$wb['ssl_locality_txt'] = 'Localidade'; +$wb['ssl_organisation_txt'] = 'Empresa'; +$wb['ssl_organisation_unit_txt'] = 'Departamento'; +$wb['ssl_country_txt'] = 'País'; +$wb['ssl_request_txt'] = 'Requisição SSL'; +$wb['ssl_cert_txt'] = 'Certificado SSL'; +$wb['ssl_bundle_txt'] = 'Pacote SSL'; +$wb['ssl_action_txt'] = 'Acção SSL'; +$wb['server_id_txt'] = 'Servidor'; +$wb['domain_txt'] = 'Domínio'; +$wb['type_txt'] = 'Tipo'; +$wb['parent_domain_id_txt'] = 'Site Parente'; +$wb['redirect_type_txt'] = 'Tipo do Redireccionamento'; +$wb['redirect_path_txt'] = 'Pasta do Redireccionamento'; +$wb['active_txt'] = 'Activo'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Utilizador no Linux'; +$wb['system_group_txt'] = 'Grupo no Linux'; +$wb['ip_address_txt'] = 'Endereço-IP'; +$wb['vhost_type_txt'] = 'Tipo de VHost'; +$wb['hd_quota_txt'] = 'Cota de Disco'; +$wb['traffic_quota_txt'] = 'Cota de Tráfico'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Cliente'; +$wb['limit_web_domain_txt'] = 'O número máximo de domínios web para esta conta foi atingido.'; +$wb['limit_web_aliasdomain_txt'] = 'O número máximo de aliases para esta conta foi atingido.'; +$wb['limit_web_subdomain_txt'] = 'O número máximo de sub-domínios para esta conta foi atingido.'; +$wb['apache_directives_txt'] = 'Directivas apache'; +$wb['domain_error_empty'] = 'Domínio em branco.'; +$wb['domain_error_unique'] = 'Já existe um alias ou sub-domínio com este nome.'; +$wb['domain_error_regex'] = 'Nome de domínio inválido.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Pasta de redireccionamento inválida. Exemplos de redireccionamentos válidos: /test/ or http://www.dominio.pt/test/'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain_list.lng new file mode 100644 index 0000000..ce29103 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/pt_web_subdomain_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Sub-domínios'; +$wb['active_txt'] = 'Activo'; +$wb['server_id_txt'] = 'Servidor'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Sub-domínio'; +$wb['add_new_record_txt'] = 'Adicionar um novo sub-domínio'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ro.lng b/interface/ispconfig/interface/sites/lib/lang/ro.lng new file mode 100644 index 0000000..44f2fbc --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Database'; +$wb['Options'] = 'Optiuni'; +$wb['Shell User'] = 'Shell User'; +$wb['Domain'] = 'Website'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP-User'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-User'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Website-uri'; +$wb['Stats'] = 'Statistici'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_cron.lng b/interface/ispconfig/interface/sites/lib/lang/ro_cron.lng new file mode 100644 index 0000000..8cb7f08 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb["server_id_txt"] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_cron_list.lng new file mode 100644 index 0000000..b5c8d15 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb["list_head_txt"] = 'Cron Jobs'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["run_min_txt"] = 'Minute'; +$wb["run_hour_txt"] = 'Hour'; +$wb["run_mday_txt"] = 'Day of month'; +$wb["run_month_txt"] = 'Month'; +$wb["run_wday_txt"] = 'Day of week'; +$wb["command_txt"] = 'Command'; +$wb["add_new_cron_txt"] = 'Add new Cron job'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_database.lng b/interface/ispconfig/interface/sites/lib/lang/ro_database.lng new file mode 100644 index 0000000..07566e8 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['database_name_txt'] = 'Database name'; +$wb['database_user_txt'] = 'Database user'; +$wb['database_password_txt'] = 'Database password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['database_charset_txt'] = 'Database charset'; +$wb['remote_access_txt'] = 'Remote Access'; +$wb['client_txt'] = 'Client'; +$wb['active_txt'] = 'Active'; +$wb['database_name_error_empty'] = 'Database name necompletat'; +$wb['database_name_error_unique'] = 'exista deja o baza de date cu acest nume , folositi ca prefix domeniul '; +$wb['database_name_error_regex'] = 'nume database invalid .Numele bazei de date paote contine numere litere si semne pana la 64 simboluri'; +$wb['database_user_error_empty'] = 'Database user necompletat'; +$wb['database_user_error_unique'] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb['database_user_error_regex'] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb['limit_database_txt'] = 'The max. number of databases is reached.'; +$wb['database_name_change_txt'] = 'The database name can not be changed'; +$wb['database_charset_change_txt'] = 'The database charset can not be changed'; +$wb['remote_ips_txt'] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb['database_remote_error_ips'] = 'At least one of the entered ip addresses is invalid.'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_database_list.lng new file mode 100644 index 0000000..9f45d09 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Database'; +$wb['active_txt'] = 'Active'; +$wb['remote_access_txt'] = 'Remote Access'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Database name'; +$wb['add_new_record_txt'] = 'Adauga Database'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user.lng new file mode 100644 index 0000000..6efddad --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Directory'; +$wb['quota_files_txt'] = 'Filequota'; +$wb['quota_files_unity_txt'] = 'Files'; +$wb['ul_ratio_txt'] = 'Uploadratio'; +$wb['dl_ratio_txt'] = 'Downloadratio'; +$wb['ul_bandwidth_txt'] = 'Upload bandwidth'; +$wb['dl_bandwidth_txt'] = 'Download bandwidth'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['quota_size_txt'] = 'Harddisk-Quota'; +$wb['active_txt'] = 'Active'; +$wb['limit_ftp_user_txt'] = 'Numarul maxim de useri FTP pe contul dumneavoastra a fost atins'; +$wb['username_error_empty'] = 'Username necompletat'; +$wb['username_error_unique'] = 'username trebuie sa fie unic.'; +$wb['username_error_regex'] = 'username are caractere nepermise'; +$wb['quota_size_error_empty'] = 'Quota necompletat'; +$wb['uid_error_empty'] = 'GID necompletat'; +$wb['directory_error_empty'] = 'Directory necompletat'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user_list.lng new file mode 100644 index 0000000..bb4e25d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP-User'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Adauga un nou FTP-User'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/ro_shell_user.lng new file mode 100644 index 0000000..a32638e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Username'; +$wb['gid_txt'] = 'Grup'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Dir'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Activ'; +$wb['username_error_empty'] = 'Username necompletat'; +$wb['username_error_unique'] = 'Username trebuie sa fie unic'; +$wb['username_error_regex'] = 'Username contine caractere nepermise'; +$wb['quota_size_error_empty'] = 'Quota necompletat'; +$wb['uid_error_empty'] = 'GID necompletat'; +$wb['directory_error_empty'] = 'Directory necompletat'; +$wb['limit_shell_user_txt'] = 'Numarul maxim de Shell-uri a fost atins'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_shell_user_list.lng new file mode 100644 index 0000000..2916771 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell User'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Adauga un nou Shell-User'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_aliasdomain_list.lng new file mode 100644 index 0000000..dd61232 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Adauga un nou aliasdomain'; +$wb['domain_error_empty'] = 'Domain necompletat'; +$wb['domain_error_unique'] = 'Domain trebuie sa fie unic'; +$wb['domain_error_regex'] = 'Domain nume invalid.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_domain.lng new file mode 100644 index 0000000..eefd660 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Judet'; +$wb['ssl_locality_txt'] = 'Localitate'; +$wb['ssl_organisation_txt'] = 'Organizatie'; +$wb['ssl_organisation_unit_txt'] = 'Unitate din Organizatie'; +$wb['ssl_country_txt'] = 'Tara'; +$wb['ssl_request_txt'] = 'SSL Cerere'; +$wb['ssl_cert_txt'] = 'SSL Certificat'; +$wb['ssl_bundle_txt'] = 'SSL Bundle (pachet)'; +$wb['ssl_action_txt'] = 'SSL Actiune'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Tip'; +$wb['parent_domain_id_txt'] = 'Parinte Website'; +$wb['redirect_type_txt'] = 'Redirect Tip'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Active'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux User'; +$wb['system_group_txt'] = 'Linux Group'; +$wb['ip_address_txt'] = 'IP-Address'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Own Error-Documents'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'Numarul maxim de domenii web pe contl dumneavoastra a fost atins'; +$wb['limit_web_aliasdomain_txt'] = 'Numarul maxim de aliasuri pe contul dumneavoastra a fost atins'; +$wb['limit_web_subdomain_txt'] = 'Numarul maxim de web subdomenii pe contul dumneavoastra a fost atins'; +$wb['apache_directives_txt'] = 'Apache directive'; +$wb['domain_error_empty'] = 'Domain este necompletat'; +$wb['domain_error_unique'] = 'deja exista un domeniu /subdomeniu asemanator'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['hd_quota_error_empty'] = 'Harddisk quota necompletata'; +$wb['traffic_quota_error_empty'] = 'Traffic quota necompletata'; +$wb['error_ssl_state_empty'] = 'SSL Judet necompletata'; +$wb['error_ssl_locality_empty'] = 'SSL Localitate necompletata'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation necompletata'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit necompletata'; +$wb['error_ssl_country_empty'] = 'SSL Tara necompletata'; +$wb['client_group_id_txt'] = 'Client'; +$wb['stats_password_txt'] = 'Webstatistics password'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_domain_list.lng new file mode 100644 index 0000000..e84427d --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Website-uri'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Adauga un nou website'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_sites_stats_list.lng new file mode 100644 index 0000000..20f018b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb["list_head_txt"] = 'Web traffic'; +$wb["domain_txt"] = 'Domain'; +$wb["this_month_txt"] = 'This month'; +$wb["last_month_txt"] = 'Last month'; +$wb["this_year_txt"] = 'This year'; +$wb["last_year_txt"] = 'Last year'; +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain.lng new file mode 100644 index 0000000..fd319c5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Judet'; +$wb['ssl_locality_txt'] = 'Localitate'; +$wb['ssl_organisation_txt'] = 'Organisation'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Tara'; +$wb['ssl_request_txt'] = 'SSL Cerere'; +$wb['ssl_cert_txt'] = 'SSL Certificat'; +$wb['ssl_bundle_txt'] = 'SSL Bundle (pachet)'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Active'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux User'; +$wb['system_group_txt'] = 'Linux Group'; +$wb['ip_address_txt'] = 'IP-Address'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quaota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'numarul maxim de web domnii a fost atins'; +$wb['limit_web_aliasdomain_txt'] = 'Numarul maxim de alias domain a fost atins'; +$wb['limit_web_subdomain_txt'] = 'numarul maxim de subdomenii a fost atins'; +$wb['apache_directives_txt'] = 'Apache directives'; +$wb['domain_error_empty'] = 'Domain necompletat'; +$wb['domain_error_unique'] = 'exista deja un domeniu sau subdomeniu asemanator'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain_list.lng new file mode 100644 index 0000000..445ec6c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ro_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdomenii'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Subdomeniu'; +$wb['add_new_record_txt'] = 'Adauga un nou subdomeniu'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/ru.lng b/interface/ispconfig/interface/sites/lib/lang/ru.lng new file mode 100644 index 0000000..93f0501 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru.lng @@ -0,0 +1,23 @@ +<?php +$wb['Database'] = 'База данных'; +$wb['Options'] = 'Опции'; +$wb['Shell User'] = 'Пользователь Shell'; +$wb['Domain'] = 'Домен'; +$wb['Redirect'] = 'Редирект'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Субдомен'; +$wb['Sites'] = 'Сайт'; +$wb['Aliasdomain'] = 'Алиас домена'; +$wb['FTP-User'] = 'Пользователь FTP'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Пользователь Shell'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Web-сайты'; +$wb['Stats'] = 'Статистика'; +$wb['Website'] = 'Web-сайт'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Задачи Cron'; +$wb['Statistics'] = 'Статистика'; +$wb['Web traffic'] = 'Трафик Web'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_cron.lng b/interface/ispconfig/interface/sites/lib/lang/ru_cron.lng new file mode 100644 index 0000000..daa4ed3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_cron.lng @@ -0,0 +1,22 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Родительский web-сайт'; +$wb['active_txt'] = 'Активна?'; +$wb['client_txt'] = 'Клиент'; +$wb['run_min_txt'] = 'Минуты'; +$wb['run_hour_txt'] = 'Часы'; +$wb['run_mday_txt'] = 'День месяца'; +$wb['run_month_txt'] = 'Месяц'; +$wb['run_wday_txt'] = 'День недели'; +$wb['command_txt'] = 'Команда для запуска (запускаются посредством sh, urls через wget)'; +$wb['limit_cron_txt'] = 'Достигнуто максимальное допустимое количество задач для cron.'; +$wb['limit_cron_frequency_txt'] = 'Превышена доступная частота запуска для cron.'; +$wb['run_min_error_format'] = 'Неверный формат минут'; +$wb['run_hour_error_format'] = 'Неверный формат часов'; +$wb['run_mday_error_format'] = 'Неверный формат для дня месяца'; +$wb['run_month_error_format'] = 'Неверный формат для месяца'; +$wb['run_wday_error_format'] = 'Неверный формат для дня недели'; +$wb['command_error_format'] = 'Неверный формат команды. Учтите, что тип вызов url может быть только http/https.'; +$wb['unknown_fieldtype_error'] = 'Неверный тип поля был использован.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_cron_list.lng new file mode 100644 index 0000000..49c6cbe --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_cron_list.lng @@ -0,0 +1,13 @@ +<?php +$wb['list_head_txt'] = 'Задачи для cron'; +$wb['active_txt'] = 'Активные'; +$wb['server_id_txt'] = 'Сервер'; +$wb['run_min_txt'] = 'Минуты'; +$wb['run_hour_txt'] = 'Часы'; +$wb['run_mday_txt'] = 'День месяца'; +$wb['run_month_txt'] = 'Месяц'; +$wb['run_wday_txt'] = 'День недели'; +$wb['command_txt'] = 'Команда'; +$wb['add_new_cron_txt'] = 'Добавить задачу Cron'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_database.lng b/interface/ispconfig/interface/sites/lib/lang/ru_database.lng new file mode 100644 index 0000000..ae0ebea --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_database.lng @@ -0,0 +1,26 @@ +<?php +$wb['server_id_txt'] = 'Сервер'; +$wb['type_txt'] = 'Тип'; +$wb['database_name_txt'] = 'Имя БД'; +$wb['database_user_txt'] = 'Логин БД'; +$wb['database_password_txt'] = 'Пароль БД'; +$wb['database_charset_txt'] = 'Кодировка БД'; +$wb['remote_access_txt'] = 'Удаленный доступ'; +$wb['client_txt'] = 'Клиент'; +$wb['active_txt'] = 'Активна?'; +$wb['database_name_error_empty'] = 'Пустое имя БД.'; +$wb['database_name_error_unique'] = 'Имя БД уже существует. Что бы получить уникальное название, сложите название сайта и имя БД.'; +$wb['database_name_error_regex'] = 'Неверное имя БД. Имя БД может содержать только следующие символы: a-z, A-Z, 0-9 и нижний пробел _. Длина: 2 - 64 символа.'; +$wb['database_user_error_empty'] = 'Логин БД пустой'; +$wb['database_user_error_unique'] = 'Такой пользователь БД уже существует. Что бы получить уникальное имя, сложите название сайта и ваше имя.'; +$wb['database_user_error_regex'] = 'Неверный логин для БД. Логин может содержать только следующие символы: a-z, A-Z, 0-9 и нижний пробел _. Длина: 2 - 16 символов.'; +$wb['limit_database_txt'] = 'Достигнуто максимальное количество БД.'; +$wb['database_name_change_txt'] = 'Имя БД не может быть изменено'; +$wb['database_charset_change_txt'] = 'Кодировка БД не может быть изменена'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['remote_ips_txt'] = 'IP-адреса для удаленного доступа (разделяются , оставьте поле пустым для <i>любого</i>)'; +$wb['database_remote_error_ips'] = 'Минимум один введенный адрес неверен.'; +$wb['database_name_error_len'] = 'Имя БД - {db} - cлишком длинное. Максимальная длина имени БД включая префикс - 64 символа'; +$wb['database_user_error_len'] = 'Логин для БД - {user} - cлишком длинное. Максимальная длина логина - 16 символов'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_database_list.lng new file mode 100644 index 0000000..707b9f5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_database_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Базы данных'; +$wb['active_txt'] = 'Активен?'; +$wb['remote_access_txt'] = 'Удаленный доступ'; +$wb['server_id_txt'] = 'Сервер'; +$wb['database_name_txt'] = 'Имя БД'; +$wb['add_new_record_txt'] = 'Добавить новую БД'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user.lng new file mode 100644 index 0000000..26a4cc1 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user.lng @@ -0,0 +1,28 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Директория'; +$wb['quota_files_txt'] = 'Квота файлов'; +$wb['ul_ratio_txt'] = 'Квота на аплоад'; +$wb['dl_ratio_txt'] = 'Квота на скачивание'; +$wb['ul_bandwidth_txt'] = 'Скорость аплоада'; +$wb['dl_bandwidth_txt'] = 'Скорость скачивания'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Web-сайт'; +$wb['username_txt'] = 'Пользователь'; +$wb['password_txt'] = 'Пароль'; +$wb['quota_size_txt'] = 'Квота HDD'; +$wb['active_txt'] = 'Активен?'; +$wb['limit_ftp_user_txt'] = 'Максимальное число FTP пользователей достигнуто.'; +$wb['username_error_empty'] = 'Имя пользователя пустое.'; +$wb['username_error_unique'] = 'Имя пользователя должно быть уникальным.'; +$wb['username_error_regex'] = 'Имя пользователя содержит недопустимые символы.'; +$wb['quota_size_error_empty'] = 'Размер квоты пустой.'; +$wb['uid_error_empty'] = 'Значениче GID пустое.'; +$wb['directory_error_empty'] = 'Пустая папка'; +$wb['password_strength_txt'] = 'Стойкость паоля'; +$wb['quota_files_unity_txt'] = 'Файлы'; +$wb['directory_error_notinweb'] = 'Директория снаружи web-root папки.'; +$wb['parent_domain_id_error_empty'] = 'Web-сайт не выбран.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user_list.lng new file mode 100644 index 0000000..1ba6ad5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_ftp_user_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'FTP-Пользователь'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Веб сайт'; +$wb['username_txt'] = 'Пользователь'; +$wb['add_new_record_txt'] = 'Добавить нового FTP-Пользователя'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/ru_shell_user.lng new file mode 100644 index 0000000..b0a7c7c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_shell_user.lng @@ -0,0 +1,23 @@ +<?php +$wb['uid_txt'] = 'Web пользователь'; +$wb['gid_txt'] = 'Группа'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Путь'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Пользователь'; +$wb['password_txt'] = 'Пароль'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Квота'; +$wb['active_txt'] = 'Активен?'; +$wb['username_error_empty'] = 'Имя пользователя пустое.'; +$wb['username_error_unique'] = 'Имя пользователя должно быть уникальным.'; +$wb['username_error_regex'] = 'Имя пользователя содержит недопустимые символы'; +$wb['quota_size_error_empty'] = 'Размер квоты пуст'; +$wb['uid_error_empty'] = 'GID пустой.'; +$wb['directory_error_empty'] = 'Пуская директория'; +$wb['password_strength_txt'] = 'Стойкость пароля'; +$wb['limit_shell_user_txt'] = 'Достигнуто допустимое количество пользователей shell'; +$wb['parent_domain_id_error_empty'] = 'Web-сайт не выбран'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_shell_user_list.lng new file mode 100644 index 0000000..54e40c3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_shell_user_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Shell Пользователь'; +$wb['active_txt'] = 'Активна?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Сайт'; +$wb['username_txt'] = 'Пользователь'; +$wb['add_new_record_txt'] = 'Добавить Shell-пользователя'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_aliasdomain_list.lng new file mode 100644 index 0000000..5bda44b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_aliasdomain_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Доменные алиасы'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Web-сайт'; +$wb['domain_txt'] = 'Доменный алиас'; +$wb['add_new_record_txt'] = 'Добавить новый алиас'; +$wb['domain_error_empty'] = 'Домен пустой.'; +$wb['domain_error_unique'] = 'Домен должен быть уникальным.'; +$wb['domain_error_regex'] = 'Имя домена неправильно.'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_domain.lng new file mode 100644 index 0000000..3699776 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_domain.lng @@ -0,0 +1,61 @@ +<?php +$wb['ssl_state_txt'] = 'Область/край'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Компания'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Страна'; +$wb['ssl_request_txt'] = 'Запрос SSL'; +$wb['ssl_cert_txt'] = 'SSL сертификат'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['type_txt'] = 'Тип'; +$wb['parent_domain_id_txt'] = 'Дочерний Web-сайт'; +$wb['redirect_type_txt'] = 'Тип редиректа'; +$wb['redirect_path_txt'] = 'Путь редиректа'; +$wb['active_txt'] = 'Активен?'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Пользователь Linux'; +$wb['system_group_txt'] = 'Группа Linux'; +$wb['ip_address_txt'] = 'IP-адрес'; +$wb['vhost_type_txt'] = 'VHost Тип'; +$wb['hd_quota_txt'] = 'Квота HDD'; +$wb['traffic_quota_txt'] = 'Квота трафика'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Клиент'; +$wb['limit_web_domain_txt'] = 'Достигнуто макс. число web-сайтов для вашего аккаунта.'; +$wb['limit_web_aliasdomain_txt'] = 'Достигнуто макс. число алиасов доменовдля вашего аккаунта.'; +$wb['limit_web_subdomain_txt'] = 'Достигнуто максимальное количество субдоменов для вашего аккаунта.'; +$wb['apache_directives_txt'] = 'Директивы Apache'; +$wb['domain_error_empty'] = 'Домен пустой.'; +$wb['domain_error_unique'] = 'Домен должен быть уникальным.'; +$wb['domain_error_regex'] = 'Имя домен неправильно.'; +$wb['hd_quota_error_empty'] = 'Пустое значение квоты HDD.'; +$wb['traffic_quota_error_empty'] = 'Пустое значение квоты трафика.'; +$wb['errordocs_txt'] = 'Общие Error-Documents'; +$wb['error_ssl_state_empty'] = 'SSL область/край пуст.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL организация пуста.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL страна пуста.'; +$wb['subdomain_txt'] = 'Авто-субдомен'; +$wb['client_group_id_txt'] = 'Клиент'; +$wb['stats_password_txt'] = 'Пароль к Web-статистике'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Макс. доступная квота HDD'; +$wb['ssl_state_error_regex'] = 'Неверная область/край SSL. Корректные имволы: a-z, 0-9 и .,-_'; +$wb['ssl_locality_error_regex'] = 'Неверное SSL Locality. Корректные символы: a-z, 0-9 и .,-_'; +$wb['ssl_organisation_error_regex'] = 'Неверная SSL организация. кореектные символы: a-z, 0-9 и .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Неверный SSL Organisation Unit. Корректные символы: a-z, 0-9 и .,-_'; +$wb['ssl_country_error_regex'] = 'Неверная SSL Country. Разрешенные символы: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Макс.доступная квота трафика'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_domain_list.lng new file mode 100644 index 0000000..4e3d84c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_domain_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Веб сайты'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['add_new_record_txt'] = 'Добавить новый вебсайт'; +$wb['domain_id_txt'] = 'ID'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_sites_stats_list.lng new file mode 100644 index 0000000..edd1db2 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_sites_stats_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Web трафик'; +$wb['domain_txt'] = 'Домен'; +$wb['this_month_txt'] = 'Этот месяц'; +$wb['last_month_txt'] = 'Последний месяц'; +$wb['this_year_txt'] = 'Этот год'; +$wb['last_year_txt'] = 'Последний год'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain.lng new file mode 100644 index 0000000..7a7212b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain.lng @@ -0,0 +1,41 @@ +<?php +$wb['ssl_state_txt'] = 'Область/край'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Организация'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Страна'; +$wb['ssl_request_txt'] = 'Запрос SSL'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Сервер'; +$wb['domain_txt'] = 'Домен'; +$wb['type_txt'] = 'Тип'; +$wb['parent_domain_id_txt'] = 'Родительский Web-сайт'; +$wb['redirect_type_txt'] = 'Т'; +$wb['redirect_path_txt'] = 'Путь редиректа'; +$wb['active_txt'] = 'Активен?'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Пользователь Linux'; +$wb['system_group_txt'] = 'Группа Linux'; +$wb['ip_address_txt'] = 'IP-адрес'; +$wb['vhost_type_txt'] = 'VHost Тип'; +$wb['hd_quota_txt'] = 'Квота HDD'; +$wb['traffic_quota_txt'] = 'Квота трафика'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Клиент'; +$wb['limit_web_domain_txt'] = 'Максимальное число веб доменов достигнуто.'; +$wb['limit_web_aliasdomain_txt'] = 'Максимальное число веб алиасов достигнуто.'; +$wb['limit_web_subdomain_txt'] = 'Максимальное число веб субдоменов достигнуто.'; +$wb['apache_directives_txt'] = 'Директивы Apache'; +$wb['domain_error_empty'] = 'Домен пустой.'; +$wb['domain_error_unique'] = 'Домен должен быть уникальным.'; +$wb['domain_error_regex'] = 'Имя домена неправильно.'; +$wb['host_txt'] = 'Хост'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain_list.lng new file mode 100644 index 0000000..a13d519 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/ru_web_subdomain_list.lng @@ -0,0 +1,9 @@ +<?php +$wb['list_head_txt'] = 'Субдомены'; +$wb['active_txt'] = 'Активен?'; +$wb['server_id_txt'] = 'Сервер'; +$wb['parent_domain_id_txt'] = 'Web-сайт'; +$wb['domain_txt'] = 'Субдомен'; +$wb['add_new_record_txt'] = 'Добавить новый Субдомен'; +?> + diff --git a/interface/ispconfig/interface/sites/lib/lang/se.lng b/interface/ispconfig/interface/sites/lib/lang/se.lng new file mode 100644 index 0000000..d31e807 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Database'; +$wb['Options'] = 'Options'; +$wb['Shell User'] = 'Shell User'; +$wb['Domain'] = 'Domain'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP-User'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-User'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb['Stats'] = 'Statistics'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_cron.lng b/interface/ispconfig/interface/sites/lib/lang/se_cron.lng new file mode 100644 index 0000000..fecb4ab --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_cron_list.lng new file mode 100644 index 0000000..ad56ea9 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Jobs'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Minute'; +$wb['run_hour_txt'] = 'Hour'; +$wb['run_mday_txt'] = 'Day of month'; +$wb['run_month_txt'] = 'Month'; +$wb['run_wday_txt'] = 'Day of week'; +$wb['command_txt'] = 'Command'; +$wb['add_new_cron_txt'] = 'Add new Cron job'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_database.lng b/interface/ispconfig/interface/sites/lib/lang/se_database.lng new file mode 100644 index 0000000..21058d4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Type'; +$wb['database_name_txt'] = 'Database name'; +$wb['database_user_txt'] = 'Database user'; +$wb['database_password_txt'] = 'Database password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['database_charset_txt'] = 'Database charset'; +$wb['remote_access_txt'] = 'Remote Access'; +$wb['client_txt'] = 'Client'; +$wb['active_txt'] = 'Active'; +$wb['database_name_error_empty'] = 'Database name is empty.'; +$wb['database_name_error_unique'] = 'There is already a database with this name on the server. To get a unique name, e.g. prepend your domain name to the database name.'; +$wb['database_name_error_regex'] = 'Invalid database name. The database name may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb['database_user_error_empty'] = 'Database user is empty.'; +$wb['database_user_error_unique'] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb['database_user_error_regex'] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb['limit_database_txt'] = 'The max. number of databases is reached.'; +$wb['database_name_change_txt'] = 'The database name can not be changed'; +$wb['database_charset_change_txt'] = 'The database charset can not be changed'; +$wb['remote_ips_txt'] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb['database_remote_error_ips'] = 'At least one of the entered ip addresses is invalid.'; +$wb['database_name_error_len'] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb['database_user_error_len'] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_database_list.lng new file mode 100644 index 0000000..9c4df57 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Database'; +$wb['active_txt'] = 'Active'; +$wb['remote_access_txt'] = 'Remote Access'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Database name'; +$wb['add_new_record_txt'] = 'Add new Database'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/se_ftp_user.lng new file mode 100644 index 0000000..190f4a3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Directory'; +$wb['quota_files_txt'] = 'Filequota'; +$wb['ul_ratio_txt'] = 'Uploadratio'; +$wb['dl_ratio_txt'] = 'Downloadratio'; +$wb['ul_bandwidth_txt'] = 'Uploadbandwidth'; +$wb['dl_bandwidth_txt'] = 'Downloadbandwidth'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['quota_size_txt'] = 'Harddisk-Quota'; +$wb['active_txt'] = 'Active'; +$wb['limit_ftp_user_txt'] = 'The max. number of FTP users for your account is reached.'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['username_error_regex'] = 'The username contains charachters that are not allowed.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'GID empty.'; +$wb['directory_error_empty'] = 'Directory empty.'; +$wb['quota_files_unity_txt'] = 'Files'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_ftp_user_list.lng new file mode 100644 index 0000000..6ef3e37 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP-User'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Add new FTP-User'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/se_shell_user.lng new file mode 100644 index 0000000..0f2ea6c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Username'; +$wb['gid_txt'] = 'Group'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Dir'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Username'; +$wb['password_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Quota'; +$wb['active_txt'] = 'Active'; +$wb['username_error_empty'] = 'Username is empty.'; +$wb['username_error_unique'] = 'The username must be unique.'; +$wb['username_error_regex'] = 'The username contains charachters that are not allowed.'; +$wb['quota_size_error_empty'] = 'Quota is empty.'; +$wb['uid_error_empty'] = 'GID empty.'; +$wb['directory_error_empty'] = 'Directory empty.'; +$wb['limit_shell_user_txt'] = 'The max number of shell users is reached.'; +$wb['parent_domain_id_error_empty'] = 'No website selected.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_shell_user_list.lng new file mode 100644 index 0000000..4a9d7cb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell User'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Username'; +$wb['add_new_record_txt'] = 'Add new Shell-User'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_aliasdomain_list.lng new file mode 100644 index 0000000..e734adb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Add new aliasdomain'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_domain.lng new file mode 100644 index 0000000..142f1e5 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'State'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Organisation'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Country'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Active'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux User'; +$wb['system_group_txt'] = 'Linux Group'; +$wb['ip_address_txt'] = 'IP-Address'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Own Error-Documents'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'The max. number of web domains for your account is reached.'; +$wb['limit_web_aliasdomain_txt'] = 'The max. number of aliasdomains for your account is reached.'; +$wb['limit_web_subdomain_txt'] = 'The max. number of web subdomains for your account is reached.'; +$wb['apache_directives_txt'] = 'Apache directives'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['hd_quota_error_empty'] = 'Harddisk quota is empty.'; +$wb['traffic_quota_error_empty'] = 'Traffic quota is empty.'; +$wb['error_ssl_state_empty'] = 'SSL State is empty.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL Country is empty.'; +$wb['subdomain_txt'] = 'Auto-Subdomain'; +$wb['client_group_id_txt'] = 'Client'; +$wb['stats_password_txt'] = 'Webstatistics password'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_domain_list.lng new file mode 100644 index 0000000..88ec412 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Websites'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Add new website'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_sites_stats_list.lng new file mode 100644 index 0000000..b217f80 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web traffic'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'This month'; +$wb['last_month_txt'] = 'Last month'; +$wb['this_year_txt'] = 'This year'; +$wb['last_year_txt'] = 'Last year'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain.lng new file mode 100644 index 0000000..a814ed3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'State'; +$wb['ssl_locality_txt'] = 'Locality'; +$wb['ssl_organisation_txt'] = 'Organisation'; +$wb['ssl_organisation_unit_txt'] = 'Organisation Unit'; +$wb['ssl_country_txt'] = 'Country'; +$wb['ssl_request_txt'] = 'SSL Request'; +$wb['ssl_cert_txt'] = 'SSL Certificate'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Action'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Type'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Active'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux User'; +$wb['system_group_txt'] = 'Linux Group'; +$wb['ip_address_txt'] = 'IP-Address'; +$wb['vhost_type_txt'] = 'VHost Type'; +$wb['hd_quota_txt'] = 'Harddisk Quota'; +$wb['traffic_quota_txt'] = 'Traffic Quaota'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Client'; +$wb['limit_web_domain_txt'] = 'The max. number of web domains for your account is reached.'; +$wb['limit_web_aliasdomain_txt'] = 'The max. number of aliasdomains for your account is reached.'; +$wb['limit_web_subdomain_txt'] = 'The max. number of web subdomains for your account is reached.'; +$wb['apache_directives_txt'] = 'Apache directives'; +$wb['domain_error_empty'] = 'Domain is empty.'; +$wb['domain_error_unique'] = 'Domain must be unique.'; +$wb['domain_error_regex'] = 'Domain name invalid.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain_list.lng new file mode 100644 index 0000000..1c16bcd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/se_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdomains'; +$wb['active_txt'] = 'Active'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Website'; +$wb['domain_txt'] = 'Subdomain'; +$wb['add_new_record_txt'] = 'Add new subdomain'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk.lng b/interface/ispconfig/interface/sites/lib/lang/sk.lng new file mode 100644 index 0000000..e56941b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Datab�zy'; +$wb['Options'] = 'Mo�nosti'; +$wb['Shell User'] = 'Shell U�ivate?'; +$wb['Domain'] = 'Webstr�nky'; +$wb['Redirect'] = 'Presmerovanie'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdom�ny'; +$wb['Sites'] = 'Str�nky'; +$wb['Aliasdomain'] = 'Aliasdom�ny'; +$wb['FTP-User'] = 'FTP-U�ivate?'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-U�ivate?'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Webstr�nky'; +$wb['Stats'] = '�tatistika'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_cron.lng b/interface/ispconfig/interface/sites/lib/lang/sk_cron.lng new file mode 100644 index 0000000..21e5a9b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Rodi?ovsk� webstr�nka'; +$wb['active_txt'] = 'Akt�vne'; +$wb['client_txt'] = 'Klient'; +$wb['run_min_txt'] = 'Min�ty'; +$wb['run_hour_txt'] = 'Hodiny'; +$wb['run_mday_txt'] = 'Dni v mesiaci'; +$wb['run_month_txt'] = 'Mesiace'; +$wb['run_wday_txt'] = 'Dni v t��dni'; +$wb['command_txt'] = 'Pr�kaz na spustenie (pr�kazy s� vykon�van� pomocou sh, urls cez wget)'; +$wb['limit_cron_txt'] = 'Maxim�lny po?et povolen�ch cron pracovn�ch miest bolo dosiahnut�.'; +$wb['limit_cron_frequency_txt'] = 'Cron frekvencia prekra?uje povolen� limit.'; +$wb['run_min_error_format'] = 'Neplatn� form�t min�t.'; +$wb['run_hour_error_format'] = 'Neplatn� form�t hod�n.'; +$wb['run_mday_error_format'] = 'Neplatn� form�t pre dni v mesiaci.'; +$wb['run_month_error_format'] = 'Neplatn� form�t mesiaca.'; +$wb['run_wday_error_format'] = 'Neplatn� form�t pre dni v t��dni.'; +$wb['command_error_format'] = 'Neplatn� form�t pr�kazu. Upozor?ujeme, �e v pr�pade url volania iba http / https, s� povolen�.'; +$wb['unknown_fieldtype_error'] = 'Nezn�my druh pola bol pou�it�.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_cron_list.lng new file mode 100644 index 0000000..338da15 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Cron Joby'; +$wb['active_txt'] = 'Akt�ne'; +$wb['server_id_txt'] = 'Server'; +$wb['run_min_txt'] = 'Min�ta'; +$wb['run_hour_txt'] = 'Hodina'; +$wb['run_mday_txt'] = 'De? v mesiaci'; +$wb['run_month_txt'] = 'Mesiac'; +$wb['run_wday_txt'] = 'De? v t��dni'; +$wb['command_txt'] = 'Pr�kaz'; +$wb['add_new_cron_txt'] = 'Prida? nov� Cron job'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_database.lng b/interface/ispconfig/interface/sites/lib/lang/sk_database.lng new file mode 100644 index 0000000..ca733ca --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Server'; +$wb['type_txt'] = 'Typ'; +$wb['database_name_txt'] = 'Datab�za meno'; +$wb['database_user_txt'] = 'Datab�za u��vate?ov'; +$wb['database_password_txt'] = 'Datab�za heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['database_charset_txt'] = 'Datab�za charset'; +$wb['remote_access_txt'] = 'Vzdialen� pr�stup'; +$wb['remote_ips_txt'] = 'Vzdialen� pr�stup IP (oddelen�, a ponechajte pr�zdne pre<i> v�etky </ i>)'; +$wb['database_remote_error_ips'] = 'Aspo? jedna zo zadan�ch IP adries je neplatn�.'; +$wb['client_txt'] = 'Klient'; +$wb['active_txt'] = 'Akt�vne'; +$wb['database_name_error_empty'] = 'N�zov datab�zy je pr�zdny.'; +$wb['database_name_error_unique'] = 'V s�?asnosti u� existuje datab�za s t�mto n�zvom na serveri. Ak chcete z�ska? jedine?n� meno, napr. predradte n�zov va�ej dom�ny pred n�zov datab�zy.'; +$wb['database_name_error_regex'] = 'Neplatn� n�zov datab�zy. N�zov datab�zy m��e obsahova? tieto znaky: az, AZ, 0-9 pod?iarknutia. D?�ka: 2 - 64 znakov.'; +$wb['database_user_error_empty'] = 'Datab�zov� u��vate? je pr�zdny.'; +$wb['database_user_error_unique'] = 'V s�?asnosti u� existuje datab�zov� u��vate? s t�mto n�zvom na serveri. Ak chcete z�ska? jedine?n� meno, napr. predradte n�zov va�ej dom�ny pred u��vate?sk�m menom.'; +$wb['database_user_error_regex'] = 'Neplatn� datab�zov� u��vate?sk� meno. U��vate?sk� meno m��e obsahova? tieto znaky: az, AZ, 0-9 pod?iarknutia. D?�ka: 2 - 64 znakov.'; +$wb['limit_database_txt'] = 'Max. po?et datab�z je dosiahnut�.'; +$wb['database_name_change_txt'] = 'N�zov datab�zy nie je mo�n� meni?'; +$wb['database_charset_change_txt'] = 'Datab�zov� charset nemo�no meni?'; +$wb['database_name_error_len'] = 'N�zov datab�zy - (db) - pr�li� dlh�. Max. n�zov datab�zy d?�ka v?. prefix je 64 znakov.'; +$wb['database_user_error_len'] = 'Datab�zov� u��vate?sk� meno - (user) - pr�li� dlho. Max. Datab�za meno d?�ka v?. prefix je 16 znakov.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_database_list.lng new file mode 100644 index 0000000..c760428 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Datab�za'; +$wb['active_txt'] = 'Akt�vne'; +$wb['remote_access_txt'] = 'Vzdialen� pr�stup'; +$wb['server_id_txt'] = 'Server'; +$wb['database_name_txt'] = 'Meno datab�za'; +$wb['add_new_record_txt'] = 'Prida? nov� datab�zu'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user.lng new file mode 100644 index 0000000..afc027e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Adres�r'; +$wb['quota_files_txt'] = 'Kv�ta s�boru'; +$wb['quota_files_unity_txt'] = 'S�bory'; +$wb['ul_ratio_txt'] = 'Upload pomer'; +$wb['dl_ratio_txt'] = 'Download pomer'; +$wb['ul_bandwidth_txt'] = 'Upload ��rka p�sma'; +$wb['dl_bandwidth_txt'] = 'Download ��rka p�sma'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Webstr�nka'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['password_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['quota_size_txt'] = 'Harddisk-Kv�ta'; +$wb['active_txt'] = 'Akt�vne'; +$wb['limit_ftp_user_txt'] = 'Max. po?et pou��vate?ov FTP pre V� �?et, je dosiahnut�.'; +$wb['username_error_empty'] = 'U��vate?sk� meno je pr�zdne.'; +$wb['username_error_unique'] = 'U��vate?sk� meno mus� by? jedine?n�.'; +$wb['username_error_regex'] = 'U��vate?sk� meno obsahuje znaky, ktor� nie s� povolen�.'; +$wb['quota_size_error_empty'] = 'Kv�ta je pr�zdna.'; +$wb['uid_error_empty'] = 'GID je pr�zdna.'; +$wb['directory_error_empty'] = 'Adres�r je pr�zdny.'; +$wb['directory_error_notinweb'] = 'Adres�r nie je vn�tri kore?ov�ho adres�ra webu.'; +$wb['parent_domain_id_error_empty'] = '�iadna webstr�nka zvolen�'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user_list.lng new file mode 100644 index 0000000..64e06b4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP-U�ivate?'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Webstr�nky'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['add_new_record_txt'] = 'Prida? nov�ho FTP-U�ivate?a'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/sk_shell_user.lng new file mode 100644 index 0000000..0cdf9db --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web U�ivate?'; +$wb['gid_txt'] = 'Skupina'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Adres�r'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Str�nka'; +$wb['username_txt'] = 'U�ivate?'; +$wb['password_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Kv�ta'; +$wb['active_txt'] = 'Akt�vne'; +$wb['username_error_empty'] = 'U��vate?sk� meno je pr�zdny.'; +$wb['username_error_unique'] = 'U��vate?sk� meno mus� by? jedine?n�.'; +$wb['username_error_regex'] = 'U��vate?sk� meno obsahuje znaky, ktor� nie s� povolen�.'; +$wb['quota_size_error_empty'] = 'Kv�ta je pr�zdna.'; +$wb['uid_error_empty'] = 'GID je pr�zdna.'; +$wb['directory_error_empty'] = 'Adres�r je pr�zdny.'; +$wb['limit_shell_user_txt'] = 'Maxim�lny po?et shell u��vate?ov je dosiahnut�.'; +$wb['parent_domain_id_error_empty'] = '�iadna zvolen� webstr�nka.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_shell_user_list.lng new file mode 100644 index 0000000..73c5e6e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell U�ivate?'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Miesto'; +$wb['username_txt'] = 'U��vate?sk� meno'; +$wb['add_new_record_txt'] = 'Prida? nov�ho Shell U�ivate?a'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_aliasdomain_list.lng new file mode 100644 index 0000000..8ca467b --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Alias dom�na'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Webstr�nky'; +$wb['domain_txt'] = 'Alias dom�na'; +$wb['add_new_record_txt'] = 'Prida? nov� alias dom�nu'; +$wb['domain_error_empty'] = 'Dom�na je pr�zdna.'; +$wb['domain_error_unique'] = 'Dom�na mus� by? unik�tna.'; +$wb['domain_error_regex'] = 'Dom�nov� meno neplatn�.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_domain.lng new file mode 100644 index 0000000..8739370 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = '�t�t'; +$wb['ssl_locality_txt'] = 'Lokalita'; +$wb['ssl_organisation_txt'] = 'Organiz�cia'; +$wb['ssl_organisation_unit_txt'] = 'Organiza?n� zlo�ka'; +$wb['ssl_country_txt'] = 'Krajina'; +$wb['ssl_request_txt'] = 'SSL Po�iadavka'; +$wb['ssl_cert_txt'] = 'SSL Certifik�t'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Akcia'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Parent Website'; +$wb['redirect_type_txt'] = 'Redirect Type'; +$wb['redirect_path_txt'] = 'Redirect Path'; +$wb['active_txt'] = 'Akt�vne'; +$wb['document_root_txt'] = 'DocumentRoot'; +$wb['system_user_txt'] = 'Linuxov� U�ivate?'; +$wb['system_group_txt'] = 'Linuxov� Skupina'; +$wb['ip_address_txt'] = 'IP-Adresa'; +$wb['vhost_type_txt'] = 'VHost Typ'; +$wb['hd_quota_txt'] = 'Harddisk Kv�ta'; +$wb['traffic_quota_txt'] = 'Kv�ta vy?a�enia'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Vlastn� Error-Dokumenty'; +$wb['subdomain_txt'] = 'Auto-Subdom�ny'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Klient'; +$wb['limit_web_domain_txt'] = 'Max. Po?et internetov�ch dom�n pre V� �?et je dosiahnut�.'; +$wb['limit_web_aliasdomain_txt'] = 'Max. po?et alias dom�n pre V� �?et je dosiahnut�.'; +$wb['limit_web_subdomain_txt'] = 'Max. po?et webov�ch subdom�ny �?tu je dosiahnu?.'; +$wb['apache_directives_txt'] = 'Apache smern�ce'; +$wb['domain_error_empty'] = 'Dom�na je pr�zdna.'; +$wb['domain_error_unique'] = 'Existuje u� webov� str�nka alebo sub / alias dom�na k tejto dom�ne.'; +$wb['domain_error_regex'] = 'Dom�nov� meno neplatn�.'; +$wb['hd_quota_error_empty'] = 'Harddisk kv�ta je pr�zdna.'; +$wb['traffic_quota_error_empty'] = 'Kv�ta vy?a�enia je pr�zdna.'; +$wb['error_ssl_state_empty'] = 'SSL �t�t je pr�zdny.'; +$wb['error_ssl_locality_empty'] = 'SSL Lokalita je pr�zdna.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organiz�cia je pr�zdna.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organiza?n� zlo�ka je pr�zdna.'; +$wb['error_ssl_country_empty'] = 'SSL Krajina je pr�zdna.'; +$wb['client_group_id_txt'] = 'Klient'; +$wb['stats_password_txt'] = 'Web�tatistika heslo'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_domain_list.lng new file mode 100644 index 0000000..64f1979 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Webstr�nky'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['add_new_record_txt'] = 'Prida? nov� dom�nu'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_sites_stats_list.lng new file mode 100644 index 0000000..d8480cb --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web vy?a�enie'; +$wb['domain_txt'] = 'Dom�na'; +$wb['this_month_txt'] = 'Tento mesiac'; +$wb['last_month_txt'] = 'Minul� mesiac'; +$wb['this_year_txt'] = 'Tento rok'; +$wb['last_year_txt'] = 'Minul� rok'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain.lng new file mode 100644 index 0000000..74cfd76 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = '�t�t'; +$wb['ssl_locality_txt'] = 'Lokalita'; +$wb['ssl_organisation_txt'] = 'Organiz�cia'; +$wb['ssl_organisation_unit_txt'] = 'Organiza?n� zlo�ky'; +$wb['ssl_country_txt'] = 'Krajina'; +$wb['ssl_request_txt'] = 'SSL Po�iadavka'; +$wb['ssl_cert_txt'] = 'SSL Certifik�t'; +$wb['ssl_bundle_txt'] = 'SSL Bundle'; +$wb['ssl_action_txt'] = 'SSL Akcia'; +$wb['server_id_txt'] = 'Server'; +$wb['domain_txt'] = 'Dom�na'; +$wb['type_txt'] = 'Typ'; +$wb['parent_domain_id_txt'] = 'Matersk� webov� str�nka'; +$wb['redirect_type_txt'] = 'Typ presmerovanie'; +$wb['redirect_path_txt'] = 'Cesta presmerovania'; +$wb['active_txt'] = 'Akt�vne'; +$wb['document_root_txt'] = 'DocumentRoot'; +$wb['system_user_txt'] = 'Linuxov� u�ivate?'; +$wb['system_group_txt'] = 'Linuxov� skupina'; +$wb['ip_address_txt'] = 'IP Adresa'; +$wb['vhost_type_txt'] = 'VHost Typ'; +$wb['hd_quota_txt'] = 'Harddisk Kv�ta'; +$wb['traffic_quota_txt'] = 'Kv�ta Vy?a�enie'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Klient'; +$wb['limit_web_domain_txt'] = 'Max. Po?et internetov�ch dom�n pre V� �?et je dosiahnut�.'; +$wb['limit_web_aliasdomain_txt'] = 'Max. alias dom�n pre V� �?et je dosiahnut�.'; +$wb['limit_web_subdomain_txt'] = 'Max. po?et webov�ch subdom�n pre V� �?et je dosiahnut�.'; +$wb['apache_directives_txt'] = 'Apache smern�ce'; +$wb['domain_error_empty'] = 'Dom�na je pr�zdna.'; +$wb['domain_error_unique'] = 'Existuje u� webov� str�nka alebo sub / alias dom�na k tejto dom�ne.'; +$wb['domain_error_regex'] = 'Dom�nov� meno neplatn�.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain_list.lng new file mode 100644 index 0000000..8df87d6 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/sk_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdom�ny'; +$wb['active_txt'] = 'Akt�vne'; +$wb['server_id_txt'] = 'Server'; +$wb['parent_domain_id_txt'] = 'Webstr�nka'; +$wb['domain_txt'] = 'Subdom�na'; +$wb['add_new_record_txt'] = 'Prida? nov� subdom�nu'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr.lng b/interface/ispconfig/interface/sites/lib/lang/tr.lng new file mode 100644 index 0000000..1c3b93e --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr.lng @@ -0,0 +1,22 @@ +<?php +$wb['Database'] = 'Veritabanı'; +$wb['Options'] = 'Seçenekler'; +$wb['Shell User'] = 'Shell Kullanıcıları'; +$wb['Domain'] = 'Websitesi'; +$wb['Redirect'] = 'Yönlendirme'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain'; +$wb['Sites'] = 'Siteler'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP Kullanıcısı'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell Kullanıcısı'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Web siteleri'; +$wb['Stats'] = 'İstatistikler'; +$wb['Website'] = 'Website'; +$wb['Cron'] = 'Cron'; +$wb['Cron Jobs'] = 'Cron Jobs'; +$wb['Statistics'] = 'Statistics'; +$wb['Web traffic'] = 'Web Traffic'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_cron.lng b/interface/ispconfig/interface/sites/lib/lang/tr_cron.lng new file mode 100644 index 0000000..4643baf --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_cron.lng @@ -0,0 +1,21 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Websitesi'; +$wb['active_txt'] = 'Aktif'; +$wb['client_txt'] = 'Müşteri'; +$wb['run_min_txt'] = 'Dakika'; +$wb['run_hour_txt'] = 'Saat'; +$wb['run_mday_txt'] = 'Ayın Günleri'; +$wb['run_month_txt'] = 'Ay'; +$wb['run_wday_txt'] = 'Haftanın Günleri'; +$wb['command_txt'] = 'Çalıştırılacak komut (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'Hesabınızdaki max. zamanlanmış görev sayısına ulaştınız.'; +$wb['limit_cron_frequency_txt'] = 'Zamanlanmış Görev sıklığı izin verilen limiti aşmakta.'; +$wb['run_min_error_format'] = 'Dakika için geçersiz format.'; +$wb['run_hour_error_format'] = 'Saat için geçersiz format.'; +$wb['run_mday_error_format'] = 'Ayın günü için geçersiz format.'; +$wb['run_month_error_format'] = 'Ay için geçersiz format.'; +$wb['run_wday_error_format'] = 'Haftanın günü için geçersiz format.'; +$wb['command_error_format'] = 'Komut formatı geçersiz. Url sadece http/https çağırabilir.'; +$wb['unknown_fieldtype_error'] = 'Bilinmeyen bir alan tipi kullanıldı.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_cron_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_cron_list.lng new file mode 100644 index 0000000..f54e67c --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_cron_list.lng @@ -0,0 +1,12 @@ +<?php +$wb['list_head_txt'] = 'Zamanlanmış Görevler'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['run_min_txt'] = 'Dakika'; +$wb['run_hour_txt'] = 'Saat'; +$wb['run_mday_txt'] = 'Ayın Günleri'; +$wb['run_month_txt'] = 'Ay'; +$wb['run_wday_txt'] = 'Haftanın Günleri'; +$wb['command_txt'] = 'Komut'; +$wb['add_new_cron_txt'] = 'Yeni Görev'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_database.lng b/interface/ispconfig/interface/sites/lib/lang/tr_database.lng new file mode 100644 index 0000000..63601ca --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_database.lng @@ -0,0 +1,25 @@ +<?php +$wb['server_id_txt'] = 'Sunucu'; +$wb['type_txt'] = 'Çeşit'; +$wb['database_name_txt'] = 'Veritabanı adı'; +$wb['database_user_txt'] = 'Veritabanı kullanıcısı'; +$wb['database_password_txt'] = 'Veritabanı şifresi'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['database_charset_txt'] = 'Veritabanı Karakterseti'; +$wb['remote_access_txt'] = 'Uzaktan Erişim'; +$wb['remote_ips_txt'] = 'Uzaktan Erişim IPleri (virgül(,) ile ayırınız veya hepsi için boş bırakınız.)'; +$wb['database_remote_error_ips'] = 'Girilen IP adreslerinden en az birisi hatalı.'; +$wb['client_txt'] = 'Müşteri'; +$wb['active_txt'] = 'Aktif'; +$wb['database_name_error_empty'] = 'Veritabanı ismi boş.'; +$wb['database_name_error_unique'] = 'Sunucu üzerinde bu isimle veritabanı zaten var. Benzersiz bir isim için, örneğin veritabanı isminin başına domain isminizi ekleyebilirsiniz.'; +$wb['database_name_error_regex'] = 'Veritabanı adı geçersiz. Veritabanı adı şu karakterleri içermelidir: a-z, A-Z, 0-9 ve alttan çizgi(_). Uzunluğu 2-64 karakterleri arasında olmalıdır.'; +$wb['database_user_error_empty'] = 'Veritabanı kullanıcısı boş.'; +$wb['database_user_error_unique'] = 'Sunucu üzerinde bu isimle veritabanı kullancısı zaten var. Benzersiz bir isim için, örneğin veritabanı kullanıcısı isminin başına domain isminizi ekleyebilirsiniz.'; +$wb['database_user_error_regex'] = 'Veritabanı kullanıcısı adı geçersiz. Veritabanı kullanıcısı adı şu karakterleri içermelidir: a-z, A-Z, 0-9 ve alttan çizgi(_). Uzunluğu 2-64 karakterleri arasında olmalıdır.'; +$wb['limit_database_txt'] = 'Max. Veritabanı sayısına ulaştınız.'; +$wb['database_name_change_txt'] = 'Veritabanı ismi değiştirilemedi'; +$wb['database_charset_change_txt'] = 'Veritabanı karakterseti değiştirilemedi'; +$wb['database_name_error_len'] = 'Veritabanı ismi - {db} - çok büyük. Max. Veritabanı ismi büyüklüğü ön ek de dahil 64 karakterdir.'; +$wb['database_user_error_len'] = 'Veritabanı kullanıcısı adı - {user} - çok büyük. Max. Veritabanı kullanıcısı adı büyüklüğü ön ek de dahil 16 karakterdir.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_database_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_database_list.lng new file mode 100644 index 0000000..f05b2bd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_database_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Veritabanı'; +$wb['active_txt'] = 'Aktif'; +$wb['remote_access_txt'] = 'Uzaktan Erişim'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['database_name_txt'] = 'Veritabanı adı'; +$wb['add_new_record_txt'] = 'Yeni Veritabanı'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user.lng b/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user.lng new file mode 100644 index 0000000..8860290 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user.lng @@ -0,0 +1,27 @@ +<?php +$wb['uid_txt'] = 'UID'; +$wb['gid_txt'] = 'GID'; +$wb['dir_txt'] = 'Dizin'; +$wb['quota_files_txt'] = 'Dosya kotası'; +$wb['quota_files_unity_txt'] = 'Dosya'; +$wb['ul_ratio_txt'] = 'Upload oranı'; +$wb['dl_ratio_txt'] = 'Download oranı'; +$wb['ul_bandwidth_txt'] = 'Upload bandgenişliği'; +$wb['dl_bandwidth_txt'] = 'Download bandgenişliği'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Websitesi'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['password_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre gücü'; +$wb['quota_size_txt'] = 'Harddisk kotası'; +$wb['active_txt'] = 'Aktif'; +$wb['limit_ftp_user_txt'] = 'Hesabınızdaki max. FTP kullanıcısı limitine ulaştınız.'; +$wb['username_error_empty'] = 'Kullanıcı adı boş.'; +$wb['username_error_unique'] = 'Bu kullanıcı adı zaten var.'; +$wb['username_error_regex'] = 'Kullanıcı adı izin verilmeyen karakterler içermekte.'; +$wb['quota_size_error_empty'] = 'Kota boş.'; +$wb['uid_error_empty'] = 'GID boş.'; +$wb['directory_error_empty'] = 'Dizin boş.'; +$wb['directory_error_notinweb'] = 'Dizin, web kök dizini içerisinde değil.'; +$wb['parent_domain_id_error_empty'] = 'Seçili websitesi yok.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user_list.lng new file mode 100644 index 0000000..f4c9c3f --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_ftp_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'FTP Kullanıcısı'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Websitesi'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['add_new_record_txt'] = 'Yeni FTP Kullanıcısı'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_shell_user.lng b/interface/ispconfig/interface/sites/lib/lang/tr_shell_user.lng new file mode 100644 index 0000000..c6d39d3 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_shell_user.lng @@ -0,0 +1,22 @@ +<?php +$wb['uid_txt'] = 'Web Kullanıcı Adı'; +$wb['gid_txt'] = 'Grup'; +$wb['shell_txt'] = 'Shell'; +$wb['dir_txt'] = 'Dizin'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['password_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['chroot_txt'] = 'Chroot Shell'; +$wb['quota_size_txt'] = 'Kota'; +$wb['active_txt'] = 'Aktif'; +$wb['username_error_empty'] = 'Kullanıcı adı boş.'; +$wb['username_error_unique'] = 'Bu kullanıcı adı zaten var.'; +$wb['username_error_regex'] = 'Kullanıcı adı izin verilmeyen karakterler içermekte.'; +$wb['quota_size_error_empty'] = 'Kota boş.'; +$wb['uid_error_empty'] = 'GID boş.'; +$wb['directory_error_empty'] = 'Dizin boş.'; +$wb['limit_shell_user_txt'] = 'Max. Shell kullanıcısı limitine ulaşıldı.'; +$wb['parent_domain_id_error_empty'] = 'Seçili websitesi yok.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_shell_user_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_shell_user_list.lng new file mode 100644 index 0000000..a72b3e4 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_shell_user_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Shell Kullanıcısı'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Site'; +$wb['username_txt'] = 'Kullanıcı adı'; +$wb['add_new_record_txt'] = 'Yeni Shell Kullanıcısı'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_aliasdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_aliasdomain_list.lng new file mode 100644 index 0000000..8bbca60 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_aliasdomain_list.lng @@ -0,0 +1,11 @@ +<?php +$wb['list_head_txt'] = 'Aliasdomain'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Websitesi'; +$wb['domain_txt'] = 'Aliasdomain'; +$wb['add_new_record_txt'] = 'Yeni Aliasdomain'; +$wb['domain_error_empty'] = 'Domain boş.'; +$wb['domain_error_unique'] = 'Bu Domain zaten var.'; +$wb['domain_error_regex'] = 'Geçersiz Domain.'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_domain.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_domain.lng new file mode 100644 index 0000000..a3f9e36 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_domain.lng @@ -0,0 +1,60 @@ +<?php +$wb['ssl_state_txt'] = 'Mevki'; +$wb['ssl_locality_txt'] = 'Semt'; +$wb['ssl_organisation_txt'] = 'Kuruluş'; +$wb['ssl_organisation_unit_txt'] = 'Kuruluş Ünitesi'; +$wb['ssl_country_txt'] = 'Ülke'; +$wb['ssl_request_txt'] = 'SSL İsteği'; +$wb['ssl_cert_txt'] = 'SSL Sertifikası'; +$wb['ssl_bundle_txt'] = 'SSL Yığını'; +$wb['ssl_action_txt'] = 'SSL Eylemi'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Çeşit'; +$wb['parent_domain_id_txt'] = 'Ana Website'; +$wb['redirect_type_txt'] = 'Yönlendirme Çeşidi'; +$wb['redirect_path_txt'] = 'Yönlendirme Yolu'; +$wb['active_txt'] = 'Aktif'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux Kullanıcısı'; +$wb['system_group_txt'] = 'Linux Grubu'; +$wb['ip_address_txt'] = 'IP Adresi'; +$wb['vhost_type_txt'] = 'VHost Çeşidi'; +$wb['hd_quota_txt'] = 'Harddisk Kotası'; +$wb['traffic_quota_txt'] = 'Trafik Kotası'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['errordocs_txt'] = 'Özelleştirilebilir Hata Sayfaları'; +$wb['subdomain_txt'] = 'Otomatik Subdomain'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Müşteri'; +$wb['limit_web_domain_txt'] = 'Hesabınızdaki max. web domaini sayısına ulaştınız.'; +$wb['limit_web_aliasdomain_txt'] = 'Hesabınızdaki max. aliasdomain sayısına ulaştınız.'; +$wb['limit_web_subdomain_txt'] = 'Hesabınızdaki max. web subdomain sayısına ulaştınız.'; +$wb['apache_directives_txt'] = 'Apache direktifleri'; +$wb['domain_error_empty'] = 'Domain boş.'; +$wb['domain_error_unique'] = 'Bu isimde websitesi veya sub / aliasdomain zaten var.'; +$wb['domain_error_regex'] = 'Domain ismi geçersiz.'; +$wb['hd_quota_error_empty'] = 'Harddisk kotası boş.'; +$wb['traffic_quota_error_empty'] = 'Trafik kotası boş.'; +$wb['error_ssl_state_empty'] = 'SSL Mevkisi boş .'; +$wb['error_ssl_locality_empty'] = 'SSL Semti boş.'; +$wb['error_ssl_organisation_empty'] = 'SSL Kuruluşu boş.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Kuruluş Ünitesi boş.'; +$wb['error_ssl_country_empty'] = 'SSL Ülkesi boş.'; +$wb['client_group_id_txt'] = 'Müşteri'; +$wb['stats_password_txt'] = 'Web istatistikleri şifresi'; +$wb['ssl_domain_txt'] = 'SSL Domain'; +$wb['allow_override_txt'] = 'Allow Override'; +$wb['limit_web_quota_free_txt'] = 'Max. available Harddisk Quota'; +$wb['ssl_state_error_regex'] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_locality_error_regex'] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organisation_error_regex'] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_organistaion_unit_error_regex'] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_'; +$wb['ssl_country_error_regex'] = 'Invalid SSL Country. Valid characters are: A-Z'; +$wb['limit_traffic_quota_free_txt'] = 'Max. available Traffic Quota'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +$wb['php_open_basedir_txt'] = 'PHP open_basedir'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_domain_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_domain_list.lng new file mode 100644 index 0000000..8dbf8fd --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_domain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web siteleri'; +$wb['domain_id_txt'] = 'ID'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['add_new_record_txt'] = 'Yeni Website'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_sites_stats_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_sites_stats_list.lng new file mode 100644 index 0000000..e795c51 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_sites_stats_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Web trafiği'; +$wb['domain_txt'] = 'Domain'; +$wb['this_month_txt'] = 'Bu ay'; +$wb['last_month_txt'] = 'Geçen ay'; +$wb['this_year_txt'] = 'Bu yıl'; +$wb['last_year_txt'] = 'Geçen yıl'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain.lng new file mode 100644 index 0000000..2285036 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain.lng @@ -0,0 +1,40 @@ +<?php +$wb['ssl_state_txt'] = 'Mevki'; +$wb['ssl_locality_txt'] = 'Semt'; +$wb['ssl_organisation_txt'] = 'Organizasyon'; +$wb['ssl_organisation_unit_txt'] = 'Organizasyon Unitesi'; +$wb['ssl_country_txt'] = 'Ülke'; +$wb['ssl_request_txt'] = 'SSL İsteği'; +$wb['ssl_cert_txt'] = 'SSL Sertifikası'; +$wb['ssl_bundle_txt'] = 'SSL Yığını'; +$wb['ssl_action_txt'] = 'SSL Eylemi'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['domain_txt'] = 'Domain'; +$wb['type_txt'] = 'Çeşit'; +$wb['parent_domain_id_txt'] = 'Ana Website'; +$wb['redirect_type_txt'] = 'Yönlendirme Çeşidi'; +$wb['redirect_path_txt'] = 'Yönlendirme Yolu'; +$wb['active_txt'] = 'Aktif'; +$wb['document_root_txt'] = 'Documentroot'; +$wb['system_user_txt'] = 'Linux Kullanıcısı'; +$wb['system_group_txt'] = 'Linux Grubu'; +$wb['ip_address_txt'] = 'IP Adresleri'; +$wb['vhost_type_txt'] = 'VHost Çeşidi'; +$wb['hd_quota_txt'] = 'Harddisk Kotası'; +$wb['traffic_quota_txt'] = 'Trafik Kotası'; +$wb['cgi_txt'] = 'CGI'; +$wb['ssi_txt'] = 'SSI'; +$wb['ssl_txt'] = 'SSL'; +$wb['suexec_txt'] = 'SuEXEC'; +$wb['php_txt'] = 'PHP'; +$wb['client_txt'] = 'Müşteri'; +$wb['limit_web_domain_txt'] = 'Hesabınızdaki max. web domaini sayısına ulaştınız.'; +$wb['limit_web_aliasdomain_txt'] = 'Hesabınızdaki max. aliasdomain sayısına ulaştınız.'; +$wb['limit_web_subdomain_txt'] = 'Hesabınızdaki max. web subdomain sayısına ulaştınız.'; +$wb['apache_directives_txt'] = 'Apache direktifleri'; +$wb['domain_error_empty'] = 'Domain boş.'; +$wb['domain_error_unique'] = 'Bu isimde websitesi veya sub / aliasdomain zaten var.'; +$wb['domain_error_regex'] = 'Domain ismi geçersiz.'; +$wb['host_txt'] = 'Host'; +$wb['redirect_error_regex'] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; +?> diff --git a/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain_list.lng b/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain_list.lng new file mode 100644 index 0000000..44b7bbe --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/lang/tr_web_subdomain_list.lng @@ -0,0 +1,8 @@ +<?php +$wb['list_head_txt'] = 'Subdomainler'; +$wb['active_txt'] = 'Aktif'; +$wb['server_id_txt'] = 'Sunucu'; +$wb['parent_domain_id_txt'] = 'Websitesi'; +$wb['domain_txt'] = 'Subdomain'; +$wb['add_new_record_txt'] = 'Yeni Subdomain'; +?> diff --git a/interface/ispconfig/interface/sites/lib/module.conf.php b/interface/ispconfig/interface/sites/lib/module.conf.php new file mode 100644 index 0000000..686ae16 --- /dev/null +++ b/interface/ispconfig/interface/sites/lib/module.conf.php @@ -0,0 +1,113 @@ +<?php + +$module["name"] = "sites"; +$module["title"] = "top_menu_sites"; +$module["template"] = "module.tpl.htm"; +$module["startpage"] = "sites/web_domain_list.php"; +$module["tab_width"] = ''; + +/* + Websites menu +*/ + +$items[] = array( 'title' => "Website", + 'target' => 'content', + 'link' => 'sites/web_domain_list.php'); + + +$items[] = array( 'title' => "Subdomain", + 'target' => 'content', + 'link' => 'sites/web_subdomain_list.php'); + + +$items[] = array( 'title' => "Aliasdomain", + 'target' => 'content', + 'link' => 'sites/web_aliasdomain_list.php'); + +$module["nav"][] = array( 'title' => 'Websites', + 'open' => 1, + 'items' => $items); + +// clean up +unset($items); + +/* + FTP User menu +*/ + +$items[] = array( 'title' => "FTP-User", + 'target' => 'content', + 'link' => 'sites/ftp_user_list.php'); + + +$module["nav"][] = array( 'title' => 'FTP', + 'open' => 1, + 'items' => $items); + +// clean up +unset($items); + +/* + FTP User menu +*/ + +$items[] = array( 'title' => "Shell-User", + 'target' => 'content', + 'link' => 'sites/shell_user_list.php'); + + +$module["nav"][] = array( 'title' => 'Shell', + 'open' => 1, + 'items' => $items); + +// clean up +unset($items); + +/* + Databases menu +*/ + +$items[] = array( 'title' => "Database", + 'target' => 'content', + 'link' => 'sites/database_list.php'); + + +$module["nav"][] = array( 'title' => 'Database', + 'open' => 1, + 'items' => $items); + + +/* + Cron menu +*/ +$items = array(); + +$items[] = array( 'title' => "Cron Jobs", + 'target' => 'content', + 'link' => 'sites/cron_list.php'); + + +$module["nav"][] = array( 'title' => 'Cron', + 'open' => 1, + 'items' => $items); + + +//**** Statistics menu +$items = array(); + +$items[] = array( 'title' => 'Web traffic', + 'target' => 'content', + 'link' => 'sites/web_sites_stats.php'); + + +$module['nav'][] = array( 'title' => 'Statistics', + 'open' => 1, + 'items' => $items); + + + +// clean up +unset($items); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/cron.list.php b/interface/ispconfig/interface/sites/list/cron.list.php new file mode 100644 index 0000000..e5e2ab7 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/cron.list.php @@ -0,0 +1,152 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "cron"; + +// Database table +$liste["table"] = "cron"; + +// Index index field of the database table +$liste["table_idx"] = "id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "cron_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "cron_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "cron_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "parent_domain_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "run_min", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "run_hour", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "run_mday", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "run_month", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "run_wday", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "command", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/database.list.php b/interface/ispconfig/interface/sites/list/database.list.php new file mode 100644 index 0000000..b0ff42c --- /dev/null +++ b/interface/ispconfig/interface/sites/list/database.list.php @@ -0,0 +1,101 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "database"; + +// Database table +$liste["table"] = "web_database"; + +// Index index field of the database table +$liste["table_idx"] = "database_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "database_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "database_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "database_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + +$liste["item"][] = array( 'field' => "remote_access", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "Yes",'n' => "No")); + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND db_server = 1 ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "database_user", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "database_name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/ftp_user.list.php b/interface/ispconfig/interface/sites/list/ftp_user.list.php new file mode 100644 index 0000000..7931e71 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/ftp_user.list.php @@ -0,0 +1,99 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "ftp_user"; + +// Database table +$liste["table"] = "ftp_user"; + +// Index index field of the database table +$liste["table_idx"] = "ftp_user_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "ftp_user_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "ftp_user_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "ftp_user_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "parent_domain_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "username", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/shell_user.list.php b/interface/ispconfig/interface/sites/list/shell_user.list.php new file mode 100644 index 0000000..e754a80 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/shell_user.list.php @@ -0,0 +1,99 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "shell_user"; + +// Database table +$liste["table"] = "shell_user"; + +// Index index field of the database table +$liste["table_idx"] = "shell_user_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "shell_user_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "shell_user_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "shell_user_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "parent_domain_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "username", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/web_aliasdomain.list.php b/interface/ispconfig/interface/sites/list/web_aliasdomain.list.php new file mode 100644 index 0000000..2339642 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/web_aliasdomain.list.php @@ -0,0 +1,99 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "web_aliasdomain"; + +// Database table +$liste["table"] = "web_domain"; + +// Index index field of the database table +$liste["table_idx"] = "domain_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "web_aliasdomain_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "web_aliasdomain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "web_aliasdomain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "parent_domain_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/web_domain.list.php b/interface/ispconfig/interface/sites/list/web_domain.list.php new file mode 100644 index 0000000..0579484 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/web_domain.list.php @@ -0,0 +1,94 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "web_domain"; + +// Database table +$liste["table"] = "web_domain"; + +// Index index field of the database table +$liste["table_idx"] = "domain_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "web_domain_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "web_domain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "web_domain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "domain_id", + 'datatype' => "INTEGER", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/web_sites_stats.list.php b/interface/ispconfig/interface/sites/list/web_sites_stats.list.php new file mode 100644 index 0000000..6ad7cc9 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/web_sites_stats.list.php @@ -0,0 +1,60 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "web_sites_stats"; + +// Database table +$liste["table"] = "web_domain"; + +// Index index field of the database table +$liste["table_idx"] = "domain_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "web_sites_stats.php"; + +// Script file of the edit form +$liste["edit_file"] = "web_domain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "web_domain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/list/web_subdomain.list.php b/interface/ispconfig/interface/sites/list/web_subdomain.list.php new file mode 100644 index 0000000..49ae425 --- /dev/null +++ b/interface/ispconfig/interface/sites/list/web_subdomain.list.php @@ -0,0 +1,99 @@ +<?php + +/* + Datatypes: + - INTEGER + - DOUBLE + - CURRENCY + - VARCHAR + - TEXT + - DATE +*/ + + + +// Name of the list +$liste["name"] = "web_subdomain"; + +// Database table +$liste["table"] = "web_domain"; + +// Index index field of the database table +$liste["table_idx"] = "domain_id"; + +// Search Field Prefix +$liste["search_prefix"] = "search_"; + +// Records per page +$liste["records_per_page"] = 15; + +// Script File of the list +$liste["file"] = "web_subdomain_list.php"; + +// Script file of the edit form +$liste["edit_file"] = "web_subdomain_edit.php"; + +// Script File of the delete script +$liste["delete_file"] = "web_subdomain_del.php"; + +// Paging Template +$liste["paging_tpl"] = "templates/paging.tpl.htm"; + +// Enable auth +$liste["auth"] = "yes"; + + +/***************************************************** +* Suchfelder +*****************************************************/ + + +$liste["item"][] = array( 'field' => "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>",'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "parent_domain_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain", + 'keyfield'=> 'domain_id', + 'valuefield'=> 'domain' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "domain", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/shell_user_del.php b/interface/ispconfig/interface/sites/shell_user_del.php new file mode 100644 index 0000000..30ded42 --- /dev/null +++ b/interface/ispconfig/interface/sites/shell_user_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/shell_user.list.php"; +$tform_def_file = "form/shell_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/shell_user_edit.php b/interface/ispconfig/interface/sites/shell_user_edit.php new file mode 100644 index 0000000..c20d2b4 --- /dev/null +++ b/interface/ispconfig/interface/sites/shell_user_edit.php @@ -0,0 +1,224 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/shell_user.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); +require_once('tools.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_shell_user')) { + $app->error($app->tform->wordbook["limit_shell_user_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_shell_user')) { + $app->error('Reseller: '.$app->tform->wordbook["limit_shell_user_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf, $interfaceConf; + /* + * If the names are restricted -> remove the restriction, so that the + * data can be edited + */ + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + //$shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); + $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); + + if ($this->dataRecord['username'] != ""){ + /* REMOVE the restriction */ + $app->tpl->setVar("username", str_replace($shelluser_prefix , '', $this->dataRecord['username'])); + } + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $app->tpl->setVar("username_prefix", $global_config['shelluser_prefix']); + } else { + $app->tpl->setVar("username_prefix", $shelluser_prefix); + } + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 1); + $app->tpl->setVar("parent_domain_id_value", $this->dataRecord["parent_domain_id"]); + } else { + $app->tpl->setVar("edit_disabled", 0); + } + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // Set a few fixed values + $this->dataRecord["server_id"] = $parent_domain["server_id"]; + + if(isset($this->dataRecord['username']) && trim($this->dataRecord['username']) == '') $app->tform->errorMessage .= $app->tform->lng('username_error_empty').'<br />'; + if(isset($this->dataRecord['username']) && empty($this->dataRecord['parent_domain_id'])) $app->tform->errorMessage .= $app->tform->lng('parent_domain_id_error_empty').'<br />'; + + parent::onSubmit(); + } + + function onBeforeInsert() { + global $app, $conf, $interfaceConf; + + // check if the username is not blacklisted + $blacklist = file(ISPC_LIB_PATH.'/shelluser_blacklist'); + foreach($blacklist as $line) { + if(strtolower(trim($line)) == strtolower(trim($this->dataRecord['username']))){ + $app->tform->errorMessage .= 'The username is not allowed.'; + } + } + unset($blacklist); + + /* + * If the names should be restricted -> do it! + */ + if ($app->tform->errorMessage == ''){ + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + // $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); + $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); + + /* restrict the names */ + $this->dataRecord['username'] = $shelluser_prefix . $this->dataRecord['username']; + } + parent::onBeforeInsert(); + } + + function onAfterInsert() { + global $app, $conf; + + $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".intval($this->dataRecord["parent_domain_id"])); + $server_id = $web["server_id"]; + $dir = $web["document_root"]; + $puser = $web["system_user"]; + $pgroup = $web["system_group"]; + + // The FTP user shall be owned by the same group then the website + $sys_groupid = $web['sys_groupid']; + + $sql = "UPDATE shell_user SET server_id = $server_id, dir = '$dir', puser = '$puser', pgroup = '$pgroup', sys_groupid = '$sys_groupid' WHERE shell_user_id = ".$this->id; + $app->db->query($sql); + + } + + function onBeforeUpdate() { + global $app, $conf, $interfaceConf; + + // check if the username is not blacklisted + $blacklist = file(ISPC_LIB_PATH.'/shelluser_blacklist'); + foreach($blacklist as $line) { + if(strtolower(trim($line)) == strtolower(trim($this->dataRecord['username']))){ + $app->tform->errorMessage .= 'The username is not allowed.'; + } + } + unset($blacklist); + + /* + * If the names should be restricted -> do it! + */ + if ($app->tform->errorMessage == '') { + /* + * If the names should be restricted -> do it! + */ + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('sites'); + // $shelluser_prefix = ($global_config['shelluser_prefix'] == '')?'':str_replace('[CLIENTNAME]', $this->getClientName(), $global_config['shelluser_prefix']); + $shelluser_prefix = replacePrefix($global_config['shelluser_prefix'], $this->dataRecord); + + /* restrict the names */ + $this->dataRecord['username'] = $shelluser_prefix . $this->dataRecord['username']; + } + } + + function onAfterUpdate() { + global $app, $conf; + + + } + + function getClientName() { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + // Get the group-id of the user + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + } else { + // Get the group-id from the data itself + $web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id'])); + $client_group_id = $web['sys_groupid']; + } + /* get the name of the client */ + $tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id); + $clientName = $tmp['name']; + if ($clientName == "") $clientName = 'default'; + $clientName = convertClientName($clientName); + + return $clientName; + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/shell_user_list.php b/interface/ispconfig/interface/sites/shell_user_list.php new file mode 100644 index 0000000..e6c7724 --- /dev/null +++ b/interface/ispconfig/interface/sites/shell_user_list.php @@ -0,0 +1,55 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/shell_user.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +//$app->listform_actions->SQLExtWhere = "type = 'subdomain'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/templates/cron_edit.htm b/interface/ispconfig/interface/sites/templates/cron_edit.htm new file mode 100644 index 0000000..39f9bc6 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/cron_edit.htm @@ -0,0 +1,68 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_cron"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"><legend>Cron Job</legend> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput" disabled="disabled"> + {tmpl_var name='parent_domain_id'} + </select> + <input type="hidden" name="parent_domain_id" value="{tmpl_var name='parent_domain_id_value'}" /> + <tmpl_else> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput"> + {tmpl_var name='parent_domain_id'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="run_min">{tmpl_var name='run_min_txt'}</label> + <input name="run_min" id="run_min" value="{tmpl_var name='run_min'}" size="10" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. *, */3, 10-20</p> + </div> + <div class="ctrlHolder"> + <label for="run_hour">{tmpl_var name='run_hour_txt'}</label> + <input name="run_hour" id="run_hour" value="{tmpl_var name='run_hour'}" size="10" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. *, */2, 0, 10-12</p> + </div> + <div class="ctrlHolder"> + <label for="run_mday">{tmpl_var name='run_mday_txt'}</label> + <input name="run_mday" id="run_mday" value="{tmpl_var name='run_mday'}" size="10" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. *, */4, 1-5</p> + </div> + <div class="ctrlHolder"> + <label for="run_month">{tmpl_var name='run_month_txt'}</label> + <input name="run_month" id="run_month" value="{tmpl_var name='run_month'}" size="10" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. *, 1-6</p> + </div> + <div class="ctrlHolder"> + <label for="run_wday">{tmpl_var name='run_wday_txt'}</label> + <input name="run_wday" id="run_wday" value="{tmpl_var name='run_wday'}" size="10" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. *, 0, 1-5</p> + </div> + <div class="ctrlHolder"> + <label for="command">{tmpl_var name='command_txt'}</label> + <input name="command" id="command" value="{tmpl_var name='command'}" size="30" maxlength="255" type="text" class="textInput" /> + <p class="formHint">e.g. /var/www/clients/client1/myscript.sh or http://www.mydomain.com/path/script.php</p> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/cron_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/cron_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/cron_list.htm b/interface/ispconfig/interface/sites/templates/cron_list.htm new file mode 100644 index 0000000..31551f2 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/cron_list.htm @@ -0,0 +1,71 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_cron"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/cron_edit.php');"> + <span>{tmpl_var name="add_new_cron_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_run_min" scope="col"><tmpl_var name="run_min_txt"></th> + <th class="tbl_col_run_hour" scope="col"><tmpl_var name="run_hour_txt"></th> + <th class="tbl_col_run_mday" scope="col"><tmpl_var name="run_mday_txt"></th> + <th class="tbl_col_run_month" scope="col"><tmpl_var name="run_month_txt"></th> + <th class="tbl_col_run_wday" scope="col"><tmpl_var name="run_wday_txt"></th> + <th class="tbl_col_command" scope="col"><tmpl_var name="command_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/cron_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/cron_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_run_min"><input type="text" name="search_run_min" size="3" value="{tmpl_var name='search_run_min'}" /></td> + <td class="tbl_col_run_hour"><input type="text" name="search_run_hour" size="3" value="{tmpl_var name='search_run_hour'}" /></td> + <td class="tbl_col_run_mday"><input type="text" name="search_run_mday" size="3" value="{tmpl_var name='search_run_mday'}" /></td> + <td class="tbl_col_run_month"><input type="text" name="search_run_month" size="3" value="{tmpl_var name='search_run_month'}" /></td> + <td class="tbl_col_run_wday"><input type="text" name="search_run_wday" size="3" value="{tmpl_var name='search_run_wday'}" /></td> + <td class="tbl_col_command"><input type="text" name="search_command" value="{tmpl_var name='search_command'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/cron_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');"><img src="themes/{tmpl_var name='theme'}/icons/{tmpl_var name='_active_'}" border="0" /></a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_run_min"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="run_min"}</a></td> + <td class="tbl_col_run_hour"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="run_hour"}</a></td> + <td class="tbl_col_run_mday"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="run_mday"}</a></td> + <td class="tbl_col_run_month"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="run_month"}</a></td> + <td class="tbl_col_run_wday"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="run_wday"}</a></td> + <td class="tbl_col_commnd"><a href="#" onClick="loadContent('sites/cron_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="command"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/cron_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="9"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/database_edit.htm b/interface/ispconfig/interface/sites/templates/database_edit.htm new file mode 100644 index 0000000..89f1afd --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/database_edit.htm @@ -0,0 +1,108 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_database"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label> + <select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled"> + {tmpl_var name='server_id'} + </select> + <input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" /> + <tmpl_else> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput"> + {tmpl_var name='server_id'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <tmpl_if name="is_reseller"> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <div class="ctrlHolder"> + <label for="type">{tmpl_var name='type_txt'}</label> + <select name="type" id="type" class="selectInput formLengthHalf"> + {tmpl_var name='type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="database_name">{tmpl_var name='database_name_txt'}</label> + <div style="float: left;">{tmpl_var name='database_name_prefix'} </div> + <tmpl_if name="edit_disabled"> + <input name="database_name" id="database_name" value="{tmpl_var name='database_name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" disabled="disabled" /> + <input name="database_name" type="hidden" value="{tmpl_var name='database_name'}" /> + <tmpl_else> + <input name="database_name" id="database_name" value="{tmpl_var name='database_name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="database_user">{tmpl_var name='database_user_txt'}</label> + <div style="float: left;">{tmpl_var name='database_user_prefix'} </div> + <input name="database_user" id="database_user" value="{tmpl_var name='database_user'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="database_password">{tmpl_var name='database_password_txt'}</label> + <input name="database_password" id="database_password" value="{tmpl_var name='database_password'}" size="30" maxlength="255" type="password" class="textInput formLengthHalf" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="database_charset_disabled">{tmpl_var name='database_charset_txt'}</label> + <select name="database_charset_disabled" id="database_charset_disabled" class="selectInput formLengthHalf" disabled="disabled"> + {tmpl_var name='database_charset'} + </select> + <input type="hidden" name="database_charset" value="{tmpl_var name='database_charset_value'}" /> + <tmpl_else> + <label for="database_charset">{tmpl_var name='database_charset_txt'}</label> + <select name="database_charset" id="database_charset" class="selectInput formLengthHalf"> + {tmpl_var name='database_charset'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='remote_access_txt'}</p> + <div class="multiField"> + {tmpl_var name='remote_access'} + </div> + </div> + <div class="ctrlHolder"> + <label for="remote_ips">{tmpl_var name='remote_ips_txt'}</label> + <input name="remote_ips" id="remote_ips" value="{tmpl_var name='remote_ips'}" size="60" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/database_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/database_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/database_list.htm b/interface/ispconfig/interface/sites/templates/database_list.htm new file mode 100644 index 0000000..fa95487 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/database_list.htm @@ -0,0 +1,64 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_database"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/database_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_remote_access" scope="col"><tmpl_var name="remote_access_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_database_name" scope="col"><tmpl_var name="database_user_txt"></th> + <th class="tbl_col_database_name" scope="col"><tmpl_var name="database_name_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/database_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_remote_access"><select name="search_remote_access" onChange="submitForm('pageForm','sites/database_list.php');">{tmpl_var name='search_remote_access'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/database_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_database_user"><input type="text" name="search_database_user" value="{tmpl_var name='search_database_user'}" /></td> + <td class="tbl_col_database_name"><input type="text" name="search_database_name" value="{tmpl_var name='search_database_name'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/database_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/database_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_remote_access"><a href="#" onClick="loadContent('sites/database_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="remote_access"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/database_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_database_user"><a href="#" onClick="loadContent('sites/database_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="database_user"}</a></td> + <td class="tbl_col_database_name"><a href="#" onClick="loadContent('sites/database_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="database_name"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <tmpl_if name="dblist_phpmyadmin_link"><a class="icons16 icoDbAdmin" href="sites/database_phpmyadmin.php?id={tmpl_var name='id'}" target="phpmyadmin"><span>{tmpl_var name='admin_txt'}</span></a></tmpl_if> + <a class="icons16 icoEdit" href="javascript: loadContent('sites/database_edit.php?id={tmpl_var name='id'}');"><span>{tmpl_var name='edit_txt'}</span></a> + <a class="icons16 icoDelete" href="javascript: del_record('sites/database_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/ftp_user_advanced.htm b/interface/ispconfig/interface/sites/templates/ftp_user_advanced.htm new file mode 100644 index 0000000..1520630 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/ftp_user_advanced.htm @@ -0,0 +1,50 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_ftp_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="uid">{tmpl_var name='uid_txt'}</label> + <input name="uid" id="uid" value="{tmpl_var name='uid'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="gid">{tmpl_var name='gid_txt'}</label> + <input name="gid" id="gid" value="{tmpl_var name='gid'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="dir">{tmpl_var name='dir_txt'}</label> + <input name="dir" id="dir" value="{tmpl_var name='dir'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="quota_files">{tmpl_var name='quota_files_txt'}</label> + <input name="quota_files" id="quota_files" value="{tmpl_var name='quota_files'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> {tmpl_var name='quota_files_unity_txt'}</p> + </div> + <div class="ctrlHolder"> + <label for="ul_ratio">{tmpl_var name='ul_ratio_txt'}</label> + <input name="ul_ratio" id="ul_ratio" value="{tmpl_var name='ul_ratio'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> MB</p> + </div> + <div class="ctrlHolder"> + <label for="dl_ratio">{tmpl_var name='dl_ratio_txt'}</label> + <input name="dl_ratio" id="dl_ratio" value="{tmpl_var name='dl_ratio'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> MB</p> + </div> + <div class="ctrlHolder"> + <label for="ul_bandwidth">{tmpl_var name='ul_bandwidth_txt'}</label> + <input name="ul_bandwidth" id="ul_bandwidth" value="{tmpl_var name='ul_bandwidth'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> kb/s</p> + </div> + <div class="ctrlHolder"> + <label for="dl_bandwidth">{tmpl_var name='dl_bandwidth_txt'}</label> + <input name="dl_bandwidth" id="dl_bandwidth" value="{tmpl_var name='dl_bandwidth'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> kb/s</p> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/ftp_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/ftp_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/ftp_user_advanced_client.htm b/interface/ispconfig/interface/sites/templates/ftp_user_advanced_client.htm new file mode 100644 index 0000000..fd8d617 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/ftp_user_advanced_client.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_ftp_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="dir">{tmpl_var name='dir_txt'}</label> + <input name="dir" id="dir" value="{tmpl_var name='dir'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/ftp_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/ftp_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/ftp_user_edit.htm b/interface/ispconfig/interface/sites/templates/ftp_user_edit.htm new file mode 100644 index 0000000..f7588b3 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/ftp_user_edit.htm @@ -0,0 +1,48 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_ftp_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput"> + {tmpl_var name='parent_domain_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <div style="float: left;">{tmpl_var name='username_prefix'} </div> + <input name="username" id="username" value="{tmpl_var name='username'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="password">{tmpl_var name='password_txt'}</label> + <input name="password" id="password" value="{tmpl_var name='password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="quota_size">{tmpl_var name='quota_size_txt'}</label> + <input name="quota_size" id="quota_size" value="{tmpl_var name='quota_size'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> MB</p> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/ftp_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/ftp_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/ftp_user_list.htm b/interface/ispconfig/interface/sites/templates/ftp_user_list.htm new file mode 100644 index 0000000..d281feb --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/ftp_user_list.htm @@ -0,0 +1,59 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_ftp_user"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/ftp_user_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_parent_domain_id" scope="col"><tmpl_var name="parent_domain_id_txt"></th> + <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/ftp_user_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/ftp_user_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_parent_domain_id"><select name="search_parent_domain_id" onChange="submitForm('pageForm','sites/ftp_user_list.php');">{tmpl_var name='search_parent_domain_id'}</select></td> + <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/ftp_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/ftp_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/ftp_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_parent_domain_id"><a href="#" onClick="loadContent('sites/ftp_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="parent_domain_id"}</a></td> + <td class="tbl_col_username"><a href="#" onClick="loadContent('sites/ftp_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/ftp_user_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/shell_user_advanced.htm b/interface/ispconfig/interface/sites/templates/shell_user_advanced.htm new file mode 100644 index 0000000..eb7d8ce --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/shell_user_advanced.htm @@ -0,0 +1,34 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_shell_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="puser">{tmpl_var name='puser_txt'}</label> + <input name="puser" id="puser" value="{tmpl_var name='puser'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="pgroup">{tmpl_var name='pgroup_txt'}</label> + <input name="pgroup" id="pgroup" value="{tmpl_var name='pgroup'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="shell">{tmpl_var name='shell_txt'}</label> + <input name="shell" id="shell" value="{tmpl_var name='shell'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="dir">{tmpl_var name='dir_txt'}</label> + <input name="dir" id="dir" value="{tmpl_var name='dir'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/shell_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/shell_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/shell_user_edit.htm b/interface/ispconfig/interface/sites/templates/shell_user_edit.htm new file mode 100644 index 0000000..7655743 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/shell_user_edit.htm @@ -0,0 +1,62 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_shell_user"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput" disabled="disabled"> + {tmpl_var name='parent_domain_id'} + </select> + <input type="hidden" name="parent_domain_id" value="{tmpl_var name='parent_domain_id_value'}" /> + <tmpl_else> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput"> + {tmpl_var name='parent_domain_id'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="username">{tmpl_var name='username_txt'}</label> + <div style="float: left;">{tmpl_var name='username_prefix'} </div> + <input name="username" id="username" value="{tmpl_var name='username'}" size="30" maxlength="255" type="text" class="textInput formLengthFourth"/> + </div> + <div class="ctrlHolder"> + <label for="password">{tmpl_var name='password_txt'}</label> + <input name="password" id="password" value="{tmpl_var name='password'}" size="30" maxlength="255" type="password" class="textInput" onkeyup="pass_check(this.value)"/> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="chroot">{tmpl_var name='chroot_txt'}</label> + <select name="chroot" id="chroot" class="selectInput formLengthHalf"> + {tmpl_var name='chroot'} + </select> + </div> + <div class="ctrlHolder"> + <label for="quota_size">{tmpl_var name='quota_size_txt'}</label> + <input name="quota_size" id="quota_size" value="{tmpl_var name='quota_size'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"> MB</p> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/shell_user_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/shell_user_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/shell_user_list.htm b/interface/ispconfig/interface/sites/templates/shell_user_list.htm new file mode 100644 index 0000000..a7504ac --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/shell_user_list.htm @@ -0,0 +1,59 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_shell_user"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/shell_user_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_parent_domain_id" scope="col"><tmpl_var name="parent_domain_id_txt"></th> + <th class="tbl_col_username" scope="col"><tmpl_var name="username_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/shell_user_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/shell_user_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_parent_domain_id"><select name="search_parent_domain_id" onChange="submitForm('pageForm','sites/shell_user_list.php');">{tmpl_var name='search_parent_domain_id'}</select></td> + <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/shell_user_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/shell_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/shell_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_parent_domain_id"><a href="#" onClick="loadContent('sites/shell_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="parent_domain_id"}</a></td> + <td class="tbl_col_username"><a href="#" onClick="loadContent('sites/shell_user_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="username"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/shell_user_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_aliasdomain_edit.htm b/interface/ispconfig/interface/sites/templates/web_aliasdomain_edit.htm new file mode 100644 index 0000000..76aca15 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_aliasdomain_edit.htm @@ -0,0 +1,50 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='domain_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label> + <select name="parent_domain_id" id="parent_domain_id" class="selectInput"> + {tmpl_var name='parent_domain_id'} + </select> + </div> + <div class="ctrlHolder"> + <label for="redirect_type">{tmpl_var name='redirect_type_txt'}</label> + <select name="redirect_type" id="redirect_type" class="selectInput formLengthHalf"> + {tmpl_var name='redirect_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="redirect_path">{tmpl_var name='redirect_path_txt'}</label> + <input name="redirect_path" id="redirect_path" value="{tmpl_var name='redirect_path'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="subdomain">{tmpl_var name='subdomain_txt'}</label> + <select name="subdomain" id="subdomain" class="selectInput formLengthHalf"> + {tmpl_var name='subdomain'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_aliasdomain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_aliasdomain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_aliasdomain_list.htm b/interface/ispconfig/interface/sites/templates/web_aliasdomain_list.htm new file mode 100644 index 0000000..b43f22a --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_aliasdomain_list.htm @@ -0,0 +1,59 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_web_aliasdomain"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/web_aliasdomain_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_parent_domain_id" scope="col"><tmpl_var name="parent_domain_id_txt"></th> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/web_aliasdomain_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/web_aliasdomain_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_parent_domain_id"><select name="search_parent_domain_id" onChange="submitForm('pageForm','sites/web_aliasdomain_list.php');">{tmpl_var name='search_parent_domain_id'}</select></td> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/web_aliasdomain_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/web_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/web_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_parent_domain_id"><a href="#" onClick="loadContent('sites/web_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="parent_domain_id"}</a></td> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('sites/web_aliasdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/web_aliasdomain_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_advanced.htm b/interface/ispconfig/interface/sites/templates/web_domain_advanced.htm new file mode 100644 index 0000000..79a5f6e --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_advanced.htm @@ -0,0 +1,41 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <input name="document_root" id="document_root" value="{tmpl_var name='document_root'}" size="30" maxlength="255" type="hidden" class="textInput" /> + <div class="ctrlHolder"> + <label for="system_user">{tmpl_var name='system_user_txt'}</label> + <label for="system_user">{tmpl_var name='system_user'}</label> + <input name="system_user" id="system_user" value="{tmpl_var name='system_user'}" type="hidden" /> + </div> + <div class="ctrlHolder"> + <label for="system_group">{tmpl_var name='system_group_txt'}</label> + <label for="system_group">{tmpl_var name='system_group'}</label> + <input name="system_group" id="system_group" value="{tmpl_var name='system_group'}" type="hidden" /> + </div> + <div class="ctrlHolder"> + <label for="allow_override">{tmpl_var name='allow_override_txt'}</label> + <input name="allow_override" id="allow_override" value="{tmpl_var name='allow_override'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label> + <input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="apache_directives">{tmpl_var name='apache_directives_txt'}</label> + <textarea name="apache_directives" id="apache_directives" rows='10' cols='30'>{tmpl_var name='apache_directives'}</textarea> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_edit.htm b/interface/ispconfig/interface/sites/templates/web_domain_edit.htm new file mode 100644 index 0000000..836017e --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_edit.htm @@ -0,0 +1,120 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <tmpl_if name="is_admin"> + <div class="ctrlHolder"> + <tmpl_if name="edit_disabled"> + <label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label> + <select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled"> + {tmpl_var name='server_id'} + </select> + <input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" /> + <tmpl_else> + <label for="server_id">{tmpl_var name='server_id_txt'}</label> + <select name="server_id" id="server_id" class="selectInput" onChange="loadOptionInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)"> + {tmpl_var name='server_id'} + </select> + </tmpl_if> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_group_id_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <tmpl_if name="is_reseller"> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='client_group_id_txt'}</label> + <select name="client_group_id" id="client_group_id" class="selectInput"> + {tmpl_var name='client_group_id'} + </select> + </div> + </tmpl_if> + <div class="ctrlHolder"> + <label for="ip_address">{tmpl_var name='ip_address_txt'}</label> + <select name="ip_address" id="ip_address" class="selectInput formLengthIPv4"> + {tmpl_var name='ip_address'} + </select> + </div> + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='domain_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="hd_quota">{tmpl_var name='hd_quota_txt'}</label> + <input name="hd_quota" id="hd_quota" value="{tmpl_var name='hd_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /> MB + </div> + <div class="ctrlHolder"> + <label for="traffic_quota">{tmpl_var name='traffic_quota_txt'}</label> + <input name="traffic_quota" id="traffic_quota" value="{tmpl_var name='traffic_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /> MB <tmpl_var name='traffic_quota_exceeded_txt'> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='cgi_txt'}</p> + <div class="multiField"> + {tmpl_var name='cgi'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='ssi_txt'}</p> + <div class="multiField"> + {tmpl_var name='ssi'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='suexec_txt'}</p> + <div class="multiField"> + {tmpl_var name='suexec'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='errordocs_txt'}</p> + <div class="multiField"> + {tmpl_var name='errordocs'} + </div> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='is_subdomainwww_txt'}</p> + <div class="multiField"> + {tmpl_var name='is_subdomainwww'} + </div> + </div> + <div class="ctrlHolder"> + <label for="subdomain">{tmpl_var name='subdomain_txt'}</label> + <select name="subdomain" id="subdomain" class="selectInput formLengthHalf"> + {tmpl_var name='subdomain'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='ssl_txt'}</p> + <div class="multiField"> + {tmpl_var name='ssl'} + </div> + </div> + <div class="ctrlHolder"> + <label for="php">{tmpl_var name='php_txt'}</label> + <select name="php" id="php" class="selectInput formLengthHalf"> + {tmpl_var name='php'} + </select> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_list.htm b/interface/ispconfig/interface/sites/templates/web_domain_list.htm new file mode 100644 index 0000000..290cf2b --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_list.htm @@ -0,0 +1,59 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_web_domain"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/web_domain_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_domain_id" scope="col"><tmpl_var name="domain_id_txt"></th> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_domain_id"><input type="text" name="search_domain_id" value="{tmpl_var name='search_domain_id'}" /></td> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/web_domain_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/web_domain_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/web_domain_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_domain_id"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain_id"}</a></td> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/web_domain_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_redirect.htm b/interface/ispconfig/interface/sites/templates/web_domain_redirect.htm new file mode 100644 index 0000000..89e6fab --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_redirect.htm @@ -0,0 +1,28 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="redirect_type">{tmpl_var name='redirect_type_txt'}</label> + <select name="redirect_type" id="redirect_type" class="selectInput formLengthHalf"> + {tmpl_var name='redirect_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="redirect_path">{tmpl_var name='redirect_path_txt'}</label> + <input name="redirect_path" id="redirect_path" value="{tmpl_var name='redirect_path'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_ssl.htm b/interface/ispconfig/interface/sites/templates/web_domain_ssl.htm new file mode 100644 index 0000000..273855c --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_ssl.htm @@ -0,0 +1,62 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="ssl_state">{tmpl_var name='ssl_state_txt'}</label> + <input name="ssl_state" id="ssl_state" value="{tmpl_var name='ssl_state'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ssl_locality">{tmpl_var name='ssl_locality_txt'}</label> + <input name="ssl_locality" id="ssl_locality" value="{tmpl_var name='ssl_locality'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ssl_organisation">{tmpl_var name='ssl_organisation_txt'}</label> + <input name="ssl_organisation" id="ssl_organisation" value="{tmpl_var name='ssl_organisation'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ssl_organisation_unit">{tmpl_var name='ssl_organisation_unit_txt'}</label> + <input name="ssl_organisation_unit" id="ssl_organisation_unit" value="{tmpl_var name='ssl_organisation_unit'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="ssl_country">{tmpl_var name='ssl_country_txt'}</label> + <input name="ssl_country" id="ssl_country" value="{tmpl_var name='ssl_country'}" size="2" maxlength="2" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="client_group_id">{tmpl_var name='ssl_domain_txt'}</label> + <select name="ssl_domain" id="ssl_domain" class="selectInput"> + {tmpl_var name='ssl_domain'} + </select> + </div> + <div class="ctrlHolder"> + <label for="ssl_request">{tmpl_var name='ssl_request_txt'}</label> + <textarea name="ssl_request" id="ssl_request" rows='10' cols='30'>{tmpl_var name='ssl_request'}</textarea> + </div> + <div class="ctrlHolder"> + <label for="ssl_cert">{tmpl_var name='ssl_cert_txt'}</label> + <textarea name="ssl_cert" id="ssl_cert" rows='10' cols='30'>{tmpl_var name='ssl_cert'}</textarea> + </div> + <div class="ctrlHolder"> + <label for="ssl_bundle">{tmpl_var name='ssl_bundle_txt'}</label> + <textarea name="ssl_bundle" id="ssl_bundle" rows='10' cols='30'>{tmpl_var name='ssl_bundle'}</textarea> + </div> + <div class="ctrlHolder"> + <label for="ssl_action">{tmpl_var name='ssl_action_txt'}</label> + <select name="ssl_action" id="ssl_action" class="selectInput formLengthHalf"> + {tmpl_var name='ssl_action'} + </select> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_domain_stats.htm b/interface/ispconfig/interface/sites/templates/web_domain_stats.htm new file mode 100644 index 0000000..0886460 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_domain_stats.htm @@ -0,0 +1,22 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_domain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="redirect_path">{tmpl_var name='stats_password_txt'}</label> + <input name="stats_password" id="stats_password" value="{tmpl_var name='stats_password'}" size="30" maxlength="255" type="password" class="textInput" /> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_sites_stats_list.htm b/interface/ispconfig/interface/sites/templates/web_sites_stats_list.htm new file mode 100644 index 0000000..6312b02 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_sites_stats_list.htm @@ -0,0 +1,52 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_web_sites_stats"> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_this_month" scope="col"><tmpl_var name="this_month_txt"></th> + <th class="tbl_col_last_month" scope="col"><tmpl_var name="last_month_txt"></th> + <th class="tbl_col_this_year" scope="col"><tmpl_var name="this_year_txt"></th> + <th class="tbl_col_last_year" scope="col"><tmpl_var name="last_year_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_this_month"></td> + <td class="tbl_col_last_month"></td> + <td class="tbl_col_this_year"></td> + <td class="tbl_col_last_year"></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/web_sites_stats.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_this_month"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="this_month"} MB</a></td> + <td class="tbl_col_last_month"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="last_month"} MB</a></td> + <td class="tbl_col_this_year"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="this_year"} MB</a></td> + <td class="tbl_col_last_year"><a href="#" onClick="loadContent('sites/web_domain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="last_year"} MB</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_subdomain_edit.htm b/interface/ispconfig/interface/sites/templates/web_subdomain_edit.htm new file mode 100644 index 0000000..2206cf7 --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_subdomain_edit.htm @@ -0,0 +1,42 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_web_subdomain"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="domain">{tmpl_var name='host_txt'}</label> + <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" /> + </div> + <div class="ctrlHolder"> + <label for="parent_domain_id">{tmpl_var name='domain_txt'}</label> + <select id="parent_domain_id" name="parent_domain_id" class="selectInput formLengthHalf">{tmpl_var name='parent_domain_id'}</select> + </div> + <div class="ctrlHolder"> + <label for="redirect_type">{tmpl_var name='redirect_type_txt'}</label> + <select name="redirect_type" id="redirect_type" class="selectInput formLengthHalf"> + {tmpl_var name='redirect_type'} + </select> + </div> + <div class="ctrlHolder"> + <label for="redirect_path">{tmpl_var name='redirect_path_txt'}</label> + <input name="redirect_path" id="redirect_path" value="{tmpl_var name='redirect_path'}" size="30" maxlength="255" type="text" class="textInput" /> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='active_txt'}</p> + <div class="multiField"> + {tmpl_var name='active'} + </div> + </div> + </fieldset> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_subdomain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_subdomain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/templates/web_subdomain_list.htm b/interface/ispconfig/interface/sites/templates/web_subdomain_list.htm new file mode 100644 index 0000000..fce2a6f --- /dev/null +++ b/interface/ispconfig/interface/sites/templates/web_subdomain_list.htm @@ -0,0 +1,60 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_list_web_subdomain"> + + <div class="pnl_toolsarea"> + <fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend> + <div class="buttons"> + <button class="iconstxt icoAdd" type="button" onClick="loadContent('sites/web_subdomain_edit.php');"> + <span>{tmpl_var name="add_new_record_txt"}</span> + </button> + </div> + </fieldset> + </div> + + <div class="pnl_listarea"> + <fieldset><legend><tmpl_var name="list_head_txt"></legend> + <table class="list"> + <thead> + <tr> + <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> + <th class="tbl_col_parent_domain_id" scope="col"><tmpl_var name="parent_domain_id_txt"></th> + <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th> + <th class="tbl_col_buttons" scope="col"> </th> + </tr> + <tr> + <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','sites/web_subdomain_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','sites/web_subdomain_list.php');">{tmpl_var name='search_server_id'}</select></td> + <td class="tbl_col_parent_domain_id"><select name="search_parent_domain_id" onChange="submitForm('pageForm','sites/web_subdomain_list.php');">{tmpl_var name='search_parent_domain_id'}</select></td> + <td class="tbl_col_domain"><input type="text" name="search_domain" value="{tmpl_var name='search_domain'}" /></td> + <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','sites/web_subdomain_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> + </tr> + </thead> + <tbody> + <tmpl_loop name="records"> + <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> + <td class="tbl_col_active"><a href="#" onClick="loadContent('sites/web_subdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td> + <td class="tbl_col_server_id"><a href="#" onClick="loadContent('sites/web_subdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td> + <td class="tbl_col_parent_domain_id"><a href="#" onClick="loadContent('sites/web_subdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="parent_domain_id"}</a></td> + <td class="tbl_col_domain"><a href="#" onClick="loadContent('sites/web_subdomain_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="domain"}</a></td> + <td class="tbl_col_buttons"> + <div class="buttons icons16"> + <a class="icons16 icoDelete" href="javascript: del_record('sites/web_subdomain_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a> + </div> + </td> + </tr> + </tmpl_loop> + </tbody> + + <tfoot> + <tr> + <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + </tr> + </tfoot> + </table> + </fieldset> + </div> + +</div> diff --git a/interface/ispconfig/interface/sites/tools.inc.php b/interface/ispconfig/interface/sites/tools.inc.php new file mode 100644 index 0000000..65dd459 --- /dev/null +++ b/interface/ispconfig/interface/sites/tools.inc.php @@ -0,0 +1,126 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +function replacePrefix($name, $dataRecord) { + // No input -> no possible output -> go out! + if ($name=="") return ""; + + // Array containing keys to search + $keywordlist=array('CLIENTNAME','CLIENTID','DOMAINID'); + + // Try to match the key within the string + foreach ($keywordlist as $keyword) { + if (substr_count($name, '['.$keyword.']') > 0) { + switch ($keyword) { + case 'CLIENTNAME': + $name=str_replace('['.$keyword.']', getClientName($dataRecord),$name); + break; + case 'CLIENTID': + $name=str_replace('['.$keyword.']', getClientID($dataRecord),$name); + break; + case 'DOMAINID': + $name=str_replace('['.$keyword.']', $dataRecord['parent_domain_id'],$name); + break; + } + } + } + return $name; +} + +function getClientName($dataRecord) { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + // Get the group-id of the user + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + } else { + // Get the group-id from the data itself + if(isset($dataRecord['client_group_id'])) { + $client_group_id = $dataRecord['client_group_id']; + } elseif (isset($dataRecord['parent_domain_id'])) { + $tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $dataRecord['parent_domain_id']); + $client_group_id = $tmp['sys_groupid']; + } else { + $client_group_id = $dataRecord['sys_groupid']; + } + } + + /* get the name of the client */ + $tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id); + $clientName = $tmp['name']; + if ($clientName == "") $clientName = 'default'; + $clientName = convertClientName($clientName); + return $clientName; +} + +function getClientID($dataRecord) { + global $app, $conf; + + if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + // Get the group-id of the user + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + } else { + // Get the group-id from the data itself + if(isset($dataRecord['client_group_id'])) { + $client_group_id = $dataRecord['client_group_id']; + } elseif (isset($dataRecord['parent_domain_id'])) { + $tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $dataRecord['parent_domain_id']); + $client_group_id = $tmp['sys_groupid']; + } else { + $client_group_id = $dataRecord['sys_groupid']; + } + } + /* get the name of the client */ + $tmp = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE groupid = " . $client_group_id); + $clientID = $tmp['client_id']; + if ($clientID == '') $clientID = '0'; + return $clientID; +} + +function convertClientName($name){ + /** + * only allow 'a'..'z', '_', '0'..'9' + */ + $allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_'; + $res = ''; + $name = strtolower(trim($name)); + for ($i=0; $i < strlen($name); $i++){ + if ($name[$i] == ' ') continue; + if (strpos($allowed, $name[$i]) !== false){ + $res .= $name[$i]; + } + else { + $res .= '_'; + } + } + return $res; +} + + +?> diff --git a/interface/ispconfig/interface/sites/web_aliasdomain_del.php b/interface/ispconfig/interface/sites/web_aliasdomain_del.php new file mode 100644 index 0000000..748fb58 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_aliasdomain_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_aliasdomain.list.php"; +$tform_def_file = "form/web_aliasdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_aliasdomain_edit.php b/interface/ispconfig/interface/sites/web_aliasdomain_edit.php new file mode 100644 index 0000000..151fad4 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_aliasdomain_edit.php @@ -0,0 +1,114 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/web_aliasdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + var $parent_domain_record; + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_web_aliasdomain',"type = 'alias'")) { + $app->error($app->tform->wordbook["limit_web_aliasdomain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_web_aliasdomain',"type = 'alias'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_web_aliasdomain_txt"]); + } + } + + parent::onShowNew(); + } + + /* + function onShowEnd() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval($this->dataRecord["parent_domain_id"])); + + $this->dataRecord["domain"] = str_replace('.'.$parent_domain["domain"],'',$this->dataRecord["domain"]); + $app->tpl->setVar("domain",$this->dataRecord["domain"]); + + parent::onShowEnd(); + + } + */ + + function onSubmit() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // Set a few fixed values + $this->dataRecord["type"] = 'alias'; + $this->dataRecord["server_id"] = $parent_domain["server_id"]; + //$this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"]; + + $this->parent_domain_record = $parent_domain; + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + $app->db->query('UPDATE web_domain SET sys_groupid = '.intval($this->parent_domain_record['sys_groupid']).' WHERE domain_id = '.$this->id); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_aliasdomain_list.php b/interface/ispconfig/interface/sites/web_aliasdomain_list.php new file mode 100644 index 0000000..4d16975 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_aliasdomain_list.php @@ -0,0 +1,55 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_aliasdomain.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'alias'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_domain_del.php b/interface/ispconfig/interface/sites/web_domain_del.php new file mode 100644 index 0000000..185cdd3 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_domain_del.php @@ -0,0 +1,87 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_domain.list.php"; +$tform_def_file = "form/web_domain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission')); + + // Delete all records that belog to this zone. + $records = $app->db->queryAllRecords("SELECT domain_id FROM web_domain WHERE parent_domain_id = '".intval($this->id)."' AND type != 'vhost'"); + foreach($records as $rec) { + $app->db->datalogDelete('web_domain','domain_id',$rec['domain_id']); + } + + // Delete all records that belog to this zone. + $records = $app->db->queryAllRecords("SELECT ftp_user_id FROM ftp_user WHERE parent_domain_id = '".intval($this->id)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('ftp_user','ftp_user_id',$rec['ftp_user_id']); + } + + // Delete all records that belog to this zone. + $records = $app->db->queryAllRecords("SELECT shell_user_id FROM shell_user WHERE parent_domain_id = '".intval($this->id)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('shell_user','shell_user_id',$rec['shell_user_id']); + } + + // Delete all records that belog to this zone. + $records = $app->db->queryAllRecords("SELECT id FROM cron WHERE parent_domain_id = '".intval($this->id)."'"); + foreach($records as $rec) { + $app->db->datalogDelete('cron','id',$rec['id']); + } + } +} + +$page = new page_action; +$page->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_domain_edit.php b/interface/ispconfig/interface/sites/web_domain_edit.php new file mode 100644 index 0000000..4e8cf0b --- /dev/null +++ b/interface/ispconfig/interface/sites/web_domain_edit.php @@ -0,0 +1,477 @@ +<?php +/* +Copyright (c) 2007 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/web_domain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_web_domain',"type = 'vhost'")) { + $app->error($app->tform->wordbook["limit_web_domain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_web_domain',"type = 'vhost'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_web_domain_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + //* Client: If the logged in user is not admin and has no sub clients (no rseller) + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_web_domain, default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Set the webserver to the default server of the client + $tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_webserver]"); + $app->tpl->setVar("server_id","<option value='$client[default_webserver]'>$tmp[server_name]</option>"); + unset($tmp); + + // Fill the IP select field with the IP addresses that are allowed for this client + // $ip_select = "<option value='*'>*</option>"; + // $app->tpl->setVar("ip_address",$ip_select); + $sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']; + $ips = $app->db->queryAllRecords($sql); + $ip_select = "<option value='*'>*</option>"; + //$ip_select = ""; + if(is_array($ips)) { + foreach( $ips as $ip) { + $selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; + $ip_select .= "<option value='$ip[ip_address]' $selected>$ip[ip_address]</option>\r\n"; + } + } + $app->tpl->setVar("ip_address",$ip_select); + unset($tmp); + unset($ips); + + //* Reseller: If the logged in user is not admin and has sub clients (is a rseller) + } elseif ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client.client_id, limit_web_domain, default_webserver, client.contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + // Set the webserver to the default server of the client + $tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_webserver]"); + $app->tpl->setVar("server_id","<option value='$client[default_webserver]'>$tmp[server_name]</option>"); + unset($tmp); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name"; + $records = $app->db->queryAllRecords($sql); + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($records)) { + foreach( $records as $rec) { + $selected = @($rec["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$rec[groupid]' $selected>$rec[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + // Fill the IP select field with the IP addresses that are allowed for this client + //$ip_select = "<option value='*'>*</option>"; + //$app->tpl->setVar("ip_address",$ip_select); + $sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']; + $ips = $app->db->queryAllRecords($sql); + $ip_select = "<option value='*'>*</option>"; + //$ip_select = ""; + if(is_array($ips)) { + foreach( $ips as $ip) { + $selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; + $ip_select .= "<option value='$ip[ip_address]' $selected>$ip[ip_address]</option>\r\n"; + } + } + $app->tpl->setVar("ip_address",$ip_select); + unset($tmp); + unset($ips); + + //* Admin: If the logged in user is admin + } else { + + // The user is admin, so we fill in all IP addresses of the server + if($this->id > 0) { + $server_id = @$this->dataRecord["server_id"]; + } else { + // Get the first server ID + $tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1"); + $server_id = $tmp['server_id']; + } + + $sql = "SELECT ip_address FROM server_ip WHERE server_id = $server_id"; + $ips = $app->db->queryAllRecords($sql); + $ip_select = "<option value='*'>*</option>"; + //$ip_select = ""; + if(is_array($ips)) { + foreach( $ips as $ip) { + $selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; + $ip_select .= "<option value='$ip[ip_address]' $selected>$ip[ip_address]</option>\r\n"; + } + } + $app->tpl->setVar("ip_address",$ip_select); + unset($tmp); + unset($ips); + + // Fill the client select field + $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name"; + $clients = $app->db->queryAllRecords($sql); + $client_select = "<option value='0'></option>"; + $tmp_data_record = $app->tform->getDataRecord($this->id); + if(is_array($clients)) { + foreach( $clients as $client) { + $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':''; + $client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; + } + } + $app->tpl->setVar("client_group_id",$client_select); + + } + + $ssl_domain_select = ''; + $ssl_domains = array($this->dataRecord["domain"],'www.'.$this->dataRecord["domain"]); + if(is_array($ssl_domains)) { + foreach( $ssl_domains as $ssl_domain) { + $selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':''; + $ssl_domain_select .= "<option value='$ssl_domain' $selected>$ssl_domain</option>\r\n"; + } + } + $app->tpl->setVar("ssl_domain",$ssl_domain_select); + unset($ssl_domain_select); + unset($ssl_domains); + unset($ssl_domain); + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("edit_disabled", 1); + $app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]); + } else { + $app->tpl->setVar("edit_disabled", 0); + } + + $tmp_txt = ($this->dataRecord['traffic_quota_lock'] == 'y')?'<b>('.$app->tform->lng('traffic_quota_exceeded_txt').')</b>':''; + $app->tpl->setVar("traffic_quota_exceeded_txt", $tmp_txt); + + parent::onShowEnd(); + } + + function onSubmit() { + global $app, $conf; + + // Set a few fixed values + $this->dataRecord["parent_domain_id"] = 0; + $this->dataRecord["type"] = 'vhost'; + $this->dataRecord["vhost_type"] = 'name'; + + if($_SESSION["s"]["user"]["typ"] != 'admin') { + // Get the limits of the client + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT limit_traffic_quota, limit_web_domain, default_webserver, parent_client_id, limit_web_quota FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + + //* Check the website quota + if(isset($_POST["hd_quota"]) && $client["limit_web_quota"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT sum(hd_quota) as webquota FROM web_domain WHERE domain_id != ".intval($this->id)." AND ".$app->tform->getAuthSQL('u')); + $webquota = $tmp["webquota"]; + $new_web_quota = intval($this->dataRecord["hd_quota"]); + if(($webquota + $new_web_quota > $client["limit_web_quota"]) || ($new_web_quota == -1 && $client["limit_web_quota"] != -1)) { + $max_free_quota = floor($client["limit_web_quota"] - $webquota); + if($max_free_quota < 0) $max_free_quota = 0; + $app->tform->errorMessage .= $app->tform->lng("limit_web_quota_free_txt").": ".$max_free_quota." MB<br>"; + // Set the quota field to the max free space + $this->dataRecord["hd_quota"] = $max_free_quota; + } + unset($tmp); + unset($tmp_quota); + } + + //* Check the traffic quota + if(isset($_POST["traffic_quota"]) && $client["limit_traffic_quota"] > 0) { + $tmp = $app->db->queryOneRecord("SELECT sum(traffic_quota) as trafficquota FROM web_domain WHERE domain_id != ".intval($this->id)." AND ".$app->tform->getAuthSQL('u')); + $trafficquota = $tmp["trafficquota"]; + $new_traffic_quota = intval($this->dataRecord["traffic_quota"]); + if(($trafficquota + $new_traffic_quota > $client["limit_traffic_quota"]) || ($new_traffic_quota == -1 && $client["limit_traffic_quota"] != -1)) { + $max_free_quota = floor($client["limit_traffic_quota"] - $trafficquota); + if($max_free_quota < 0) $max_free_quota = 0; + $app->tform->errorMessage .= $app->tform->lng("limit_traffic_quota_free_txt").": ".$max_free_quota." MB<br>"; + // Set the quota field to the max free space + $this->dataRecord["traffic_quota"] = $max_free_quota; + } + unset($tmp); + unset($tmp_quota); + } + + // When the record is updated + if($this->id > 0) { + // restore the server ID if the user is not admin and record is edited + $tmp = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE domain_id = ".intval($this->id)); + $this->dataRecord["server_id"] = $tmp["server_id"]; + unset($tmp); + // When the record is inserted + } else { + // set the server ID to the default mailserver of the client + $this->dataRecord["server_id"] = $client["default_webserver"]; + + + // Check if the user may add another web_domain + if($client["limit_web_domain"] >= 0) { + $tmp = $app->db->queryOneRecord("SELECT count(domain_id) as number FROM web_domain WHERE sys_groupid = $client_group_id and type = 'vhost'"); + if($tmp["number"] >= $client["limit_web_domain"]) { + $app->error($app->tform->wordbook["limit_web_domain_txt"]); + } + } + + } + + // Clients may not set the client_group_id, so we unset them if user is not a admin and the client is not a reseller + if(!$app->auth->has_clients($_SESSION['s']['user']['userid'])) unset($this->dataRecord["client_group_id"]); + } + + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + // make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_domain SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE domain_id = ".$this->id); + } + + // Get configuration for the web system + $app->uses("getconf"); + $web_rec = $app->tform->getDataRecord($this->id); + $web_config = $app->getconf->get_server_config(intval($web_rec["server_id"]),'web'); + $document_root = str_replace("[website_id]",$this->id,$web_config["website_path"]); + + // get the ID of the client + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = $client_group_id"); + $client_id = intval($client["client_id"]); + } else { + //$client_id = intval($this->dataRecord["client_group_id"]); + $client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = ".intval($this->dataRecord["client_group_id"])); + $client_id = intval($client["client_id"]); + } + + // Set the values for document_root, system_user and system_group + $system_user = $app->db->quote('web'.$this->id); + $system_group = $app->db->quote('client'.$client_id); + $document_root = $app->db->quote(str_replace("[client_id]",$client_id,$document_root)); + $php_open_basedir = str_replace("[website_path]",$document_root,$web_config["php_open_basedir"]); + $php_open_basedir = $app->db->quote(str_replace("[website_domain]",$web_rec['domain'],$php_open_basedir)); + $htaccess_allow_override = $app->db->quote($web_config["htaccess_allow_override"]); + + $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$this->id; + $app->db->query($sql); + } + + function onBeforeUpdate () { + global $app, $conf; + + //* Check if the server has been changed + // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway + if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) { + if (isset($this->dataRecord["server_id"])){ + $rec = $app->db->queryOneRecord("SELECT server_id from web_domain WHERE domain_id = ".$this->id); + if($rec['server_id'] != $this->dataRecord["server_id"]) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Server can not be changed.'); + $this->dataRecord["server_id"] = $rec['server_id']; + } + unset($rec); + } + //* If the user is neither admin nor reseller + } else { + //* We do not allow users to change a domain which has been created by the admin + $rec = $app->db->queryOneRecord("SELECT domain from web_domain WHERE domain_id = ".$this->id); + if(isset($this->dataRecord["domain"]) && $rec['domain'] != $this->dataRecord["domain"] && $app->tform->checkPerm($this->id,'u')) { + //* Add a error message and switch back to old server + $app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'); + $this->dataRecord["domain"] = $rec['domain']; + } + unset($rec); + } + + //* Check that all fields for the SSL cert creation are filled + if(isset($this->dataRecord['ssl_action']) && $this->dataRecord['ssl_action'] == 'create') { + if($this->dataRecord['ssl_state'] == '') $app->tform->errorMessage .= $app->tform->lng('error_ssl_state_empty').'<br />'; + if($this->dataRecord['ssl_locality'] == '') $app->tform->errorMessage .= $app->tform->lng('error_ssl_locality_empty').'<br />'; + if($this->dataRecord['ssl_organisation'] == '') $app->tform->errorMessage .= $app->tform->lng('error_ssl_organisation_empty').'<br />'; + if($this->dataRecord['ssl_organisation_unit'] == '') $app->tform->errorMessage .= $app->tform->lng('error_ssl_organisation_unit_empty').'<br />'; + if($this->dataRecord['ssl_country'] == '') $app->tform->errorMessage .= $app->tform->lng('error_ssl_country_empty').'<br />'; + } + + } + + function onAfterUpdate() { + global $app, $conf; + + // make sure that the record belongs to the clinet group and not the admin group when a admin inserts it + // also make sure that the user can not delete domain created by a admin + if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); + } + if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) { + $client_group_id = intval($this->dataRecord["client_group_id"]); + $app->db->query("UPDATE web_domain SET sys_groupid = $client_group_id, sys_perm_group = 'riud' WHERE domain_id = ".$this->id); + } + + // Get configuration for the web system + $app->uses("getconf"); + $web_rec = $app->tform->getDataRecord($this->id); + $web_config = $app->getconf->get_server_config(intval($web_rec["server_id"]),'web'); + $document_root = str_replace("[website_id]",$this->id,$web_config["website_path"]); + + // get the ID of the client + if($_SESSION["s"]["user"]["typ"] != 'admin' && !$app->auth->has_clients($_SESSION['s']['user']['userid'])) { + $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = $client_group_id"); + $client_id = intval($client["client_id"]); + } else { + //$client_id = intval(@$web_rec["client_group_id"]); + $client = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE sys_group.groupid = ".intval(@$this->dataRecord["client_group_id"])); + $client_id = intval($client["client_id"]); + } + + if(($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) && isset($this->dataRecord["client_group_id"]) && $this->dataRecord["client_group_id"] != $this->oldDataRecord["sys_groupid"]) { + // Set the values for document_root, system_user and system_group + $system_user = $app->db->quote('web'.$this->id); + $system_group = $app->db->quote('client'.$client_id); + $document_root = $app->db->quote(str_replace("[client_id]",$client_id,$document_root)); + + $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id; + //$sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group' WHERE domain_id = ".$this->id; + $app->db->query($sql); + + // Update the FTP user(s) too + $records = $app->db->queryAllRecords("SELECT ftp_user_id FROM ftp_user WHERE parent_domain_id = ".$this->id); + foreach($records as $rec) { + $app->db->datalogUpdate('ftp_user', "uid = '$system_user', gid = '$system_group', dir = '$document_root'", 'ftp_user_id', $rec['ftp_user_id']); + } + unset($records); + unset($rec); + + // Update the Shell user(s) too + $records = $app->db->queryAllRecords("SELECT shell_user_id FROM shell_user WHERE parent_domain_id = ".$this->id); + foreach($records as $rec) { + $app->db->datalogUpdate('shell_user', "puser = '$system_user', pgroup = '$system_group', dir = '$document_root'", 'shell_user_id', $rec['shell_user_id']); + } + unset($records); + unset($rec); + + } + + //* If the domain name has been changed, we will have to change all subdomains + if($this->dataRecord["domain"] != '' && $this->oldDataRecord["domain"] != '' && $this->dataRecord["domain"] != $this->oldDataRecord["domain"]) { + $records = $app->db->queryAllRecords("SELECT domain_id,domain FROM web_domain WHERE type = 'subdomain' AND domain LIKE '%.".$app->db->quote($this->oldDataRecord["domain"])."'"); + foreach($records as $rec) { + $subdomain = $app->db->quote(str_replace($this->oldDataRecord["domain"],$this->dataRecord["domain"],$rec['domain'])); + $app->db->datalogUpdate('web_domain', "domain = '".$subdomain."'", 'domain_id', $rec['domain_id']); + } + unset($records); + unset($rec); + unset($subdomain); + } + + //* Set allow_override and php_open_basedir if empty + if($web_rec['allow_override'] == '') { + $sql = "UPDATE web_domain SET allow_override = '".$app->db->quote($web_config["htaccess_allow_override"])."' WHERE domain_id = ".$this->id; + $app->db->query($sql); + } + if($web_rec['php_open_basedir'] == '') { + $document_root = $app->db->quote(str_replace("[client_id]",$client_id,$document_root)); + $php_open_basedir = str_replace("[website_path]",$document_root,$web_config["php_open_basedir"]); + $php_open_basedir = $app->db->quote(str_replace("[website_domain]",$web_rec['domain'],$php_open_basedir)); + $sql = "UPDATE web_domain SET php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$this->id; + $app->db->query($sql); + } + + } + + function onAfterDelete() { + global $app, $conf; + + // Delete the sub and alias domains + $child_domains = $app->db->queryAllRecords("SELECT * FROM web_domain WHERE parent_domain_id = ".$this->id); + foreach($child_domains as $d) { + // Saving record to datalog when db_history enabled + if($app->tform->formDef["db_history"] == 'yes') { + $app->tform->datalogSave('DELETE',$d["domain_id"],$d,array()); + } + + $app->db->query("DELETE FROM web_domain WHERE domain_id = ".$d["domain_id"]." LIMIT 0,1"); + } + unset($child_domains); + unset($d); + + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_domain_list.php b/interface/ispconfig/interface/sites/web_domain_list.php new file mode 100644 index 0000000..085ca05 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_domain_list.php @@ -0,0 +1,59 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_domain.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->load('listform_actions'); + + +class list_action extends listform_actions { + +} + +$list = new list_action; +$list->SQLExtWhere = "type = 'vhost'"; +$list->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_sites_stats.php b/interface/ispconfig/interface/sites/web_sites_stats.php new file mode 100644 index 0000000..f380980 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_sites_stats.php @@ -0,0 +1,64 @@ +<?php +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_sites_stats.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->load('listform_actions'); + +class list_action extends listform_actions { + + function prepareDataRow($rec) + { + global $app; + + $rec = $app->listform->decode($rec); + + //* Alternating datarow colors + $this->DataRowColor = ($this->DataRowColor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'; + $rec['bgcolor'] = $this->DataRowColor; + + //* Set the statistics colums + //** Traffic of the current month + $tmp_year = date('Y'); + $tmp_month = date('m'); + $tmp_rec = $app->db->queryOneRecord("SELECT SUM(traffic_bytes) as t FROM web_traffic WHERE hostname = '".$rec['domain']."' AND YEAR(traffic_date) = '$tmp_year' AND MONTH(traffic_date) = '$tmp_month'"); + $rec['this_month'] = number_format($tmp_rec['t']/1024/1024, 0, '.', ' '); + + //** Traffic of the current year + $tmp_rec = $app->db->queryOneRecord("SELECT sum(traffic_bytes) as t FROM web_traffic WHERE hostname = '".$rec['domain']."' AND YEAR(traffic_date) = '$tmp_year'"); + $rec['this_year'] = number_format($tmp_rec['t']/1024/1024, 0, '.', ' '); + + //** Traffic of the last month + $tmp_year = date('Y',mktime(0, 0, 0, date("m")-1, date("d"), date("Y"))); + $tmp_month = date('m',mktime(0, 0, 0, date("m")-1, date("d"), date("Y"))); + $tmp_rec = $app->db->queryOneRecord("SELECT sum(traffic_bytes) as t FROM web_traffic WHERE hostname = '".$rec['domain']."' AND YEAR(traffic_date) = '$tmp_year' AND MONTH(traffic_date) = '$tmp_month'"); + $rec['last_month'] = number_format($tmp_rec['t']/1024/1024, 0, '.', ' '); + + //** Traffic of the last year + $tmp_year = date('Y',mktime(0, 0, 0, date("m"), date("d"), date("Y")-1)); + $tmp_rec = $app->db->queryOneRecord("SELECT sum(traffic_bytes) as t FROM web_traffic WHERE hostname = '".$rec['domain']."' AND YEAR(traffic_date) = '$tmp_year'"); + $rec['last_year'] = number_format($tmp_rec['t']/1024/1024, 0, '.', ' '); + + //* The variable "id" contains always the index variable + $rec['id'] = $rec[$this->idx_key]; + return $rec; + } +} + +$list = new list_action; +$list->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_subdomain_del.php b/interface/ispconfig/interface/sites/web_subdomain_del.php new file mode 100644 index 0000000..91b1662 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_subdomain_del.php @@ -0,0 +1,51 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_subdomain.list.php"; +$tform_def_file = "form/web_subdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_subdomain_edit.php b/interface/ispconfig/interface/sites/web_subdomain_edit.php new file mode 100644 index 0000000..ec35a1b --- /dev/null +++ b/interface/ispconfig/interface/sites/web_subdomain_edit.php @@ -0,0 +1,114 @@ +<?php +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/web_subdomain.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + var $parent_domain_record; + + function onShowNew() { + global $app, $conf; + + // we will check only users, not admins + if($_SESSION["s"]["user"]["typ"] == 'user') { + if(!$app->tform->checkClientLimit('limit_web_subdomain',"type = 'subdomain'")) { + $app->error($app->tform->wordbook["limit_web_subdomain_txt"]); + } + if(!$app->tform->checkResellerLimit('limit_web_subdomain',"type = 'subdomain'")) { + $app->error('Reseller: '.$app->tform->wordbook["limit_web_subdomain_txt"]); + } + } + + parent::onShowNew(); + } + + function onShowEnd() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // remove the parent domain part of the domain name before we show it in the text field. + $this->dataRecord["domain"] = str_replace('.'.$parent_domain["domain"],'',$this->dataRecord["domain"]); + $app->tpl->setVar("domain",$this->dataRecord["domain"]); + + parent::onShowEnd(); + + } + + function onSubmit() { + global $app, $conf; + + // Get the record of the parent domain + $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".intval(@$this->dataRecord["parent_domain_id"])); + + // Set a few fixed values + $this->dataRecord["type"] = 'subdomain'; + $this->dataRecord["server_id"] = $parent_domain["server_id"]; + $this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"]; + + $this->parent_domain_record = $parent_domain; + + parent::onSubmit(); + } + + function onAfterInsert() { + global $app, $conf; + + $app->db->query('UPDATE web_domain SET sys_groupid = '.intval($this->parent_domain_record['sys_groupid']).' WHERE domain_id = '.$this->id); + + } + + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/sites/web_subdomain_list.php b/interface/ispconfig/interface/sites/web_subdomain_list.php new file mode 100644 index 0000000..224bba8 --- /dev/null +++ b/interface/ispconfig/interface/sites/web_subdomain_list.php @@ -0,0 +1,55 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +/****************************************** +* Begin Form configuration +******************************************/ + +$list_def_file = "list/web_subdomain.list.php"; + +/****************************************** +* End Form configuration +******************************************/ + +//* Check permissions for module +$app->auth->check_module_permissions('sites'); + +$app->uses('listform_actions'); + +// Limit the results to alias domains +$app->listform_actions->SQLExtWhere = "type = 'subdomain'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/bg_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/bg_strengthmeter.lng new file mode 100644 index 0000000..6631f3a --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/bg_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Прекалено кратка'; +$wb['password_strength_1_txt'] = 'Слаба'; +$wb['password_strength_2_txt'] = 'Задоволителна'; +$wb['password_strength_3_txt'] = 'Добра'; +$wb['password_strength_4_txt'] = 'Силна'; +$wb['password_strength_5_txt'] = 'Много силна'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/br_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/br_strengthmeter.lng new file mode 100644 index 0000000..ba99f97 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/br_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Muito Curto'; +$wb['password_strength_1_txt'] = 'Fraco'; +$wb['password_strength_2_txt'] = 'Rasoável'; +$wb['password_strength_3_txt'] = 'Bom'; +$wb['password_strength_4_txt'] = 'Forte'; +$wb['password_strength_5_txt'] = 'Muito Forte'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/de_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/de_strengthmeter.lng new file mode 100644 index 0000000..52f1018 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/de_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Zu kurz'; +$wb['password_strength_1_txt'] = 'Leicht'; +$wb['password_strength_2_txt'] = 'Mittel'; +$wb['password_strength_3_txt'] = 'Gut'; +$wb['password_strength_4_txt'] = 'Stark'; +$wb['password_strength_5_txt'] = 'Sehr stark'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/en_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/en_strengthmeter.lng new file mode 100644 index 0000000..2a6de41 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/en_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Too short'; +$wb['password_strength_1_txt'] = 'Weak'; +$wb['password_strength_2_txt'] = 'Fair'; +$wb['password_strength_3_txt'] = 'Good'; +$wb['password_strength_4_txt'] = 'Strong'; +$wb['password_strength_5_txt'] = 'Very strong'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/es_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/es_strengthmeter.lng new file mode 100644 index 0000000..f0b4b73 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/es_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Demasiado corta'; +$wb['password_strength_1_txt'] = 'Débil'; +$wb['password_strength_2_txt'] = 'Pasable'; +$wb['password_strength_3_txt'] = 'Buena'; +$wb['password_strength_4_txt'] = 'Fuerte'; +$wb['password_strength_5_txt'] = 'Muy fuerte'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/fi_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/fi_strengthmeter.lng new file mode 100644 index 0000000..9145652 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/fi_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Liian lyhyt'; +$wb['password_strength_1_txt'] = 'Heikko'; +$wb['password_strength_2_txt'] = 'Kohtuullinen'; +$wb['password_strength_3_txt'] = 'Hyvä'; +$wb['password_strength_4_txt'] = 'Vahva'; +$wb['password_strength_5_txt'] = 'Erittäin vahva'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/fr_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/fr_strengthmeter.lng new file mode 100644 index 0000000..23ac2ba --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/fr_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Trop court'; +$wb['password_strength_1_txt'] = 'Faible'; +$wb['password_strength_2_txt'] = 'Moyen'; +$wb['password_strength_3_txt'] = 'Bon'; +$wb['password_strength_4_txt'] = 'Fort'; +$wb['password_strength_5_txt'] = 'Très fort'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/hu_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/hu_strengthmeter.lng new file mode 100644 index 0000000..41f7d98 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/hu_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Túl rövid'; +$wb['password_strength_1_txt'] = 'Gyenge'; +$wb['password_strength_2_txt'] = 'Megfelel'; +$wb['password_strength_3_txt'] = 'Jó'; +$wb['password_strength_4_txt'] = 'Erős'; +$wb['password_strength_5_txt'] = 'Nagyon erős'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/it_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/it_strengthmeter.lng new file mode 100644 index 0000000..3f2b615 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/it_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Troppo corta'; +$wb['password_strength_1_txt'] = 'Debole'; +$wb['password_strength_2_txt'] = 'Fair'; +$wb['password_strength_3_txt'] = 'Buona'; +$wb['password_strength_4_txt'] = 'Forte'; +$wb['password_strength_5_txt'] = 'Molto forte'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/ja_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/ja_strengthmeter.lng new file mode 100644 index 0000000..ddf1222 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/ja_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = '短すぎます'; +$wb['password_strength_1_txt'] = '脆弱'; +$wb['password_strength_2_txt'] = '許容範囲'; +$wb['password_strength_3_txt'] = '良い'; +$wb['password_strength_4_txt'] = '強い'; +$wb['password_strength_5_txt'] = '非常に強い'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/nl_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/nl_strengthmeter.lng new file mode 100644 index 0000000..57e86ca --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/nl_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Te kort'; +$wb['password_strength_1_txt'] = 'Zwak'; +$wb['password_strength_2_txt'] = 'Redelijk'; +$wb['password_strength_3_txt'] = 'Goed'; +$wb['password_strength_4_txt'] = 'Sterk'; +$wb['password_strength_5_txt'] = 'Zeer sterk'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/pl_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/pl_strengthmeter.lng new file mode 100644 index 0000000..df85c97 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/pl_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Za krótkie'; +$wb['password_strength_1_txt'] = 'Słabe'; +$wb['password_strength_2_txt'] = 'Zadowalające'; +$wb['password_strength_3_txt'] = 'Dobre'; +$wb['password_strength_4_txt'] = 'Silne'; +$wb['password_strength_5_txt'] = 'Bardzo mocne'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/ro_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/ro_strengthmeter.lng new file mode 100644 index 0000000..27b9ab9 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/ro_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Prea scurt'; +$wb['password_strength_1_txt'] = 'Slab'; +$wb['password_strength_2_txt'] = 'Decent'; +$wb['password_strength_3_txt'] = 'BUN'; +$wb['password_strength_4_txt'] = 'Puternic'; +$wb['password_strength_5_txt'] = 'Foarte Puternic'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/ru_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/ru_strengthmeter.lng new file mode 100644 index 0000000..afe7d6e --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/ru_strengthmeter.lng @@ -0,0 +1,9 @@ +<?php +$wb['password_strength_0_txt'] = 'Никакой'; +$wb['password_strength_1_txt'] = 'Короткий'; +$wb['password_strength_2_txt'] = 'Средний'; +$wb['password_strength_3_txt'] = 'Хороший'; +$wb['password_strength_4_txt'] = 'Сильный'; +$wb['password_strength_5_txt'] = 'Очень стойкий'; +?> + diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/se_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/se_strengthmeter.lng new file mode 100644 index 0000000..2a6de41 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/se_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Too short'; +$wb['password_strength_1_txt'] = 'Weak'; +$wb['password_strength_2_txt'] = 'Fair'; +$wb['password_strength_3_txt'] = 'Good'; +$wb['password_strength_4_txt'] = 'Strong'; +$wb['password_strength_5_txt'] = 'Very strong'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/sk_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/sk_strengthmeter.lng new file mode 100644 index 0000000..5d5fb71 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/sk_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Pr�li� kr�tke'; +$wb['password_strength_1_txt'] = 'Slab�'; +$wb['password_strength_2_txt'] = 'F�r'; +$wb['password_strength_3_txt'] = 'Dobr�'; +$wb['password_strength_4_txt'] = 'Siln�'; +$wb['password_strength_5_txt'] = 'Ve?mi siln�'; +?> diff --git a/interface/ispconfig/interface/strengthmeter/lib/lang/tr_strengthmeter.lng b/interface/ispconfig/interface/strengthmeter/lib/lang/tr_strengthmeter.lng new file mode 100644 index 0000000..f9e6cb2 --- /dev/null +++ b/interface/ispconfig/interface/strengthmeter/lib/lang/tr_strengthmeter.lng @@ -0,0 +1,8 @@ +<?php +$wb['password_strength_0_txt'] = 'Çok kısa'; +$wb['password_strength_1_txt'] = 'Zayıf'; +$wb['password_strength_2_txt'] = 'Orta'; +$wb['password_strength_3_txt'] = 'İyi'; +$wb['password_strength_4_txt'] = 'Güçlü'; +$wb['password_strength_5_txt'] = 'Çok güçlü'; +?> diff --git a/interface/ispconfig/interface/temp/en.lng b/interface/ispconfig/interface/temp/en.lng new file mode 100644 index 0000000..5fdc07c --- /dev/null +++ b/interface/ispconfig/interface/temp/en.lng @@ -0,0 +1,2131 @@ +---|ISPConfig Language File|3.0.1.6|en +--|global|en|en.lng +<?php +$wb['conf_format_dateshort'] = 'Y-m-d'; +$wb['conf_format_datelong'] = 'l dS of F Y'; +$wb['conf_format_timeshort'] = 'H:i'; +$wb['conf_format_timelong'] = 'H:i:s'; +$wb['conf_format_datetime'] = 'Y-m-d H:i'; + +$wb['301'] = 'Module not permitted for the current user.'; +$wb['302'] = 'Module invalid.'; +$wb['1001'] = 'The username and password cannot be empty !'; +$wb['1002'] = 'The username and/or password are not correct !'; +$wb['1003'] = 'The username is deactivated!'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +$wb['error_no_view_permission'] = 'You dont have the permission to view this record or this record does not exist!'; +$wb['error_no_delete_permission'] = 'You dont have the permission to delete this record!'; +$wb["page_txt"] = 'Page'; +$wb["page_of_txt"] = 'of'; +$wb["page_next_txt"] = 'Next'; +$wb["page_back_txt"] = 'Back'; +$wb["delete_txt"] = 'Delete'; +$wb["filter_txt"] = 'Filter'; +$wb["add_new_record_txt"] = 'Add new record'; +$wb['btn_save_txt'] = "Save"; +$wb['btn_cancel_txt'] = "Back"; +$wb['System'] = 'System'; +$wb['Client'] = 'Client'; +$wb['Email'] = 'Email'; +$wb['Monitor'] = 'Monitor'; +$wb['Sites'] = 'Sites'; +$wb['DNS'] = 'DNS'; +$wb['Tools'] = 'Tools'; +$wb['Help'] = 'Help'; +$wb['toolsarea_head_txt'] = 'Tools'; +?> + +--|admin|en|en.lng +<?php + +$wb[1001] = "Username or password is empty."; +$wb[1002] = "Username or password is wrong."; +$wb['Firewall'] = 'Firewall'; +$wb['Groups'] = 'Groups'; +$wb['groups_description'] = 'Form to edit systemuser groups.'; +$wb['Server'] = 'Server'; +$wb['Services'] = 'Services'; +$wb['Config'] = 'Config'; +$wb['Server Config'] = 'Server Config'; +$wb['Mail'] = 'Mail'; +$wb['Getmail'] = 'Getmail'; +$wb['Web'] = 'Web'; +$wb['FastCGI'] = 'FastCGI'; +$wb['Jailkit'] = 'Jailkit'; +$wb['System'] = 'System'; +$wb['Add user'] = 'Add user'; +$wb['Edit user'] = 'Edit user'; +$wb['CP Users'] = 'CP Users'; +$wb['Add group'] = 'Add group'; +$wb['Edit group'] = 'Edit group'; +$wb['Groups'] = 'Groups'; +$wb['Edit server'] = 'Edit server'; +$wb['Edit Server IP'] = 'Server IP addresses'; +$wb['Servers'] = 'Servers'; +$wb['Sync. Now'] = 'Sync. Now'; +$wb['DB Sync.'] = 'DB Sync.'; +$wb['Languages'] = 'Languages'; +$wb['New Language'] = 'New Language'; +$wb['Export'] = 'Export'; +$wb['Import'] = 'Import'; +$wb['Language Editor'] = 'Language Editor'; +$wb['Software'] = 'Software'; +$wb['Repositories'] = 'Repositories'; +$wb['Server Services'] = 'Server Services'; + +?> +--|admin|en|en_firewall.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["tcp_port_txt"] = 'Open TCP ports'; +$wb["udp_port_txt"] = 'Open UDP ports'; +$wb["tcp_port_help_txt"] = 'Separated by comma'; +$wb["udp_port_help_txt"] = 'Separated by comma'; +$wb["active_txt"] = 'Active'; +$wb["firewall_error_unique"] = 'There is already a firewall record for this server.'; +$wb["active_txt"] = 'Active'; +$wb["tcp_ports_error_regex"] = 'Character not allowed in tcp port definition. Allowed characters are numbers, ":" and ",".'; +$wb["udp_ports_error_regex"] = 'Character not allowed in udp port definition. Allowed characters are numbers, ":" and ",".'; +?> +--|admin|en|en_firewall_list.lng +<?php +$wb["list_head_txt"] = 'Firewall'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["tcp_port_txt"] = 'Open TCP ports'; +$wb["udp_port_txt"] = 'Open UDP ports'; +$wb["add_new_record_txt"] = 'Add Firewall record'; +?> +--|admin|en|en_groups.lng +<?php +$wb["description_txt"] = 'Description'; +$wb["name_txt"] = 'Group'; +$wb["name_err"] = 'Group must be min 1, max 30 Chars.'; +?> +--|admin|en|en_groups_list.lng +<?php +$wb["list_head_txt"] = 'Systemuser groups'; +$wb["description_txt"] = 'Description'; +$wb["name_txt"] = 'Group'; +$wb["add_new_record_txt"] = 'Add new Group'; +$wb["warning_txt"] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> +--|admin|en|en_language_add.lng +<?php +$wb["list_head_txt"] = 'Add new language'; +$wb["language_select_txt"] = 'Select language basis'; +$wb["language_new_txt"] = 'New language'; +$wb["language_new_hint_txt"] = '2 characters ISO 639-1 language-code (See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)'; +$wb['btn_save_txt'] = 'Create new language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> +--|admin|en|en_language_complete.lng +<?php +$wb["list_head_txt"] = 'Merge language'; +$wb["list_desc_txt"] = 'Merge the selected language file with the english master language file. <br />This adds missing strings from the english master language files to the selected language.'; +$wb["language_select_txt"] = 'Select language'; +$wb['btn_save_txt'] = 'Merge files now'; +$wb['btn_cancel_txt'] = 'Back'; +?> +--|admin|en|en_language_edit.lng +<?php +$wb['list_head_txt'] = 'Language file editor'; +$wb['language_select_txt'] = 'Select language'; +$wb['module_txt'] = 'Module'; +$wb['lang_file_txt'] = 'Language file'; +$wb['btn_save_txt'] = 'Save'; +$wb['btn_cancel_txt'] = 'Back'; +?> + +--|admin|en|en_language_export.lng +<?php +$wb["list_head_txt"] = 'Export language files'; +$wb["language_select_txt"] = 'Select language'; +$wb['btn_save_txt'] = 'Export the selected language file set'; +$wb['btn_cancel_txt'] = 'Back'; +?> +--|admin|en|en_language_import.lng +<?php +$wb["list_head_txt"] = 'Import language file'; +$wb["language_import_txt"] = 'Select language file'; +$wb['btn_save_txt'] = 'Import the selected language file'; +$wb["language_overwrite_txt"] = 'Overwrite file, if exists.'; +$wb['btn_cancel_txt'] = 'Back'; +?> +--|admin|en|en_language_list.lng +<?php +$wb["list_head_txt"] = 'Language file editor'; +$wb["language_select_txt"] = 'Select language'; +$wb["module_txt"] = 'Module'; +$wb["lang_file_txt"] = 'Language file'; +$wb["lang_file_date_txt"] = 'Last modify'; +?> + +--|admin|en|en_remote_user.lng +<?php +$wb['username_txt'] = 'Username:'; +$wb['password_txt'] = 'Password:'; +$wb['function_txt'] = 'Functions:'; +$wb['username_error_unique'] = 'Username must be unique'; +$wb['username_error_empty'] = 'Username cannot be empty'; +$wb['password_error_empty'] = 'Password cannot be empty'; +$wb['password_strength_txt'] = 'Password Strength:'; +?> + +--|admin|en|en_remote_user_list.lng +<?php +$wb['list_head_txt'] = "Remote Users"; +$wb['list_desc_txt'] = ""; +$wb['add_new_record_txt'] = "Add new user"; +$wb['parent_remote_userid_txt'] = 'ID'; +$wb['username_txt'] = "Username"; +?> + + +--|admin|en|en_server.lng +<?php +$wb["config_txt"] = 'config'; +$wb["server_name_txt"] = 'Servername'; +$wb["mail_server_txt"] = 'Mailserver'; +$wb["web_server_txt"] = 'Webserver'; +$wb["dns_server_txt"] = 'DNS-Server'; +$wb["file_server_txt"] = 'Fileserver'; +$wb["db_server_txt"] = 'DB-Server'; +$wb["vserver_server_txt"] = 'VServer-Server'; +$wb["active_txt"] = 'Active'; +$wb["mirror_server_id_txt"] = 'Is mirror of Server'; +$wb["- None -"] = '- None -'; +?> +--|admin|en|en_server_config.lng +<?php +$wb["jailkit_chroot_home_txt"] = 'Jailkit chroot home'; +$wb["jailkit_chroot_app_sections_txt"] = 'Jailkit chroot app sections'; +$wb["jailkit_chroot_app_programs_txt"] = 'Jailkit chrooted applications'; +$wb['jailkit_chroot_cron_programs_txt'] = 'Jailkit cron chrooted applications'; +$wb["website_path_txt"] = 'Website path'; +$wb["website_symlinks_txt"] = 'Website symlinks'; +$wb["website_basedir_txt"] = 'Website basedir'; +$wb["vhost_conf_dir_txt"] = 'Vhost config dir'; +$wb["vhost_conf_enabled_dir_txt"] = 'Vhost config enabled dir'; +$wb["getmail_config_dir_txt"] = 'Getmail config dir'; +$wb["fastcgi_starter_path_txt"] = 'FastCGI starter path'; +$wb["fastcgi_starter_script_txt"] = 'FastCGI starter script'; +$wb["fastcgi_alias_txt"] = 'FastCGI Alias'; +$wb["fastcgi_phpini_path_txt"] = 'FastCGI php.ini Path'; +$wb["fastcgi_children_txt"] = 'FastCGI Children'; +$wb["fastcgi_max_requests_txt"] = 'FastCGI max. Requests'; +$wb["fastcgi_bin_txt"] = 'FastCGI Bin'; +$wb["module_txt"] = 'Module'; +$wb["maildir_path_txt"] = 'Maildir Path'; +$wb["homedir_path_txt"] = 'Homedir Path'; +$wb["mailuser_uid_txt"] = 'Mailuser UID'; +$wb["mailuser_gid_txt"] = 'Mailuser GID'; +$wb["mailuser_name_txt"] = 'Mailuser Name'; +$wb["mailuser_group_txt"] = 'Mailuser Group'; +$wb["relayhost_txt"] = 'Relayhost'; +$wb["relayhost_user_txt"] = 'Relayhost User'; +$wb["relayhost_password_txt"] = 'Relayhost Password'; +$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; +$wb["message_size_limit_txt"] = 'Message Size Limit'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["netmask_txt"] = 'Netmask'; +$wb["gateway_txt"] = 'Gateway'; +$wb["hostname_txt"] = 'Hostname'; +$wb["nameservers_txt"] = 'Nameservers'; +$wb["auto_network_configuration_txt"] = 'Network Configuration'; +$wb["ip_address_error_wrong"] = 'Invalid IP address format.'; +$wb["netmask_error_wrong"] = 'Invalid Netmask format.'; +$wb["gateway_error_wrong"] = 'Invalid Gateway format.'; +$wb["hostname_error_empty"] = 'Hostname is empty.'; +$wb["nameservers_error_empty"] = 'Nameserver is empty.'; +$wb["config_dir_txt"] = 'Config directory'; +$wb["init_script_txt"] = 'Cron init script name'; +$wb["crontab_dir_txt"] = 'Path for individual crontabs'; +$wb["wget_txt"] = 'Path to wget program'; +$wb["web_user_txt"] = 'Apache user'; +$wb["web_group_txt"] = 'Apache group'; +$wb["security_level_txt"] = 'Security level'; +$wb["loglevel_txt"] = 'Loglevel'; +$wb["apps_vhost_port_txt"] = 'Apps-vhost port'; +$wb["apps_vhost_ip_txt"] = 'Apps-vhost IP'; +$wb["apps_vhost_servername_txt"] = 'Apps-vhost Domain'; +$wb["bind_user_txt"] = 'BIND User'; +$wb["bind_group_txt"] = 'BIND Group'; +$wb["bind_zonefiles_dir_txt"] = 'BIND zonefiles directory'; +$wb["named_conf_path_txt"] = 'BIND named.conf path'; +$wb["bind_user_error_empty"] = 'BIND user is empty.'; +$wb["bind_group_error_empty"] = 'BIND group is empty.'; +$wb["bind_zonefiles_dir_error_empty"] = 'BIND zonefiles directory is empty.'; +$wb["named_conf_path_error_empty"] = 'BIND named.conf path is empty.'; +$wb["named_conf_local_path_error_empty"] = 'BIND named.conf.local path is empty.'; +?> +--|admin|en|en_server_config_list.lng +<?php +$wb["list_head_txt"] = 'Server Configuration'; +$wb["server_name_txt"] = 'Server'; +?> +--|admin|en|en_server_ip.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["virtualhost_txt"] = 'HTTP NameVirtualHost'; +$wb["ip_error_wrong"] = 'The IP address is invalid'; +$wb["ip_error_unique"] = 'The IP address must be unique'; +?> +--|admin|en|en_server_ip_list.lng +<?php +$wb["list_head_txt"] = 'IP Addresses'; +$wb["server_id_txt"] = 'Server'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["add_new_record_txt"] = 'Add new IP Address'; +?> +--|admin|en|en_server_list.lng +<?php +$wb["list_head_txt"] = 'Server'; +$wb["server_name_txt"] = 'Name'; +$wb["mail_server_txt"] = 'Mail'; +$wb["web_server_txt"] = 'Web'; +$wb["dns_server_txt"] = 'DNS'; +$wb["file_server_txt"] = 'File'; +$wb["db_server_txt"] = 'DB'; +$wb["vserver_server_txt"] = 'VServer'; +$wb["add_new_record_txt"] = 'Add new Server'; +?> +--|admin|en|en_software_package_list.lng +<?php +$wb['list_head_txt'] = 'Software packages'; +$wb['installed_txt'] = 'Status'; +$wb['package_title_txt'] = 'Package'; +$wb['package_description_txt'] = 'Description'; +$wb['action_txt'] = 'Action'; +?> + +--|admin|en|en_software_repo.lng +<?php +$wb["repo_name_txt"] = 'Repository'; +$wb["repo_url_txt"] = 'URL'; +$wb["repo_username_txt"] = 'User (optional)'; +$wb["repo_password_txt"] = 'Password (optional)'; +$wb["active_txt"] = 'Active'; +?> +--|admin|en|en_software_repo_list.lng +<?php +$wb["list_head_txt"] = 'Repository'; +$wb["active_txt"] = 'Active'; +$wb["repo_name_txt"] = 'Repository'; +$wb["repo_url_txt"] = 'URL'; +?> +--|admin|en|en_software_update_list.lng +<?php +$wb['list_head_txt'] = 'Software updates'; +$wb['server_select_txt'] = 'Select server'; +$wb['installed_txt'] = 'Action'; +$wb['update_title_txt'] = 'Update'; +$wb['version_txt'] = 'Version'; +$wb['action_txt'] = 'Action'; +?> + +--|admin|en|en_system_config.lng +<?php + +$wb['warning'] = 'Edit these values carefully! Do not remove the prefixes on a systems with more then one client.'; +$wb['dbname_prefix_txt'] = 'Database name prefix'; +$wb['dbuser_prefix_txt'] = 'Database user prefix'; +$wb['shelluser_prefix_txt'] = 'Shell user prefix'; +$wb['ftpuser_prefix_txt'] = 'FTP user prefix'; +$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.'; +$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.'; +$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.'; +$wb['shelluser_prefix_error_regex'] = 'Char not allowed in shell user prefix.'; +$wb['dblist_phpmyadmin_link_txt'] = 'Link to phpmyadmin in DB list'; +$wb['mailboxlist_webmail_link_txt'] = 'Link to webmail in Mailbox list'; +$wb['webmail_url_txt'] = 'Webmail URL'; +$wb['phpmyadmin_url_txt'] = 'PHPMyAdmin URL'; + +?> +--|admin|en|en_users.lng +<?php +$wb["username_txt"] = 'Username'; +$wb["username_err"] = 'The username is too long or contains invalid characters.'; +$wb["username_empty"] = 'The username is empty.'; +$wb["username_unique"] = 'There is already a user with this username.'; +$wb["passwort_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["modules_txt"] = 'Module'; +$wb["startmodule_txt"] = 'Startmodule'; +$wb["app_theme_txt"] = 'Design'; +$wb["typ_txt"] = 'Type'; +$wb["active_txt"] = 'Active'; +$wb["language_txt"] = 'Language'; +$wb["name_txt"] = 'Name'; +$wb["vorname_txt"] = 'Forename'; +$wb["unternehmen_txt"] = 'Company'; +$wb["strasse_txt"] = 'Street'; +$wb["ort_txt"] = 'City'; +$wb["plz_txt"] = 'ZIP'; +$wb["land_txt"] = 'Country'; +$wb["email_txt"] = 'Email'; +$wb["url_txt"] = 'Url'; +$wb["telefon_txt"] = 'Telephone'; +$wb["fax_txt"] = 'Fax'; +$wb["groups_txt"] = 'Groups'; +$wb["default_group_txt"] = 'Default Group'; +$wb["startmodule_err"] = 'Start module is not within modules.'; +?> + +--|admin|en|en_users_list.lng +<?php +$wb["list_head_txt"] = 'Users'; +$wb["username_txt"] = 'Username'; +$wb["name_txt"] = 'Name'; +$wb["vorname_txt"] = 'Forename'; +$wb["ort_txt"] = 'city'; +$wb["add_new_record_txt"] = 'Add new user'; +$wb["warning_txt"] = '<b>WARNING:</b> Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!'; +?> +--|client|en|en.lng +<?php +$wb['Client'] = 'Client'; +$wb['Address'] = 'Address'; +$wb['Limits'] = 'Limits'; +$wb['Add Client'] = 'Add Client'; +$wb['Edit Client'] = 'Edit Client'; +$wb['Clients'] = 'Clients'; +$wb['Edit Client-Templates'] = 'Edit Client-Templates'; +$wb['Add Reseller'] = 'Add Reseller'; +$wb['Edit Reseller'] = 'Edit Reseller'; +$wb['Resellers'] = 'Resellers'; +?> +--|client|en|en_client.lng +<?php +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailaliasdomain_txt"] = 'Max. number of domain aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["default_mailserver_txt"] = 'Default Mailserver'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["usertheme_txt"] = 'Theme'; +$wb["street_txt"] = 'Street'; +$wb["zip_txt"] = 'ZIP'; +$wb["city_txt"] = 'City'; +$wb["state_txt"] = 'State'; +$wb["country_txt"] = 'Country'; +$wb["telephone_txt"] = 'Telephone'; +$wb["mobile_txt"] = 'Mobile'; +$wb["fax_txt"] = 'Fax'; +$wb["email_txt"] = 'Email'; +$wb["internet_txt"] = 'Internet'; +$wb["icq_txt"] = 'ICQ'; +$wb["notes_txt"] = 'Notes'; +$wb["company_txt"] = 'Company'; +$wb["title_txt"] = 'Title'; +$wb["firstname_txt"] = 'Firstname'; +$wb["surname_txt"] = 'Surname'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["ip_address_txt"] = 'ip_address'; +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["firstname_error_empty"] = 'Firstname is empty.'; +$wb["contact_error_empty"] = 'Contact name is empty.'; +$wb["default_webserver_txt"] = 'Default Webserver'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["default_dnsserver_txt"] = 'Default DNS Server'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailaliasdomain_error_notint"] = 'The email domain alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_client_error_notint"] = 'The sub client limit must be a number.'; +$wb["default_dbserver_txt"] = 'Default Database Server'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["username_error_regex"] = 'The Username contains invalid chracaters.'; +$wb["template_master_txt"] = 'Master template'; +$wb["template_additional_txt"] = 'Addon template'; +$wb["ssh_chroot_txt"] = 'SSH-Chroot Options'; +$wb["web_php_options_txt"] = 'PHP Options'; +$wb["limit_client_error"] = 'The max. number of clients is reached.'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +?> + +--|client|en|en_clients_list.lng +<?php +$wb["list_head_txt"] = 'Clients'; +$wb["client_id_txt"] = 'ID'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["city_txt"] = 'City'; +$wb["country_txt"] = 'Country'; +$wb["add_new_record_txt"] = 'Add new client'; +?> +--|client|en|en_client_template.lng +<?php + +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailaliasdomain_txt"] = 'Max. number of domain aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailaliasdomain_error_notint"] = 'The email domain alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["error_template_name_empty"] = 'Please enter a Template name'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +?> +--|client|en|en_client_template_list.lng +<?php +$wb["list_head_txt"] = 'Client-Templates'; +$wb["template_type_txt"] = 'Type'; +$wb["template_name_txt"] = 'Template name'; +?> + +--|client|en|en_reseller.lng +<?php +$wb["limit_maildomain_txt"] = 'Max. number of email domains'; +$wb["limit_mailbox_txt"] = 'Max. number of mailboxes'; +$wb["limit_mailalias_txt"] = 'Max. number of email aliases'; +$wb["limit_mailforward_txt"] = 'Max. number of email forwarders'; +$wb["limit_mailcatchall_txt"] = 'Max. number of email catchall accounts'; +$wb["limit_mailrouting_txt"] = 'Max. number of email routes'; +$wb["limit_mailfilter_txt"] = 'Max. number of email filters'; +$wb["limit_fetchmail_txt"] = 'Max. number of fetchmail accounts'; +$wb["limit_mailquota_txt"] = 'Mailbox quota'; +$wb["limit_spamfilter_wblist_txt"] = 'Max. number of spamfilter white / blacklist filters'; +$wb["limit_spamfilter_user_txt"] = 'Max. number of spamfilter users'; +$wb["limit_spamfilter_policy_txt"] = 'Max. number of spamfilter policys'; +$wb["default_mailserver_txt"] = 'Default Mailserver'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["usertheme_txt"] = 'Theme'; +$wb["street_txt"] = 'Street'; +$wb["zip_txt"] = 'ZIP'; +$wb["city_txt"] = 'City'; +$wb["state_txt"] = 'State'; +$wb["country_txt"] = 'Country'; +$wb["telephone_txt"] = 'Telephone'; +$wb["mobile_txt"] = 'Mobile'; +$wb["fax_txt"] = 'Fax'; +$wb["email_txt"] = 'Email'; +$wb["internet_txt"] = 'Internet'; +$wb["icq_txt"] = 'ICQ'; +$wb["notes_txt"] = 'Notes'; +$wb["company_txt"] = 'Company'; +$wb["title_txt"] = 'Title'; +$wb["firstname_txt"] = 'Firstname'; +$wb["surname_txt"] = 'Surname'; +$wb["limit_domain_txt"] = 'limit_domain'; +$wb["limit_subdomain_txt"] = 'limit_subdomain'; +$wb["limit_webquota_txt"] = 'limit_webquota'; +$wb["limit_database_txt"] = 'limit_database'; +$wb["limit_cron_txt"] = 'Max. number of cron jobs'; +$wb["limit_cron_type_txt"] = 'Max. type of cron jobs (chrooted and full implies url)'; +$wb["limit_cron_frequency_txt"] = 'Min. delay between executions'; +$wb["ip_address_txt"] = 'ip_address'; +$wb["limit_client_error_notint"] = 'Client Limit is not a number.'; +$wb["firstname_error_empty"] = 'Firstname is empty.'; +$wb["contact_error_empty"] = 'Contact name is empty.'; +$wb["default_webserver_txt"] = 'Default Webserver'; +$wb["limit_web_domain_txt"] = 'Max. number of web domains'; +$wb["limit_web_aliasdomain_txt"] = 'Max. number of web aliasdomains'; +$wb["limit_web_subdomain_txt"] = 'Max. number of web subdomains'; +$wb["limit_ftp_user_txt"] = 'Max. number of FTP users'; +$wb["default_dnsserver_txt"] = 'Default DNS Server'; +$wb["limit_dns_zone_txt"] = 'Max. number of DNS zones'; +$wb["limit_dns_record_txt"] = 'Max. number DNS records'; +$wb["limit_shell_user_txt"] = 'Max. number of Shell users'; +$wb["limit_client_txt"] = 'Max. number of Clients'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["limit_maildomain_error_notint"] = 'The email domain limit must be a number.'; +$wb["limit_mailbox_error_notint"] = 'The mailbox limit must be a number.'; +$wb["limit_mailalias_error_notint"] = 'The email alias limit must be a number.'; +$wb["limit_mailforward_error_notint"] = 'The email forward limit must be a number.'; +$wb["limit_mailcatchall_error_notint"] = 'The email catchall limit must be a number.'; +$wb["limit_mailrouting_error_notint"] = 'The email routing limit must be a number.'; +$wb["limit_mailfilter_error_notint"] = 'The email filter limit must be a number.'; +$wb["limit_mailfetchmail_error_notint"] = 'The fetchmail limit must be a number.'; +$wb["limit_mailquota_error_notint"] = 'The email quota limit must be a number.'; +$wb["limit_spamfilter_wblist_error_notint"] = 'The spamfilter white / blacklist limit must be a number.'; +$wb["limit_spamfilter_user_error_notint"] = 'The spamfilter user limit must be a number.'; +$wb["limit_spamfilter_policy_error_notint"] = 'The spamfilter policy limit must be a number.'; +$wb["limit_web_domain_error_notint"] = 'The website limit must be a number.'; +$wb["limit_web_aliasdomain_error_notint"] = 'The website alias domain limit must be a number.'; +$wb["limit_web_subdomain_error_notint"] = 'The website subdomain limit must be a number.'; +$wb["limit_ftp_user_error_notint"] = 'The ftp user limit must be a number.'; +$wb["limit_shell_user_error_notint"] = 'The shell user limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns zone limit must be a number.'; +$wb["limit_dns_zone_error_notint"] = 'The dns record limit must be a number.'; +$wb["limit_client_error_notint"] = 'The sub client limit must be a number.'; +$wb["default_dbserver_txt"] = 'Default Database Server'; +$wb["limit_database_txt"] = 'Max. number of Databases'; +$wb["limit_database_error_notint"] = 'The database limit must be a number.'; +$wb["limit_cron_error_notint"] = 'The cron limit must be a number.'; +$wb["limit_cron_error_frequency"] = 'The cron frequency limit must be a number.'; +$wb["username_error_regex"] = 'The Username contains invalid chracaters.'; +$wb["template_master_txt"] = 'Master template'; +$wb["template_additional_txt"] = 'Addon template'; +$wb["ssh_chroot_txt"] = 'SSH-Chroot Options'; +$wb["web_php_options_txt"] = 'PHP Options'; +$wb["limit_client_error"] = 'The max. number of clients is reached.'; +$wb["limit_client_error_positive"] = 'The number of clients must be > 0'; +$wb["limit_web_quota_txt"] = 'Web Quota'; +?> + +--|client|en|en_resellers_list.lng +<?php +$wb["list_head_txt"] = 'Resellers'; +$wb["client_id_txt"] = 'ID'; +$wb["company_name_txt"] = 'Company name'; +$wb["contact_name_txt"] = 'Contact name'; +$wb["city_txt"] = 'City'; +$wb["country_txt"] = 'Country'; +$wb["add_new_record_txt"] = 'Add new reseller'; +?> +--|designer|en|en.lng +<?php + +?> +--|designer|en|en_form_edit.lng +<?php +$wb["name_txt"] = 'Formname'; +$wb["title_txt"] = 'Formutitle'; +$wb["template_txt"] = 'Template'; +$wb["navframe_txt"] = 'NaviFrame'; +$wb["startpage_txt"] = 'Startpage'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +$wb["header_txt"] = 'Form properties'; +$wb["description_txt"] = 'Description'; +$wb["action_txt"] = 'Action (script)'; +$wb["db_table_txt"] = 'DB Table'; +$wb["db_table_idx_txt"] = 'DB Table Index'; +$wb["db_history_txt"] = 'Undo Log'; +$wb["tab_default_txt"] = 'Default Tab'; +$wb["list_default_txt"] = 'Default Liste'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["auth_txt"] = 'Permissions'; +$wb["auth_preset_userid_txt"] = 'UserID'; +$wb["auth_preset_groupid_txt"] = 'GroupID'; +$wb["auth_preset_perm_user_txt"] = 'Perm. User'; +$wb["auth_preset_perm_group_txt"] = 'Perm. Group'; +$wb["auth_preset_perm_other_txt"] = 'Perm. Other'; + +?> +--|designer|en|en_form_list.lng +<?php +$wb["list_head_txt"] = 'Backend Form'; +$wb["form_txt"] = 'Form'; +$wb["module_txt"] = 'Module'; +$wb["title_txt"] = 'Title'; +$wb["description_txt"] = 'Description'; +?> +--|designer|en|en_form_show.lng +<?php +$wb["header_txt"] = 'Formeditor'; +$wb["title_txt"] = 'Formtitle'; +$wb["name_txt"] = 'Formname'; +$wb["delete_txt"] = 'Delete'; +$wb["properties_txt"] = 'Properties'; +$wb["new_tab_txt"] = 'Tab new'; +$wb["edit_txt"] = 'Edit'; +$wb["new_txt"] = 'Neu'; +$wb["up_txt"] = '^'; +$wb["down_txt"] = 'v'; +$wb["module_txt"] = 'Module'; +$wb["form_txt"] = 'Form'; +$wb["description_txt"] = 'Description'; +$wb["module_del_txt"] = "Delete the module and all subdirectories?"; +$wb["menu_del_txt"] = "Delete menu with all menuitems?"; +$wb["item_del_txt"] = "Delete menuitem?"; +?> +--|designer|en|en_module_edit.lng +<?php +$wb["name_txt"] = 'Modulename'; +$wb["title_txt"] = 'Moduletitle'; +$wb["template_txt"] = 'Template file'; +$wb["navframe_txt"] = 'NaviFrame'; +$wb["startpage_txt"] = 'Default page'; +$wb["tab_width_txt"] = 'Tab width'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +$wb["header_txt"] = 'Module properties'; +$wb["description_txt"] = ' +<b>Description</b> +<br><br> +<b>Modulename:</b> Name of the module directory. Only numbers, chars and underscore allowed.<br> +<b>Moduletitle:</b> Will be shown in the (upper) main navigation.<br> +<b>Template file:</b> Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.<br> +<b>NaviFrame:</b> If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.<br> +<b>Default page:</b> These page will be shown when the module is opened.<br> +<b>Tab width:</b> Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).<br> +<b>Hint:</b> All paths are relative to the directory "web". +'; + +?> +--|designer|en|en_module_list.lng +<?php +$wb["list_head_txt"] = 'Backend Module'; +$wb["module_txt"] = 'Module'; +$wb["title_txt"] = 'Title'; +?> +--|designer|en|en_module_nav_edit.lng +<?php +$wb["title_txt"] = 'Title'; +$wb["header_txt"] = 'Navi properties'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +?> +--|designer|en|en_module_nav_item_edit.lng +<?php +$wb["title_txt"] = 'Title'; +$wb["target_txt"] = 'Target'; +$wb["link_txt"] = 'Link'; +$wb["header_txt"] = 'Navi properties'; +$wb["save_txt"] = 'Save'; +$wb["cancel_txt"] = 'Cancel'; +?> +--|designer|en|en_module_show.lng +<?php +$wb["header_txt"] = 'Menu editor'; +$wb["title_txt"] = 'Title'; +$wb["name_txt"] = 'Module'; +$wb["delete_txt"] = 'Delete'; +$wb["properties_txt"] = 'Properties'; +$wb["new_menu_txt"] = 'Menu new'; +$wb["edit_txt"] = 'Edit'; +$wb["delete_txt"] = 'Delete'; +$wb["new_txt"] = 'New'; +$wb["up_txt"] = 'Up'; +$wb["down_txt"] = 'Down'; +$wb["module_txt"] = 'Module'; +$wb["module_del_txt"] = "Wollen Sie das Modul und alle im Modul angelegten Dateien und Unterverzeichnisse l�schen?"; +$wb["menu_del_txt"] = "Wollen Sie das Men� mit allen Untereintr�gen l�schen?"; +$wb["item_del_txt"] = "Wollen Sie den Men�eintrag l�schen?"; +?> +--|dns|en|en.lng +<?php + +$wb['DNS'] = 'DNS'; +$wb['Zones'] = 'Zones'; +$wb['DNS A'] = 'DNS A'; +$wb['DNS ALIAS'] = 'DNS ALIAS'; +$wb['DNS CNAME'] = 'DNS CNAME'; +$wb['DNS hinfo'] = 'DNS hinfo'; +$wb['DNS mx'] = 'DNS mx'; +$wb['DNS ns'] = 'DNS ns'; +$wb['DNS ptr'] = 'DNS ptr'; +$wb['DNS RP'] = 'DNS RP'; +$wb['DNS Zone'] = 'DNS Zone'; +$wb['Records'] = 'Records'; +$wb['DNS SRV'] = 'DNS SRV'; +$wb['DNS TXT Record'] = 'DNS TXT Record'; +$wb['DNS TXT'] = 'DNS TXT'; + +?> +--|dns|en|en_dns_a.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'IP-Address'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'IP-Address empty'; +$wb["data_error_regex"] = 'IP-Address format invalid'; +$wb["data_error_duplicate"] = 'Duplicate A-Record'; +?> +--|dns|en|en_dns_aaaa.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'IPv6-Address'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'IP-Address empty'; +$wb["data_error_regex"] = 'IP-Address format invalid'; +?> +--|dns|en|en_dns_alias.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Target Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Target hostname empty'; +$wb["data_error_regex"] = 'Target hostname format invalid'; +?> +--|dns|en|en_dns_a_list.lng +<?php +$wb["list_head_txt"] = 'A-Record'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Name'; +$wb["data_txt"] = 'Data'; +$wb["aux_txt"] = 'Priority'; +$wb["type_txt"] = 'Type'; +$wb["add_new_record_txt"] = 'Add new DNS A-Record'; +$wb["page_txt"] = 'Page'; +$wb["page_of_txt"] = 'of'; +$wb['delete_confirmation'] = 'Do you really want to delete this record?'; +?> +--|dns|en|en_dns_cname.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Target Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Target hostname empty'; +$wb["data_error_regex"] = 'Target hostname format invalid'; +?> +--|dns|en|en_dns_hinfo.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Host Information'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Host information empty'; +$wb["data_error_regex"] = 'Host Information format invalid'; +?> +--|dns|en|en_dns_mx.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Mailserver hostname'; +$wb["aux_txt"] = 'Priority'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Mailserver hostname empty'; +$wb["data_error_regex"] = 'Mailserver hostname format invalid'; +?> +--|dns|en|en_dns_ns.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Zone'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Nameserver Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The zone is empty.'; +$wb["name_error_regex"] = 'The zone has the wrong format.'; +$wb["data_error_empty"] = 'Nameserver empty'; +$wb["data_error_regex"] = 'Nameserver format invalid'; +?> +--|dns|en|en_dns_ptr.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Name'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Canonical Hostname'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The name is empty.'; +$wb["name_error_regex"] = 'The name has the wrong format.'; +$wb["data_error_empty"] = 'Canonical hostname empty'; +$wb["data_error_regex"] = 'Canonical hostname format invalid'; +?> +--|dns|en|en_dns_rp.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Responsible Person'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Responsible person field empty'; +$wb["data_error_regex"] = 'Responsible person field format invalid'; +?> +--|dns|en|en_dns_soa.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["origin_txt"] = 'Zone (SOA)'; +$wb["ns_txt"] = 'NS'; +$wb["mbox_txt"] = 'Email'; +$wb["serial_txt"] = 'Serial'; +$wb["refresh_txt"] = 'Refresh'; +$wb["retry_txt"] = 'Retry'; +$wb["expire_txt"] = 'Expire'; +$wb["minimum_txt"] = 'Minimum'; +$wb["ttl_txt"] = 'TTL'; +$wb["xfer_txt"] = 'Allow zone transfers to <br />these IPs (comma separated list)'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_zone_txt"] = 'The max. number of DNS zones for your account is reached.'; +$wb["client_txt"] = 'Client'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["server_id_error_empty"] = 'No server selected'; +$wb["origin_error_empty"] = 'Zone empty.'; +$wb["origin_error_unique"] = 'There is already a record for this zone.'; +$wb["origin_error_regex"] = 'Zone has a invalid format.'; +$wb["ns_error_regex"] = 'NS has a invalid format.'; +$wb["mbox_error_empty"] = 'Email is empty.'; +$wb["mbox_error_regex"] = 'Email format invalid.'; +$wb["also_notify_txt"] = 'Also Notify'; +$wb["update_acl_txt"] = 'Update ACL'; +?> +--|dns|en|en_dns_soa_list.lng +<?php +$wb["list_head_txt"] = 'DNS Zones'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["origin_txt"] = 'Zone'; +$wb["ns_txt"] = 'NS'; +$wb["mbox_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new DNS Zone (SOA)'; +?> +--|dns|en|en_dns_srv.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Server Record'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Server record empty'; +$wb["data_error_regex"] = 'Server record format invalid'; +$wb["srv_error_regex"] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; +?> +--|dns|en|en_dns_template.lng +<?php +$wb["name_txt"] = 'Name'; +$wb["fields_txt"] = 'Fields'; +$wb["template_txt"] = 'Template'; +$wb["visible_txt"] = 'Visible'; +?> +--|dns|en|en_dns_template_list.lng +<?php +$wb["list_head_txt"] = 'DNS Wizard Template'; +$wb["visible_txt"] = 'Visible'; +$wb["name_txt"] = 'Name'; +$wb["add_new_record_txt"] = 'Add new record'; +?> +--|dns|en|en_dns_txt.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["zone_txt"] = 'Zone'; +$wb["name_txt"] = 'Hostname'; +$wb["type_txt"] = 'type'; +$wb["data_txt"] = 'Text'; +$wb["ttl_txt"] = 'TTL'; +$wb["active_txt"] = 'Active'; +$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.'; +$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.'; +$wb["name_error_empty"] = 'The hostname is empty.'; +$wb["name_error_regex"] = 'The hostname has the wrong format.'; +$wb["data_error_empty"] = 'Text empty'; +$wb["data_error_regex"] = 'Text format invalid'; +?> +--|dns|en|en_dns_wizard.lng +<?php + +$wb['template_id_txt'] = 'Template'; +$wb['server_id_txt'] = 'Server'; +$wb['client_txt'] = 'Client'; +$wb["btn_save_txt"] = 'Create DNS Record'; +$wb["btn_cancel_txt"] = 'Cancel'; +$wb['domain_txt'] = 'Domain'; +$wb['email_txt'] = 'Email'; +$wb['ns1_txt'] = 'NS 1'; +$wb['ns2_txt'] = 'NS 2'; +$wb['ip_txt'] = 'IP Address'; +$wb['error_origin_empty'] = 'Origin empty.'; +$wb['error_ns_empty'] = 'NS empty.'; +$wb['error_mbox_empty'] = 'Mbox empty.'; +$wb['error_refresh_empty'] = 'Refresh empty.'; +$wb['error_retry_empty'] = 'Retry empty.'; +$wb['error_expire_empty'] = 'Expire empty.'; +$wb['error_minimum_empty'] = 'Minimum empty.'; +$wb['error_ttl_empty'] = 'TTL empty.'; +$wb['error_domain_empty'] = 'Domain empty'; +$wb['error_ip_empty'] = 'IP empty.'; +$wb['error_ns1_empty'] = 'NS1 empty.'; +$wb['error_ns2_empty'] = 'NS2 empty.'; +$wb['error_email_empty'] = 'EMail empty.'; + +?> +--|help|en|en.lng +<?php +$wb['Support Message'] = 'Support Message'; +$wb['Message'] = 'Message'; +$wb['Send message'] = 'Send message'; +$wb['View messages'] = 'View messages'; +$wb['Support'] = 'Support'; + +?> + +--|help|en|en_support_message.lng +<?php +$wb['recipient_id_txt'] = 'Recipient ID'; +$wb['sender_id_txt'] = 'Sender ID'; +$wb['subject_txt'] = 'Subject'; +$wb['message_txt'] = 'Message'; +$wb['tstamp_txt'] = 'Timestamp'; +?> + +--|help|en|en_support_message_list.lng +<?php +$wb['list_head_txt'] = 'Support Messages'; +$wb['sender_id_txt'] = 'Sender'; +$wb['subject_txt'] = 'Subject'; +$wb["add_new_record_txt"] = 'Create new support message'; +?> +--|login|en|en.lng +<?php + +$wb['error_user_password_empty'] = "Username or Password empty."; +$wb['error_user_password_incorrect'] = "Username or Password wrong."; +$wb['error_user_blocked'] = "User is blocked."; +$wb['error_user_too_many_logins'] = "To many wrong login's, Please retry it after 15 minutes"; +$wb['pass_reset_txt'] = 'A new password will be generated and send to your email address if the email address entered below matches the email address in your client settings.'; +$wb['pw_reset'] = 'The password has been reset and send to your email address.'; +$wb['pw_error'] = 'Username or email address does not match.'; +$wb['pw_error_noinput'] = 'Please enter email address and username.'; + +$wb['pw_reset_mail_msg'] = 'The password to your ISPConfig 3 control panel account has been reset. The new password is: '; +$wb['pw_reset_mail_title'] = 'ISPConfig 3 Control panel password has been reset.'; + +$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.'; +$wb['pw_error_length'] = 'The password length is > 64 characters.'; + +$wb['username_txt'] = "Username"; +$wb['password_txt'] = "Password"; +$wb['login_button_txt'] = "Login"; + +?> +--|mail|en|en.lng +<?php +$wb['Email Alias'] = 'Email Alias'; +$wb['Email Blacklist'] = 'Email Blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Mail Content Filter'] = 'Mail Content Filter'; +$wb['Filter'] = 'Filter'; +$wb['Mail Domain'] = 'Mail Domain'; +$wb['Domain'] = 'Domain'; +$wb['Email Catchall'] = 'Email Catchall'; +$wb['Email Forward'] = 'Email Forward'; +$wb['Get Email'] = 'Get Email'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Email Routing'] = 'Email Routing'; +$wb['Email transport'] = 'Email transport'; +$wb['Mailbox'] = 'Mailbox'; +$wb['Autoresponder'] = 'Autoresponder'; +$wb['Mail Filter'] = 'Mail Filter'; +$wb['Custom Rules'] = 'Custom Rules'; +$wb['Email filter'] = 'Email filter'; +$wb['Email Whitelist'] = 'Email Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Spamfilter blacklist'] = 'Spamfilter blacklist'; +$wb['Blacklist'] = 'Blacklist'; +$wb['Spamfilter Config'] = 'Spamfilter Config'; +$wb['Server'] = 'Server'; +$wb['Spamfilter policy'] = 'Spamfilter policy'; +$wb['Policy'] = 'Policy'; +$wb['Quarantine'] = 'Quarantine'; +$wb['Tag-Level'] = 'Tag-Level'; +$wb['Other'] = 'Other'; +$wb['Spamfilter users'] = 'Spamfilter users'; +$wb['Users'] = 'Users'; +$wb['Spamfilter Whitelist'] = 'Spamfilter Whitelist'; +$wb['Whitelist'] = 'Whitelist'; +$wb['Email'] = 'Email'; +$wb['Email Mailbox'] = 'Email Mailbox'; +$wb['Email Accounts'] = 'Email Accounts'; +$wb['User / Domain'] = 'User / Domain'; +$wb['Server Settings'] = 'Server Settings'; +$wb['Spamfilter'] = 'Spamfilter'; +$wb['Fetchmail'] = 'Fetchmail'; +$wb['Mailbox traffic'] = 'Mailbox traffic'; +$wb['Statistics'] = 'Statistics'; +$wb['Postfix Whitelist'] = 'Postfix Whitelist'; +$wb['Postfix Blacklist'] = 'Postfix Blacklist'; +$wb['Content Filter'] = 'Content Filter'; +$wb['Global Filters'] = 'Global Filters'; + +?> +--|mail|en|en_mail_alias.lng +<?php +$wb["email_txt"] = 'Email'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'Duplicate Emailaddress.'; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["destination_error_isemail"] = 'Destination Emailaddress is invalid.'; +$wb["limit_mailalias_txt"] = 'The max. number of email aliases for your account is reached.'; +$wb["duplicate_mailbox_txt"] = 'There is already a mailbox with this email address'; +?> +--|mail|en|en_mail_aliasdomain.lng +<?php +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["limit_mailaliasdomain_txt"] = 'The max. number of email alias domains for your account is reached.'; +$wb["source_destination_identical_txt"] = 'Source and target Domain are the same.'; +$wb["source_error_empty"] = 'Source Domain is empty.'; +$wb["source_error_unique"] = 'Duplicate source Domain.'; +$wb["source_error_regex"] = 'Invalid source domain name.'; +?> +--|mail|en|en_mail_aliasdomain_list.lng +<?php +$wb["list_head_txt"] = 'Domain alias'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'Source'; +$wb["destination_txt"] = 'Destination'; +$wb["source_txt"] = 'Source'; +$wb["add_new_record_txt"] = 'Add new Domain alias'; +?> +--|mail|en|en_mail_alias_list.lng +<?php +$wb["list_head_txt"] = 'Email Alias'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Email alias'; +?> +--|mail|en|en_mail_blacklist.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Blacklist Address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> +--|mail|en|en_mail_blacklist_list.lng +<?php +$wb["list_head_txt"] = 'Email Blacklist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Blacklisted address'; +$wb["type_txt"] = 'Type'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new Blacklist record'; +$wb["access_txt"] = 'access'; +?> +--|mail|en|en_mail_content_filter.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Filter'; +$wb["pattern_txt"] = 'Regexp. Pattern'; +$wb["data_txt"] = 'Data'; +$wb["action_txt"] = 'Action'; +$wb["active_txt"] = 'Active'; +$wb["pattern_error_empty"] = 'Pattern is empty.'; +?> +--|mail|en|en_mail_content_filter_list.lng +<?php +$wb["list_head_txt"] = 'Postfix Header and Body Checks'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["pattern_txt"] = 'Pattern'; +$wb["action_txt"] = 'Action'; +$wb["add_new_record_txt"] = 'Add new Content Filter'; +?> +--|mail|en|en_mail_domain.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["active_txt"] = 'Active'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'Duplicate Domain.'; +$wb["domain_error_regex"] = 'Invalid domain name.'; +$wb["client_txt"] = 'Client'; +$wb["limit_maildomain_txt"] = 'The max. number of email domains for your account is reached.'; +$wb["policy_txt"] = 'Spamfilter'; +$wb["no_policy"] = '- not enabled -'; +?> +--|mail|en|en_mail_domain_catchall.lng +<?php +$wb["domain_txt"] = 'Domain'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["domain_error_unique"] = "There is already a Catchall record for this domain."; +$wb["no_domain_perm"] = "You have no permission for this domain."; +$wb["domain_error_regex"] = 'Invalid domain name od domain contains invalid characters.'; +$wb["limit_mailcatchall_txt"] = 'The max. number of email catchall accounts for your account is reached.'; +?> +--|mail|en|en_mail_domain_catchall_list.lng +<?php +$wb["list_head_txt"] = 'Email Catchall'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination email address'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new Catchall'; +?> +--|mail|en|en_mail_domain_list.lng +<?php +$wb["list_head_txt"] = 'Email Domain'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new Domain'; +$wb["active_txt"] = 'Active'; +?> +--|mail|en|en_mail_forward.lng +<?php +$wb["email_txt"] = 'Email'; +$wb["destination_txt"] = 'Destination Email'; +$wb["active_txt"] = 'Active'; +$wb["limit_mailforward_txt"] = 'The max. number of email forwarders for your account is reached.'; +$wb["duplicate_mailbox_txt"] = 'There is already a mailbox with this email address'; +?> +--|mail|en|en_mail_forward_list.lng +<?php +$wb["list_head_txt"] = 'Mail Forward'; +$wb["active_txt"] = 'Active'; +$wb["source_txt"] = 'source'; +$wb["destination_txt"] = 'Destination'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Email forward'; +?> +--|mail|en|en_mail_get.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Type'; +$wb["source_server_txt"] = 'Pop3/Imap Server'; +$wb["source_username_txt"] = 'Username'; +$wb["source_password_txt"] = 'Password'; +$wb["source_delete_txt"] = 'Delete emails after retrieval'; +$wb["destination_txt"] = 'Destination'; +$wb["active_txt"] = 'Active'; +$wb["limit_fetchmail_txt"] = 'The max. number of Fetchmail records for your account is reached.'; +$wb["source_server_error_isempty"] = 'Server is empty.'; +$wb["source_username_error_isempty"] = 'Username is empty.'; +$wb["source_password_error_isempty"] = 'Password is empty.'; +$wb["destination_error_isemail"] = 'No destination selected.'; +?> +--|mail|en|en_mail_get_list.lng +<?php +$wb["list_head_txt"] = 'Fetch emails from external POP3 / IMAP servers'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_server_txt"] = 'External Server'; +$wb["source_username_txt"] = 'Username'; +$wb["destination_txt"] = 'Destination'; +$wb["add_new_record_txt"] = 'Add new Account'; +?> +--|mail|en|en_mail_relay_recipient.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Relay recipient'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> +--|mail|en|en_mail_relay_recipient_list.lng +<?php +$wb["list_head_txt"] = 'Relay recipients'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Recipient address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new relay recipient'; +$wb["access_txt"] = 'access'; +?> +--|mail|en|en_mail_spamfilter.lng +<?php +$wb["email_txt"] = 'Email'; +$wb["spam_rewrite_score_int_txt"] = 'Rewrite score'; +$wb["spam_redirect_score_int_txt"] = 'Redirect score'; +$wb["spam_delete_score_int_txt"] = 'Delete score'; +$wb["spam_rewrite_subject_txt"] = 'Rewrite subject'; +$wb["spam_redirect_maildir_txt"] = 'Redirect mailbox'; +$wb["active_txt"] = 'Active'; +$wb["spam_rewrite_txt"] = 'Rewrite email subject above this score.'; +$wb["spam_redirect_txt"] = 'Redirect email above this score to the selected mailbox.'; +$wb["spam_delete_txt"] = 'Delete email above this score.'; +$wb["disable_txt"] = 'Hint: To disable a filtering option, set the score to 0.00.'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'There is already an spamfilter record for this email address.'; +$wb["spam_redirect_maildir_purge_txt"] = 'Purge Maildir after'; +$wb["days_txt"] = 'Days.'; +?> +--|mail|en|en_mail_spamfilter_list.lng +<?php +$wb["list_head_txt"] = 'Spamfilter'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["server_name_txt"] = 'server_name'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add new Spamfilter record'; +?> +--|mail|en|en_mail_transport.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["destination_txt"] = 'Destination'; +$wb["type_txt"] = 'Type'; +$wb["mx_txt"] = 'No MX lookup'; +$wb["sort_order_txt"] = 'Sort by'; +$wb["active_txt"] = 'Active'; +$wb["limit_mailrouting_txt"] = 'The max. number of routes for your account is reached.'; +?> +--|mail|en|en_mail_transport_list.lng +<?php +$wb["list_head_txt"] = 'Advanced Email Routing'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["transport_txt"] = 'Transport'; +$wb["sort_order_txt"] = 'Sort by'; +$wb["add_new_record_txt"] = 'Add new transport'; +?> +--|mail|en|en_mail_user.lng +<?php +$wb["custom_mailfilter_txt"] = 'Custom mail filter recipe'; +$wb["email_txt"] = 'Email'; +$wb["cryptpwd_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["active_txt"] = 'Active'; +$wb["email_error_isemail"] = 'Email address is invalid.'; +$wb["email_error_unique"] = 'Duplicate Email address.'; +$wb["autoresponder_text_txt"] = 'Text'; +$wb["autoresponder_txt"] = 'Autoresponder'; +$wb["no_domain_perm"] = 'You have no permission for this domain.'; +$wb["error_no_pwd"] = 'Password is empty.'; +$wb["quota_error_isint"] = 'Mailbox size must be a number.'; +$wb["quota_txt"] = 'Quota'; +$wb["server_id_txt"] = 'Aerver_id'; +$wb["password_txt"] = 'Password'; +$wb["maildir_txt"] = 'Maildir'; +$wb["postfix_txt"] = 'Enable Receiving'; +$wb["access_txt"] = 'Enable Access'; +$wb["policy_txt"] = 'Spamfilter'; +$wb["no_policy"] = '- not enabled -'; +$wb["limit_mailbox_txt"] = 'The max. number of mailboxes for your account is reached.'; +$wb["limit_mailquota_txt"] = 'The max space for mailboxes is reached. The max. available space in MB is'; +$wb["welcome_mail_fromname_txt"] = 'DAMAMAX Hosting'; +$wb["welcome_mail_fromemail_txt"] = "webmaster@localhost.tld"; +$wb["welcome_mail_subject"] = 'Welcome to your new email account.'; +$wb["welcome_mail_message"] = "Welcome to your new email account. Your webmaster."; +$wb["disableimap_txt"] = 'Disable IMAP'; +$wb["disablepop3_txt"] = 'Disable POP3'; +$wb["duplicate_alias_or_forward_txt"] = 'There is already an alias or forwrd with this email address.'; +$wb["quota_error_value"] = 'Invalid quota value. Allowed values are: 0 for unlimited or numbers > 1'; +$wb["move_junk_txt"] = 'Move Spam Emails to Junk directory'; +?> + +--|mail|en|en_mail_user_filter.lng +<?php +$wb["rulename_txt"] = 'Name'; +$wb["action_txt"] = 'Action'; +$wb["target_txt"] = 'Folder'; +$wb["active_txt"] = 'Active'; +$wb["rulename_error_empty"] = 'Name is empty.'; +$wb["searchterm_is_empty"] = 'Search term is empty.'; +$wb["source_txt"] = 'Source'; +?> +--|mail|en|en_mail_user_filter_list.lng +<?php +$wb["rulename_txt"] = 'Name'; +$wb["add_new_record_txt"] = 'Add new Filter'; +$wb["page_txt"] = 'Page'; +$wb["page_of_txt"] = 'of'; +$wb["delete_confirmation"] = 'Do you really want to Delete the mailfilter?'; +?> +--|mail|en|en_mail_user_list.lng +<?php +$wb["list_head_txt"] = 'Mailbox'; +$wb["email_txt"] = 'Email'; +$wb["autoresponder_txt"] = 'Autoresponder'; +$wb["add_new_record_txt"] = 'Add new Mailbox'; +?> +--|mail|en|en_mail_user_stats_list.lng +<?php +$wb["list_head_txt"] = 'Mail traffic'; +$wb["email_txt"] = 'Email'; +$wb["this_month_txt"] = 'This month'; +$wb["last_month_txt"] = 'Last month'; +$wb["this_year_txt"] = 'This year'; +$wb["last_year_txt"] = 'Last year'; +?> +--|mail|en|en_mail_whitelist.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Witelist Address'; +$wb["recipient_txt"] = 'Recipient'; +$wb["active_txt"] = 'Active'; +$wb["source_error_notempty"] = 'Address is empty.'; +$wb["type_txt"] = 'Type'; +$wb["limit_mailfilter_txt"] = 'The max. number of email filters for your account is reached.'; +?> +--|mail|en|en_mail_whitelist_list.lng +<?php +$wb["list_head_txt"] = 'Email Whitelist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["source_txt"] = 'Whitelisted address'; +$wb["type_txt"] = 'Type'; +$wb["recipient_txt"] = 'Recipient'; +$wb["add_new_record_txt"] = 'Add new Whitelist record'; +$wb["access_txt"] = 'access'; +?> +--|mail|en|en_spamfilter_blacklist.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["wb_txt"] = 'wb'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Email'; +$wb["priority_txt"] = 'Priority'; +$wb["active_txt"] = 'Active'; +$wb["limit_spamfilter_wblist_txt"] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> +--|mail|en|en_spamfilter_blacklist_list.lng +<?php +$wb["list_head_txt"] = 'Spamfilter Blacklist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Blacklisted Email'; +$wb["add_new_record_txt"] = 'Add Blacklist record'; +?> +--|mail|en|en_spamfilter_config.lng +<?php +$wb["getmail_config_dir_txt"] = 'Getmail Config Path'; +$wb["ip_address_txt"] = 'IP Address'; +$wb["netmask_txt"] = 'Netmask'; +$wb["gateway_txt"] = 'Gateway'; +$wb["hostname_txt"] = 'Hostname'; +$wb["nameservers_txt"] = 'Nameservers'; +$wb["module_txt"] = 'Server Module'; +$wb["maildir_path_txt"] = 'Maildir Path'; +$wb["homedir_path_txt"] = 'Homedir Path'; +$wb["mailuser_uid_txt"] = 'Mailuser UID'; +$wb["mailuser_gid_txt"] = 'Mailuser GID'; +$wb["mailuser_name_txt"] = 'Mailuser Name'; +$wb["mailuser_group_txt"] = 'Mailuser Group'; +$wb["relayhost_txt"] = 'Relayhost'; +$wb["relayhost_user_txt"] = 'Relayhost User'; +$wb["relayhost_password_txt"] = 'Relayhost Password'; +$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit'; +$wb["message_size_limit_txt"] = 'Message Size Limit'; +?> +--|mail|en|en_spamfilter_config_list.lng +<?php +$wb["list_head_txt"] = 'Server Configuration'; +$wb["server_name_txt"] = 'Server'; +$wb["server_id_txt"] = 'server_id'; +?> +--|mail|en|en_spamfilter_policy.lng +<?php +$wb["policy_name_txt"] = 'Policy Name'; +$wb["virus_lover_txt"] = 'Virusl lover'; +$wb["spam_lover_txt"] = 'SPAM lover'; +$wb["banned_files_lover_txt"] = 'Banned files lover'; +$wb["bad_header_lover_txt"] = 'Bad header lover'; +$wb["bypass_virus_checks_txt"] = 'Bypass virus checks'; +$wb["bypass_banned_checks_txt"] = 'Bypass banned checks'; +$wb["bypass_header_checks_txt"] = 'Bypass header checks'; +$wb["virus_quarantine_to_txt"] = 'Forward virus to email'; +$wb["spam_quarantine_to_txt"] = 'Forward spam to email'; +$wb["banned_quarantine_to_txt"] = 'Forward banned to email'; +$wb["bad_header_quarantine_to_txt"] = 'Forward bad header to email'; +$wb["clean_quarantine_to_txt"] = 'Forward clean to email'; +$wb["other_quarantine_to_txt"] = 'Forward other to email'; +$wb["spam_tag_level_txt"] = 'SPAM tag level'; +$wb["spam_tag2_level_txt"] = 'SPAM tag2 level'; +$wb["spam_kill_level_txt"] = 'SPAM kill level'; +$wb["spam_dsn_cutoff_level_txt"] = 'SPAM dsn cutoff level'; +$wb["spam_quarantine_cutoff_level_txt"] = 'SPAM quarantine cutoff level'; +$wb["spam_modifies_subj_txt"] = 'SPAM modifies subject'; +$wb["spam_subject_tag_txt"] = 'SPAM subject tag'; +$wb["spam_subject_tag2_txt"] = 'SPAM subject tag2'; +$wb["addr_extension_virus_txt"] = 'Addr. extension virus'; +$wb["addr_extension_spam_txt"] = 'Addr. extension SPAM'; +$wb["addr_extension_banned_txt"] = 'Addr. extension banned'; +$wb["addr_extension_bad_header_txt"] = 'Addr extension bad header'; +$wb["warnvirusrecip_txt"] = 'Warn virus recip.'; +$wb["warnbannedrecip_txt"] = 'Warn banned recip.'; +$wb["warnbadhrecip_txt"] = 'Warn bad header recip.'; +$wb["newvirus_admin_txt"] = 'Newvirus admin'; +$wb["virus_admin_txt"] = 'Virus admin'; +$wb["banned_admin_txt"] = 'Banned admin'; +$wb["bad_header_admin_txt"] = 'Bad header admin'; +$wb["spam_admin_txt"] = 'SPAM admin'; +$wb["message_size_limit_txt"] = 'Message size limit'; +$wb["banned_rulenames_txt"] = 'Banned rulenames'; +?> +--|mail|en|en_spamfilter_policy_list.lng +<?php +$wb["list_head_txt"] = 'Spamfilter Policy'; +$wb["policy_name_txt"] = 'Name'; +$wb["virus_lover_txt"] = 'Virus lover'; +$wb["spam_lover_txt"] = 'Spam lover'; +$wb["banned_files_lover_txt"] = 'Banned Files lover'; +$wb["bad_header_lover_txt"] = 'Bad Header lover'; +$wb["add_new_record_txt"] = 'Add Policy record'; +?> +--|mail|en|en_spamfilter_users.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["policy_id_txt"] = 'Policy'; +$wb["email_txt"] = 'Email (Pattern)'; +$wb["fullname_txt"] = 'Name'; +$wb["local_txt"] = 'Local'; +?> +--|mail|en|en_spamfilter_users_list.lng +<?php +$wb["list_head_txt"] = 'Spamfilter Users'; +$wb["local_txt"] = 'Local'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["policy_id_txt"] = 'Policy'; +$wb["fullname_txt"] = 'Name'; +$wb["email_txt"] = 'Email'; +$wb["add_new_record_txt"] = 'Add Spamfilter User'; +?> +--|mail|en|en_spamfilter_whitelist.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["wb_txt"] = 'wb'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Email'; +$wb["priority_txt"] = 'Priority'; +$wb["active_txt"] = 'Active'; +$wb["limit_spamfilter_wblist_txt"] = 'The max. number of White- or Blacklist records for your account is reached.'; +?> +--|mail|en|en_spamfilter_whitelist_list.lng +<?php +$wb["list_head_txt"] = 'Spamfilter Whitelist'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["priority_txt"] = 'Priority'; +$wb["rid_txt"] = 'User'; +$wb["email_txt"] = 'Whitelisted Email'; +$wb["add_new_record_txt"] = 'Add Whitelist record'; +?> +--|monitor|en|en.lng +<?php +$wb["Server online since"] = "Server online since"; +$wb["Users online"] = "Users Online"; +$wb["System load 1 minute"] = "System load 1 minute"; +$wb["System load 5 minutes"] = "System load 5 minutes"; +$wb["System load 15 minutes"] = "System load 15 minutes"; +$wb['Server Load'] = 'Server Load'; +$wb['Disk usage'] = 'Disk usage'; +$wb['Memory usage'] = 'Memory usage'; +$wb['no_data_serverload_txt'] = 'No data about the server load available at the moment. Please check again later.'; +$wb['no_data_memusage_txt'] = 'No data about the memory usage available at the moment. Please check again later.'; +$wb['no_data_diskusage_txt'] = 'No data about the disk usage available at the moment. Please check again later.'; +$wb['no_data_cpuinfo_txt'] = 'No data about the CPU available at the moment. Please check again later.'; +$wb['no_data_services_txt'] = 'No data about the services available at the moment. Please check again later.'; +$wb['no_data_updates_txt'] = 'No data about updates available at the moment. Please check again later.'; +$wb['no_data_raid_txt'] = 'No data about RAID available at the moment. Please check again later.'; +$wb['no_data_rkhunter_txt'] = 'No data about RKHunter available at the moment. Please check again later.'; +$wb['no_data_mailq_txt'] = 'No data Mailqueue available at the moment. Please check again later.'; +$wb['no_logdata_txt'] = 'No log data available at the moment. Please check again later.'; +$wb['Monitoring'] = 'Monitoring'; +$wb['Server to Monitor'] = 'Server to Monitor'; +$wb['Logfiles'] = 'Logfiles'; +$wb['Status of services'] = 'Status of services'; +$wb['No Refresh'] = 'No Refresh'; +$wb["minutes"] = "minutes"; +$wb["Show Overview"] = "Show Overview"; +$wb["System State (All Servers)"] = "System State (All Servers)"; +$wb['Hardware-Information'] = 'Hardware-Information'; +$wb['Show CPU info'] = 'Show CPU info'; +$wb['Server State'] = 'Server State'; +$wb['Show Update State'] = 'Show Update State'; +$wb['Show RAID state'] = 'Show RAID state'; +$wb['Show Server load'] = 'Show Server load'; +$wb['Show Disk usage'] = 'Show Disk usage'; +$wb['Show Memory usage'] = 'Show Memory usage'; +$wb['Show Services'] = 'Show Services'; +$wb['Show Mail-Queue'] = 'Show Mail-Queue'; +$wb['Show Mail-Log'] = 'Show Mail-Log'; +$wb['Show Mail warn-Log'] = 'Show Mail warn-Log'; +$wb['Show Mail err-Log'] = 'Show Mail err-Log'; +$wb['Show System-Log'] = 'Show System-Log'; +$wb['Show ISPC Cron-Log'] = 'Show ISPC Cron-Log'; +$wb['Show Freshclam-Log'] = 'Show Freshclam-Log'; +$wb['Show Clamav-Log'] = 'Show Clamav-Log'; +$wb['Show ISPConfig-Log'] = 'Show ISPConfig-Log'; +$wb['Show RKHunter-Log'] = 'Show RKHunter-Log'; +$wb['Show Jobqueue'] = 'Show Jobqueue'; +$wb['monitor_general_serverstate_txt'] = 'Server State'; +$wb['monitor_general_systemstate_txt'] = 'System State'; +$wb['monitor_diskusage_filesystem_txt'] = 'Filesystem'; +$wb['monitor_diskusage_type_txt'] = 'Type'; +$wb['monitor_diskusage_size_txt'] = 'Size'; +$wb['monitor_diskusage_used_txt'] = 'Used'; +$wb['monitor_diskusage_available_txt'] = 'Available'; +$wb['monitor_diskusage_usage_txt'] = 'Use%'; +$wb['monitor_diskusage_mounted_txt'] = 'Mounted on'; +$wb['monitor_logs_mail_txt'] = 'Mail - Log'; +$wb['monitor_logs_mailwarn_txt'] = 'Mail-Warn - Log'; +$wb['monitor_logs_mailerr_txt'] = 'Mail-Error - Log'; +$wb['monitor_logs_messages_txt'] = 'System Messages - Log'; +$wb['monitor_logs_ispccron_txt'] = 'ISPConfig Cron - Log'; +$wb['monitor_logs_freshclam_txt'] = 'Freshclam - Log'; +$wb['monitor_logs_clamav_txt'] = 'Clamav - Log'; +$wb['monitor_logs_ispc_txt'] = 'ISPConfig - Log'; +$wb['monitor_nomdadm_txt'] = 'mdadm is not installed or your Server has no supported RAID'; +$wb['monitor_norkhunter_txt'] = 'RKHunter is not installed, so there is no log data'; +$wb['monitor_serverstate_server_txt'] = 'Server'; +$wb['monitor_serverstate_state_txt'] = 'State'; +$wb['monitor_serverstate_unknown_txt'] = 'unknown'; +$wb['monitor_serverstate_info_txt'] = 'info'; +$wb['monitor_serverstate_warning_txt'] = 'warning'; +$wb['monitor_serverstate_critical_txt'] = 'critical'; +$wb['monitor_serverstate_error_txt'] = 'error'; +$wb['monitor_serverstate_moreinfo_txt'] = 'More information...'; +$wb['monitor_serverstate_more_txt'] = 'More...'; +$wb['monitor_serverstate_fclamok_txt'] = 'Your Virus-protection is ok'; +$wb['monitor_serverstate_fclamoutdated_txt'] = 'Your Virus-protection is OUTDATED!'; +$wb['monitor_serverstate_fclamunknown_txt'] = 'Freshclam: ???!'; +$wb['monitor_serverstate_hdok_txt'] = 'The state of your Hard-Disk space is ok'; +$wb['monitor_serverstate_hdgoingfull_txt'] = 'Your Hard-Disk space is going full'; +$wb['monitor_serverstate_hdnearlyfull_txt'] = 'Your Hard-Disk is nearly full'; +$wb['monitor_serverstate_hdveryfull_txt'] = 'Your Hard-Disk is very full'; +$wb['monitor_serverstate_hdfull_txt'] = 'Your Hard-Disk has no more space left'; +$wb['monitor_serverstate_hdunknown_txt'] = 'Hard-Disk: ???'; +$wb['monitor_serverstate_listok_txt'] = 'ok'; +$wb['monitor_serverstate_listinfo_txt'] = 'info'; +$wb['monitor_serverstate_listwarning_txt'] = 'warning'; +$wb['monitor_serverstate_listcritical_txt'] = 'critical'; +$wb['monitor_serverstate_listerror_txt'] = 'error'; +$wb['monitor_serverstate_listunknown_txt'] = 'unknown'; +$wb['monitor_serverstate_loadok_txt'] = 'Your Server load is ok'; +$wb['monitor_serverstate_loadheavy_txt'] = 'Your Server in under heavy load'; +$wb['monitor_serverstate_loadhigh_txt'] = 'Your Server in under high load'; +$wb['monitor_serverstate_loaghigher_txt'] = 'Your Server in under higher load'; +$wb['monitor_serverstate_loadhighest_txt'] = 'Your Server in under highest load'; +$wb['monitor_serverstate_loadunknown_txt'] = 'Server Load: ???'; +$wb['monitor_serverstate_mailqok_txt'] = 'Your Mailq load is ok'; +$wb['monitor_serverstate_mailqheavy_txt'] = 'Your Mailq in under heavy load'; +$wb['monitor_serverstate_mailqhigh_txt'] = 'Your Mailq in under high load'; +$wb['monitor_serverstate_mailqhigher_txt'] = 'Your Mailq in under higher load'; +$wb['monitor_serverstate_mailqhighest_txt'] = 'Your Mailq in under highest load'; +$wb['monitor_serverstate_mailqunknown_txt'] = 'Mailq: ???'; +$wb['monitor_serverstate_raidok_txt'] = 'Your RAID is ok'; +$wb['monitor_serverstate_raidresync_txt'] = 'Your RAID is in RESYNC mode'; +$wb['monitor_serverstate_raidfault_txt'] = 'Your RAID has one FAULT disk. Replace as soon as possible!'; +$wb['monitor_serverstate_raiderror_txt'] = 'Your RAID is not working anymore'; +$wb['monitor_serverstate_raidunknown_txt'] = 'RAID state: ???'; +$wb['monitor_serverstate_servicesonline_txt'] = 'All needed Services are online'; +$wb['monitor_serverstate_servicesoffline_txt'] = 'One or more needed Services are offline'; +$wb['monitor_serverstate_servicesunknown_txt'] = 'Services:???'; +$wb['monitor_serverstate_syslogok_txt'] = 'The System-Log is O.K.'; +$wb['monitor_serverstate_syslogwarning_txt'] = 'There are some warnings in your System-Log'; +$wb['monitor_serverstate_syslogerror_txt'] = 'There are errors in your System-Log'; +$wb['monitor_serverstate_syslogunknown_txt'] = 'sys-log:???'; +$wb['monitor_serverstate_updatesok_txt'] = 'Your System is up to date.'; +$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more Components needs a update'; +$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update:???'; +$wb['monitor_services_online_txt'] = 'Online'; +$wb['monitor_services_offline_txt'] = 'Offline'; +$wb['monitor_services_web_txt'] = 'Web-Server:'; +$wb['monitor_services_ftp_txt'] = 'FTP-Server:'; +$wb['monitor_services_smtp_txt'] = 'SMTP-Server:'; +$wb['monitor_services_pop_txt'] = 'POP3-Server:'; +$wb['monitor_services_imap_txt'] = 'IMAP-Server:'; +$wb['monitor_services_mydns_txt'] = 'myDNS-Server:'; +$wb['monitor_services_mysql_txt'] = 'mySQL-Server:'; +$wb['monitor_settings_datafromdate_txt'] = 'Data from: '; +$wb['monitor_settings_datetimeformat_txt'] = 'Y-m-d H:i'; +$wb['monitor_settings_refreshsq_txt'] = 'Refresh sequence:'; +$wb['monitor_settings_server_txt'] = 'Server'; +$wb['monitor_title_cpuinfo_txt'] = 'CPU Info'; +$wb['monitor_title_updatestate_txt'] = 'Update State'; +$wb['monitor_title_mailq_txt'] = 'Mailqueue'; +$wb['monitor_title_raidstate_txt'] = 'RAID-State'; +$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Log'; +$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring'; +?> + +--|monitor|en|en_datalog_list.lng +<?php +$wb["list_head_txt"] = 'Jobqueue'; +$wb["tstamp_txt"] = 'Date'; +$wb["server_id_txt"] = 'Server'; +$wb["dbtable_txt"] = 'DB Table'; +$wb["action_txt"] = 'Action'; +$wb["status_txt"] = 'Status'; +?> +--|monitor|en|en_syslog_list.lng +<?php +$wb["list_head_txt"] = 'ISPConfig Log'; +$wb["tstamp_txt"] = 'Date'; +$wb["server_id_txt"] = 'Server'; +$wb["loglevel_txt"] = 'Loglevel'; +$wb["message_txt"] = 'Message'; +?> +--|sites|en|en.lng +<?php +$wb['Database'] = 'Database'; +$wb['Options'] = 'Options'; +$wb['Shell User'] = 'Shell User'; +$wb['Domain'] = 'Website'; +$wb['Redirect'] = 'Redirect'; +$wb['SSL'] = 'SSL'; +$wb['Subdomain'] = 'Subdomain'; +$wb['Sites'] = 'Sites'; +$wb['Aliasdomain'] = 'Aliasdomain'; +$wb['FTP-User'] = 'FTP-User'; +$wb['FTP'] = 'FTP'; +$wb['Shell-User'] = 'Shell-User'; +$wb['Shell'] = 'Shell'; +$wb['Websites'] = 'Websites'; +$wb["Stats"] = 'Statistics'; +?> +--|sites|en|en_cron.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb['parent_domain_id_txt'] = 'Parent website'; +$wb['active_txt'] = 'Active'; +$wb['client_txt'] = 'Client'; +$wb['run_min_txt'] = 'Minutes'; +$wb['run_hour_txt'] = 'Hours'; +$wb['run_mday_txt'] = 'Days of month'; +$wb['run_month_txt'] = 'Months'; +$wb['run_wday_txt'] = 'Days of week'; +$wb['command_txt'] = 'Command to run (commands are executed via sh, urls via wget)'; +$wb['limit_cron_txt'] = 'The maximum number of allowed cron jobs was reached.'; +$wb['limit_cron_frequency_txt'] = 'The cron job frequency exceeds the allowed limit.'; +$wb['run_min_error_format'] = 'Invalid format for minutes.'; +$wb['run_hour_error_format'] = 'Invalid format for hours.'; +$wb['run_mday_error_format'] = 'Invalid format for days of month.'; +$wb['run_month_error_format'] = 'Invalid format for months.'; +$wb['run_wday_error_format'] = 'Invalid format for days of the week.'; +$wb['command_error_format'] = 'Invalid command format. Please note that in case of an url call only http/https is allowed.'; +$wb['unknown_fieldtype_error'] = 'An unknown field type has been used.'; +?> +--|sites|en|en_cron_list.lng +<?php +$wb["list_head_txt"] = 'Cron Jobs'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["run_min_txt"] = 'Minute'; +$wb["run_hour_txt"] = 'Hour'; +$wb["run_mday_txt"] = 'Day of month'; +$wb["run_month_txt"] = 'Month'; +$wb["run_wday_txt"] = 'Day of week'; +$wb["command_txt"] = 'Command'; +$wb["add_new_cron_txt"] = 'Add new Cron job'; +?> +--|sites|en|en_database.lng +<?php +$wb["server_id_txt"] = 'Server'; +$wb["type_txt"] = 'Type'; +$wb["database_name_txt"] = 'Database name'; +$wb["database_user_txt"] = 'Database user'; +$wb["database_password_txt"] = 'Database password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["database_charset_txt"] = 'Database charset'; +$wb["remote_access_txt"] = 'Remote Access'; +$wb["remote_ips_txt"] = 'Remote Access IPs (separate by , and leave blank for <i>any</i>)'; +$wb["database_remote_error_ips"] = 'At least one of the entered ip addresses is invalid.'; +$wb["client_txt"] = 'Client'; +$wb["active_txt"] = 'Active'; +$wb["database_name_error_empty"] = 'Database name is empty.'; +$wb["database_name_error_unique"] = 'There is already a database with this name on the server. To get a unique name, e.g. prepend your domain name to the database name.'; +$wb["database_name_error_regex"] = 'Invalid database name. The database name may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["database_user_error_empty"] = 'Database user is empty.'; +$wb["database_user_error_unique"] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; +$wb["database_user_error_regex"] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; +$wb["limit_database_txt"] = 'The max. number of databases is reached.'; +$wb["database_name_change_txt"] = 'The database name can not be changed'; +$wb["database_charset_change_txt"] = 'The database charset can not be changed'; +$wb["database_name_error_len"] = 'Database name - {db} - too long. The max. database name length incl. prefix is 64 chars.'; +$wb["database_user_error_len"] = 'Database username - {user}- too long. The max. database username length incl. prefix is 16 chars.'; +?> + +--|sites|en|en_database_list.lng +<?php +$wb["list_head_txt"] = 'Database'; +$wb["active_txt"] = 'Active'; +$wb["remote_access_txt"] = 'Remote Access'; +$wb["server_id_txt"] = 'Server'; +$wb["database_name_txt"] = 'Database name'; +$wb["add_new_record_txt"] = 'Add new Database'; +?> +--|sites|en|en_ftp_user.lng +<?php +$wb["uid_txt"] = 'UID'; +$wb["gid_txt"] = 'GID'; +$wb["dir_txt"] = 'Directory'; +$wb["quota_files_txt"] = 'Filequota'; +$wb["quota_files_unity_txt"] = 'Files'; +$wb["ul_ratio_txt"] = 'Uploadratio'; +$wb["dl_ratio_txt"] = 'Downloadratio'; +$wb["ul_bandwidth_txt"] = 'Uploadbandwidth'; +$wb["dl_bandwidth_txt"] = 'Downloadbandwidth'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["quota_size_txt"] = 'Harddisk-Quota'; +$wb["active_txt"] = 'Active'; +$wb["limit_ftp_user_txt"] = 'The max. number of FTP users for your account is reached.'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["username_error_regex"] = 'The username contains charachters that are not allowed.'; +$wb["quota_size_error_empty"] = 'Quota is empty.'; +$wb["uid_error_empty"] = 'UID empty.'; +$wb["uid_error_empty"] = 'GID empty.'; +$wb["directory_error_empty"] = 'Directory empty.'; +$wb['directory_error_notinweb'] = 'Directory not inside of web root directory.'; +$wb["parent_domain_id_error_empty"] = 'No website selected.'; +?> + +--|sites|en|en_ftp_user_list.lng +<?php +$wb["list_head_txt"] = 'FTP-User'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["username_txt"] = 'Username'; +$wb["add_new_record_txt"] = 'Add new FTP-User'; +?> +--|sites|en|en_shell_user.lng +<?php +$wb["uid_txt"] = 'Web Username'; +$wb["gid_txt"] = 'Group'; +$wb["shell_txt"] = 'Shell'; +$wb["dir_txt"] = 'Dir'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Site'; +$wb["username_txt"] = 'Username'; +$wb["password_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["chroot_txt"] = 'Chroot Shell'; +$wb["quota_size_txt"] = 'Quota'; +$wb["active_txt"] = 'Active'; +$wb["username_error_empty"] = 'Username is empty.'; +$wb["username_error_unique"] = 'The username must be unique.'; +$wb["username_error_regex"] = 'The username contains charachters that are not allowed.'; +$wb["quota_size_error_empty"] = 'Quota is empty.'; +$wb["uid_error_empty"] = 'UID empty.'; +$wb["uid_error_empty"] = 'GID empty.'; +$wb["directory_error_empty"] = 'Directory empty.'; +$wb["limit_shell_user_txt"] = 'The max number of shell users is reached.'; +$wb["parent_domain_id_error_empty"] = 'No website selected.'; +?> + +--|sites|en|en_shell_user_list.lng +<?php +$wb["list_head_txt"] = 'Shell User'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Site'; +$wb["username_txt"] = 'Username'; +$wb["add_new_record_txt"] = 'Add new Shell-User'; +?> +--|sites|en|en_web_aliasdomain_list.lng +<?php +$wb["list_head_txt"] = 'Aliasdomain'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["domain_txt"] = 'Aliasdomain'; +$wb["add_new_record_txt"] = 'Add new aliasdomain'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'Domain must be unique.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +?> +--|sites|en|en_web_domain.lng +<?php +$wb["ssl_state_txt"] = 'State'; +$wb["ssl_locality_txt"] = 'Locality'; +$wb["ssl_organisation_txt"] = 'Organisation'; +$wb["ssl_organisation_unit_txt"] = 'Organisation Unit'; +$wb["ssl_country_txt"] = 'Country'; +$wb["ssl_request_txt"] = 'SSL Request'; +$wb["ssl_cert_txt"] = 'SSL Certificate'; +$wb["ssl_bundle_txt"] = 'SSL Bundle'; +$wb["ssl_action_txt"] = 'SSL Action'; +$wb["ssl_domain_txt"] = 'SSL Domain'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["parent_domain_id_txt"] = 'Parent Website'; +$wb["redirect_type_txt"] = 'Redirect Type'; +$wb["redirect_path_txt"] = 'Redirect Path'; +$wb["active_txt"] = 'Active'; +$wb["document_root_txt"] = 'Documentroot'; +$wb["system_user_txt"] = 'Linux User'; +$wb["system_group_txt"] = 'Linux Group'; +$wb["ip_address_txt"] = 'IP-Address'; +$wb["vhost_type_txt"] = 'VHost Type'; +$wb["hd_quota_txt"] = 'Harddisk Quota'; +$wb["traffic_quota_txt"] = 'Traffic Quota'; +$wb["cgi_txt"] = 'CGI'; +$wb["ssi_txt"] = 'SSI'; +$wb["errordocs_txt"] = 'Own Error-Documents'; +$wb["subdomain_txt"] = 'Auto-Subdomain'; +$wb["ssl_txt"] = 'SSL'; +$wb["suexec_txt"] = 'SuEXEC'; +$wb["php_txt"] = 'PHP'; +$wb["client_txt"] = 'Client'; +$wb["limit_web_domain_txt"] = 'The max. number of web domains for your account is reached.'; +$wb["limit_web_aliasdomain_txt"] = 'The max. number of aliasdomains for your account is reached.'; +$wb["limit_web_subdomain_txt"] = 'The max. number of web subdomains for your account is reached.'; +$wb["apache_directives_txt"] = 'Apache directives'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'There is already a website or sub / aliasdomain with this domain name.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +$wb["hd_quota_error_empty"] = 'Harddisk quota is empty.'; +$wb["traffic_quota_error_empty"] = 'Traffic quota is empty.'; +$wb['error_ssl_state_empty'] = 'SSL State is empty.'; +$wb['error_ssl_locality_empty'] = 'SSL Locality is empty.'; +$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.'; +$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.'; +$wb['error_ssl_country_empty'] = 'SSL Country is empty.'; +$wb["client_group_id_txt"] = 'Client'; +$wb["stats_password_txt"] = 'Webstatistics password'; +$wb["allow_override_txt"] = 'Allow Override'; +$wb["limit_web_quota_free_txt"] = 'Max. available Harddisk Quota'; +?> + +--|sites|en|en_web_domain_list.lng +<?php +$wb["list_head_txt"] = 'Websites'; +$wb["domain_id_txt"] = 'ID'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["add_new_record_txt"] = 'Add new website'; +?> +--|sites|en|en_web_sites_stats_list.lng +<?php +$wb["list_head_txt"] = 'Web traffic'; +$wb["domain_txt"] = 'Domain'; +$wb["this_month_txt"] = 'This month'; +$wb["last_month_txt"] = 'Last month'; +$wb["this_year_txt"] = 'This year'; +$wb["last_year_txt"] = 'Last year'; +?> +--|sites|en|en_web_subdomain.lng +<?php +$wb["ssl_state_txt"] = 'State'; +$wb["ssl_locality_txt"] = 'Locality'; +$wb["ssl_organisation_txt"] = 'Organisation'; +$wb["ssl_organisation_unit_txt"] = 'Organisation Unit'; +$wb["ssl_country_txt"] = 'Country'; +$wb["ssl_request_txt"] = 'SSL Request'; +$wb["ssl_cert_txt"] = 'SSL Certificate'; +$wb["ssl_bundle_txt"] = 'SSL Bundle'; +$wb["ssl_action_txt"] = 'SSL Action'; +$wb["server_id_txt"] = 'Server'; +$wb["domain_txt"] = 'Domain'; +$wb["type_txt"] = 'Type'; +$wb["parent_domain_id_txt"] = 'Parent Website'; +$wb["redirect_type_txt"] = 'Redirect Type'; +$wb["redirect_path_txt"] = 'Redirect Path'; +$wb["active_txt"] = 'Active'; +$wb["document_root_txt"] = 'Documentroot'; +$wb["system_user_txt"] = 'Linux User'; +$wb["system_group_txt"] = 'Linux Group'; +$wb["ip_address_txt"] = 'IP-Address'; +$wb["vhost_type_txt"] = 'VHost Type'; +$wb["hd_quota_txt"] = 'Harddisk Quota'; +$wb["traffic_quota_txt"] = 'Traffic Quaota'; +$wb["cgi_txt"] = 'CGI'; +$wb["ssi_txt"] = 'SSI'; +$wb["ssl_txt"] = 'SSL'; +$wb["suexec_txt"] = 'SuEXEC'; +$wb["php_txt"] = 'PHP'; +$wb["client_txt"] = 'Client'; +$wb["limit_web_domain_txt"] = 'The max. number of web domains for your account is reached.'; +$wb["limit_web_aliasdomain_txt"] = 'The max. number of aliasdomains for your account is reached.'; +$wb["limit_web_subdomain_txt"] = 'The max. number of web subdomains for your account is reached.'; +$wb["apache_directives_txt"] = 'Apache directives'; +$wb["domain_error_empty"] = 'Domain is empty.'; +$wb["domain_error_unique"] = 'There is already a website or sub / aliasdomain with this domain name.'; +$wb["domain_error_regex"] = 'Domain name invalid.'; +$wb["host_txt"] = 'Host'; +?> +--|sites|en|en_web_subdomain_list.lng +<?php +$wb["list_head_txt"] = 'Subdomains'; +$wb["active_txt"] = 'Active'; +$wb["server_id_txt"] = 'Server'; +$wb["parent_domain_id_txt"] = 'Website'; +$wb["domain_txt"] = 'Subdomain'; +$wb["add_new_record_txt"] = 'Add new subdomain'; +?> +--|strengthmeter|en|en_strengthmeter.lng +<?php +$wb['password_strength_0_txt'] = 'Too short'; +$wb['password_strength_1_txt'] = 'Weak'; +$wb['password_strength_2_txt'] = 'Fair'; +$wb['password_strength_3_txt'] = 'Good'; +$wb['password_strength_4_txt'] = 'Strong'; +$wb['password_strength_5_txt'] = 'Very strong'; +?> + +--|tools|en|en.lng +<?php +$wb['User Settings'] = 'User Settings'; +$wb['Settings'] = 'Settings'; +$wb['ISPConfig Tools'] = 'ISPConfig Tools'; +$wb['Password and Language'] = 'Password and Language'; +?> +--|tools|en|en_usersettings.lng +<?php +$wb["passwort_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["password_mismatch"] = 'The password in the second password field does not match the first password.'; +$wb["Form to edit the user password and language."] = 'Form to edit the user password and language.'; +$wb["Settings"] = 'Settings'; +?> + +---|EOF diff --git a/interface/ispconfig/interface/themes/default/css/central.css b/interface/ispconfig/interface/themes/default/css/central.css new file mode 100644 index 0000000..e9268d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/central.css @@ -0,0 +1,32 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) central stylesheet - ISPConfig 3: default theme + * (de) Zentrales Stylesheet - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import core styles | Basis-Stylesheets einbinden */ +@import url(../yaml/core/base.css); + +/* import screen layout | Screen-Layout einbinden */ +@import url(navigation/nav_top.css); +@import url(navigation/nav_side.css); +@import url(screen/basemod.css); +@import url(screen/basemod_2col_left_seo.css); +@import url(screen/content.css); +@import url(screen/uni-form-generic.css); +@import url(screen/uni-form.css); +@import url(screen/content_ispc.css); + +/* import print layout | Druck-Layout einbinden */ +@import url(print/print_100.css); diff --git a/interface/ispconfig/interface/themes/default/css/navigation/nav_side.css b/interface/ispconfig/interface/themes/default/css/navigation/nav_side.css new file mode 100644 index 0000000..f652917 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/navigation/nav_side.css @@ -0,0 +1,125 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Vertical list navigation "vlist" - ISPConfig 3: default theme + * (de) Vertikale Navigationsliste "vlist" - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media all +{ + #submenu { + width: 100%; + overflow: hidden; + margin: 0px; + list-style-type: none; + border-bottom: 2px #ddd solid; + } + + #submenu ul { list-style-type: none; margin:0; padding: 0; } + #submenu li { float:left; width: 100%; margin:0; padding: 0; font-size:0.9em; } + + #submenu a, + #submenu strong { + display:block; + width: 90%; + padding: 2px 0px 2px 10%; + text-decoration: none; + background-color:#fff; + color: #444; + border-bottom: 1px #eee solid; + } + + /* Menu Title */ + #submenu li#title { + width: 100%; + padding: 0px; + font-weight: bold; + color: #444; + background-color: #fff; + border-top: 2px #888 solid; + font-size: 1.1em; + } + + #submenu li#title a { + background-color: #f0f8ff; + color: #444; + } + #submenu li#title a:hover { + color: #f63; + } + + #submenu li span { + display:block; + width: 90%; + padding: 3px 0px 3px 10%; + font-weight: bold; + border-bottom: 1px #ddd solid; + } + + /* Level 1 */ + #submenu li#active, + #submenu li strong { + width: 90%; + padding: 3px 0px 3px 10%; + font-weight: bold; + color: #fff; + background-color:#aab; + border-bottom: 1px #eee solid; + } + + #submenu li a { width: 90%; padding-left: 10%; background-color:#fff; color: #444; } + #submenu li a:focus, + #submenu li a:hover, + #submenu li a:active { background-color:#f63; color: #fff; } + + /* Level 2 */ + #submenu li ul li a, + #submenu li ul li#active, + #submenu li ul li strong, + #submenu li ul li span { width: 80%; padding-left: 20%; } + + #submenu li ul li a { background-color:#f8f8f8; color: #666; } + #submenu li ul li a:focus, + #submenu li ul li a:hover, + #submenu li ul li a:active { background-color:#f63; color: #fff; } + + /* Level 3 */ + #submenu li ul li ul li a, + #submenu li ul li ul li#active, + #submenu li ul li ul li strong, + #submenu li ul li ul li span { width: 70%; padding-left: 30%; } + + #submenu li ul li ul li a { background-color:#fcfcfc; color: #888; } + #submenu li ul li ul li a:focus, + #submenu li ul li ul li a:hover, + #submenu li ul li ul li a:active { background-color:#f63; color: #fff; } + + /* Level 4 */ + #submenu li ul li ul li ul li a, + #submenu li ul li ul li ul li#active, + #submenu li ul li ul li ul li strong, + #submenu li ul li ul li ul li span { width: 60%; padding-left: 40%; } + + #submenu li ul li ul li ul li a { background-color:#ffffff; color: #aaa; } + #submenu li ul li ul li ul li a:focus, + #submenu li ul li ul li ul li a:hover, + #submenu li ul li ul li ul li a:active { background-color:#f63; color: #fff; } + + /* Form-Elements in the Menu*/ + #submenu * select#server_id { + margin: 3px 10%; + padding: 1px; + width: 80%; + } + +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/css/navigation/nav_top.css b/interface/ispconfig/interface/themes/default/css/navigation/nav_top.css new file mode 100644 index 0000000..8d2f2c6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/navigation/nav_top.css @@ -0,0 +1,52 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Horizontal list navigation - ISPConfig 3: default theme + * (de) Horizontale Navigationsliste - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media all +{ + #topNav ul { + list-style: none; + padding: 0; + margin: 0; + } + + #topNav li { + display: inline; + margin: 0 2px 0 0; + } + + #topNav a { + padding: 0 1.5em; + text-decoration: none; + color: black; + background: #d3d3d3; + } + + #topNav a:hover { + background: #fc0; + color: #540; + } + + #topNav #topNav_current { + } + + #topNav #topNav_current a { + padding-bottom: 2px; + font-weight: bold; + color: #ff6600; + background: #ffffff; + } +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/css/patches/central.css b/interface/ispconfig/interface/themes/default/css/patches/central.css new file mode 100644 index 0000000..3ed0040 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/patches/central.css @@ -0,0 +1,37 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) IE-Patch stylesheet - ISPConfig 3: default theme + * (de) IE-Korrektur-Stylesheet - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* Layout-independent adjustments | Layout-unabhängige Anpassungen ----------------------------------- */ +@import url(../yaml/core/iehacks.css); + +/* Layout-dependent adjustments | Layout-abhängige Anpassungen --------------------------------------- */ +@media screen, projection +{ + /** + * min-width/max-width workaround for IE5.x & IE6 + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid no + */ + + * html #page_margins { + /* Fallback if JavaScript is disabled */ + width: 80%; + } +} diff --git a/interface/ispconfig/interface/themes/default/css/print/print_100.css b/interface/ispconfig/interface/themes/default/css/print/print_100.css new file mode 100644 index 0000000..94315a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/print/print_100.css @@ -0,0 +1,31 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet - ISPConfig 3: default theme + * (de) Druck-Stylesheet - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../../yaml/core/print_base.css); + +/* #col1 - x +** #col2 - 0 +** #col3 - 0 +*/ +@media print +{ + #col1, #col1_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + + #col2 { display:none; } + #col3 { display:none; } +} diff --git a/interface/ispconfig/interface/themes/default/css/screen/basemod.css b/interface/ispconfig/interface/themes/default/css/screen/basemod.css new file mode 100644 index 0000000..60f8371 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/basemod.css @@ -0,0 +1,118 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Screen layout for YAML - ISPConfig 3: default theme + * (de) Bildschirmlayout fr YAML - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media screen, projection +{ + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Formatting YAML's basic layout elements + * (de) Gestaltung des YAML Basis-Layouts + */ + + /* (en) Marginal areas & page background */ + /* (de) Randbereiche & Seitenhintergrund */ + body { background: #EEEEEE url("../../images/screen_bg.png") repeat-x top left fixed; padding: 10px 0; } + + /* (en) Centering layout in old IE-versions */ + /* (de) Zentrierung des Layouts in alten IE-versionen */ + body { text-align: center; } + #page_margins { text-align:left; margin: 0 auto; } + + /* (en) Layout: width, background, borders */ + /* (de) Layout: Breite, Hintergrund, Rahmen */ + /*#page_margins { min-width: 980px; max-width: 80%; background: #fff;}*/ + /* #page_margins { min-width: 980px; max-width: 80%; background: #fff; display: inline-block;}*/ + #page_margins { min-width: 980px; max-width: 80%; background: #fff; display: table;} + #page{ padding: 10px; } + + /* (en) Designing main layout elements */ + /* (de) Gestaltung der Hauptelemente des Layouts */ + #header { + color: #faf0e6; + padding: 15px 2em 1em 20px; + background: #9a9a9a url(../../images/header_bg.png) repeat-x top left; + } + + /* (en) Text Alignment for #topnav content */ + /* (de) Textausrichtung für #topnav Inhalte */ + #topnav { text-align: left; } + + /* (en) Absolute positioning only within #header */ + /* (de) Absolute Positionierung erfolgt nur innerhalb von #header */ + #header #topnav { + position: absolute; + top: 0px; + left: 0px; + } + + /* (en) Text Alignment for #topnav content */ + /* (de) Textausrichtung für #topnav Inhalte */ + #topsubnav { text-align: right; } + + /* (en) Absolute positioning only within #header */ + /* (de) Absolute Positionierung erfolgt nur innerhalb von #header */ + #header #topsubnav { + position:absolute; + top: 10px; + right: 10px; + } + + /* (en) adjustment of main navigation */ + /* (de) Anpassung der Hauptnavigation */ + #nav ul { margin-left: 200px; } + #nav_main { background: #9a9a9a repeat-x top left; } + + #main { background: #fff;padding:10px 0; } + + #footer { + color:#666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Formatting content container + * (de) Formatierung der Inhalts-Container + * + * |-------------------------------| + * | #header | + * |-------------------------------| + * | #col1 | #col3 | #col2 | + * | 25% | flexible | 25% | + * |-------------------------------| + * | #footer | + * |-------------------------------| + */ + + + #col1 { width: 25%; } + #col1_content { padding: 10px 10px 10px 20px; } + + #col2 { width: 25%; } + #col2_content { padding: 10px 20px 10px 10px; } + + #col3 { margin: 0 25%; } + #col3_content { padding: 10px; } + + /*------------------------------------------------------------------------------------------------------*/ +} diff --git a/interface/ispconfig/interface/themes/default/css/screen/basemod_2col_left_seo.css b/interface/ispconfig/interface/themes/default/css/screen/basemod_2col_left_seo.css new file mode 100644 index 0000000..525204b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/basemod_2col_left_seo.css @@ -0,0 +1,48 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Variation of screen layout (basemod.css) - ISPConfig 3: default theme + * (de) Variation des Screenlayouts (basemod.css) - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media screen, projection +{ + /** + * (en) Repositioning content container + * (de) Neupositionierung der Content Container + * + * |-------------------------------| + * | #header | + * |-------------------------------| + * | #col1 | #col3 | + * | 200px | flexible | + * |-------------------------------| + * | #footer | + * |-------------------------------| + */ + + /* #col1 becomes the fixed navigation column | #col1 wird zur Navigationsspalte mit fester Breite */ + #col1 { width: 200px; float:left} + #col1_content { padding: 0 10px 0 0; } + + /* #col2 is turned off | #col2 abschalten */ + #col2 { display:none; } + + /* #col3 becomes the main column | #col3 wird zur Hauptspalte */ + #col3 { margin-left: 200px; margin-right: 0; } + #col3_content { padding: 0px 10px 10px 20px; } + + /* Graphic-free column dividers between #col1 and #col3 | Grafikfreier Spaltentrenner zw. #col1 und #col3*/ + #col3 {border-left: 1px #ddd solid;} + #main {padding: 1em 0} +} diff --git a/interface/ispconfig/interface/themes/default/css/screen/content.css b/interface/ispconfig/interface/themes/default/css/screen/content.css new file mode 100644 index 0000000..ad5a0d2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/content.css @@ -0,0 +1,188 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Uniform design of standard content elements - ISPConfig 3: default theme + * (de) Einheitliche Standardformatierungen f�r die wichtigten Inhalts-Elemente - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + * @appdef yaml + */ + +@media all +{ + /** + * Fonts + * (en) font-family and font-size selection for headings and standard text elements + * (de) Zeichensatz und Schriftgrößen für Überschriften und übliche Text-Elemente + * + * @section content-fonts + */ + + /* (en) reset font size for all elements to standard (16 Pixel) */ + /* (de) Alle Schriftgrößen auf Standardgröße (16 Pixel) zurücksetzen */ + html * { font-size: 100.01% } + + /* (en) reset monospaced elements to font size 16px in Gecko browsers */ + /* (de) Schriftgröße von monospaced Elemente auf 16 Pixel setzen */ + textarea, pre, tt, code { + font-family: Consolas,"Lucida Console","Courier New",monospace; + font-size: 0.9em; + } + + /* (en) base layout gets standard font size 12px */ + /* (de) Basis-Layout erhält Standardschriftgröße von 12 Pixeln */ + body { + font-family: 'Trebuchet MS', sans-serif; + font-size: 75.00%; + color: #444; + } + + h1,h2,h3,h4,h5,h6 { + font-family: 'Trebuchet MS', sans-serif; + font-weight:bold; + color:#666; + margin: 0 0 0.25em 0; + } + + h1 { font-size: 200% } /* 24px */ + h2 { font-size: 200% } /* 24px */ + h3 { font-size: 150% } /* 18px */ + h4 { font-size: 133.33% } /* 16px */ + h5 { font-size: 116.67% } /* 14px */ + h6 { font-size: 116.67%; font-style:italic } /* 14px */ + + #header h1 { + font-size:2.5em; + letter-spacing:-2px; + line-height:65%; + color: silver; + } + + #header span { + color:#333333; + } + + p { line-height: 1.5em; margin: 0 0 1em 0; } + + /* ### Lists | Listen #### */ + + ul, ol, dl { line-height: 1.5em; margin: 0 0 1em 1em } + li { margin-left: 1.5em; line-height: 1.5em } + + dt { font-weight: bold } + dd { margin: 0 0 1em 2em } + + /* ### text formatting | Textauszeichnung ### */ + + cite, blockquote { font-style:italic } + blockquote { margin: 0 0 1em 1.5em } + + strong,b { font-weight: bold } + em,i { font-style:italic } + + pre, code { font-family: monospace; font-size: 1.1em; } + + acronym, abbr { + letter-spacing: .07em; + border-bottom: .1em dashed #c00; + cursor: help; + } + + /** + * Generic Content Classes + * (en) standard classes for positioning and highlighting + * (de) Standardklassen zur Positionierung und Hervorhebung + * + * @section content-generic-classes + */ + + .note {background: #dfd; padding: 1em; border-top: 1px #bdb dotted; border-bottom: 1px #bdb dotted;} + .important {background: #ffd; padding: 1em; border-top: 1px #ddb dotted; border-bottom: 1px #ddb dotted;} + .warning {background: #fdd; padding: 1em; border-top: 1px #dbb dotted; border-bottom: 1px #dbb dotted;} + + .float_left { float: left; display:inline; margin-right: 1em; margin-bottom: 0.15em; } + .float_right { float: right; display:inline; margin-left: 1em; margin-bottom: 0.15em; } + .center { text-align:center; margin: 0.5em auto } + + /** + * External Links + * + * (en) Formatting of hyperlinks + * (de) Gestaltung von Hyperlinks + * + */ + + a {color: #4D87C7; text-decoration:none;} + a:focus, + a:hover, + a:active {color:#182E7A; text-decoration:underline;} + + #topsubnav a { color: #f0f8ff; font-weight: normal; background:transparent; text-decoration:none; } + #topsubnav a:focus, + #topsubnav a:hover, + #topsubnav a:active { text-decoration:underline; background-color: transparent;} + + #footer a { color: #999; background:transparent; font-weight: bold;} + #footer a:focus, + #footer a:hover, + #footer a:active {color: #4D87C7; background-color: transparent; text-decoration:underline;} + + /** + * (en) Emphasizing external Hyperlinks via CSS + * (de) Hervorhebung externer Hyperlinks mit CSS + * + * @section content-external-links + * @app-yaml-default disabled + */ + + /* + #main a[href^="http://www.my-domain.com"], + #main a[href^="https://www.my-domain.com"] + { + padding-left: 12px; + background-image: url('your_image.gif'); + background-repeat: no-repeat; + background-position: 0 0.45em; + } + */ + + /** + * Tables | Tabellen + * (en) Generic classes for table-width and design definition + * (de) Generische Klassen für die Tabellenbreite und Gestaltungsvorschriften für Tabellen + * + * @section content-tables + */ + + table { width: auto; border-collapse:collapse; margin-bottom: 0.5em; } + table.full { width: 100%; } + table.fixed { table-layout:fixed } + + th,td { padding: 0.5em; } + thead th { background: #444 url(../../images/lists_thead_bg.png) repeat-x; color: #fff } + tbody th { background: #ccc; color: #333 } + tbody th.sub { background: #ddd; color: #333 } + + /** + * Miscellaneous | Sonstiges + * + * @section content-misc + */ + + hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #eee solid; + } +} diff --git a/interface/ispconfig/interface/themes/default/css/screen/content_ispc.css b/interface/ispconfig/interface/themes/default/css/screen/content_ispc.css new file mode 100644 index 0000000..46da666 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/content_ispc.css @@ -0,0 +1,822 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Uniform design of ISPConfig elements - ISPConfig 3: default theme + * (de) Einheitliche Standardformatierungen f�r ISPConfig-Elemente - ISPConfig 3: default theme + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + * @appdef yaml + */ + +@media all +{ + .pageForm_description { + font-size: 12px; + } + + /* Tab-Box */ + .tabbox_tabs { + border-bottom: 1px solid #d3d3d3; + } + .tabbox_tabs ul { + list-style: none; + padding: 0; + margin: 0; + } + .tabbox_tabs li { + display: inline; + margin: 0 2px 0 0; + } + .tabbox_tabs a { + padding: 0 1em; + text-decoration: none; + color: black; + background: #d3d3d3; + border: 1px solid #d3d3d3; + } + .tabbox_tabs a:hover { + background: #fc0; + color: #540; + } + .tabbox_tabs .active a { + font-weight: bold; + color: #ff6600; + background: #ffffff; + } + + .pnl_toolsarea fieldset, .pnl_listarea fieldset, .pnl_formsarea fieldset { + border-color: #6299c5 -moz-use-text-color -moz-use-text-color; + border-style: solid none none; + border-width: 1px medium medium; + margin: 20px 0; + } + .pnl_toolsarea fieldset legend , .pnl_listarea fieldset legend { + font-weight: bold; + color: #6299c5; + } + .pnl_formarea fieldset { + font-weight: bold; + } + + /* hide line and legend when inside tabbed content */ + #tabbox_content * .pnl_toolsarea fieldset, #tabbox_content * .pnl_listarea fieldset, #tabbox_content * .pnl_formsarea fieldset { border: none !important; } + #tabbox_content * .pnl_toolsarea fieldset legend, #tabbox_content * .pnl_listarea fieldset legend, #tabbox_content * .pnl_formsarea fieldset legend { display: none !important; } + + .codeview { + margin:20px 0; + padding:2px; + border: 1px solid #ffcc00; + background: #fffaea; + font-family: Consolas, "Lucida Console", "Courier New", monospace; + font-size: 0.9em; + } + + /* Lists */ + table.list { + width: 100%; + border: 1px solid #d3d3d3 !important; + } + table.list thead th { font-size: 10px; } + table.list tbody { border: 1px solid #d3d3d3 !important; } + table.list tfoot td { text-align: center; background: #f8f8f8 url(../../images/lists_tfoot_bg.png) repeat-x bottom left; padding: 24px 8px 8px 8px; } + table.list .tbl_row_even { background: #fcfcfc; } + table.list .tbl_row_uneven { background: #f0f8ff; } + table.list tr:hover { background: #fffacd; } + + /* Password Strength */ + #passBar { + width: 101px; height: 10px; + background: url(../../images/meter_bg.gif) repeat-x bottom left; + margin: 2px 0; + float: left; + } + #passText { + padding: 0; + float: left; + } + + /* Systemmonitor */ + .systemmonitor-state { + margin: 10px 0; + font-family: Consolas, "Lucida Console", "Courier New", monospace; + font-size: 0.9em; + } + .systemmonitor-state.state-no_state { + border-top: 4px solid #95A19F; + background-color: #f8f8ff; + } + .systemmonitor-state.state-unknown { + border-top: 4px solid #30302e; + background-color: #cecfc5; + } + .systemmonitor-state.state-ok { + border-top: 4px solid #23fb00; + background-color: #adffa2; + } + .systemmonitor-state.state-info { + border-top: 4px solid #fdff00; + background-color: #fdffa2; + } + .systemmonitor-state.state-warning { + border-top: 4px solid #ffa800; + background-color: #ffda93; + } + .systemmonitor-state.state-critical { + border-top: 4px solid #ff0000; + background-color: #ffb9b9; + } + .systemmonitor-state.state-error { + border-top: 4px solid #ff0000; + background-color: #ff7f7f; + } + + .systemmonitor-device { + background-repeat: no-repeat; + background-position: 12px 4px; + min-height: 80px; + } + .systemmonitor-device.device-system { background-image: url("../../icons/x64/network.png"); } + .systemmonitor-device.device-server { background-image: url("../../icons/x64/server.png"); } + + .systemmonitor-content.icons32 { + padding:2px 10px 2px 80px; + background-repeat: no-repeat; + background-position: 12px 4px; + } + .systemmonitor-content.icons32.ico-no_state { /*background-image:url("../../icons/x32/state_no.png"); */ } + .systemmonitor-content.icons32.ico-unknown { background-image:url("../../icons/x32/state_unknown.png"); } + .systemmonitor-content.icons32.ico-ok { background-image:url("../../icons/x32/state_ok.png"); } + .systemmonitor-content.icons32.ico-info { background-image:url("../../icons/x32/state_info.png"); } + .systemmonitor-content.icons32.ico-warning { background-image:url("../../icons/x32/state_warning.png"); } + .systemmonitor-content.icons32.ico-critical { background-image:url("../../icons/x32/state_critical.png"); } + .systemmonitor-content.icons32.ico-error { background-image:url("../../icons/x32/state_error.png"); } + + .systemmonitor-content table { + border: none; + margin-top: 10px; + } + + .systemmonitor-content * .online { + border: 1px solid #ffffff; + background-color: #E3FFB8; + color: #000000; + padding:0px 5px; + } + .systemmonitor-content * .offline { + border: 1px solid #ffffff; + background-color: #d12f19; + color:#ffffff; + padding:0px 5px; + } + + /* Image-Replacement */ + .swap { background-repeat:no-repeat; } + .swap span { display:none; height:16px; } + #ir-HeaderLogo { background-image:url("../../images/header_logo.png"); height:32px; } + #ir-Yes { background-image:url("../../icons/x16/tick_circle.png"); height:16px; } + #ir-No { background-image:url("../../icons/x16/cross_circle.png"); height:16px; } + + /* BUTTONS */ + .buttons a, .buttons button{ + display:block; + float:left; + margin:0 7px 0 0; + background-color:#f5f5f5; + border:1px solid #777777; + border-top: 1px solid #c8c8c8; + border-left:1px solid #c8c8c8; + + font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif; + font-size:90%; + line-height:130%; + text-decoration:none; + font-weight:bold; + color:#565656; + cursor:pointer; + padding:5px 10px 6px 7px; /* Links */ + } + .buttons button{ + width:auto; + overflow:visible; + padding:4px 10px 3px 7px; /* IE6 */ + } + .buttons button[type]{ + padding:5px 10px 5px 7px; /* Firefox */ + line-height:17px; /* Safari */ + } + *:first-child+html button[type]{ + padding:4px 10px 3px 7px; /* IE7 */ + } + .buttons button img, .buttons a img{ + margin:0 3px -3px 0 !important; + padding:0; + border:none; + width:16px; + height:16px; + } + + /* BUTTONS STANDARD */ + button:hover, .buttons a:hover{ + background-color:#dff4ff; + border:1px solid #c2e1ef; + color:#336699; + } + .buttons a:active{ + background-color:#6299c5; + border:1px solid #6299c5; + color:#fff; + } + + /* BUTTONS POSITIVE */ + button.positive, .buttons a.positive{ + color:#529214; + } + .buttons a.positive:hover, button.positive:hover{ + background-color:#E6EFC2; + border:1px solid #C6D880; + color:#529214; + } + .buttons a.positive:active{ + background-color:#529214; + border:1px solid #529214; + color:#fff; + } + + /* BUTTONS NEGATIVE */ + .buttons a.negative, button.negative{ + color:#d12f19; + } + .buttons a.negative:hover, button.negative:hover{ + background-color:#fbe3e4; + border:1px solid #fbc2c4; + color:#d12f19; + } + .buttons a.negative:active{ + background-color:#d12f19; + border:1px solid #d12f19; + color:#fff; + } + + /* Button with icon and text */ + .iconstxt { + background-repeat: no-repeat; + background-position: 4px 4px; + } + .iconstxt span { padding-left: 20px; } + .iconstxt.icoPositive { background-image: url("../../icons/x16/tick_circle_frame.png"); } + .iconstxt.icoNegative { background-image: url("../../icons/x16/cross_circle_frame.png"); } + .iconstxt.icoAdd { background-image: url(../../icons/x16/plus_circle_frame.png); } + .iconstxt.icoKey { background-image: url("../../icons/x16/key.png"); } + .iconstxt.icoDelete { background-image: url("../../icons/x16/minus_circle_frame.png"); } + + /* Button with icon and without text */ + .icons16 span { display: none; } + a.icons16 { height: 18px; width: 18px; padding: 0; background-repeat: no-repeat; background-position: 1px 1px;} + button.icons16 { height: 20px; width: 20px; padding: 0; background-repeat: no-repeat; background-position: 1px 1px;} + + .icons16.icoDelete { background-image: url("../../icons/x16/minus_circle_frame.png"); } + .icons16.icoFilter { background-image: url(../../icons/x16/funnel.png); } + .icons16.icoEdit { background-image: url("../../icons/x16/wrench.png"); } + .icons16.icoDbAdmin { background-image: url("../../icons/x16/database.png"); } + .icons16.icoLoginAs { background-image: url("../../icons/x16/user_go.png"); } + .icons16.icoWebmailer { background-image: url("../../icons/x16/mails_arrow.png"); } + + + + .blockLabel.email_at { + width: 20px !important; + margin: 1.6em 0.3em 0 0 !important + } + .textDisplay { display: block; } + + /* Form Length Classes */ + .textInput.formLengthBool { width: 25px !important; } + .selectInput.formLengthBool { width: 60px !important; } + .textInput.formLengthLimit { width: 50px !important; } + .selectInput.formLengthLimit { width: 85px !important; } + .formLengthDate { width: 75px !important; } + .formLengthIPv4 { width: 125px !important; } + .formLengthIPv6 { width: 100% !important; } + .formLengthEmailUser { width: 30% !important; } + .formLengthEmailDomain { width: 30% !important; } + .formLengthHalf { width: 15% !important; } + .formLengthDouble { width: 50% !important; } + + /* Individual Form Lengths */ + .textInput#username, .textInput#password, .textInput#passwort, .textInput#source_password { width: 100px; } + .selectInput#language { width: 75px; } + .selectInput#client_group_id, .selectInput#default_group { width: 125px; } + input#refresh, input#retry, input#expire, input#minimum, input#ttl { width: 50px !important; } + + /* --- */ + + a[href $='#logout'] { padding-right: 18px; background: transparent url("../../icons/x16/logout.png") no-repeat right top !important; } + + /* Select Menu with Images */ + select.withicons option { + background-repeat:no-repeat; + background-position: 1px; + padding-left:24px; + } + select.withicons#country option[value="AD"] { background-image:url(../../icons/flags/ad.png); } + select.withicons#country option[value="AE"] { background-image:url(../../icons/flags/ae.png); } + select.withicons#country option[value="AF"] { background-image:url(../../icons/flags/af.png); } + select.withicons#country option[value="AG"] { background-image:url(../../icons/flags/ag.png); } + select.withicons#country option[value="AI"] { background-image:url(../../icons/flags/ai.png); } + select.withicons#country option[value="AL"] { background-image:url(../../icons/flags/al.png); } + select.withicons#country option[value="AM"] { background-image:url(../../icons/flags/am.png); } + select.withicons#country option[value="AN"] { background-image:url(../../icons/flags/an.png); } + select.withicons#country option[value="AO"] { background-image:url(../../icons/flags/ao.png); } + select.withicons#country option[value="AQ"] { background-image:url(../../icons/flags/aq.png); } + select.withicons#country option[value="AR"] { background-image:url(../../icons/flags/ar.png); } + select.withicons#country option[value="AS"] { background-image:url(../../icons/flags/as.png); } + select.withicons#country option[value="AT"] { background-image:url(../../icons/flags/at.png); } + select.withicons#country option[value="AU"] { background-image:url(../../icons/flags/au.png); } + select.withicons#country option[value="AW"] { background-image:url(../../icons/flags/aw.png); } + select.withicons#country option[value="AX"] { background-image:url(../../icons/flags/ax.png); } + select.withicons#country option[value="AZ"] { background-image:url(../../icons/flags/az.png); } + select.withicons#country option[value="BA"] { background-image:url(../../icons/flags/ba.png); } + select.withicons#country option[value="BB"] { background-image:url(../../icons/flags/bb.png); } + select.withicons#country option[value="BD"] { background-image:url(../../icons/flags/bd.png); } + select.withicons#country option[value="BE"] { background-image:url(../../icons/flags/be.png); } + select.withicons#country option[value="BF"] { background-image:url(../../icons/flags/bf.png); } + select.withicons#country option[value="BG"] { background-image:url(../../icons/flags/bg.png); } + select.withicons#country option[value="BH"] { background-image:url(../../icons/flags/bh.png); } + select.withicons#country option[value="BI"] { background-image:url(../../icons/flags/bi.png); } + select.withicons#country option[value="BJ"] { background-image:url(../../icons/flags/bj.png); } + select.withicons#country option[value="BM"] { background-image:url(../../icons/flags/bm.png); } + select.withicons#country option[value="BN"] { background-image:url(../../icons/flags/bn.png); } + select.withicons#country option[value="BO"] { background-image:url(../../icons/flags/bo.png); } + select.withicons#country option[value="BR"] { background-image:url(../../icons/flags/br.png); } + select.withicons#country option[value="BS"] { background-image:url(../../icons/flags/bs.png); } + select.withicons#country option[value="BT"] { background-image:url(../../icons/flags/bt.png); } + select.withicons#country option[value="BV"] { background-image:url(../../icons/flags/bv.png); } + select.withicons#country option[value="BW"] { background-image:url(../../icons/flags/bw.png); } + select.withicons#country option[value="BY"] { background-image:url(../../icons/flags/by.png); } + select.withicons#country option[value="BZ"] { background-image:url(../../icons/flags/bz.png); } + select.withicons#country option[value="CA"] { background-image:url(../../icons/flags/ca.png); } + select.withicons#country option[value="CC"] { background-image:url(../../icons/flags/cc.png); } + select.withicons#country option[value="CD"] { background-image:url(../../icons/flags/cd.png); } + select.withicons#country option[value="CF"] { background-image:url(../../icons/flags/cf.png); } + select.withicons#country option[value="CG"] { background-image:url(../../icons/flags/cg.png); } + select.withicons#country option[value="CH"] { background-image:url(../../icons/flags/ch.png); } + select.withicons#country option[value="CI"] { background-image:url(../../icons/flags/ci.png); } + select.withicons#country option[value="CK"] { background-image:url(../../icons/flags/ck.png); } + select.withicons#country option[value="CL"] { background-image:url(../../icons/flags/cl.png); } + select.withicons#country option[value="CM"] { background-image:url(../../icons/flags/cm.png); } + select.withicons#country option[value="CN"] { background-image:url(../../icons/flags/cn.png); } + select.withicons#country option[value="CO"] { background-image:url(../../icons/flags/co.png); } + select.withicons#country option[value="CR"] { background-image:url(../../icons/flags/cr.png); } + select.withicons#country option[value="CS"] { background-image:url(../../icons/flags/cs.png); } + select.withicons#country option[value="CU"] { background-image:url(../../icons/flags/cu.png); } + select.withicons#country option[value="CV"] { background-image:url(../../icons/flags/cv.png); } + select.withicons#country option[value="CX"] { background-image:url(../../icons/flags/cx.png); } + select.withicons#country option[value="CY"] { background-image:url(../../icons/flags/cy.png); } + select.withicons#country option[value="CZ"] { background-image:url(../../icons/flags/cz.png); } + select.withicons#country option[value="DE"] { background-image:url(../../icons/flags/de.png); } + select.withicons#country option[value="DJ"] { background-image:url(../../icons/flags/dj.png); } + select.withicons#country option[value="DK"] { background-image:url(../../icons/flags/dk.png); } + select.withicons#country option[value="DM"] { background-image:url(../../icons/flags/dm.png); } + select.withicons#country option[value="DO"] { background-image:url(../../icons/flags/do.png); } + select.withicons#country option[value="DZ"] { background-image:url(../../icons/flags/dz.png); } + select.withicons#country option[value="EC"] { background-image:url(../../icons/flags/ec.png); } + select.withicons#country option[value="EE"] { background-image:url(../../icons/flags/ee.png); } + select.withicons#country option[value="EG"] { background-image:url(../../icons/flags/eg.png); } + select.withicons#country option[value="EH"] { background-image:url(../../icons/flags/eh.png); } + select.withicons#country option[value="ER"] { background-image:url(../../icons/flags/er.png); } + select.withicons#country option[value="ES"] { background-image:url(../../icons/flags/es.png); } + select.withicons#country option[value="ET"] { background-image:url(../../icons/flags/et.png); } + select.withicons#country option[value="FI"] { background-image:url(../../icons/flags/fi.png); } + select.withicons#country option[value="FJ"] { background-image:url(../../icons/flags/fj.png); } + select.withicons#country option[value="FK"] { background-image:url(../../icons/flags/fk.png); } + select.withicons#country option[value="FM"] { background-image:url(../../icons/flags/fm.png); } + select.withicons#country option[value="FO"] { background-image:url(../../icons/flags/fo.png); } + select.withicons#country option[value="FR"] { background-image:url(../../icons/flags/fr.png); } + select.withicons#country option[value="GA"] { background-image:url(../../icons/flags/ga.png); } + select.withicons#country option[value="GB"] { background-image:url(../../icons/flags/gb.png); } + select.withicons#country option[value="GD"] { background-image:url(../../icons/flags/gd.png); } + select.withicons#country option[value="GE"] { background-image:url(../../icons/flags/ge.png); } + select.withicons#country option[value="GF"] { background-image:url(../../icons/flags/gf.png); } + select.withicons#country option[value="GH"] { background-image:url(../../icons/flags/gh.png); } + select.withicons#country option[value="GI"] { background-image:url(../../icons/flags/gi.png); } + select.withicons#country option[value="GL"] { background-image:url(../../icons/flags/gl.png); } + select.withicons#country option[value="GM"] { background-image:url(../../icons/flags/gm.png); } + select.withicons#country option[value="GN"] { background-image:url(../../icons/flags/gn.png); } + select.withicons#country option[value="GP"] { background-image:url(../../icons/flags/gp.png); } + select.withicons#country option[value="GQ"] { background-image:url(../../icons/flags/gq.png); } + select.withicons#country option[value="GR"] { background-image:url(../../icons/flags/gr.png); } + select.withicons#country option[value="GS"] { background-image:url(../../icons/flags/gs.png); } + select.withicons#country option[value="GT"] { background-image:url(../../icons/flags/gt.png); } + select.withicons#country option[value="GU"] { background-image:url(../../icons/flags/gu.png); } + select.withicons#country option[value="GW"] { background-image:url(../../icons/flags/gw.png); } + select.withicons#country option[value="GY"] { background-image:url(../../icons/flags/gy.png); } + select.withicons#country option[value="HK"] { background-image:url(../../icons/flags/hk.png); } + select.withicons#country option[value="HM"] { background-image:url(../../icons/flags/hm.png); } + select.withicons#country option[value="HN"] { background-image:url(../../icons/flags/hn.png); } + select.withicons#country option[value="HR"] { background-image:url(../../icons/flags/hr.png); } + select.withicons#country option[value="HT"] { background-image:url(../../icons/flags/ht.png); } + select.withicons#country option[value="HU"] { background-image:url(../../icons/flags/hu.png); } + select.withicons#country option[value="ID"] { background-image:url(../../icons/flags/id.png); } + select.withicons#country option[value="IE"] { background-image:url(../../icons/flags/ie.png); } + select.withicons#country option[value="IL"] { background-image:url(../../icons/flags/il.png); } + select.withicons#country option[value="IN"] { background-image:url(../../icons/flags/in.png); } + select.withicons#country option[value="IO"] { background-image:url(../../icons/flags/io.png); } + select.withicons#country option[value="IQ"] { background-image:url(../../icons/flags/iq.png); } + select.withicons#country option[value="IR"] { background-image:url(../../icons/flags/ir.png); } + select.withicons#country option[value="IS"] { background-image:url(../../icons/flags/is.png); } + select.withicons#country option[value="IT"] { background-image:url(../../icons/flags/it.png); } + select.withicons#country option[value="JM"] { background-image:url(../../icons/flags/jm.png); } + select.withicons#country option[value="JO"] { background-image:url(../../icons/flags/jo.png); } + select.withicons#country option[value="JP"] { background-image:url(../../icons/flags/jp.png); } + select.withicons#country option[value="KE"] { background-image:url(../../icons/flags/ke.png); } + select.withicons#country option[value="KG"] { background-image:url(../../icons/flags/kg.png); } + select.withicons#country option[value="KH"] { background-image:url(../../icons/flags/kh.png); } + select.withicons#country option[value="KI"] { background-image:url(../../icons/flags/ki.png); } + select.withicons#country option[value="KM"] { background-image:url(../../icons/flags/km.png); } + select.withicons#country option[value="KN"] { background-image:url(../../icons/flags/kn.png); } + select.withicons#country option[value="KP"] { background-image:url(../../icons/flags/kp.png); } + select.withicons#country option[value="KR"] { background-image:url(../../icons/flags/kr.png); } + select.withicons#country option[value="KW"] { background-image:url(../../icons/flags/kw.png); } + select.withicons#country option[value="KY"] { background-image:url(../../icons/flags/ky.png); } + select.withicons#country option[value="KZ"] { background-image:url(../../icons/flags/kz.png); } + select.withicons#country option[value="LA"] { background-image:url(../../icons/flags/la.png); } + select.withicons#country option[value="LB"] { background-image:url(../../icons/flags/lb.png); } + select.withicons#country option[value="LC"] { background-image:url(../../icons/flags/lc.png); } + select.withicons#country option[value="LI"] { background-image:url(../../icons/flags/li.png); } + select.withicons#country option[value="LK"] { background-image:url(../../icons/flags/lk.png); } + select.withicons#country option[value="LR"] { background-image:url(../../icons/flags/lr.png); } + select.withicons#country option[value="LS"] { background-image:url(../../icons/flags/ls.png); } + select.withicons#country option[value="LT"] { background-image:url(../../icons/flags/lt.png); } + select.withicons#country option[value="LU"] { background-image:url(../../icons/flags/lu.png); } + select.withicons#country option[value="LV"] { background-image:url(../../icons/flags/lv.png); } + select.withicons#country option[value="LY"] { background-image:url(../../icons/flags/ly.png); } + select.withicons#country option[value="MA"] { background-image:url(../../icons/flags/ma.png); } + select.withicons#country option[value="MC"] { background-image:url(../../icons/flags/mc.png); } + select.withicons#country option[value="MD"] { background-image:url(../../icons/flags/md.png); } + select.withicons#country option[value="ME"] { background-image:url(../../icons/flags/me.png); } + select.withicons#country option[value="MG"] { background-image:url(../../icons/flags/mg.png); } + select.withicons#country option[value="MH"] { background-image:url(../../icons/flags/mh.png); } + select.withicons#country option[value="MK"] { background-image:url(../../icons/flags/mk.png); } + select.withicons#country option[value="ML"] { background-image:url(../../icons/flags/ml.png); } + select.withicons#country option[value="MM"] { background-image:url(../../icons/flags/mm.png); } + select.withicons#country option[value="MN"] { background-image:url(../../icons/flags/mn.png); } + select.withicons#country option[value="MO"] { background-image:url(../../icons/flags/mo.png); } + select.withicons#country option[value="MP"] { background-image:url(../../icons/flags/mp.png); } + select.withicons#country option[value="MQ"] { background-image:url(../../icons/flags/mq.png); } + select.withicons#country option[value="MR"] { background-image:url(../../icons/flags/mr.png); } + select.withicons#country option[value="MS"] { background-image:url(../../icons/flags/ms.png); } + select.withicons#country option[value="MT"] { background-image:url(../../icons/flags/mt.png); } + select.withicons#country option[value="MU"] { background-image:url(../../icons/flags/mu.png); } + select.withicons#country option[value="MV"] { background-image:url(../../icons/flags/mv.png); } + select.withicons#country option[value="MW"] { background-image:url(../../icons/flags/mw.png); } + select.withicons#country option[value="MX"] { background-image:url(../../icons/flags/mx.png); } + select.withicons#country option[value="MY"] { background-image:url(../../icons/flags/my.png); } + select.withicons#country option[value="MZ"] { background-image:url(../../icons/flags/mz.png); } + select.withicons#country option[value="NA"] { background-image:url(../../icons/flags/na.png); } + select.withicons#country option[value="NC"] { background-image:url(../../icons/flags/nc.png); } + select.withicons#country option[value="NE"] { background-image:url(../../icons/flags/ne.png); } + select.withicons#country option[value="NF"] { background-image:url(../../icons/flags/nf.png); } + select.withicons#country option[value="NG"] { background-image:url(../../icons/flags/ng.png); } + select.withicons#country option[value="NI"] { background-image:url(../../icons/flags/ni.png); } + select.withicons#country option[value="NL"] { background-image:url(../../icons/flags/nl.png); } + select.withicons#country option[value="NO"] { background-image:url(../../icons/flags/no.png); } + select.withicons#country option[value="NP"] { background-image:url(../../icons/flags/np.png); } + select.withicons#country option[value="NR"] { background-image:url(../../icons/flags/nr.png); } + select.withicons#country option[value="NU"] { background-image:url(../../icons/flags/nu.png); } + select.withicons#country option[value="NZ"] { background-image:url(../../icons/flags/nz.png); } + select.withicons#country option[value="OM"] { background-image:url(../../icons/flags/om.png); } + select.withicons#country option[value="PA"] { background-image:url(../../icons/flags/pa.png); } + select.withicons#country option[value="PE"] { background-image:url(../../icons/flags/pe.png); } + select.withicons#country option[value="PF"] { background-image:url(../../icons/flags/pf.png); } + select.withicons#country option[value="PG"] { background-image:url(../../icons/flags/pg.png); } + select.withicons#country option[value="PH"] { background-image:url(../../icons/flags/ph.png); } + select.withicons#country option[value="PK"] { background-image:url(../../icons/flags/pk.png); } + select.withicons#country option[value="PL"] { background-image:url(../../icons/flags/pl.png); } + select.withicons#country option[value="PM"] { background-image:url(../../icons/flags/pm.png); } + select.withicons#country option[value="PN"] { background-image:url(../../icons/flags/pn.png); } + select.withicons#country option[value="PR"] { background-image:url(../../icons/flags/pr.png); } + select.withicons#country option[value="PS"] { background-image:url(../../icons/flags/ps.png); } + select.withicons#country option[value="PT"] { background-image:url(../../icons/flags/pt.png); } + select.withicons#country option[value="PW"] { background-image:url(../../icons/flags/pw.png); } + select.withicons#country option[value="PY"] { background-image:url(../../icons/flags/py.png); } + select.withicons#country option[value="QA"] { background-image:url(../../icons/flags/qa.png); } + select.withicons#country option[value="RE"] { background-image:url(../../icons/flags/re.png); } + select.withicons#country option[value="RO"] { background-image:url(../../icons/flags/ro.png); } + select.withicons#country option[value="RS"] { background-image:url(../../icons/flags/rs.png); } + select.withicons#country option[value="RU"] { background-image:url(../../icons/flags/ru.png); } + select.withicons#country option[value="RW"] { background-image:url(../../icons/flags/rw.png); } + select.withicons#country option[value="SA"] { background-image:url(../../icons/flags/sa.png); } + select.withicons#country option[value="SB"] { background-image:url(../../icons/flags/sb.png); } + select.withicons#country option[value="SC"] { background-image:url(../../icons/flags/sc.png); } + select.withicons#country option[value="SD"] { background-image:url(../../icons/flags/sd.png); } + select.withicons#country option[value="SE"] { background-image:url(../../icons/flags/se.png); } + select.withicons#country option[value="SG"] { background-image:url(../../icons/flags/sg.png); } + select.withicons#country option[value="SH"] { background-image:url(../../icons/flags/sh.png); } + select.withicons#country option[value="SI"] { background-image:url(../../icons/flags/si.png); } + select.withicons#country option[value="SJ"] { background-image:url(../../icons/flags/sj.png); } + select.withicons#country option[value="SK"] { background-image:url(../../icons/flags/sk.png); } + select.withicons#country option[value="SL"] { background-image:url(../../icons/flags/sl.png); } + select.withicons#country option[value="SM"] { background-image:url(../../icons/flags/sm.png); } + select.withicons#country option[value="SN"] { background-image:url(../../icons/flags/sn.png); } + select.withicons#country option[value="SO"] { background-image:url(../../icons/flags/so.png); } + select.withicons#country option[value="SR"] { background-image:url(../../icons/flags/sr.png); } + select.withicons#country option[value="ST"] { background-image:url(../../icons/flags/st.png); } + select.withicons#country option[value="SV"] { background-image:url(../../icons/flags/sv.png); } + select.withicons#country option[value="SY"] { background-image:url(../../icons/flags/sy.png); } + select.withicons#country option[value="SZ"] { background-image:url(../../icons/flags/sz.png); } + select.withicons#country option[value="TC"] { background-image:url(../../icons/flags/tc.png); } + select.withicons#country option[value="TD"] { background-image:url(../../icons/flags/td.png); } + select.withicons#country option[value="TF"] { background-image:url(../../icons/flags/tf.png); } + select.withicons#country option[value="TG"] { background-image:url(../../icons/flags/tg.png); } + select.withicons#country option[value="TH"] { background-image:url(../../icons/flags/th.png); } + select.withicons#country option[value="TJ"] { background-image:url(../../icons/flags/tj.png); } + select.withicons#country option[value="TK"] { background-image:url(../../icons/flags/tk.png); } + select.withicons#country option[value="TL"] { background-image:url(../../icons/flags/tl.png); } + select.withicons#country option[value="TM"] { background-image:url(../../icons/flags/tm.png); } + select.withicons#country option[value="TN"] { background-image:url(../../icons/flags/tn.png); } + select.withicons#country option[value="TO"] { background-image:url(../../icons/flags/to.png); } + select.withicons#country option[value="TR"] { background-image:url(../../icons/flags/tr.png); } + select.withicons#country option[value="TT"] { background-image:url(../../icons/flags/tt.png); } + select.withicons#country option[value="TV"] { background-image:url(../../icons/flags/tv.png); } + select.withicons#country option[value="TW"] { background-image:url(../../icons/flags/tw.png); } + select.withicons#country option[value="TZ"] { background-image:url(../../icons/flags/tz.png); } + select.withicons#country option[value="UA"] { background-image:url(../../icons/flags/ua.png); } + select.withicons#country option[value="UG"] { background-image:url(../../icons/flags/ug.png); } + select.withicons#country option[value="UM"] { background-image:url(../../icons/flags/um.png); } + select.withicons#country option[value="US"] { background-image:url(../../icons/flags/us.png); } + select.withicons#country option[value="UY"] { background-image:url(../../icons/flags/uy.png); } + select.withicons#country option[value="UZ"] { background-image:url(../../icons/flags/uz.png); } + select.withicons#country option[value="VA"] { background-image:url(../../icons/flags/va.png); } + select.withicons#country option[value="VC"] { background-image:url(../../icons/flags/vc.png); } + select.withicons#country option[value="VE"] { background-image:url(../../icons/flags/ve.png); } + select.withicons#country option[value="VG"] { background-image:url(../../icons/flags/vg.png); } + select.withicons#country option[value="VI"] { background-image:url(../../icons/flags/vi.png); } + select.withicons#country option[value="VN"] { background-image:url(../../icons/flags/vn.png); } + select.withicons#country option[value="VU"] { background-image:url(../../icons/flags/vu.png); } + select.withicons#country option[value="WF"] { background-image:url(../../icons/flags/wf.png); } + select.withicons#country option[value="WS"] { background-image:url(../../icons/flags/ws.png); } + select.withicons#country option[value="YE"] { background-image:url(../../icons/flags/ye.png); } + select.withicons#country option[value="YT"] { background-image:url(../../icons/flags/yt.png); } + select.withicons#country option[value="ZA"] { background-image:url(../../icons/flags/za.png); } + select.withicons#country option[value="ZM"] { background-image:url(../../icons/flags/zm.png); } + select.withicons#country option[value="ZW"] { background-image:url(../../icons/flags/zw.png); } + + select.withicons#language option[value="ad"] { background-image:url(../../icons/flags/ad.png); } + select.withicons#language option[value="ae"] { background-image:url(../../icons/flags/ae.png); } + select.withicons#language option[value="af"] { background-image:url(../../icons/flags/af.png); } + select.withicons#language option[value="ag"] { background-image:url(../../icons/flags/ag.png); } + select.withicons#language option[value="ai"] { background-image:url(../../icons/flags/ai.png); } + select.withicons#language option[value="al"] { background-image:url(../../icons/flags/al.png); } + select.withicons#language option[value="am"] { background-image:url(../../icons/flags/am.png); } + select.withicons#language option[value="an"] { background-image:url(../../icons/flags/an.png); } + select.withicons#language option[value="ao"] { background-image:url(../../icons/flags/ao.png); } + select.withicons#language option[value="aq"] { background-image:url(../../icons/flags/aq.png); } + select.withicons#language option[value="ar"] { background-image:url(../../icons/flags/ar.png); } + select.withicons#language option[value="as"] { background-image:url(../../icons/flags/as.png); } + select.withicons#language option[value="at"] { background-image:url(../../icons/flags/at.png); } + select.withicons#language option[value="au"] { background-image:url(../../icons/flags/au.png); } + select.withicons#language option[value="aw"] { background-image:url(../../icons/flags/aw.png); } + select.withicons#language option[value="ax"] { background-image:url(../../icons/flags/ax.png); } + select.withicons#language option[value="az"] { background-image:url(../../icons/flags/az.png); } + select.withicons#language option[value="ba"] { background-image:url(../../icons/flags/ba.png); } + select.withicons#language option[value="bb"] { background-image:url(../../icons/flags/bb.png); } + select.withicons#language option[value="bd"] { background-image:url(../../icons/flags/bd.png); } + select.withicons#language option[value="be"] { background-image:url(../../icons/flags/be.png); } + select.withicons#language option[value="bf"] { background-image:url(../../icons/flags/bf.png); } + select.withicons#language option[value="bg"] { background-image:url(../../icons/flags/bg.png); } + select.withicons#language option[value="bh"] { background-image:url(../../icons/flags/bh.png); } + select.withicons#language option[value="bi"] { background-image:url(../../icons/flags/bi.png); } + select.withicons#language option[value="bj"] { background-image:url(../../icons/flags/bj.png); } + select.withicons#language option[value="bm"] { background-image:url(../../icons/flags/bm.png); } + select.withicons#language option[value="bn"] { background-image:url(../../icons/flags/bn.png); } + select.withicons#language option[value="bo"] { background-image:url(../../icons/flags/bo.png); } + select.withicons#language option[value="br"] { background-image:url(../../icons/flags/br.png); } + select.withicons#language option[value="bs"] { background-image:url(../../icons/flags/bs.png); } + select.withicons#language option[value="bt"] { background-image:url(../../icons/flags/bt.png); } + select.withicons#language option[value="bv"] { background-image:url(../../icons/flags/bv.png); } + select.withicons#language option[value="bw"] { background-image:url(../../icons/flags/bw.png); } + select.withicons#language option[value="by"] { background-image:url(../../icons/flags/by.png); } + select.withicons#language option[value="bz"] { background-image:url(../../icons/flags/bz.png); } + select.withicons#language option[value="ca"] { background-image:url(../../icons/flags/ca.png); } + select.withicons#language option[value="cc"] { background-image:url(../../icons/flags/cc.png); } + select.withicons#language option[value="cd"] { background-image:url(../../icons/flags/cd.png); } + select.withicons#language option[value="cf"] { background-image:url(../../icons/flags/cf.png); } + select.withicons#language option[value="cg"] { background-image:url(../../icons/flags/cg.png); } + select.withicons#language option[value="ch"] { background-image:url(../../icons/flags/ch.png); } + select.withicons#language option[value="ci"] { background-image:url(../../icons/flags/ci.png); } + select.withicons#language option[value="ck"] { background-image:url(../../icons/flags/ck.png); } + select.withicons#language option[value="cl"] { background-image:url(../../icons/flags/cl.png); } + select.withicons#language option[value="cm"] { background-image:url(../../icons/flags/cm.png); } + select.withicons#language option[value="cn"] { background-image:url(../../icons/flags/cn.png); } + select.withicons#language option[value="co"] { background-image:url(../../icons/flags/co.png); } + select.withicons#language option[value="cr"] { background-image:url(../../icons/flags/cr.png); } + select.withicons#language option[value="cs"] { background-image:url(../../icons/flags/cs.png); } + select.withicons#language option[value="cu"] { background-image:url(../../icons/flags/cu.png); } + select.withicons#language option[value="cv"] { background-image:url(../../icons/flags/cv.png); } + select.withicons#language option[value="cx"] { background-image:url(../../icons/flags/cx.png); } + select.withicons#language option[value="cy"] { background-image:url(../../icons/flags/cy.png); } + select.withicons#language option[value="cz"] { background-image:url(../../icons/flags/cz.png); } + select.withicons#language option[value="de"] { background-image:url(../../icons/flags/de.png); } + select.withicons#language option[value="dj"] { background-image:url(../../icons/flags/dj.png); } + select.withicons#language option[value="dk"] { background-image:url(../../icons/flags/dk.png); } + select.withicons#language option[value="dm"] { background-image:url(../../icons/flags/dm.png); } + select.withicons#language option[value="do"] { background-image:url(../../icons/flags/do.png); } + select.withicons#language option[value="dz"] { background-image:url(../../icons/flags/dz.png); } + select.withicons#language option[value="ec"] { background-image:url(../../icons/flags/ec.png); } + select.withicons#language option[value="ee"] { background-image:url(../../icons/flags/ee.png); } + select.withicons#language option[value="eg"] { background-image:url(../../icons/flags/eg.png); } + select.withicons#language option[value="eh"] { background-image:url(../../icons/flags/eh.png); } + select.withicons#language option[value="en"] { background-image:url(../../icons/flags/gb.png); } + select.withicons#language option[value="er"] { background-image:url(../../icons/flags/er.png); } + select.withicons#language option[value="es"] { background-image:url(../../icons/flags/es.png); } + select.withicons#language option[value="et"] { background-image:url(../../icons/flags/et.png); } + select.withicons#language option[value="fi"] { background-image:url(../../icons/flags/fi.png); } + select.withicons#language option[value="fj"] { background-image:url(../../icons/flags/fj.png); } + select.withicons#language option[value="fk"] { background-image:url(../../icons/flags/fk.png); } + select.withicons#language option[value="fm"] { background-image:url(../../icons/flags/fm.png); } + select.withicons#language option[value="fo"] { background-image:url(../../icons/flags/fo.png); } + select.withicons#language option[value="fr"] { background-image:url(../../icons/flags/fr.png); } + select.withicons#language option[value="ga"] { background-image:url(../../icons/flags/ga.png); } + select.withicons#language option[value="gb"] { background-image:url(../../icons/flags/gb.png); } + select.withicons#language option[value="gd"] { background-image:url(../../icons/flags/gd.png); } + select.withicons#language option[value="ge"] { background-image:url(../../icons/flags/ge.png); } + select.withicons#language option[value="gf"] { background-image:url(../../icons/flags/gf.png); } + select.withicons#language option[value="gh"] { background-image:url(../../icons/flags/gh.png); } + select.withicons#language option[value="gi"] { background-image:url(../../icons/flags/gi.png); } + select.withicons#language option[value="gl"] { background-image:url(../../icons/flags/gl.png); } + select.withicons#language option[value="gm"] { background-image:url(../../icons/flags/gm.png); } + select.withicons#language option[value="gn"] { background-image:url(../../icons/flags/gn.png); } + select.withicons#language option[value="gp"] { background-image:url(../../icons/flags/gp.png); } + select.withicons#language option[value="gq"] { background-image:url(../../icons/flags/gq.png); } + select.withicons#language option[value="gr"] { background-image:url(../../icons/flags/gr.png); } + select.withicons#language option[value="gs"] { background-image:url(../../icons/flags/gs.png); } + select.withicons#language option[value="gt"] { background-image:url(../../icons/flags/gt.png); } + select.withicons#language option[value="gu"] { background-image:url(../../icons/flags/gu.png); } + select.withicons#language option[value="gw"] { background-image:url(../../icons/flags/gw.png); } + select.withicons#language option[value="gy"] { background-image:url(../../icons/flags/gy.png); } + select.withicons#language option[value="hk"] { background-image:url(../../icons/flags/hk.png); } + select.withicons#language option[value="hm"] { background-image:url(../../icons/flags/hm.png); } + select.withicons#language option[value="hn"] { background-image:url(../../icons/flags/hn.png); } + select.withicons#language option[value="hr"] { background-image:url(../../icons/flags/hr.png); } + select.withicons#language option[value="ht"] { background-image:url(../../icons/flags/ht.png); } + select.withicons#language option[value="hu"] { background-image:url(../../icons/flags/hu.png); } + select.withicons#language option[value="id"] { background-image:url(../../icons/flags/id.png); } + select.withicons#language option[value="ie"] { background-image:url(../../icons/flags/ie.png); } + select.withicons#language option[value="il"] { background-image:url(../../icons/flags/il.png); } + select.withicons#language option[value="in"] { background-image:url(../../icons/flags/in.png); } + select.withicons#language option[value="io"] { background-image:url(../../icons/flags/io.png); } + select.withicons#language option[value="iq"] { background-image:url(../../icons/flags/iq.png); } + select.withicons#language option[value="ir"] { background-image:url(../../icons/flags/ir.png); } + select.withicons#language option[value="is"] { background-image:url(../../icons/flags/is.png); } + select.withicons#language option[value="it"] { background-image:url(../../icons/flags/it.png); } + select.withicons#language option[value="jm"] { background-image:url(../../icons/flags/jm.png); } + select.withicons#language option[value="jo"] { background-image:url(../../icons/flags/jo.png); } + select.withicons#language option[value="jp"] { background-image:url(../../icons/flags/jp.png); } + select.withicons#language option[value="ke"] { background-image:url(../../icons/flags/ke.png); } + select.withicons#language option[value="kg"] { background-image:url(../../icons/flags/kg.png); } + select.withicons#language option[value="kh"] { background-image:url(../../icons/flags/kh.png); } + select.withicons#language option[value="ki"] { background-image:url(../../icons/flags/ki.png); } + select.withicons#language option[value="km"] { background-image:url(../../icons/flags/km.png); } + select.withicons#language option[value="kn"] { background-image:url(../../icons/flags/kn.png); } + select.withicons#language option[value="kp"] { background-image:url(../../icons/flags/kp.png); } + select.withicons#language option[value="kr"] { background-image:url(../../icons/flags/kr.png); } + select.withicons#language option[value="kw"] { background-image:url(../../icons/flags/kw.png); } + select.withicons#language option[value="ky"] { background-image:url(../../icons/flags/ky.png); } + select.withicons#language option[value="kz"] { background-image:url(../../icons/flags/kz.png); } + select.withicons#language option[value="la"] { background-image:url(../../icons/flags/la.png); } + select.withicons#language option[value="lb"] { background-image:url(../../icons/flags/lb.png); } + select.withicons#language option[value="lc"] { background-image:url(../../icons/flags/lc.png); } + select.withicons#language option[value="li"] { background-image:url(../../icons/flags/li.png); } + select.withicons#language option[value="lk"] { background-image:url(../../icons/flags/lk.png); } + select.withicons#language option[value="lr"] { background-image:url(../../icons/flags/lr.png); } + select.withicons#language option[value="ls"] { background-image:url(../../icons/flags/ls.png); } + select.withicons#language option[value="lt"] { background-image:url(../../icons/flags/lt.png); } + select.withicons#language option[value="lu"] { background-image:url(../../icons/flags/lu.png); } + select.withicons#language option[value="lv"] { background-image:url(../../icons/flags/lv.png); } + select.withicons#language option[value="ly"] { background-image:url(../../icons/flags/ly.png); } + select.withicons#language option[value="ma"] { background-image:url(../../icons/flags/ma.png); } + select.withicons#language option[value="mc"] { background-image:url(../../icons/flags/mc.png); } + select.withicons#language option[value="md"] { background-image:url(../../icons/flags/md.png); } + select.withicons#language option[value="me"] { background-image:url(../../icons/flags/me.png); } + select.withicons#language option[value="mg"] { background-image:url(../../icons/flags/mg.png); } + select.withicons#language option[value="mh"] { background-image:url(../../icons/flags/mh.png); } + select.withicons#language option[value="mk"] { background-image:url(../../icons/flags/mk.png); } + select.withicons#language option[value="ml"] { background-image:url(../../icons/flags/ml.png); } + select.withicons#language option[value="mm"] { background-image:url(../../icons/flags/mm.png); } + select.withicons#language option[value="mn"] { background-image:url(../../icons/flags/mn.png); } + select.withicons#language option[value="mo"] { background-image:url(../../icons/flags/mo.png); } + select.withicons#language option[value="mp"] { background-image:url(../../icons/flags/mp.png); } + select.withicons#language option[value="mq"] { background-image:url(../../icons/flags/mq.png); } + select.withicons#language option[value="mr"] { background-image:url(../../icons/flags/mr.png); } + select.withicons#language option[value="ms"] { background-image:url(../../icons/flags/ms.png); } + select.withicons#language option[value="mt"] { background-image:url(../../icons/flags/mt.png); } + select.withicons#language option[value="mu"] { background-image:url(../../icons/flags/mu.png); } + select.withicons#language option[value="mv"] { background-image:url(../../icons/flags/mv.png); } + select.withicons#language option[value="mw"] { background-image:url(../../icons/flags/mw.png); } + select.withicons#language option[value="mx"] { background-image:url(../../icons/flags/mx.png); } + select.withicons#language option[value="my"] { background-image:url(../../icons/flags/my.png); } + select.withicons#language option[value="mz"] { background-image:url(../../icons/flags/mz.png); } + select.withicons#language option[value="na"] { background-image:url(../../icons/flags/na.png); } + select.withicons#language option[value="nc"] { background-image:url(../../icons/flags/nc.png); } + select.withicons#language option[value="ne"] { background-image:url(../../icons/flags/ne.png); } + select.withicons#language option[value="nf"] { background-image:url(../../icons/flags/nf.png); } + select.withicons#language option[value="ng"] { background-image:url(../../icons/flags/ng.png); } + select.withicons#language option[value="ni"] { background-image:url(../../icons/flags/ni.png); } + select.withicons#language option[value="nl"] { background-image:url(../../icons/flags/nl.png); } + select.withicons#language option[value="no"] { background-image:url(../../icons/flags/no.png); } + select.withicons#language option[value="np"] { background-image:url(../../icons/flags/np.png); } + select.withicons#language option[value="nr"] { background-image:url(../../icons/flags/nr.png); } + select.withicons#language option[value="nu"] { background-image:url(../../icons/flags/nu.png); } + select.withicons#language option[value="nz"] { background-image:url(../../icons/flags/nz.png); } + select.withicons#language option[value="om"] { background-image:url(../../icons/flags/om.png); } + select.withicons#language option[value="pa"] { background-image:url(../../icons/flags/pa.png); } + select.withicons#language option[value="pe"] { background-image:url(../../icons/flags/pe.png); } + select.withicons#language option[value="pf"] { background-image:url(../../icons/flags/pf.png); } + select.withicons#language option[value="pg"] { background-image:url(../../icons/flags/pg.png); } + select.withicons#language option[value="ph"] { background-image:url(../../icons/flags/ph.png); } + select.withicons#language option[value="pk"] { background-image:url(../../icons/flags/pk.png); } + select.withicons#language option[value="pl"] { background-image:url(../../icons/flags/pl.png); } + select.withicons#language option[value="pm"] { background-image:url(../../icons/flags/pm.png); } + select.withicons#language option[value="pn"] { background-image:url(../../icons/flags/pn.png); } + select.withicons#language option[value="pr"] { background-image:url(../../icons/flags/pr.png); } + select.withicons#language option[value="ps"] { background-image:url(../../icons/flags/ps.png); } + select.withicons#language option[value="pt"] { background-image:url(../../icons/flags/pt.png); } + select.withicons#language option[value="pw"] { background-image:url(../../icons/flags/pw.png); } + select.withicons#language option[value="py"] { background-image:url(../../icons/flags/py.png); } + select.withicons#language option[value="qa"] { background-image:url(../../icons/flags/qa.png); } + select.withicons#language option[value="re"] { background-image:url(../../icons/flags/re.png); } + select.withicons#language option[value="ro"] { background-image:url(../../icons/flags/ro.png); } + select.withicons#language option[value="rs"] { background-image:url(../../icons/flags/rs.png); } + select.withicons#language option[value="ru"] { background-image:url(../../icons/flags/ru.png); } + select.withicons#language option[value="rw"] { background-image:url(../../icons/flags/rw.png); } + select.withicons#language option[value="sa"] { background-image:url(../../icons/flags/sa.png); } + select.withicons#language option[value="sb"] { background-image:url(../../icons/flags/sb.png); } + select.withicons#language option[value="sc"] { background-image:url(../../icons/flags/sc.png); } + select.withicons#language option[value="sd"] { background-image:url(../../icons/flags/sd.png); } + select.withicons#language option[value="se"] { background-image:url(../../icons/flags/se.png); } + select.withicons#language option[value="sg"] { background-image:url(../../icons/flags/sg.png); } + select.withicons#language option[value="sh"] { background-image:url(../../icons/flags/sh.png); } + select.withicons#language option[value="si"] { background-image:url(../../icons/flags/si.png); } + select.withicons#language option[value="sj"] { background-image:url(../../icons/flags/sj.png); } + select.withicons#language option[value="sk"] { background-image:url(../../icons/flags/sk.png); } + select.withicons#language option[value="sl"] { background-image:url(../../icons/flags/sl.png); } + select.withicons#language option[value="sm"] { background-image:url(../../icons/flags/sm.png); } + select.withicons#language option[value="sn"] { background-image:url(../../icons/flags/sn.png); } + select.withicons#language option[value="so"] { background-image:url(../../icons/flags/so.png); } + select.withicons#language option[value="sr"] { background-image:url(../../icons/flags/sr.png); } + select.withicons#language option[value="st"] { background-image:url(../../icons/flags/st.png); } + select.withicons#language option[value="sv"] { background-image:url(../../icons/flags/sv.png); } + select.withicons#language option[value="sy"] { background-image:url(../../icons/flags/sy.png); } + select.withicons#language option[value="sz"] { background-image:url(../../icons/flags/sz.png); } + select.withicons#language option[value="tc"] { background-image:url(../../icons/flags/tc.png); } + select.withicons#language option[value="td"] { background-image:url(../../icons/flags/td.png); } + select.withicons#language option[value="tf"] { background-image:url(../../icons/flags/tf.png); } + select.withicons#language option[value="tg"] { background-image:url(../../icons/flags/tg.png); } + select.withicons#language option[value="th"] { background-image:url(../../icons/flags/th.png); } + select.withicons#language option[value="tj"] { background-image:url(../../icons/flags/tj.png); } + select.withicons#language option[value="tk"] { background-image:url(../../icons/flags/tk.png); } + select.withicons#language option[value="tl"] { background-image:url(../../icons/flags/tl.png); } + select.withicons#language option[value="tm"] { background-image:url(../../icons/flags/tm.png); } + select.withicons#language option[value="tn"] { background-image:url(../../icons/flags/tn.png); } + select.withicons#language option[value="to"] { background-image:url(../../icons/flags/to.png); } + select.withicons#language option[value="tr"] { background-image:url(../../icons/flags/tr.png); } + select.withicons#language option[value="tt"] { background-image:url(../../icons/flags/tt.png); } + select.withicons#language option[value="tv"] { background-image:url(../../icons/flags/tv.png); } + select.withicons#language option[value="tw"] { background-image:url(../../icons/flags/tw.png); } + select.withicons#language option[value="tz"] { background-image:url(../../icons/flags/tz.png); } + select.withicons#language option[value="ua"] { background-image:url(../../icons/flags/ua.png); } + select.withicons#language option[value="ug"] { background-image:url(../../icons/flags/ug.png); } + select.withicons#language option[value="um"] { background-image:url(../../icons/flags/um.png); } + select.withicons#language option[value="us"] { background-image:url(../../icons/flags/us.png); } + select.withicons#language option[value="uy"] { background-image:url(../../icons/flags/uy.png); } + select.withicons#language option[value="uz"] { background-image:url(../../icons/flags/uz.png); } + select.withicons#language option[value="va"] { background-image:url(../../icons/flags/va.png); } + select.withicons#language option[value="vc"] { background-image:url(../../icons/flags/vc.png); } + select.withicons#language option[value="ve"] { background-image:url(../../icons/flags/ve.png); } + select.withicons#language option[value="vg"] { background-image:url(../../icons/flags/vg.png); } + select.withicons#language option[value="vi"] { background-image:url(../../icons/flags/vi.png); } + select.withicons#language option[value="vn"] { background-image:url(../../icons/flags/vn.png); } + select.withicons#language option[value="vu"] { background-image:url(../../icons/flags/vu.png); } + select.withicons#language option[value="wf"] { background-image:url(../../icons/flags/wf.png); } + select.withicons#language option[value="ws"] { background-image:url(../../icons/flags/ws.png); } + select.withicons#language option[value="ye"] { background-image:url(../../icons/flags/ye.png); } + select.withicons#language option[value="yt"] { background-image:url(../../icons/flags/yt.png); } + select.withicons#language option[value="za"] { background-image:url(../../icons/flags/za.png); } + select.withicons#language option[value="zm"] { background-image:url(../../icons/flags/zm.png); } + select.withicons#language option[value="zw"] { background-image:url(../../icons/flags/zw.png); } + + .panel_login { + max-width: 80%; + min-width: 680px; + } + +} + diff --git a/interface/ispconfig/interface/themes/default/css/screen/uni-form-generic.css b/interface/ispconfig/interface/themes/default/css/screen/uni-form-generic.css new file mode 100644 index 0000000..f9e0f39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/uni-form-generic.css @@ -0,0 +1,136 @@ +/* Uni-Form by Dragan Babic [Superawesome Industries] - http: //sprawsm.com/uni-form/ */ +/* Some rights reserved - http: //creativecommons.org/licenses/by-sa/2.5/ */ +/* Do not edit this file directly, make your changes to uni-form.css in the same folder */ + +/* ------------------------------------------------------------------------------ */ + +.uniForm{ margin: 0; padding: 0; position: relative; z-index: 1; } /* reset stuff */ + + /* Some generals and more resets */ + .uniForm fieldset{ border: none; margin: 0; padding: 0; } + .uniForm fieldset legend{ margin: 0; padding: 0; } + + /* This is the main unit that contains our form elements */ + .uniForm .ctrlHolder, + .uniForm .buttonHolder{ margin: 0; padding: 0; clear: both; } + + /* Clear all floats */ + .uniForm:after, + .uniForm .buttonHolder:after, + .uniForm .ctrlHolder:after, + .uniForm .ctrlHolder .multiField:after, + .uniForm .inlineLabel:after{ content: "."; display: block; height: 0; line-height: 0; font-size: 0; clear: both; min-height: 0; visibility: hidden; } + + /* A class to be used on a label that contains a checkbox or a radio button */ + .uniForm .inlineLabel, + .uniForm .inlineLabels .inlineLabel, + .uniForm .blockLabels .inlineLabel{ width: auto; float: none; margin: 0; display: block; } + /* IE shows borders & padding on checkboxes and radio buttons if they are declared on an input element, remove them */ + /* Legacy/Inheritance fix */ + .uniForm .inlineLabel input, + .uniForm .inlineLabels .inlineLabel input, + .uniForm .blockLabels .inlineLabel input{ border: none; padding: 0; margin: 0; } + +/* ------------------------------------------------------------------------------ */ + + /* Styles for form controls where labels are above the input elements */ + /* Set the class of the parent (preferably to a fieldset) to .blockLabels */ + + .uniForm label, + .uniForm .label, + .uniForm .blockLabels label, + .uniForm .blockLabels .label{ display: block; float: none; padding: 0; line-height: 100%; width: auto; } + + /* Float the input elements */ + .uniForm .textInput, + .uniForm .blockLabels .textInput, + .uniForm .blockLabels .fileUpload, + .uniForm .selectInput, + .uniForm .blockLabels .selectInput, + .uniForm .blockLabels select, + .uniForm textarea, + .uniForm .blockLabels textarea{ float: left; } + + /* Postition the hints */ + .uniForm .formHint, + .uniForm .blockLabels .formHint{ float: right; margin: 0; clear: none; } + + /* Position the elements inside combo boxes (multiple selects/checkboxes/radio buttons per unit) */ + .uniForm .multiField, + .uniForm .blockLabels .multiField{ width: auto; float: left; } + .uniForm .multiField .inlineLabel, + .uniForm .blockLabels .multiField .inlineLabel{ display: block; margin: 0 0 .5em 0; } + .uniForm .multiField .blockLabel, + .uniForm .blockLabels .multiField .blockLabel{ float: left; width: auto; margin: 0; } + .uniForm .multiField .blockLabel .textInput, + .uniForm .multiField .blockLabel .selectInput, + .uniForm .multiField .blockLabel select, + .uniForm .blockLabels .multiField .blockLabel .textInput, + .uniForm .blockLabels .multiField .blockLabel .selectInput, + .uniForm .blockLabels .multiField .blockLabel select{ width: 100%; margin: 0; } + +/* ------------------------------------------------------------------------------ */ + + /* Styles for form controls where labels are in line with the input elements */ + /* Set the class of the parent (preferably to a fieldset) to .inlineLabels */ + .uniForm .inlineLabels label, + .uniForm .inlineLabels .label{ float: left; margin: 0; padding: 0; line-height: 100%; position: relative; } + + /* Float the input elements */ + .uniForm .inlineLabels .textInput, + .uniForm .inlineLabels .fileUpload, + .uniForm .inlineLabels .selectInput, + .uniForm .inlineLabels select, + .uniForm .inlineLabels textarea{ float: left; } + + /* Postition the hints */ + .uniForm .inlineLabels .formHint{ clear: both; float: none; } + .uniForm .inlineLabels .multiField{ float: left; } + .uniForm .inlineLabels .multiField .inlineLabel{} + .uniForm .inlineLabels .multiField .blockLabel{} + .uniForm .inlineLabels .multiField .blockLabel .textInput, + .uniForm .inlineLabels .multiField .blockLabel .selectInput, + .uniForm .inlineLabels .multiField .blockLabel select{ display: block; width: 100%; float: none; } + .uniForm .inlineLabels .multiField select{ float: left; } + +/* ------------------------------------------------------------------------------ */ + + /* Required fields asterisk styling for .blockLabels */ + .uniForm label em, + .uniForm .label em, + .uniForm .blockLabels label em, + .uniForm .blockLabels .label em{ position: absolute; left: -7px; } + + /* Required fields asterisk styling for .inlineLabels */ + .uniForm .inlineLabels label em, + .uniForm .inlineLabels .label em{ display: block; position: absolute; left: auto; right: 0; font-style: normal; font-weight: bold; } + .uniForm .inlineLabel em{ position: absolute; left: 7px; } + +/* ------------------------------------------------------------------------------ */ + + /* Messages */ + .uniForm #errorMsg, + .uniForm .error{ + } + .uniForm #errorMsg dt, + .uniForm #errorMsg h3{ + } + .uniForm #errorMsg dd{ + } + .uniForm #errorMsg ol{ + } + .uniForm #errorMsg ol li{ + } + .uniForm .errorField{ + } + + .uniForm #OKMsg{ + } + +/* ------------------------------------------------------------------------------ */ + + /* Columns */ + + .uniForm .col{ float: left; } + .uniForm .col.first{} + .uniForm .col.last{} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/css/screen/uni-form.css b/interface/ispconfig/interface/themes/default/css/screen/uni-form.css new file mode 100644 index 0000000..008885a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/css/screen/uni-form.css @@ -0,0 +1,130 @@ +/* Keep in mind that wherever you see 'Required property' it means that the property must exist */ + +/* ------------------------------------------------------------------------------ */ + + /* Generals */ + .uniForm fieldset{} + .uniForm fieldset legend{ color: #333; font-weight: bold; font-size: 100%; margin: 0; padding: 1.5em 1.5em 1.5em 0; } + + /* This is the main unit that contains our form elements */ + .uniForm .ctrlHolder{ padding: 3px; border-bottom: 1px dotted #dfdfdf; } + + .uniForm .buttonHolder{ + text-align: right; + background: #CEDEEF url("../../images/buttonHolder_bg.gif") no-repeat right; + margin: 1em 0; + padding: 8px; + } + .uniForm .resetButton{ float: left; } + .uniForm .primaryAction{ font-weight: bold; } + + /* This class gets added to div.ctrlHolder to highlight the row */ + .uniForm .focused{ background: #fffcdf; } + + /* .inlineLabel is used for inputs within labels - checkboxes and radio buttons */ + .uniForm .inlineLabel input, + .uniForm .inlineLabels .inlineLabel input, + .uniForm .blockLabels .inlineLabel input{ float: left; margin: 0 .4em 0 0; } + .uniForm .inlineLabel span{ float: left; width: 90%; } + +/* ------------------------------------------------------------------------------ */ + + /* .blockLabels (default style, will be applied even if you don't class the parent element) */ + .uniForm .blockLabels .ctrlHolder{} + + .uniForm label, + .uniForm .blockLabels label, + .uniForm .blockLabels .label{ margin: 0 0 .5em 0; } + + .uniForm .textInput, + .uniForm .blockLabels .textInput, + .uniForm .blockLabels .fileUpload{ width: 43%; /* <- Required property */ } + + .uniForm .selectInput, + .uniForm select, + .uniForm .blockLabels .selectInput, + .uniForm .blockLabels select{ width: 43.5%; /* <- Required property */ } + .uniForm textarea, + .uniForm .blockLabels textarea{ width: 43%; /* <- Required property */ height: 12em; } + + .uniForm .formHint, + .uniForm .blockLabels .formHint{ width: 55%; /* <- Required property */ font-size: .9em; color: #777; position: relative; top: -.5em; } + + .uniForm .multiField, + .uniForm .blockLabels .multiField{ width: 43%; } + .uniForm .multiField .inlineLabel, + .uniForm .blockLabels .multiField .inlineLabel{ display: block; margin: 0 0 .5em 0; } + .uniForm .multiField .blockLabel, + .uniForm .blockLabels .multiField .blockLabel{ width: 30%; margin: 0 10px 0 0; } + .uniForm .multiField .blockLabel .textInput, + .uniForm .multiField .blockLabel .selectInput, + .uniForm .multiField .blockLabel select, + .uniForm .blockLabels .multiField .blockLabel .textInput, + .uniForm .blockLabels .multiField .blockLabel .selectInput, + .uniForm .blockLabels .multiField .blockLabel select{ width: 100%; margin: .3em 0 0 0; } + +/* ------------------------------------------------------------------------------ */ + + /* .inlineLabels */ + .uniForm .inlineLabels .ctrlHolder{} + + .uniForm .inlineLabels label, + .uniForm .inlineLabels .label{ width: 20%; /* <- Required property */ margin: .3em 2% 0 0; /* <- Required property */ } + + .uniForm .inlineLabels .textInput, + .uniForm .inlineLabels .fileUpload{ width: 35%; /* <- Required property */ } + + .uniForm .inlineLabels .selectInput, + .uniForm .inlineLabels select{ width: 35%; /* <- Required property */ } + + .uniForm .inlineLabels textarea{ width: 35%; /* <- Required property */ height: 12em; } + + .uniForm .inlineLabels .formHint{ margin-top: 0; margin-left: 22%; font-size: .9em; color: #777; position: static; } + + .uniForm .inlineLabels .multiField{ width: 60%; /* <- Required property */ margin: 0 0 .3em 0; } + .uniForm .inlineLabels .multiField .inlineLabel{ display: block; margin: 0 0 .5em 0; } + .uniForm .inlineLabels .multiField .blockLabel{ float: left; width: 26%; margin: 0 3% 0 0; } + .uniForm .inlineLabels .multiField .blockLabel .textInput, + .uniForm .inlineLabels .multiField .blockLabel .selectInput, + .uniForm .inlineLabels .multiField .blockLabel select{ width: 100%; margin: .3em 0 0 0; } + +/* Focus pseudoclasses */ +.uniForm .ctrlHolder .textInput:focus{ outline: none; /* Get rid of the 'glow' effect in WebKit, optional */ } +.uniForm .ctrlHolder textarea:focus{ outline: none; /* Get rid of the 'glow' effect in WebKit, optional */ } +.uniForm div.focused .formHint{ color: #333; } + +/* Columns (they are floated left by default) */ +.uniForm .col{ width: 37.9%; /* <- Required property */ margin: 0 2% 20px 0; } +/* Use .first and .last classes to control the layout/spacing of your columns */ +.uniForm .col.first{ width: 39%; /* <- Required property */ float: left; clear: none; } +.uniForm .col.last{ width: 39%; /* <- Required property */ float: right; clear: none; margin-right: 0; } + +/* Messages */ +.uniForm #errorMsg{ background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px; } +.uniForm .error{ background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; } + + .uniForm #errorMsg dt, .uniForm #errorMsg h3{ margin: 0 0 .5em 0; font-size: 100%; line-height: 100%; font-weight: bold; } + .uniForm #errorMsg dd{ margin: 0; padding: 0; } + .uniForm #errorMsg ol{ margin: 0; padding: 0; } + .uniForm #errorMsg ol li{ margin: 0; padding: 2px; list-style-position: inside; border-bottom: 1px dotted #df7d7d; position: relative; } + .uniForm .errorField{ color: #af4c4c; margin: 0 0 6px 0; padding: 4px; background: #ffbfbf; } + +.uniForm #OKMsg{ background: #C8FFBF; border: 1px solid #A2EF95; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px; } + .uniForm #OKMsg p{ margin: 0; } + +/* +IT IS STRONGLY ADVISED TO MAKE YOUR CHANGES AFTER THIS COMMENT BY REPEATING (COPYING) THE SELECTOR FROM ABOVE, +AND MODIFYING IT WITH YOUR OWN PROPERTIES/VALUES. THIS IS RECOMMENDED BECAUSE IF YOU HAPPEN TO RUN INTO TROUBLE, +YOU CAN VERY EASILY REVERT TO A GENERIC STYLE OF UNI-FORM. BEST OF LUCK... +*/ + +/* ------------------------------------------------------------------------------ */ + +/* This is the main unit that contains our form elements */ + +.uniForm .textInput, .uniForm .selectInput, .uniForm textarea { + background:#FFFFFF none repeat scroll 0 0; + border: 1px solid #DFDFDF; + padding: 1px; +} + diff --git a/interface/ispconfig/interface/themes/default/header_logo.png b/interface/ispconfig/interface/themes/default/header_logo.png new file mode 100644 index 0000000..38ba1eb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/header_logo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ad.png b/interface/ispconfig/interface/themes/default/icons/flags/ad.png new file mode 100644 index 0000000..625ca84 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ad.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ae.png b/interface/ispconfig/interface/themes/default/icons/flags/ae.png new file mode 100644 index 0000000..ef3a1ec --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ae.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/af.png b/interface/ispconfig/interface/themes/default/icons/flags/af.png new file mode 100644 index 0000000..a4742e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/af.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ag.png b/interface/ispconfig/interface/themes/default/icons/flags/ag.png new file mode 100644 index 0000000..556d550 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ag.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ai.png b/interface/ispconfig/interface/themes/default/icons/flags/ai.png new file mode 100644 index 0000000..74ed29d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ai.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/al.png b/interface/ispconfig/interface/themes/default/icons/flags/al.png new file mode 100644 index 0000000..92354cb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/al.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/am.png b/interface/ispconfig/interface/themes/default/icons/flags/am.png new file mode 100644 index 0000000..344a2a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/am.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/an.png b/interface/ispconfig/interface/themes/default/icons/flags/an.png new file mode 100644 index 0000000..633e4b8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/an.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ao.png b/interface/ispconfig/interface/themes/default/icons/flags/ao.png new file mode 100644 index 0000000..bcbd1d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ao.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/aq.png b/interface/ispconfig/interface/themes/default/icons/flags/aq.png new file mode 100644 index 0000000..9c6602f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/aq.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ar.png b/interface/ispconfig/interface/themes/default/icons/flags/ar.png new file mode 100644 index 0000000..e5ef8f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/as.png b/interface/ispconfig/interface/themes/default/icons/flags/as.png new file mode 100644 index 0000000..32f30e4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/as.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/at.png b/interface/ispconfig/interface/themes/default/icons/flags/at.png new file mode 100644 index 0000000..0f15f34 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/at.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/au.png b/interface/ispconfig/interface/themes/default/icons/flags/au.png new file mode 100644 index 0000000..a01389a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/au.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/aw.png b/interface/ispconfig/interface/themes/default/icons/flags/aw.png new file mode 100644 index 0000000..a3579c2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/aw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ax.png b/interface/ispconfig/interface/themes/default/icons/flags/ax.png new file mode 100644 index 0000000..1eea80a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ax.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/az.png b/interface/ispconfig/interface/themes/default/icons/flags/az.png new file mode 100644 index 0000000..4ee9fe5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/az.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ba.png b/interface/ispconfig/interface/themes/default/icons/flags/ba.png new file mode 100644 index 0000000..c774992 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ba.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bb.png b/interface/ispconfig/interface/themes/default/icons/flags/bb.png new file mode 100644 index 0000000..0df19c7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bb.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bd.png b/interface/ispconfig/interface/themes/default/icons/flags/bd.png new file mode 100644 index 0000000..076a8bf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bd.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/be.png b/interface/ispconfig/interface/themes/default/icons/flags/be.png new file mode 100644 index 0000000..d86ebc8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/be.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bf.png b/interface/ispconfig/interface/themes/default/icons/flags/bf.png new file mode 100644 index 0000000..ab5ce8f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bg.png b/interface/ispconfig/interface/themes/default/icons/flags/bg.png new file mode 100644 index 0000000..0469f06 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bh.png b/interface/ispconfig/interface/themes/default/icons/flags/bh.png new file mode 100644 index 0000000..ea8ce68 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bi.png b/interface/ispconfig/interface/themes/default/icons/flags/bi.png new file mode 100644 index 0000000..5cc2e30 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bi.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bj.png b/interface/ispconfig/interface/themes/default/icons/flags/bj.png new file mode 100644 index 0000000..1cc8b45 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bj.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bm.png b/interface/ispconfig/interface/themes/default/icons/flags/bm.png new file mode 100644 index 0000000..c0c7aea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bn.png b/interface/ispconfig/interface/themes/default/icons/flags/bn.png new file mode 100644 index 0000000..8fb0984 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bo.png b/interface/ispconfig/interface/themes/default/icons/flags/bo.png new file mode 100644 index 0000000..ce7ba52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/br.png b/interface/ispconfig/interface/themes/default/icons/flags/br.png new file mode 100644 index 0000000..9b1a553 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/br.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bs.png b/interface/ispconfig/interface/themes/default/icons/flags/bs.png new file mode 100644 index 0000000..639fa6c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bt.png b/interface/ispconfig/interface/themes/default/icons/flags/bt.png new file mode 100644 index 0000000..1d512df --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bv.png b/interface/ispconfig/interface/themes/default/icons/flags/bv.png new file mode 100644 index 0000000..160b6b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bw.png b/interface/ispconfig/interface/themes/default/icons/flags/bw.png new file mode 100644 index 0000000..fcb1039 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/by.png b/interface/ispconfig/interface/themes/default/icons/flags/by.png new file mode 100644 index 0000000..504774e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/by.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/bz.png b/interface/ispconfig/interface/themes/default/icons/flags/bz.png new file mode 100644 index 0000000..be63ee1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/bz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ca.png b/interface/ispconfig/interface/themes/default/icons/flags/ca.png new file mode 100644 index 0000000..1f20419 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ca.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/catalonia.png b/interface/ispconfig/interface/themes/default/icons/flags/catalonia.png new file mode 100644 index 0000000..5041e30 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/catalonia.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cc.png b/interface/ispconfig/interface/themes/default/icons/flags/cc.png new file mode 100644 index 0000000..aed3d3b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cd.png b/interface/ispconfig/interface/themes/default/icons/flags/cd.png new file mode 100644 index 0000000..5e48942 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cd.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cf.png b/interface/ispconfig/interface/themes/default/icons/flags/cf.png new file mode 100644 index 0000000..da687bd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cg.png b/interface/ispconfig/interface/themes/default/icons/flags/cg.png new file mode 100644 index 0000000..a859792 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ch.png b/interface/ispconfig/interface/themes/default/icons/flags/ch.png new file mode 100644 index 0000000..242ec01 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ch.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ci.png b/interface/ispconfig/interface/themes/default/icons/flags/ci.png new file mode 100644 index 0000000..3f2c62e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ci.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ck.png b/interface/ispconfig/interface/themes/default/icons/flags/ck.png new file mode 100644 index 0000000..746d3d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ck.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cl.png b/interface/ispconfig/interface/themes/default/icons/flags/cl.png new file mode 100644 index 0000000..29c6d61 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cm.png b/interface/ispconfig/interface/themes/default/icons/flags/cm.png new file mode 100644 index 0000000..f65c5bd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cn.png b/interface/ispconfig/interface/themes/default/icons/flags/cn.png new file mode 100644 index 0000000..8914414 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/co.png b/interface/ispconfig/interface/themes/default/icons/flags/co.png new file mode 100644 index 0000000..a118ff4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/co.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cr.png b/interface/ispconfig/interface/themes/default/icons/flags/cr.png new file mode 100644 index 0000000..c7a3731 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cs.png b/interface/ispconfig/interface/themes/default/icons/flags/cs.png new file mode 100644 index 0000000..8254790 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cu.png b/interface/ispconfig/interface/themes/default/icons/flags/cu.png new file mode 100644 index 0000000..083f1d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cv.png b/interface/ispconfig/interface/themes/default/icons/flags/cv.png new file mode 100644 index 0000000..a63f7ea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cx.png b/interface/ispconfig/interface/themes/default/icons/flags/cx.png new file mode 100644 index 0000000..48e31ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cx.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cy.png b/interface/ispconfig/interface/themes/default/icons/flags/cy.png new file mode 100644 index 0000000..5b1ad6c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/cz.png b/interface/ispconfig/interface/themes/default/icons/flags/cz.png new file mode 100644 index 0000000..c8403dd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/cz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/de.png b/interface/ispconfig/interface/themes/default/icons/flags/de.png new file mode 100644 index 0000000..ac4a977 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/de.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/dj.png b/interface/ispconfig/interface/themes/default/icons/flags/dj.png new file mode 100644 index 0000000..582af36 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/dj.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/dk.png b/interface/ispconfig/interface/themes/default/icons/flags/dk.png new file mode 100644 index 0000000..e2993d3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/dk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/dm.png b/interface/ispconfig/interface/themes/default/icons/flags/dm.png new file mode 100644 index 0000000..5fbffcb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/dm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/do.png b/interface/ispconfig/interface/themes/default/icons/flags/do.png new file mode 100644 index 0000000..5a04932 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/do.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/dz.png b/interface/ispconfig/interface/themes/default/icons/flags/dz.png new file mode 100644 index 0000000..335c239 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/dz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ec.png b/interface/ispconfig/interface/themes/default/icons/flags/ec.png new file mode 100644 index 0000000..0caa0b1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ec.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ee.png b/interface/ispconfig/interface/themes/default/icons/flags/ee.png new file mode 100644 index 0000000..0c82efb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ee.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/eg.png b/interface/ispconfig/interface/themes/default/icons/flags/eg.png new file mode 100644 index 0000000..8a3f7a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/eg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/eh.png b/interface/ispconfig/interface/themes/default/icons/flags/eh.png new file mode 100644 index 0000000..90a1195 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/eh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/england.png b/interface/ispconfig/interface/themes/default/icons/flags/england.png new file mode 100644 index 0000000..3a7311d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/england.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/er.png b/interface/ispconfig/interface/themes/default/icons/flags/er.png new file mode 100644 index 0000000..13065ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/er.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/es.png b/interface/ispconfig/interface/themes/default/icons/flags/es.png new file mode 100644 index 0000000..c2de2d7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/es.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/et.png b/interface/ispconfig/interface/themes/default/icons/flags/et.png new file mode 100644 index 0000000..2e893fa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/et.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/europeanunion.png b/interface/ispconfig/interface/themes/default/icons/flags/europeanunion.png new file mode 100644 index 0000000..d6d8711 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/europeanunion.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fam.png b/interface/ispconfig/interface/themes/default/icons/flags/fam.png new file mode 100644 index 0000000..cf50c75 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fam.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fi.png b/interface/ispconfig/interface/themes/default/icons/flags/fi.png new file mode 100644 index 0000000..14ec091 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fi.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fj.png b/interface/ispconfig/interface/themes/default/icons/flags/fj.png new file mode 100644 index 0000000..cee9988 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fj.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fk.png b/interface/ispconfig/interface/themes/default/icons/flags/fk.png new file mode 100644 index 0000000..ceaeb27 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fm.png b/interface/ispconfig/interface/themes/default/icons/flags/fm.png new file mode 100644 index 0000000..066bb24 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fo.png b/interface/ispconfig/interface/themes/default/icons/flags/fo.png new file mode 100644 index 0000000..cbceb80 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/fr.png b/interface/ispconfig/interface/themes/default/icons/flags/fr.png new file mode 100644 index 0000000..8332c4e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/fr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ga.png b/interface/ispconfig/interface/themes/default/icons/flags/ga.png new file mode 100644 index 0000000..0e0d434 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ga.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gb.png b/interface/ispconfig/interface/themes/default/icons/flags/gb.png new file mode 100644 index 0000000..ff701e1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gb.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gd.png b/interface/ispconfig/interface/themes/default/icons/flags/gd.png new file mode 100644 index 0000000..9ab57f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gd.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ge.png b/interface/ispconfig/interface/themes/default/icons/flags/ge.png new file mode 100644 index 0000000..728d970 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ge.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gf.png b/interface/ispconfig/interface/themes/default/icons/flags/gf.png new file mode 100644 index 0000000..8332c4e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gh.png b/interface/ispconfig/interface/themes/default/icons/flags/gh.png new file mode 100644 index 0000000..4e2f896 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gi.png b/interface/ispconfig/interface/themes/default/icons/flags/gi.png new file mode 100644 index 0000000..e76797f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gi.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gl.png b/interface/ispconfig/interface/themes/default/icons/flags/gl.png new file mode 100644 index 0000000..ef12a73 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gm.png b/interface/ispconfig/interface/themes/default/icons/flags/gm.png new file mode 100644 index 0000000..0720b66 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gn.png b/interface/ispconfig/interface/themes/default/icons/flags/gn.png new file mode 100644 index 0000000..ea660b0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gp.png b/interface/ispconfig/interface/themes/default/icons/flags/gp.png new file mode 100644 index 0000000..dbb086d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gp.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gq.png b/interface/ispconfig/interface/themes/default/icons/flags/gq.png new file mode 100644 index 0000000..ebe20a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gq.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gr.png b/interface/ispconfig/interface/themes/default/icons/flags/gr.png new file mode 100644 index 0000000..8651ade --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gs.png b/interface/ispconfig/interface/themes/default/icons/flags/gs.png new file mode 100644 index 0000000..7ef0bf5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gt.png b/interface/ispconfig/interface/themes/default/icons/flags/gt.png new file mode 100644 index 0000000..c43a70d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gu.png b/interface/ispconfig/interface/themes/default/icons/flags/gu.png new file mode 100644 index 0000000..92f37c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gw.png b/interface/ispconfig/interface/themes/default/icons/flags/gw.png new file mode 100644 index 0000000..b37bcf0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/gy.png b/interface/ispconfig/interface/themes/default/icons/flags/gy.png new file mode 100644 index 0000000..22cbe2f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/gy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/hk.png b/interface/ispconfig/interface/themes/default/icons/flags/hk.png new file mode 100644 index 0000000..d5c380c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/hk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/hm.png b/interface/ispconfig/interface/themes/default/icons/flags/hm.png new file mode 100644 index 0000000..a01389a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/hm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/hn.png b/interface/ispconfig/interface/themes/default/icons/flags/hn.png new file mode 100644 index 0000000..96f8388 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/hn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/hr.png b/interface/ispconfig/interface/themes/default/icons/flags/hr.png new file mode 100644 index 0000000..696b515 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/hr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ht.png b/interface/ispconfig/interface/themes/default/icons/flags/ht.png new file mode 100644 index 0000000..416052a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ht.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/hu.png b/interface/ispconfig/interface/themes/default/icons/flags/hu.png new file mode 100644 index 0000000..7baafe4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/hu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/id.png b/interface/ispconfig/interface/themes/default/icons/flags/id.png new file mode 100644 index 0000000..c6bc0fa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/id.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ie.png b/interface/ispconfig/interface/themes/default/icons/flags/ie.png new file mode 100644 index 0000000..26baa31 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ie.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/il.png b/interface/ispconfig/interface/themes/default/icons/flags/il.png new file mode 100644 index 0000000..2ca772d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/il.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/in.png b/interface/ispconfig/interface/themes/default/icons/flags/in.png new file mode 100644 index 0000000..e4d7e81 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/in.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/io.png b/interface/ispconfig/interface/themes/default/icons/flags/io.png new file mode 100644 index 0000000..3e74b6a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/io.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/iq.png b/interface/ispconfig/interface/themes/default/icons/flags/iq.png new file mode 100644 index 0000000..878a351 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/iq.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ir.png b/interface/ispconfig/interface/themes/default/icons/flags/ir.png new file mode 100644 index 0000000..c5fd136 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ir.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/is.png b/interface/ispconfig/interface/themes/default/icons/flags/is.png new file mode 100644 index 0000000..b8f6d0f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/is.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/it.png b/interface/ispconfig/interface/themes/default/icons/flags/it.png new file mode 100644 index 0000000..89692f7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/it.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/jm.png b/interface/ispconfig/interface/themes/default/icons/flags/jm.png new file mode 100644 index 0000000..7be119e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/jm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/jo.png b/interface/ispconfig/interface/themes/default/icons/flags/jo.png new file mode 100644 index 0000000..11bd497 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/jo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/jp.png b/interface/ispconfig/interface/themes/default/icons/flags/jp.png new file mode 100644 index 0000000..325fbad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/jp.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ke.png b/interface/ispconfig/interface/themes/default/icons/flags/ke.png new file mode 100644 index 0000000..51879ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ke.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kg.png b/interface/ispconfig/interface/themes/default/icons/flags/kg.png new file mode 100644 index 0000000..0a818f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kh.png b/interface/ispconfig/interface/themes/default/icons/flags/kh.png new file mode 100644 index 0000000..30f6bb1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ki.png b/interface/ispconfig/interface/themes/default/icons/flags/ki.png new file mode 100644 index 0000000..2dcce4b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ki.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/km.png b/interface/ispconfig/interface/themes/default/icons/flags/km.png new file mode 100644 index 0000000..812b2f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/km.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kn.png b/interface/ispconfig/interface/themes/default/icons/flags/kn.png new file mode 100644 index 0000000..febd5b4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kp.png b/interface/ispconfig/interface/themes/default/icons/flags/kp.png new file mode 100644 index 0000000..d3d509a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kp.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kr.png b/interface/ispconfig/interface/themes/default/icons/flags/kr.png new file mode 100644 index 0000000..9c0a78e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kw.png b/interface/ispconfig/interface/themes/default/icons/flags/kw.png new file mode 100644 index 0000000..96546da --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ky.png b/interface/ispconfig/interface/themes/default/icons/flags/ky.png new file mode 100644 index 0000000..15c5f8e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ky.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/kz.png b/interface/ispconfig/interface/themes/default/icons/flags/kz.png new file mode 100644 index 0000000..45a8c88 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/kz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/la.png b/interface/ispconfig/interface/themes/default/icons/flags/la.png new file mode 100644 index 0000000..e28acd0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/la.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lb.png b/interface/ispconfig/interface/themes/default/icons/flags/lb.png new file mode 100644 index 0000000..d0d452b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lb.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lc.png b/interface/ispconfig/interface/themes/default/icons/flags/lc.png new file mode 100644 index 0000000..a47d065 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/li.png b/interface/ispconfig/interface/themes/default/icons/flags/li.png new file mode 100644 index 0000000..6469909 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/li.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lk.png b/interface/ispconfig/interface/themes/default/icons/flags/lk.png new file mode 100644 index 0000000..088aad6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lr.png b/interface/ispconfig/interface/themes/default/icons/flags/lr.png new file mode 100644 index 0000000..89a5bc7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ls.png b/interface/ispconfig/interface/themes/default/icons/flags/ls.png new file mode 100644 index 0000000..33fdef1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ls.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lt.png b/interface/ispconfig/interface/themes/default/icons/flags/lt.png new file mode 100644 index 0000000..c8ef0da --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lu.png b/interface/ispconfig/interface/themes/default/icons/flags/lu.png new file mode 100644 index 0000000..4cabba9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/lv.png b/interface/ispconfig/interface/themes/default/icons/flags/lv.png new file mode 100644 index 0000000..49b6998 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/lv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ly.png b/interface/ispconfig/interface/themes/default/icons/flags/ly.png new file mode 100644 index 0000000..b163a9f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ly.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ma.png b/interface/ispconfig/interface/themes/default/icons/flags/ma.png new file mode 100644 index 0000000..f386770 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ma.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mc.png b/interface/ispconfig/interface/themes/default/icons/flags/mc.png new file mode 100644 index 0000000..1aa830f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/md.png b/interface/ispconfig/interface/themes/default/icons/flags/md.png new file mode 100644 index 0000000..4e92c18 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/md.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/me.png b/interface/ispconfig/interface/themes/default/icons/flags/me.png new file mode 100644 index 0000000..ac72535 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/me.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mg.png b/interface/ispconfig/interface/themes/default/icons/flags/mg.png new file mode 100644 index 0000000..d2715b3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mh.png b/interface/ispconfig/interface/themes/default/icons/flags/mh.png new file mode 100644 index 0000000..fb523a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mk.png b/interface/ispconfig/interface/themes/default/icons/flags/mk.png new file mode 100644 index 0000000..db173aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ml.png b/interface/ispconfig/interface/themes/default/icons/flags/ml.png new file mode 100644 index 0000000..2cec8ba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ml.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mm.png b/interface/ispconfig/interface/themes/default/icons/flags/mm.png new file mode 100644 index 0000000..f464f67 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mn.png b/interface/ispconfig/interface/themes/default/icons/flags/mn.png new file mode 100644 index 0000000..9396355 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mo.png b/interface/ispconfig/interface/themes/default/icons/flags/mo.png new file mode 100644 index 0000000..deb801d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mp.png b/interface/ispconfig/interface/themes/default/icons/flags/mp.png new file mode 100644 index 0000000..298d588 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mp.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mq.png b/interface/ispconfig/interface/themes/default/icons/flags/mq.png new file mode 100644 index 0000000..010143b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mq.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mr.png b/interface/ispconfig/interface/themes/default/icons/flags/mr.png new file mode 100644 index 0000000..319546b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ms.png b/interface/ispconfig/interface/themes/default/icons/flags/ms.png new file mode 100644 index 0000000..d4cbb43 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ms.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mt.png b/interface/ispconfig/interface/themes/default/icons/flags/mt.png new file mode 100644 index 0000000..00af948 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mu.png b/interface/ispconfig/interface/themes/default/icons/flags/mu.png new file mode 100644 index 0000000..b7fdce1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mv.png b/interface/ispconfig/interface/themes/default/icons/flags/mv.png new file mode 100644 index 0000000..5073d9e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mw.png b/interface/ispconfig/interface/themes/default/icons/flags/mw.png new file mode 100644 index 0000000..13886e9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mx.png b/interface/ispconfig/interface/themes/default/icons/flags/mx.png new file mode 100644 index 0000000..5bc58ab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mx.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/my.png b/interface/ispconfig/interface/themes/default/icons/flags/my.png new file mode 100644 index 0000000..9034cba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/my.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/mz.png b/interface/ispconfig/interface/themes/default/icons/flags/mz.png new file mode 100644 index 0000000..76405e0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/mz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/na.png b/interface/ispconfig/interface/themes/default/icons/flags/na.png new file mode 100644 index 0000000..63358c6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/na.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nc.png b/interface/ispconfig/interface/themes/default/icons/flags/nc.png new file mode 100644 index 0000000..2cad283 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ne.png b/interface/ispconfig/interface/themes/default/icons/flags/ne.png new file mode 100644 index 0000000..d85f424 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ne.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nf.png b/interface/ispconfig/interface/themes/default/icons/flags/nf.png new file mode 100644 index 0000000..f9bcdda --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ng.png b/interface/ispconfig/interface/themes/default/icons/flags/ng.png new file mode 100644 index 0000000..3eea2e0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ng.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ni.png b/interface/ispconfig/interface/themes/default/icons/flags/ni.png new file mode 100644 index 0000000..3969aaa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ni.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nl.png b/interface/ispconfig/interface/themes/default/icons/flags/nl.png new file mode 100644 index 0000000..fe44791 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/no.png b/interface/ispconfig/interface/themes/default/icons/flags/no.png new file mode 100644 index 0000000..160b6b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/no.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/np.png b/interface/ispconfig/interface/themes/default/icons/flags/np.png new file mode 100644 index 0000000..aeb058b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/np.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nr.png b/interface/ispconfig/interface/themes/default/icons/flags/nr.png new file mode 100644 index 0000000..705fc33 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nu.png b/interface/ispconfig/interface/themes/default/icons/flags/nu.png new file mode 100644 index 0000000..c3ce4ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/nz.png b/interface/ispconfig/interface/themes/default/icons/flags/nz.png new file mode 100644 index 0000000..10d6306 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/nz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/om.png b/interface/ispconfig/interface/themes/default/icons/flags/om.png new file mode 100644 index 0000000..2ffba7e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/om.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pa.png b/interface/ispconfig/interface/themes/default/icons/flags/pa.png new file mode 100644 index 0000000..9b2ee9a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pa.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pe.png b/interface/ispconfig/interface/themes/default/icons/flags/pe.png new file mode 100644 index 0000000..62a0497 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pe.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pf.png b/interface/ispconfig/interface/themes/default/icons/flags/pf.png new file mode 100644 index 0000000..771a0f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pg.png b/interface/ispconfig/interface/themes/default/icons/flags/pg.png new file mode 100644 index 0000000..10d6233 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ph.png b/interface/ispconfig/interface/themes/default/icons/flags/ph.png new file mode 100644 index 0000000..b89e159 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ph.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pk.png b/interface/ispconfig/interface/themes/default/icons/flags/pk.png new file mode 100644 index 0000000..e9df70c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pl.png b/interface/ispconfig/interface/themes/default/icons/flags/pl.png new file mode 100644 index 0000000..d413d01 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pm.png b/interface/ispconfig/interface/themes/default/icons/flags/pm.png new file mode 100644 index 0000000..ba91d2c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pn.png b/interface/ispconfig/interface/themes/default/icons/flags/pn.png new file mode 100644 index 0000000..aa9344f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pr.png b/interface/ispconfig/interface/themes/default/icons/flags/pr.png new file mode 100644 index 0000000..82d9130 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ps.png b/interface/ispconfig/interface/themes/default/icons/flags/ps.png new file mode 100644 index 0000000..f5f5477 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ps.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pt.png b/interface/ispconfig/interface/themes/default/icons/flags/pt.png new file mode 100644 index 0000000..ece7980 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/pw.png b/interface/ispconfig/interface/themes/default/icons/flags/pw.png new file mode 100644 index 0000000..6178b25 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/pw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/py.png b/interface/ispconfig/interface/themes/default/icons/flags/py.png new file mode 100644 index 0000000..cb8723c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/py.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/qa.png b/interface/ispconfig/interface/themes/default/icons/flags/qa.png new file mode 100644 index 0000000..ed4c621 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/qa.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/re.png b/interface/ispconfig/interface/themes/default/icons/flags/re.png new file mode 100644 index 0000000..8332c4e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/re.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ro.png b/interface/ispconfig/interface/themes/default/icons/flags/ro.png new file mode 100644 index 0000000..57e74a6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ro.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/rs.png b/interface/ispconfig/interface/themes/default/icons/flags/rs.png new file mode 100644 index 0000000..9439a5b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/rs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ru.png b/interface/ispconfig/interface/themes/default/icons/flags/ru.png new file mode 100644 index 0000000..47da421 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ru.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/rw.png b/interface/ispconfig/interface/themes/default/icons/flags/rw.png new file mode 100644 index 0000000..5356491 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/rw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sa.png b/interface/ispconfig/interface/themes/default/icons/flags/sa.png new file mode 100644 index 0000000..b4641c7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sa.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sb.png b/interface/ispconfig/interface/themes/default/icons/flags/sb.png new file mode 100644 index 0000000..a9937cc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sb.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sc.png b/interface/ispconfig/interface/themes/default/icons/flags/sc.png new file mode 100644 index 0000000..39ee371 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/scotland.png b/interface/ispconfig/interface/themes/default/icons/flags/scotland.png new file mode 100644 index 0000000..a0e57b4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/scotland.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sd.png b/interface/ispconfig/interface/themes/default/icons/flags/sd.png new file mode 100644 index 0000000..eaab69e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sd.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/se.png b/interface/ispconfig/interface/themes/default/icons/flags/se.png new file mode 100644 index 0000000..1994653 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/se.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sg.png b/interface/ispconfig/interface/themes/default/icons/flags/sg.png new file mode 100644 index 0000000..dd34d61 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sh.png b/interface/ispconfig/interface/themes/default/icons/flags/sh.png new file mode 100644 index 0000000..4b1d2a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/si.png b/interface/ispconfig/interface/themes/default/icons/flags/si.png new file mode 100644 index 0000000..bb1476f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/si.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sj.png b/interface/ispconfig/interface/themes/default/icons/flags/sj.png new file mode 100644 index 0000000..160b6b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sj.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sk.png b/interface/ispconfig/interface/themes/default/icons/flags/sk.png new file mode 100644 index 0000000..7ccbc82 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sl.png b/interface/ispconfig/interface/themes/default/icons/flags/sl.png new file mode 100644 index 0000000..12d812d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sm.png b/interface/ispconfig/interface/themes/default/icons/flags/sm.png new file mode 100644 index 0000000..3df2fdc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sn.png b/interface/ispconfig/interface/themes/default/icons/flags/sn.png new file mode 100644 index 0000000..eabb71d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/so.png b/interface/ispconfig/interface/themes/default/icons/flags/so.png new file mode 100644 index 0000000..4a1ea4b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/so.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sr.png b/interface/ispconfig/interface/themes/default/icons/flags/sr.png new file mode 100644 index 0000000..5eff927 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/st.png b/interface/ispconfig/interface/themes/default/icons/flags/st.png new file mode 100644 index 0000000..2978557 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/st.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sv.png b/interface/ispconfig/interface/themes/default/icons/flags/sv.png new file mode 100644 index 0000000..2498799 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sy.png b/interface/ispconfig/interface/themes/default/icons/flags/sy.png new file mode 100644 index 0000000..f5ce30d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/sz.png b/interface/ispconfig/interface/themes/default/icons/flags/sz.png new file mode 100644 index 0000000..914ee86 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/sz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tc.png b/interface/ispconfig/interface/themes/default/icons/flags/tc.png new file mode 100644 index 0000000..8fc1156 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/td.png b/interface/ispconfig/interface/themes/default/icons/flags/td.png new file mode 100644 index 0000000..667f21f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/td.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tf.png b/interface/ispconfig/interface/themes/default/icons/flags/tf.png new file mode 100644 index 0000000..80529a4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tg.png b/interface/ispconfig/interface/themes/default/icons/flags/tg.png new file mode 100644 index 0000000..3aa00ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/th.png b/interface/ispconfig/interface/themes/default/icons/flags/th.png new file mode 100644 index 0000000..dd8ba91 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/th.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tj.png b/interface/ispconfig/interface/themes/default/icons/flags/tj.png new file mode 100644 index 0000000..617bf64 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tj.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tk.png b/interface/ispconfig/interface/themes/default/icons/flags/tk.png new file mode 100644 index 0000000..67b8c8c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tl.png b/interface/ispconfig/interface/themes/default/icons/flags/tl.png new file mode 100644 index 0000000..77da181 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tl.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tm.png b/interface/ispconfig/interface/themes/default/icons/flags/tm.png new file mode 100644 index 0000000..828020e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tn.png b/interface/ispconfig/interface/themes/default/icons/flags/tn.png new file mode 100644 index 0000000..183cdd3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/to.png b/interface/ispconfig/interface/themes/default/icons/flags/to.png new file mode 100644 index 0000000..f89b8ba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/to.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tr.png b/interface/ispconfig/interface/themes/default/icons/flags/tr.png new file mode 100644 index 0000000..be32f77 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tr.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tt.png b/interface/ispconfig/interface/themes/default/icons/flags/tt.png new file mode 100644 index 0000000..2a11c1e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tv.png b/interface/ispconfig/interface/themes/default/icons/flags/tv.png new file mode 100644 index 0000000..28274c5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tv.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tw.png b/interface/ispconfig/interface/themes/default/icons/flags/tw.png new file mode 100644 index 0000000..f31c654 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/tz.png b/interface/ispconfig/interface/themes/default/icons/flags/tz.png new file mode 100644 index 0000000..c00ff79 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/tz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ua.png b/interface/ispconfig/interface/themes/default/icons/flags/ua.png new file mode 100644 index 0000000..09563a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ua.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ug.png b/interface/ispconfig/interface/themes/default/icons/flags/ug.png new file mode 100644 index 0000000..33f4aff --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ug.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/um.png b/interface/ispconfig/interface/themes/default/icons/flags/um.png new file mode 100644 index 0000000..c1dd965 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/um.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/us.png b/interface/ispconfig/interface/themes/default/icons/flags/us.png new file mode 100644 index 0000000..10f451f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/us.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/uy.png b/interface/ispconfig/interface/themes/default/icons/flags/uy.png new file mode 100644 index 0000000..31d948a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/uy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/uz.png b/interface/ispconfig/interface/themes/default/icons/flags/uz.png new file mode 100644 index 0000000..fef5dc1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/uz.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/va.png b/interface/ispconfig/interface/themes/default/icons/flags/va.png new file mode 100644 index 0000000..b31eaf2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/va.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/vc.png b/interface/ispconfig/interface/themes/default/icons/flags/vc.png new file mode 100644 index 0000000..8fa17b0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/vc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ve.png b/interface/ispconfig/interface/themes/default/icons/flags/ve.png new file mode 100644 index 0000000..00c90f9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ve.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/vg.png b/interface/ispconfig/interface/themes/default/icons/flags/vg.png new file mode 100644 index 0000000..4156907 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/vg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/vi.png b/interface/ispconfig/interface/themes/default/icons/flags/vi.png new file mode 100644 index 0000000..ed26915 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/vi.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/vn.png b/interface/ispconfig/interface/themes/default/icons/flags/vn.png new file mode 100644 index 0000000..ec7cd48 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/vn.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/vu.png b/interface/ispconfig/interface/themes/default/icons/flags/vu.png new file mode 100644 index 0000000..b3397bc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/vu.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/wales.png b/interface/ispconfig/interface/themes/default/icons/flags/wales.png new file mode 100644 index 0000000..e0d7cee --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/wales.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/wf.png b/interface/ispconfig/interface/themes/default/icons/flags/wf.png new file mode 100644 index 0000000..9f95587 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/wf.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ws.png b/interface/ispconfig/interface/themes/default/icons/flags/ws.png new file mode 100644 index 0000000..c169508 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ws.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/ye.png b/interface/ispconfig/interface/themes/default/icons/flags/ye.png new file mode 100644 index 0000000..468dfad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/ye.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/yt.png b/interface/ispconfig/interface/themes/default/icons/flags/yt.png new file mode 100644 index 0000000..c298f37 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/yt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/za.png b/interface/ispconfig/interface/themes/default/icons/flags/za.png new file mode 100644 index 0000000..57c58e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/za.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/zm.png b/interface/ispconfig/interface/themes/default/icons/flags/zm.png new file mode 100644 index 0000000..c25b07b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/zm.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/flags/zw.png b/interface/ispconfig/interface/themes/default/icons/flags/zw.png new file mode 100644 index 0000000..53c9725 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/flags/zw.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/accept.png b/interface/ispconfig/interface/themes/default/icons/x12/accept.png new file mode 100644 index 0000000..8ffc727 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/accept.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/accept_blue.png b/interface/ispconfig/interface/themes/default/icons/x12/accept_blue.png new file mode 100644 index 0000000..655cda4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/accept_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/accept_green.png b/interface/ispconfig/interface/themes/default/icons/x12/accept_green.png new file mode 100644 index 0000000..2706619 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/accept_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_left_round.png b/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_left_round.png new file mode 100644 index 0000000..7d53f19 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_left_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_right_round.png b/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_right_round.png new file mode 100644 index 0000000..d261b87 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/arrow_2_right_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/arrow_left_blue_round.png b/interface/ispconfig/interface/themes/default/icons/x12/arrow_left_blue_round.png new file mode 100644 index 0000000..ef13755 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/arrow_left_blue_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/arrow_right_blue_round.png b/interface/ispconfig/interface/themes/default/icons/x12/arrow_right_blue_round.png new file mode 100644 index 0000000..bd0e72a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/arrow_right_blue_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/article.png b/interface/ispconfig/interface/themes/default/icons/x12/article.png new file mode 100644 index 0000000..fe05910 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/article.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/article_text.png b/interface/ispconfig/interface/themes/default/icons/x12/article_text.png new file mode 100644 index 0000000..fd89c64 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/article_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/bar_graph.png b/interface/ispconfig/interface/themes/default/icons/x12/bar_graph.png new file mode 100644 index 0000000..165da50 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/bar_graph.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/burst.png b/interface/ispconfig/interface/themes/default/icons/x12/burst.png new file mode 100644 index 0000000..6fd39cf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/burst.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/calendar.png b/interface/ispconfig/interface/themes/default/icons/x12/calendar.png new file mode 100644 index 0000000..767e509 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/calendar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/calendar2.png b/interface/ispconfig/interface/themes/default/icons/x12/calendar2.png new file mode 100644 index 0000000..0904c11 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/calendar2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/cancel.png b/interface/ispconfig/interface/themes/default/icons/x12/cancel.png new file mode 100644 index 0000000..6f4436d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/cancel.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/cancel_round.png b/interface/ispconfig/interface/themes/default/icons/x12/cancel_round.png new file mode 100644 index 0000000..ad6e6cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/cancel_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/clock.png b/interface/ispconfig/interface/themes/default/icons/x12/clock.png new file mode 100644 index 0000000..1a40f98 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/clock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/code.png b/interface/ispconfig/interface/themes/default/icons/x12/code.png new file mode 100644 index 0000000..cd19753 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/code.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/comment_blue.png b/interface/ispconfig/interface/themes/default/icons/x12/comment_blue.png new file mode 100644 index 0000000..dabcd82 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/comment_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/dollar.png b/interface/ispconfig/interface/themes/default/icons/x12/dollar.png new file mode 100644 index 0000000..017b266 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/dollar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/double_comment.png b/interface/ispconfig/interface/themes/default/icons/x12/double_comment.png new file mode 100644 index 0000000..ef8900e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/double_comment.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/download.png b/interface/ispconfig/interface/themes/default/icons/x12/download.png new file mode 100644 index 0000000..41f8c15 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/download.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/envelope.png b/interface/ispconfig/interface/themes/default/icons/x12/envelope.png new file mode 100644 index 0000000..3c3f9a5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/envelope.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_black.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_black.png new file mode 100644 index 0000000..35e2c05 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_blue.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_blue.png new file mode 100644 index 0000000..ae4484c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_green.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_green.png new file mode 100644 index 0000000..e1e4e19 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_orange.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_orange.png new file mode 100644 index 0000000..b771e85 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_orange.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_red.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_red.png new file mode 100644 index 0000000..2c1c7c1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/flag_yellow.png b/interface/ispconfig/interface/themes/default/icons/x12/flag_yellow.png new file mode 100644 index 0000000..ee8a9a7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/flag_yellow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/folder.png b/interface/ispconfig/interface/themes/default/icons/x12/folder.png new file mode 100644 index 0000000..f198233 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/folder.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/info.png b/interface/ispconfig/interface/themes/default/icons/x12/info.png new file mode 100644 index 0000000..9f198a9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/info.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/link.png b/interface/ispconfig/interface/themes/default/icons/x12/link.png new file mode 100644 index 0000000..873905d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/link.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/lock.png b/interface/ispconfig/interface/themes/default/icons/x12/lock.png new file mode 100644 index 0000000..b923a8f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/lock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/magnify.png b/interface/ispconfig/interface/themes/default/icons/x12/magnify.png new file mode 100644 index 0000000..3a067af --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/magnify.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/minus.png b/interface/ispconfig/interface/themes/default/icons/x12/minus.png new file mode 100644 index 0000000..c033b4c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/minus_round.png b/interface/ispconfig/interface/themes/default/icons/x12/minus_round.png new file mode 100644 index 0000000..fd5d7be --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/minus_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/money.png b/interface/ispconfig/interface/themes/default/icons/x12/money.png new file mode 100644 index 0000000..949a610 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/money.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/new.png b/interface/ispconfig/interface/themes/default/icons/x12/new.png new file mode 100644 index 0000000..9160594 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/new.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/pencil.png b/interface/ispconfig/interface/themes/default/icons/x12/pencil.png new file mode 100644 index 0000000..c878aec --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/pictures.png b/interface/ispconfig/interface/themes/default/icons/x12/pictures.png new file mode 100644 index 0000000..d72fcc4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/pictures.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/plus.png b/interface/ispconfig/interface/themes/default/icons/x12/plus.png new file mode 100644 index 0000000..2094e84 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/printer.png b/interface/ispconfig/interface/themes/default/icons/x12/printer.png new file mode 100644 index 0000000..0f4816a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/printer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/question_blue.png b/interface/ispconfig/interface/themes/default/icons/x12/question_blue.png new file mode 100644 index 0000000..2e92884 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/question_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/refresh.png b/interface/ispconfig/interface/themes/default/icons/x12/refresh.png new file mode 100644 index 0000000..6826be9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/refresh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/rss.png b/interface/ispconfig/interface/themes/default/icons/x12/rss.png new file mode 100644 index 0000000..1ced8aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/rss.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/rss_round.png b/interface/ispconfig/interface/themes/default/icons/x12/rss_round.png new file mode 100644 index 0000000..1c98061 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/rss_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/security_green.png b/interface/ispconfig/interface/themes/default/icons/x12/security_green.png new file mode 100644 index 0000000..aa89c0e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/security_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/security_orange.png b/interface/ispconfig/interface/themes/default/icons/x12/security_orange.png new file mode 100644 index 0000000..464f902 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/security_orange.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/security_red.png b/interface/ispconfig/interface/themes/default/icons/x12/security_red.png new file mode 100644 index 0000000..a000d28 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/security_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/star.png b/interface/ispconfig/interface/themes/default/icons/x12/star.png new file mode 100644 index 0000000..eadb02a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/star.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/star_blue.png b/interface/ispconfig/interface/themes/default/icons/x12/star_blue.png new file mode 100644 index 0000000..b22182a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/star_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/stop.png b/interface/ispconfig/interface/themes/default/icons/x12/stop.png new file mode 100644 index 0000000..9e4bcca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/stop.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/stop_round.png b/interface/ispconfig/interface/themes/default/icons/x12/stop_round.png new file mode 100644 index 0000000..0dd78cb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/stop_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/upload.png b/interface/ispconfig/interface/themes/default/icons/x12/upload.png new file mode 100644 index 0000000..5cdd1b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/upload.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/world.png b/interface/ispconfig/interface/themes/default/icons/x12/world.png new file mode 100644 index 0000000..e0453e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/world.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x12/world2.png b/interface/ispconfig/interface/themes/default/icons/x12/world2.png new file mode 100644 index 0000000..5b520a6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x12/world2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/accept.png b/interface/ispconfig/interface/themes/default/icons/x16-list/accept.png new file mode 100644 index 0000000..ee8b1d4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/accept.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/accept_blue.png b/interface/ispconfig/interface/themes/default/icons/x16-list/accept_blue.png new file mode 100644 index 0000000..04cfb44 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/accept_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/accept_green.png b/interface/ispconfig/interface/themes/default/icons/x16-list/accept_green.png new file mode 100644 index 0000000..d201296 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/accept_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_left_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_left_round.png new file mode 100644 index 0000000..498bd59 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_left_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_right_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_right_round.png new file mode 100644 index 0000000..ef7015a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_2_right_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_left_blue_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_left_blue_round.png new file mode 100644 index 0000000..34ec1ac --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_left_blue_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_right_blue_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_right_blue_round.png new file mode 100644 index 0000000..d065441 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/arrow_right_blue_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/article.png b/interface/ispconfig/interface/themes/default/icons/x16-list/article.png new file mode 100644 index 0000000..c06b834 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/article.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/article_text.png b/interface/ispconfig/interface/themes/default/icons/x16-list/article_text.png new file mode 100644 index 0000000..767389a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/article_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/bar_graph.png b/interface/ispconfig/interface/themes/default/icons/x16-list/bar_graph.png new file mode 100644 index 0000000..b0ebbd5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/bar_graph.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/burst.png b/interface/ispconfig/interface/themes/default/icons/x16-list/burst.png new file mode 100644 index 0000000..6011059 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/burst.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/calendar.png b/interface/ispconfig/interface/themes/default/icons/x16-list/calendar.png new file mode 100644 index 0000000..a6da5bc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/calendar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/calendar2.png b/interface/ispconfig/interface/themes/default/icons/x16-list/calendar2.png new file mode 100644 index 0000000..49f206d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/calendar2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/cancel.png b/interface/ispconfig/interface/themes/default/icons/x16-list/cancel.png new file mode 100644 index 0000000..c7ddc55 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/cancel.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/cancel_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/cancel_round.png new file mode 100644 index 0000000..f168257 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/cancel_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/clock.png b/interface/ispconfig/interface/themes/default/icons/x16-list/clock.png new file mode 100644 index 0000000..670a06d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/clock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/code.png b/interface/ispconfig/interface/themes/default/icons/x16-list/code.png new file mode 100644 index 0000000..f2fe70d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/code.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/comment_blue.png b/interface/ispconfig/interface/themes/default/icons/x16-list/comment_blue.png new file mode 100644 index 0000000..3741f39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/comment_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/dollar.png b/interface/ispconfig/interface/themes/default/icons/x16-list/dollar.png new file mode 100644 index 0000000..21d6980 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/dollar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/double_comment.png b/interface/ispconfig/interface/themes/default/icons/x16-list/double_comment.png new file mode 100644 index 0000000..6c9d44d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/double_comment.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/download.png b/interface/ispconfig/interface/themes/default/icons/x16-list/download.png new file mode 100644 index 0000000..db80f34 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/download.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/envelope.png b/interface/ispconfig/interface/themes/default/icons/x16-list/envelope.png new file mode 100644 index 0000000..e3117de --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/envelope.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_black.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_black.png new file mode 100644 index 0000000..da54687 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_blue.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_blue.png new file mode 100644 index 0000000..88a5e28 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_green.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_green.png new file mode 100644 index 0000000..bc21176 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_orange.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_orange.png new file mode 100644 index 0000000..384c4c9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_orange.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_red.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_red.png new file mode 100644 index 0000000..7c7cbce --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/flag_yellow.png b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_yellow.png new file mode 100644 index 0000000..8450ca3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/flag_yellow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/folder.png b/interface/ispconfig/interface/themes/default/icons/x16-list/folder.png new file mode 100644 index 0000000..3648f25 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/folder.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/info.png b/interface/ispconfig/interface/themes/default/icons/x16-list/info.png new file mode 100644 index 0000000..b46a2db --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/info.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/link.png b/interface/ispconfig/interface/themes/default/icons/x16-list/link.png new file mode 100644 index 0000000..cc6bce9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/link.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/lock.png b/interface/ispconfig/interface/themes/default/icons/x16-list/lock.png new file mode 100644 index 0000000..142cff2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/lock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/magnify.png b/interface/ispconfig/interface/themes/default/icons/x16-list/magnify.png new file mode 100644 index 0000000..898f89e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/magnify.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/minus.png b/interface/ispconfig/interface/themes/default/icons/x16-list/minus.png new file mode 100644 index 0000000..65942d7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/minus_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/minus_round.png new file mode 100644 index 0000000..a8bdfc9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/minus_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/money.png b/interface/ispconfig/interface/themes/default/icons/x16-list/money.png new file mode 100644 index 0000000..65f3b9e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/money.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/new.png b/interface/ispconfig/interface/themes/default/icons/x16-list/new.png new file mode 100644 index 0000000..ff06720 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/new.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/pencil.png b/interface/ispconfig/interface/themes/default/icons/x16-list/pencil.png new file mode 100644 index 0000000..228f0ee --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/pictures.png b/interface/ispconfig/interface/themes/default/icons/x16-list/pictures.png new file mode 100644 index 0000000..647a899 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/pictures.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/plus.png b/interface/ispconfig/interface/themes/default/icons/x16-list/plus.png new file mode 100644 index 0000000..95bcbb2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/printer.png b/interface/ispconfig/interface/themes/default/icons/x16-list/printer.png new file mode 100644 index 0000000..a9d4ad1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/printer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/question_blue.png b/interface/ispconfig/interface/themes/default/icons/x16-list/question_blue.png new file mode 100644 index 0000000..b5548f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/question_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/refresh.png b/interface/ispconfig/interface/themes/default/icons/x16-list/refresh.png new file mode 100644 index 0000000..390307e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/refresh.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/rss.png b/interface/ispconfig/interface/themes/default/icons/x16-list/rss.png new file mode 100644 index 0000000..4b18863 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/rss.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/rss_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/rss_round.png new file mode 100644 index 0000000..9fde673 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/rss_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/security_green.png b/interface/ispconfig/interface/themes/default/icons/x16-list/security_green.png new file mode 100644 index 0000000..da88982 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/security_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/security_orange.png b/interface/ispconfig/interface/themes/default/icons/x16-list/security_orange.png new file mode 100644 index 0000000..2b49f6d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/security_orange.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/security_red.png b/interface/ispconfig/interface/themes/default/icons/x16-list/security_red.png new file mode 100644 index 0000000..47af1a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/security_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/star.png b/interface/ispconfig/interface/themes/default/icons/x16-list/star.png new file mode 100644 index 0000000..0fac8f8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/star.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/star_blue.png b/interface/ispconfig/interface/themes/default/icons/x16-list/star_blue.png new file mode 100644 index 0000000..8931300 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/star_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/stop.png b/interface/ispconfig/interface/themes/default/icons/x16-list/stop.png new file mode 100644 index 0000000..4fcba90 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/stop.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/stop_round.png b/interface/ispconfig/interface/themes/default/icons/x16-list/stop_round.png new file mode 100644 index 0000000..d7d974a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/stop_round.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/upload.png b/interface/ispconfig/interface/themes/default/icons/x16-list/upload.png new file mode 100644 index 0000000..d97a31d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/upload.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/world.png b/interface/ispconfig/interface/themes/default/icons/x16-list/world.png new file mode 100644 index 0000000..ad69312 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/world.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16-list/world2.png b/interface/ispconfig/interface/themes/default/icons/x16-list/world2.png new file mode 100644 index 0000000..a2e0505 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16-list/world2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book.png new file mode 100644 index 0000000..42d3198 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book__arrow.png new file mode 100644 index 0000000..b8f88c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book__exclamation.png new file mode 100644 index 0000000..4147c47 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book__minus.png new file mode 100644 index 0000000..0d788ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book__pencil.png new file mode 100644 index 0000000..45e8d1e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book__plus.png new file mode 100644 index 0000000..0287b93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/address_book_blue.png b/interface/ispconfig/interface/themes/default/icons/x16/address_book_blue.png new file mode 100644 index 0000000..e446b1b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/address_book_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow.png new file mode 100644 index 0000000..56220a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_000_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_000_small.png new file mode 100644 index 0000000..c0f455a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_000_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_045.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_045.png new file mode 100644 index 0000000..8ebda3e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_045.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_045_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_045_small.png new file mode 100644 index 0000000..0f1bb5a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_045_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_090.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_090.png new file mode 100644 index 0000000..601602e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_090.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_090_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_090_small.png new file mode 100644 index 0000000..4d77317 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_090_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_135.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_135.png new file mode 100644 index 0000000..7a3b963 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_135.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_135_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_135_small.png new file mode 100644 index 0000000..bf077a9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_135_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_180.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_180.png new file mode 100644 index 0000000..5c411c3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_180.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_180_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_180_small.png new file mode 100644 index 0000000..ad99849 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_180_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_225.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_225.png new file mode 100644 index 0000000..ae5f4e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_225.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_225_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_225_small.png new file mode 100644 index 0000000..f9156eb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_225_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_270.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_270.png new file mode 100644 index 0000000..16c2c20 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_270.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_270_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_270_small.png new file mode 100644 index 0000000..1382f72 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_270_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_315.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_315.png new file mode 100644 index 0000000..7ca64a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_315.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_315_small.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_315_small.png new file mode 100644 index 0000000..5a5bd39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_315_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle.png new file mode 100644 index 0000000..728c405 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_135.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_135.png new file mode 100644 index 0000000..b171a82 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_135.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_225.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_225.png new file mode 100644 index 0000000..80a2799 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_225.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_315.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_315.png new file mode 100644 index 0000000..58d5880 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_315.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double.png new file mode 100644 index 0000000..5f84138 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double_135.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double_135.png new file mode 100644 index 0000000..53bc8e0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_circle_double_135.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip.png new file mode 100644 index 0000000..a24b58a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_090.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_090.png new file mode 100644 index 0000000..fdc8730 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_090.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_180.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_180.png new file mode 100644 index 0000000..3dd0aab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_180.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_270.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_270.png new file mode 100644 index 0000000..dce0f75 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_skip_270.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop.png new file mode 100644 index 0000000..0ae7151 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_090.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_090.png new file mode 100644 index 0000000..f0b3b64 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_090.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_180.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_180.png new file mode 100644 index 0000000..5784878 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_180.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_270.png b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_270.png new file mode 100644 index 0000000..34982db --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/arrow_stop_270.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer.png new file mode 100644 index 0000000..382cb60 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__arrow.png new file mode 100644 index 0000000..f7d0522 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__exclamation.png new file mode 100644 index 0000000..9241f35 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__minus.png new file mode 100644 index 0000000..682087b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__pencil.png new file mode 100644 index 0000000..d91e34d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__plus.png new file mode 100644 index 0000000..836db16 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer_gavel.png b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer_gavel.png new file mode 100644 index 0000000..53e3ab0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/auction_hammer_gavel.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon.png new file mode 100644 index 0000000..a1f23f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon__arrow.png new file mode 100644 index 0000000..3725227 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon__exclamation.png new file mode 100644 index 0000000..1e44e7c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon__minus.png new file mode 100644 index 0000000..2794ede --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon__pencil.png new file mode 100644 index 0000000..8f1eea1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon__plus.png new file mode 100644 index 0000000..61b5438 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon_left.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon_left.png new file mode 100644 index 0000000..1bfe0de --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon_left.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon_small.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon_small.png new file mode 100644 index 0000000..0db4cb8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloon_small_left.png b/interface/ispconfig/interface/themes/default/icons/x16/balloon_small_left.png new file mode 100644 index 0000000..d362b9a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloon_small_left.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons.png new file mode 100644 index 0000000..671d72d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons_arrow.png new file mode 100644 index 0000000..a948e12 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons_exclamation.png new file mode 100644 index 0000000..78f9200 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons_minus.png new file mode 100644 index 0000000..1ae44f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons_pencil.png new file mode 100644 index 0000000..8856391 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/balloons_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/balloons_plus.png new file mode 100644 index 0000000..6deae30 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/balloons_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid.png new file mode 100644 index 0000000..dafa648 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_arrow.png new file mode 100644 index 0000000..130dc4b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_exclamation.png new file mode 100644 index 0000000..ac62a2b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_minus.png new file mode 100644 index 0000000..c08fc6e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_pencil.png new file mode 100644 index 0000000..0aedc87 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_plus.png new file mode 100644 index 0000000..2b59d87 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bandaid_small.png b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_small.png new file mode 100644 index 0000000..5db1eed --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bandaid_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank.png b/interface/ispconfig/interface/themes/default/icons/x16/bank.png new file mode 100644 index 0000000..d54c9de --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bank_arrow.png new file mode 100644 index 0000000..1893396 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bank_exclamation.png new file mode 100644 index 0000000..bbd1c5b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bank_minus.png new file mode 100644 index 0000000..22bc36c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bank_pencil.png new file mode 100644 index 0000000..31f3493 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bank_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bank_plus.png new file mode 100644 index 0000000..e727a1d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bank_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell.png b/interface/ispconfig/interface/themes/default/icons/x16/bell.png new file mode 100644 index 0000000..b7c9440 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bell__arrow.png new file mode 100644 index 0000000..3d47267 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bell__exclamation.png new file mode 100644 index 0000000..6dee0be --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bell__minus.png new file mode 100644 index 0000000..83fb4f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bell__pencil.png new file mode 100644 index 0000000..d93d5a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bell__plus.png new file mode 100644 index 0000000..3ecc860 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bell_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/bell_disable.png new file mode 100644 index 0000000..ede39d1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bell_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin.png b/interface/ispconfig/interface/themes/default/icons/x16/bin.png new file mode 100644 index 0000000..4464bf2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bin__arrow.png new file mode 100644 index 0000000..05a25e3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bin__exclamation.png new file mode 100644 index 0000000..c835641 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bin__minus.png new file mode 100644 index 0000000..d9d58d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bin__pencil.png new file mode 100644 index 0000000..98b1c11 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bin__plus.png new file mode 100644 index 0000000..f822f7a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bin_full.png b/interface/ispconfig/interface/themes/default/icons/x16/bin_full.png new file mode 100644 index 0000000..f1c9aab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bin_full.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular.png new file mode 100644 index 0000000..21da6d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular_arrow.png new file mode 100644 index 0000000..6493633 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular_exclamation.png new file mode 100644 index 0000000..c039aed --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular_minus.png new file mode 100644 index 0000000..f28a648 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular_pencil.png new file mode 100644 index 0000000..65ad17c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/binocular_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/binocular_plus.png new file mode 100644 index 0000000..ef7a810 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/binocular_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog.png b/interface/ispconfig/interface/themes/default/icons/x16/blog.png new file mode 100644 index 0000000..89b94ea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/blog__arrow.png new file mode 100644 index 0000000..6d06fb7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/blog__exclamation.png new file mode 100644 index 0000000..e0d89f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/blog__minus.png new file mode 100644 index 0000000..fd5bd7b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/blog__pencil.png new file mode 100644 index 0000000..24ccdb6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/blog__plus.png new file mode 100644 index 0000000..28fa213 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blog_blue.png b/interface/ispconfig/interface/themes/default/icons/x16/blog_blue.png new file mode 100644 index 0000000..d0d2843 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blog_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs.png new file mode 100644 index 0000000..ce125b0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_arrow.png new file mode 100644 index 0000000..24f1d2f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_exclamation.png new file mode 100644 index 0000000..a56a073 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_minus.png new file mode 100644 index 0000000..ab2cdda --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_pencil.png new file mode 100644 index 0000000..f22563a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_plus.png new file mode 100644 index 0000000..d8495a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/blogs_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/blogs_stack.png new file mode 100644 index 0000000..0654617 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/blogs_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book.png b/interface/ispconfig/interface/themes/default/icons/x16/book.png new file mode 100644 index 0000000..1e637f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/book__arrow.png new file mode 100644 index 0000000..e82380c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/book__exclamation.png new file mode 100644 index 0000000..39fb2ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/book__minus.png new file mode 100644 index 0000000..41d37c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/book__pencil.png new file mode 100644 index 0000000..6165652 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/book__plus.png new file mode 100644 index 0000000..07b4946 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book_brown.png b/interface/ispconfig/interface/themes/default/icons/x16/book_brown.png new file mode 100644 index 0000000..a403042 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book_brown.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book_small.png b/interface/ispconfig/interface/themes/default/icons/x16/book_small.png new file mode 100644 index 0000000..438b635 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/book_small_brown.png b/interface/ispconfig/interface/themes/default/icons/x16/book_small_brown.png new file mode 100644 index 0000000..d53f3c1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/book_small_brown.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark.png new file mode 100644 index 0000000..621a067 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__arrow.png new file mode 100644 index 0000000..422961e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__exclamation.png new file mode 100644 index 0000000..73c4661 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__minus.png new file mode 100644 index 0000000..e2d99ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__pencil.png new file mode 100644 index 0000000..184547f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__plus.png new file mode 100644 index 0000000..b897a36 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark__small.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__small.png new file mode 100644 index 0000000..2071674 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark__small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book.png new file mode 100644 index 0000000..51e91a7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_arrow.png new file mode 100644 index 0000000..64af0f4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_exclamation.png new file mode 100644 index 0000000..de35041 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_minus.png new file mode 100644 index 0000000..ce4f7c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_pencil.png new file mode 100644 index 0000000..c49f600 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_plus.png new file mode 100644 index 0000000..be9c183 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_book_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document.png new file mode 100644 index 0000000..2587f93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_arrow.png new file mode 100644 index 0000000..f11fd0d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_exclamation.png new file mode 100644 index 0000000..3de5313 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_minus.png new file mode 100644 index 0000000..26e61f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_pencil.png new file mode 100644 index 0000000..f0f5da9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_plus.png new file mode 100644 index 0000000..b4d509c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_document_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder.png new file mode 100644 index 0000000..d9fa744 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_arrow.png new file mode 100644 index 0000000..29013df --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_exclamation.png new file mode 100644 index 0000000..273ea99 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_minus.png new file mode 100644 index 0000000..2c50a30 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_pencil.png new file mode 100644 index 0000000..c9e2c59 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_plus.png new file mode 100644 index 0000000..fd23ab2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/bookmark_folder_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books.png b/interface/ispconfig/interface/themes/default/icons/x16/books.png new file mode 100644 index 0000000..ca50079 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/books__arrow.png new file mode 100644 index 0000000..778e316 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/books__exclamation.png new file mode 100644 index 0000000..92b5427 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/books__minus.png new file mode 100644 index 0000000..0ad928b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/books__pencil.png new file mode 100644 index 0000000..7b787a7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/books__plus.png new file mode 100644 index 0000000..13033dc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books_brown.png b/interface/ispconfig/interface/themes/default/icons/x16/books_brown.png new file mode 100644 index 0000000..c74cec6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books_brown.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/books_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/books_stack.png new file mode 100644 index 0000000..057ee1e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/books_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box.png b/interface/ispconfig/interface/themes/default/icons/x16/box.png new file mode 100644 index 0000000..78578c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/box__arrow.png new file mode 100644 index 0000000..4b8d163 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/box__exclamation.png new file mode 100644 index 0000000..e5cb379 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/box__minus.png new file mode 100644 index 0000000..16c299f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/box__pencil.png new file mode 100644 index 0000000..eba0e52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/box__plus.png new file mode 100644 index 0000000..9cea3b8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/box_label.png b/interface/ispconfig/interface/themes/default/icons/x16/box_label.png new file mode 100644 index 0000000..dbd8dfb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/box_label.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase.png new file mode 100644 index 0000000..fe0a2d4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_arrow.png new file mode 100644 index 0000000..612cead --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_exclamation.png new file mode 100644 index 0000000..6466d09 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_minus.png new file mode 100644 index 0000000..1915103 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_pencil.png new file mode 100644 index 0000000..63fdbd7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/briefcase_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_plus.png new file mode 100644 index 0000000..609d59a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/briefcase_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom.png b/interface/ispconfig/interface/themes/default/icons/x16/broom.png new file mode 100644 index 0000000..d9f914a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/broom_arrow.png new file mode 100644 index 0000000..87f964d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/broom_exclamation.png new file mode 100644 index 0000000..0eb5863 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/broom_minus.png new file mode 100644 index 0000000..acce4b1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/broom_pencil.png new file mode 100644 index 0000000..0c2cf23 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/broom_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/broom_plus.png new file mode 100644 index 0000000..b5e2af0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/broom_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator.png new file mode 100644 index 0000000..d63ac41 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator_arrow.png new file mode 100644 index 0000000..3b5b746 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator_exclamation.png new file mode 100644 index 0000000..593a61b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator_minus.png new file mode 100644 index 0000000..c9b8c6b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator_pencil.png new file mode 100644 index 0000000..8e0afd4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calculator_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/calculator_plus.png new file mode 100644 index 0000000..6947b74 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calculator_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar.png new file mode 100644 index 0000000..5eaf869 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar__arrow.png new file mode 100644 index 0000000..e2491b2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar__exclamation.png new file mode 100644 index 0000000..56b11e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar__minus.png new file mode 100644 index 0000000..8084115 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar__pencil.png new file mode 100644 index 0000000..86dc221 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar__plus.png new file mode 100644 index 0000000..a859502 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar_day.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar_day.png new file mode 100644 index 0000000..8a3452a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar_day.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/calendar_month.png b/interface/ispconfig/interface/themes/default/icons/x16/calendar_month.png new file mode 100644 index 0000000..6827bba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/calendar_month.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera.png b/interface/ispconfig/interface/themes/default/icons/x16/camera.png new file mode 100644 index 0000000..9f468d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/camera__arrow.png new file mode 100644 index 0000000..31292ca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/camera__exclamation.png new file mode 100644 index 0000000..595a346 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/camera__minus.png new file mode 100644 index 0000000..c204c0e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/camera__pencil.png new file mode 100644 index 0000000..197edc8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/camera__plus.png new file mode 100644 index 0000000..07b81df --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera_black.png b/interface/ispconfig/interface/themes/default/icons/x16/camera_black.png new file mode 100644 index 0000000..f27f820 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera_small.png b/interface/ispconfig/interface/themes/default/icons/x16/camera_small.png new file mode 100644 index 0000000..615eecf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/camera_small_black.png b/interface/ispconfig/interface/themes/default/icons/x16/camera_small_black.png new file mode 100644 index 0000000..2fee054 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/camera_small_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card.png b/interface/ispconfig/interface/themes/default/icons/x16/card.png new file mode 100644 index 0000000..be7001f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/card__arrow.png new file mode 100644 index 0000000..acaea0f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/card__exclamation.png new file mode 100644 index 0000000..5510920 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/card__minus.png new file mode 100644 index 0000000..9eaa682 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/card__pencil.png new file mode 100644 index 0000000..d7a00a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/card__plus.png new file mode 100644 index 0000000..2f12780 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card_address.png b/interface/ispconfig/interface/themes/default/icons/x16/card_address.png new file mode 100644 index 0000000..4408781 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card_address.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/card_small.png b/interface/ispconfig/interface/themes/default/icons/x16/card_small.png new file mode 100644 index 0000000..fcc08a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/card_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards.png b/interface/ispconfig/interface/themes/default/icons/x16/cards.png new file mode 100644 index 0000000..2d91605 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/cards__arrow.png new file mode 100644 index 0000000..a79b509 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/cards__exclamation.png new file mode 100644 index 0000000..5f2fad7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/cards__minus.png new file mode 100644 index 0000000..20480e5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/cards__pencil.png new file mode 100644 index 0000000..c782097 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/cards__plus.png new file mode 100644 index 0000000..7d54afd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards_address.png b/interface/ispconfig/interface/themes/default/icons/x16/cards_address.png new file mode 100644 index 0000000..4a99fb4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards_address.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cards_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/cards_stack.png new file mode 100644 index 0000000..83f17cc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cards_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette.png new file mode 100644 index 0000000..91ea015 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_arrow.png new file mode 100644 index 0000000..13d8b20 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_exclamation.png new file mode 100644 index 0000000..52df7a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_minus.png new file mode 100644 index 0000000..c758333 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_pencil.png new file mode 100644 index 0000000..427138c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_plus.png new file mode 100644 index 0000000..1fb3cf8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cassette_small.png b/interface/ispconfig/interface/themes/default/icons/x16/cassette_small.png new file mode 100644 index 0000000..7f6fe7a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cassette_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain.png b/interface/ispconfig/interface/themes/default/icons/x16/chain.png new file mode 100644 index 0000000..edc9e72 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_arrow.png new file mode 100644 index 0000000..cbbc9af --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_exclamation.png new file mode 100644 index 0000000..a3bb676 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_minus.png new file mode 100644 index 0000000..1710504 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_pencil.png new file mode 100644 index 0000000..928e14a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_plus.png new file mode 100644 index 0000000..77ece13 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_small.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_small.png new file mode 100644 index 0000000..72c1d12 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/chain_unchain.png b/interface/ispconfig/interface/themes/default/icons/x16/chain_unchain.png new file mode 100644 index 0000000..65e11e5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/chain_unchain.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard.png new file mode 100644 index 0000000..2ae8172 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__arrow.png new file mode 100644 index 0000000..081153c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__exclamation.png new file mode 100644 index 0000000..155d7c2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__minus.png new file mode 100644 index 0000000..a4fa230 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__pencil.png new file mode 100644 index 0000000..dc4b5ff --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__plus.png new file mode 100644 index 0000000..d12b7db --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard_empty.png new file mode 100644 index 0000000..bf5feaa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clipboard_text.png b/interface/ispconfig/interface/themes/default/icons/x16/clipboard_text.png new file mode 100644 index 0000000..98d440b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clipboard_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock.png b/interface/ispconfig/interface/themes/default/icons/x16/clock.png new file mode 100644 index 0000000..edcf756 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/clock__arrow.png new file mode 100644 index 0000000..f1d1dea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/clock__exclamation.png new file mode 100644 index 0000000..0ca6082 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/clock__minus.png new file mode 100644 index 0000000..8d8d593 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/clock__pencil.png new file mode 100644 index 0000000..b40415b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/clock__plus.png new file mode 100644 index 0000000..c72e97c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock_fill.png b/interface/ispconfig/interface/themes/default/icons/x16/clock_fill.png new file mode 100644 index 0000000..fd76be8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock_fill.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/clock_frame.png new file mode 100644 index 0000000..7d6c709 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/clock_small.png b/interface/ispconfig/interface/themes/default/icons/x16/clock_small.png new file mode 100644 index 0000000..2d40c7b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/clock_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color.png b/interface/ispconfig/interface/themes/default/icons/x16/color.png new file mode 100644 index 0000000..febc331 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/color_arrow.png new file mode 100644 index 0000000..d4aa111 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/color_exclamation.png new file mode 100644 index 0000000..fa1c8a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/color_minus.png new file mode 100644 index 0000000..40cedce --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/color_pencil.png new file mode 100644 index 0000000..f24f272 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/color_plus.png new file mode 100644 index 0000000..aa60dbb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/color_small.png b/interface/ispconfig/interface/themes/default/icons/x16/color_small.png new file mode 100644 index 0000000..0538fd9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/color_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast.png new file mode 100644 index 0000000..072733e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast__arrow.png new file mode 100644 index 0000000..796e516 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast__exclamation.png new file mode 100644 index 0000000..fae1e52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast__minus.png new file mode 100644 index 0000000..06af6b9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast__pencil.png new file mode 100644 index 0000000..7763472 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast__plus.png new file mode 100644 index 0000000..be9b36e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast_low.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast_low.png new file mode 100644 index 0000000..b3bb7c1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast_low.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast_small.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast_small.png new file mode 100644 index 0000000..221b6fd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/contrast_small_low.png b/interface/ispconfig/interface/themes/default/icons/x16/contrast_small_low.png new file mode 100644 index 0000000..c791b0e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/contrast_small_low.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross.png b/interface/ispconfig/interface/themes/default/icons/x16/cross.png new file mode 100644 index 0000000..62c181d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/cross_circle.png new file mode 100644 index 0000000..d4507c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross_circle_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/cross_circle_frame.png new file mode 100644 index 0000000..af3b5ca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross_circle_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/cross_shield.png new file mode 100644 index 0000000..25ea793 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross_small.png b/interface/ispconfig/interface/themes/default/icons/x16/cross_small.png new file mode 100644 index 0000000..53c3a71 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/cross_small_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/cross_small_circle.png new file mode 100644 index 0000000..a51bb76 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/cross_small_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown.png b/interface/ispconfig/interface/themes/default/icons/x16/crown.png new file mode 100644 index 0000000..07e9ee5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/crown__arrow.png new file mode 100644 index 0000000..318a2e0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/crown__exclamation.png new file mode 100644 index 0000000..d347bdf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/crown__minus.png new file mode 100644 index 0000000..01f384c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/crown__pencil.png new file mode 100644 index 0000000..db4c8c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/crown__plus.png new file mode 100644 index 0000000..9d467cc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown_bronze.png b/interface/ispconfig/interface/themes/default/icons/x16/crown_bronze.png new file mode 100644 index 0000000..7632eb4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown_bronze.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/crown_silver.png b/interface/ispconfig/interface/themes/default/icons/x16/crown_silver.png new file mode 100644 index 0000000..2f57648 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/crown_silver.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database.png b/interface/ispconfig/interface/themes/default/icons/x16/database.png new file mode 100644 index 0000000..2026373 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/database_arrow.png new file mode 100644 index 0000000..402e0f3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/database_exclamation.png new file mode 100644 index 0000000..771a917 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/database_minus.png new file mode 100644 index 0000000..d719334 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/database_pencil.png new file mode 100644 index 0000000..28c56b3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/database_plus.png new file mode 100644 index 0000000..77bc6ab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/database_small.png b/interface/ispconfig/interface/themes/default/icons/x16/database_small.png new file mode 100644 index 0000000..cb4c5a9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/database_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases.png b/interface/ispconfig/interface/themes/default/icons/x16/databases.png new file mode 100644 index 0000000..37bc622 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/databases_arrow.png new file mode 100644 index 0000000..f4f5070 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/databases_exclamation.png new file mode 100644 index 0000000..ffc5a42 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/databases_minus.png new file mode 100644 index 0000000..ba5eb80 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/databases_pencil.png new file mode 100644 index 0000000..dafa7f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/databases_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/databases_plus.png new file mode 100644 index 0000000..d389d1b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/databases_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc.png b/interface/ispconfig/interface/themes/default/icons/x16/disc.png new file mode 100644 index 0000000..3f78191 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_arrow.png new file mode 100644 index 0000000..2dc7aba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_exclamation.png new file mode 100644 index 0000000..3b26912 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_minus.png new file mode 100644 index 0000000..87c8851 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_pencil.png new file mode 100644 index 0000000..9430adf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_plus.png new file mode 100644 index 0000000..938df68 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disc_small.png b/interface/ispconfig/interface/themes/default/icons/x16/disc_small.png new file mode 100644 index 0000000..eef6e5e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disc_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs.png b/interface/ispconfig/interface/themes/default/icons/x16/discs.png new file mode 100644 index 0000000..dda4049 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/discs_arrow.png new file mode 100644 index 0000000..e6c1be1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/discs_exclamation.png new file mode 100644 index 0000000..c22a30b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/discs_minus.png new file mode 100644 index 0000000..70af40e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/discs_pencil.png new file mode 100644 index 0000000..ae591ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/discs_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/discs_plus.png new file mode 100644 index 0000000..df145aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/discs_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk.png b/interface/ispconfig/interface/themes/default/icons/x16/disk.png new file mode 100644 index 0000000..a039b99 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/disk__arrow.png new file mode 100644 index 0000000..2133d90 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/disk__exclamation.png new file mode 100644 index 0000000..c6e842f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/disk__minus.png new file mode 100644 index 0000000..244ee5f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/disk__pencil.png new file mode 100644 index 0000000..6c0dc76 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/disk__plus.png new file mode 100644 index 0000000..b188fb1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk_black.png b/interface/ispconfig/interface/themes/default/icons/x16/disk_black.png new file mode 100644 index 0000000..712e55e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk_small.png b/interface/ispconfig/interface/themes/default/icons/x16/disk_small.png new file mode 100644 index 0000000..911f8c7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disk_small_black.png b/interface/ispconfig/interface/themes/default/icons/x16/disk_small_black.png new file mode 100644 index 0000000..4d65b73 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disk_small_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks.png b/interface/ispconfig/interface/themes/default/icons/x16/disks.png new file mode 100644 index 0000000..fc33338 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/disks__arrow.png new file mode 100644 index 0000000..29baaa3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/disks__exclamation.png new file mode 100644 index 0000000..2bd35e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/disks__minus.png new file mode 100644 index 0000000..664d72d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/disks__pencil.png new file mode 100644 index 0000000..3d18e9f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/disks__plus.png new file mode 100644 index 0000000..2f8fe8d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/disks_black.png b/interface/ispconfig/interface/themes/default/icons/x16/disks_black.png new file mode 100644 index 0000000..31a1b00 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/disks_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document.png b/interface/ispconfig/interface/themes/default/icons/x16/document.png new file mode 100644 index 0000000..4566443 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/document__arrow.png new file mode 100644 index 0000000..ddb756c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/document__exclamation.png new file mode 100644 index 0000000..9830bba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/document__minus.png new file mode 100644 index 0000000..2afd09f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/document__pencil.png new file mode 100644 index 0000000..746f4cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/document__plus.png new file mode 100644 index 0000000..9dc52b7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal.png b/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal.png new file mode 100644 index 0000000..8568a9e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal_text.png b/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal_text.png new file mode 100644 index 0000000..1d77d0c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_horizontal_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_music.png b/interface/ispconfig/interface/themes/default/icons/x16/document_music.png new file mode 100644 index 0000000..d5d5cb9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_music.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_music_playlist.png b/interface/ispconfig/interface/themes/default/icons/x16/document_music_playlist.png new file mode 100644 index 0000000..1781072 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_music_playlist.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_shred.png b/interface/ispconfig/interface/themes/default/icons/x16/document_shred.png new file mode 100644 index 0000000..d59f80e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_shred.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_small.png b/interface/ispconfig/interface/themes/default/icons/x16/document_small.png new file mode 100644 index 0000000..6427ecc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_text.png b/interface/ispconfig/interface/themes/default/icons/x16/document_text.png new file mode 100644 index 0000000..60ffdbd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_text_image.png b/interface/ispconfig/interface/themes/default/icons/x16/document_text_image.png new file mode 100644 index 0000000..1cd9e98 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_text_image.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/document_zipper.png b/interface/ispconfig/interface/themes/default/icons/x16/document_zipper.png new file mode 100644 index 0000000..64c8505 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/document_zipper.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents.png b/interface/ispconfig/interface/themes/default/icons/x16/documents.png new file mode 100644 index 0000000..f6cc041 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_arrow.png new file mode 100644 index 0000000..afbb129 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_exclamation.png new file mode 100644 index 0000000..390e091 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_minus.png new file mode 100644 index 0000000..84a27e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_pencil.png new file mode 100644 index 0000000..e598c3b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_plus.png new file mode 100644 index 0000000..8bcebc0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_stack.png new file mode 100644 index 0000000..54eac65 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/documents_text.png b/interface/ispconfig/interface/themes/default/icons/x16/documents_text.png new file mode 100644 index 0000000..6a4df31 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/documents_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door.png b/interface/ispconfig/interface/themes/default/icons/x16/door.png new file mode 100644 index 0000000..aaaa93a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/door_arrow.png new file mode 100644 index 0000000..da96063 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/door_exclamation.png new file mode 100644 index 0000000..22fd5f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/door_minus.png new file mode 100644 index 0000000..96d0ba8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/door_pencil.png new file mode 100644 index 0000000..dd520ba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/door_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/door_plus.png new file mode 100644 index 0000000..f852976 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/door_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer.png new file mode 100644 index 0000000..0b76e56 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer_arrow.png new file mode 100644 index 0000000..4d4d494 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer_exclamation.png new file mode 100644 index 0000000..58f0b34 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer_minus.png new file mode 100644 index 0000000..1a6779f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer_pencil.png new file mode 100644 index 0000000..fc99eb0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drawer_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/drawer_plus.png new file mode 100644 index 0000000..a73df52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drawer_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill.png b/interface/ispconfig/interface/themes/default/icons/x16/drill.png new file mode 100644 index 0000000..a9e1d4a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/drill_arrow.png new file mode 100644 index 0000000..80157f4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/drill_exclamation.png new file mode 100644 index 0000000..7fab989 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/drill_minus.png new file mode 100644 index 0000000..eb43f2b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/drill_pencil.png new file mode 100644 index 0000000..7f2a47c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/drill_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/drill_plus.png new file mode 100644 index 0000000..9568b80 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/drill_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope.png new file mode 100644 index 0000000..be05671 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope_arrow.png new file mode 100644 index 0000000..444df43 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope_exclamation.png new file mode 100644 index 0000000..49b1a45 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope_minus.png new file mode 100644 index 0000000..ad363a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope_pencil.png new file mode 100644 index 0000000..66898f4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/envelope_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/envelope_plus.png new file mode 100644 index 0000000..2116ff5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/envelope_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer.png new file mode 100644 index 0000000..531632f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_arrow.png new file mode 100644 index 0000000..fc1fce9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_exclamation.png new file mode 100644 index 0000000..10d7339 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_minus.png new file mode 100644 index 0000000..21de100 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_pencil.png new file mode 100644 index 0000000..87c3aea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/equalizer_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_plus.png new file mode 100644 index 0000000..5873dc6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/equalizer_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser.png new file mode 100644 index 0000000..3047369 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser_arrow.png new file mode 100644 index 0000000..d944ab1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser_exclamation.png new file mode 100644 index 0000000..dc0adec --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser_minus.png new file mode 100644 index 0000000..d0a621e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser_pencil.png new file mode 100644 index 0000000..57b9053 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/eraser_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/eraser_plus.png new file mode 100644 index 0000000..fadaea7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/eraser_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/exclamation.png new file mode 100644 index 0000000..056f680 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/exclamation_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_frame.png new file mode 100644 index 0000000..9c071a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/exclamation_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_shield.png new file mode 100644 index 0000000..b0595f1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/exclamation_small.png b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_small.png new file mode 100644 index 0000000..1914f46 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/exclamation_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed.png b/interface/ispconfig/interface/themes/default/icons/x16/feed.png new file mode 100644 index 0000000..e757fd1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/feed__arrow.png new file mode 100644 index 0000000..5274d77 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/feed__exclamation.png new file mode 100644 index 0000000..54fbce8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/feed__minus.png new file mode 100644 index 0000000..01accb5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/feed__pencil.png new file mode 100644 index 0000000..aa9ed7c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/feed__plus.png new file mode 100644 index 0000000..551480d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed_balloon.png b/interface/ispconfig/interface/themes/default/icons/x16/feed_balloon.png new file mode 100644 index 0000000..4eb8f01 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed_balloon.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/feed_small.png b/interface/ispconfig/interface/themes/default/icons/x16/feed_small.png new file mode 100644 index 0000000..e6948bd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/feed_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film.png b/interface/ispconfig/interface/themes/default/icons/x16/film.png new file mode 100644 index 0000000..4efcaa7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/film_arrow.png new file mode 100644 index 0000000..da770a5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/film_exclamation.png new file mode 100644 index 0000000..5bdc600 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/film_minus.png new file mode 100644 index 0000000..46bd3df --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/film_pencil.png new file mode 100644 index 0000000..3f39149 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/film_plus.png new file mode 100644 index 0000000..17abcf8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/film_small.png b/interface/ispconfig/interface/themes/default/icons/x16/film_small.png new file mode 100644 index 0000000..5ae92ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/film_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films.png b/interface/ispconfig/interface/themes/default/icons/x16/films.png new file mode 100644 index 0000000..c004ac9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/films_arrow.png new file mode 100644 index 0000000..00ef91b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/films_exclamation.png new file mode 100644 index 0000000..1a0a5b6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/films_minus.png new file mode 100644 index 0000000..c2112cb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/films_pencil.png new file mode 100644 index 0000000..1bd451a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/films_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/films_plus.png new file mode 100644 index 0000000..b14d6b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/films_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag.png b/interface/ispconfig/interface/themes/default/icons/x16/flag.png new file mode 100644 index 0000000..7a56f68 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/flag_arrow.png new file mode 100644 index 0000000..26f8217 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/flag_exclamation.png new file mode 100644 index 0000000..37517f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/flag_minus.png new file mode 100644 index 0000000..351fbc6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/flag_pencil.png new file mode 100644 index 0000000..57936a9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/flag_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/flag_plus.png new file mode 100644 index 0000000..ad63870 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/flag_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder.png b/interface/ispconfig/interface/themes/default/icons/x16/folder.png new file mode 100644 index 0000000..a1fd28b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/folder__arrow.png new file mode 100644 index 0000000..b700c10 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/folder__exclamation.png new file mode 100644 index 0000000..4f28e2e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/folder__minus.png new file mode 100644 index 0000000..73273b0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/folder__pencil.png new file mode 100644 index 0000000..7725b63 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/folder__plus.png new file mode 100644 index 0000000..2211762 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open.png new file mode 100644 index 0000000..a74df84 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document.png new file mode 100644 index 0000000..9939600 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music.png new file mode 100644 index 0000000..7e75c24 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music_playlist.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music_playlist.png new file mode 100644 index 0000000..bddb6de --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_music_playlist.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_text.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_text.png new file mode 100644 index 0000000..50810b1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_document_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_film.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_film.png new file mode 100644 index 0000000..75b398d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_film.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_open_image.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_image.png new file mode 100644 index 0000000..a63d629 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_open_image.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_shred.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_shred.png new file mode 100644 index 0000000..ab09f6e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_shred.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_small.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_small.png new file mode 100644 index 0000000..b60ab4a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folder_zipper.png b/interface/ispconfig/interface/themes/default/icons/x16/folder_zipper.png new file mode 100644 index 0000000..43eb7d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folder_zipper.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders.png b/interface/ispconfig/interface/themes/default/icons/x16/folders.png new file mode 100644 index 0000000..b3af875 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_arrow.png new file mode 100644 index 0000000..c05ed08 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_exclamation.png new file mode 100644 index 0000000..946b46d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_minus.png new file mode 100644 index 0000000..9de8dba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_pencil.png new file mode 100644 index 0000000..d246d63 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_plus.png new file mode 100644 index 0000000..aabf8ed --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/folders_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/folders_stack.png new file mode 100644 index 0000000..477e7da --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/folders_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel.png new file mode 100644 index 0000000..3cd7a8b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_arrow.png new file mode 100644 index 0000000..2213a2b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_exclamation.png new file mode 100644 index 0000000..fd24ec7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_minus.png new file mode 100644 index 0000000..40c0caf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_pencil.png new file mode 100644 index 0000000..5caa578 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_plus.png new file mode 100644 index 0000000..40a2c2e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/funnel_small.png b/interface/ispconfig/interface/themes/default/icons/x16/funnel_small.png new file mode 100644 index 0000000..c1f3079 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/funnel_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear.png b/interface/ispconfig/interface/themes/default/icons/x16/gear.png new file mode 100644 index 0000000..9db64b5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/gear__arrow.png new file mode 100644 index 0000000..368546f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/gear__exclamation.png new file mode 100644 index 0000000..97e8a0e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/gear__minus.png new file mode 100644 index 0000000..b820b7e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/gear__pencil.png new file mode 100644 index 0000000..f4f9d07 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/gear__plus.png new file mode 100644 index 0000000..bc4cd9e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/gear_disable.png new file mode 100644 index 0000000..b213087 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/gear_small.png b/interface/ispconfig/interface/themes/default/icons/x16/gear_small.png new file mode 100644 index 0000000..87f66c5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/gear_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer.png new file mode 100644 index 0000000..d12036a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer__arrow.png new file mode 100644 index 0000000..21374ea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer__exclamation.png new file mode 100644 index 0000000..1810f61 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer__minus.png new file mode 100644 index 0000000..f1a9d67 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer__pencil.png new file mode 100644 index 0000000..2e1efbf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer__plus.png new file mode 100644 index 0000000..03bcc50 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer_left.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer_left.png new file mode 100644 index 0000000..e808616 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer_left.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/hammer_screwdriver.png b/interface/ispconfig/interface/themes/default/icons/x16/hammer_screwdriver.png new file mode 100644 index 0000000..485fcf2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/hammer_screwdriver.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart.png b/interface/ispconfig/interface/themes/default/icons/x16/heart.png new file mode 100644 index 0000000..f98dac0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/heart__arrow.png new file mode 100644 index 0000000..162a28b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/heart__exclamation.png new file mode 100644 index 0000000..d90fc15 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/heart__minus.png new file mode 100644 index 0000000..4c8c315 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/heart__pencil.png new file mode 100644 index 0000000..175b980 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/heart__plus.png new file mode 100644 index 0000000..9bc94cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_break.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_break.png new file mode 100644 index 0000000..4317a94 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_break.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_empty.png new file mode 100644 index 0000000..a7754d7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_half.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_half.png new file mode 100644 index 0000000..5046e3e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_half.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_small.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_small.png new file mode 100644 index 0000000..52f2739 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_small_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_small_empty.png new file mode 100644 index 0000000..0e0d9a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_small_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/heart_small_half.png b/interface/ispconfig/interface/themes/default/icons/x16/heart_small_half.png new file mode 100644 index 0000000..a68c63c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/heart_small_half.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home.png b/interface/ispconfig/interface/themes/default/icons/x16/home.png new file mode 100644 index 0000000..bbfd281 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/home_arrow.png new file mode 100644 index 0000000..8fbc5b9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/home_exclamation.png new file mode 100644 index 0000000..eb4e40d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/home_minus.png new file mode 100644 index 0000000..632e32f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/home_pencil.png new file mode 100644 index 0000000..02503c4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/home_plus.png new file mode 100644 index 0000000..d8e87d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/home_small.png b/interface/ispconfig/interface/themes/default/icons/x16/home_small.png new file mode 100644 index 0000000..e2213d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/home_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image.png b/interface/ispconfig/interface/themes/default/icons/x16/image.png new file mode 100644 index 0000000..cb1afc6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/image_arrow.png new file mode 100644 index 0000000..32dda52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/image_exclamation.png new file mode 100644 index 0000000..179d435 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/image_minus.png new file mode 100644 index 0000000..8e8fbf5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/image_pencil.png new file mode 100644 index 0000000..4a531f9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/image_plus.png new file mode 100644 index 0000000..c2967cf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_resize.png b/interface/ispconfig/interface/themes/default/icons/x16/image_resize.png new file mode 100644 index 0000000..3c66a73 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_resize.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_resize_actual.png b/interface/ispconfig/interface/themes/default/icons/x16/image_resize_actual.png new file mode 100644 index 0000000..5e4a6bd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_resize_actual.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_small.png b/interface/ispconfig/interface/themes/default/icons/x16/image_small.png new file mode 100644 index 0000000..7d411b9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_small_sunset.png b/interface/ispconfig/interface/themes/default/icons/x16/image_small_sunset.png new file mode 100644 index 0000000..9341f40 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_small_sunset.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/image_sunset.png b/interface/ispconfig/interface/themes/default/icons/x16/image_sunset.png new file mode 100644 index 0000000..0ed90ba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/image_sunset.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images.png b/interface/ispconfig/interface/themes/default/icons/x16/images.png new file mode 100644 index 0000000..2f920d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/images_arrow.png new file mode 100644 index 0000000..9194b66 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/images_exclamation.png new file mode 100644 index 0000000..5e43974 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/images_minus.png new file mode 100644 index 0000000..47b39a6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/images_pencil.png new file mode 100644 index 0000000..2bd5889 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/images_plus.png new file mode 100644 index 0000000..599b9bf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/images_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/images_stack.png new file mode 100644 index 0000000..556becb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/images_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox.png new file mode 100644 index 0000000..0cd8045 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox_arrow.png new file mode 100644 index 0000000..af03fa1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox_exclamation.png new file mode 100644 index 0000000..e1e2b4c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox_minus.png new file mode 100644 index 0000000..43e8399 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox_pencil.png new file mode 100644 index 0000000..0401ec2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/inbox_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/inbox_plus.png new file mode 100644 index 0000000..94b9bac --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/inbox_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/information.png b/interface/ispconfig/interface/themes/default/icons/x16/information.png new file mode 100644 index 0000000..d39b18d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/information.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/information_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/information_frame.png new file mode 100644 index 0000000..3dfa5b7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/information_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/information_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/information_shield.png new file mode 100644 index 0000000..4b136a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/information_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/information_small.png b/interface/ispconfig/interface/themes/default/icons/x16/information_small.png new file mode 100644 index 0000000..be72df5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/information_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key.png b/interface/ispconfig/interface/themes/default/icons/x16/key.png new file mode 100644 index 0000000..48d782b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/key__arrow.png new file mode 100644 index 0000000..c41e493 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/key__exclamation.png new file mode 100644 index 0000000..b7b4290 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/key__minus.png new file mode 100644 index 0000000..67fcc27 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/key__pencil.png new file mode 100644 index 0000000..267f7ad --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/key__plus.png new file mode 100644 index 0000000..a2372a7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/key_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/key_disable.png new file mode 100644 index 0000000..2bfd5ae --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/key_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout.png b/interface/ispconfig/interface/themes/default/icons/x16/layout.png new file mode 100644 index 0000000..d0cedfe --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_2.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_2.png new file mode 100644 index 0000000..b0e3a96 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_2_equal.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_2_equal.png new file mode 100644 index 0000000..f25bb23 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_2_equal.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_3.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_3.png new file mode 100644 index 0000000..0740661 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_3.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_3_mix.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_3_mix.png new file mode 100644 index 0000000..b984bc0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_3_mix.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header.png new file mode 100644 index 0000000..f8a173c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2.png new file mode 100644 index 0000000..e3ba2aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2_equal.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2_equal.png new file mode 100644 index 0000000..26987b8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_2_equal.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3.png new file mode 100644 index 0000000..04bbe9d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3_mix.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3_mix.png new file mode 100644 index 0000000..3729263 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_3_mix.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer.png new file mode 100644 index 0000000..806a184 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2.png new file mode 100644 index 0000000..2648663 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2_equal.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2_equal.png new file mode 100644 index 0000000..969adf9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_2_equal.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3.png new file mode 100644 index 0000000..f3d4cb1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3_mix.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3_mix.png new file mode 100644 index 0000000..e1ff086 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_header_footer_3_mix.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_join.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_join.png new file mode 100644 index 0000000..868cd87 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_join.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/layout_split.png b/interface/ispconfig/interface/themes/default/icons/x16/layout_split.png new file mode 100644 index 0000000..2af50ef --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/layout_split.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy.png new file mode 100644 index 0000000..f9da9d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_arrow.png new file mode 100644 index 0000000..52b042a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_exclamation.png new file mode 100644 index 0000000..34f9353 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_minus.png new file mode 100644 index 0000000..0586bc0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_pencil.png new file mode 100644 index 0000000..f4cd98d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_plus.png new file mode 100644 index 0000000..327434a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lifebuoy_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb.png new file mode 100644 index 0000000..7e8aafd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__arrow.png new file mode 100644 index 0000000..0413f5e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__exclamation.png new file mode 100644 index 0000000..febe9fe --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__minus.png new file mode 100644 index 0000000..cfbdd0a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__pencil.png new file mode 100644 index 0000000..b484eb6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__plus.png new file mode 100644 index 0000000..b35850e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_off.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_off.png new file mode 100644 index 0000000..cccadd4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_off.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small.png new file mode 100644 index 0000000..6260f52 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small_off.png b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small_off.png new file mode 100644 index 0000000..90706c5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/light_bulb_small_off.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning.png new file mode 100644 index 0000000..1c7e55c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning__arrow.png new file mode 100644 index 0000000..6ef567d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning__exclamation.png new file mode 100644 index 0000000..af26831 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning__minus.png new file mode 100644 index 0000000..1ef5976 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning__pencil.png new file mode 100644 index 0000000..8385d11 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning__plus.png new file mode 100644 index 0000000..0e1765a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning_disable.png new file mode 100644 index 0000000..f4c8865 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lightning_small.png b/interface/ispconfig/interface/themes/default/icons/x16/lightning_small.png new file mode 100644 index 0000000..b012354 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lightning_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock.png b/interface/ispconfig/interface/themes/default/icons/x16/lock.png new file mode 100644 index 0000000..b5de7c4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/lock__arrow.png new file mode 100644 index 0000000..e5bc39b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/lock__exclamation.png new file mode 100644 index 0000000..1cb8f93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/lock__minus.png new file mode 100644 index 0000000..7e082ce --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/lock__pencil.png new file mode 100644 index 0000000..893c425 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/lock__plus.png new file mode 100644 index 0000000..b514b8d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/lock_disable.png new file mode 100644 index 0000000..9c9c539 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock_small.png b/interface/ispconfig/interface/themes/default/icons/x16/lock_small.png new file mode 100644 index 0000000..cd4ffe8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/lock_unlock.png b/interface/ispconfig/interface/themes/default/icons/x16/lock_unlock.png new file mode 100644 index 0000000..5c4180e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/lock_unlock.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/logout.png b/interface/ispconfig/interface/themes/default/icons/x16/logout.png new file mode 100644 index 0000000..6323241 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/logout.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet.png new file mode 100644 index 0000000..35181f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet__arrow.png new file mode 100644 index 0000000..900479f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet__exclamation.png new file mode 100644 index 0000000..b2c0cd1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet__minus.png new file mode 100644 index 0000000..9c75b59 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet__pencil.png new file mode 100644 index 0000000..47c7969 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet__plus.png new file mode 100644 index 0000000..f623924 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet_disable.png new file mode 100644 index 0000000..d910435 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnet_small.png b/interface/ispconfig/interface/themes/default/icons/x16/magnet_small.png new file mode 100644 index 0000000..9574801 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnet_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier.png new file mode 100644 index 0000000..c6b967c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__arrow.png new file mode 100644 index 0000000..9077265 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__exclamation.png new file mode 100644 index 0000000..c005a93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__minus.png new file mode 100644 index 0000000..792e242 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__pencil.png new file mode 100644 index 0000000..c6eb651 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__plus.png new file mode 100644 index 0000000..3eb38a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_left.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_left.png new file mode 100644 index 0000000..c1bfed8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_left.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium.png new file mode 100644 index 0000000..fa04793 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium_left.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium_left.png new file mode 100644 index 0000000..fe6559a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_medium_left.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_small.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_small.png new file mode 100644 index 0000000..ed06d85 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom.png new file mode 100644 index 0000000..a46dcc8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_actual.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_actual.png new file mode 100644 index 0000000..a445ea6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_actual.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_fit.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_fit.png new file mode 100644 index 0000000..f534e39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_fit.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_out.png b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_out.png new file mode 100644 index 0000000..49bb8f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/magnifier_zoom_out.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail.png b/interface/ispconfig/interface/themes/default/icons/x16/mail.png new file mode 100644 index 0000000..98b9bcd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/mail__arrow.png new file mode 100644 index 0000000..340783a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/mail__exclamation.png new file mode 100644 index 0000000..d37c019 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/mail__minus.png new file mode 100644 index 0000000..adab26a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/mail__pencil.png new file mode 100644 index 0000000..7c07eac --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/mail__plus.png new file mode 100644 index 0000000..8a39ba3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail_open.png b/interface/ispconfig/interface/themes/default/icons/x16/mail_open.png new file mode 100644 index 0000000..823dd41 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail_open.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail_open_document.png b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_document.png new file mode 100644 index 0000000..d603599 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_document.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail_open_film.png b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_film.png new file mode 100644 index 0000000..a68b437 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_film.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail_open_image.png b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_image.png new file mode 100644 index 0000000..d5079e4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail_open_image.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mail_small.png b/interface/ispconfig/interface/themes/default/icons/x16/mail_small.png new file mode 100644 index 0000000..629448f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mail_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails.png b/interface/ispconfig/interface/themes/default/icons/x16/mails.png new file mode 100644 index 0000000..5c56e29 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_arrow.png new file mode 100644 index 0000000..f23d9f8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_exclamation.png new file mode 100644 index 0000000..28e709d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_minus.png new file mode 100644 index 0000000..9de41a6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_pencil.png new file mode 100644 index 0000000..3ce4cea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_plus.png new file mode 100644 index 0000000..097f686 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/mails_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/mails_stack.png new file mode 100644 index 0000000..25300be --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/mails_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player.png new file mode 100644 index 0000000..d699719 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player__arrow.png new file mode 100644 index 0000000..19b728c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player__exclamation.png new file mode 100644 index 0000000..7ba2940 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player__minus.png new file mode 100644 index 0000000..04e3adb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player__pencil.png new file mode 100644 index 0000000..18326ca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player__plus.png new file mode 100644 index 0000000..c5ebc6f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_black.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_black.png new file mode 100644 index 0000000..cbce278 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium.png new file mode 100644 index 0000000..00370f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_black.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_black.png new file mode 100644 index 0000000..ed4f1c7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_black.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_blue.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_blue.png new file mode 100644 index 0000000..dc9a154 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_green.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_green.png new file mode 100644 index 0000000..58dbd2b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_pink.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_pink.png new file mode 100644 index 0000000..63c25b0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_pink.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_red.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_red.png new file mode 100644 index 0000000..02cd6c5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_medium_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_small.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small.png new file mode 100644 index 0000000..33082c3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_blue.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_blue.png new file mode 100644 index 0000000..6c2fb5a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_green.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_green.png new file mode 100644 index 0000000..d3b0a65 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_purple.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_purple.png new file mode 100644 index 0000000..1706316 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_purple.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_red.png b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_red.png new file mode 100644 index 0000000..d07b3bf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_player_small_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players.png new file mode 100644 index 0000000..4cd06ff --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players_arrow.png new file mode 100644 index 0000000..6513814 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players_exclamation.png new file mode 100644 index 0000000..aae7e55 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players_minus.png new file mode 100644 index 0000000..ca6ea5c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players_pencil.png new file mode 100644 index 0000000..604042e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/media_players_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/media_players_plus.png new file mode 100644 index 0000000..365b7f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/media_players_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone.png new file mode 100644 index 0000000..a0be1fa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone_arrow.png new file mode 100644 index 0000000..e5913c8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone_exclamation.png new file mode 100644 index 0000000..8a209e7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone_minus.png new file mode 100644 index 0000000..8e036cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone_pencil.png new file mode 100644 index 0000000..f604b5e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/microphone_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/microphone_plus.png new file mode 100644 index 0000000..a88db39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/microphone_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus.png b/interface/ispconfig/interface/themes/default/icons/x16/minus.png new file mode 100644 index 0000000..b0c15d3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/minus_circle.png new file mode 100644 index 0000000..e0cd5a8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus_circle_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/minus_circle_frame.png new file mode 100644 index 0000000..7e4c6d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus_circle_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/minus_shield.png new file mode 100644 index 0000000..8f533c3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus_small.png b/interface/ispconfig/interface/themes/default/icons/x16/minus_small.png new file mode 100644 index 0000000..d1430d5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/minus_small_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/minus_small_circle.png new file mode 100644 index 0000000..ef612ef --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/minus_small_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music.png b/interface/ispconfig/interface/themes/default/icons/x16/music.png new file mode 100644 index 0000000..12a24c2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/music_arrow.png new file mode 100644 index 0000000..849f1e0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/music_exclamation.png new file mode 100644 index 0000000..48224f0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/music_minus.png new file mode 100644 index 0000000..e55eb31 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/music_pencil.png new file mode 100644 index 0000000..6694711 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/music_plus.png new file mode 100644 index 0000000..59d353a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/music_small.png b/interface/ispconfig/interface/themes/default/icons/x16/music_small.png new file mode 100644 index 0000000..a17dc8b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/music_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper.png new file mode 100644 index 0000000..a6e3bf8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_arrow.png new file mode 100644 index 0000000..215a4f5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_exclamation.png new file mode 100644 index 0000000..a94cf2c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_minus.png new file mode 100644 index 0000000..4d9f72f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_pencil.png new file mode 100644 index 0000000..3cb5f7f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspaper_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_plus.png new file mode 100644 index 0000000..c2e738d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspaper_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers.png new file mode 100644 index 0000000..c054fef --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_arrow.png new file mode 100644 index 0000000..e6c1409 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_exclamation.png new file mode 100644 index 0000000..5503247 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_minus.png new file mode 100644 index 0000000..758ed14 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_pencil.png new file mode 100644 index 0000000..b70ed06 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/newspapers_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_plus.png new file mode 100644 index 0000000..fd7548d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/newspapers_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook.png new file mode 100644 index 0000000..7fab320 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook_arrow.png new file mode 100644 index 0000000..a1264dd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook_exclamation.png new file mode 100644 index 0000000..6b46ab9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook_minus.png new file mode 100644 index 0000000..ab8597a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook_pencil.png new file mode 100644 index 0000000..d52db4a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebook_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/notebook_plus.png new file mode 100644 index 0000000..58959ab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebook_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks.png new file mode 100644 index 0000000..2bcb161 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_arrow.png new file mode 100644 index 0000000..f2104ea --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_exclamation.png new file mode 100644 index 0000000..1fa3873 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_minus.png new file mode 100644 index 0000000..0ea4bf9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_pencil.png new file mode 100644 index 0000000..6a7c830 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/notebooks_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_plus.png new file mode 100644 index 0000000..87b531e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/notebooks_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can.png new file mode 100644 index 0000000..d3d5905 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_arrow.png new file mode 100644 index 0000000..effd700 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_exclamation.png new file mode 100644 index 0000000..e5fce10 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_minus.png new file mode 100644 index 0000000..d32c3a0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_pencil.png new file mode 100644 index 0000000..25c85fd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paint_can_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_plus.png new file mode 100644 index 0000000..6aac490 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paint_can_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette.png b/interface/ispconfig/interface/themes/default/icons/x16/palette.png new file mode 100644 index 0000000..5747acb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/palette_arrow.png new file mode 100644 index 0000000..05f720d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/palette_exclamation.png new file mode 100644 index 0000000..e778052 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/palette_minus.png new file mode 100644 index 0000000..e7e3753 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/palette_pencil.png new file mode 100644 index 0000000..aba2912 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/palette_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/palette_plus.png new file mode 100644 index 0000000..2742de0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/palette_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag.png new file mode 100644 index 0000000..f1fb021 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_arrow.png new file mode 100644 index 0000000..9a8be37 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_exclamation.png new file mode 100644 index 0000000..cb734d0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_minus.png new file mode 100644 index 0000000..de3213d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_pencil.png new file mode 100644 index 0000000..3a9b7b9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_plus.png new file mode 100644 index 0000000..410f207 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/paper_bag_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil.png new file mode 100644 index 0000000..69b9cca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil_arrow.png new file mode 100644 index 0000000..8430ca5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil_exclamation.png new file mode 100644 index 0000000..5a77c7a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil_minus.png new file mode 100644 index 0000000..685264b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil_plus.png new file mode 100644 index 0000000..8cc64e5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pencil_small.png b/interface/ispconfig/interface/themes/default/icons/x16/pencil_small.png new file mode 100644 index 0000000..a98d05e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pencil_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album.png new file mode 100644 index 0000000..3b6d559 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__arrow.png new file mode 100644 index 0000000..0b58fd3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__exclamation.png new file mode 100644 index 0000000..bc0ad36 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__minus.png new file mode 100644 index 0000000..5dc180a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__pencil.png new file mode 100644 index 0000000..ca18e24 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__plus.png new file mode 100644 index 0000000..d1fb196 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/photo_album_blue.png b/interface/ispconfig/interface/themes/default/icons/x16/photo_album_blue.png new file mode 100644 index 0000000..4e3f9ef --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/photo_album_blue.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano.png b/interface/ispconfig/interface/themes/default/icons/x16/piano.png new file mode 100644 index 0000000..ac40c8e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/piano_arrow.png new file mode 100644 index 0000000..7ff4643 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/piano_exclamation.png new file mode 100644 index 0000000..84910e4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/piano_minus.png new file mode 100644 index 0000000..920b66e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/piano_pencil.png new file mode 100644 index 0000000..cc61126 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/piano_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/piano_plus.png new file mode 100644 index 0000000..165ac45 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/piano_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture.png b/interface/ispconfig/interface/themes/default/icons/x16/picture.png new file mode 100644 index 0000000..fe5ced0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_arrow.png new file mode 100644 index 0000000..33c9dac --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_exclamation.png new file mode 100644 index 0000000..bac2d73 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_minus.png new file mode 100644 index 0000000..8aca0bd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_pencil.png new file mode 100644 index 0000000..728e64c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_plus.png new file mode 100644 index 0000000..da43cca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_small.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_small.png new file mode 100644 index 0000000..75a8a0b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_small_sunset.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_small_sunset.png new file mode 100644 index 0000000..7aa039f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_small_sunset.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/picture_sunset.png b/interface/ispconfig/interface/themes/default/icons/x16/picture_sunset.png new file mode 100644 index 0000000..68244bc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/picture_sunset.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures.png new file mode 100644 index 0000000..2576534 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures_arrow.png new file mode 100644 index 0000000..1429f33 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures_exclamation.png new file mode 100644 index 0000000..d4b685f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures_minus.png new file mode 100644 index 0000000..92783a1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures_pencil.png new file mode 100644 index 0000000..1edf532 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pictures_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/pictures_plus.png new file mode 100644 index 0000000..4ebdb53 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pictures_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill.png b/interface/ispconfig/interface/themes/default/icons/x16/pill.png new file mode 100644 index 0000000..d75a26d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_arrow.png new file mode 100644 index 0000000..be3277e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_exclamation.png new file mode 100644 index 0000000..40fa6f4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_minus.png new file mode 100644 index 0000000..7d8c64b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_pencil.png new file mode 100644 index 0000000..0724ea8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_plus.png new file mode 100644 index 0000000..676c293 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pill_small.png b/interface/ispconfig/interface/themes/default/icons/x16/pill_small.png new file mode 100644 index 0000000..bf2de13 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pill_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin.png b/interface/ispconfig/interface/themes/default/icons/x16/pin.png new file mode 100644 index 0000000..a762d62 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/pin_arrow.png new file mode 100644 index 0000000..905ee28 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/pin_exclamation.png new file mode 100644 index 0000000..81026af --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/pin_minus.png new file mode 100644 index 0000000..7c137d7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/pin_pencil.png new file mode 100644 index 0000000..ba76214 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pin_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/pin_plus.png new file mode 100644 index 0000000..1b74579 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pin_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette.png new file mode 100644 index 0000000..d2e99fd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette_arrow.png new file mode 100644 index 0000000..9b30249 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette_exclamation.png new file mode 100644 index 0000000..85cdafc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette_minus.png new file mode 100644 index 0000000..e122e13 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette_pencil.png new file mode 100644 index 0000000..87cbb35 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/pipette_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/pipette_plus.png new file mode 100644 index 0000000..8208f3d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/pipette_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card.png new file mode 100644 index 0000000..65a966b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_arrow.png new file mode 100644 index 0000000..d496aa9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_exclamation.png new file mode 100644 index 0000000..e94a13b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_minus.png new file mode 100644 index 0000000..3fb6546 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_pencil.png new file mode 100644 index 0000000..e3d1340 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/playing_card_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_plus.png new file mode 100644 index 0000000..21224af --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/playing_card_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug.png b/interface/ispconfig/interface/themes/default/icons/x16/plug.png new file mode 100644 index 0000000..29b1024 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/plug_arrow.png new file mode 100644 index 0000000..d3764c4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/plug_exclamation.png new file mode 100644 index 0000000..5cad900 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/plug_minus.png new file mode 100644 index 0000000..06c9331 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/plug_pencil.png new file mode 100644 index 0000000..63dc81d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plug_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/plug_plus.png new file mode 100644 index 0000000..10cff55 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plug_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus.png b/interface/ispconfig/interface/themes/default/icons/x16/plus.png new file mode 100644 index 0000000..fefc08e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/plus_circle.png new file mode 100644 index 0000000..ae80e54 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus_circle_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/plus_circle_frame.png new file mode 100644 index 0000000..aec8f26 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus_circle_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/plus_shield.png new file mode 100644 index 0000000..ec0df77 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus_small.png b/interface/ispconfig/interface/themes/default/icons/x16/plus_small.png new file mode 100644 index 0000000..58219c3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/plus_small_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/plus_small_circle.png new file mode 100644 index 0000000..f7c189e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/plus_small_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer.png b/interface/ispconfig/interface/themes/default/icons/x16/printer.png new file mode 100644 index 0000000..a8a9098 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/printer__arrow.png new file mode 100644 index 0000000..6753240 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/printer__exclamation.png new file mode 100644 index 0000000..9c1dee8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/printer__minus.png new file mode 100644 index 0000000..4d1ca19 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/printer__pencil.png new file mode 100644 index 0000000..ce15147 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/printer__plus.png new file mode 100644 index 0000000..33093aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/printer_empty.png new file mode 100644 index 0000000..41a4dc5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/printer_small.png b/interface/ispconfig/interface/themes/default/icons/x16/printer_small.png new file mode 100644 index 0000000..b9d5441 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/printer_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle.png new file mode 100644 index 0000000..55eee79 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__arrow.png new file mode 100644 index 0000000..ebb05f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__exclamation.png new file mode 100644 index 0000000..d411a0e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__minus.png new file mode 100644 index 0000000..eb3f983 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__pencil.png new file mode 100644 index 0000000..bb6376f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__plus.png new file mode 100644 index 0000000..a3efba6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/puzzle_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/puzzle_disable.png new file mode 100644 index 0000000..15bdfdf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/puzzle_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/question.png b/interface/ispconfig/interface/themes/default/icons/x16/question.png new file mode 100644 index 0000000..370fdde --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/question.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/question_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/question_frame.png new file mode 100644 index 0000000..e74acdd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/question_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/question_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/question_shield.png new file mode 100644 index 0000000..0ec3a77 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/question_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/question_small.png b/interface/ispconfig/interface/themes/default/icons/x16/question_small.png new file mode 100644 index 0000000..b16478f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/question_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt.png new file mode 100644 index 0000000..7eb74c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_arrow.png new file mode 100644 index 0000000..78a645f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_exclamation.png new file mode 100644 index 0000000..c337559 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_minus.png new file mode 100644 index 0000000..b5bf8fc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_pencil.png new file mode 100644 index 0000000..445b27d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_plus.png new file mode 100644 index 0000000..0cc815e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_shred.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_shred.png new file mode 100644 index 0000000..7bc0d8b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_shred.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipt_text.png b/interface/ispconfig/interface/themes/default/icons/x16/receipt_text.png new file mode 100644 index 0000000..b761ae0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipt_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts.png new file mode 100644 index 0000000..1767354 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_arrow.png new file mode 100644 index 0000000..da10cf5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_exclamation.png new file mode 100644 index 0000000..4c45ca6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_minus.png new file mode 100644 index 0000000..621a264 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_pencil.png new file mode 100644 index 0000000..d6695dc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_plus.png new file mode 100644 index 0000000..db78fc4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/receipts_text.png b/interface/ispconfig/interface/themes/default/icons/x16/receipts_text.png new file mode 100644 index 0000000..9b51057 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/receipts_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report.png b/interface/ispconfig/interface/themes/default/icons/x16/report.png new file mode 100644 index 0000000..449037c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/report_arrow.png new file mode 100644 index 0000000..e18b950 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/report_exclamation.png new file mode 100644 index 0000000..31d6e09 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/report_minus.png new file mode 100644 index 0000000..8565b4d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/report_pencil.png new file mode 100644 index 0000000..46851c0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/report_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/report_plus.png new file mode 100644 index 0000000..689c34c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/report_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler.png new file mode 100644 index 0000000..782a506 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler__arrow.png new file mode 100644 index 0000000..8e51bd7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler__exclamation.png new file mode 100644 index 0000000..99b322e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler__minus.png new file mode 100644 index 0000000..a95cae8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler__pencil.png new file mode 100644 index 0000000..fd4a9fa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler__plus.png new file mode 100644 index 0000000..36d874a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ruler_crop.png b/interface/ispconfig/interface/themes/default/icons/x16/ruler_crop.png new file mode 100644 index 0000000..d0c8302 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ruler_crop.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe.png b/interface/ispconfig/interface/themes/default/icons/x16/safe.png new file mode 100644 index 0000000..afd0a82 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/safe_arrow.png new file mode 100644 index 0000000..353df4f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/safe_exclamation.png new file mode 100644 index 0000000..cc5d1c4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/safe_minus.png new file mode 100644 index 0000000..54eaf6d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/safe_pencil.png new file mode 100644 index 0000000..70faded --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/safe_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/safe_plus.png new file mode 100644 index 0000000..6721431 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/safe_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver.png new file mode 100644 index 0000000..5627d45 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_arrow.png new file mode 100644 index 0000000..8ddbb8c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_exclamation.png new file mode 100644 index 0000000..2a7f757 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_minus.png new file mode 100644 index 0000000..f07ffbc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_pencil.png new file mode 100644 index 0000000..2d6eebf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_plus.png new file mode 100644 index 0000000..0809c12 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/screwdriver_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script.png b/interface/ispconfig/interface/themes/default/icons/x16/script.png new file mode 100644 index 0000000..928655f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/script__arrow.png new file mode 100644 index 0000000..3a853bf --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/script__exclamation.png new file mode 100644 index 0000000..110d97a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/script__minus.png new file mode 100644 index 0000000..59b0da8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/script__pencil.png new file mode 100644 index 0000000..44b9f92 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/script__plus.png new file mode 100644 index 0000000..82ad885 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/script_code.png b/interface/ispconfig/interface/themes/default/icons/x16/script_code.png new file mode 100644 index 0000000..9be3cb5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/script_code.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts.png new file mode 100644 index 0000000..8b67528 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts__arrow.png new file mode 100644 index 0000000..1999916 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts__exclamation.png new file mode 100644 index 0000000..2ed1252 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts__minus.png new file mode 100644 index 0000000..78e907d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts__pencil.png new file mode 100644 index 0000000..6f05796 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts__plus.png new file mode 100644 index 0000000..f90395b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/scripts_code.png b/interface/ispconfig/interface/themes/default/icons/x16/scripts_code.png new file mode 100644 index 0000000..329c60a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/scripts_code.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield.png b/interface/ispconfig/interface/themes/default/icons/x16/shield.png new file mode 100644 index 0000000..77e4983 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/shield__arrow.png new file mode 100644 index 0000000..192cbe8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/shield__exclamation.png new file mode 100644 index 0000000..06adbeb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/shield__minus.png new file mode 100644 index 0000000..d105114 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/shield__pencil.png new file mode 100644 index 0000000..7a2919d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/shield__plus.png new file mode 100644 index 0000000..c544f27 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/shield_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/shield_disable.png new file mode 100644 index 0000000..e8c305e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/shield_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/slash.png b/interface/ispconfig/interface/themes/default/icons/x16/slash.png new file mode 100644 index 0000000..2bb269e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/slash.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/slash_small.png b/interface/ispconfig/interface/themes/default/icons/x16/slash_small.png new file mode 100644 index 0000000..8ef5c00 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/slash_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket.png b/interface/ispconfig/interface/themes/default/icons/x16/socket.png new file mode 100644 index 0000000..18c6cc0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/socket_arrow.png new file mode 100644 index 0000000..5b04e5d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/socket_exclamation.png new file mode 100644 index 0000000..56a1bf9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/socket_minus.png new file mode 100644 index 0000000..e80c687 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/socket_pencil.png new file mode 100644 index 0000000..5e97249 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/socket_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/socket_plus.png new file mode 100644 index 0000000..0430d6c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/socket_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort.png b/interface/ispconfig/interface/themes/default/icons/x16/sort.png new file mode 100644 index 0000000..4c0858d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/sort__arrow.png new file mode 100644 index 0000000..47c30a2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/sort__exclamation.png new file mode 100644 index 0000000..7f401e9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/sort__minus.png new file mode 100644 index 0000000..4c70bf0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/sort__pencil.png new file mode 100644 index 0000000..728923a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/sort__plus.png new file mode 100644 index 0000000..0495593 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet.png new file mode 100644 index 0000000..28353f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet_descending.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet_descending.png new file mode 100644 index 0000000..53cdecb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_alphabet_descending.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_date.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_date.png new file mode 100644 index 0000000..bf49408 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_date.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_date_descending.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_date_descending.png new file mode 100644 index 0000000..c33ecc9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_date_descending.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_number.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_number.png new file mode 100644 index 0000000..0a2f93f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_number.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_number_descending.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_number_descending.png new file mode 100644 index 0000000..229c0d8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_number_descending.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity.png new file mode 100644 index 0000000..e6c2499 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity_descending.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity_descending.png new file mode 100644 index 0000000..8aea9cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_quantity_descending.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sort_small.png b/interface/ispconfig/interface/themes/default/icons/x16/sort_small.png new file mode 100644 index 0000000..9f17a43 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sort_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp.png new file mode 100644 index 0000000..1446b90 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp_arrow.png new file mode 100644 index 0000000..c3c3703 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp_exclamation.png new file mode 100644 index 0000000..cc1eaf2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp_minus.png new file mode 100644 index 0000000..5fd5bfb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp_pencil.png new file mode 100644 index 0000000..57c91be --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/stamp_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/stamp_plus.png new file mode 100644 index 0000000..e4f6152 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/stamp_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star.png b/interface/ispconfig/interface/themes/default/icons/x16/star.png new file mode 100644 index 0000000..353bbec --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/star__arrow.png new file mode 100644 index 0000000..d351090 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/star__exclamation.png new file mode 100644 index 0000000..2176631 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/star__minus.png new file mode 100644 index 0000000..19c15eb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/star__pencil.png new file mode 100644 index 0000000..ffadfa8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/star__plus.png new file mode 100644 index 0000000..187fdcc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/star_empty.png new file mode 100644 index 0000000..965f4ba --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star_half.png b/interface/ispconfig/interface/themes/default/icons/x16/star_half.png new file mode 100644 index 0000000..af08099 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star_half.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star_small.png b/interface/ispconfig/interface/themes/default/icons/x16/star_small.png new file mode 100644 index 0000000..ec965f7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star_small_empty.png b/interface/ispconfig/interface/themes/default/icons/x16/star_small_empty.png new file mode 100644 index 0000000..935d02c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star_small_empty.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/star_small_half.png b/interface/ispconfig/interface/themes/default/icons/x16/star_small_half.png new file mode 100644 index 0000000..30cb520 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/star_small_half.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note.png new file mode 100644 index 0000000..a73a758 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__arrow.png new file mode 100644 index 0000000..e152858 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__exclamation.png new file mode 100644 index 0000000..a88fd07 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__minus.png new file mode 100644 index 0000000..81021bb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__pencil.png new file mode 100644 index 0000000..03123f2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__plus.png new file mode 100644 index 0000000..372de44 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_pin.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_pin.png new file mode 100644 index 0000000..363394b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_pin.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_shred.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_shred.png new file mode 100644 index 0000000..87674f4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_shred.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small.png new file mode 100644 index 0000000..3253380 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small_pin.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small_pin.png new file mode 100644 index 0000000..578964a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_small_pin.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_text.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_text.png new file mode 100644 index 0000000..c7637e2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_note_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes.png new file mode 100644 index 0000000..0dfcb64 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__arrow.png new file mode 100644 index 0000000..f1b8e2e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__exclamation.png new file mode 100644 index 0000000..241636e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__minus.png new file mode 100644 index 0000000..b3d764f --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__pencil.png new file mode 100644 index 0000000..fc3cb8b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__plus.png new file mode 100644 index 0000000..40ada63 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_pin.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_pin.png new file mode 100644 index 0000000..7dcd8f9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_pin.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_stack.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_stack.png new file mode 100644 index 0000000..8d1cb62 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_stack.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_text.png b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_text.png new file mode 100644 index 0000000..9ee1fc6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/sticky_notes_text.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch.png b/interface/ispconfig/interface/themes/default/icons/x16/switch.png new file mode 100644 index 0000000..179c6d4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/switch_arrow.png new file mode 100644 index 0000000..19dfc93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/switch_exclamation.png new file mode 100644 index 0000000..ec9d0d6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/switch_minus.png new file mode 100644 index 0000000..6d5a502 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/switch_pencil.png new file mode 100644 index 0000000..25e3f1d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/switch_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/switch_plus.png new file mode 100644 index 0000000..2e0a7a4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/switch_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table.png b/interface/ispconfig/interface/themes/default/icons/x16/table.png new file mode 100644 index 0000000..9e18958 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/table__arrow.png new file mode 100644 index 0000000..789e185 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/table__exclamation.png new file mode 100644 index 0000000..af96da1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/table__minus.png new file mode 100644 index 0000000..ea5490b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/table__pencil.png new file mode 100644 index 0000000..0596253 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/table__plus.png new file mode 100644 index 0000000..bce8b90 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table_delete.png b/interface/ispconfig/interface/themes/default/icons/x16/table_delete.png new file mode 100644 index 0000000..9a7fa99 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table_delete.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table_delete_column.png b/interface/ispconfig/interface/themes/default/icons/x16/table_delete_column.png new file mode 100644 index 0000000..87685aa --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table_delete_column.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table_insert.png b/interface/ispconfig/interface/themes/default/icons/x16/table_insert.png new file mode 100644 index 0000000..ada8b5e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table_insert.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/table_insert_column.png b/interface/ispconfig/interface/themes/default/icons/x16/table_insert_column.png new file mode 100644 index 0000000..c04c946 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/table_insert_column.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables.png b/interface/ispconfig/interface/themes/default/icons/x16/tables.png new file mode 100644 index 0000000..b59808e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_arrow.png new file mode 100644 index 0000000..1c7dc07 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_exclamation.png new file mode 100644 index 0000000..f55b16c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_minus.png new file mode 100644 index 0000000..57cc827 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_pencil.png new file mode 100644 index 0000000..b5a6db5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_plus.png new file mode 100644 index 0000000..00fe7b6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tables_stacks.png b/interface/ispconfig/interface/themes/default/icons/x16/tables_stacks.png new file mode 100644 index 0000000..e1e400d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tables_stacks.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag.png b/interface/ispconfig/interface/themes/default/icons/x16/tag.png new file mode 100644 index 0000000..cabff7b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/tag__arrow.png new file mode 100644 index 0000000..c02a8f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/tag__exclamation.png new file mode 100644 index 0000000..00c71bb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/tag__minus.png new file mode 100644 index 0000000..5be6161 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/tag__pencil.png new file mode 100644 index 0000000..e158a2d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/tag__plus.png new file mode 100644 index 0000000..70a8d5e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag_label.png b/interface/ispconfig/interface/themes/default/icons/x16/tag_label.png new file mode 100644 index 0000000..200a5fd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag_label.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tag_small.png b/interface/ispconfig/interface/themes/default/icons/x16/tag_small.png new file mode 100644 index 0000000..99c5027 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tag_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags.png b/interface/ispconfig/interface/themes/default/icons/x16/tags.png new file mode 100644 index 0000000..ec54e65 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/tags__arrow.png new file mode 100644 index 0000000..d71c58c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/tags__exclamation.png new file mode 100644 index 0000000..646f173 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/tags__minus.png new file mode 100644 index 0000000..a46edab --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/tags__pencil.png new file mode 100644 index 0000000..c0517ac --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/tags__plus.png new file mode 100644 index 0000000..02c2224 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tags_label.png b/interface/ispconfig/interface/themes/default/icons/x16/tags_label.png new file mode 100644 index 0000000..1ae7d9e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tags_label.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick.png b/interface/ispconfig/interface/themes/default/icons/x16/tick.png new file mode 100644 index 0000000..ccf42c8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/tick_circle.png new file mode 100644 index 0000000..de8f000 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick_circle_frame.png b/interface/ispconfig/interface/themes/default/icons/x16/tick_circle_frame.png new file mode 100644 index 0000000..7fe467b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick_circle_frame.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick_shield.png b/interface/ispconfig/interface/themes/default/icons/x16/tick_shield.png new file mode 100644 index 0000000..8889996 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick_shield.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick_small.png b/interface/ispconfig/interface/themes/default/icons/x16/tick_small.png new file mode 100644 index 0000000..a110aef --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tick_small_circle.png b/interface/ispconfig/interface/themes/default/icons/x16/tick_small_circle.png new file mode 100644 index 0000000..b49be4d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tick_small_circle.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket.png new file mode 100644 index 0000000..ab11ce2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_arrow.png new file mode 100644 index 0000000..37df09e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_exclamation.png new file mode 100644 index 0000000..2eec043 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_minus.png new file mode 100644 index 0000000..dd03d93 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_pencil.png new file mode 100644 index 0000000..b35c58e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_plus.png new file mode 100644 index 0000000..8ae879d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/ticket_small.png b/interface/ispconfig/interface/themes/default/icons/x16/ticket_small.png new file mode 100644 index 0000000..b432fe8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/ticket_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy.png new file mode 100644 index 0000000..4f3bcfe --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy_arrow.png new file mode 100644 index 0000000..4331f6c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy_exclamation.png new file mode 100644 index 0000000..b93ae77 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy_minus.png new file mode 100644 index 0000000..9c6b03d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy_pencil.png new file mode 100644 index 0000000..8357ce2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/trophy_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/trophy_plus.png new file mode 100644 index 0000000..a6de1d1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/trophy_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/tux.png b/interface/ispconfig/interface/themes/default/icons/x16/tux.png new file mode 100644 index 0000000..bbefe2e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/tux.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user.png b/interface/ispconfig/interface/themes/default/icons/x16/user.png new file mode 100644 index 0000000..79f35cc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_add.png b/interface/ispconfig/interface/themes/default/icons/x16/user_add.png new file mode 100644 index 0000000..deae99b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_add.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_comment.png b/interface/ispconfig/interface/themes/default/icons/x16/user_comment.png new file mode 100644 index 0000000..e54ebeb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_comment.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_delete.png b/interface/ispconfig/interface/themes/default/icons/x16/user_delete.png new file mode 100644 index 0000000..acbb563 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_delete.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_edit.png b/interface/ispconfig/interface/themes/default/icons/x16/user_edit.png new file mode 100644 index 0000000..c1974cd --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_edit.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_female.png b/interface/ispconfig/interface/themes/default/icons/x16/user_female.png new file mode 100644 index 0000000..7c71de0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_female.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_go.png b/interface/ispconfig/interface/themes/default/icons/x16/user_go.png new file mode 100644 index 0000000..0468cf0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_go.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_gray.png b/interface/ispconfig/interface/themes/default/icons/x16/user_gray.png new file mode 100644 index 0000000..8fd539e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_gray.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_green.png b/interface/ispconfig/interface/themes/default/icons/x16/user_green.png new file mode 100644 index 0000000..30383c2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_green.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_orange.png b/interface/ispconfig/interface/themes/default/icons/x16/user_orange.png new file mode 100644 index 0000000..b818127 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_orange.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_red.png b/interface/ispconfig/interface/themes/default/icons/x16/user_red.png new file mode 100644 index 0000000..c6f66e8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_red.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/user_suit.png b/interface/ispconfig/interface/themes/default/icons/x16/user_suit.png new file mode 100644 index 0000000..b3454e1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/user_suit.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/vcard.png b/interface/ispconfig/interface/themes/default/icons/x16/vcard.png new file mode 100644 index 0000000..c02f315 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/vcard.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/vcard_add.png b/interface/ispconfig/interface/themes/default/icons/x16/vcard_add.png new file mode 100644 index 0000000..2a68453 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/vcard_add.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/vcard_delete.png b/interface/ispconfig/interface/themes/default/icons/x16/vcard_delete.png new file mode 100644 index 0000000..b194b97 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/vcard_delete.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/vcard_edit.png b/interface/ispconfig/interface/themes/default/icons/x16/vcard_edit.png new file mode 100644 index 0000000..ab0f6e7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/vcard_edit.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall.png b/interface/ispconfig/interface/themes/default/icons/x16/wall.png new file mode 100644 index 0000000..ecb8971 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall__arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/wall__arrow.png new file mode 100644 index 0000000..643a545 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall__arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall__exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/wall__exclamation.png new file mode 100644 index 0000000..88b7716 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall__exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall__minus.png b/interface/ispconfig/interface/themes/default/icons/x16/wall__minus.png new file mode 100644 index 0000000..e6c77e4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall__minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall__pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/wall__pencil.png new file mode 100644 index 0000000..6a88860 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall__pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall__plus.png b/interface/ispconfig/interface/themes/default/icons/x16/wall__plus.png new file mode 100644 index 0000000..527df42 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall__plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall_brick.png b/interface/ispconfig/interface/themes/default/icons/x16/wall_brick.png new file mode 100644 index 0000000..072306b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall_brick.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall_disable.png b/interface/ispconfig/interface/themes/default/icons/x16/wall_disable.png new file mode 100644 index 0000000..f7317d3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall_disable.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall_small.png b/interface/ispconfig/interface/themes/default/icons/x16/wall_small.png new file mode 100644 index 0000000..54930c4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall_small.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wall_small_brick.png b/interface/ispconfig/interface/themes/default/icons/x16/wall_small_brick.png new file mode 100644 index 0000000..8172b3e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wall_small_brick.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet.png new file mode 100644 index 0000000..4d285fc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet_arrow.png new file mode 100644 index 0000000..6a24de7 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet_exclamation.png new file mode 100644 index 0000000..0833af8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet_minus.png new file mode 100644 index 0000000..b6b8deb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet_pencil.png new file mode 100644 index 0000000..ba27aa1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wallet_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/wallet_plus.png new file mode 100644 index 0000000..f25be79 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wallet_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand.png b/interface/ispconfig/interface/themes/default/icons/x16/wand.png new file mode 100644 index 0000000..4747dca --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/wand_arrow.png new file mode 100644 index 0000000..118a71a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/wand_exclamation.png new file mode 100644 index 0000000..2e0fef8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/wand_minus.png new file mode 100644 index 0000000..6c14df9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/wand_pencil.png new file mode 100644 index 0000000..a10900c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wand_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/wand_plus.png new file mode 100644 index 0000000..b7c1b76 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wand_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench.png new file mode 100644 index 0000000..f2af438 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_arrow.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_arrow.png new file mode 100644 index 0000000..bfbe022 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_arrow.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_exclamation.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_exclamation.png new file mode 100644 index 0000000..c85cf6d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_exclamation.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_minus.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_minus.png new file mode 100644 index 0000000..a23dc4b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_minus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_pencil.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_pencil.png new file mode 100644 index 0000000..564d981 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_pencil.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_plus.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_plus.png new file mode 100644 index 0000000..f9d6d9d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_plus.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x16/wrench_screwdriver.png b/interface/ispconfig/interface/themes/default/icons/x16/wrench_screwdriver.png new file mode 100644 index 0000000..a2e384b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x16/wrench_screwdriver.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_critical.png b/interface/ispconfig/interface/themes/default/icons/x32/state_critical.png new file mode 100644 index 0000000..501424b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_critical.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_error.png b/interface/ispconfig/interface/themes/default/icons/x32/state_error.png new file mode 100644 index 0000000..b9a2911 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_error.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_info.png b/interface/ispconfig/interface/themes/default/icons/x32/state_info.png new file mode 100644 index 0000000..f59130d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_info.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_ok.png b/interface/ispconfig/interface/themes/default/icons/x32/state_ok.png new file mode 100644 index 0000000..ab86df2 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_ok.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_unknown.png b/interface/ispconfig/interface/themes/default/icons/x32/state_unknown.png new file mode 100644 index 0000000..4769446 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_unknown.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x32/state_warning.png b/interface/ispconfig/interface/themes/default/icons/x32/state_warning.png new file mode 100644 index 0000000..704cf4b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x32/state_warning.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x64/network.png b/interface/ispconfig/interface/themes/default/icons/x64/network.png new file mode 100644 index 0000000..f4c2074 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x64/network.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/icons/x64/server.png b/interface/ispconfig/interface/themes/default/icons/x64/server.png new file mode 100644 index 0000000..6ca2693 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/icons/x64/server.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/buttonHolder_bg.gif b/interface/ispconfig/interface/themes/default/images/buttonHolder_bg.gif new file mode 100644 index 0000000..45dc0da --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/buttonHolder_bg.gif Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/favicon.ico b/interface/ispconfig/interface/themes/default/images/favicon.ico new file mode 100644 index 0000000..da6257c --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/favicon.ico Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/header_bg.png b/interface/ispconfig/interface/themes/default/images/header_bg.png new file mode 100644 index 0000000..4f61996 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/header_bg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/header_logo.png b/interface/ispconfig/interface/themes/default/images/header_logo.png new file mode 100644 index 0000000..ce00716 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/header_logo.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/header_logo.png.old b/interface/ispconfig/interface/themes/default/images/header_logo.png.old new file mode 100644 index 0000000..38ba1eb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/header_logo.png.old Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/lists_tfoot_bg.png b/interface/ispconfig/interface/themes/default/images/lists_tfoot_bg.png new file mode 100644 index 0000000..3ddc3a5 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/lists_tfoot_bg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/lists_thead_bg.png b/interface/ispconfig/interface/themes/default/images/lists_thead_bg.png new file mode 100644 index 0000000..a9bc0f6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/lists_thead_bg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/meter_bg.gif b/interface/ispconfig/interface/themes/default/images/meter_bg.gif new file mode 100644 index 0000000..6b38c6e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/meter_bg.gif Binary files differ diff --git a/interface/ispconfig/interface/themes/default/images/screen_bg.png b/interface/ispconfig/interface/themes/default/images/screen_bg.png new file mode 100644 index 0000000..9679f4e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/images/screen_bg.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/licences.txt b/interface/ispconfig/interface/themes/default/licences.txt new file mode 100644 index 0000000..5a50cbb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/licences.txt @@ -0,0 +1,8 @@ +Theme created by Martin Henne (red-ray.de) + +based on: + +Templates: http://www.yaml.de +Web-Forms: http://www.sprawsm.com/uni-form/ +Icons: http://www.pinvoke.com and http://www.randomjabber.com/static/sizcons +Know-How: http://particletree.com/features/rediscovering-the-button-element diff --git a/interface/ispconfig/interface/themes/default/templates/form.tpl.htm b/interface/ispconfig/interface/themes/default/templates/form.tpl.htm new file mode 100644 index 0000000..429bfd9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/form.tpl.htm @@ -0,0 +1 @@ +<tmpl_dyninclude name="content_tpl"> \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/templates/listpage.tpl.htm b/interface/ispconfig/interface/themes/default/templates/listpage.tpl.htm new file mode 100644 index 0000000..429bfd9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/listpage.tpl.htm @@ -0,0 +1 @@ +<tmpl_dyninclude name="content_tpl"> \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/templates/main.tpl.htm b/interface/ispconfig/interface/themes/default/templates/main.tpl.htm new file mode 100644 index 0000000..475cd97 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/main.tpl.htm @@ -0,0 +1,111 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title><tmpl_var name="app_title"> <tmpl_var name="app_version"></title> + <meta http-equiv="Content-Type" content="text/html; charset=<tmpl_var name="html_content_encoding">"/> + <link href="themes/default/css/central.css" rel="stylesheet" type="text/css"/> + <!--[if lte IE 7]> + <link href="themes/default/css/patches/central.css" rel="stylesheet" type="text/css" /> + <![endif]--> + <!--[if lte ie 6]> + <style type="text/css" media="screen"> + /* + Move these to your IE specific stylesheet if possible + */ + .uniForm, + .uniForm fieldset, + .uniForm .ctrlHolder, + .uniForm .formHint, + .uniForm .buttonHolder, + .uniForm .ctrlHolder .multiField, + .uniForm .inlineLabel{ zoom:1; } + + .uniForm .inlineLabels label, .uniForm .inlineLabels .label, + .uniForm .blockLabels label, .uniForm .blockLabels .label, + .uniForm .inlineLabel span{ padding-bottom: .2em; } + + .uniForm .inlineLabel input, + .uniForm .inlineLabels .inlineLabel input, + .uniForm .blockLabels .inlineLabel input{ margin-top: -.3em; } + </style> + <![endif]--> + <!--[if gt ie 6]> + <style type="text/css" media="screen"> + /* + Move these to your IE specific stylesheet if possible + */ + .uniForm, + .uniForm fieldset, + .uniForm .ctrlHolder, + .uniForm .formHint, + .uniForm .buttonHolder, + .uniForm .ctrlHolder .multiField, + .uniForm .inlineLabel{ zoom:1; } + + .uniForm .inlineLabels label, .uniForm .inlineLabels .label, + .uniForm .blockLabels label, .uniForm .blockLabels .label, + .uniForm .inlineLabel span{ padding-bottom: .2em; } + + .uniForm .inlineLabel input, + .uniForm .inlineLabels .inlineLabel input, + .uniForm .blockLabels .inlineLabel input{ margin-top: -.3em; } + </style> + <![endif]--> + <link rel="shortcut icon" href="/themes/default/images/favicon.ico" /> + <script type="text/javascript" src="js/yui/yahoo/yahoo-min.js"></script> + <script type="text/javascript" src="js/yui/connection/connection-min.js"></script> + <script type="text/javascript" src="js/scrigo.js.php"></script> + <script type="text/javascript" src="js/uni-form/jquery.js"></script> + <script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script> +</head> +<body onload="loadInitContent()"> + <div id="page_margins"> + <div id="page"> + <div id="header"> + <div id="topsubnav"> + <!-- start: skip link navigation --> + <a class="skip" href="#navigation" title="skip link">Skip to the navigation</a><span class="hideme">.</span> + <a class="skip" href="#content" title="skip link">Skip to the content</a><span class="hideme">.</span> + <!-- end: skip link navigation --> + <span><a href="#logout" onclick="loadContent('login/logout.php');">LOGOUT</a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--></span> + </div> + <h1 id="ir-HeaderLogo" class="swap"><span>ISPConfig 3</span></h1> + <span>hosting control panel</span> + </div> + <!-- begin: main navigation #nav --> + <div id="nav"> + <a id="navigation" name="navigation"></a> + <!-- skiplink anchor: navigation --> + <div id="nav_main"> + <div id="topNav"> </div> + </div> + </div> + <!-- end: main navigation --> + <!-- begin: main content area #main --> + <div id="main"> + <!-- begin: #col1 - first float column --> + <div id="col1"> + <div id="col1_content" class="clearfix"> + <div id="sideNav"> </div> + </div> + </div> + <!-- end: #col1 --> + <!-- begin: #col3 static column --> + <div id="col3"> + <div id="col3_content" class="clearfix"> + <a id="content" name="content"></a> + <!-- skiplink anchor: Content --> + <form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm"> + <div id="pageContent"><!-- AJAX CONTENT --></div> + </form> + </div> + <div id="ie_clearing"> </div> + <!-- End: IE Column Clearing --> + </div> + <!-- end: #col3 --> + </div> + <!-- end: #main --> + </div> +</body> +</html> diff --git a/interface/ispconfig/interface/themes/default/templates/module.tpl.htm b/interface/ispconfig/interface/themes/default/templates/module.tpl.htm new file mode 100644 index 0000000..36cdd09 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/module.tpl.htm @@ -0,0 +1,37 @@ + <tr> + <td width="128" height="26" background="themes/{tmpl_var name="theme"}/images/nav_top_bg.gif"> </td> + <td rowspan="3" class="mainContent"> + <table width="100%" height="100%" border="0" cellpadding="20" cellspacing="0"> + <tr> + <td><iframe height="100%" width="100%" frameborder="0" name="content" src="{tmpl_var name="startpage"}"></iframe></td> + </tr> + </table> + </td> + </tr> + <tr> + <td width="128" align="right" valign="top" bgcolor="#DEE4F2"><table width="128" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td height="10"> </td> + </tr> + <tr><td align="center"> + <tmpl_loop name="nav_left"> + <table bgcolor="#F4F6FB" width="115"> + <tr> + <td class="navLeftHead"><tmpl_var name="title"></td> + </tr> + <tr> + <td> + <tmpl_loop name="items"> + <a href="<tmpl_var name='link'>" class="navLeftItem" target="<tmpl_var name='target'>"><tmpl_var name="title"></a><br> + </tmpl_loop> + </td> + </tr> + </table> + <br /> + </tmpl_loop> + </td></tr> + </table></td> + </tr> + <tr> + <td align="left" valign="bottom" bgcolor="#DEE4F2"> </td> + </tr> \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/templates/module_tree.tpl.htm b/interface/ispconfig/interface/themes/default/templates/module_tree.tpl.htm new file mode 100644 index 0000000..b089578 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/module_tree.tpl.htm @@ -0,0 +1,38 @@ + <tr> + <td width="128" height="26" background="themes/{tmpl_var name="theme"}/images/nav_top_bg.gif"> </td> + <td rowspan="3" class="mainContent"> + <table width="100%" height="100%" border="0" cellpadding="20" cellspacing="0"> + <tr> + <td width="200"><iframe height="100%" width="100%" frameborder="0" name="navframe" src="{tmpl_var name="navframe_page"}"></iframe></td> + <td><iframe height="100%" width="100%" frameborder="0" name="content" src="{tmpl_var name="startpage"}"></iframe></td> + </tr> + </table> + </td> + </tr> + <tr> + <td width="128" align="right" valign="top" bgcolor="#DEE4F2"><table width="128" border="0" cellspacing="0" cellpadding="2"> + <tr> + <td height="10"> </td> + </tr> + <tr><td align="center"> + <tmpl_loop name="nav_left"> + <table bgcolor="#F4F6FB" width="115"> + <tr> + <td class="navLeftHead"><tmpl_var name="title"></td> + </tr> + <tr> + <td> + <tmpl_loop name="items"> + <a href="<tmpl_var name='link'>" class="navLeftItem" target="<tmpl_var name='target'>"><tmpl_var name="title"></a><br> + </tmpl_loop> + </td> + </tr> + </table> + <br /> + </tmpl_loop> + </td></tr> + </table></td> + </tr> + <tr> + <td align="left" valign="bottom" bgcolor="#DEE4F2"> </td> + </tr> \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/templates/sidenav.tpl.htm b/interface/ispconfig/interface/themes/default/templates/sidenav.tpl.htm new file mode 100644 index 0000000..4626d36 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/sidenav.tpl.htm @@ -0,0 +1,24 @@ +<ul id="submenu"> +<tmpl_loop name="nav_left"> + <li id="title"> + <tmpl_if name="startpage"> + <a href="#" onClick="loadContent('<tmpl_var name='startpage'>')"> + </tmpl_if> + <tmpl_var name="title"> + <tmpl_if name="startpage"> + </a> + </tmpl_if> + </li> + <tmpl_loop name="items"> + <li> + <tmpl_if name="link"> + <a href="#" onClick="loadContent('<tmpl_var name='link'>')"> + </tmpl_if> + <tmpl_var name="title"> + <tmpl_if name="link"> + </a> + </tmpl_if> + </li> + </tmpl_loop> +</tmpl_loop> +</ul> diff --git a/interface/ispconfig/interface/themes/default/templates/tabbed_form.tpl.htm b/interface/ispconfig/interface/themes/default/templates/tabbed_form.tpl.htm new file mode 100644 index 0000000..0e31bc0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/tabbed_form.tpl.htm @@ -0,0 +1,28 @@ +<tmpl_if name="form_hint"> +<h2><tmpl_var name="form_hint"></h2> +</tmpl_if> +<div class="tabbox_tabs"> + <ul> +<tmpl_loop name="formTab"> +<tmpl_if name="active"> + <li class="active"><a href="javascript:changeTab('<tmpl_var name='name'>','<tmpl_var name='app_module'>/<tmpl_var name='form_action'>')"><tmpl_var name='title'></a></li> +<tmpl_else> + <li><a href="javascript:changeTab('<tmpl_var name='name'>','<tmpl_var name='app_module'>/<tmpl_var name='form_action'>')"><tmpl_var name='title'></a></li> +</tmpl_if> +</tmpl_loop> + </ul> +</div> +<div id="tabbox_content"> + + <tmpl_if name="msg"> + <div id="OKMsg"><p><tmpl_var name="msg"></p></div> + </tmpl_if> + <tmpl_if name="error"> + <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div> + </tmpl_if> + + <tmpl_dyninclude name="content_tpl"> +</div> + +<input type="hidden" name="next_tab" value=""> +<input type="hidden" name="phpsessid" value="{tmpl_var name='phpsessid'}"> diff --git a/interface/ispconfig/interface/themes/default/templates/topnav.tpl.htm b/interface/ispconfig/interface/themes/default/templates/topnav.tpl.htm new file mode 100644 index 0000000..025b9bc --- /dev/null +++ b/interface/ispconfig/interface/themes/default/templates/topnav.tpl.htm @@ -0,0 +1,9 @@ +<ul id="topmenu"> +<tmpl_loop name="nav_top"> +<tmpl_if name="active"> + <li id="topNav_current"><a href="#"><tmpl_var name="title"></a></li> +<tmpl_else> + <li><a href="#" onClick="capp('<tmpl_var name='module'>')"><tmpl_var name="title"></a></li> +</tmpl_if> +</tmpl_loop> +</ul> diff --git "a/interface/ispconfig/interface/themes/default/yaml/\041important.txt" "b/interface/ispconfig/interface/themes/default/yaml/\041important.txt" new file mode 100644 index 0000000..dfdf80d --- /dev/null +++ "b/interface/ispconfig/interface/themes/default/yaml/\041important.txt" @@ -0,0 +1,4 @@ +DON'T EDIT ANYTHING INSIDE THIS DIRECTORY! + +This theme is based on YAML V3.0.6, Build: 080609 (http://www.yaml.de/) +CSS-Styles can be changed in the /themes/default/css/ directory diff --git a/interface/ispconfig/interface/themes/default/yaml/core/base.css b/interface/ispconfig/interface/themes/default/yaml/core/base.css new file mode 100644 index 0000000..632248e --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/base.css @@ -0,0 +1,229 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) YAML core stylesheet + * (de) YAML Basis-Stylesheet + * + * Don't make any changes in this file! + * Your changes should be placed in any css-file in your own stylesheet folder. + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media all +{ + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section browser reset + * @see http://www.yaml.de/en/documentation/css-components/base-stylesheet.html + */ + + /* (en) Global reset of paddings and margins for all HTML elements */ + /* (de) Globales Zurücksetzen der Innen- und Außenabstände für alle HTML-Elemente */ + * { margin:0; padding: 0; } + + /* (en) Correction: margin/padding reset caused too small select boxes. */ + /* (de) Korrektur: Das Zurücksetzen der Abstände verursacht zu kleine Selectboxen. */ + option { padding-left: 0.4em; } + + /** + * (en) Global fix of the Italics bugs in IE 5.x and IE 6 + * (de) Globale Korrektur des Italics Bugs des IE 5.x und IE 6 + * + * @bugfix + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + * html body * { overflow:visible; } + * html iframe, * html frame { overflow:auto; } + * html frameset { overflow:hidden; } + + /* (en) Forcing vertical scrollbars in Netscape, Firefox and Safari browsers */ + /* (de) Erzwingen vertikaler Scrollbalken in Netscape, Firefox und Safari Browsern */ + html { height: 100%; margin-bottom: 1px; } + body { + /* (en) Fix for rounding errors when scaling font sizes in older versions of Opera browser */ + /* (de) Beseitigung von Rundungsfehler beim Skalieren von Schriftgrößen in älteren Opera Versionen */ + font-size: 100.01%; + + /* (en) Standard values for colors and text alignment */ + /* (de) Vorgabe der Standardfarben und Textausrichtung */ + color: #000; + background: #fff; + text-align: left; + } + + /* (en) Clear borders for <fieldset> and <img> elements */ + /* (de) Rahmen für <fieldset> und <img> Elemente löschen */ + fieldset, img { border: 0 solid; } + + /* (en) new standard values for lists, blockquote and cite */ + /* (de) Neue Standardwerte für Listen & Zitate */ + ul, ol, dl { margin: 0 0 1em 1em } + li { margin-left: 1.5em; line-height: 1.5em; } + + dt { font-weight: bold; } + dd { margin: 0 0 1em 2em; } + + blockquote { margin: 0 0 1em 1.5em; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section base layout | Basis Layout + * @see http://www.yaml.de/en/documentation/css-components/base-stylesheet.html + * + * |-------------------------------| + * | #header | + * |-------------------------------| + * | #col1 | #col3 | #col2 | + * | 200 px | flexible | 200px | + * |-------------------------------| + * | #footer | + * |-------------------------------| + */ + + #header { position:relative; } + + /* (en) Text Alignment for #topnav content */ + /* (de) Textausrichtung für #topnav Inhalte */ + #topnav { text-align: right; } + + /* (en) Absolute positioning only within #header */ + /* (de) Absolute Positionierung erfolgt nur innerhalb von #header */ + #header #topnav { + position:absolute; + top: 10px; + right: 10px; + } + + /* (en) Backup for correct positioning */ + /* (de) Absicherung korrekte Positionierung */ + #header, #nav, #main, #footer { clear:both; } + + /* (en/de) Standard: 200 Pixel */ + #col1 { float: left; width: 200px } + /* (en/de) Standard: 200 Pixel */ + #col2 { float:right; width: 200px } + /* (en) Standard: center column with flexible width */ + /* (de) Standard: Flexible mittlere Spalte */ + #col3 { width:auto; margin: 0 200px } + + /* (en) Preparation for absolute positioning within content columns */ + /* (de) Vorbereitung für absolute Positionierungen innerhalb der Inhaltsspalten */ + #col1_content, #col2_content, #col3_content { position:relative; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section generic classes for layout switching | Generische Klassen zur Layoutumschaltung + * @see http://www.yaml.de/en/documentation/css-components/base-stylesheet.html + * + * .hidecol1 -> 2-column-layout (using #col2 and #col3) + * .hidecol2 -> 2-column-layout (using #col1 and #col3) + * .hideboth -> single-column-layout (using #col3) + */ + + .hideboth #col3 { margin-left: 0; margin-right: 0; } + .hidecol1 #col3 { margin-left: 0; margin-right: 200px; } + .hidecol2 #col3 { margin-left: 200px; margin-right: 0; } + + .hideboth #col1, .hideboth #col2, .hidecol1 #col1, .hidecol2 #col2 { display:none; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section clearing methods + * @see http://yaml.de/en/documentation/basics/general.html + */ + + /* (en) clearfix method for clearing floats */ + /* (de) Clearfix-Methode zum Clearen der Float-Umgebungen */ + .clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; + } + + /* (en) essential for Safari browser !! */ + /* (de) Diese Angabe benötigt der Safari-Browser zwingend !! */ + .clearfix { display: block; } + + /* (en) overflow method for clearing floats */ + /* (de) Overflow-Methode zum Clearen der Float-Umgebungen */ + .floatbox { overflow:hidden; } + + /* (en) IE-Clearing: Only used in Internet Explorer, switched on in iehacks.css */ + /* (de) IE-Clearing: Benötigt nur der Internet Explorer und über iehacks.css zugeschaltet */ + #ie_clearing { display: none; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section subtemplates + * @see http://www.yaml.de/en/documentation/practice/subtemplates.html + */ + + .subcolumns { width: 100%; overflow:hidden; } + + /* (en) alternative class for optional support of old Mozilla/Netscape browers */ + /* (de) Alternative Klasse zur optionalen Unterstützung alter Mozilla/Netscape-Brower */ + .subcolumns_oldgecko { width: 100%; float:left; } + + .c50l, .c25l, .c33l, .c38l, .c66l, .c75l, .c62l {float: left; } + .c50r, .c25r, .c33r, .c38r, .c66r, .c75r, .c62r {float: right; margin-left: -5px; } + + .c25l, .c25r { width: 25%; } + .c33l, .c33r { width: 33.333%; } + .c50l, .c50r { width: 50%; } + .c66l, .c66r { width: 66.666%; } + .c75l, .c75r { width: 75%; } + .c38l, .c38r { width: 38.2%; } + .c62l, .c62r { width: 61.8%; } + + .subc { padding: 0 0.5em; } + .subcl { padding: 0 1em 0 0; } + .subcr { padding: 0 0 0 1em; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section hidden elements | Versteckte Elemente + * @see http://www.yaml.de/en/documentation/basics/skip-links.html + * + * (en) skip links and hidden content + * (de) Skip-Links und versteckte Inhalte + */ + + /* (en) classes for invisible elements in the base layout */ + /* (de) Klassen für unsichtbare Elemente im Basislayout */ + .skip, .hideme, .print { + position: absolute; + top: -1000em; + left: -1000em; + height: 1px; + width: 1px; + } + + /* (en) make skip links visible when using tab navigation */ + /* (de) Skip-Links für Tab-Navigation sichtbar schalten */ + .skip:focus, .skip:active { + position: static; + top: 0; + left: 0; + height: auto; + width: auto; + } +} diff --git a/interface/ispconfig/interface/themes/default/yaml/core/iehacks.css b/interface/ispconfig/interface/themes/default/yaml/core/iehacks.css new file mode 100644 index 0000000..8544596 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/iehacks.css @@ -0,0 +1,310 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) YAML core stylesheet - structure-independent bugfixes of IE/Win CSS-bugs + * (de) YAML Basis-Stylesheet - Strukturunabhängige Bugfixes von CSS-Bugs des IE/Win + * + * Don't make any changes in this file! + * Your changes should be added to a separate patch-file. + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + * @appdef yaml + */ + +@media all +{ + /** + * (en) Debugging: When you see a green background, IE is getting this stylesheet + * (de) Fehlersuche: Hintergrund leuchtet grün, wenn das Stylesheet korrekt geladen wurde + * + * @debug + * @app-yaml-default disabled + */ + + /* body { background: #0f0; background-image: none; } */ + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Forcing vertical scrollbars is not needed in IE (only for Firefox/Netscape/Safari) + * (de) Erzwingen vertikaler Scrollbalken im IE nicht benötigt (nur im Firefox/Netscape/Safari) + * + * @workaround + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + + html { height: auto; margin-bottom:0; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Fixes IE5.x and IE6 overflow behavior of textarea and input elements elements + * (de) Korrigiert das fehlerhafte overflow-Verhalten von textarea und input-Elementen + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid no + */ + + * html textarea { overflow:scroll; overflow-x: hidden; } + * html input { overflow: hidden; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Stability fixes with 'position:relative' + * (de) Stabilitätsverbesserungen durch 'position:relative' + * + * @bugfix + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + + body { position:relative; } /* Essential in IE7 for correct layout scaling ... */ + * html body { position:static; } /* ... but not for IE5.x and IE6 */ + #main { position: relative; } /* helpful for several problems in older IE versions*/ + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Clearfix Method for containing floats in IE + * (de) Clearfix-Anpassung für diverse IE-Versionen + * + * @workaround + * @see http://www.456bereastreet.com/archive/200603/new_clearing_method_needed_for_ie7/#comment28 + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + + + .clearfix { display: inline-block; } /* ... especial for IE7 */ + .clearfix { display: block; } /* ... für IE5,IE6,IE7 */ + * html .clearfix { height: 1%; } /* ... für IE5 + IE6/Win | hasLayout aktivieren */ + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Adjustment of .floatbox class for IE + * (de) Anpassung der .floatbox-Klasse für IE + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + + * html .floatbox { width:100%; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Special class for oversized content element + * (de) Spezielle Klasse für übergroße Inhaltselemente + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + + .slidebox { + position:relative; + margin-right: -1000px; + height: 1%; + } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en): Bugfix for partially displayed column separators + * (de): Bugfix für unvollständige Darstellung der Spalteninhalte / Spaltentrenner + * + * @bugfix + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + + * html #col1, + * html #col2, + * html #col3 { position:relative; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Preventing several css bugs by forcing "hasLayout" + * (de) Vermeidung verschiedenster Bugs durch Erzwingen von "hasLayout" + * + * @workaround + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid no + */ + + body { height: 1%; } + #page_margins, #page, #header, #nav, #main, #footer { zoom:1; } /* IE6 & IE7 */ + #page_margins, #page { height: 1%; } /* IE 5.x */ + * html #header, * html #nav, * html #main, * html #footer { width: 100%; } /* IE 5.x & IE6 */ + * html #header, * html #nav, * html #main, * html #footer { wid\th: auto; } /* IE 6 */ + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * Disappearing List-Background Bug + * @see http://www.positioniseverything.net/explorer/ie-listbug.html + * + * @bugfix + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + * html ul, * html ol, * html dl { position: relative; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * List-Numbering Bug + * + * @bugfix + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + body ol li { display:list-item; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * (en) Workaround for 'collapsing margin at #col3' when using CSS-property clear + * Left margin of #col3 collapses when using clear:both in 1-3-2 (or 2-3-1) layout and right column is the + * longest and left column is the shortest one. For IE6 and IE7 a special workaround was developed + * in YAML. + * + * (de) Workaround für 'kollabierenden Margin an #col3' bei Verwendung der CSS-Eigenschaft clear + * Der linke Margin von #col3 kollabiert bei der Verwendung von clear:both im 1-3-2 (oder 2-3-1) Layout + * wenn gleichzeitig die rechte Spalte die kürzeste und die rechte die Längste ist. Im IE6 und IE7 lässt + * sich der Bug durch eine speziell für YAML entwickelten Workaround umgehen. + * + * @workaround + * @affected IE 5.x/Win, IE6, IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid no + */ + + #ie_clearing { + /* (en) Only a small help for debugging */ + /* (de) Nur eine kleine Hilfe zur Fehlersuche */ + position:static; + + /* (en) Make container visible in IE */ + /* (de) Container sichtbar machen im IE */ + display:block; + + /* (en) No fix possible in IE5.x, normal clearing used instead */ + /* (de) Kein Fix im IE5.x möglich, daher normales Clearing */ + \clear:both; + + /* (en) forcing clearing-like behavior with a simple oversized container in IE6 & IE7*/ + /* (de) IE-Clearing mit 100%-DIV für IE6 bzw. übergroßem Container im IE7 */ + width: 100%; + font-size:0px; + margin: -2px 0 -1em 1px; + } + + * html #ie_clearing { margin: -2px 0 -1em 0; } + #col3_content {margin-bottom:-2px; } + + /* (en) avoid horizontal scrollbars in IE7 in borderless layouts because of negative margins */ + /* (de) Vermeidung horizontaler Scrollbalken bei randabfallenden Layouts im IE7 */ + html { margin-right: 1px; } + * html { margin-right: 0 } + + + /* (en) Bugfix: Essential for IE7 */ + /* (de) Bugfix: Notwendig im IE7 */ + #col3 { position:relative; z-index: -1; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * IE/Win Guillotine Bug + * @see http://www.positioniseverything.net/explorer/guillotine.html + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + + * html body a, * html body a:hover { background-color: transparent; } + +} + +@media screen, projection +{ + /** + * (en) IE-Adjustments for content columns and subtemplates + * (de) IE-Anpassung für Spaltencontainer und Subtemplates + * + * Doubled Float-Margin Bug + * @see http://positioniseverything.net/explorer/doubled-margin.html + * + * @bugfix + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + + #col1, #col2 { display:inline; } + + .c50l, .c25l, .c33l, .c38l, .c66l, .c75l, .c62l, + .c50r, .c25r, .c33r, .c38r, .c66r, .c75r, .c62r { display:inline; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * Internet Explorer and the Expanding Box Problem + * @see http://www.positioniseverything.net/explorer/expandingboxbug.html + * + * @workaround + * @affected IE 5.x/Win, IE6 + * @css-for IE 5.x/Win, IE6 + * @valid yes + */ + + * html #col1_content, + * html #col2_content, + * html #col3_content { word-wrap: break-word; } + + * html .subcolumns .subc, + * html .subcolumns .subcl, + * html .subcolumns .subcr { word-wrap: break-word; overflow:hidden; } +} + +@media print +{ + /** + * (en) Avoid unneeded page breaks of #col3 content in print layout. + * (de) Vermeiden von unnötigen Seitenumbrüchen beim Ausdruck der Spalte #col3. + * + * @bugfix + * @affected IE7 + * @css-for IE 5.x/Win, IE6, IE7 + * @valid yes + */ + + #col3 { height: 1%; } +} diff --git a/interface/ispconfig/interface/themes/default/yaml/core/print_base.css b/interface/ispconfig/interface/themes/default/yaml/core/print_base.css new file mode 100644 index 0000000..54c6a39 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/print_base.css @@ -0,0 +1,120 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) YAML core stylesheet - print layout + * (de) YAML Core-Stylesheet - Druck Layout + * + * Don't make any changes in this file! + * Your changes should be added to 'print_xyz_draft.css' drafts from 'yaml/print/' folder. + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media print +{ + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section layout preparation + * @see http://www.yaml.de/en/documentation/css-components/layout-for-print-media.html + */ + + /* (en) Preparing base layout for print */ + /* (de) Basislayout für Druck aufbereiten */ + body, #page_margins, #page, #main { margin:0; padding: 0; border: 0; } + #page_margins, #page { width: 100% !important; min-width:0; max-width: none; } + #header { height: auto; } + + /* (en) Hide unneeded container of the screenlayout in print layout */ + /* (de) Für den Druck nicht benötigte Container des Layouts abschalten */ + #topnav, #nav, #search, #footer { display: none; } + + /* (en) Linearising subtemplates */ + /* (de) Linearisierung der Subtemplates */ + .c25l, .c33l, .c38l, .c50l, .c62l, .c66l, .c75l, + .c25r, .c33r, .c38r, .c50r, .c62r, .c66r, .c75r { + width: 100%; margin:0; float:none; overflow:visible; display:table; + } + .subc, .subcl, .subcr { margin: 0; padding: 0; } + + /* (en) make .print class visible */ + /* (de) .print-Klasse sichtbar schalten */ + .print { position: static; top: 0; left: 0; height: auto; width: auto; } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section content preparation + * @see http://www.yaml.de/en/documentation/css-components/layout-for-print-media.html + */ + + /* (en) Change font to serif */ + /* (de) Zeichensatz auf Serifen umstellen */ + body * { font-family: "Times New Roman", Times, serif; } + code, pre { font-family:"Courier New", Courier, mono; } + body { font-size: 12pt; } + + /* (en) Avoid page breaks right after headings */ + /* (de) Vermeidung von Seitenumbrüchen direkt nach einer Überschrift */ + h1,h2,h3,h4,h5,h6 { page-break-after:avoid; } + + /* (en) Format acronyms and abbreviations for print*/ + /* (de) Auszeichnung von Abkürzungen */ + abbr[title]:after, + acronym[title]:after { content: '(' attr(title) ')'; } + + /* (en) Disable background graphics of links */ + /* (de) Abschalten evlt. vorhandener Hintergrundgrafiken zur Linkkennzeichnung */ + #page a[href^="http:"], + #page a[href^="https:"] { padding-left: 0; background-image: none; } + + /* (en) Enable URL output in print layout */ + /* (de) Sichtbare Auszeichnung der URLs von Links */ + a[href]:after { + content:" <URL: "attr(href)">"; + color:#444; + background:inherit; + font-style:italic; + } + + /* (en) Preparation for optional column labels */ + /* (de) Vorbereitung für optionale Spaltenauszeichnung */ + #col1_content:before, #col2_content:before, #col3_content:before { + content: ""; + color:#888; + background:inherit; + display:block; + font-weight:bold; + font-size:1.5em; + } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section browser fixes for print layouts + * @see http://www.yaml.de/en/documentation/css-components/layout-for-print-media.html + */ + + /** + * (en) overflow:hidden Bug in print layouts + * (de) overflow:hidden Bug in Drucklayouts + * + * @bugfix + * @since 3.0 + * @affected FF2.0, IE7 + * @css-for all browsers + * @valid yes + */ + + .floatbox, + .subcolumns, + .subcolums_oldgecko { overflow:visible; display: table; } +} diff --git a/interface/ispconfig/interface/themes/default/yaml/core/slim_base.css b/interface/ispconfig/interface/themes/default/yaml/core/slim_base.css new file mode 100644 index 0000000..ef205e1 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/slim_base.css @@ -0,0 +1,50 @@ +@charset "UTF-8"; +/* "Yet Another Multicolumn Layout" v3.0.6 (c) by Dirk Jesse (http://www.yaml.de) +* $Revision: 202 $ $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ */ +@media all { +*{margin:0;padding:0} +option{padding-left:.4em} +* html body *{overflow:visible} +* html iframe,* html frame{overflow:auto} +* html frameset{overflow:hidden} +html{height:100%;margin-bottom:1px} +body{font-size:100.01%;color:#000;background:#fff;text-align:left} +fieldset,img{border:0 solid} +ul,ol,dl{margin:0 0 1em 1em} +li{margin-left:1.5em;line-height:1.5em} +dt{font-weight:700} +dd{margin:0 0 1em 2em} +blockquote{margin:0 0 1em 1.5em} +#header{position:relative} +#topnav{text-align:right} +#header #topnav{position:absolute;top:10px;right:10px} +#header,#nav,#main,#footer{clear:both} +#col1{float:left;width:200px} +#col2{float:right;width:200px} +#col3{width:auto;margin:0 200px} +#col1_content,#col2_content,#col3_content{position:relative} +.hideboth #col3{margin-left:0;margin-right:0} +.hidecol1 #col3{margin-left:0;margin-right:200px} +.hidecol2 #col3{margin-left:200px;margin-right:0} +.hideboth #col1,.hideboth #col2,.hidecol1 #col1,.hidecol2 #col2{display:none} +.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden} +.clearfix{display:block} +.floatbox{overflow:hidden} +#ie_clearing{display:none} +.subcolumns{width:100%;overflow:hidden} +.subcolumns_oldgecko{width:100%;float:left} +.c50l,.c25l,.c33l,.c38l,.c66l,.c75l,.c62l{float:left} +.c50r,.c25r,.c33r,.c38r,.c66r,.c75r,.c62r{float:right;margin-left:-5px} +.c25l,.c25r{width:25%} +.c33l,.c33r{width:33.333%} +.c50l,.c50r{width:50%} +.c66l,.c66r{width:66.666%} +.c75l,.c75r{width:75%} +.c38l,.c38r{width:38.2%} +.c62l,.c62r{width:61.8%} +.subc{padding:0 .5em} +.subcl{padding:0 1em 0 0} +.subcr{padding:0 0 0 1em} +.skip,.hideme,.print{position:absolute;top:-1000em;left:-1000em;height:1px;width:1px} +.skip:focus,.skip:active{position:static;top:0;left:0;height:auto;width:auto} +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/core/slim_iehacks.css b/interface/ispconfig/interface/themes/default/yaml/core/slim_iehacks.css new file mode 100644 index 0000000..0b46deb --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/slim_iehacks.css @@ -0,0 +1,36 @@ +@charset UTF-8; +/* "Yet Another Multicolumn Layout" v3.0.6 (c) by Dirk Jesse (http://www.yaml.de) +* $Revision: 202 $ $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ */ +@media all { +html{height:auto;margin-bottom:0;margin-right:1px} +* html textarea{overflow:scroll;overflow-x:hidden} +* html input{overflow:hidden} +body{position:relative;height:1%} +* html body{position:static} +#main{position:relative} +.clearfix{display:inline-block} +.clearfix{display:block} +* html .clearfix{height:1%} +* html .floatbox{width:100%} +.slidebox{position:relative;margin-right:-1000px;height:1%} +* html #col1,* html #col2,* html #col3{position:relative} +#page_margins,#page,#header,#nav,#main,#footer{zoom:1} +#page_margins,#page{height:1%} +* html #header,* html #nav,* html #main,* html #footer{width:100%;wid\th:auto} +* html ul,* html ol,* html dl{position:relative} +body ol li{display:list-item} +#ie_clearing{position:static;display:block;\clear:both;width:100%;font-size:0;margin:-2px 0 -1em 1px} +* html #ie_clearing{margin:-2px 0 -1em} +#col3_content{margin-bottom:-2px} +* html{margin-right:0} +#col3{position:relative;z-index:-1} +* html body a,* html body a:hover{background-color:transparent} +} +@media screen,projection { +#col1,#col2,.c50l,.c25l,.c33l,.c38l,.c66l,.c75l,.c62l,.c50r,.c25r,.c33r,.c38r,.c66r,.c75r,.c62r{display:inline} +* html #col1_content,* html #col2_content,* html #col3_content{word-wrap:break-word} +* html .subcolumns .subc,* html .subcolumns .subcl,* html .subcolumns .subcr{word-wrap:break-word;overflow:hidden} +} +@media print { +#col3{height:1%} +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/core/slim_print_base.css b/interface/ispconfig/interface/themes/default/yaml/core/slim_print_base.css new file mode 100644 index 0000000..42a5d5b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/core/slim_print_base.css @@ -0,0 +1,21 @@ +@charset "UTF-8"; +/* "Yet Another Multicolumn Layout" v3.0.6 (c) by Dirk Jesse (http://www.yaml.de) +* $Revision: 202 $ $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ */ +@media print { +body,#page_margins,#page,#main{border:0;margin:0;padding:0} +#page_margins,#page{width:100%!important;min-width:0;max-width:none} +#header{height:auto} +#topnav,#nav,#search,#footer{display:none} +.c25l,.c33l,.c38l,.c50l,.c62l,.c66l,.c75l,.c25r,.c33r,.c38r,.c50r,.c62r,.c66r,.c75r{width:100%;float:none;overflow:visible;display:table;margin:0} +.subc,.subcl,.subcr{margin:0;padding:0} +.print{position:static;top:0;left:0;height:auto;width:auto} +body *{font-family:"Times New Roman", Times, serif} +code,pre{font-family:"Courier New", Courier, mono} +body{font-size:12pt} +h1,h2,h3,h4,h5,h6{page-break-after:avoid} +abbr[title]:after,acronym[title]:after{content:'(' attr(title) ')'} +#page a[href^="http:"],#page a[href^="https:"]{padding-left:0;background-image:none} +a[href]:after{content:" <URL: "attr(href)">";color:#444;background:inherit;font-style:italic} +#col1_content:before,#col2_content:before,#col3_content:before{content:"";color:#888;background:inherit;display:block;font-weight:700;font-size:1.5em} +.floatbox,.subcolumns,.subcolums_oldgecko{overflow:visible;display:table} +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/debug/debug.css b/interface/ispconfig/interface/themes/default/yaml/debug/debug.css new file mode 100644 index 0000000..0c4269b --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/debug/debug.css @@ -0,0 +1,157 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) YAML debugging stylesheet + * (de) YAML Stylesheet zur Fehlersuche + * + * Don't make any changes in this file! + * Your changes should be placed in any css-file in your own stylesheet folder. + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 43 $ + * @lastmodified $Date: 2007-06-11 16:09:28 +0200 (Mo, 11 Jun 2007) $ + */ + +@media all +{ + /*------------------------------------------------------------------------------------------------------*/ + + /** + * @section layout preparation for debugging + * @see http://www.yaml.de/en/documentation/practice/drafting-and-debugging.html + */ + + /* Adding debugging background */ + body { background: transparent url(images/grid_pattern.png) top left no-repeat !important; } + + /* CSS-Warning, if core stylesheet 'iehacks.css' is missing in the layout */ + *:first-child+html #ie_clearing { display:block; } + * html #ie_clearing { display:block; } + + #ie_clearing { + width: 500px; + font-size: 25px; + position:absolute; + top: -2px; + left:0px; + background: url("images/warning_iehacks.gif") top left no-repeat; + } + + /** + * @section pixel grid + */ + + .bg_grid { + background-image:url(images/grid_pattern.png) !important; + background-repeat:no-repeat; + background-position:top left !important; + } + + /** + * @section transparency + */ + + .transOFF { -moz-opacity: 1.0; opacity: 1.0; filter: alpha(Opacity=100);} + .trans50, + .transON { -moz-opacity: 0.5; opacity: 0.5; filter: alpha(Opacity=50);} + .trans25 { -moz-opacity: 0.25; opacity: 0.25; filter: alpha(Opacity=25);} + .trans75 { -moz-opacity: 0.75; opacity: 0.75; filter: alpha(Opacity=75);} + + /** + * @section colors + */ + + .bg_red { background-color: #f00 !important;} + .bg_blue { background-color: #00f !important;} + .bg_green { background-color: #0f0 !important;} + + /** + * @visualize semantic structure + * + * Many thanks to Tomas Caspers for some ideas + */ + + div[id] { padding: 0 !important; margin: 2px; border: 1px #000 solid !important; } + div[id]:before { + display:block; + color: #fff; + background: #800; + padding: 2px; + font: bold .8em "Lucida console", monospace; + content: "[div #"attr(id)"]"; + } + + div[class="floatbox"] { background: #f4f4f4; } + div[class="floatbox"]:before { + display:block; + color: #fff; + background: #66a; + padding: 2px; + font: bold .8em "Lucida console", monospace; + content: "[div ."attr(class)"]"; + } + + div[class="subcolumns"] { background: #f8f8f8; } + div[class="subcolumns"]:before { + display:block; + color: #fff; + background: #444; + padding: 2px; + font: bold .8em "Lucida console", monospace; + content: "[div ."attr(class)"]"; + } + + div[class="subcolumns"] > div:before { + display:block; + color: #fff; + background: #080; + padding: 2px; + font: bold .8em "Lucida console", monospace; + content: "[div ."attr(class)"]"; + } + + div[class="subc"], div[class="subcl"], div[class="subcr"] { background: #eee; } + div[class="subc"]:before, div[class="subcl"]:before, div[class="subcr"]:before { + display:block; + color: #fff; + background: #6a6; + padding: 2px; + font: bold .8em "Lucida console", monospace; + content: "[div ."attr(class)"]"; + } + + h1:before { content: "[h1] "; } + h2:before { content: "[h2] "; } + h3:before { content: "[h3] "; } + h4:before { content: "[h4] "; } + h5:before { content: "[h5] "; } + h6:before { content: "[h6] "; } + + a:hover:before { content: " ( href='" attr(href) "' ) "; } + a:hover:after { content: " [ title='"attr(title)"' ] "; } + + img:after { content:" ( alt='" attr(alt)"' ) "; } + + address, blockquote, dl, fieldset, form, h1, h2, h3, h4, ol, p, pre, ul { + border: 1px dotted #888; + margin: 2px; + padding: 2px; + display: block; + } + + /** + * @visualize inline elements + * + * Many thanks to Tomas Caspers for some ideas + */ + + abbr, acronym { background: #d9eaff; } + q, cite, dfn, kbd { background: #ffe3f6; } + /* :lang(de), :lang(en), :lang(fr), :lang(es) { background: #d9efaa !important; } */ +} diff --git a/interface/ispconfig/interface/themes/default/yaml/debug/images/grid_pattern.png b/interface/ispconfig/interface/themes/default/yaml/debug/images/grid_pattern.png new file mode 100644 index 0000000..55e65e4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/debug/images/grid_pattern.png Binary files differ diff --git a/interface/ispconfig/interface/themes/default/yaml/debug/images/warning_iehacks.gif b/interface/ispconfig/interface/themes/default/yaml/debug/images/warning_iehacks.gif new file mode 100644 index 0000000..b7cc86d --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/debug/images/warning_iehacks.gif Binary files differ diff --git a/interface/ispconfig/interface/themes/default/yaml/debug/images/yaml_debug.gif b/interface/ispconfig/interface/themes/default/yaml/debug/images/yaml_debug.gif new file mode 100644 index 0000000..80a4ea3 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/debug/images/yaml_debug.gif Binary files differ diff --git a/interface/ispconfig/interface/themes/default/yaml/navigation/nav_vlist.css b/interface/ispconfig/interface/themes/default/yaml/navigation/nav_vlist.css new file mode 100644 index 0000000..af2f7e8 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/navigation/nav_vlist.css @@ -0,0 +1,109 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Vertical list navigation "vlist" + * (de) Vertikale Navigationsliste "vlist" + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media all +{ + #submenu { + width: 100%; + overflow: hidden; + margin: 2.4em 0 1.5em 0; + list-style-type: none; + border-top: 2px #ddd solid; + border-bottom: 2px #ddd solid; + } + + #submenu ul { list-style-type: none; margin:0; padding: 0; } + #submenu li { float:left; width: 100%; margin:0; padding: 0; } + + #submenu a, + #submenu strong { + display:block; + width: 90%; + padding: 3px 0px 3px 10%; + text-decoration: none; + background-color:#fff; + color: #444; + border-bottom: 1px #eee solid; + } + + /* Menu Title */ + #submenu li#title { + width: 90%; + padding: 3px 0px 3px 10%; + font-weight: bold; + color: #444; + background-color: #fff; + border-bottom: 4px #888 solid; + } + + #submenu li span { + display:block; + width: 90%; + padding: 3px 0px 3px 10%; + font-weight: bold; + border-bottom: 1px #ddd solid; + } + + /* Level 1 */ + #submenu li#active, + #submenu li strong { + width: 90%; + padding: 3px 0px 3px 10%; + font-weight: bold; + color: #fff; + background-color:#aab; + border-bottom: 1px #eee solid; + } + + #submenu li a { width: 90%; padding-left: 10%; background-color:#fff; color: #444; } + #submenu li a:focus, + #submenu li a:hover, + #submenu li a:active { background-color:#f63; color: #fff; } + + /* Level 2 */ + #submenu li ul li a, + #submenu li ul li#active, + #submenu li ul li strong, + #submenu li ul li span { width: 80%; padding-left: 20%; } + + #submenu li ul li a { background-color:#f8f8f8; color: #666; } + #submenu li ul li a:focus, + #submenu li ul li a:hover, + #submenu li ul li a:active { background-color:#f63; color: #fff; } + + /* Level 3 */ + #submenu li ul li ul li a, + #submenu li ul li ul li#active, + #submenu li ul li ul li strong, + #submenu li ul li ul li span { width: 70%; padding-left: 30%; } + + #submenu li ul li ul li a { background-color:#fcfcfc; color: #888; } + #submenu li ul li ul li a:focus, + #submenu li ul li ul li a:hover, + #submenu li ul li ul li a:active { background-color:#f63; color: #fff; } + + /* Level 4 */ + #submenu li ul li ul li ul li a, + #submenu li ul li ul li ul li#active, + #submenu li ul li ul li ul li strong, + #submenu li ul li ul li ul li span { width: 60%; padding-left: 40%; } + + #submenu li ul li ul li ul li a { background-color:#ffffff; color: #aaa; } + #submenu li ul li ul li ul li a:focus, + #submenu li ul li ul li ul li a:hover, + #submenu li ul li ul li ul li a:active { background-color:#f63; color: #fff; } +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/patches/patch_layout_draft.css b/interface/ispconfig/interface/themes/default/yaml/patches/patch_layout_draft.css new file mode 100644 index 0000000..83e8353 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/patches/patch_layout_draft.css @@ -0,0 +1,29 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Example of a patch stylesheet for the Internet Explorer + * (de) Beispiel für ein Anpassungs-Stylesheet für den Internet Explorer + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* Layout independent adjustments | Layout-unabhängige Anpassungen ----------------------------------- */ +@import url(/yaml/core/iehacks.css); + +/* Box model adjustments for vlist navigation | Box-Modell-Anpassungen für vlist-Navigation */ +/* @import url(/yaml/patches/patch_nav_vlist.css); */ + +/* Layout-dependent adjustments | Layout-abhängige Anpassungen --------------------------------------- */ +@media screen, projection +{ + /* add your adjustments here | Fügen Sie Ihre Anpassungen hier ein */ + +} diff --git a/interface/ispconfig/interface/themes/default/yaml/patches/patch_nav_vlist.css b/interface/ispconfig/interface/themes/default/yaml/patches/patch_nav_vlist.css new file mode 100644 index 0000000..21041be --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/patches/patch_nav_vlist.css @@ -0,0 +1,61 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) IE adjustment stylesheet for YAML vlist navigation + * Import this file within the IE-patch-file if needed in your layout + * + * (de) IE Anpassungs-Stylesheet für YAML vlist-Navigation + * Einbindung ins Layout erfolgt über den Import innerhalb des IE-Anspassungs-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media screen, projection +{ + /** + * Box Model Bug + * (en) Adjustment of width values for list elements of the menu in IE 5.x/Win. + * Note: If IE6 is running in quirks mode, it also needs 100% values! + * + * (de) Korrektur der Breitenangaben der Listenelemente des Submenüs im IE 5.x/Win. + * Hinweis: Befindet sich der IE6 im Quirks Mode, so benötigt er ebenfalls 100%-Werte ! + * + * @bugfix + * @affected IE 5.x/Win (IE6 in Quirks-Mode) + * @css-for IE 5.x/Win, IE6 + * @valid no + */ + + /* level 1 */ + * html #submenu li a, + * html #submenu li strong, + * html #submenu li span, + * html #submenu li#title, + * html #submenu li#active { width: 100%; w\idth: 90%; } + + /* level 2 */ + * html #submenu li ul li a, + * html #submenu li ul li strong, + * html #submenu li ul li span, + * html #submenu li ul li#active { width: 100%; w\idth: 80%; } + + /* level 3 */ + * html #submenu li ul li ul li a, + * html #submenu li ul li ul li strong, + * html #submenu li ul li ul li span, + * html #submenu li ul li ul li#active { width: 100%; w\idth: 70%; } + + /* level 4 */ + * html #submenu li ul li ul li ul li a, + * html #submenu li ul li ul li ul li strong, + * html #submenu li ul li ul li ul li span, + * html #submenu li ul li ul li ul li#active { width: 100%; w\idth: 60%; } +} diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_003_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_003_draft.css new file mode 100644 index 0000000..29c6df6 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_003_draft.css @@ -0,0 +1,32 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - 0 +** #col2 - 0 +** #col3 - x +*/ + +@media print +{ + #col1 { display:none; } + #col2 { display:none; } + + #col3, #col3_content { width: 100%; margin:0; padding: 0; border:0; } +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_020_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_020_draft.css new file mode 100644 index 0000000..885b0b9 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_020_draft.css @@ -0,0 +1,31 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - 0 +** #col2 - x +** #col3 - 0 +*/ +@media print +{ + #col1 { display:none; } + #col3 { display:none; } + + #col2, #col2_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_023_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_023_draft.css new file mode 100644 index 0000000..a80bb08 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_023_draft.css @@ -0,0 +1,40 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - 0 +** #col2 - x +** #col3 - x +*/ + +@media print +{ + #col1 { display:none; } + + #col2, #col2_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col2_content { page-break-after:always; } + + #col3, #col3_content {width: 100%; margin:0; padding: 0; border:0; } + + /* Optional Column Labels | Optionale Spaltenauszeichnung + #col2_content:before { content:" [ left | middle | right column ]"; } + #col3_content:before { content:" [ left | middle | right column ]"; } + */ +} + diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_100_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_100_draft.css new file mode 100644 index 0000000..99f29b4 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_100_draft.css @@ -0,0 +1,31 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - x +** #col2 - 0 +** #col3 - 0 +*/ +@media print +{ + #col1, #col1_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + + #col2 { display:none; } + #col3 { display:none; } +} diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_103_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_103_draft.css new file mode 100644 index 0000000..983e61a --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_103_draft.css @@ -0,0 +1,38 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - x +** #col2 - 0 +** #col3 - x +*/ +@media print +{ + #col1, #col1_content {float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col1_content {page-break-after:always; } + + #col2 { display:none; } + + #col3, #col3_content { width: 100%; margin:0; padding: 0; border:0; } + + /* Optional Column Labels | Optionale Spaltenauszeichnung + #col1_content:before { content:" [ left | middle | right column ]"; } + #col3_content:before { content:" [ left | middle | right column ]"; } + */ +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_120_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_120_draft.css new file mode 100644 index 0000000..43f0950 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_120_draft.css @@ -0,0 +1,39 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - x +** #col2 - x +** #col3 - 0 +*/ +@media print +{ + #col1, #col1_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col1_content { page-break-after:always; } + + #col2, #col2_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col2_content { page-break-after:always; } + + #col3 { display:none; } + + /* Optional Column Labels | Optionale Spaltenauszeichnung + #col1_content:before { content:" [ left | middle | right column ]"; } + #col2_content:before { content:" [ left | middle | right column ]"; } + */ +} diff --git a/interface/ispconfig/interface/themes/default/yaml/print/print_123_draft.css b/interface/ispconfig/interface/themes/default/yaml/print/print_123_draft.css new file mode 100644 index 0000000..d2586db --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/print/print_123_draft.css @@ -0,0 +1,40 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) print stylesheet + * (de) Druck-Stylesheet + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +/* import print base styles | Basisformatierung für Drucklayout einbinden */ +@import url(../core/print_base.css); + +/* #col1 - x +** #col2 - x +** #col3 - x +*/ +@media print +{ + #col1, #col1_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col1_content { page-break-after:always; } + + #col2, #col2_content { float:none; width: 100%; margin: 0; padding: 0; border: 0; } + #col2_content { page-break-after:always; } + + #col3, #col3_content { width: 100%; margin:0; padding: 0; border:0; } + + /* Optional Column Labels | Optionale Spaltenauszeichnung + #col1_content:before { content:" [ left | middle | right column ]"; } + #col2_content:before { content:" [ left | middle | right column ]"; } + #col3_content:before { content:" [ left | middle | right column ]"; } + */ +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/screen/basemod_draft.css b/interface/ispconfig/interface/themes/default/yaml/screen/basemod_draft.css new file mode 100644 index 0000000..c738ee0 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/screen/basemod_draft.css @@ -0,0 +1,70 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Template for designing a screen layout + * (de) Gestaltungsvorlage für die Erstellung eines Screenlayouts + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + */ + +@media screen, projection +{ + /*------------------------------------------------------------------------------------------------------*/ + + /** + * Design of the Basic Layout | Gestaltung des YAML Basis-Layouts + * + * @section layout-basics + */ + + /* Page margins and background | Randbereiche & Seitenhintergrund */ + body { } + + /* Layout: Width, Background, Border | Layout: Breite, Hintergrund, Rahmen */ + #page_margins { } + #page{ } + + /* Design of the Main Layout Elements | Gestaltung der Hauptelemente des Layouts */ + #header { } + #topnav { } + + #main { } + + #footer { } + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * Formatting of the Content Area | Formatierung der Inhaltsbereichs + * + * @section layout-main + */ + + #col1 { } + #col1_content { } + + #col2 { } + #col2_content { } + + #col3 { } + #col3_content { } + + + /*------------------------------------------------------------------------------------------------------*/ + + /** + * Design of Additional Layout Elements | Gestaltung weiterer Layoutelemente + * + * @section layout-misc + */ + + +} \ No newline at end of file diff --git a/interface/ispconfig/interface/themes/default/yaml/screen/content_default.css b/interface/ispconfig/interface/themes/default/yaml/screen/content_default.css new file mode 100644 index 0000000..5742599 --- /dev/null +++ b/interface/ispconfig/interface/themes/default/yaml/screen/content_default.css @@ -0,0 +1,170 @@ +@charset "UTF-8"; +/** + * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework + * + * (en) Uniform design of standard content elements + * (de) Einheitliche Standardformatierungen für die wichtigten Inhalts-Elemente + * + * @copyright Copyright 2005-2008, Dirk Jesse + * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/), + * YAML-C (http://www.yaml.de/en/license/license-conditions.html) + * @link http://www.yaml.de + * @package yaml + * @version 3.0.6 + * @revision $Revision: 202 $ + * @lastmodified $Date: 2008-06-07 14:29:18 +0200 (Sa, 07 Jun 2008) $ + * @appdef yaml + */ + +@media all +{ + /** + * Fonts + * (en) font-family and font-size selection for headings and standard text elements + * (de) Zeichensatz und Schriftgrößen für Überschriften und übliche Text-Elemente + * + * @section content-fonts + */ + + /* (en) reset font size for all elements to standard (16 Pixel) */ + /* (de) Alle Schriftgrößen auf Standardgröße (16 Pixel) zurücksetzen */ + html * { font-size: 100.01%; } + + /* (en) reset monospaced elements to font size 16px in Gecko browsers */ + /* (de) Schriftgröße von monospaced Elemente auf 16 Pixel setzen */ + textarea, pre, tt, code { + font-family:"Courier New", Courier, monospace; + } + + /* (en) base layout gets standard font size 12px */ + /* (de) Basis-Layout erhält Standardschriftgröße von 12 Pixeln */ + body { + font-family: 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; + font-size: 75.00%; + } + + h1,h2,h3,h4,h5,h6 { font-weight:bold; margin: 0 0 0.25em 0; } + h1 { font-size: 200% } /* 24px */ + h2 { font-size: 166.67% } /* 20px */ + h3 { font-size: 150% } /* 18px */ + h4 { font-size: 133.33% } /* 16px */ + h5 { font-size: 116.67% } /* 14px */ + h6 { font-size: 116.67%; font-style:italic; } /* 14px */ + + p { line-height: 1.5em; margin: 0 0 1em 0; } + + /* ### Lists | Listen #### */ + + ul, ol, dl { line-height: 1.5em; margin: 0 0 1em 1em; } + li { margin-left: 1.5em; line-height: 1.5em; } + + dt { font-weight: bold; } + dd { margin: 0 0 1em 2em; } + + /* ### text formatting | Textauszeichnung ### */ + + cite, blockquote { font-style:italic; } + blockquote { margin: 0 0 1em 1.5em; } + + strong,b { font-weight: bold; } + em,i { font-style:italic; } + + pre, code { font-family: monospace; font-size: 1.1em; } + + acronym, abbr { + letter-spacing: .07em; + border-bottom: .1em dashed #c00; + cursor: help; + } + + /** + * Generic Content Classes + * (en) standard classes for positioning and highlighting + * (de) Standardklassen zur Positionierung und Hervorhebung + * + * @section content-generic-classes + */ + + .note { background: #dfd; padding: 1em; border-top: 1px #bdb dotted; border-bottom: 1px #bdb dotted; } + .important { background: #ffd; padding: 1em; border-top: 1px #ddb dotted; border-bottom: 1px #ddb dotted; } + .warning { background: #fdd; padding: 1em; border-top: 1px #dbb dotted; border-bottom: 1px #dbb dotted; } + + .float_left { float: left; display:inline; margin-right: 1em; margin-bottom: 0.15em; } + .float_right { float: right; display:inline; margin-left: 1em; margin-bottom: 0.15em; } + .center { text-align:center; margin: 0.5em auto; } + + /** + * External Links + * + * (en) Formatting of hyperlinks + * (de) Gestaltung von Hyperlinks + * + */ + + a { color: #900; text-decoration:none; } + a:focus, + a:hover, + a:active { background-color: #fee; text-decoration:underline; } + + #topnav a { color: #aac; font-weight: bold; background:transparent; text-decoration:none; } + #topnav a:focus, + #topnav a:hover, + #topnav a:active{ text-decoration:underline; background-color: transparent; } + + #footer a { color: #aac; background:transparent; font-weight: bold; } + #footer a:focus, + #footer a:hover, + #footer a:active { color: #fff; background-color: transparent; text-decoration:underline; } + + /** + * (en) Emphasizing external Hyperlinks via CSS + * (de) Hervorhebung externer Hyperlinks mit CSS + * + * @section content-external-links + * @app-yaml-default disabled + */ + + /* + #main a[href^="http://www.my-domain.com"], + #main a[href^="https://www.my-domain.com"] + { + padding-left: 12px; + background-image: url('your_image.gif'); + background-repeat: no-repeat; + background-position: 0 0.45em; + } + */ + + /** + * Tables | Tabellen + * (en) Generic classes for table-width and design definition + * (de) Generische Klassen für die Tabellenbreite und Gestaltungsvorschriften für Tabellen + * + * @section content-tables + */ + + table { width: auto; border-collapse:collapse; margin-bottom: 0.5em; } + table.full { width: 100%; } + table.fixed { table-layout:fixed; } + + th,td { padding: 0.5em; } + thead th { background: #444; color: #fff; } + tbody th { background: #ccc; color: #333; } + tbody th.sub { background: #ddd; color: #333; } + + /** + * Miscellaneous | Sonstiges + * + * @section content-misc + */ + + hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 solid; + } +} + diff --git a/interface/ispconfig/interface/web/tools/form/user_settings.tform.php b/interface/ispconfig/interface/web/tools/form/user_settings.tform.php new file mode 100644 index 0000000..516031a --- /dev/null +++ b/interface/ispconfig/interface/web/tools/form/user_settings.tform.php @@ -0,0 +1,144 @@ +<?php + +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* + Form Definition + + Tabellendefinition + + Datentypen: + - INTEGER (Wandelt Ausdr�cke in Int um) + - DOUBLE + - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - VARCHAR (kein weiterer Format Check) + - TEXT (kein weiterer Format Check) + - DATE (Datumsformat, Timestamp Umwandlung) + + Formtype: + - TEXT (normales Textfeld) + - TEXTAREA (normales Textfeld) + - PASSWORD (Feldinhalt wird nicht angezeigt) + - SELECT (Gibt Werte als option Feld aus) + - RADIO + - CHECKBOX + - CHECKBOXARRAY + - FILE + + VALUE: + - Wert oder Array + + Hinweis: + Das ID-Feld ist nicht bei den Table Values einzuf�gen. + + +*/ + +$form['title'] = 'User Settings'; +$form['description'] = 'Form to edit the user password and language.'; +$form['name'] = 'usersettings'; +$form['action'] = 'user_settings.php'; +$form['db_table'] = 'sys_user'; +$form['db_table_idx'] = 'userid'; +$form["db_history"] = "no"; +$form['tab_default'] = 'users'; +$form['list_default'] = 'index.php'; +$form['auth'] = 'no'; + +//* 0 = id of the user, > 0 id must match with id of current user +$form['auth_preset']['userid'] = 0; +//* 0 = default groupid of the user, > 0 id must match with groupid of current user +$form['auth_preset']['groupid'] = 0; + +//** Permissions are: r = read, i = insert, u = update, d = delete +$form['auth_preset']['perm_user'] = 'riud'; +$form['auth_preset']['perm_group'] = 'riud'; +$form['auth_preset']['perm_other'] = ''; + +//* Languages +$language_list = array(); +$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang'); +while ($file = @readdir ($handle)) { + if ($file != '.' && $file != '..') { + if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') { + $tmp = substr($file, 0, 2); + $language_list[$tmp] = $tmp; + } + } +} + +$form['tabs']['users'] = array ( + 'title' => 'Settings', + 'width' => 80, + 'template' => 'templates/user_settings.htm', + 'fields' => array ( + ################################## + # Beginn Datenbankfelder + ################################## + 'passwort' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '100', + 'rows' => '', + 'cols' => '' + ), + 'language' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'language_is_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[a-z]{2}$/i', + 'errmsg'=> 'language_regex_mismatch'), + ), + 'regex' => '', + 'errmsg' => '', + 'default' => '', + 'value' => $language_list, + 'separator' => '', + 'width' => '30', + 'maxlength' => '2', + 'rows' => '', + 'cols' => '' + ) + ################################## + # ENDE Datenbankfelder + ################################## + ) +); + + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/web/tools/index.php b/interface/ispconfig/interface/web/tools/index.php new file mode 100644 index 0000000..641221b --- /dev/null +++ b/interface/ispconfig/interface/web/tools/index.php @@ -0,0 +1,50 @@ +<?php + +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/user_settings.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('tools'); + +echo '<p class="frmTextHead">'.$app->lng('Hosting Panel Tools').'</p>'; + +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/bg.lng b/interface/ispconfig/interface/web/tools/lib/lang/bg.lng new file mode 100644 index 0000000..3373fe1 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/bg.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Потребителски настройки'; +$wb['Settings'] = 'Настройки'; +$wb['ISPConfig Tools'] = 'ISPConfig инструменти'; +$wb['Password and Language'] = 'Парола и език'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/bg_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/bg_usersettings.lng new file mode 100644 index 0000000..e4bc3af --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/bg_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Парола'; +$wb['password_strength_txt'] = 'Сила на паролата'; +$wb['language_txt'] = 'Език'; +$wb['password_mismatch'] = 'Паролите в двете полета не съвпадат.'; +$wb['Form to edit the user password and language.'] = 'Форма за промяна на езика и паролата'; +$wb['Settings'] = 'Настройки'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/br.lng b/interface/ispconfig/interface/web/tools/lib/lang/br.lng new file mode 100644 index 0000000..0ea9686 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/br.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Configurações do Usuário'; +$wb['Settings'] = 'Configurações'; +$wb['ISPConfig Tools'] = 'Ferramentas'; +$wb['Password and Language'] = 'Senha e Idioma'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/br_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/br_usersettings.lng new file mode 100644 index 0000000..ad7432d --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/br_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança de Senha'; +$wb['language_txt'] = 'Idioma'; +$wb['password_mismatch'] = 'As senhas não conhecidem'; +$wb['Form to edit the user password and language.'] = 'Formulário para alterar idioma e senha'; +$wb['Settings'] = 'Configurações'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/de.lng b/interface/ispconfig/interface/web/tools/lib/lang/de.lng new file mode 100644 index 0000000..296bf1f --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/de.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Benutzereinstellungen'; +$wb['Settings'] = 'Einstellungen'; +$wb['ISPConfig Tools'] = 'Tools'; +$wb['Password and Language'] = 'Passwort und Sprache'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/de_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/de_usersettings.lng new file mode 100644 index 0000000..2adc821 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/de_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Passwort'; +$wb['language_txt'] = 'Sprache'; +$wb['password_mismatch'] = 'Die Passwörter stimmen nicht überein.'; +$wb['password_strength_txt'] = 'Passwortkomplexität'; +$wb['Form to edit the user password and language.'] = 'Formular um das Benutzerpasswort und die Sprache zu bearbeiten.'; +$wb['Settings'] = 'Einstellungen'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/en.lng b/interface/ispconfig/interface/web/tools/lib/lang/en.lng new file mode 100644 index 0000000..53af171 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/en.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'User Settings'; +$wb['Settings'] = 'Settings'; +$wb['ISPConfig Tools'] = 'Hosting Panel Tools'; +$wb['Password and Language'] = 'Password and Language'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/en_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/en_usersettings.lng new file mode 100644 index 0000000..bfe4871 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/en_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb["passwort_txt"] = 'Password'; +$wb["password_strength_txt"] = 'Password strength'; +$wb["language_txt"] = 'Language'; +$wb["password_mismatch"] = 'The password in the second password field does not match the first password.'; +$wb["Form to edit the user password and language."] = 'Form to edit the user password and language.'; +$wb["Settings"] = 'Settings'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/es.lng b/interface/ispconfig/interface/web/tools/lib/lang/es.lng new file mode 100644 index 0000000..ba82e68 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/es.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Configuraciones del usuario'; +$wb['Settings'] = 'Configuraciones'; +$wb['ISPConfig Tools'] = 'Herramientas ISPConfig'; +$wb['Password and Language'] = 'Contraseña e Idioma'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/es_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/es_usersettings.lng new file mode 100644 index 0000000..12f5206 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/es_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Contraseña'; +$wb['password_strength_txt'] = 'Fortaleza de la contraseña'; +$wb['language_txt'] = 'Idioma'; +$wb['password_mismatch'] = 'La contraseña indicada en el segundo campo no coincide con la del primero.'; +$wb['Form to edit the user password and language.'] = 'Formulario para editar el usuario y la contraseña.'; +$wb['Settings'] = 'Configuraciones'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/fi.lng b/interface/ispconfig/interface/web/tools/lib/lang/fi.lng new file mode 100644 index 0000000..c629aa1 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/fi.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Käyttäjän asetukset'; +$wb['Settings'] = 'Asetukset'; +$wb['ISPConfig Tools'] = 'ISPConfig-työkalut'; +$wb['Password and Language'] = 'Salasanat ja kielet'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/fi_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/fi_usersettings.lng new file mode 100644 index 0000000..16ec5cf --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/fi_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Salasana'; +$wb['language_txt'] = 'Kieli'; +$wb['password_mismatch'] = 'Salasanat eivät täsmää.'; +$wb['password_strength_txt'] = 'Salasanan vahvuus'; +$wb['Form to edit the user password and language.'] = 'Lomake käyttäjän salasanan ja kieliasetusten muokkaamiseen.'; +$wb['Settings'] = 'Asetukset'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/fr.lng b/interface/ispconfig/interface/web/tools/lib/lang/fr.lng new file mode 100644 index 0000000..5e72e4f --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/fr.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Paramètres Utilisateur'; +$wb['Settings'] = 'Paramètres'; +$wb['ISPConfig Tools'] = 'Outils ISPConfig'; +$wb['Password and Language'] = 'Mot de passe et Langage'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/fr_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/fr_usersettings.lng new file mode 100644 index 0000000..22e1d0e --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/fr_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Mot de passe'; +$wb['password_strength_txt'] = 'Force du mot de passe'; +$wb['language_txt'] = 'Langage'; +$wb['password_mismatch'] = 'Le mot de passe de confirmation ne correspond avec le premier.'; +$wb['Form to edit the user password and language.'] = 'Formulaire dédition du mot de passe et du langage.'; +$wb['Settings'] = 'Paramètres'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/hu.lng b/interface/ispconfig/interface/web/tools/lib/lang/hu.lng new file mode 100644 index 0000000..f66f912 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/hu.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Felhasználó beállítások'; +$wb['Settings'] = 'Beállítások'; +$wb['ISPConfig Tools'] = 'ISPConfig eszközök'; +$wb['Password and Language'] = 'Jelszó és nyelv'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/hu_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/hu_usersettings.lng new file mode 100644 index 0000000..89dc628 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/hu_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Jelszó'; +$wb['language_txt'] = 'Nyelv'; +$wb['password_mismatch'] = 'Jelszavak nem egyeznek meg.'; +$wb['Form to edit the user password and language.'] = 'Jelszó és nyelv beállító oldal.'; +$wb['Settings'] = 'Beállítások'; +$wb['password_strength_txt'] = 'Jelszó erősség'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/it.lng b/interface/ispconfig/interface/web/tools/lib/lang/it.lng new file mode 100644 index 0000000..12f312c --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/it.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Impostazioni utente'; +$wb['Settings'] = 'Impostazioni'; +$wb['ISPConfig Tools'] = 'Strumenti ISPConfig'; +$wb['Password and Language'] = 'Password e Lingua'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/it_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/it_usersettings.lng new file mode 100644 index 0000000..95bf88a --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/it_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Password'; +$wb['language_txt'] = 'Lingua'; +$wb['password_mismatch'] = 'Il secondo campo password non corrisponde non il primo.'; +$wb['Form to edit the user password and language.'] = 'Form per modificare la password e la lingua dell`utente.'; +$wb['Settings'] = 'Impostazioni'; +$wb['password_strength_txt'] = 'Sicurezza della Password'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ja.lng b/interface/ispconfig/interface/web/tools/lib/lang/ja.lng new file mode 100644 index 0000000..e9c0166 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ja.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'ユーザー設定'; +$wb['Settings'] = '設定'; +$wb['ISPConfig Tools'] = 'ISPConfig Tools'; +$wb['Password and Language'] = 'パスワードと言語'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ja_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/ja_usersettings.lng new file mode 100644 index 0000000..a838f9d --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ja_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'パスワード'; +$wb['password_strength_txt'] = 'パスワードの強度'; +$wb['language_txt'] = '言語'; +$wb['password_mismatch'] = 'パスワードの1つめの欄と2つめの欄が一致していません。'; +$wb['Form to edit the user password and language.'] = 'ユーザーのパスワードと言語を指定してください。'; +$wb['Settings'] = '設定'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/nl.lng b/interface/ispconfig/interface/web/tools/lib/lang/nl.lng new file mode 100644 index 0000000..5bf2ae7 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/nl.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Gebruikersinstellingen'; +$wb['Settings'] = 'Instellingen'; +$wb['ISPConfig Tools'] = 'ISPConfig Tools'; +$wb['Password and Language'] = 'Wachtwoord en taal'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/nl_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/nl_usersettings.lng new file mode 100644 index 0000000..cf0fc71 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/nl_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Wachtwoord'; +$wb['language_txt'] = 'Teksten tonen in de taal'; +$wb['password_mismatch'] = 'Het wachtwoord in het tweede veld komt niet overeen met het eerste wachtwoord.'; +$wb['password_strength_txt'] = 'Wachtwoord sterkte'; +$wb['Form to edit the user password and language.'] = 'Wijzig in het onderstaande formulier het wachtwoord en/of taal.'; +$wb['Settings'] = 'Instellingen'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/pl.lng b/interface/ispconfig/interface/web/tools/lib/lang/pl.lng new file mode 100644 index 0000000..adc0178 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/pl.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Ustawienia użytkownika'; +$wb['Settings'] = 'Ustawienia'; +$wb['ISPConfig Tools'] = 'Narzedzia'; +$wb['Password and Language'] = 'Hasło i język'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/pl_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/pl_usersettings.lng new file mode 100644 index 0000000..f8d7665 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/pl_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Hasło'; +$wb['password_strength_txt'] = 'Siła hasła'; +$wb['language_txt'] = 'Język'; +$wb['password_mismatch'] = 'Hasła nie pasują do siebie.'; +$wb['Form to edit the user password and language.'] = 'Formularz do edycji języka i hasła użytkownika.'; +$wb['Settings'] = 'Ustawienia'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/pt.lng b/interface/ispconfig/interface/web/tools/lib/lang/pt.lng new file mode 100644 index 0000000..292274f --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/pt.lng @@ -0,0 +1,7 @@ +<?php +$wb['User Settings'] = 'Configurações do Utilizador '; +$wb['Settings'] = 'Configurações'; +$wb['ISPConfig Tools'] = 'Ferramentas'; +$wb['Password and Language'] = 'Senha e Idioma'; +?> + diff --git a/interface/ispconfig/interface/web/tools/lib/lang/pt_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/pt_usersettings.lng new file mode 100644 index 0000000..999611e --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/pt_usersettings.lng @@ -0,0 +1,9 @@ +<?php +$wb['passwort_txt'] = 'Senha'; +$wb['password_strength_txt'] = 'Segurança de Senha'; +$wb['language_txt'] = 'Idioma'; +$wb['password_mismatch'] = 'As senhas não coincidem'; +$wb['Form to edit the user password and language.'] = 'Formulário para alterar idioma e senha'; +$wb['Settings'] = 'Configurações'; +?> + diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ro.lng b/interface/ispconfig/interface/web/tools/lib/lang/ro.lng new file mode 100644 index 0000000..a4d5765 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ro.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Setari User '; +$wb['Settings'] = 'Setari'; +$wb['ISPConfig Tools'] = 'ISPConfig Utilitare'; +$wb['Password and Language'] = 'Parola si Limba'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ro_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/ro_usersettings.lng new file mode 100644 index 0000000..1e48a56 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ro_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Limba'; +$wb['password_mismatch'] = 'Parola in al doilea camp nu coincide cu primul.'; +$wb['Form to edit the user password and language.'] = 'Formular de editare parola si limba'; +$wb['Settings'] = 'Setari'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ru.lng b/interface/ispconfig/interface/web/tools/lib/lang/ru.lng new file mode 100644 index 0000000..084bbb8 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ru.lng @@ -0,0 +1,7 @@ +<?php +$wb['User Settings'] = 'Установки пользователя'; +$wb['Settings'] = 'Установки'; +$wb['ISPConfig Tools'] = 'ISPConfig утилиты'; +$wb['Password and Language'] = 'Пароли и языки'; +?> + diff --git a/interface/ispconfig/interface/web/tools/lib/lang/ru_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/ru_usersettings.lng new file mode 100644 index 0000000..a097b7b --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/ru_usersettings.lng @@ -0,0 +1,9 @@ +<?php +$wb['passwort_txt'] = 'Пароль'; +$wb['password_strength_txt'] = 'Сложность пароля'; +$wb['language_txt'] = 'Язык'; +$wb['password_mismatch'] = 'Введенные пароли не совпадают.'; +$wb['Form to edit the user password and language.'] = 'Форма для изменения языка и паролей'; +$wb['Settings'] = 'Настройки'; +?> + diff --git a/interface/ispconfig/interface/web/tools/lib/lang/se.lng b/interface/ispconfig/interface/web/tools/lib/lang/se.lng new file mode 100644 index 0000000..bea9c78 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/se.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'User Settings'; +$wb['Settings'] = 'Settings'; +$wb['ISPConfig Tools'] = 'ISPConfig Tools'; +$wb['Password and Language'] = 'Password and Language'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/se_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/se_usersettings.lng new file mode 100644 index 0000000..5485f52 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/se_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Password'; +$wb['password_strength_txt'] = 'Password strength'; +$wb['language_txt'] = 'Language'; +$wb['password_mismatch'] = 'The password in the second password field does not match the first password.'; +$wb['Form to edit the user password and language.'] = 'Form to edit the user password and language.'; +$wb['Settings'] = 'Settings'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/sk.lng b/interface/ispconfig/interface/web/tools/lib/lang/sk.lng new file mode 100644 index 0000000..f441629 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/sk.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'U��vate?sk� nastavenia'; +$wb['Settings'] = 'Nastavenia'; +$wb['ISPConfig Tools'] = 'N�stroje'; +$wb['Password and Language'] = 'Heslo a jazyk'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/sk_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/sk_usersettings.lng new file mode 100644 index 0000000..194b233 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/sk_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Heslo'; +$wb['password_strength_txt'] = 'Pevnos? hesla'; +$wb['language_txt'] = 'Jazyk'; +$wb['password_mismatch'] = 'Heslo v overovacom po?i nezodpoved� prv�mu heslu.'; +$wb['Form to edit the user password and language.'] = 'Formul�r pre �pravu u��vate?sk�ho hesla a jazyka.'; +$wb['Settings'] = 'Nastavenia'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/tr.lng b/interface/ispconfig/interface/web/tools/lib/lang/tr.lng new file mode 100644 index 0000000..32bfc83 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/tr.lng @@ -0,0 +1,6 @@ +<?php +$wb['User Settings'] = 'Kullanıcı Ayarları'; +$wb['Settings'] = 'Ayarlar'; +$wb['ISPConfig Tools'] = 'ISPConfig Araçları'; +$wb['Password and Language'] = 'Şifre ve Dil'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/lang/tr_usersettings.lng b/interface/ispconfig/interface/web/tools/lib/lang/tr_usersettings.lng new file mode 100644 index 0000000..d9efacc --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/lang/tr_usersettings.lng @@ -0,0 +1,8 @@ +<?php +$wb['passwort_txt'] = 'Şifre'; +$wb['password_strength_txt'] = 'Şifre Gücü'; +$wb['language_txt'] = 'Dil'; +$wb['password_mismatch'] = 'Şifreler uyuşmuyor.'; +$wb['Form to edit the user password and language.'] = 'Şifre ve dil ayarlarını değiştirme formu.'; +$wb['Settings'] = 'Ayarlar'; +?> diff --git a/interface/ispconfig/interface/web/tools/lib/menu.d/statistics.menu.php b/interface/ispconfig/interface/web/tools/lib/menu.d/statistics.menu.php new file mode 100644 index 0000000..6fdcf1b --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/menu.d/statistics.menu.php @@ -0,0 +1,25 @@ +<?php + +/* + +// Example + +$items = array(); + +$items[] = array( 'title' => 'Other page', + 'target' => 'content', + 'link' => 'http://www.google.de'); + +$items[] = array( 'title' => 'Mailqueue', + 'target' => 'content', + 'link' => 'tools/mailqueue.php'); + + +$module['nav'][] = array( 'title' => 'System Info', + 'open' => 1, + 'items' => $items); + + +*/ + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/web/tools/lib/module.conf.php b/interface/ispconfig/interface/web/tools/lib/module.conf.php new file mode 100644 index 0000000..36165d3 --- /dev/null +++ b/interface/ispconfig/interface/web/tools/lib/module.conf.php @@ -0,0 +1,38 @@ +<?php + +global $conf; + +$module['name'] = 'tools'; +$module['title'] = 'top_menu_tools'; +$module['template'] = 'module.tpl.htm'; +$module['startpage'] = 'tools/index.php'; +$module['tab_width'] = '60'; + + +//**** Change User password +$items = array(); + +$items[] = array( 'title' => 'Password and Language', + 'target' => 'content', + 'link' => 'tools/user_settings.php'); + + +$module['nav'][] = array( 'title' => 'User Settings', + 'open' => 1, + 'items' => $items); + + +$menu_dir = ISPC_WEB_PATH.'/tools/lib/menu.d'; + +if (is_dir($menu_dir)) { + if ($dh = opendir($menu_dir)) { + //** Go trough all files in the menu dir + while (($file = readdir($dh)) !== false) { + if($file != '.' && $file != '..' && substr($file,-9,9) == '.menu.php') { + include_once($menu_dir.'/'.$file); + } + } + } +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/interface/web/tools/templates/user_settings.htm b/interface/ispconfig/interface/web/tools/templates/user_settings.htm new file mode 100644 index 0000000..658b94f --- /dev/null +++ b/interface/ispconfig/interface/web/tools/templates/user_settings.htm @@ -0,0 +1,36 @@ +<h2><tmpl_var name="list_head_txt"></h2> +<p><tmpl_var name="list_desc_txt"></p> + +<div class="panel panel_usersettings"> + + <div class="pnl_formsarea"> + <fieldset class="inlineLabels"> + <div class="ctrlHolder"> + <label for="passwort">{tmpl_var name='passwort_txt'}</label> + <input name="passwort" id="passwort" value="{tmpl_var name='passwort'}" size="15" maxlength="100" type="password" class="textInput" onkeyup="pass_check(this.value)"/> + </div> + <div class="ctrlHolder"> + <p class="label">{tmpl_var name='password_strength_txt'}</p> + <div id="passBar"></div> + <p class="formHint"><span id="passText"> </span></p> + </div> + <div class="ctrlHolder"> + <label for="passwort2">{tmpl_var name='passwort_txt'}</label> + <input name="passwort2" id="passwort2" value="" size="15" maxlength="100" type="password" class="textInput" /> + </div> + <div class="ctrlHolder"> + <label for="language">{tmpl_var name='language_txt'}</label> + <select name="language" id="language" class="selectInput withicons"> + {tmpl_var name='language'} + </select> + </div> + + <input type="hidden" name="id" value="{tmpl_var name='id'}"> + + <div class="buttonHolder buttons"> + <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','tools/user_settings.php');"><span>{tmpl_var name='btn_save_txt'}</span></button> + <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('tools/index.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button> + </div> + </div> + +</div> diff --git a/interface/ispconfig/interface/web/tools/user_settings.php b/interface/ispconfig/interface/web/tools/user_settings.php new file mode 100644 index 0000000..d705cea --- /dev/null +++ b/interface/ispconfig/interface/web/tools/user_settings.php @@ -0,0 +1,97 @@ +<?php +/* +Copyright (c) 2008, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +/****************************************** +* Begin Form configuration +******************************************/ + +$tform_def_file = "form/user_settings.tform.php"; + +/****************************************** +* End Form configuration +******************************************/ + +require_once('../../lib/config.inc.php'); +require_once('../../lib/app.inc.php'); + +//* Check permissions for module +$app->auth->check_module_permissions('tools'); + +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onLoad() { + global $app, $conf, $tform_def_file; + + // Loading template classes and initialize template + if(!is_object($app->tpl)) $app->uses('tpl'); + if(!is_object($app->tform)) $app->uses('tform'); + + $app->tpl->newTemplate("tabbed_form.tpl.htm"); + + // Load table definition from file + $app->tform->loadFormDef($tform_def_file); + + // Importing ID + $this->id = $_SESSION['s']['user']['userid']; + $_POST['id'] = $_SESSION['s']['user']['userid']; + + if(count($_POST) > 1) { + $this->dataRecord = $_POST; + $this->onSubmit(); + } else { + $this->onShow(); + } + } + + function onInsert() { + die('No inserts allowed.'); + } + + function onBeforeUpdate() { + global $app, $conf; + + if($_POST['passwort'] != $_POST['passwort2']) { + $app->tform->errorMessage = $app->tform->lng('password_mismatch'); + } + $_SESSION['s']['user']['language'] = $_POST['language']; + $_SESSION['s']['language'] = $_POST['language']; + } + + +} + +$page = new page_action; +$page->onLoad(); + +?> diff --git a/interface/ispconfig/nbproject/project.properties b/interface/ispconfig/nbproject/project.properties new file mode 100644 index 0000000..70b7f0f --- /dev/null +++ b/interface/ispconfig/nbproject/project.properties @@ -0,0 +1,8 @@ +auxiliary.org-netbeans-modules-html-editor-lib.default-html-public-id=HTML5 +include.path=${php.global.include.path} +php.version=PHP_53 +source.encoding=UTF-8 +src.dir=. +tags.asp=false +tags.short=true +web.root=. diff --git a/interface/ispconfig/nbproject/project.xml b/interface/ispconfig/nbproject/project.xml new file mode 100644 index 0000000..2316b2d --- /dev/null +++ b/interface/ispconfig/nbproject/project.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.php.project</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/php-project/1"> + <name>web_ispconfig</name> + </data> + </configuration> +</project> diff --git a/interface/ispconfig/server/conf/apache_apps.vhost.master b/interface/ispconfig/server/conf/apache_apps.vhost.master new file mode 100644 index 0000000..ccfcbea --- /dev/null +++ b/interface/ispconfig/server/conf/apache_apps.vhost.master @@ -0,0 +1,42 @@ + +###################################################### +# This virtual host contains the configuration +# for the ISPConfig apps vhost +###################################################### + +{vhost_port_listen} Listen {apps_vhost_port} +NameVirtualHost *:{apps_vhost_port} + +<VirtualHost {apps_vhost_ip}:{apps_vhost_port}> + ServerAdmin webmaster@localhost + {apps_vhost_servername} + + <IfModule mod_fcgid.c> + DocumentRoot {apps_vhost_dir} + SuexecUserGroup ispapps ispapps + <Directory {apps_vhost_dir}> + Options Indexes FollowSymLinks MultiViews +ExecCGI + AllowOverride AuthConfig Indexes Limit Options FileInfo + AddHandler fcgid-script .php + FCGIWrapper {apps_vhost_basedir}/php-fcgi-scripts/apps/.php-fcgi-starter .php + Order allow,deny + Allow from all + </Directory> + </IfModule> + + <IfModule mod_php5.c> + DocumentRoot {apps_vhost_dir} + AddType application/x-httpd-php .php + <Directory {apps_vhost_dir}> + Options FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + </Directory> + </IfModule> + + ServerSignature Off + +</VirtualHost> + + diff --git a/interface/ispconfig/server/conf/apache_ispconfig.conf.master b/interface/ispconfig/server/conf/apache_ispconfig.conf.master new file mode 100644 index 0000000..7a7179c --- /dev/null +++ b/interface/ispconfig/server/conf/apache_ispconfig.conf.master @@ -0,0 +1,43 @@ + +################################################ +# ISPConfig Logfile configuration for vlogger +################################################ + +LogFormat "%v %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig +CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" -d \"/etc/vlogger-dbi.conf\" /var/log/ispconfig/httpd" combined_ispconfig + +<Directory /var/www/clients> + AllowOverride None + Order Deny,Allow + Deny from all +</Directory> + +# Do not allow access to the root file system of the server for security reasons +<Directory /> + AllowOverride None + Order Deny,Allow + Deny from all +</Directory> + +# Except of the following directories that contain website scripts +<Directory /usr/share/phpmyadmin> + Order allow,deny + Allow from all +</Directory> + +<Directory /usr/share/phpMyAdmin> + Order allow,deny + Allow from all +</Directory> + +<Directory /usr/share/squirrelmail> + Order allow,deny + Allow from all +</Directory> + + +<tmpl_loop name="ip_adresses"> +NameVirtualHost {tmpl_var name="ip_address"}:80 +NameVirtualHost {tmpl_var name="ip_address"}:443 +</tmpl_loop> + diff --git a/interface/ispconfig/server/conf/autoresponder.master b/interface/ispconfig/server/conf/autoresponder.master new file mode 100644 index 0000000..0126c99 --- /dev/null +++ b/interface/ispconfig/server/conf/autoresponder.master @@ -0,0 +1,23 @@ +`test -f {vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0` +if ($RETURNCODE==1) +{ + { + if (!/^List-Unsubscribe:.*/:h ) + { + if (!/^X-Spam-Flag: YES/:h ) + { + NOW=time + if ({start_date} lt $NOW && {end_date} gt $NOW) + { + RESPOND="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg" + RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst" + + # The following must be one contiguous line + cc "| mailbot -t $RESPOND -d $RESPONDDB -c 'UTF-8' -D 1 \ + -A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \ + /usr/sbin/sendmail -t -f ''" + } + } + } + } +} \ No newline at end of file diff --git a/interface/ispconfig/server/conf/bash.bashrc.master b/interface/ispconfig/server/conf/bash.bashrc.master new file mode 100644 index 0000000..edcaf7d --- /dev/null +++ b/interface/ispconfig/server/conf/bash.bashrc.master @@ -0,0 +1,65 @@ + +<tmpl_if name='jailkit_chroot'> +## Hack for Jailkit User to change back to the logged in user ## +if [ -n "$LOGNAME" ]; then + if [ "$LOGNAME" != $USER ]; then + export HOME=<tmpl_var name='home_dir'>$LOGNAME + export USER=$LOGNAME + export USERNAME=$LOGNAME + cd $HOME + fi +fi + +## Change machine hostname to site domain ## +export HOSTNAME=<tmpl_var name='domain'> + +</tmpl_if> + + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" + + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in +xterm-color) + PS1='\[\033[01;32m\]$USER@$HOSTNAME\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + ;; +*) + PS1='$USER@$HOSTNAME:\w\$ ' + ;; +esac + + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' + ;; +*) + ;; +esac + + +# enable color support of ls and also add handy aliases +if [ "$TERM" != "dumb" ]; then + eval "`dircolors -b`" + alias ls='ls --color=auto' + #alias dir='ls --color=auto --format=vertical' + #alias vdir='ls --color=auto --format=long' +fi + +# some more ls aliases +#alias ll='ls -l' +#alias la='ls -A' +#alias l='ls -CF' + + diff --git a/interface/ispconfig/server/conf/bastille-firewall.cfg.master b/interface/ispconfig/server/conf/bastille-firewall.cfg.master new file mode 100644 index 0000000..b9658c9 --- /dev/null +++ b/interface/ispconfig/server/conf/bastille-firewall.cfg.master @@ -0,0 +1,320 @@ +# +# /etc/bastille-firewall.cfg +# +# Configuration file for both 2.2/ipchains and 2.4/netfilter scripts +# +# $Source: /cvsroot/bastille-linux/dev/working_tree/Bastille/bastille-firewall.cfg,v $ +# Modified by: $Author: peterw $ +# $Date: 2002/01/04 13:34:18 $ +# $Revision: 1.7 $ +# +# Copyright (C) 1999-2001 Peter Watkins +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Thanks to David Ranch, Brad A, Don G, and others for their suggestions + +# the configuration values should be whitespace-delimited lists of +# appropriate values, e.g. +# TCP_PUBLIC_SERVICES="80 smtp ssh" +# lists Web (port 80), SMTP mail, and Secure Shell ports +# +# This script is suitable for workstations or simple NAT firewalls; +# you may want to add more "output" restrictions for serious servers + +# 0) DNS servers (Linux 2.2/ipchains only) +# You must list your DNS servers here so that +# the firewall will allow them to service your lookup requests +# +# List of DNS servers/networks to allow "domain" responses from +# This _could_ be nameservers as a list of <ip-address>/32 entries +#DNS_SERVERS="a.b.c.d/32 e.f.g.h/32" +# If you are running a caching nameserver, you'll need to allow from +# "0.0.0.0/0" so named can query any arbitrary nameserver +# (To enable a caching nameserver, you will also probably need to +# add "domain" to the TCP and UDP public service lists.) +#DNS_SERVERS="0.0.0.0/0" +# +# To have the DNS servers parsed from /etc/resolv.conf at runtime, +# as normal workstations will want, make this variable empty +#DNS_SERVERS="" +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +DNS_SERVERS="{DNS_SERVERS}" + + +# 1) define your interfaces (all systems) +# Note a "+" acts as a wildcard, e.g. ppp+ would match any PPP +# interface +# +# list internal/trusted interfaces +# traffic from these interfaces will be allowed +# through the firewall, no restrictions +#TRUSTED_IFACES="lo" # MINIMAL/SAFEST +# +# list external/untrusted interfaces +#PUBLIC_IFACES="eth+ ppp+ slip+" # SAFEST +# +# list internal/partially-trusted interfaces +# e.g. if this acts as a NAT/IP Masq server and you +# don't want clients on those interfaces having +# full network access to services running on this +# server (as the TRUSTED_IFACES allows) +#INTERNAL_IFACES="" # SAFEST +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +TRUSTED_IFACES="lo" # MINIMAL/SAFEST +PUBLIC_IFACES="eth+ ppp+ slip+ venet+" # SAFEST +INTERNAL_IFACES="" # SAFEST + + +# 2) services for which we want to log access attempts to syslog (all systems) +# Note this only audits connection attempts from public interfaces +# +# Also see item 12, LOG_FAILURES +# +#TCP_AUDIT_SERVICES="telnet ftp imap pop3 finger sunrpc exec login linuxconf ssh" +# anyone probing for BackOrifice? +#UDP_AUDIT_SERVICES="31337" +# how about ICMP? +#ICMP_AUDIT_TYPES="" +#ICMP_AUDIT_TYPES="echo-request" # ping/MS tracert +# +# To enable auditing, you must have syslog configured to log "kern" +# messages of "info" level; typically you'd do this with a line in +# syslog.conf like +# kern.info /var/log/messages +# though the Bastille port monitor will normally want these messages +# logged to a named pipe instead, and the Bastille script normally +# configures syslog for "kern.*" which catches these messages +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +#TCP_AUDIT_SERVICES="telnet ftp imap pop3 finger sunrpc exec login linuxconf ssh" +#UDP_AUDIT_SERVICES="31337" +#ICMP_AUDIT_TYPES="" + + +# 3) services we allow connections to (all systems) +# +# FTP note: +# To allow your machine to service "passive" FTP clients, +# you will need to make allowances for the passive data +# ports; Bastille users should read README.FTP for more +# information +# +# "public" interfaces: +# TCP services that "public" hosts should be allowed to connect to +#TCP_PUBLIC_SERVICES="" # MINIMAL/SAFEST +# +# UDP services that "public" hosts should be allowed to connect to +#UDP_PUBLIC_SERVICES="" # MINIMAL/SAFEST +# +# "internal" interfaces: +# (NB: you will need to repeat the "public" services if you want +# to allow "internal" hosts to reach those services, too.) +# TCP services that internal clients can connect to +#TCP_INTERNAL_SERVICES="" # MINIMAL/SAFEST +# +# UDP services that internal clients can connect to +#UDP_INTERNAL_SERVICES="" # MINIMAL/SAFEST +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +TCP_PUBLIC_SERVICES="{tmpl_var name="TCP_PUBLIC_SERVICES"}" # MINIMAL/SAFEST +UDP_PUBLIC_SERVICES="{tmpl_var name="UDP_PUBLIC_SERVICES"}" # MINIMAL/SAFEST +TCP_INTERNAL_SERVICES="" # MINIMAL/SAFEST +UDP_INTERNAL_SERVICES="" # MINIMAL/SAFEST + +# 4) passive/active FTP (Linux 2.2/ipchains only) +# FTP is a firewall nightmare; if you allow "normal" FTP connections, +# you must be careful to block any TCP services that are listening +# on high ports; it's safer to require your FTP clients to use +# "passive" mode. +# +# Note this will also force clients on machines +# that use this one for NAT/IP Masquerading to use passive mode +# for connections that go through this server (e.g. from the +# internal network to public Internet machines +# +# For more information about FTP, see the Bastille README.FTP doc +# +#FORCE_PASV_FTP="N" +#FORCE_PASV_FTP="Y" # SAFEST +# +FORCE_PASV_FTP="Y" # SAFEST + + +# 5) Services to explicitly block. (Linux 2.2/ipchains only) +# See FTP note above +# Note that ranges of ports are specified with colons, and you +# can specify an open range by using only one number, e.g. +# 1024: means ports >= 1024 and :6000 means ports <= 6000 +# +# TCP services on high ports that should be blocked if not forcing passive FTP +# This should include X (6000:6010) and anything else revealed by 'netstat -an' +# (this does not matter unless you're not forcing "passive" FTP) +#TCP_BLOCKED_SERVICES="6000:6020" +# +# UDP services to block: this should be UDP services on high ports. +# Your only vulnerability from public interfaces are the DNS and +# NTP servers/networks (those with 0.0.0.0 for DNS servers should +# obviously be very careful here!) +#UDP_BLOCKED_SERVICES="2049" +# +# types of ICMP packets to allow +#ICMP_ALLOWED_TYPES="destination-unreachable" # MINIMAL/SAFEST +# the following allows you to ping/traceroute outbound +#ICMP_ALLOWED_TYPES="destination-unreachable echo-reply time-exceeded" +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +TCP_BLOCKED_SERVICES="6000:6020" +UDP_BLOCKED_SERVICES="2049" +ICMP_ALLOWED_TYPES="destination-unreachable echo-reply time-exceeded echo-request" + + +# 6) Source Address Verification (all Linux systems) +# This helps prevent "IP Spoofing" attacks +# +ENABLE_SRC_ADDR_VERIFY="Y" # SAFEST + + +# 7) IP Masquerading / NAT. (all systems) +# List your internal/masq'ed networks here +# +# Also see item 4, FORCE_PASV_FTP, as that setting affects +# clients using IP Masquerading through this machine +# +# Set this variable if you're using IP Masq / NAT for a local network +#IP_MASQ_NETWORK="" # DISABLE/SAFEST +#IP_MASQ_NETWORK="10.0.0.0/8" # example +#IP_MASQ_NETWORK="192.168.0.0/16" # example +# +# Have lots of masq hosts? uncomment the following six lines +# and list the hosts/networks in /etc/firewall-masqhosts +# the script assumes any address without a "/" netmask afterwards +# is an individual address (netmask /255.255.255.255): +#if [ -f /etc/firewall-masqhosts ]; then +# echo "Reading list of masq hosts from /etc/firewall-masqhosts" +# # Read the file, but use 'awk' to strip comments +# # Note the sed bracket phrase includes a space and tab char +# IP_MASQ_NETWORK=`cat /etc/firewall-masqhosts | awk -F\# '/\// {print $1; next} /[0-9]/ {print $1"/32"}' |sed 's:[ ]*::g'` +#fi +# +# Masq modules +# NB: The script will prepend "ip_masq_" to each module name +#IP_MASQ_MODULES="cuseeme ftp irc quake raudio vdolive" # ALL (?) +#IP_MASQ_MODULES="ftp raudio vdolive" # RECOMMENDED +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +IP_MASQ_NETWORK="" # DISABLE/SAFEST +IP_MASQ_MODULES="ftp raudio vdolive" # RECOMMENDED + + +# 8) How to react to disallowed packets (all systems) +# whether to "REJECT" or "DROP" disallowed packets; if you're running any +# public services, you probably ought to use "REJECT"; if in serious stealth +# mode, choose "DROP" so simple probes don't know if there's anything out there +# NOTE: disallowed ICMP packets are discarded with "DROP", as +# it would not make sense to "reject" the packet if you're +# trying to disallow ping/traceroute +# NOTE: the scripts that set up the filter rules will interpret these +# keywords as needed, e.g. "DROP" becomes "DENY" for Linux 2.2/ipchains +# +REJECT_METHOD="DROP" + + +# 9) DHCP (Linux 2.2/ipchains only) +# In case your server needs to get a DHCP address from some other +# machine (e.g. cable modem) +#DHCP_IFACES="eth0" # example, to allow you to query on eth0 +#DHCP_IFACES="" # DISABLED +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +DHCP_IFACES="" # DISABLED + + +# 10) NTP servers (Linux 2.2/ipchains only) +# more UDP fun. List IP addresses or network space of NTP servers +# +#NTP_SERVERS="" # DISABLE NTP QUERIES / SAFEST +#NTP_SERVERS="a.b.c.d/32 e.f.g.h/32" # example, to allow querying 2 servers +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +NTP_SERVERS="" # DISABLE NTP QUERIES / SAFEST + + +# 11) more ICMP. (Linux 2.2/ipchains only) +# Control the outbound ICMP to make yourself invisible to +# traceroute probes +# +#ICMP_OUTBOUND_DISABLED_TYPES="destination-unreachable time-exceeded" +# +# Please make sure variable assignments are on single lines; do NOT +# use the "\" continuation character (so Bastille can change the +# values if it is run more than once) +ICMP_OUTBOUND_DISABLED_TYPES="destination-unreachable time-exceeded" + + +# 12) Logging (all systems) +# With this enabled, ipchains will log all blocked packets. +# ** this could generate huge logs ** +# This is primarily intended for the port mointoring system; +# also note that you probably do not want to "AUDIT" any services +# that you are not allowing, as doing so would mean duplicate +# logging +LOG_FAILURES="N" # do not log blocked packets + +# 13) Block fragmented packets (all systems) +# There's no good reason to allow these +#ALLOW_FRAGMENTS="N" # safest +ALLOW_FRAGMENTS="Y" # old behavior + +# 14) Prevent SMB broadcasts from leaking out NAT setup (all systems) +# Windows machines will poll teh net with SMB broadcasts, +# basically advertising their existence. Most folks agree +# that this traffic should be dropped +#DROP_SMB_NAT_BCAST="N" # allow them (are you sure?) +DROP_SMB_NAT_BCAST="Y" # drop those packets + +# 15) Log level (iptables/netfilter/Linux 2.4 only) +# Control what level of logging is used when the firewall logs +# information. Default is warning (4). Lowest priority is +# debug (7); highest is emergency (0). To prevent syslog +# from copying iptables error messages to the console, set +# this to 6 (7 would also work, but 6 is recommended) +# You can also stop syslogd/klogd from printing kernel +# messages to the console by issuing the command +# setterm -msg off +#IP_LOG_LEVEL=6 # level used in 2.2/ipchains +IP_LOG_LEVEL=4 # iptables/netfilter default + +# 16) Always attempt to use stateful features for inbound connections +# Always using state will allow the firewall to reject invalid +# packets sent to otherwise open TCP services, e.g. XMAS, NULL +# and SIN/FYN scans. The downside to choosing this behavior is that +# services may become unreachable if the packet filter's state +# table becomes full. +IP_ALWAYS_USE_STATE="N" # default, ensures services remain available +#IP_ALWAYS_USE_STATE="Y" # disallow invalid packets \ No newline at end of file diff --git a/interface/ispconfig/server/conf/bind_named.conf.local.master b/interface/ispconfig/server/conf/bind_named.conf.local.master new file mode 100644 index 0000000..764730d --- /dev/null +++ b/interface/ispconfig/server/conf/bind_named.conf.local.master @@ -0,0 +1,9 @@ + +<tmpl_loop name='zones'> +<tmpl_if name='zone'> +zone "<tmpl_var name='zone'>" { + type master; +<tmpl_var name='options'> file "<tmpl_var name='zonefile_path'>"; +}; +</tmpl_if> +</tmpl_loop> diff --git a/interface/ispconfig/server/conf/bind_pri.domain.master b/interface/ispconfig/server/conf/bind_pri.domain.master new file mode 100644 index 0000000..faa42f3 --- /dev/null +++ b/interface/ispconfig/server/conf/bind_pri.domain.master @@ -0,0 +1,48 @@ +$TTL {tmpl_var name='ttl'} +@ IN SOA {tmpl_var name='ns'} {tmpl_var name='mbox'} ( + {tmpl_var name='serial'} ; serial, todays date + todays serial # + {tmpl_var name='refresh'} ; refresh, seconds + {tmpl_var name='retry'} ; retry, seconds + {tmpl_var name='expire'} ; expire, seconds + {tmpl_var name='ttl'} ) ; minimum, seconds +; + +<tmpl_loop name='zones'> +<tmpl_if name="type" op='==' value='NS'> +{tmpl_var name='name'} NS {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='A'> +{tmpl_var name='name'} A {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='AAAA'> +{tmpl_var name='name'} AAAA {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='ALIAS'> +{tmpl_var name='name'} CNAME {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='CNAME'> +{tmpl_var name='name'} CNAME {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='HINFO'> +{tmpl_var name='name'} HINFO {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='MX'> +{tmpl_var name='name'} MX {tmpl_var name='aux'} {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='NAPTR'> +{tmpl_var name='name'} NAPTR {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='PTR'> +{tmpl_var name='name'} PTR {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='RP'> +{tmpl_var name='name'} RP {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='SRV'> +{tmpl_var name='name'} SRV 0 {tmpl_var name='data'} +</tmpl_if> +<tmpl_if name="type" op='==' value='TXT'> +{tmpl_var name='name'} TXT {tmpl_var name='data'} +</tmpl_if> +</tmpl_loop> + diff --git a/interface/ispconfig/server/conf/debian_network_interfaces.master b/interface/ispconfig/server/conf/debian_network_interfaces.master new file mode 100644 index 0000000..08c7136 --- /dev/null +++ b/interface/ispconfig/server/conf/debian_network_interfaces.master @@ -0,0 +1,27 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +auto eth0 +iface eth0 inet static + address <tmpl_var name="ip_address"> + netmask <tmpl_var name="netmask"> + network <tmpl_var name="network"> + broadcast <tmpl_var name="broadcast"> + gateway <tmpl_var name="gateway"> + +<tmpl_if name="additionl_ip_records"> +<tmpl_loop name="interfaces"> +auto eth0:<tmpl_var name="id"> +iface eth0:<tmpl_var name="id"> inet static + address <tmpl_var name="ip_address"> + netmask <tmpl_var name="netmask"> + network <tmpl_var name="network"> + broadcast <tmpl_var name="broadcast"> + gateway <tmpl_var name="gateway"> +</tmpl_loop> +</tmpl_if> diff --git a/interface/ispconfig/server/conf/error/br/400.html b/interface/ispconfig/server/conf/error/br/400.html new file mode 100644 index 0000000..7edd410 --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/400.html @@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<title>ERROR 400 - Requisição ruim!</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="robots" content="noindex" /> +<style type="text/css"> +<!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --> +</style> +</head> +<body> +<div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Requisição ruim!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>Você usou uma sintaxe inválida.</p> + <P>Se tiver qualquer dúvida extra sobre este erro contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> +</div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/401.html b/interface/ispconfig/server/conf/error/br/401.html new file mode 100644 index 0000000..b0fc221 --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 401 - Não autorizado!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERRO 401 - Não autorizado!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>O endereço requisitado necessita de autorização para acesso. </p> + <P>Se tiver qualquer dúvida extra sobre este erro contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/403.html b/interface/ispconfig/server/conf/error/br/403.html new file mode 100644 index 0000000..574830c --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 403 - Acesso negado!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERRO 403 - Acesso negado!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>Não foi permitido o seu acesso ao endereço especificado. </p> + <P>Se tiver qualquer dúvida extra sobre este erro contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/404.html b/interface/ispconfig/server/conf/error/br/404.html new file mode 100644 index 0000000..0d00cce --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 404 - Arquivo não encontrado!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERRO 404 - Arquivo não encontrado!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>O endereço requisitado não foi encontrado neste servidor. </p> + <P>Se tiver qualquer dúvida extra sobre este erro cheque por atualizações neste endereço ou contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/405.html b/interface/ispconfig/server/conf/error/br/405.html new file mode 100644 index 0000000..e05d56c --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 405 - Método não permitido!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERRO 405 - Método não permitido!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>O método utilizado não é permitido. </p> + <P>Se tiver qualquer dúvida extra sobre este erro contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/500.html b/interface/ispconfig/server/conf/error/br/500.html new file mode 100644 index 0000000..7a24b51 --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 500 - Erro interno do servidor!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERRO 500 - Erro interno do servidor!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>O erro no endereço requisitado foi causado por uma Requisição interna do servidor inválida. </p> + <P>Se está mensagem se repetir muitas vezes contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/br/503.html b/interface/ispconfig/server/conf/error/br/503.html new file mode 100644 index 0000000..ff7b5e8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/br/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERRO 503 - Serviço Indisponível!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERRO 503 - Serviço Indisponível!</h1> + </div> + <div id="content"> + <h2>O seguinte erro ocorreu:</h2> + <p>O serviço não está disponível no momento por uma sobrecarga temporária ou processo de manutenção. Por favor tente mais tarde</p> + <P>Se tiver qualquer dúvida extra sobre este erro contate seu webmaster.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/400.html b/interface/ispconfig/server/conf/error/cz/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/401.html b/interface/ispconfig/server/conf/error/cz/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/403.html b/interface/ispconfig/server/conf/error/cz/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/404.html b/interface/ispconfig/server/conf/error/cz/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/405.html b/interface/ispconfig/server/conf/error/cz/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/500.html b/interface/ispconfig/server/conf/error/cz/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/cz/503.html b/interface/ispconfig/server/conf/error/cz/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/cz/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/400.html b/interface/ispconfig/server/conf/error/de/400.html new file mode 100644 index 0000000..cb223c8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 400 - Ungültige Anforderung!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>FEHLER 400 - Ungültige Anforderung!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Sie verwenden eine ungültige Anforderung.</p> + <p>Bei Problemen wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/401.html b/interface/ispconfig/server/conf/error/de/401.html new file mode 100644 index 0000000..f01cc1e --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 401 - Zugriff verweigert!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>FEHLER 401 - Zugriff verweigert!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Der Anmeldeversuch ist fehlgeschlagen, vermutlich, weil ein ungültiger Benutzername oder ein ungültiges Kennwort verwendet wurde.</p> + <P>Bei weiteren Problemen wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/403.html b/interface/ispconfig/server/conf/error/de/403.html new file mode 100644 index 0000000..e01e626 --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 403 - Unzulässig!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>FEHLER 403 - Unzulässig!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Sie besitzen nicht die erforderlichen Rechte, die angegebene URL zu öffnen.</p> + <p>Bei weiteren Problemen wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/404.html b/interface/ispconfig/server/conf/error/de/404.html new file mode 100644 index 0000000..cfc5009 --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 404 - Nicht gefunden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>FEHLER 404 - Nicht gefunden!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Die angegebene URL wurde auf diesem Server nicht gefunden.</p> + <P>Bitte überprüfen Sie die Schreibweise der URL oder wenden Sie sich an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/405.html b/interface/ispconfig/server/conf/error/de/405.html new file mode 100644 index 0000000..c59dd5b --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 405 - Methode unzulässig!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>FEHLER 405 - Methode unzulässig!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Für Zugriff auf diese Seite verwendetes HTTP-Verb ist nicht zulässig, Methode unzulässig.</p> + <p>Bei Problemen wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/500.html b/interface/ispconfig/server/conf/error/de/500.html new file mode 100644 index 0000000..55b4f4f --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 500 - Interner Serverfehler!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>FEHLER 500 - Interner Serverfehler!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Beim Aufruf der angegebenen URL ist ein interner Serverfehler aufgetreten.</p> + <p>Sollten Sie diese Fehlermeldung öfter erhalten, wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/de/503.html b/interface/ispconfig/server/conf/error/de/503.html new file mode 100644 index 0000000..ca12cd6 --- /dev/null +++ b/interface/ispconfig/server/conf/error/de/503.html @@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>FEHLER 503 - Dienst nicht verfügbar!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Retry-After" content="600" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>FEHLER 503 - Dienst nicht verfügbar!</h1> + </div> + <div id="content"> + <h2>Folgender Fehler ist aufgetreten:</h2> + <p>Der Dienst ist momentan überlastet. Bitte versuchen Sie es später noch einmal.</p> + <p>Sollten Sie diese Fehlermeldung öfter erhalten, wenden Sie sich bitte an den <!--WEBMASTER//-->Webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/400.html b/interface/ispconfig/server/conf/error/en/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/401.html b/interface/ispconfig/server/conf/error/en/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/403.html b/interface/ispconfig/server/conf/error/en/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/404.html b/interface/ispconfig/server/conf/error/en/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/405.html b/interface/ispconfig/server/conf/error/en/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/500.html b/interface/ispconfig/server/conf/error/en/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/en/503.html b/interface/ispconfig/server/conf/error/en/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/en/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/400.html b/interface/ispconfig/server/conf/error/es/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/401.html b/interface/ispconfig/server/conf/error/es/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/403.html b/interface/ispconfig/server/conf/error/es/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/404.html b/interface/ispconfig/server/conf/error/es/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/405.html b/interface/ispconfig/server/conf/error/es/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/500.html b/interface/ispconfig/server/conf/error/es/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/es/503.html b/interface/ispconfig/server/conf/error/es/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/es/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/400.html b/interface/ispconfig/server/conf/error/fi/400.html new file mode 100644 index 0000000..aa667fa --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 400 - Virheellinen pyyntö!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>Virhe 400 - Virheellinen pyyntö!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Olet käyttänyt virheellistä kirjoitusasua.</p> + <P>Ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//--> jos sinulla on kysyttävää.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/401.html b/interface/ispconfig/server/conf/error/fi/401.html new file mode 100644 index 0000000..6846fa4 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 401 - Ei sallittu!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>Virhe 401 - Ei sallittu!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Tämä URL-osoite tarvitsee tunnistaumisen.</p> + <P>Ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//--> jos sinulla on kysyttävää.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/403.html b/interface/ispconfig/server/conf/error/fi/403.html new file mode 100644 index 0000000..156785e --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 403 - Kielletty!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>Virhe 403 - Kielletty!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Sinulle ei ole sallittu pääsy pyytämääsi URL-osoitteeseen.</p> + <P>Ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//--> jos sinulla on kysyttävää.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/404.html b/interface/ispconfig/server/conf/error/fi/404.html new file mode 100644 index 0000000..79742a2 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 404 - Kohdetta ei löydy!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>Virhe 404 - Kohdetta ei löydy!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Pyytämääsi URL-osoitetta ei löydy tältä palvelimelta.</p> + <P>Tarkista osoite tai ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/405.html b/interface/ispconfig/server/conf/error/fi/405.html new file mode 100644 index 0000000..8194b24 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 405 - Metodi ei ole sallittu!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>Virhe 405 - Metodi ei ole sallittu!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Käyttämäsi metodi ei ole sallittu.</p> + <P>Ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//--> jos sinulla on kysyttävää.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/500.html b/interface/ispconfig/server/conf/error/fi/500.html new file mode 100644 index 0000000..21c7ab5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 500 - Palvelimen sisäinen virhe!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>Virhe 500 - Palvelimen sisäinen virhe!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Pyydetty URL-osoite aiheutti palvelimen sisäisen virheen.</p> + <P>Jos saat tämän virheen toistuvasti, ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fi/503.html b/interface/ispconfig/server/conf/error/fi/503.html new file mode 100644 index 0000000..fa12813 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fi/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Virhe 503 - Palvelu tavoittamattomissa!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>Virhe 503 - Palvelu tavoittamattomissa!</h1> + </div> + <div id="content"> + <h2>Seuraava virhe tapahtui:</h2> + <p>Palvelu ei ole tavoitettavissa hetkellisen ylikuormituksen tai huoltotoimenpiteiden vuoksi. Yritä myöhemmin uudelleen.</p> + <P>Ota yhteyttä <!--WEBMASTER//-->ylläpitoon<!--WEBMASTER//--> jos sinulla on kysyttävää.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/400.html b/interface/ispconfig/server/conf/error/fr/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/401.html b/interface/ispconfig/server/conf/error/fr/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/403.html b/interface/ispconfig/server/conf/error/fr/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/404.html b/interface/ispconfig/server/conf/error/fr/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/405.html b/interface/ispconfig/server/conf/error/fr/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/500.html b/interface/ispconfig/server/conf/error/fr/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/fr/503.html b/interface/ispconfig/server/conf/error/fr/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/fr/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/400.html b/interface/ispconfig/server/conf/error/gr/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/401.html b/interface/ispconfig/server/conf/error/gr/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/403.html b/interface/ispconfig/server/conf/error/gr/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/404.html b/interface/ispconfig/server/conf/error/gr/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/405.html b/interface/ispconfig/server/conf/error/gr/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/500.html b/interface/ispconfig/server/conf/error/gr/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/gr/503.html b/interface/ispconfig/server/conf/error/gr/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/gr/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/400.html b/interface/ispconfig/server/conf/error/hu/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/401.html b/interface/ispconfig/server/conf/error/hu/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/403.html b/interface/ispconfig/server/conf/error/hu/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/404.html b/interface/ispconfig/server/conf/error/hu/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/405.html b/interface/ispconfig/server/conf/error/hu/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/500.html b/interface/ispconfig/server/conf/error/hu/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/hu/503.html b/interface/ispconfig/server/conf/error/hu/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/hu/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/400.html b/interface/ispconfig/server/conf/error/it/400.html new file mode 100644 index 0000000..be1f246 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Sintassi non corretta!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Sintassi non corretta!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>Hai usato una sintassi non corretta.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/401.html b/interface/ispconfig/server/conf/error/it/401.html new file mode 100644 index 0000000..b7e2d7c --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Autorizzazione richiesta!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Autorizzazione richiesta!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>Autorizzazione necessaria per accedere all'indirizzo richiesto.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/403.html b/interface/ispconfig/server/conf/error/it/403.html new file mode 100644 index 0000000..662c379 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Accesso Negato!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Accesso Negato!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>Non si possiedono i permessi per accedere all'indirizzo richiesto.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/404.html b/interface/ispconfig/server/conf/error/it/404.html new file mode 100644 index 0000000..a4b5634 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Non trovato!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Non trovato!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>L'indirizzo richiesto non è stato trovato in questo server.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/405.html b/interface/ispconfig/server/conf/error/it/405.html new file mode 100644 index 0000000..40cb8e6 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Metodo non consentito!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Metodo non consentito!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>Il metodo usato non è consentito.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/500.html b/interface/ispconfig/server/conf/error/it/500.html new file mode 100644 index 0000000..cbb0b33 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Errore Interno del Server!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Errore Interno del Server!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>L'indirizzo richiesto ha causato un errore interno del server.</p> + <p>Se questo messaggio si ripete, contattare il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/it/503.html b/interface/ispconfig/server/conf/error/it/503.html new file mode 100644 index 0000000..7268ab5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/it/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Servizio non disponibile!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Servizio non disponibile!</h1> + </div> + <div id="content"> + <h2>Si è verificato il seguente errore:</h2> + <p>Il sistema è momentaneamente non disponibile per sovraccaricato o manutenzione. Riprova più tardi.</p> + <p>Contatta il <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/400.html b/interface/ispconfig/server/conf/error/nl/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/401.html b/interface/ispconfig/server/conf/error/nl/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/403.html b/interface/ispconfig/server/conf/error/nl/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/404.html b/interface/ispconfig/server/conf/error/nl/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/405.html b/interface/ispconfig/server/conf/error/nl/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/500.html b/interface/ispconfig/server/conf/error/nl/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/nl/503.html b/interface/ispconfig/server/conf/error/nl/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/nl/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/400.html b/interface/ispconfig/server/conf/error/pl/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/401.html b/interface/ispconfig/server/conf/error/pl/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/403.html b/interface/ispconfig/server/conf/error/pl/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/404.html b/interface/ispconfig/server/conf/error/pl/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/405.html b/interface/ispconfig/server/conf/error/pl/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/500.html b/interface/ispconfig/server/conf/error/pl/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/pl/503.html b/interface/ispconfig/server/conf/error/pl/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/pl/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/400.html b/interface/ispconfig/server/conf/error/se/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/401.html b/interface/ispconfig/server/conf/error/se/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/403.html b/interface/ispconfig/server/conf/error/se/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/404.html b/interface/ispconfig/server/conf/error/se/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/405.html b/interface/ispconfig/server/conf/error/se/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/500.html b/interface/ispconfig/server/conf/error/se/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/se/503.html b/interface/ispconfig/server/conf/error/se/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/se/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/400.html b/interface/ispconfig/server/conf/error/si/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/401.html b/interface/ispconfig/server/conf/error/si/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/403.html b/interface/ispconfig/server/conf/error/si/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/404.html b/interface/ispconfig/server/conf/error/si/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/405.html b/interface/ispconfig/server/conf/error/si/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/500.html b/interface/ispconfig/server/conf/error/si/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/si/503.html b/interface/ispconfig/server/conf/error/si/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/si/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/400.html b/interface/ispconfig/server/conf/error/sr/400.html new file mode 100644 index 0000000..f83ae58 --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/400.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 400 - Bad Request!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 400 - Bad Request!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You have used invalid syntax.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/401.html b/interface/ispconfig/server/conf/error/sr/401.html new file mode 100644 index 0000000..49c7b47 --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/401.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 401 - Unauthorized!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 401 - Unauthorized!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The URL requested requires authorisation.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/403.html b/interface/ispconfig/server/conf/error/sr/403.html new file mode 100644 index 0000000..12934ce --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/403.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 403 - Forbidden!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 403 - Forbidden!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>You are not permitted to access the requested URL.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/404.html b/interface/ispconfig/server/conf/error/sr/404.html new file mode 100644 index 0000000..fb17b2a --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/404.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 404 - Not Found!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 404 - Not Found!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL was not found on this server.</p> + <P>Please check the URL or contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/405.html b/interface/ispconfig/server/conf/error/sr/405.html new file mode 100644 index 0000000..e5f66a8 --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/405.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 405 - Method Not Allowed!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status4xx"> + <h1>ERROR 405 - Method Not Allowed!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The method used is not permitted.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/500.html b/interface/ispconfig/server/conf/error/sr/500.html new file mode 100644 index 0000000..4413bf5 --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/500.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 500 - Internal Server Error!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 500 - Internal Server Error!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The requested URL caused an internal server error.</p> + <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/error/sr/503.html b/interface/ispconfig/server/conf/error/sr/503.html new file mode 100644 index 0000000..983ce26 --- /dev/null +++ b/interface/ispconfig/server/conf/error/sr/503.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>ERROR 503 - Service Unavailable!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header { + padding: 6px ; + text-align: center; + } + .status3xx { background-color: #475076; color: #FFFFFF; } + .status4xx { background-color: #C55042; color: #FFFFFF; } + .status5xx { background-color: #F2E81A; color: #000000; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="status5xx"> + <h1>ERROR 503 - Service Unavailable!</h1> + </div> + <div id="content"> + <h2>The following error occurred:</h2> + <p>The Service is not available at the moment due to a temporary overloading or maintenance of the server. Please try again later.</p> + <P>Please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//--> with any queries.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/gentoo_network_interfaces.master b/interface/ispconfig/server/conf/gentoo_network_interfaces.master new file mode 100644 index 0000000..cca4f08 --- /dev/null +++ b/interface/ispconfig/server/conf/gentoo_network_interfaces.master @@ -0,0 +1,13 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +config_eth0=( + "<tmpl_var name="ip_address"> netmask <tmpl_var name="netmask"> broadcast <tmpl_var name="broadcast">" + <tmpl_if name="additionl_ip_records"> + <tmpl_loop name="interfaces"> + "<tmpl_var name="ip_address"> netmask <tmpl_var name="netmask"> broadcast <tmpl_var name="broadcast">" + </tmpl_loop> + </tmpl_if> +); + +routes_eth0=( "default via <tmpl_var name="gateway">" ) diff --git a/interface/ispconfig/server/conf/getmail.conf.master b/interface/ispconfig/server/conf/getmail.conf.master new file mode 100644 index 0000000..2f48d76 --- /dev/null +++ b/interface/ispconfig/server/conf/getmail.conf.master @@ -0,0 +1,16 @@ +[options] +# message_log = /var/log/getmail.log +message_log_syslog = 1 +delete = {DELETE} + +[retriever] +type = {TYPE} +server = {SERVER} +username = {USERNAME} +password = {PASSWORD} + +[destination] +type = MDA_external +path = /usr/sbin/sendmail +arguments = ("-i", "-bm", "{DESTINATION}") +unixfrom = true \ No newline at end of file diff --git a/interface/ispconfig/server/conf/index/.htaccess b/interface/ispconfig/server/conf/index/.htaccess new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/interface/ispconfig/server/conf/index/.htaccess diff --git a/interface/ispconfig/server/conf/index/favicon.ico b/interface/ispconfig/server/conf/index/favicon.ico new file mode 100644 index 0000000..da6257c --- /dev/null +++ b/interface/ispconfig/server/conf/index/favicon.ico Binary files differ diff --git a/interface/ispconfig/server/conf/index/robots.txt b/interface/ispconfig/server/conf/index/robots.txt new file mode 100644 index 0000000..4354fd9 --- /dev/null +++ b/interface/ispconfig/server/conf/index/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /stats/ diff --git a/interface/ispconfig/server/conf/index/standard_index.html_br b/interface/ispconfig/server/conf/index/standard_index.html_br new file mode 100644 index 0000000..abce2af --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_br @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bem-Vindo!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bem-vindo ao <!--ADRESSE//-->seu site!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Esta é a página index padrão de seu site.</h2> + <p>Este arquivo pode ser reescrito ou subistituído sem quaisquer dificuldades. Esta página é produzida pelo arquivo <b>index.html</b> contido no diretório <b>web</b>.</p> + <p>Tendo quaisquer dúvidas ou problemas contate o <!--SUPPORT//-->suporte<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_cz b/interface/ispconfig/server/conf/index/standard_index.html_cz new file mode 100644 index 0000000..f9077b4 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_cz @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Vitejte!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Vitejte na <!--ADRESSE//-->Vasem webu!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Toto je standardni stranka Vaseho webu.</h2> + <p>Muzete ji bez obav vymazat nebo nahradit jinym souborem. Toto je soubor <b>index.html</b> v adresari <b>web</b>.</p> + <p>Pokud mate jakekoliv dotazy prosim kontaktuje <!--SUPPORT//-->Support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_de b/interface/ispconfig/server/conf/index/standard_index.html_de new file mode 100644 index 0000000..ad56618 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_de @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Herzlich Willkommen!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color:#666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Herzlich Willkommen auf <!--ADRESSE//-->Ihrer Website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Dies ist die Standard-Index-Seite Ihres Webs.</h2> + <p>Sie können sie problemlos löschen oder durch eine andere Seite ersetzen. Es handelt sich hierbei um die Datei <b>index.html</b> im Verzeichnis <b>web</b>.</p> + <p>Bei Fragen oder Problemen wenden Sie sich bitte an den <!--SUPPORT//-->Support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_en b/interface/ispconfig/server/conf/index/standard_index.html_en new file mode 100644 index 0000000..186ea25 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_en @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welcome!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welcome to <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>This is the default index page of your website.</h2> + <p>This file may be deleted or overwritten without any difficulty. This is produced by the file <b>index.html</b> in the <b>web</b> directory.</p> + <p>For questions or problems please contact <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_es b/interface/ispconfig/server/conf/index/standard_index.html_es new file mode 100644 index 0000000..0071036 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_es @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bienvenido!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bienvenido a su <!--ADRESSE//-->sitio web!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Esta es la página principal del sitio.</h2> + <p>Puede cambiarla por otra simplemente reemplazando este archivo. This is produced by the file <b>index.html</b> in the <b>web</b> directory.</p> + <p>Si tiene dudas o problemas, porfavor contacte al <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_fi b/interface/ispconfig/server/conf/index/standard_index.html_fi new file mode 100644 index 0000000..e34f57a --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_fi @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Tervetuloa!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Tervetuloa <!--ADRESSE//-->internet-sivullesi!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Tämä on sivustosi oletusaloitussivu.</h2> + <p>Tämä sivu voidaan poistaa tai vaihtaa ilman mitään vaikeuksia. Tämä sivu on <b>index.html</b>-tiedosto kotihakemistosi <b>web</b>-kansiossa.</p> + <p>Jos sinulla on ongelmia tai kysyttävää, ota yhteyttä <!--SUPPORT//-->asiakastukeen<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_fr b/interface/ispconfig/server/conf/index/standard_index.html_fr new file mode 100644 index 0000000..8615dba --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_fr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bienvenue!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bienvenue sur <!--ADRESSE//-->votre site<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ceci est la page d'index standard de votre site.</h2> + <p>Vous pouvez facilement effacer ou remplacer ce fichier. C'est le fichier <b>index.html</b> dans le dossier <b>web</b>.</p> + <p>Pour tous problèmes ou questions, merci de contacter le <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_gr b/interface/ispconfig/server/conf/index/standard_index.html_gr new file mode 100644 index 0000000..41751e1 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_gr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Êáëþò Þñèáôå!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Êáëþò Þñèáôå óôï <!--ADRESSE//-->äéêôõáêü óáò ôüðï!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>ÁõôÞ åßíáé ç ðñïåðéëåãìÝíç áñ÷éêÞ óåëßäá ôïõ äéêôõáêïý óáò ôüðïõ.</h2> + <p>Ìðïñåßôå åýêïëá íá ôç äéáãñÜøåôå Þ áíôéêáôáóôÞóåôå ìå Üëëï áñ÷åßï. Áõôü åßíáé ôï <b>index.html</b> áñ÷åßï óôï <b>web</b> öÜêåëï.</p> + <p>Ãéá áðïñßåò Þ ðñïâëÞìáôá ðáñáêáëþ åðéêïéíùíÞóôå ìå ôï <!--SUPPORT//-->äéá÷åéñéóôÞ<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_hu b/interface/ispconfig/server/conf/index/standard_index.html_hu new file mode 100644 index 0000000..33444ec --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_hu @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Üdvözöljük!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Üdvözöljük az <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ez az oldal az Ön weboldalának eredeti kezdõoldala.</h2> + <p>Ezt az oldalt Ön igényei szerint módosíthatja, akár le is törölheti. Megtalálja ezt az állományt a <b>web</b> könyvtárban <b>index.html</b> néven.</p> + <p>Kérdéseivel, kérjük, forduljon a <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_it b/interface/ispconfig/server/conf/index/standard_index.html_it new file mode 100644 index 0000000..141bbb9 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_it @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Benvenuti!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Benvenuti sul <!--ADRESSE//-->vostro sito!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Questa è la pagina predefinita.</h2> + <p>Questo file può essere cancellato o sovrascritto senza nessun problema. Questo è prodotto dal file <b>index.html</b> nella cartella <b>web</b>.</p> + <p>Per domande o problemi contattate il <!--SUPPORT//-->supporto<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_nl b/interface/ispconfig/server/conf/index/standard_index.html_nl new file mode 100644 index 0000000..9a0d660 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_nl @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welkom!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welkom op <!--ADRESSE//-->uw website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Dit is de standaard indexpagina van uw website.</h2> + <p>U kunt deze op eenvoudige wijze verwijderen en vervangen door een ander bestand. Dit is het <b>index.html</b> bestand in de <b>web</b> directorie.</p> + <p>Voor vragen of problemen kunt u contact opnemen met de <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_pl b/interface/ispconfig/server/conf/index/standard_index.html_pl new file mode 100644 index 0000000..e657b38 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_pl @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welcome!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welcome to <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>This is the default index page of your website.</h2> + <p>This file may be deleted or overwritten without any difficulty. This is produced by the file <b>index.html</b> in the <b>web</b> directory.</p> + <p>For questions or problems please contact the <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_se b/interface/ispconfig/server/conf/index/standard_index.html_se new file mode 100644 index 0000000..6a21747 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_se @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Välkommen!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Välkommen till <!--ADRESSE//-->din webbplats!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Detta är en standard index sida på din webbplats.</h2> + <p>Du kan antingen ta bort den eller ersätta den med en annan fil. Detta är en <b>index.html</b> fil i <b>web</b> mappen.</p> + <p>För frågor eller problem runt detta kontakta <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/standard_index.html_sr b/interface/ispconfig/server/conf/index/standard_index.html_sr new file mode 100644 index 0000000..07a88b8 --- /dev/null +++ b/interface/ispconfig/server/conf/index/standard_index.html_sr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Dobrodošli!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Dobrodošli na <!--ADRESSE//-->Vašu Internet prezentaciju!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ovo je standardna indeksna strana vaše internet prezentacije.</h2> + <p>Možete je lako obrisati ili zameniti sa nekom drugom datotekom. Ovo je <b>index.html</b> datoteka u <b>web</b> directory.</p> + <p>Kontaktirajte <!--SUPPORT//-->support<!--SUPPORT//--> u vezi pitanja i problema.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_br b/interface/ispconfig/server/conf/index/user_standard_index.html_br new file mode 100644 index 0000000..88cc913 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_br @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bem-Vindo!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bem-vindo ao <!--ADRESSE//-->seu site!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Esta é a página index padrão para o usuário <b>{USER_USERNAME}</b>.</h2> + <p>Este arquivo pode ser reescrito ou subistituído sem quaisquer dificuldades. Esta página é produzida pelo arquivo <b>index.html</b> no diretório <b>user/{USER_USERNAME}/web</b>.</p> + <p>Tendo quaisquer dúvidas ou problemas contate o <!--SUPPORT//-->suporte<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_cz b/interface/ispconfig/server/conf/index/user_standard_index.html_cz new file mode 100644 index 0000000..0be2ca0 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_cz @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Vitejte!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Vitejte na <!--ADRESSE//-->Vasem webu!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Toto je standardni stranka Vaseho webu <b>{USER_USERNAME}</b></h2> + <p>Muzete ji bez obav vymazat nebo nahradit jinym souborem. Toto je soubor <b>index.html</b> v adresari <b>user/{USER_USERNAME}/web</b>.</p> + <p>Pokud mate jakekoliv dotazy prosim kontaktuje <!--SUPPORT//-->Support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_de b/interface/ispconfig/server/conf/index/user_standard_index.html_de new file mode 100644 index 0000000..6264631 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_de @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Herzlich Willkommen!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Herzlich Willkommen auf <!--ADRESSE//-->Ihrer Website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Dies ist die Standard-Index-Seite von Benutzer <b>{USER_USERNAME}</b>.</h2> + <p>Sie können sie problemlos löschen oder durch eine andere Seite ersetzen. Es handelt sich hierbei um die Datei <b>index.html</b> im Verzeichnis <b>user/{USER_USERNAME}/web</b>.</p> + <p>Bei Fragen oder Problemen wenden Sie sich bitte an den <!--SUPPORT//-->Support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_en b/interface/ispconfig/server/conf/index/user_standard_index.html_en new file mode 100644 index 0000000..bb3a7aa --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_en @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welcome!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welcome to <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>This is the default index page for user <b>{USER_USERNAME}</b>.</h2> + <p>This file may be deleted or overwritten without any difficulty. This is produced by the file <b>index.html</b> in the <b>user/{USER_USERNAME}/web</b> directory.</p> + <p>For questions or problems please contact the <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_es b/interface/ispconfig/server/conf/index/user_standard_index.html_es new file mode 100644 index 0000000..ccd4f37 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_es @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bienvenido!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bienvenido a su <!--ADRESSE//-->sitio web!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Esta es la página indice de la cuenta <b>{USER_USERNAME}</b>.</h2> + <p>Puede cambiarla por otra simplemente reemplazando este archivo. This is produced by the file <b>index.html</b> in the <b>user/{USER_USERNAME}/web</b> directory.</p> + <p>Si tiene dudas o problemas, porfavor contacte al <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_fi b/interface/ispconfig/server/conf/index/user_standard_index.html_fi new file mode 100644 index 0000000..14cd515 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_fi @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Tervetuloa!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Tervetuloa <!--ADRESSE//-->internet-sivullesi!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Tämä on käyttäjän <b>{USER_USERNAME}</b>oletusaloitussivu.</h2> + <p>Tämä sivu voidaan poistaa tai vaihtaa ilman mitään vaikeuksia. Tämä sivu on <b>index.html</b>-tiedosto sivuston <b>user/{USER_USERNAME}/web</b>-kansiossa.</p> + <p>Jos sinulla on ongelmia tai kysyttävää, ota yhteyttä <!--SUPPORT//-->asiakastukeen<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_fr b/interface/ispconfig/server/conf/index/user_standard_index.html_fr new file mode 100644 index 0000000..8c074c0 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_fr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Bienvenue!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Bienvenue sur <!--ADRESSE//-->votre site<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ceci est la page d'index standard de l'utilisateur <b>{USER_USERNAME}</b>.</h2> + <p>Vous pouvez facilement effacer ou remplacer ce fichier. C'est le fichier <b>index.html</b> dans le dossier <b>user/{USER_USERNAME}/web</b>.</p> + <p>Pour tous problèmes ou questions, merci de contacter le <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_gr b/interface/ispconfig/server/conf/index/user_standard_index.html_gr new file mode 100644 index 0000000..63f16a4 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_gr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Êáëþò Þñèáôå!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Êáëþò Þñèáôå óôï <!--ADRESSE//-->äéêôõáêü óáò ôüðï!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>ÁõôÞ åßíáé ç ðñïåðéëåãìÝíç áñ÷éêÞ óåëßäá ãéá ôï ÷ñÞóôç <b>{USER_USERNAME}</b>.</h2> + <p>Ìðïñåßôå åýêïëá íá ôç äéáãñÜøåôå Þ áíôéêáôáóôÞóåôå ìå Üëëï áñ÷åßï. Áõôü åßíáé ôï <b>index.html</b> áñ÷åßï óôï <b>user/{USER_USERNAME}/web</b> öÜêåëï.</p> + <p>Ãéá áðïñßåò Þ ðñïâëÞìáôá ðáñáêáëþ åðéêïéíùíÞóôå ìå ôï <!--SUPPORT//-->äéá÷åéñéóôÞ<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_hu b/interface/ispconfig/server/conf/index/user_standard_index.html_hu new file mode 100644 index 0000000..2ca8732 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_hu @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Üdvözöljük!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Üdvözöljük az <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ez az oldal a <b>{USER_USERNAME}</b> felhasználó eredeti kezdõoldala.</h2> + <p>Ezt az oldalt Ön igényei szerint módosíthatja, akár le is törölheti. Megtalálja ezt az állományt a <b>web</b> könyvtárban <b>user/{USER_USERNAME}/index.html</b> néven.</p> + <p>Kérdéseivel, kérjük, forduljon a <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_it b/interface/ispconfig/server/conf/index/user_standard_index.html_it new file mode 100644 index 0000000..6f253f0 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_it @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Benvenuti!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Benvenuti sul <!--ADRESSE//-->vostro sito!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Questa è la pagina di default per l'utente <b>{USER_USERNAME}</b>.</h2> + <p>Questo file può essere cancellato o sovrascritto senza nessun problema. Questo è prodotto dal file <b>index.html</b> nella cartella <b>user/{USER_USERNAME}/web</b>.</p> + <p>Per domande o problemi contattate il <!--SUPPORT//-->supporto<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_nl b/interface/ispconfig/server/conf/index/user_standard_index.html_nl new file mode 100644 index 0000000..0c7e13c --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_nl @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welkom!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welkom op <!--ADRESSE//-->uw website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Dit is de standaard indexpagina voor gebruiker <b>{USER_USERNAME}</b>.</h2> + <p>U kunt deze op eenvoudige wijze verwijderen en vervangen door een ander bestand. Dit is het <b>index.html</b> bestand in de <b>user/{USER_USERNAME}/web</b> directorie.</p> + <p>Voor vragen of problemen kunt u contact opnemen met de <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_pl b/interface/ispconfig/server/conf/index/user_standard_index.html_pl new file mode 100644 index 0000000..bb3a7aa --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_pl @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Welcome!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Welcome to <!--ADRESSE//-->your website!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>This is the default index page for user <b>{USER_USERNAME}</b>.</h2> + <p>This file may be deleted or overwritten without any difficulty. This is produced by the file <b>index.html</b> in the <b>user/{USER_USERNAME}/web</b> directory.</p> + <p>For questions or problems please contact the <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_se b/interface/ispconfig/server/conf/index/user_standard_index.html_se new file mode 100644 index 0000000..ed9c9ae --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_se @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Välkommen!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Välkommen till <!--ADRESSE//-->din webbplats!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Detta är en standard index sida för användare <b>{USER_USERNAME}</b>.</h2> + <p>Du kan antingen ta bort den eller ersätta den med en annan fil. Detta är en <b>index.html</b> fil i <b>user/{USER_USERNAME}/web</b> mappen.</p> + <p>För frågor eller problem runt detta kontakta <!--SUPPORT//-->support<!--SUPPORT//-->.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/index/user_standard_index.html_sr b/interface/ispconfig/server/conf/index/user_standard_index.html_sr new file mode 100644 index 0000000..83ea257 --- /dev/null +++ b/interface/ispconfig/server/conf/index/user_standard_index.html_sr @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Dobrodošli!</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="shortcut icon" href="/favicon.ico" /> + <meta name="robots" content="noindex" /> + <style type="text/css"><!-- + body { + color: #444444; + background-color: #EEEEEE; + font-family: 'Trebuchet MS', sans-serif; + font-size: 80%; + } + h1 {} + h2 { font-size: 1.2em; } + #page{ + background-color: #FFFFFF; + width: 60%; + margin: 24px auto; + padding: 12px; + } + #header{ + padding: 6px ; + text-align: center; + } + .header{ background-color: #83A342; color: #FFFFFF; } + #content { + padding: 4px 0 24px 0; + } + #footer { + color: #666666; + background: #f9f9f9; + padding: 10px 20px; + border-top: 5px #efefef solid; + font-size: 0.8em; + text-align: center; + } + #footer a { + color: #999999; + } + --></style> +</head> +<body> + <div id="page"> + <div id="header" class="header"> + <h1>Dobrodošli na <!--ADRESSE//-->Vašu Internet prezentaciju!<!--ADRESSE//--></h1> + </div> + <div id="content"> + <h2>Ovo je podrazumevana indeksna strana za korisnika <b>{USER_USERNAME}</b>.</h2> + <p>Možete je lako obrisati ili zameniti sa nekom drugom datotekom. Ovo je <b>index.html</b> datoteka u <b>user/{USER_USERNAME}/web</b> directory.</p> + <p>Kontaktirajte <!--SUPPORT//-->support<!--SUPPORT//--> u vezi pitanja i problema.</p> + </div> + <div id="footer"> + <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> + </div> + </div> +</body> +</html> diff --git a/interface/ispconfig/server/conf/mailfilter_move_junk.master b/interface/ispconfig/server/conf/mailfilter_move_junk.master new file mode 100644 index 0000000..ef346c9 --- /dev/null +++ b/interface/ispconfig/server/conf/mailfilter_move_junk.master @@ -0,0 +1,19 @@ + +SPAMDIR="Junk" +SPAMDIRFULL="$DEFAULT/.Junk" + +if ( /^X-Spam-Flag: YES$/ ) +{ + exception { + + `test -e $SPAMDIRFULL` + if ( $RETURNCODE != 0 ) + { + `maildirmake -f $SPAMDIR $DEFAULT` + `chown vmail:vmail -R $SPAMDIRFULL` + `chmod 0700 $SPAMDIRFULL` + `echo INBOX.$SPAMDIR >> $DEFAULT/courierimapsubscribed` + } + to "$SPAMDIRFULL/" + } +} \ No newline at end of file diff --git a/interface/ispconfig/server/conf/motd.master b/interface/ispconfig/server/conf/motd.master new file mode 100644 index 0000000..efc2ac3 --- /dev/null +++ b/interface/ispconfig/server/conf/motd.master @@ -0,0 +1,4 @@ +Welcome to <tmpl_var name='domain'> + + + diff --git a/interface/ispconfig/server/conf/php-cgi-starter.master b/interface/ispconfig/server/conf/php-cgi-starter.master new file mode 100644 index 0000000..3c00f9d --- /dev/null +++ b/interface/ispconfig/server/conf/php-cgi-starter.master @@ -0,0 +1,7 @@ +#!/bin/sh + +exec <tmpl_var name='php_cgi_bin'> \ +-d open_basedir=<tmpl_var name='open_basedir'> \ +-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \ +-d session.save_path=<tmpl_var name='document_root'>/tmp +# -d safe_mode=${SAFE_MODE} \ No newline at end of file diff --git a/interface/ispconfig/server/conf/php-fcgi-starter.master b/interface/ispconfig/server/conf/php-fcgi-starter.master new file mode 100644 index 0000000..97a1628 --- /dev/null +++ b/interface/ispconfig/server/conf/php-fcgi-starter.master @@ -0,0 +1,16 @@ +#!/bin/sh +PHPRC="<tmpl_var name='php_ini_path'>" +export PHPRC +PHP_DOCUMENT_ROOT="<tmpl_var name='document_root'>" +export PHP_DOCUMENT_ROOT +# The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache +# mod_fcgi will control the number of childs themself and never use the additional processes. +# PHP_FCGI_CHILDREN=<tmpl_var name='php_fcgi_children'> +# export PHP_FCGI_CHILDREN +PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'> +export PHP_FCGI_MAX_REQUESTS +exec <tmpl_var name='php_fcgi_bin'> \ +<tmpl_if name="security_level" op="==" value="20"> -d open_basedir="<tmpl_var name='open_basedir'>" \ +-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \ +-d session.save_path=<tmpl_var name='document_root'>/tmp \ +</tmpl_if> $1 \ No newline at end of file diff --git a/interface/ispconfig/server/conf/sieve_filter.master b/interface/ispconfig/server/conf/sieve_filter.master new file mode 100644 index 0000000..c3393cf --- /dev/null +++ b/interface/ispconfig/server/conf/sieve_filter.master @@ -0,0 +1,30 @@ + +require ["fileinto", "regex", "vacation"]; + +<tmpl_if name="move_junk" op="==" value="y"> +# Move spam to spam folder +if header :contains "X-Spam-Flag" "YES" { + fileinto "Junk"; + # Stop here so that we do not reply on spams + stop; +} +</tmpl_if> + +<tmpl_var name='custom_mailfilter'> + +<tmpl_if name="autoresponder" op="==" value="y"> +################################################################# +# Autoreply +################################################################# + +# Move spam to spam folder +if header :contains "X-Spam-Flag" "YES" { + fileinto "Junk"; + # Stop here so that we do not reply on spams + stop; +} +vacation :days 1 + :subject "Out of office reply" + # :addresses ["test@test.int", "till@test.int"] + "<tmpl_var name='autoresponder_text'>"; +</tmpl_if> diff --git a/interface/ispconfig/server/conf/vhost.conf.master b/interface/ispconfig/server/conf/vhost.conf.master new file mode 100644 index 0000000..36182b0 --- /dev/null +++ b/interface/ispconfig/server/conf/vhost.conf.master @@ -0,0 +1,350 @@ + +<Directory {tmpl_var name='web_basedir'}/{tmpl_var name='domain'}> + AllowOverride None + Order Deny,Allow + Deny from all +</Directory> + +<VirtualHost <tmpl_var name='ip_address'>:80> +<tmpl_if name='php' op='==' value='suphp'> + DocumentRoot <tmpl_var name='web_document_root'> +</tmpl_else> + <tmpl_if name='php' op='==' value='cgi'> + DocumentRoot <tmpl_var name='web_document_root'> + </tmpl_else> + DocumentRoot <tmpl_var name='web_document_root_www'> + </tmpl_if> +</tmpl_if> + + ServerName <tmpl_var name='domain'> +<tmpl_if name='alias'> + <tmpl_var name='alias'> +</tmpl_if> + ServerAdmin webmaster@<tmpl_var name='domain'> + + ErrorLog /var/log/ispconfig/httpd/<tmpl_var name='domain'>/error.log +<tmpl_if name='errordocs'> + + ErrorDocument 400 /error/400.html + ErrorDocument 401 /error/401.html + ErrorDocument 403 /error/403.html + ErrorDocument 404 /error/404.html + ErrorDocument 405 /error/405.html + ErrorDocument 500 /error/500.html + ErrorDocument 503 /error/503.html +</tmpl_if> + + <Directory {tmpl_var name='web_document_root_www'}> + Options FollowSymLinks + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all +<tmpl_if name='ssi' op='==' value='y'> + + # ssi enabled + AddType text/html .shtml + AddOutputFilter INCLUDES .shtml + Options +Includes +</tmpl_if> +<tmpl_if name='php' op='==' value='no'> + <Files ~ '.php[s3-6]{0,1}$'> + Order allow,deny + Deny from all + Allow from none + </Files> +</tmpl_if> + </Directory> + <Directory {tmpl_var name='web_document_root'}> + Options FollowSymLinks + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all +<tmpl_if name='ssi' op='==' value='y'> + + # ssi enabled + AddType text/html .shtml + AddOutputFilter INCLUDES .shtml + Options +Includes +</tmpl_if> +<tmpl_if name='php' op='==' value='no'> + <Files ~ '.php[s3-6]{0,1}$'> + Order allow,deny + Deny from all + Allow from none + </Files> +</tmpl_if> + </Directory> + +<tmpl_if name='cgi' op='==' value='y'> + # cgi enabled + <Directory {tmpl_var name='document_root'}/cgi-bin> + Order allow,deny + Allow from all + </Directory> + ScriptAlias /cgi-bin/ <tmpl_var name='document_root'>/cgi-bin/ + AddHandler cgi-script .cgi + AddHandler cgi-script .pl +</tmpl_if> +<tmpl_if name='suexec' op='==' value='y'> + # suexec enabled + SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> +</tmpl_if> + # Clear PHP settings of this website + <FilesMatch "\.ph(p3?|tml)$"> + SetHandler None + </FilesMatch> +<tmpl_if name='php' op='==' value='mod'> + # mod_php enabled + AddType application/x-httpd-php .php .php3 .php4 .php5 + php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" + php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp + php_admin_value session.save_path <tmpl_var name='document_root'>/tmp +<tmpl_if name='security_level' op='==' value='20'> + php_admin_value open_basedir <tmpl_var name='php_open_basedir'> +</tmpl_if> +</tmpl_if> +<tmpl_if name='php' op='==' value='suphp'> + # suphp enabled + <Directory {tmpl_var name='web_document_root'}> + suPHP_Engine on + # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> + AddHandler x-httpd-suphp .php .php3 .php4 .php5 + suPHP_AddHandler x-httpd-suphp + </Directory> +</tmpl_if> +<tmpl_if name='php' op='==' value='cgi'> + # php as cgi enabled + ScriptAlias /php5-cgi <tmpl_var name='cgi_starter_path'><tmpl_var name='cgi_starter_script'> + Action php5-cgi /php5-cgi + AddHandler php5-cgi .php .php3 .php4 .php5 + <Directory {tmpl_var name='cgi_starter_path'}> + Order allow,deny + Allow from all + </Directory> +</tmpl_if> +<tmpl_if name='php' op='==' value='fast-cgi'> + # php as fast-cgi enabled + <IfModule mod_fcgid.c> + # SocketPath /tmp/fcgid_sock/ + IdleTimeout 3600 + ProcessLifeTime 7200 + # MaxProcessCount 1000 + DefaultMinClassProcessCount 3 + DefaultMaxClassProcessCount 100 + IPCConnectTimeout 8 + IPCCommTimeout 360 + BusyTimeout 300 + </IfModule> + <Directory {tmpl_var name='web_document_root_www'}> + AddHandler fcgid-script .php .php3 .php4 .php5 + FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php + Options +ExecCGI + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all + </Directory> + <Directory {tmpl_var name='web_document_root'}> + AddHandler fcgid-script .php .php3 .php4 .php5 + FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php + Options +ExecCGI + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all + </Directory> +</tmpl_if> +<tmpl_if name="rewrite_enabled"> + + RewriteEngine on +<tmpl_loop name="redirects"> + RewriteCond %{HTTP_HOST} ^<tmpl_var name='rewrite_domain'> [NC] + RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 <tmpl_var name='rewrite_type'> +</tmpl_loop> +</tmpl_if> + + # add support for apache mpm_itk + <IfModule mpm_itk_module> + AssignUserId <tmpl_var name='system_user'> <tmpl_var name='system_group'> + </IfModule> + +<tmpl_var name='apache_directives'> +</VirtualHost> + + + +<tmpl_if name='ssl_enabled'> +<IfModule mod_ssl.c> +########################################################### +# SSL Vhost +########################################################### + +<VirtualHost <tmpl_var name='ip_address'>:443> +<tmpl_if name='php' op='==' value='suphp'> + DocumentRoot <tmpl_var name='web_document_root'> +</tmpl_else> + <tmpl_if name='php' op='==' value='cgi'> + DocumentRoot <tmpl_var name='web_document_root'> + </tmpl_else> + DocumentRoot <tmpl_var name='web_document_root_www'> + </tmpl_if> +</tmpl_if> + + ServerName <tmpl_var name='ssl_domain'> +<tmpl_if name='alias'> + <tmpl_var name='alias'> +</tmpl_if> + ServerAdmin webmaster@<tmpl_var name='domain'> + + ErrorLog /var/log/ispconfig/httpd/<tmpl_var name='domain'>/error.log + +<tmpl_if name='errordocs'> + ErrorDocument 400 /error/400.html + ErrorDocument 401 /error/401.html + ErrorDocument 403 /error/403.html + ErrorDocument 404 /error/404.html + ErrorDocument 405 /error/405.html + ErrorDocument 500 /error/500.html + ErrorDocument 503 /error/503.html + +</tmpl_if> + SSLEngine on + SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt + SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key +<tmpl_if name='has_bundle_cert'> + SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.bundle +</tmpl_if> + + <Directory {tmpl_var name='web_document_root_www'}> + Options FollowSymLinks + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all +<tmpl_if name='ssi' op='==' value='y'> + + # ssi enabled + AddType text/html .shtml + AddOutputFilter INCLUDES .shtml + Options +Includes +</tmpl_if> +<tmpl_if name='php' op='==' value='no'> + <Files ~ '.php[s3-6]{0,1}$'> + Order allow,deny + Deny from all + Allow from none + </Files> +</tmpl_if> + </Directory> + <Directory {tmpl_var name='web_document_root'}> + Options FollowSymLinks + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all +<tmpl_if name='ssi' op='==' value='y'> + + # ssi enabled + AddType text/html .shtml + AddOutputFilter INCLUDES .shtml + Options +Includes +</tmpl_if> +<tmpl_if name='php' op='==' value='no'> + <Files ~ '.php[s3-6]{0,1}$'> + Order allow,deny + Deny from all + Allow from none + </Files> +</tmpl_if> + </Directory> + +<tmpl_if name='cgi' op='==' value='y'> + # cgi enabled + <Directory {tmpl_var name='document_root'}/cgi-bin> + Order allow,deny + Allow from all + </Directory> + ScriptAlias /cgi-bin/ <tmpl_var name='document_root'>/cgi-bin/ + AddHandler cgi-script .cgi + AddHandler cgi-script .pl +</tmpl_if> +<tmpl_if name='ssi'op='==' value='y'> + # ssi enabled + AddType text/html .shtml + AddOutputFilter INCLUDES .shtml +</tmpl_if> +<tmpl_if name='suexec'op='==' value='y'> + # suexec enabled + SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> +</tmpl_if> +<tmpl_if name='php' op='==' value='mod'> + # mod_php enabled + AddType application/x-httpd-php .php .php3 .php4 .php5 + php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" + php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp + php_admin_value session.save_path <tmpl_var name='document_root'>/tmp +<tmpl_if name='security_level' op='==' value='20'> + php_admin_value open_basedir <tmpl_var name='php_open_basedir'> +</tmpl_if> +</tmpl_if> +<tmpl_if name='php' op='==' value='suphp'> + suPHP_Engine on + # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> + AddHandler x-httpd-suphp .php .php3 .php4 .php5 + suPHP_AddHandler x-httpd-suphp +</tmpl_if> +<tmpl_if name='php' op='==' value='cgi'> + # php as cgi enabled + ScriptAlias /php5-cgi <tmpl_var name='cgi_starter_path'><tmpl_var name='cgi_starter_script'> + Action php5-cgi /php5-cgi + AddHandler php5-cgi .php .php3 .php4 .php5 + <Directory {tmpl_var name='cgi_starter_path'}> + Order allow,deny + Allow from all + </Directory> +</tmpl_if> +<tmpl_if name='php' op='==' value='fast-cgi'> + # php as fast-cgi enabled + <IfModule mod_fcgid.c> + # SocketPath /tmp/fcgid_sock/ + IdleTimeout 3600 + ProcessLifeTime 7200 + # MaxProcessCount 1000 + DefaultMinClassProcessCount 3 + DefaultMaxClassProcessCount 100 + IPCConnectTimeout 8 + IPCCommTimeout 360 + BusyTimeout 300 + </IfModule> + <Directory {tmpl_var name='web_document_root_www'}> + AddHandler fcgid-script .php .php3 .php4 .php5 + FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php + Options +ExecCGI + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all + </Directory> + <Directory {tmpl_var name='web_document_root'}> + AddHandler fcgid-script .php .php3 .php4 .php5 + FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php + Options +ExecCGI + AllowOverride <tmpl_var name='allow_override'> + Order allow,deny + Allow from all + </Directory> +</tmpl_if> +<tmpl_if name="rewrite_enabled"> + + RewriteEngine on +<tmpl_loop name="redirects"> + RewriteCond %{HTTP_HOST} ^<tmpl_var name='rewrite_domain'> [NC] + RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 <tmpl_var name='rewrite_type'> +</tmpl_loop> +</tmpl_if> + + # add support for apache mpm_itk + <IfModule mpm_itk_module> + AssignUserId <tmpl_var name='system_user'> <tmpl_var name='system_group'> + </IfModule> + +<tmpl_var name='apache_directives'> +</VirtualHost> +</IfModule> + +</tmpl_if> diff --git a/interface/ispconfig/server/cron_daily.php b/interface/ispconfig/server/cron_daily.php new file mode 100644 index 0000000..24c0961 --- /dev/null +++ b/interface/ispconfig/server/cron_daily.php @@ -0,0 +1,303 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +require("lib/config.inc.php"); +require("lib/app.inc.php"); + +set_time_limit(0); + +// make sure server_id is always an int +$conf["server_id"] = intval($conf["server_id"]); + + +// Load required base-classes +$app->uses('ini_parser,file,services'); + + +####################################################################################################### +// store the mailbox statistics in the database +####################################################################################################### + +$sql = "SELECT mailuser_id,maildir FROM mail_user WHERE server_id = ".$conf["server_id"]; +$records = $app->db->queryAllRecords($sql); +foreach($records as $rec) { + if(@is_file($rec["maildir"].'/ispconfig_mailsize')) { + + // rename file + rename($rec["maildir"].'/ispconfig_mailsize',$rec["maildir"].'/ispconfig_mailsize_save'); + + // Read the file + $lines = file($rec["maildir"].'/ispconfig_mailsize_save'); + $mail_traffic = 0; + foreach($lines as $line) { + $mail_traffic += intval($line); + } + unset($lines); + + // Delete backup file + if(@is_file($rec["maildir"].'/ispconfig_mailsize_save')) unlink($rec["maildir"].'/ispconfig_mailsize_save'); + + // Save the traffic stats in the sql database + $tstamp = date("Y-m"); + + $sql = "SELECT * FROM mail_traffic WHERE month = '$tstamp' AND mailuser_id = ".$rec["mailuser_id"]; + $tr = $app->dbmaster->queryOneRecord($sql); + + $mail_traffic += $tr["traffic"]; + if($tr["traffic_id"] > 0) { + $sql = "UPDATE mail_traffic SET traffic = $mail_traffic WHERE traffic_id = ".$tr["traffic_id"]; + } else { + $sql = "INSERT INTO mail_traffic (month,mailuser_id,traffic) VALUES ('$tstamp',".$rec["mailuser_id"].",$mail_traffic)"; + } + $app->dbmaster->query($sql); + echo $sql; + + } + +} + +####################################################################################################### +// Create webalizer statistics +####################################################################################################### + +function setConfigVar( $filename, $varName, $varValue ) { + if($lines = @file($filename)) { + $out = ''; + $found = 0; + foreach($lines as $line) { + list($key, $value) = preg_split("/[\t= ]+/", $line, 2); + if($key == $varName) { + $out .= $varName." ".$varValue."\n"; + $found = 1; + } else { + $out .= $line; + } + } + if($found == 0) { + //* add \n if the last line does not end with \n or \r + if(substr($out,-1) != "\n" && substr($out,-1) != "\r") $out .= "\n"; + //* add the new line at the end of the file + if($append == 1) $out .= $varName." ".$varValue."\n"; + } + + file_put_contents($filename,$out); + } +} + + +$sql = "SELECT domain_id, domain, document_root FROM web_domain WHERE server_id = ".$conf["server_id"]; +$records = $app->db->queryAllRecords($sql); + +foreach($records as $rec) { + $yesterday = date("Ymd",time() - 86400); + $logfile = escapeshellcmd($rec["document_root"].'/log/'.$yesterday.'-access.log'); + if(!@is_file($logfile)) { + $logfile = escapeshellcmd($rec["document_root"].'/log/'.$yesterday.'-access.log.gz'); + if(!@is_file($logfile)) { + continue; + } +} + +$domain = escapeshellcmd($rec["domain"]); +$statsdir = escapeshellcmd($rec["document_root"].'/web/stats'); +$webalizer = '/usr/bin/webalizer'; +$webalizer_conf_main = '/etc/webalizer/webalizer.conf'; +$webalizer_conf = escapeshellcmd($rec["document_root"].'/log/webalizer.conf'); + +if(!@is_file($webalizer_conf)) { + exec("cp $webalizer_conf_main $webalizer_conf"); +} + +if(@is_file($webalizer_conf)) { + setConfigVar($webalizer_conf, 'Incremental', 'yes'); + setConfigVar($webalizer_conf, 'IncrementalName', $statsdir.'/webalizer.current'); + setConfigVar($webalizer_conf, 'HistoryName', $statsdir.'/webalizer.hist'); +} + + +if(!@is_dir($statsdir)) mkdir($statsdir); + exec("$webalizer -c $webalizer_conf -n $domain -s $domain -r $domain -q -T -p -o $statsdir $logfile"); +} + +####################################################################################################### +// Make the web logfiles directories world readable to enable ftp access +####################################################################################################### + +exec('chmod +r /var/log/ispconfig/httpd/*'); + +####################################################################################################### +// Manage and compress web logfiles +####################################################################################################### + +$sql = "SELECT domain_id, domain, document_root FROM web_domain WHERE server_id = ".$conf["server_id"]; +$records = $app->db->queryAllRecords($sql); +foreach($records as $rec) { + $yesterday = date("Ymd",time() - 86400); + $logfile = escapeshellcmd($rec["document_root"].'/log/'.$yesterday.'-access.log'); + if(@is_file($logfile)) { + // Compress yesterdays logfile + exec("gzip -c $logfile > $logfile.gz"); + unlink($logfile); + } + + // delete logfiles after 30 days + $month_ago = date("Ymd",time() - 86400 * 30); + $logfile = escapeshellcmd($rec["document_root"].'/log/'.$month_ago.'-access.log.gz'); + if(@is_file($logfile)) { + unlink($logfile); + } +} + +####################################################################################################### +// Cleanup website tmp directories +####################################################################################################### + +$sql = "SELECT domain_id, domain, document_root, system_user FROM web_domain WHERE server_id = ".$conf["server_id"]; +$records = $app->db->queryAllRecords($sql); +$app->uses('system'); +if(is_array($records)) { + foreach($records as $rec){ + $tmp_path = realpath(escapeshellcmd($rec["document_root"].'/tmp')); + if($tmp_path != '' && strlen($tmp_path) > 10 && is_dir($tmp_path) && $app->system->is_user($rec['system_user'])){ + exec("cd ".$tmp_path."; find -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm &> /dev/null 2> /dev/null"); + } + } +} + +####################################################################################################### +// Cleanup logs in master database (only the "master-server") +####################################################################################################### + +if ($app->dbmaster == $app->db) { + /** 7 days */ + $tstamp = time() - (60*60*24*7); + + /* + * Keep 7 days in sys_log + * (we can delete the old items, because if they are OK, they don't interrest anymore + * if they are NOT ok, the server will try to process them in 1 minute and so the + * error appears again after 1 minute. So it is no problem to delete the old one! + */ + $sql = "DELETE FROM sys_log WHERE tstamp < $tstamp AND server_id != 0"; + $app->dbmaster->query($sql); + + /* + * The sys_datalog is more difficult. + * 1) We have to keet ALL entries with + * server_id=0, because they depend on ALL servers (even if they are not + * actually in the system (and will be insered in 3 days or so). + * 2) We have to keey ALL entries which are not actually precessed by the + * server never mind how old they are! + * 3) We have to keep the entry with the highest autoinc-id, because mysql calculates the + * autoinc-id as "new value = max(row) +1" and does not store this in a separate table. + * This means, if we delete to entry with the highest autoinc-value then this value is + * reused as autoinc and so there are more than one entries with the same value (over + * for example 4 Weeks). This is confusing for our system. + * ATTENTION 2) and 3) is in some case NOT the same! so we have to check both! + */ + + /* First we need all servers and the last sys_datalog-id they processed */ + $sql = "SELECT server_id, updated FROM server ORDER BY server_id"; + $records = $app->dbmaster->queryAllRecords($sql); + + /* Then we need the highest value ever */ + $sql = "SELECT max(datalog_id) FROM sys_datalog"; + $res = $app->dbmaster->queryOneRecord($sql); + $maxId = $res['max(datalog_id)']; + + /* Then delete server by server */ + foreach($records as $server) { + $tmp_server_id = intval($server['server_id']); + if($tmp_server_id > 0) { + $sql = "DELETE FROM sys_datalog " . + "WHERE tstamp < " . $tstamp . + " AND server_id = " . intval($server['server_id']) . + " AND datalog_id < " . intval($server['updated']) . + " AND datalog_id < " . intval($maxId); + } +// echo $sql . "\n"; + $app->dbmaster->query($sql); + } +} + +####################################################################################################### +// enforce traffic quota (run only on the "master-server") +####################################################################################################### + +if ($app->dbmaster == $app->db) { + + $current_month = date('Y-m'); + + //* Check website traffic quota + $sql = "SELECT sys_groupid,domain_id,domain,traffic_quota,traffic_quota_lock FROM web_domain WHERE traffic_quota > 0 and type = 'vhost'"; + $records = $app->db->queryAllRecords($sql); + if(is_array($records)) { + foreach($records as $rec) { + + $web_traffic_quota = $rec['traffic_quota']; + $domain = $rec['domain']; + + // get the client + /* + $client_group_id = $rec["sys_groupid"]; + $client = $app->db->queryOneRecord("SELECT limit_traffic_quota,parent_client_id FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); + $reseller = $app->db->queryOneRecord("SELECT limit_traffic_quota FROM client WHERE client_id = ".intval($client['parent_client_id'])); + + $client_traffic_quota = intval($client['limit_traffic_quota']); + $reseller_traffic_quota = intval($reseller['limit_traffic_quota']); + */ + + //* get the traffic + $tmp = $app->db->queryOneRecord("SELECT SUM(traffic_bytes) As total_traffic_bytes FROM web_traffic WHERE traffic_date like '$current_month%' AND hostname = '$domain'"); + $web_traffic = (int)$tmp['total_traffic_bytes']/1024/1024; + + //* Website is over quota, we will disable it + /*if( ($web_traffic_quota > 0 && $web_traffic > $web_traffic_quota) || + ($client_traffic_quota > 0 && $web_traffic > $client_traffic_quota) || + ($reseller_traffic_quota > 0 && $web_traffic > $reseller_traffic_quota)) {*/ + if($web_traffic_quota > 0 && $web_traffic > $web_traffic_quota) { + $app->dbmaster->datalogUpdate('web_domain', "traffic_quota_lock = 'y',active = 'n'", 'domain_id', $rec['domain_id']); + $app->log("Traffic quota for ".$rec['domain_id']." Exceeded. Disabling website.",LOGLEVEL_DEBUG); + } else { + //* unlock the website, if traffic is lower then quota + if($rec['traffic_quota_lock'] == 'y') { + $app->dbmaster->datalogUpdate('web_domain', "traffic_quota_lock = 'n',active = 'y'", 'domain_id', $rec['domain_id']); + $app->log("Traffic quota for ".$rec['domain_id']." ok again. Enabling website.",LOGLEVEL_DEBUG); + } + } + } + } + + +} + + +die("finished.\n"); +?> \ No newline at end of file diff --git a/interface/ispconfig/server/cron_daily.sh b/interface/ispconfig/server/cron_daily.sh new file mode 100644 index 0000000..da0ae3c --- /dev/null +++ b/interface/ispconfig/server/cron_daily.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin + +/usr/bin/php -q /usr/local/ispconfig/server/cron_daily.php \ No newline at end of file diff --git a/interface/ispconfig/server/lib/app.inc.php b/interface/ispconfig/server/lib/app.inc.php new file mode 100644 index 0000000..8cc03bf --- /dev/null +++ b/interface/ispconfig/server/lib/app.inc.php @@ -0,0 +1,181 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class app { + + var $loaded_modules = array(); + var $loaded_plugins = array(); + + function app() { + + global $conf; + + if($conf["start_db"] == true) { + $this->load('db_'.$conf["db_type"]); + $this->db = new db; + if($this->db->linkId) $this->db->closeConn(); + $this->db->dbHost = $conf["db_host"]; + $this->db->dbName = $conf["db_database"]; + $this->db->dbUser = $conf["db_user"]; + $this->db->dbPass = $conf["db_password"]; + + /* + Initialize the connection to the master DB, + if we are in a multiserver setup + */ + + if($conf["dbmaster_host"] != '' && $conf["dbmaster_host"] != $conf["db_host"]) { + $this->dbmaster = new db; + if($this->dbmaster->linkId) $this->dbmaster->closeConn(); + $this->dbmaster->dbHost = $conf["dbmaster_host"]; + $this->dbmaster->dbName = $conf["dbmaster_database"]; + $this->dbmaster->dbUser = $conf["dbmaster_user"]; + $this->dbmaster->dbPass = $conf["dbmaster_password"]; + } else { + $this->dbmaster = $this->db; + } + + + } + + } + + function uses($classes) { + global $conf; + + $cl = explode(',',$classes); + if(is_array($cl)) { + foreach($cl as $classname) { + if(!@is_object($this->$classname)) { + if(is_file($conf['classpath'] . "/".$classname.".inc.php") && !is_link($conf['classpath'] . "/".$classname.".inc.php")) { + include_once($conf['classpath'] . "/".$classname.".inc.php"); + $this->$classname = new $classname; + } + } + } + } + } + + function load($classes) { + + global $conf; + $cl = explode(',',$classes); + if(is_array($cl)) { + foreach($cl as $classname) { + if(is_file($conf['classpath'] . "/".$classname.".inc.php") && !is_link($conf['classpath'] . "/".$classname.".inc.php")) { + include_once($conf['classpath'] . "/".$classname.".inc.php"); + } else { + die('Unable to load: '.$conf['classpath'] . "/".$classname.".inc.php"); + } + } + } + } + + /* + 0 = DEBUG + 1 = WARNING + 2 = ERROR + */ + + function log($msg, $priority = 0) { + + global $conf; + + if($priority >= $conf["log_priority"]) { + //if (is_writable($conf["log_file"])) { + if (!$fp = fopen ($conf["log_file"], "a")) { + die("Unable to open logfile."); + } + switch ($priority) { + case 0: + $priority_txt = "DEBUG"; + break; + case 1: + $priority_txt = "WARNING"; + break; + case 2: + $priority_txt = "ERROR"; + break; + } + + if (!fwrite($fp, date("d.m.Y-H:i")." - ".$priority_txt." - ". $msg."\r\n")) { + die("Unable to write to logfile."); + } + echo date("d.m.Y-H:i")." - ".$priority_txt." - ". $msg."\n"; + fclose($fp); + + // Log to database + if(isset($this->dbmaster)) { + $server_id = $conf['server_id']; + $loglevel = $priority; + $tstamp = time(); + $message = $this->dbmaster->quote($msg); + $datalog_id = (isset($this->modules->current_datalog_id) && $this->modules->current_datalog_id > 0)?$this->modules->current_datalog_id:0; + if($datalog_id > 0) { + $tmp_rec = $this->dbmaster->queryOneRecord("SELECT count(syslog_id) as number FROM sys_log WHERE datalog_id = $datalog_id AND loglevel = ".LOGLEVEL_ERROR); + //* Do not insert duplicate errors into the web log. + if($tmp_rec['number'] == 0) { + $sql = "INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES ('$server_id',$datalog_id,'$loglevel','$tstamp','$message')"; + $this->dbmaster->query($sql); + } + } else { + $sql = "INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES ('$server_id',0,'$loglevel','$tstamp','$message')"; + $this->dbmaster->query($sql); + } + + + } + + //} else { + // die("Unable to write to logfile."); + //} + } // if + } // func + + /* + 0 = DEBUG + 1 = WARNING + 2 = ERROR + */ + + function error($msg) { + $this->log($msg,3); + die($msg); + } + +} + +/* + Initialize application (app) object +*/ + +$app = new app; + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/db_mysql.inc.php b/interface/ispconfig/server/lib/classes/db_mysql.inc.php new file mode 100644 index 0000000..f7ac0f5 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/db_mysql.inc.php @@ -0,0 +1,612 @@ +<?php +/* +Copyright (c) 2005, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + class db + { + var $dbHost = ""; // hostname of the MySQL server + var $dbName = ""; // logical database name on that server + var $dbUser = ""; // database authorized user + var $dbPass = ""; // user's password + var $linkId = 0; // last result of mysql_connect() + var $queryId = 0; // last result of mysql_query() + var $record = array(); // last record fetched + var $autoCommit = 1; // Autocommit Transactions + var $currentRow; // current row number + var $errorNumber = 0; // last error number + var $errorMessage = ""; // last error message + var $errorLocation = "";// last error location + var $show_error_messages = true; + + // constructor + function db() + { + + global $conf; + $this->dbHost = $conf["db_host"]; + $this->dbName = $conf["db_database"]; + $this->dbUser = $conf["db_user"]; + $this->dbPass = $conf["db_password"]; + $this->dbCharset = $conf['db_charset']; + //$this->connect(); + } + + // error handler + function updateError($location) + { + global $app; + $this->errorNumber = mysql_errno($this->linkId); + $this->errorMessage = mysql_error($this->linkId); + $this->errorLocation = $location; + if($this->errorNumber && $this->show_error_messages && method_exists($app,'log')) + { + // echo('<br /><b>'.$this->errorLocation.'</b><br />'.$this->errorMessage); + $app->log($this->errorLocation." ".$this->errorMessage,LOGLEVEL_WARN); + //flush(); + } + } + + function connect() + { + if($this->linkId == 0) + { + $this->linkId = mysql_connect($this->dbHost, $this->dbUser, $this->dbPass); + if(!$this->linkId) + { + $this->updateError('DB::connect()-> mysql_connect'); + return false; + } + $this->queryId = @mysql_query('SET NAMES '.$this->dbCharset, $this->linkId); + $this->queryId = @mysql_query("SET character_set_results = '".$this->dbCharset."', character_set_client = '".$this->dbCharset."', character_set_connection = '".$this->dbCharset."', character_set_database = '".$this->dbCharset."', character_set_server = '".$this->dbCharset."'", $this->linkId); + } + return true; + } + + function query($queryString) + { + if(!$this->connect()) + { + return false; + } + if(!mysql_select_db($this->dbName, $this->linkId)) + { + $this->updateError('DB::connect()-> mysql_select_db'); + return false; + } + $this->queryId = @mysql_query($queryString, $this->linkId); + $this->updateError('DB::query('.$queryString.') -> mysql_query'); + if(!$this->queryId) + { + return false; + } + $this->currentRow = 0; + return $this->queryId; + } + + // returns all records in an array + function queryAllRecords($queryString) + { + if(!$this->query($queryString)) + { + return false; + } + $ret = array(); + while($line = $this->nextRecord()) + { + $ret[] = $line; + } + return $ret; + } + + // returns one record in an array + function queryOneRecord($queryString) + { + if(!$this->query($queryString) || $this->numRows() == 0) + { + return false; + } + return $this->nextRecord(); + } + + // returns the next record in an array + function nextRecord() + { + $this->record = mysql_fetch_assoc($this->queryId); + $this->updateError('DB::nextRecord()-> mysql_fetch_array'); + if(!$this->record || !is_array($this->record)) + { + return false; + } + $this->currentRow++; + return $this->record; + } + + // returns number of rows returned by the last select query + function numRows() + { + return mysql_num_rows($this->queryId); + } + + // returns mySQL insert id + function insertID() + { + return mysql_insert_id($this->linkId); + } + + // Check der variablen + // deprecated, now use quote + function check($formfield) + { + return $this->quote($formfield); + } + + // Check der variablen + function quote($formfield) + { + if(!$this->connect()){ + $this->updateError('WARNING: mysql_connect: Used addslashes instead of mysql_real_escape_string'); + return addslashes($formfield); + } + + return mysql_real_escape_string($formfield, $this->linkId); + } + + // Check der variablen + function unquote($formfield) + { + return stripslashes($formfield); + } + + function toLower($record) { + if(is_array($record)) { + foreach($record as $key => $val) { + $key = strtolower($key); + $out[$key] = $val; + } + } + return $out; + } + + /* + //* These functions are deprecated and will be removed. + function insert($tablename,$form,$debug = 0) + { + if(is_array($form)){ + foreach($form as $key => $value) + { + $sql_key .= "$key, "; + $sql_value .= "'".$this->check($value)."', "; + } + $sql_key = substr($sql_key,0,strlen($sql_key) - 2); + $sql_value = substr($sql_value,0,strlen($sql_value) - 2); + + $sql = "INSERT INTO $tablename (" . $sql_key . ") VALUES (" . $sql_value .")"; + + if($debug == 1) echo "SQL-Statement: ".$sql."<br><br>"; + $this->query($sql); + if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage; + } + } + + function update($tablename,$form,$bedingung,$debug = 0) + { + + if(is_array($form)){ + foreach($form as $key => $value) + { + $insql .= "$key = '".$this->check($value)."', "; + } + $insql = substr($insql,0,strlen($insql) - 2); + $sql = "UPDATE $tablename SET " . $insql . " WHERE $bedingung"; + if($debug == 1) echo "SQL-Statement: ".$sql."<br><br>"; + $this->query($sql); + if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage; + } + } + */ + + public function diffrec($record_old, $record_new) { + $diffrec_full = array(); + $diff_num = 0; + + if(is_array($record_old) && count($record_old) > 0) { + foreach($record_old as $key => $val) { + // if(!isset($record_new[$key]) || $record_new[$key] != $val) { + if($record_new[$key] != $val) { + // Record has changed + $diffrec_full['old'][$key] = $val; + $diffrec_full['new'][$key] = $record_new[$key]; + $diff_num++; + } else { + $diffrec_full['old'][$key] = $val; + $diffrec_full['new'][$key] = $val; + } + } + } elseif(is_array($record_new)) { + foreach($record_new as $key => $val) { + if(isset($record_new[$key]) && @$record_old[$key] != $val) { + // Record has changed + $diffrec_full['new'][$key] = $val; + $diffrec_full['old'][$key] = @$record_old[$key]; + $diff_num++; + } else { + $diffrec_full['new'][$key] = $val; + $diffrec_full['old'][$key] = $val; + } + } + } + + return array('diff_num' => $diff_num, 'diff_rec' => $diffrec_full); + + } + + //** Function to fill the datalog with a full differential record. + public function datalogSave($db_table, $action, $primary_field, $primary_id, $record_old, $record_new) { + global $app,$conf; + + // Insert backticks only for incomplete table names. + if(stristr($db_table,'.')) { + $escape = ''; + } else { + $escape = '`'; + } + + $tmp = $this->diffrec($record_old, $record_new); + $diffrec_full = $tmp['diff_rec']; + $diff_num = $tmp['diff_num']; + unset($tmp); + + // Insert the server_id, if the record has a server_id + $server_id = (isset($record_old["server_id"]) && $record_old["server_id"] > 0)?$record_old["server_id"]:0; + if(isset($record_new["server_id"])) $server_id = $record_new["server_id"]; + + + if($diff_num > 0) { + //print_r($diff_num); + //print_r($diffrec_full); + $diffstr = $app->db->quote(serialize($diffrec_full)); + $username = $app->db->quote($_SESSION["s"]["user"]["username"]); + $dbidx = $primary_field.":".$primary_id; + + if($action == 'INSERT') $action = 'i'; + if($action == 'UPDATE') $action = 'u'; + if($action == 'DELETE') $action = 'd'; + $sql = "INSERT INTO sys_datalog (dbtable,dbidx,server_id,action,tstamp,user,data) VALUES ('".$db_table."','$dbidx','$server_id','$action','".time()."','$username','$diffstr')"; + $app->db->query($sql); + } + + return true; + } + + //** Inserts a record and saves the changes into the datalog + public function datalogInsert($tablename, $insert_data, $index_field) { + global $app; + + $old_rec = array(); + $this->query("INSERT INTO $tablename $insert_data"); + $index_value = $this->insertID(); + $new_rec = $this->queryOneRecord("SELECT * FROM $tablename WHERE $index_field = '$index_value'"); + $this->datalogSave($tablename, 'INSERT', $index_field, $index_value, $old_rec, $new_rec); + + return $index_value; + } + + //** Updates a record and saves the changes into the datalog + public function datalogUpdate($tablename, $update_data, $index_field, $index_value) { + global $app; + + $old_rec = $this->queryOneRecord("SELECT * FROM $tablename WHERE $index_field = '$index_value'"); + $this->query("UPDATE $tablename SET $update_data WHERE $index_field = '$index_value'"); + $new_rec = $this->queryOneRecord("SELECT * FROM $tablename WHERE $index_field = '$index_value'"); + $this->datalogSave($tablename, 'UPDATE', $index_field, $index_value, $old_rec, $new_rec); + + return true; + } + + //** Deletes a record and saves the changes into the datalog + public function datalogDelete($tablename, $index_field, $index_value) { + global $app; + + $old_rec = $this->queryOneRecord("SELECT * FROM $tablename WHERE $index_field = '$index_value'"); + $this->query("DELETE FROM $tablename WHERE $index_field = '$index_value'"); + $new_rec = array(); + $this->datalogSave($tablename, 'DELETE', $index_field, $index_value, $old_rec, $new_rec); + + return true; + } + + public function closeConn() + { + if($this->linkId) + { + mysql_close($this->linkId); + return true; + } else { return false; } + } + + public function freeResult($query) + { + if(mysql_free_result($query)) + { + return true; + } else { + return false; + } + } + + function delete() { + + } + + function Transaction($action) { + //action = begin, commit oder rollback + + } + + /* + $columns = array(action => add | alter | drop + name => Spaltenname + name_new => neuer Spaltenname, nur bei 'alter' belegt + type => 42go-Meta-Type: int16, int32, int64, double, char, varchar, text, blob + typeValue => Wert z.B. bei Varchar + defaultValue => Default Wert + notNull => true | false + autoInc => true | false + option => unique | primary | index) + + + */ + + function createTable($table_name,$columns) { + $index = ""; + $sql = "CREATE TABLE $table_name ("; + foreach($columns as $col){ + $sql .= $col["name"]." ".$this->mapType($col["type"],$col["typeValue"])." "; + + if($col["defaultValue"] != "") $sql .= "DEFAULT '".$col["defaultValue"]."' "; + if($col["notNull"] == true) { + $sql .= "NOT NULL "; + } else { + $sql .= "NULL "; + } + if($col["autoInc"] == true) $sql .= "auto_increment "; + $sql.= ","; + // key Definitionen + if($col["option"] == "primary") $index .= "PRIMARY KEY (".$col["name"]."),"; + if($col["option"] == "index") $index .= "INDEX (".$col["name"]."),"; + if($col["option"] == "unique") $index .= "UNIQUE (".$col["name"]."),"; + } + $sql .= $index; + $sql = substr($sql,0,-1); + $sql .= ")"; + + $this->query($sql); + return true; + } + + /* + $columns = array(action => add | alter | drop + name => Spaltenname + name_new => neuer Spaltenname, nur bei 'alter' belegt + type => 42go-Meta-Type: int16, int32, int64, double, char, varchar, text, blob + typeValue => Wert z.B. bei Varchar + defaultValue => Default Wert + notNull => true | false + autoInc => true | false + option => unique | primary | index) + + + */ + function alterTable($table_name,$columns) { + $index = ""; + $sql = "ALTER TABLE $table_name "; + foreach($columns as $col){ + if($col["action"] == 'add') { + $sql .= "ADD ".$col["name"]." ".$this->mapType($col["type"],$col["typeValue"])." "; + } elseif ($col["action"] == 'alter') { + $sql .= "CHANGE ".$col["name"]." ".$col["name_new"]." ".$this->mapType($col["type"],$col["typeValue"])." "; + } elseif ($col["action"] == 'drop') { + $sql .= "DROP ".$col["name"]." "; + } + if($col["action"] != 'drop') { + if($col["defaultValue"] != "") $sql .= "DEFAULT '".$col["defaultValue"]."' "; + if($col["notNull"] == true) { + $sql .= "NOT NULL "; + } else { + $sql .= "NULL "; + } + if($col["autoInc"] == true) $sql .= "auto_increment "; + $sql.= ","; + // key Definitionen + if($col["option"] == "primary") $index .= "PRIMARY KEY (".$col["name"]."),"; + if($col["option"] == "index") $index .= "INDEX (".$col["name"]."),"; + if($col["option"] == "unique") $index .= "UNIQUE (".$col["name"]."),"; + } + } + $sql .= $index; + $sql = substr($sql,0,-1); + + //die($sql); + $this->query($sql); + return true; + } + + function dropTable($table_name) { + $this->check($table_name); + $sql = "DROP TABLE '". $table_name."'"; + return $this->query($sql); + } + + // gibt Array mit Tabellennamen zur�ck + function getTables($database_name = '') { + + if($database_name == '') $database_name = $this->dbName; + $result = mysql_list_tables($database_name); + for ($i = 0; $i < mysql_num_rows($result); $i++) { + $tb_names[$i] = mysql_tablename($result, $i); + } + return $tb_names; + } + + // gibt Feldinformationen zur Tabelle zur�ck + /* + $columns = array(action => add | alter | drop + name => Spaltenname + name_new => neuer Spaltenname, nur bei 'alter' belegt + type => 42go-Meta-Type: int16, int32, int64, double, char, varchar, text, blob + typeValue => Wert z.B. bei Varchar + defaultValue => Default Wert + notNull => true | false + autoInc => true | false + option => unique | primary | index) + + + */ + + function tableInfo($table_name) { + + global $go_api,$go_info; + // Tabellenfelder einlesen + + if($rows = $go_api->db->queryAllRecords("SHOW FIELDS FROM ".$table_name)){ + foreach($rows as $row) { + $name = $row[0]; + $default = $row[4]; + $key = $row[3]; + $extra = $row[5]; + $isnull = $row[2]; + $type = $row[1]; + + + $column = array(); + + $column["name"] = $name; + //$column["type"] = $type; + $column["defaultValue"] = $default; + if(stristr($key,"PRI")) $column["option"] = "primary"; + if(stristr($isnull,"YES")) { + $column["notNull"] = false; + } else { + $column["notNull"] = true; + } + if($extra == 'auto_increment') $column["autoInc"] = true; + + + // Type in Metatype umsetzen + + if(stristr($type,"int(")) $metaType = 'int32'; + if(stristr($type,"bigint")) $metaType = 'int64'; + if(stristr($type,"char")) { + $metaType = 'char'; + $tmp_typeValue = explode('(',$type); + $column["typeValue"] = substr($tmp_typeValue[1],0,-1); + } + if(stristr($type,"varchar")) { + $metaType = 'varchar'; + $tmp_typeValue = explode('(',$type); + $column["typeValue"] = substr($tmp_typeValue[1],0,-1); + } + if(stristr($type,"text")) $metaType = 'text'; + if(stristr($type,"double")) $metaType = 'double'; + if(stristr($type,"blob")) $metaType = 'blob'; + + + $column["type"] = $metaType; + + $columns[] = $column; + } + return $columns; + } else { + return false; + } + + + //$this->createTable('tester',$columns); + + /* + $result = mysql_list_fields($go_info["server"]["db_name"],$table_name); + $fields = mysql_num_fields ($result); + $i = 0; + $table = mysql_field_table ($result, $i); + while ($i < $fields) { + $name = mysql_field_name ($result, $i); + $type = mysql_field_type ($result, $i); + $len = mysql_field_len ($result, $i); + $flags = mysql_field_flags ($result, $i); + print_r($flags); + + $columns = array(name => $name, + type => "", + defaultValue => "", + isnull => 1, + option => ""); + $returnvar[] = $columns; + + $i++; + } + */ + + + + } + + function mapType($metaType,$typeValue) { + global $go_api; + $metaType = strtolower($metaType); + switch ($metaType) { + case 'int16': + return 'smallint'; + break; + case 'int32': + return 'int'; + break; + case 'int64': + return 'bigint'; + break; + case 'double': + return 'double'; + break; + case 'char': + return 'char'; + break; + case 'varchar': + if($typeValue < 1) die("Datenbank Fehler: F�r diesen Datentyp ist eine L�ngenangabe notwendig."); + return 'varchar('.$typeValue.')'; + break; + case 'text': + return 'text'; + break; + case 'blob': + return 'blob'; + break; + } + } + + } + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/file.inc.php b/interface/ispconfig/server/lib/classes/file.inc.php new file mode 100644 index 0000000..9fd28b8 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/file.inc.php @@ -0,0 +1,319 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class file{ + + function rf($file){ + global $app; + clearstatcache(); + if(!$fp = fopen ($file, "rb")){ + $app->log("WARNING: could not open file ".$file, 2); + return false; + } else { + if(filesize($file) > 0){ + $content = fread($fp, filesize($file)); + } else { + $content = ""; + } + fclose($fp); + return $content; + } + } + + function wf($file, $content){ + global $app; + $this->mkdirs(dirname($file)); + if(!$fp = fopen ($file, "wb")){ + $app->log("WARNING: could not open file ".$file, 2); + return false; + } else { + fwrite($fp,$content); + fclose($fp); + return true; + } + } + + function af($file, $content){ + global $app; + $this->mkdirs(dirname($file)); + if(!$fp = fopen ($file, "ab")){ + $app->log("WARNING: could not open file ".$file, 2); + return false; + } else { + fwrite($fp,$content); + fclose($fp); + return true; + } + } + + function no_comments($file, $comment = '#'){ + $content = $this->unix_nl($this->rf($file)); + $lines = explode("\n", $content); + if(!empty($lines)){ + foreach($lines as $line){ + if(strstr($line, $comment)){ + $pos = strpos($line, $comment); + if($pos != 0){ + $new_lines[] = substr($line,0,$pos); + } else { + $new_lines[] = ""; + } + } else { + $new_lines[] = $line; + } + } + } + if(is_array($new_lines)){ + $content_without_comments = implode("\n", $new_lines); + $new_lines = NULL; + return $content_without_comments; + } else { + return ""; + } + } + + function manual_entries($file, $separator = '#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####'){ + if(is_file($file)){ + $content = $this->rf($file); + $parts = explode($separator, $content); + $manual = "\n".trim($parts[1]); + return $manual; + } else { + return ""; + } + } + + function remove_blank_lines($input, $file = 1){ + //Leerzeilen l�schen + if($file){ + $content = $this->unix_nl($this->rf($input)); + } else { + $content = $input; + } + $lines = explode("\n", $content); + if(!empty($lines)){ + foreach($lines as $line){ + if(trim($line) != "") $new_lines[] = $line; + } + } + if(is_array($new_lines)){ + $content = implode("\n", $new_lines); + } else { + $content = ""; + } + if($file){ + $this->wf($input, $content); + } else { + return $content; + } + } + + function unix_nl($input){ + $output = str_replace("\r\n", "\n", $input); + $output = str_replace("\r", "\n", $output); + return $output; + } + + function fileowner($file){ + $owner_id = fileowner($file); + clearstatcache(); + return $owner_id; + } + + function mkdirs($strPath, $mode = '0755'){ + // Verzeichnisse rekursiv erzeugen + if(is_dir($strPath)) return true; + $pStrPath = dirname($strPath); + if(!$this->mkdirs($pStrPath, $mode)) return false; + $old_umask = umask(0); + $ret_val = mkdir($strPath, octdec($mode)); + umask($old_umask); + return $ret_val; + } + + function find_includes($file){ + ob_start(); + $httpd_root = system('httpd -V | awk -F"\"" \'$1==" -D HTTPD_ROOT="{print $2}\''); + ob_end_clean(); + clearstatcache(); + if(is_file($file) && filesize($file) > 0){ + $includes[] = $file; + $inhalt = $this->unix_nl($this->no_comments($file)); + $lines = explode("\n", $inhalt); + if(!empty($lines)){ + foreach($lines as $line){ + if(stristr($line, "include ")){ + $include_file = str_replace("\n", "", trim(shell_exec("echo \"$line\" | awk '{print \$2}'"))); + if(substr($include_file,0,1) != "/"){ + $include_file = $httpd_root."/".$include_file; + } + if(is_file($include_file)){ + if($further_includes = $this->find_includes($include_file)){ + $includes = array_merge($includes, $further_includes); + } + } else { + if(strstr($include_file, "*")){ + $more_files = explode("\n", shell_exec("ls -l $include_file | awk '{print \$9}'")); + if(!empty($more_files)){ + foreach($more_files as $more_file){ + if(is_file($more_file)){ + if($further_includes = $this->find_includes($more_file)){ + $includes = array_merge($includes, $further_includes); + } + } + } + } + } + } + } + } + } + } + if(is_array($includes)){ + $includes = array_unique($includes); + return $includes; + } else { + return false; + } + } + + function edit_dist($var, $val){ + global $$var; + $files = array("/root/ispconfig/dist.inc.php"); + foreach($files as $file){ + if(is_file($file)){ + $file_content = $this->unix_nl($this->rf($file)); + $lines = explode("\n", $file_content); + for($i=0;$i<sizeof($lines);$i++){ + $parts = explode("=", $lines[$i]); + if($parts[0] == $var || $parts[0] == '$'.$var.' '){ + $parts[1] = str_replace($$var, $val, $parts[1]); + } + $lines[$i] = implode("=", $parts); + } + $file_content = implode("\n", $lines); + $this->wf($file, $file_content); + } + } + } + + function getDirectoryListing($dirname, $sortorder = "a", $show_subdirs = 0, $show_subdirfiles = 0, $exts = "", $ext_save = 1){ + // This function will return an array with filenames based on the criteria you can set in the variables + // @sortorder : a for ascending (the standard) or d for descending (you can use the "r" for reverse as well, works the same) + // @show_subdirs : 0 for NO, 1 for YES - meaning it will show the names of subdirectories if there are any + // Logically subdirnames will not be checked for the required extentions + // @show_subdirfiles : 0 for NO, 1 for YES - meaning it will show files from the subdirs + // Files from subdirs will be prefixed with the subdir name and checked for the required extentions. + // @exts can be either a string or an array, if not passed to the function, then the default will be a check for common image files + // If exts is set to "all" then all extentions are allowed + // @ext_save : 1 for YES, 0 for NO - meaning it will filter out system files or not (such as .htaccess) + + $dirname = realpath($dirname); + if (!$exts || empty($exts) || $exts == "") { + $exts = array("jpg", "gif", "jpeg", "png"); + } + if ($handle = opendir($dirname)) { + $filelist = array(); + while (false !== ($file = readdir($handle))) { + + // Filter out higher directory references + if ($file != "." && $file != "..") { + // Only look at directories or files, filter out symbolic links + if ( filetype ($dirname."/".$file) != "link") { + // If it's a file, check against valid extentions and add to the list + if ( filetype ($dirname."/".$file) == "file" ) { + if ($this->checkFileExtension($file, $exts, $ext_save)) { + $filelist[] = $file; + } + } + // If it's a directory and either subdirs should be listed or files from subdirs add relevant names to the list + else if ( filetype ($dirname."/".$file) == "dir" && ($show_subdirs == 1 || $show_subdirfiles == 1)) { + if ($show_subdirs == 1) { + $filelist[] = $file; + } + if ($show_subdirfiles == 1) { + $subdirname = $file; + $subdirfilelist = $this->getDirectoryListing($dirname."/".$subdirname."/", $sortorder, $show_subdirs, $show_subdirfiles, $exts, $ext_save); + for ($i = 0 ; $i < count($subdirfilelist) ; $i++) { + $subdirfilelist[$i] = $subdirname."/".$subdirfilelist[$i]; + } + $filelist = array_merge($filelist, $subdirfilelist); + } + + } + + } + } + } + closedir($handle); + + // Sort the results + if (count($filelist) > 1) { + natcasesort($filelist); + if ($sortorder == "d" || $sortorder == "r" ) { + $filelist = array_reverse($filelist, TRUE); + } + } + return $filelist; + } + else { + return false; + } + } + + function checkFileExtension($filename, $exts, $ext_save = 1){ + $passed = FALSE; + if ($ext_save == 1) { + if (preg_match("/^\./", $filename)) { + return $passed; + } + } + if ($exts == "all") { + $passed = TRUE; + return $passed; + } + if (is_string($exts)) { + if (preg_match("/\.". $exts ."$/i", $filename)) { + $passed = TRUE; + return $passed; + } + } else if (is_array($exts)) { + foreach ($exts as $theExt) { + if (preg_match("/\.". $theExt ."$/i", $filename)) { + $passed = TRUE; + return $passed; + } + } + } + return $passed; + } + +} +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/getconf.inc.php b/interface/ispconfig/server/lib/classes/getconf.inc.php new file mode 100644 index 0000000..96e2c9b --- /dev/null +++ b/interface/ispconfig/server/lib/classes/getconf.inc.php @@ -0,0 +1,65 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class getconf { + + var $config; + + function get_server_config($server_id, $section = '') { + global $app; + + if(!is_array($this->config[$server_id])) { + $app->uses('ini_parser'); + $server_id = intval($server_id); + $server = $app->db->queryOneRecord("SELECT config FROM server WHERE server_id = $server_id"); + $this->config[$server_id] = $app->ini_parser->parse_ini_string(stripslashes($server["config"])); + } + + if($section == '') { + return $this->config[$server_id]; + } else { + return $this->config[$server_id][$section]; + } + } + + public function get_global_config($section = '') { + global $app; + + if(!is_array($this->config['global'])) { + $app->uses('ini_parser'); + $tmp = $app->db->queryOneRecord("SELECT config FROM sys_ini WHERE sysini_id = 1"); + $this->config['global'] = $app->ini_parser->parse_ini_string(stripslashes($tmp["config"])); + } + return ($section == '') ? $this->config['global'] : $this->config['global'][$section]; + } + +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/ini_parser.inc.php b/interface/ispconfig/server/lib/classes/ini_parser.inc.php new file mode 100644 index 0000000..0e9dc91 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/ini_parser.inc.php @@ -0,0 +1,69 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class ini_parser { + + var $config; + + function parse_ini_string($ini) { + $ini = str_replace("\r\n","\n",$ini); + $lines = explode("\n",$ini); + + foreach($lines as $line) { + + if($line != '') { + $line = trim($line); + if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) { + $section = strtolower($matches[1]); + } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) { + $item = trim($matches[1]); + $this->config[$section][$item] = trim($matches[2]); + } + } + } + return $this->config; + } + + + + function get_ini_string($file) { + $content = ''; + foreach($this->config as $section => $data) { + $content .= "[$section]\n"; + foreach($data as $item => $value) { + if($value != '') $content .= "$item=$value\n"; + } + } + return $content; + } + +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/mod_mail_base.inc.php b/interface/ispconfig/server/lib/classes/mod_mail_base.inc.php new file mode 100644 index 0000000..f989e2f --- /dev/null +++ b/interface/ispconfig/server/lib/classes/mod_mail_base.inc.php @@ -0,0 +1,76 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class mail_base { + + var $current_record = array(); + + function write_config() { + + + + } + + /* + Domain Alias + */ + + function domain_add($domain) { + + } + + function domain_update($domain_old, $domain_new) { + + } + + function domain_delete($domain) { + + } + + /* + Domain Alias + */ + + function domain_alias_add($domain, $destination) { + + } + + function domain_alias_update($domain_old, $domain_new) { + + } + + function domain_alias_delete($domain) { + + } + + +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/modules.inc.php b/interface/ispconfig/server/lib/classes/modules.inc.php new file mode 100644 index 0000000..f5e1420 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/modules.inc.php @@ -0,0 +1,250 @@ +<?php + +/* +Copyright (c) 2007 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class modules { + + var $notification_hooks = array(); + var $current_datalog_id = 0; + var $debug = false; + + /* + This function is called to load the modules from the mods-enabled or the mods-core folder + */ + function loadModules($type) { + global $app, $conf; + + $subPath = 'mods-enabled'; + if ($type == 'core') $subPath = 'mods-core'; + + $modules_dir = $conf["rootpath"].$conf["fs_div"].$subPath.$conf["fs_div"]; + if (is_dir($modules_dir)) { + if ($dh = opendir($modules_dir)) { + while (($file = readdir($dh)) !== false) { + if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { + $module_name = substr($file,0,-8); + include_once($modules_dir.$file); + if($this->debug) $app->log("Loading Module: $module_name",LOGLEVEL_DEBUG); + $app->loaded_modules[$module_name] = new $module_name; + $app->loaded_modules[$module_name]->onLoad(); + } + } + } + } else { + $app->log("Modules directory missing: $modules_dir",LOGLEVEL_ERROR); + } + + } + + /* + This function is called by the modules to register for a specific + table change notification + */ + + function registerTableHook($table_name,$module_name,$function_name) { + global $app; + $this->notification_hooks[$table_name][] = array('module' => $module_name, 'function' => $function_name); + if($this->debug) $app->log("Registered TableHook '$table_name' in module '$module_name' for processing function '$function_name'",LOGLEVEL_DEBUG); + } + + /* + This function goes through all new records in the + sys_datalog table and and calls the function in the + modules that hooked on to the table change. + */ + + function processDatalog() { + global $app,$conf; + + //* If its a multiserver setup + if($app->db->dbHost != $app->dbmaster->dbHost) { + if($conf["mirror_server_id"] > 0) { + $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = ".$conf["server_id"]." OR server_id = ".$conf["mirror_server_id"]." OR server_id = 0) ORDER BY datalog_id"; + } else { + $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = ".$conf["server_id"]." OR server_id = 0) ORDER BY datalog_id"; + } + + $records = $app->dbmaster->queryAllRecords($sql); + foreach($records as $d) { + + //** encode data to utf-8 and unserialize it + if(!$data = unserialize(stripslashes($d["data"]))) { + $data = unserialize($d["data"]); + } + //** Decode data back to locale + foreach($data['old'] as $key => $val) { + $data['old'][$key] = utf8_decode($val); + } + foreach($data['new'] as $key => $val) { + $data['new'][$key] = utf8_decode($val); + } + + $replication_error = false; + + $this->current_datalog_id = $d["datalog_id"]; + + if(count($data['new']) > 0) { + if($d["action"] == 'i' || $d["action"] == 'u') { + $idx = explode(":",$d["dbidx"]); + $tmp_sql1 = ''; + $tmp_sql2 = ''; + foreach($data['new'] as $fieldname => $val) { + $tmp_sql1 .= "`$fieldname`,"; + $tmp_sql2 .= "'".$app->db->quote($val)."',"; + } + $tmp_sql1 = substr($tmp_sql1,0,-1); + $tmp_sql2 = substr($tmp_sql2,0,-1); + //$tmp_sql1 .= "$idx[0]"; + //$tmp_sql2 .= "$idx[1]"; + $sql = "REPLACE INTO $d[dbtable] ($tmp_sql1) VALUES ($tmp_sql2)"; + $app->db->errorNumber = 0; + $app->db->errorMessage = ''; + $app->db->query($sql); + if($app->db->errorNumber > 0) { + $replication_error = true; + $app->log("Replication failed. Error: (" . $d[dbtable] . ") in mysql server: (".$app->db->dbHost.") " . $app->db->errorMessage . " # SQL: " . $sql,LOGLEVEL_ERROR); + } + $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG); + } + /* + if($d["action"] == 'u') { + $sql = "UPDATE $d[dbtable] SET "; + foreach($data['new'] as $fieldname => $val) { + $sql .= "`$fieldname` = '$val',"; + } + $sql = substr($sql,0,-1); + $idx = explode(":",$d["dbidx"]); + $sql .= " WHERE $idx[0] = $idx[1]"; + $app->db->query($sql); + if($app->db->errorNumber > 0) { + $replication_error = true; + $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage . " # SQL: " . $sql,LOGLEVEL_ERROR); + } + $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG); + } + */ + if($d["action"] == 'd') { + $idx = explode(":",$d["dbidx"]); + $sql = "DELETE FROM $d[dbtable] "; + $sql .= " WHERE $idx[0] = $idx[1]"; + $app->db->query($sql); + if($app->db->errorNumber > 0) { + $replication_error = true; + $app->log("Replication failed. Error: (" . $d[dbtable] . ") " . $app->db->errorMessage . " # SQL: " . $sql,LOGLEVEL_ERROR); + } + $app->log("Replicated from master: ".$sql,LOGLEVEL_DEBUG); + } + + + if($replication_error == false) { + if(is_array($data['old']) || is_array($data['new'])) { + $this->raiseTableHook($d["dbtable"],$d["action"],$data); + } else { + $app->log("Data array was empty for datalog_id ".$d["datalog_id"],LOGLEVEL_WARN); + } + //$this->raiseTableHook($d["dbtable"],$d["action"],$data); + //$app->dbmaster->query("DELETE FROM sys_datalog WHERE datalog_id = ".$d["datalog_id"]); + //$app->log("Deleting sys_datalog ID ".$d["datalog_id"],LOGLEVEL_DEBUG); + $app->dbmaster->query("UPDATE server SET updated = ".$d["datalog_id"]." WHERE server_id = ".$conf["server_id"]); + $app->log("Processed datalog_id ".$d["datalog_id"],LOGLEVEL_DEBUG); + } else { + $app->log("Error in Replication, changes were not processed.",LOGLEVEL_ERROR); + /* + * If there is any error in processing the datalog we can't continue, because + * we do not know if the newer actions require this (old) one. + */ + return; + } + } else { + $app->log("Datalog does not contain any changes for this record ".$d["datalog_id"],LOGLEVEL_DEBUG); + } + } + + //* if we have a single server setup + } else { + $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = ".$conf["server_id"]." OR server_id = 0) ORDER BY datalog_id"; + $records = $app->db->queryAllRecords($sql); + foreach($records as $d) { + + //** encode data to utf-8 to be able to unserialize it and then unserialize it + if(!$data = unserialize(stripslashes($d["data"]))) { + $data = unserialize($d["data"]); + } + //** decode data back to current locale + foreach($data['old'] as $key => $val) { + $data['old'][$key] = utf8_decode($val); + } + foreach($data['new'] as $key => $val) { + $data['new'][$key] = utf8_decode($val); + } + + $this->current_datalog_id = $d["datalog_id"]; + if(is_array($data['old']) || is_array($data['new'])) { + $this->raiseTableHook($d["dbtable"],$d["action"],$data); + } else { + $app->log("Data array was empty for datalog_id ".$d["datalog_id"],LOGLEVEL_WARN); + } + //$app->db->query("DELETE FROM sys_datalog WHERE datalog_id = ".$rec["datalog_id"]); + //$app->log("Deleting sys_datalog ID ".$rec["datalog_id"],LOGLEVEL_DEBUG); + $app->db->query("UPDATE server SET updated = ".$d["datalog_id"]." WHERE server_id = ".$conf["server_id"]); + $app->log("Processed datalog_id ".$d["datalog_id"],LOGLEVEL_DEBUG); + } + } + + + + + + } + + function raiseTableHook($table_name,$action,$data) { + global $app; + + // Get the hooks for this table + $hooks = (isset($this->notification_hooks[$table_name]))?$this->notification_hooks[$table_name]:''; + if($this->debug) $app->log("Raised TableHook for table: '$table_name'",LOGLEVEL_DEBUG); + + if(is_array($hooks)) { + foreach($hooks as $hook) { + $module_name = $hook["module"]; + $function_name = $hook["function"]; + // Claa the processing function of the module + if($this->debug) $app->log("Call function '$function_name' in module '$module_name' raised by TableHook '$table_name'.",LOGLEVEL_DEBUG); + call_user_method($function_name,$app->loaded_modules[$module_name],$table_name,$action,$data); + unset($module_name); + unset($function_name); + } + } + unset($hook); + unset($hooks); + } + +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/plugins.inc.php b/interface/ispconfig/server/lib/classes/plugins.inc.php new file mode 100644 index 0000000..f1e0417 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/plugins.inc.php @@ -0,0 +1,130 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class plugins { + + var $available_events = array(); + var $subscribed_events = array(); + var $debug = false; + + /* + This function is called to load the plugins from the plugins-enabled or the plugins-core folder + */ + + function loadPlugins($type) { + global $app,$conf; + + $subPath = 'plugins-enabled'; + if ($type == 'core') $subPath = 'plugins-core'; + + $plugins_dir = $conf["rootpath"].$conf["fs_div"].$subPath.$conf["fs_div"]; + $tmp_plugins = array(); + + if (is_dir($plugins_dir)) { + if ($dh = opendir($plugins_dir)) { + //** Go trough all files in the plugin dir + while (($file = readdir($dh)) !== false) { + if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { + $plugin_name = substr($file,0,-8); + $tmp_plugins[$plugin_name] = $file; + } + } + //** sort the plugins by name + ksort($tmp_plugins); + + //** load the plugins + foreach($tmp_plugins as $plugin_name => $file) { + include_once($plugins_dir.$file); + if($this->debug) $app->log("Loading Plugin: $plugin_name",LOGLEVEL_DEBUG); + $app->loaded_plugins[$plugin_name] = new $plugin_name; + $app->loaded_plugins[$plugin_name]->onLoad(); + } + } else { + $app->log("Unable to open the plugin directory: $plugins_dir",LOGLEVEL_ERROR); + } + } else { + $app->log("Plugin directory missing: $plugins_dir",LOGLEVEL_ERROR); + } + + } + + /* + This function is used by the modules to announce which events they provide + */ + + function announceEvents($module_name,$events) { + global $app; + foreach($events as $event_name) { + $this->available_events[$event_name] = $module_name; + if($this->debug) $app->log("Announced event: $event_name",LOGLEVEL_DEBUG); + } + } + + + /* + This function is called by the plugin to register for an event + */ + + function registerEvent($event_name,$plugin_name,$function_name) { + global $app; + if(!isset($this->available_events[$event_name])) { + $app->log("Unable to register the function '$function_name' in the plugin '$plugin_name' for event '$event_name'",LOGLEVEL_DEBUG); + } else { + $this->subscribed_events[$event_name][] = array('plugin' => $plugin_name, 'function' => $function_name); + if($this->debug) $app->log("Registered the function '$function_name' in the plugin '$plugin_name' for event '$event_name'.",LOGLEVEL_DEBUG); + } + } + + + function raiseEvent($event_name,$data) { + global $app; + + // Get the subscriptions for this event + $events = (isset($this->subscribed_events[$event_name]))?$this->subscribed_events[$event_name]:''; + if($this->debug) $app->log("Raised event: '$event_name'",LOGLEVEL_DEBUG); + + if(is_array($events)) { + foreach($events as $event) { + $plugin_name = $event["plugin"]; + $function_name = $event["function"]; + // Call the processing function of the plugin + $app->log("Call function '$function_name' in plugin '$plugin_name' raised by event '$event_name'.",LOGLEVEL_DEBUG); + call_user_method($function_name,$app->loaded_plugins[$plugin_name],$event_name,$data); + unset($plugin_name); + unset($function_name); + } + } + unset($event); + unset($events); + } + +} + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/services.inc.php b/interface/ispconfig/server/lib/classes/services.inc.php new file mode 100644 index 0000000..2441409 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/services.inc.php @@ -0,0 +1,80 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class services { + + var $registered_services = array(); + var $delayed_restarts = array(); + var $debug = false; + + // This function adds a request for restarting + // a service at the end of the configuration run. + function restartServiceDelayed($service_name,$action = 'restart') { + global $app; + if(is_array($this->registered_services[$service_name])) { + $this->delayed_restarts[$service_name] = $action; + } else { + $app->log("Unable to add a delayed restart for '$service_name'. Service '$service_name' is not registered.",LOGLEVEL_WARNING); + } + + } + + // This function restarts a service when the function is called + function restartService($service_name,$action = 'restart') { + global $app; + + if(is_array($this->registered_services[$service_name])) { + $module_name = $this->registered_services[$service_name]["module"]; + $function_name = $this->registered_services[$service_name]["function"]; + $app->log("Call function '$function_name' in module '$module_name'.",LOGLEVEL_DEBUG); + call_user_method($function_name,$app->loaded_modules[$module_name],$action); + } else { + $app->log("Unable to restart $service_name. Service $service_name is not registered.",LOGLEVEL_WARNING); + } + + } + + // This function is used to register callback functions for services that can be restarted + function registerService($service_name,$module_name, $function_name) { + global $app; + $this->registered_services[$service_name] = array('module' => $module_name, 'function' => $function_name); + if($this->debug) $app->log("Registered Service '$service_name' in module '$module_name' for processing function '$function_name'",LOGLEVEL_DEBUG); + } + + // This function is called at the end of the server script to restart services. + function processDelayedActions() { + global $app; + foreach($this->delayed_restarts as $service_name => $action) { + $this->restartService($service_name,$action); + } + } + +} +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/system.inc.php b/interface/ispconfig/server/lib/classes/system.inc.php new file mode 100644 index 0000000..407289f --- /dev/null +++ b/interface/ispconfig/server/lib/classes/system.inc.php @@ -0,0 +1,1232 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class system{ + + var $FILE = "/root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php"; + var $server_id; + var $server_conf; + var $data; + + /** + * Construct for this class + * + * @return system + */ + public function system(){ + global $go_info; + $this->server_id = $go_info["isp"]["server_id"]; + $this->server_conf = $go_info["isp"]["server_conf"]; + $this->server_conf["passwd_datei"] = '/etc/passwd'; + $this->server_conf["shadow_datei"] = '/etc/shadow'; + $this->server_conf["group_datei"] = '/etc/group'; + } + + /** + * Get the hostname from the server + * + * @return string + */ + public function hostname(){ + $dist = $this->server_conf["dist"]; + + ob_start(); + passthru("hostname"); + $hostname = ob_get_contents(); + ob_end_clean(); + $hostname = trim($hostname); + ob_start(); + if(!strstr($dist, "freebsd")){ + passthru("dnsdomainname"); + } else { + passthru("domainname"); + } + $domainname = ob_get_contents(); + ob_end_clean(); + $domainname = trim($domainname); + if($domainname != ""){ + if(!strstr($hostname, $domainname)) $hostname .= ".".$domainname; + } + return $hostname; + } + + /** + * Add an user to the system + * + */ + public function adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort = '*'){ + global $app; + if($this->is_user($user_username)){ + return false; + } else { + if(trim($user_username) != '') { + $user_datei = $this->server_conf["passwd_datei"]; + $shadow_datei = $this->server_conf["shadow_datei"]; + $shell = realpath($shell); + if(trim($passwort) == "") $passwort = '*'; + $new_user = "\n$user_username:x:$uid:$gid:$username:$homedir:$shell\n"; + $app->log->msg("USER: $new_user"); + $app->file->af($user_datei, $new_user); + if($shadow_datei == "/etc/shadow"){ + $datum = time(); + $tage = floor($datum/86400); + $new_passwd = "\n$user_username:$passwort:$tage:0:99999:7:::\n"; + } else { + $new_passwd = "\n$user_username:$passwort:$uid:$gid::0:0:$username:$homedir:$shell\n"; + } + $app->file->af($shadow_datei, $new_passwd); + // TB: leere Zeilen entfernen + $app->file->remove_blank_lines($shadow_datei); + $app->file->remove_blank_lines($user_datei); + // TB: user Sortierung deaktiviert + //$this->order_users_groups(); + if($shadow_datei != "/etc/shadow"){ + $app->file->af($shadow_datei, "\n"); + // TB: leere Zeilen entfernen + $app->file->remove_blank_lines($shadow_datei); + $app->log->caselog("pwd_mkdb $shadow_datei &> /dev/null", $this->FILE, __LINE__); + } + return true; + } + } + } + + /** + * Update users when someone edit it + * + */ + function updateuser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort = '*'){ + //* First delete the users + $this->deluser($user_username); + //* Add the user again + $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); + } + + /** + * Lock the user + * + */ + function deactivateuser($user_username){ + $passwort = str_rot13($this->getpasswd($user_username)); + $user_attr = $this->get_user_attributes($user_username); + $uid = $user_attr["uid"]; + $gid = $user_attr["gid"]; + $username = $user_attr["name"]; + $homedir = $user_attr["homedir"]; + $shell = "/dev/null"; + $this->deluser($user_username); + $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); + } + /** + * Delete a user from the system + * + */ + function deluser($user_username){ + global $app; + if($this->is_user($user_username)){ + $user_datei = $this->server_conf["passwd_datei"]; + $shadow_datei = $this->server_conf["shadow_datei"]; + $users = $app->file->rf($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + $num_lines = sizeof($lines); + for($i=0;$i<$num_lines;$i++){ + if(trim($lines[$i]) != ""){ + list($f1,) = explode(":", $lines[$i]); + if($f1 != $user_username) $new_lines[] = $lines[$i]; + } + } + $new_users = implode("\n", $new_lines); + $app->file->wf($user_datei, $new_users); + unset($new_lines); + unset($lines); + unset($new_users); + } + $app->file->remove_blank_lines($user_datei); + + $passwds = $app->file->rf($shadow_datei); + $lines = explode("\n", $passwds); + if(is_array($lines)){ + $num_lines = sizeof($lines); + for($i=0;$i<$num_lines;$i++){ + if(trim($lines[$i]) != ""){ + list($f1,) = explode(":", $lines[$i]); + if($f1 != $user_username) $new_lines[] = $lines[$i]; + } + } + $new_passwds = implode("\n", $new_lines); + $app->file->wf($shadow_datei, $new_passwds); + unset($new_lines); + unset($lines); + unset($new_passwds); + } + $app->file->remove_blank_lines($shadow_datei); + + $group_file = $app->file->rf($this->server_conf["group_datei"]); + $group_file_lines = explode("\n", $group_file); + foreach($group_file_lines as $group_file_line){ + if(trim($group_file_line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $group_file_line); + $group_users = explode(",", str_replace(" ", "", $f4)); + if(in_array($user_username, $group_users)){ + $g_users = array(); + foreach($group_users as $group_user){ + if($group_user != $user_username) $g_users[] = $group_user; + } + $f4 = implode(",", $g_users); + } + $new_group_file[] = $f1.":".$f2.":".$f3.":".$f4; + } + } + $new_group_file = implode("\n", $new_group_file); + $app->file->wf($this->server_conf["group_datei"], $new_group_file); + // TB: auskommentiert + //$this->order_users_groups(); + + if($shadow_datei != "/etc/shadow"){ + $app->file->af($shadow_datei, "\n"); + $app->log->caselog("pwd_mkdb $shadow_datei &> /dev/null", $this->FILE, __LINE__); + } + return true; + } else { + return false; + } + } + + /** + * Add a usergroup to the system + * + */ + function addgroup($group, $gid, $members = ''){ + global $app; + if($this->is_group($group)){ + return false; + } else { + $group_datei = $this->server_conf["group_datei"]; + $shadow_datei = $this->server_conf["shadow_datei"]; + $new_group = "\n$group:x:$gid:$members\n"; + $app->file->af($group_datei, $new_group); + + // TB: auskommentiert + //$this->order_users_groups(); + if($shadow_datei != "/etc/shadow"){ + $app->log->caselog("pwd_mkdb $shadow_datei &> /dev/null", $this->FILE, __LINE__); + } + return true; + } + } + + /** + * Update usersgroup in way to delete and add it again + * + */ + function updategroup($group, $gid, $members = ''){ + $this->delgroup($group); + $this->addgroup($group, $gid, $members); + } + + /** + * Delete a usergroup from the system + * + */ + function delgroup($group){ + global $app; + if($this->is_group($group)){ + $group_datei = $this->server_conf["group_datei"]; + $shadow_datei = $this->server_conf["shadow_datei"]; + $groups = $app->file->rf($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + $num_lines = sizeof($lines); + for($i=0;$i<$num_lines;$i++){ + if(trim($lines[$i]) != ""){ + list($f1,) = explode(":", $lines[$i]); + if($f1 != $group) $new_lines[] = $lines[$i]; + } + } + $new_groups = implode("\n", $new_lines); + $app->file->wf($group_datei, $new_groups); + unset($new_lines); + unset($lines); + unset($new_groups); + } + // TB: auskommentiert + //$this->order_users_groups(); + if($shadow_datei != "/etc/shadow"){ + $app->log->caselog("pwd_mkdb $shadow_datei &> /dev/null", $this->FILE, __LINE__); + } + return true; + } else { + return false; + } + } + /** + * Order usergroups + * + */ + function order_users_groups(){ + global $app; + $user_datei = $this->server_conf["passwd_datei"]; + $shadow_datei = $this->server_conf["shadow_datei"]; + $group_datei = $this->server_conf["group_datei"]; + + $groups = $app->file->no_comments($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $line); + $arr[$f3] = $line; + } + } + } + ksort($arr); + reset($arr); + if($shadow_datei != "/etc/shadow"){ + $app->file->wf($group_datei, $app->file->remove_blank_lines(implode("\n", $arr), 0)."\n"); + }else { + $app->file->wf($group_datei, $app->file->remove_blank_lines(implode("\n", $arr), 0)); + } + unset($arr); + + $users = $app->file->no_comments($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3,) = explode(":", $line); + if($f1 != "toor"){ + $arr[$f3] = $line; + } else { + $arr[70000] = $line; + } + } + } + } + ksort($arr); + reset($arr); + $app->file->wf($user_datei, $app->file->remove_blank_lines(implode("\n", $arr), 0)); + unset($arr); + + $passwds = $app->file->no_comments($shadow_datei); + $lines = explode("\n", $passwds); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3,) = explode(":", $line); + if($f1 != "toor"){ + $uid = $this->getuid($f1); + if(!is_bool($uid)) $arr[$uid] = $line; + } else { + $arr[70000] = $line; + } + } + } + } + ksort($arr); + reset($arr); + $app->file->wf($shadow_datei, $app->file->remove_blank_lines(implode("\n", $arr), 0)); + unset($arr); + } + + /** + * Find a user / group id + * + */ + function find_uid_gid($min, $max){ + global $app; + if($min < $max && $min >= 0 && $max >= 0 && $min <= 65536 && $max <= 65536 && is_int($min) && is_int($max)){ + for($i=$min;$i<=$max;$i++){ + $uid_arr[$i] = $gid_arr[$i] = 1; + } + $user_datei = $this->server_conf["passwd_datei"]; + $group_datei = $this->server_conf["group_datei"]; + + $users = $app->file->no_comments($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4, $f5, $f6, $f7) = explode(":", $line); + if($f3 >= $min && $f3 <= $max) unset($uid_arr[$f3]); + } + } + if(!empty($uid_arr)){ + foreach($uid_arr as $key => $val){ + $uids[] = $key; + } + $min_uid = min($uids); + unset($uid_arr); + } else { + return false; + } + } + + $groups = $app->file->no_comments($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $line); + if($f3 >= $min && $f3 <= $max) unset($gid_arr[$f3]); + } + } + if(!empty($gid_arr)){ + foreach($gid_arr as $key => $val){ + $gids[] = $key; + } + $min_gid = min($gids); + unset($gid_arr); + } else { + return false; + } + } + + $result = array_intersect($uids, $gids); + $new_id = (max($result)); + unset($uids); + unset($gids); + unset($result); + if($new_id <= $max){ + return $new_id; + } else { + return false; + } + } else { + return false; + } + } + + /** + * Check if the users is really a user into the system + * + */ + function is_user($user){ + global $app; + $user_datei = $this->server_conf["passwd_datei"]; + $users = $app->file->no_comments($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4, $f5, $f6, $f7) = explode(":", $line); + if($f1 == $user) return true; + } + } + } + return false; + } + + /** + * Check if the group is on this system + * + */ + function is_group($group){ + global $app; + $group_datei = $this->server_conf["group_datei"]; + $groups = $app->file->no_comments($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $line); + if($f1 == $group) return true; + } + } + } + return false; + } + + /* + // Alternative implementation of the is_group function. Should be faster then the old one To be tested. + function is_group($group) { + $groupfile = '/etc/group'; + if(is_file($groupfile)) { + $handle = fopen ($groupfile, "r"); + while (!feof($handle)) { + $line = trim(fgets($handle, 4096)); + if($line != ""){ + $parts = explode(":", $line); + if($parts[0] == $group) { + fclose ($handle); + return true; + } + } + } + fclose ($handle); + } + return false; + } + */ + + function root_group(){ + global $app; + $group_datei = $this->server_conf["group_datei"]; + $groups = $app->file->no_comments($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $line); + if($f3 == 0) return $f1; + } + } + } + return false; + } + + /** + * Get the groups of an user + * + */ + function get_user_groups($username){ + global $app; + $user_groups = array(); + $group_datei = $this->server_conf["group_datei"]; + $groups = $app->file->no_comments($group_datei); + $lines = explode("\n", $groups); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $line); + if(intval($f3) < intval($this->server_conf["groupid_von"]) && trim($f1) != 'users'){ + $tmp_group_users = explode(',', str_replace(' ', '', $f4)); + if(in_array($username, $tmp_group_users) && trim($f1) != '') $user_groups[] = $f1; + unset($tmp_group_users); + } + } + } + } + if(!empty($user_groups)) return implode(',', $user_groups); + return ''; + } + + /** + * Get a user password + * + */ + function getpasswd($user){ + global $app; + if($this->is_user($user)){ + $shadow_datei = $this->server_conf["shadow_datei"]; + $passwds = $app->file->no_comments($shadow_datei); + $lines = explode("\n", $passwds); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2,) = explode(":", $line); + if($f1 == $user) return $f2; + } + } + } + } else { + return false; + } + } + + /** + * Get the user id from an user + * + */ + function getuid($user){ + global $app; + if($this->is_user($user)){ + $user_datei = $this->server_conf["passwd_datei"]; + $users = $app->file->no_comments($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3,) = explode(":", $line); + if($f1 == $user) return $f3; + } + } + } + } else { + return false; + } + } + + /** + * Get all information from a user + * + */ + function get_user_attributes($user){ + global $app; + if($this->is_user($user)){ + $user_datei = $this->server_conf["passwd_datei"]; + $users = $app->file->no_comments($user_datei); + $lines = explode("\n", $users); + if(is_array($lines)){ + foreach($lines as $line){ + if(trim($line) != ""){ + list($f1, $f2, $f3, $f4, $f5, $f6, $f7) = explode(":", $line); + if($f1 == $user){ + $user_attr["username"] = $f1; + $user_attr["x"] = $f2; + $user_attr["uid"] = $f3; + $user_attr["gid"] = $f4; + $user_attr["name"] = $f5; + $user_attr["homedir"] = $f6; + $user_attr["shell"] = $f7; + return $user_attr; + } + } + } + } + } else { + return false; + } + } + + /** + * Edit the owner of a file + * + */ + function chown($file, $owner, $group = ''){ + $owner_change = @chown($file, $owner); + if($group != ""){ + $group_change = @chgrp($file, $group); + } else { + $group_change = 1; + } + if($owner_change && $group_change){ + return true; + } else { + return false; + } + } + + /** + * Add an user to a specific group + * + */ + function add_user_to_group($group, $user = 'admispconfig'){ + global $app; + $group_file = $app->file->rf($this->server_conf["group_datei"]); + $group_file_lines = explode("\n", $group_file); + foreach($group_file_lines as $group_file_line){ + list($group_name,$group_x,$group_id,$group_users) = explode(":",$group_file_line); + if($group_name == $group){ + $group_users = explode(",", str_replace(" ", "", $group_users)); + if(!in_array($user, $group_users)){ + $group_users[] = $user; + } + $group_users = implode(",", $group_users); + if(substr($group_users,0,1) == ",") $group_users = substr($group_users,1); + $group_file_line = $group_name.":".$group_x.":".$group_id.":".$group_users; + } + $new_group_file[] = $group_file_line; + } + $new_group_file = implode("\n", $new_group_file); + $app->file->wf($this->server_conf["group_datei"], $new_group_file); + $app->file->remove_blank_lines($this->server_conf["group_datei"]); + if($this->server_conf["shadow_datei"] != "/etc/shadow"){ + $app->log->caselog("pwd_mkdb ".$this->server_conf["shadow_datei"]." &> /dev/null", $this->FILE, __LINE__); + } + } + + function usermod($user, $groups){ + global $app; + if($this->is_user($user)){ + $groups = explode(",", str_replace(" ", "", $groups)); + $group_file = $app->file->rf($this->server_conf["group_datei"]); + $group_file_lines = explode("\n", $group_file); + foreach($group_file_lines as $group_file_line){ + if(trim($group_file_line) != ""){ + list($f1, $f2, $f3, $f4) = explode(":", $group_file_line); + $group_users = explode(",", str_replace(" ", "", $f4)); + if(!in_array($f1, $groups)){ + if(in_array($user, $group_users)){ + $g_users = array(); + foreach($group_users as $group_user){ + if($group_user != $user) $g_users[] = $group_user; + } + $f4 = implode(",", $g_users); + } + } else { + if(!in_array($user, $group_users)){ + if(trim($group_users[0]) == "") unset($group_users); + $group_users[] = $user; + } + $f4 = implode(",", $group_users); + } + $new_group_file[] = $f1.":".$f2.":".$f3.":".$f4; + } + } + $new_group_file = implode("\n", $new_group_file); + $app->file->wf($this->server_conf["group_datei"], $new_group_file); + $app->file->remove_blank_lines($this->server_conf["group_datei"]); + if($this->server_conf["shadow_datei"] != "/etc/shadow"){ + $app->log->caselog("pwd_mkdb ".$this->server_conf["shadow_datei"]." &> /dev/null", $this->FILE, __LINE__); + } + return true; + } else { + return false; + } + } + + /**boot autostart etc + * + */ + function rc_edit($service, $rl, $action){ + // $action = "on|off"; + global $app; + $dist_init_scripts = $app->system->server_conf["dist_init_scripts"]; + $dist_runlevel = $app->system->server_conf["dist_runlevel"]; + $dist = $app->system->server_conf["dist"]; + if(trim($dist_runlevel) == ""){ // falls es keine runlevel gibt (FreeBSD) + if($action == "on"){ + @symlink($dist_init_scripts."/".$service, $dist_init_scripts."/".$service.".sh"); + } + if($action == "off"){ + if(is_link($dist_init_scripts."/".$service.".sh")){ + unlink($dist_init_scripts."/".$service.".sh"); + } else { + exec("mv -f ".$dist_init_scripts."/".$service.".sh ".$dist_init_scripts."/".$service." &> /dev/null"); + } + } + } else { // Linux + if(substr($dist, 0,4) == 'suse'){ + if($action == "on"){ + exec("chkconfig --add $service &> /dev/null"); + } + if($action == "off"){ + exec("chkconfig --del $service &> /dev/null"); + } + } else { + $runlevels = explode(",", $rl); + foreach($runlevels as $runlevel){ + $runlevel = trim($runlevel); + if($runlevel != "" && is_dir($dist_runlevel."/rc".$runlevel.".d")){ + $handle=opendir($dist_runlevel."/rc".$runlevel.".d"); + while($file = readdir($handle)){ + if($file != "." && $file != ".."){ + $target = @readlink($dist_runlevel."/rc".$runlevel.".d/".$file); + if(strstr($file, $service) && strstr($target, $service) && substr($file,0,1) == "S") $ln_arr[$runlevel][] = $dist_runlevel."/rc".$runlevel.".d/".$file; + } + } + closedir($handle); + } + if($action == "on"){ + if(!is_array($ln_arr[$runlevel])) @symlink($dist_init_scripts."/".$service, $dist_runlevel."/rc".$runlevel.".d/S99".$service); + } + if($action == "off"){ + if(is_array($ln_arr[$runlevel])){ + foreach($ln_arr[$runlevel] as $link){ + unlink($link); + } + } + } + } + } + } + } + + /** + * Filter information from the commands + * + */ + function grep($content, $string, $params = ''){ + global $app; + // params: i, v, w + $content = $app->file->unix_nl($content); + $lines = explode("\n", $content); + foreach($lines as $line){ + if(!strstr($params, 'w')){ + if(strstr($params, 'i')){ + if(strstr($params, 'v')){ + if(!stristr($line, $string)) $find[] = $line; + } else { + if(stristr($line, $string)) $find[] = $line; + } + } else { + if(strstr($params, 'v')){ + if(!strstr($line, $string)) $find[] = $line; + } else { + if(strstr($line, $string)) $find[] = $line; + } + } + } else { + if(strstr($params, 'i')){ + if(strstr($params, 'v')){ + if(!$app->string->is_word($string, $line, 'i')) $find[] = $line; + } else { + if($app->string->is_word($string, $line, 'i')) $find[] = $line; + } + } else { + if(strstr($params, 'v')){ + if(!$app->string->is_word($string, $line)) $find[] = $line; + } else { + if($app->string->is_word($string, $line)) $find[] = $line; + } + } + } + } + if(is_array($find)){ + $ret_val = implode("\n", $find); + if(substr($ret_val,-1) != "\n") $ret_val .= "\n"; + $find = NULL; + return $ret_val; + } else { + return false; + } + } + + /** + * Strip content from fields + * + */ + function cut($content, $field, $delimiter = ':'){ + global $app; + $content = $app->file->unix_nl($content); + $lines = explode("\n", $content); + foreach($lines as $line){ + $elms = explode($delimiter, $line); + $find[] = $elms[($field-1)]; + } + if(is_array($find)){ + $ret_val = implode("\n", $find); + if(substr($ret_val,-1) != "\n") $ret_val .= "\n"; + $find = NULL; + return $ret_val; + } else { + return false; + } + } + + /** + * Get the content off a file + * + */ + function cat($file){ + global $app; + return $app->file->rf($file); + } + + /** + * Control services to restart etc + * + */ + function daemon_init($daemon, $action){ + //* $action = start|stop|restart|reload + global $app; + $dist = $this->server_conf["dist"]; + $dist_init_scripts = $this->server_conf["dist_init_scripts"]; + if(!strstr($dist, "freebsd")){ + $app->log->caselog("$dist_init_scripts/$daemon $action &> /dev/null", $this->FILE, __LINE__); + } else { + if(is_file($dist_init_scripts."/".$daemon.".sh") || is_link($dist_init_scripts."/".$daemon.".sh")){ + if($action == "start" || $action == "stop"){ + $app->log->caselog($dist_init_scripts."/".$daemon.".sh ".$action." &> /dev/null", $this->FILE, __LINE__); + } else { + $app->log->caselog($dist_init_scripts."/".$daemon.".sh stop &> /dev/null", $this->FILE, __LINE__); + sleep(3); + $app->log->caselog($dist_init_scripts."/".$daemon.".sh start &> /dev/null", $this->FILE, __LINE__); + } + } else { + if(is_file($dist_init_scripts."/".$daemon) || is_link($dist_init_scripts."/".$daemon)){ + if($action == "start" || $action == "stop"){ + $app->log->caselog($dist_init_scripts."/".$daemon." ".$action." &> /dev/null", $this->FILE, __LINE__); + } else { + $app->log->caselog($dist_init_scripts."/".$daemon." stop &> /dev/null", $this->FILE, __LINE__); + sleep(3); + $app->log->caselog($dist_init_scripts."/".$daemon." start &> /dev/null", $this->FILE, __LINE__); + } + } else { + if(is_file("/etc/rc.d/".$daemon) || is_link("/etc/rc.d/".$daemon)){ + if($action == "start" || $action == "stop"){ + $app->log->caselog("/etc/rc.d/".$daemon." ".$action." &> /dev/null", $this->FILE, __LINE__); + } else { + $app->log->caselog("/etc/rc.d/".$daemon." stop &> /dev/null", $this->FILE, __LINE__); + sleep(3); + $app->log->caselog("/etc/rc.d/".$daemon." start &> /dev/null", $this->FILE, __LINE__); + } + } + } + } + } + } + + function netmask($netmask){ + list($f1,$f2,$f3,$f4) = explode(".", trim($netmask)); + $bin = str_pad(decbin($f1),8,"0",STR_PAD_LEFT).str_pad(decbin($f2),8,"0",STR_PAD_LEFT).str_pad(decbin($f3),8,"0",STR_PAD_LEFT).str_pad(decbin($f4),8,"0",STR_PAD_LEFT); + $parts = explode("0", $bin); + $bin = str_pad($parts[0], 32, "0", STR_PAD_RIGHT); + $bin = wordwrap($bin, 8, ".", 1); + list($f1,$f2,$f3,$f4) = explode(".", trim($bin)); + return bindec($f1).".".bindec($f2).".".bindec($f3).".".bindec($f4); + } + + function binary_netmask($netmask){ + list($f1,$f2,$f3,$f4) = explode(".", trim($netmask)); + $bin = str_pad(decbin($f1),8,"0",STR_PAD_LEFT).str_pad(decbin($f2),8,"0",STR_PAD_LEFT).str_pad(decbin($f3),8,"0",STR_PAD_LEFT).str_pad(decbin($f4),8,"0",STR_PAD_LEFT); + $parts = explode("0", $bin); + return substr_count($parts[0], "1"); + } + + function network($ip, $netmask){ + $netmask = $this->netmask($netmask); + list($f1,$f2,$f3,$f4) = explode(".", $netmask); + $netmask_bin = str_pad(decbin($f1),8,"0",STR_PAD_LEFT).str_pad(decbin($f2),8,"0",STR_PAD_LEFT).str_pad(decbin($f3),8,"0",STR_PAD_LEFT).str_pad(decbin($f4),8,"0",STR_PAD_LEFT); + list($f1,$f2,$f3,$f4) = explode(".", $ip); + $ip_bin = str_pad(decbin($f1),8,"0",STR_PAD_LEFT).str_pad(decbin($f2),8,"0",STR_PAD_LEFT).str_pad(decbin($f3),8,"0",STR_PAD_LEFT).str_pad(decbin($f4),8,"0",STR_PAD_LEFT); + for($i=0;$i<32;$i++){ + $network_bin .= substr($netmask_bin,$i,1) * substr($ip_bin,$i,1); + } + $network_bin = wordwrap($network_bin, 8, ".", 1); + list($f1,$f2,$f3,$f4) = explode(".", trim($network_bin)); + return bindec($f1).".".bindec($f2).".".bindec($f3).".".bindec($f4); + } + + /** + * Make a broadcast address from an IP number in combination with netmask + * + */ + function broadcast($ip, $netmask){ + $netmask = $this->netmask($netmask); + $binary_netmask = $this->binary_netmask($netmask); + list($f1,$f2,$f3,$f4) = explode(".", $ip); + $ip_bin = str_pad(decbin($f1),8,"0",STR_PAD_LEFT).str_pad(decbin($f2),8,"0",STR_PAD_LEFT).str_pad(decbin($f3),8,"0",STR_PAD_LEFT).str_pad(decbin($f4),8,"0",STR_PAD_LEFT); + $broadcast_bin = str_pad(substr($ip_bin, 0, $binary_netmask),32,"1",STR_PAD_RIGHT); + $broadcast_bin = wordwrap($broadcast_bin, 8, ".", 1); + list($f1,$f2,$f3,$f4) = explode(".", trim($broadcast_bin)); + return bindec($f1).".".bindec($f2).".".bindec($f3).".".bindec($f4); + } + + /** + * Get the network address information + * + */ + function network_info(){ + $dist = $this->server_conf["dist"]; + ob_start(); + passthru("ifconfig"); + $output = ob_get_contents(); + ob_end_clean(); + $lines = explode("\n", $output); + foreach($lines as $line){ + $elms = explode(" ", $line); + if(trim($elms[0]) != "" && substr($elms[0],0,1) != "\t"){ + $elms[0] = trim($elms[0]); + if(strstr($dist, "freebsd")) $elms[0] = substr($elms[0],0,-1); + $interfaces[] = $elms[0]; + } + } + if(!empty($interfaces)){ + foreach($interfaces as $interface){ + ob_start(); + if(!strstr($dist, "freebsd")){ + passthru("ifconfig ".$interface." | grep -iw 'inet' | cut -f2 -d: | cut -f1 -d' '"); + } else { + passthru("ifconfig ".$interface." | grep -iw 'inet' | grep -iv 'inet6' | cut -f2 -d' '"); + } + $output = trim(ob_get_contents()); + ob_end_clean(); + if($output != ""){ + $ifconfig["INTERFACE"][$interface] = $output; + $ifconfig["IP"][$output] = $interface; + } + } + if(!empty($ifconfig)){ + return $ifconfig; + } else { + return false; + } + } else { + return false; + } + } + + /** + * Configure the network settings from the system + * + */ + function network_config(){ + $ifconfig = $this->network_info(); + if($ifconfig){ + $main_interface = $ifconfig["IP"][$this->server_conf["server_ip"]]; + if(strstr($main_interface, ":")){ + $parts = explode(":", $main_interface); + $main_interface = trim($parts[0]); + } + if($main_interface != ""){ + $ips = $this->data["isp_server_ip"]; + if(!empty($ips)){ + foreach($ips as $ip){ + if(!isset($ifconfig["IP"][$ip["server_ip"]])){ + $to_set[] = $ip["server_ip"]; + } else { + unset($ifconfig["IP"][$ip["server_ip"]]); + } + } + if(!empty($ifconfig["IP"])){ + foreach($ifconfig["IP"] as $key => $val){ + if(!strstr($val, "lo") && !strstr($val, "lp") && strstr($val, $main_interface)){ + exec("ifconfig ".$val." down &> /dev/null"); + unset($ifconfig["INTERFACE"][$val]); + } + } + } + if(!empty($to_set)){ + foreach($to_set as $to){ + $i = 0; + while($i >= 0){ + if(isset($ifconfig["INTERFACE"][$main_interface.":".$i])){ + $i++; + } else { + $new_interface = $main_interface.":".$i; + $i = -1; + } + } + exec("ifconfig ".$new_interface." ".$to." netmask ".$this->server_conf["server_netzmaske"]." up &> /dev/null"); + $ifconfig["INTERFACE"][$new_interface] = $to; + } + } + } + } + } + } + + function quota_dirs(){ + global $app; + $content = $app->file->unix_nl($app->file->no_comments("/etc/fstab")); + $lines = explode("\n", $content); + foreach($lines as $line){ + $line = trim($line); + if($line != ""){ + $elms = explode("\t", $line); + foreach($elms as $elm){ + if(trim($elm) != "") $f[] = $elm; + } + if(!empty($f) && stristr($f[3], "userquota") && stristr($f[3], "groupquota")){ + $q_dirs[] = trim($f[1]); + } + unset($f); + } + } + if(!empty($q_dirs)){ + return $q_dirs; + } else { + return false; + } + } + + /** + * Scan the trash for virusses infection + * + */ + function make_trashscan(){ + global $app; + //trashscan erstellen + // Template �ffnen + $app->tpl->clear_all(); + $app->tpl->define( array(table => "trashscan.master")); + + if(!isset($this->server_conf["virusadmin"]) || trim($this->server_conf["virusadmin"]) == "") $this->server_conf["virusadmin"] = "admispconfig@localhost"; + if(substr($this->server_conf["virusadmin"],0,1) == "#"){ + $notify = "no"; + } else { + $notify = "yes"; + } + + // Variablen zuweisen + $app->tpl->assign( array(VIRUSADMIN => $this->server_conf["virusadmin"], + NOTIFICATION => $notify)); + + $app->tpl->parse(TABLE, table); + + $trashscan_text = $app->tpl->fetch(); + + $datei = "/home/admispconfig/ispconfig/tools/clamav/bin/trashscan"; + $app->file->wf($datei, $trashscan_text); + + exec("chown admispconfig:admispconfig $datei &> /dev/null"); + exec("chmod 755 $datei"); + } + + /** + * Get the current time + * + */ + function get_time(){ + $addr = "http://www.ispconfig.org/"; + $timeout = 1; + $url_parts = parse_url($addr); + $path = $url_parts["path"]; + $port = 80; + $urlHandle = @fsockopen($url_parts["host"], $port, $errno, $errstr, $timeout); + if ($urlHandle){ + socket_set_timeout($urlHandle, $timeout); + + $urlString = "GET $path HTTP/1.0\r\nHost: ".$url_parts["host"]."\r\nConnection: Keep-Alive\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n"; + if ($user) $urlString .= "Authorization: Basic ".base64_encode("$user:$pass")."\r\n"; + $urlString .= "\r\n"; + fputs($urlHandle, $urlString); + + $month["Jan"] = "01"; + $month["Feb"] = "02"; + $month["Mar"] = "03"; + $month["Apr"] = "04"; + $month["May"] = "05"; + $month["Jun"] = "06"; + $month["Jul"] = "07"; + $month["Aug"] = "08"; + $month["Sep"] = "09"; + $month["Oct"] = "10"; + $month["Nov"] = "11"; + $month["Dec"] = "12"; + $c = 0; + $l = 0; + $startzeit = time(); + while(!feof($urlHandle) && $c < 2 && $l == 0){ + $line = trim(fgets($urlHandle,128)); + $response .= $line; + $c = time() - $startzeit; + if($line == "" || substr($line, 0, 5) == "Date:") $l += 1; // nur den Header auslesen + if(substr($line, 0, 5) == "Date:"){ + $parts = explode(" ", $line); + $tag = $parts[2]; + $monat = $month[$parts[3]]; + $jahr = $parts[4]; + list($stunde, $minute, $sekunde) = explode(":", $parts[5]); + $timestamp = mktime($stunde,$minute,$sekunde,$monat,$tag,$jahr); + } + } + + @fclose($urlHandle); + + return $timestamp; + } else { + @fclose($urlHandle); + return false; + } + } + + function replaceLine($filename,$search_pattern,$new_line,$strict = 0,$append = 1) { + $lines = @file($filename); + $out = ''; + $found = 0; + if(is_array($lines)) { + foreach($lines as $line) { + if($strict == 0) { + if(stristr($line,$search_pattern)) { + $out .= $new_line."\n"; + $found = 1; + } else { + $out .= $line; + } + } else { + if(trim($line) == $search_pattern) { + $out .= $new_line."\n"; + $found = 1; + } else { + $out .= $line; + } + } + } + } + + if($found == 0) { + //* add \n if the last line does not end with \n or \r + if(substr($out,-1) != "\n" && substr($out,-1) != "\r") $out .= "\n"; + //* add the new line at the end of the file + if($append == 1) $out .= $new_line."\n"; + } + file_put_contents($filename,$out); + } + + function removeLine($filename,$search_pattern,$strict = 0) { + if($lines = @file($filename)) { + $out = ''; + foreach($lines as $line) { + if($strict == 0) { + if(!stristr($line,$search_pattern)) { + $out .= $line; + } + } else { + if(!trim($line) == $search_pattern) { + $out .= $line; + } + } + } + file_put_contents($filename,$out); + } + } + + function maildirmake($maildir_path, $user = '', $subfolder = '') { + + global $app; + + if($subfolder != '') { + $dir = escapeshellarg($maildir_path.'/.'.$subfolder); + $dir_cur = escapeshellarg($maildir_path.'/.'.$subfolder.'/cur'); + $dir_new = escapeshellarg($maildir_path.'/.'.$subfolder.'/new'); + $dir_tmp = escapeshellarg($maildir_path.'/.'.$subfolder.'/tmp'); + } else { + $dir = escapeshellarg($maildir_path); + $dir_cur = escapeshellarg($maildir_path.'/cur'); + $dir_new = escapeshellarg($maildir_path.'/new'); + $dir_tmp = escapeshellarg($maildir_path.'/tmp'); + } + + exec("mkdir -p $dir_cur $dir_new $dir_tmp"); + exec("chmod 0700 $dir $dir_cur $dir_new $dir_tmp"); + + if($user != '' && $this->is_user($user) && $user != 'root') { + $user = escapeshellarg($user); + // I assume that the name of the (vmail group) is the same as the name of the mail user in ispconfig 3 + $group = $user; + exec("chown $user:$group $dir $dir_cur $dir_new $dir_tmp"); + } + + //* Add the subfolder to the subscriptions and courierimapsubscribed files + if($subfolder != '') { + // Courier + if(!is_file($maildir_path.'/courierimapsubscribed')) { + $tmp_file = escapeshellarg($maildir_path.'/courierimapsubscribed'); + exec("touch $tmp_file && chown vmail:vmail $tmp_file"); + } + $this->replaceLine($maildir_path.'/courierimapsubscribed','INBOX.'.$subfolder,'INBOX.'.$subfolder,1,1); + + // Dovecot + if(!is_file($maildir_path.'/subscriptions')) { + $tmp_file = escapeshellarg($maildir_path.'/subscriptions'); + exec("touch $tmp_file && chown vmail:vmail $tmp_file"); + } + $this->replaceLine($maildir_path.'/subscriptions',$subfolder,$subfolder,1,1); + } + + $app->log('Created Maildir '.$maildir_path.' with subfolder: '.$subfolder,LOGLEVEL_DEBUG); + + } + +} +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/tpl.inc.php b/interface/ispconfig/server/lib/classes/tpl.inc.php new file mode 100644 index 0000000..aaa017e --- /dev/null +++ b/interface/ispconfig/server/lib/classes/tpl.inc.php @@ -0,0 +1,1501 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP version 4.0 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 2002 Active Fish Group | +// +----------------------------------------------------------------------+ +// | Authors: Kelvin Jones <kelvin@kelvinjones.co.uk> | +// +----------------------------------------------------------------------+ +// +// $Id: class.tpl.inc.php,v 1.1 2003/07/08 12:31:10 platinum Exp $ + +// check to avoid multiple including of class +if (!defined('vlibTemplateClassLoaded')) { + define('vlibTemplateClassLoaded', 1); + + include_once ($conf['classpath'].'/tpl_error.inc.php'); + include_once ($conf['classpath'].'/tpl_ini.inc.php'); + + /** + * vlibTemplate is a class used to seperate PHP and HTML. + * For instructions on how to use vlibTemplate, see the + * vlibTemplate.html file, located in the 'docs' directory. + * + * @since 07/03/2002 + * @author Kelvin Jones <kelvin@kelvinjones.co.uk> + * @package vLIB + * @access public + * @see vlibTemplate.html + */ + + class tpl { + + /*-----------------------------------------------------------------------------\ + | ATTENTION | + | Do not touch the following variables. vlibTemplate will not work otherwise. | + \-----------------------------------------------------------------------------*/ + + var $OPTIONS = array( + 'MAX_INCLUDES' => 10, + 'TEMPLATE_DIR' => null, + 'GLOBAL_VARS' => null, + 'GLOBAL_CONTEXT_VARS' => null, + 'LOOP_CONTEXT_VARS' => null, + 'SET_LOOP_VAR' => null, + 'DEFAULT_ESCAPE' => null, + 'STRICT' => null, + 'CASELESS' => null, + 'UNKNOWNS' => null, + 'TIME_PARSE' => null, + 'ENABLE_PHPINCLUDE' => null, + 'INCLUDE_PATHS' => array(), + 'CACHE_DIRECTORY' => null, + 'CACHE_LIFETIME' => null, + 'CACHE_EXTENSION' => null + ); + + /** open and close tags used for escaping */ + var $ESCAPE_TAGS = array( + 'html' => array('open' => 'htmlspecialchars(' + ,'close'=> ', ENT_QUOTES)'), + 'url' => array('open' => 'urlencode(' + ,'close'=> ')'), + 'rawurl'=>array('open' => 'rawurlencode(' + ,'close'=> ')'), + 'sq' => array('open' => 'addcslashes(' + ,'close'=> ", \"'\")"), + 'dq' => array('open' => 'addcslashes(' + ,'close'=> ", '\"')"), + '1' => array('open' => 'htmlspecialchars(' + ,'close'=> ', ENT_QUOTES)'), + '0' => array('open' => '' + ,'close'=> ''), + 'none' => array('open' => '' + ,'close'=> ''), + 'hex' => array('open' => '$this->_escape_hex(', + 'close'=> ', false)'), + 'hexentity' => array('open' => '$this->_escape_hex(', + 'close'=> ', true)') + ); + + /** open and close tags used for formatting */ + var $FORMAT_TAGS = array( + 'strtoupper' => array('open' => 'strtoupper(', + 'close'=> ')'), + 'uc' => array('open' => 'strtoupper(', + 'close'=> ')'), + 'strtolower' => array('open' => 'strtolower(', + 'close'=> ')'), + 'lc' => array('open' => 'strtolower(', + 'close'=> ')'), + 'ucfirst' => array('open' => 'ucfirst(', + 'close'=> ')'), + 'lcucfirst' => array('open' => 'ucfirst(strtolower(', + 'close'=> '))'), + 'ucwords' => array('open' => 'ucwords(', + 'close'=> ')'), + 'lcucwords' => array('open' => 'ucwords(strtolower(', + 'close'=> '))') + ); + + /** operators allowed when using extended TMPL_IF syntax */ + var $allowed_if_ops = array('==','!=','<>','<','>','<=','>='); + + /** dbs allowed by vlibTemplate::setDbLoop(). */ + var $allowed_loop_dbs = array('MYSQL','POSTGRESQL','INFORMIX','INTERBASE','INGRES', + 'MSSQL','MSQL','OCI8','ORACLE','OVRIMOS','SYBASE'); + + /** root directory of vlibTemplate automagically filled in */ + var $VLIBTEMPLATE_ROOT = null; + + /** contains current directory used when doing recursive include */ + var $_currentincludedir = array(); + + /** current depth of includes */ + var $_includedepth = 0; + + /** full path to tmpl file */ + var $_tmplfilename = null; + + /** file data before it's parsed */ + var $_tmplfile = null; + + /** parsed version of file, ready for eval()ing */ + var $_tmplfilep = null; + + /** eval()ed version ready for printing or whatever */ + var $_tmploutput = null; + + /** array for variables to be kept */ + var $_vars = array(); + + /** array where loop variables are kept */ + var $_arrvars = array(); + + /** array which holds the current namespace during parse */ + var $_namespace = array(); + + /** variable is set to true once the template is parsed, to save re-parsing everything */ + var $_parsed = false; + + /** array holds all unknowns vars */ + var $_unknowns = array(); + + /** microtime when template parsing began */ + var $_firstparsetime = null; + + /** total time taken to parse template */ + var $_totalparsetime = null; + + /** name of current loop being passed in */ + var $_currloopname = null; + + /** rows with the above loop */ + var $_currloop = array(); + + /** define vars to avoid warnings */ + var $_debug = null; + var $_cache = null; + + /** array which holds the dynamic Includes */ + var $_dyninclude = array(); + /*-----------------------------------------------------------------------------\ + | public functions | + \-----------------------------------------------------------------------------*/ + + + /** + * FUNCTION: newTemplate + * + * Usually called by the class constructor. + * Stores the filename in $this->_tmplfilename. + * Raises an error if the template file is not found. + * + * @param string $tmplfile full path to template file + * @return boolean true + * @access public + */ + function newTemplate ($tmplfile) { + if (!$tfile = $this->_fileSearch($tmplfile)) vlibTemplateError::raiseError('VT_ERROR_NOFILE',KILL,$tmplfile); + + // make sure that any parsing vars are cleared for the new template + $this->_tmplfile = null; + $this->_tmplfilep = null; + $this->_tmploutput = null; + $this->_parsed = false; + $this->_unknowns = array(); + $this->_firstparsetime = null; + $this->_totalparsetime = null; + + // reset debug module + if ($this->_debug) $this->_debugReset(); + + $this->_tmplfilename = $tfile; + return true; + } + + /** + * FUNCTION: setVar + * + * Sets variables to be used by the template + * If $k is an array, then it will treat it as an associative array + * using the keys as variable names and the values as variable values. + * + * @param mixed $k key to define variable name + * @param mixed $v variable to assign to $k + * @return boolean true/false + * @access public + */ + function setVar ($k,$v=null) { + if (is_array($k)) { + foreach($k as $key => $value){ + $key = ($this->OPTIONS['CASELESS']) ? strtolower(trim($key)) : trim($key); + if (preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $key) && $value !== null ) { + $this->_vars[$key] = $value; + } + } + } + else { + if (preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $k) && $v !== null) { + if ($this->OPTIONS['CASELESS']) $k = strtolower($k); + $this->_vars[trim($k)] = $v; + } + else { + return false; + } + } + return true; + } + + /** + * FUNCTION: setInclude + * + * Sets dynamic includes to be used by the template + * If $k is an array, then it will treat it as an associative array + * using the keys as variable names and the values as variable values. + * + * @param mixed $k key to define variable name + * @param mixed $v variable to assign to $k + * @return boolean true/false + * @access public + */ + + function setInclude($k, $v = null) { + if(is_array($k)) { + foreach($k as $key => $val) { + $this->_dyninclude[$key] = $val; + } + } else { + $this->_dyninclude[$k] = $v; + } + + return true; + } + + /** + * FUNCTION: unsetVar + * + * Unsets a variable which has already been set + * Parse in all vars wanted for deletion in seperate parametres + * + * @param string var name to remove use: vlibTemplate::unsetVar(var[, var..]) + * @return boolean true/false returns true unless called with 0 params + * @access public + */ + function unsetVar () { + $num_args = func_num_args(); + if ($num_args < 1) return false; + + for ($i = 0; $i < $num_args; $i++) { + $var = func_get_arg($i); + if ($this->OPTIONS['CASELESS']) $var = strtolower($var); + if (!preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $var)) continue; + unset($this->_vars[$var]); + } + return true; + } + + /** + * FUNCTION: getVars + * + * Gets all vars currently set in global namespace. + * + * @return array + * @access public + */ + function getVars () { + if (empty($this->_vars)) return false; + return $this->_vars; + } + + /** + * FUNCTION: getVar + * + * Gets a single var from the global namespace + * + * @return var + * @access public + */ + function getVar ($var) { + if ($this->OPTIONS['CASELESS']) $var = strtolower($var); + if (empty($var) || !isset($this->_vars[$var])) return false; + return $this->_vars[$var]; + } + + /** + * FUNCTION: setContextVars + * + * sets the GLOBAL_CONTEXT_VARS + * + * @return true + * @access public + */ + function setContextVars () { + $_phpself = @$GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']; + $_pathinfo = @$GLOBALS['HTTP_SERVER_VARS']['PATH_INFO']; + $_request_uri = @$GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']; + $_qs = @$GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING']; + + // the following fixes bug of $PHP_SELF on Win32 CGI and IIS. + $_self = (!empty($_pathinfo)) ? $_pathinfo : $_phpself; + $_uri = (!empty($_request_uri)) ? $_request_uri : $_self.'?'.$_qs; + + $this->setvar('__SELF__', $_self); + $this->setvar('__REQUEST_URI__', $_uri); + return true; + } + + /** + * FUNCTION: setLoop + * + * Builds the loop construct for use with <TMPL_LOOP>. + * + * @param string $k string to define loop name + * @param array $v array to assign to $k + * @return boolean true/false + * @access public + */ + function setLoop ($k,$v) { + if (is_array($v) && preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $k)) { + $k = ($this->OPTIONS['CASELESS']) ? strtolower(trim($k)) : trim($k); + $this->_arrvars[$k] = array(); + if ($this->OPTIONS['SET_LOOP_VAR'] && !empty($v)) $this->setvar($k, 1); + if (($this->_arrvars[$k] = $this->_arrayBuild($v)) == false) { + vlibTemplateError::raiseError('VT_WARNING_INVALID_ARR',WARNING,$k); + } + } + return true; + } + + /** + * FUNCTION: setDbLoop [** EXPERIMENTAL **] + * + * Function to create a loop from a Db result resource link. + * + * @param string $loopname to commit loop. If not set, will use last loopname set using newLoop() + * @param string $result link to a Db result resource + * @param string $db_type, type of db that the result resource belongs to. + * @return boolean true/false + * @access public + */ + function setDbLoop ($loopname, $result, $db_type='MYSQL') { + + /* + $db_type = strtoupper($db_type); + if (!in_array($db_type, $this->allowed_loop_dbs)) { + vlibTemplateError::raiseError('VT_WARNING_INVALID_LOOP_DB',WARNING, $db_type); + return false; + } + + $loop_arr = array(); + switch ($db_type) { + + case 'MYSQL': + if (get_resource_type($result) != 'mysql result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = mysql_fetch_assoc($result)) { + $loop_arr[] = $r; + } + break; + + case 'POSTGRESQL': + if (get_resource_type($result) != 'pgsql result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + + $nr = (function_exists('pg_num_rows')) ? pg_num_rows($result) : pg_numrows($result); + + for ($i=0; $i < $nr; $i++) { + $loop_arr[] = pg_fetch_array($result, $i, PGSQL_ASSOC); + } + break; + + case 'INFORMIX': + if (!$result) { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = ifx_fetch_row($result, 'NEXT')) { + $loop_arr[] = $r; + } + break; + + case 'INTERBASE': + if (get_resource_type($result) != 'interbase result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = ibase_fetch_row($result)) { + $loop_arr[] = $r; + } + break; + + case 'INGRES': + if (!$result) { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = ingres_fetch_array(INGRES_ASSOC, $result)) { + $loop_arr[] = $r; + } + break; + + case 'MSSQL': + if (get_resource_type($result) != 'mssql result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = mssql_fetch_array($result)) { + $loop_arr[] = $r; + } + break; + + case 'MSQL': + if (get_resource_type($result) != 'msql result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while($r = msql_fetch_array($result, MSQL_ASSOC)) { + $loop_arr[] = $r; + } + break; + + case 'OCI8': + if (get_resource_type($result) != 'oci8 statement') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while(OCIFetchInto($result, &$r, OCI_ASSOC+OCI_RETURN_LOBS)) { + $loop_arr[] = $r; + } + break; + + case 'ORACLE': + if (get_resource_type($result) != 'oracle Cursor') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while(ora_fetch_into($result, &$r, ORA_FETCHINTO_ASSOC)) { + $loop_arr[] = $r; + } + break; + + case 'OVRIMOS': + if (!$result) { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + while(ovrimos_fetch_into($result, &$r, 'NEXT')) { + $loop_arr[] = $r; + } + break; + + case 'SYBASE': + if (get_resource_type($result) != 'sybase-db result') { + vlibTemplateError::raiseError('VT_WARNING_INVALID_RESOURCE',WARNING, $db_type); + return false; + } + + while($r = sybase_fetch_array($result)) { + $loop_arr[] = $r; + } + break; + } + $this->setLoop($loopname, $loop_arr); + return true; + */ + } + + /** + * FUNCTION: newLoop + * + * Sets the name for the curent loop in the 3 step loop process. + * + * @param string $name string to define loop name + * @return boolean true/false + * @access public + */ + function newLoop ($loopname) { + if (preg_match('/^[a-z_]+[a-z0-9_]*$/i', $loopname)) { + $this->_currloopname[$loopname] = $loopname; + $this->_currloop[$loopname] = array(); + return true; + } + else { + return false; + } + } + + /** + * FUNCTION: addRow + * + * Adds a row to the current loop in the 3 step loop process. + * + * @param array $row loop row to add to current loop + * @param string $loopname loop to which you want to add row, if not set will use last loop set using newLoop(). + * @return boolean true/false + * @access public + */ + function addRow ($row, $loopname=null) { + if (!$loopname) $loopname = $this->_currloopname[(count($this->_currloopname)-1)]; + + if (!isset($this->_currloop[$loopname]) || empty($this->_currloopname)) { + vlibTemplateError::raiseError('VT_WARNING_LOOP_NOT_SET',WARNING); + return false; + } + if (is_array($row)) { + $this->_currloop[$loopname][] = $row; + return true; + } + else { + return false; + } + } + + /** + * FUNCTION: addLoop + * + * Completes the 3 step loop process. This assigns the rows and resets + * the variables used. + * + * @param string $loopname to commit loop. If not set, will use last loopname set using newLoop() + * @return boolean true/false + * @access public + */ + function addLoop ($loopname=null) { + if ($loopname == null) { // add last loop used + if (!empty($this->_currloop)) { + foreach ($this->_currloop as $k => $v) { + $this->setLoop($k, $v); + unset($this->_currloop[$k]); + } + $this->_currloopname = array(); + return true; + } + else { + return false; + } + } + elseif (!isset($this->_currloop[$loopname]) || empty($this->_currloopname)) { // newLoop not yet envoked + vlibTemplateError::raiseError('VT_WARNING_LOOP_NOT_SET',WARNING); + return false; + } + else { // add a specific loop + $this->setLoop($loopname, $this->_currloop[$loopname]); + unset($this->_currloopname[$loopname], $this->_currloop[$loopname]); + } + return true; + } + + /** + * FUNCTION: unsetLoop + * + * Unsets a loop which has already been set. + * Can only unset top level loops. + * + * @param string loop to remove use: vlibTemplate::unsetLoop(loop[, loop..]) + * @return boolean true/false returns true unless called with 0 params + * @access public + */ + function unsetLoop () { + $num_args = func_num_args(); + if ($num_args < 1) return false; + + for ($i = 0; $i < $num_args; $i++) { + $var = func_get_arg($i); + if ($this->OPTIONS['CASELESS']) $var = strtolower($var); + if (!preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $var)) continue; + unset($this->_arrvars[$var]); + } + return true; + } + + + /** + * FUNCTION: reset + * + * Resets the vlibTemplate object. After using vlibTemplate::reset() you must + * use vlibTemplate::newTemplate(tmpl) to reuse, not passing in the options array. + * + * @return boolean true + * @access public + */ + function reset () { + $this->clearVars(); + $this->clearLoops(); + $this->_tmplfilename = null; + $this->_tmplfile = null; + $this->_tmplfilep = null; + $this->_tmploutput = null; + $this->_parsed = false; + $this->_unknowns = array(); + $this->_firstparsetime = null; + $this->_totalparsetime = null; + $this->_currloopname = null; + $this->_currloop = array(); + return true; + } + + /** + * FUNCTION: clearVars + * + * Unsets all variables in the template + * + * @return boolean true + * @access public + */ + function clearVars () { + $this->_vars = array(); + return true; + } + + /** + * FUNCTION: clearLoops + * + * Unsets all loops in the template + * + * @return boolean true + * @access public + */ + function clearLoops () { + $this->_arrvars = array(); + $this->_currloopname = null; + $this->_currloop = array(); + return true; + } + + /** + * FUNCTION: clearAll + * + * Unsets all variables and loops set using setVar/Loop() + * + * @return boolean true + * @access public + */ + function clearAll () { + $this->clearVars(); + $this->clearLoops(); + return true; + } + + /** + * FUNCTION: unknownsExist + * + * Returns true if unknowns were found after parsing. + * Function MUST be called AFTER one of the parsing functions to have any relevance. + * + * @return boolean true/false + * @access public + */ + function unknownsExist () { + return (!empty($this->_unknowns)); + } + + /** + * FUNCTION: unknowns + * + * Alias for unknownsExist. + * + * @access public + */ + function unknowns () { + return $this->unknownsExist(); + } + + /** + * FUNCTION: getUnknowns + * + * Returns an array of all unknown vars found when parsing. + * This function is only relevant after parsing a document. + * + * @return array + * @access public + */ + function getUnknowns () { + return $this->_unknowns; + } + + /** + * FUNCTION: setUnknowns + * + * Sets how you want to handle variables that were found in the + * template but not set in vlibTemplate using vlibTemplate::setVar(). + * + * @param string $arg ignore, remove, print, leave or comment + * @return boolean + * @access public + */ + function setUnknowns ($arg) { + $arg = strtolower(trim($arg)); + if (preg_match('/^ignore|remove|print|leave|comment$/', $arg)) { + $this->OPTIONS['UNKNOWNS'] = $arg; + return true; + } + return false; + } + + /** + * FUNCTION: setPath + * + * function sets the paths to use when including files. + * Use of this function: vlibTemplate::setPath(string path [, string path, ..]); + * i.e. if $tmpl is your template object do: $tmpl->setPath('/web/htdocs/templates','/web/htdocs/www'); + * with as many paths as you like. + * if this function is called without any arguments, it will just delete any previously set paths. + * + * @param string path (mulitple) + * @return bool success + * @access public + */ + function setPath () { + $num_args = func_num_args(); + if ($num_args < 1) { + $this->OPTIONS['INCLUDE_PATHS'] = array(); + return true; + } + for ($i = 0; $i < $num_args; $i++) { + $thispath = func_get_arg($i); + array_push($this->OPTIONS['INCLUDE_PATHS'], realpath($thispath)); + } + return true; + } + + /** + * FUNCTION: getParseTime + * + * After using one of the parse functions, this will allow you + * access the time taken to parse the template. + * see OPTION 'TIME_PARSE'. + * + * @return float time taken to parse template + * @access public + */ + function getParseTime () { + if ($this->OPTIONS['TIME_PARSE'] && $this->_parsed) { + return $this->_totalparsetime; + } + return false; + } + + + /** + * FUNCTION: fastPrint + * + * Identical to pparse() except that it uses output buffering w/ gz compression thus + * printing the output directly and compressed if poss. + * Will possibly if parsing a huge template. + * + * @access public + * @return boolean true/false + */ + function fastPrint () { + $ret = $this->_parse('ob_gzhandler'); + print($this->_tmploutput); + return $ret; + } + + + /** + * FUNCTION: pparse + * + * Calls parse, and then prints out $this->_tmploutput + * + * @access public + * @return boolean true/false + */ + function pparse () { + if (!$this->_parsed) $this->_parse(); + print($this->_tmploutput); + return true; + } + + /** + * FUNCTION: pprint + * + * Alias for pparse() + * + * @access public + */ + function pprint () { + return $this->pparse(); + } + + + /** + * FUNCTION: grab + * + * Returns the parsed output, ready for printing, passing to mail() ...etc. + * Invokes $this->_parse() if template has not yet been parsed. + * + * @access public + * @return boolean true/false + */ + function grab () { + if (!$this->_parsed) $this->_parse(); + return $this->_tmploutput; + } + + /*-----------------------------------------------------------------------------\ + | private functions | + \-----------------------------------------------------------------------------*/ + + /** + * FUNCTION: vlibTemplate + * + * vlibTemplate constructor. + * if $tmplfile has been passed to it, it will send to $this->newTemplate() + * + * @param string $tmplfile full path to template file + * @param array $options see above + * @return boolean true/false + * @access private + */ + function tpl ($tmplfile=null, $options=null) { + if (is_array($tmplfile) && $options == null) { + $options = $tmplfile; + unset($tmplfile); + } + + $this->VLIBTEMPLATE_ROOT = dirname(realpath(__FILE__)); + + if (is_array(vlibIni::vlibTemplate())) { + foreach (vlibIni::vlibTemplate() as $name => $val) { + $this->OPTIONS[$name] = $val; + } + } + + if (is_array($options)) { + foreach($options as $key => $val) { + $key = strtoupper($key); + if ($key == 'PATH') { + $this->setPath($val); + } + else { + $this->_setOption($key, strtolower($val)); + } + } + } + if($tmplfile) $this->newTemplate($tmplfile); + if ($this->OPTIONS['GLOBAL_CONTEXT_VARS']) $this->setContextVars(); + return true; + } + + /** FUNCTION: _getData + * + * function returns the text from the file, or if we're using cache, the text + * from the cache file. MUST RETURN DATA. + * @param string tmplfile contains path to template file + * @param do_eval used for included files. If set then this function must do the eval()'ing. + * @access private + * @return mixed data/string or boolean + */ + function _getData ($tmplfile, $do_eval=false) { + //check the current file depth + if ($this->_includedepth > $this->OPTIONS['MAX_INCLUDES'] || $tmplfile == false) { + return; + } + else { + if ($this->_debug) array_push ($this->_debugIncludedfiles, $tmplfile); + if ($do_eval) { + array_push($this->_currentincludedir, dirname($tmplfile)); + $this->_includedepth++; + } + } + + + if($this->_cache && $this->_checkCache($tmplfile)) { // cache exists so lets use it + $data = fread($fp = fopen($this->_cachefile, 'r'), filesize($this->_cachefile)); + fclose($fp); + } + else { // no cache lets parse the file + $data = fread($fp = fopen($tmplfile, 'r'), filesize($tmplfile)); + fclose($fp); + + $regex = '/(<|<\/|{|{\/|<!--|<!--\/){1}\s*'; + $regex.= 'tmpl_([\w]+)\s*'; + $regex.= '(?:'; + $regex.= '(?:'; + $regex.= '(name|format|escape|op|value|file)'; + $regex.= '\s*=\s*'; + $regex.= ')?'; + $regex.= '(?:[\"\'])?'; + $regex.= '((?<=[\"\'])'; + $regex.= '[^\"\']*|[a-z0-9_\.]*)'; + $regex.= '[\"\']?'; + $regex.= ')?\s*'; + $regex.= '(?:'; + $regex.= '(?:'; + $regex.= '(name|format|escape|op|value)'; + $regex.= '\s*=\s*'; + $regex.= ')'; + $regex.= '(?:[\"\'])?'; + $regex.= '((?<=[\"\'])'; + $regex.= '[^\"\']*|[a-z0-9_\.]*)'; + $regex.= '[\"\']?'; + $regex.= ')?\s*'; + $regex.= '(?:'; + $regex.= '(?:'; + $regex.= '(name|format|escape|op|value)'; + $regex.= '\s*=\s*'; + $regex.= ')'; + $regex.= '(?:[\"\'])?'; + $regex.= '((?<=[\"\'])'; + $regex.= '[^\"\']*|[a-z0-9_\.]*)'; + $regex.= '[\"\']?'; + $regex.= ')?\s*'; + $regex.= '(?:>|\/>|}|-->){1}'; + $regex.= '/ie'; + //$regex.= '([\r\n|\n|\r])?/ie'; + $data = preg_replace($regex,"\$this->_parseTag(array('\\0','\\1','\\2','\\3','\\4','\\5','\\6','\\7','\\8','\\9'));",$data); + + if ($this->_cache) { // add cache if need be + $this->_createCache($data); + } + } + + // now we must parse the $data and check for any <tmpl_include>'s + if ($this->_debug) $this->doDebugWarnings(file($tmplfile), $tmplfile); + + if ($do_eval) { + $success = @eval('?>'.$data.'<?php return 1;'); + $this->_includedepth--; + array_pop($this->_currentincludedir); + return $success; + } + else { + return $data; + } + + } + + /** + * FUNCTION: _fileSearch + * + * Searches for all possible instances of file { $file } + * + * @param string $file path of file we're looking for + * @access private + * @return mixed fullpath to file or boolean false + */ + function _fileSearch ($file) { + $filename = basename($file); + $filepath = dirname($file); + + // check fullpath first.. + $fullpath = $filepath.'/'.$filename; + if (is_file($fullpath)) return $fullpath; + + // ..then check for relative path for current directory.. + if (!empty($this->_currentincludedir)) { + $currdir = $this->_currentincludedir[(count($this->_currentincludedir) -1)]; + $relativepath = realpath($currdir.'/'.$filepath.'/'.$filename); + if (is_file($relativepath)) { + array_push ($this->_currentincludedir, dirname($relativepath)); + return $relativepath; + } + } + + // ..then check for relative path for all additional given paths.. + if (!empty($this->OPTIONS['INCLUDE_PATHS'])) { + foreach ($this->OPTIONS['INCLUDE_PATHS'] as $currdir) { + $relativepath = realpath($currdir.'/'.$filepath.'/'.$filename); + if (is_file($relativepath)) { + return $relativepath; + } + } + } + + // ..then check path from TEMPLATE_DIR.. + if (!empty($this->OPTIONS['TEMPLATE_DIR'])) { + $fullpath = realpath($this->OPTIONS['TEMPLATE_DIR'].'/'.$filepath.'/'.$filename); + if (is_file($fullpath)) return $fullpath; + } + + // ..then check relative path from executing php script.. + $fullpath = realpath($filepath.'/'.$filename); + if (is_file($fullpath)) return $fullpath; + + // ..then check path from template file. + if (!empty($this->VLIBTEMPLATE_ROOT)) { + $fullpath = realpath($this->VLIBTEMPLATE_ROOT.'/'.$filepath.'/'.$filename); + if (is_file($fullpath)) return $fullpath; + } + + return false; // uh oh, file not found + } + + /** + * FUNCTION: _arrayBuild + * + * Modifies the array $arr to add Template variables, __FIRST__, __LAST__ ..etc + * if $this->OPTIONS['LOOP_CONTEXT_VARS'] is true. + * Used by $this->setloop(). + * + * @param array $arr + * @return array new look array + * @access private + */ + function _arrayBuild ($arr) { + if (is_array($arr) && !empty($arr)) { + $arr = array_values($arr); // to prevent problems w/ non sequential arrays + for ($i = 0; $i < count($arr); $i++) { + if(!is_array($arr[$i])) return false; + foreach ($arr[$i] as $k => $v) { + unset($arr[$i][$k]); + if ($this->OPTIONS['CASELESS']) $k = strtolower($k); + if (preg_match('/^[0-9]+$/', $k)) $k = '_'.$k; + + if (is_array($v)) { + if (($arr[$i][$k] = $this->_arrayBuild($v)) == false) return false; + } + else { // reinsert the var + $arr[$i][$k] = $v; + } + } + if ($this->OPTIONS['LOOP_CONTEXT_VARS']) { + if ($i == 0) $arr[$i]['__FIRST__'] = true; + if (($i + 1) == count($arr)) $arr[$i]['__LAST__'] = true; + if ($i != 0 && (($i + 1) < count($arr))) $arr[$i]['__INNER__'] = true; + if (is_int(($i+1) / 2)) $arr[$i]['__EVEN__'] = true; + if (!is_int(($i+1) / 2)) $arr[$i]['__ODD__'] = true; + $arr[$i]['__ROWNUM__'] = ($i + 1); + } + } + return $arr; + } + elseif (empty($arr)) { + return true; + } + } + + /** + * FUNCTION: _parseIf + * returns a string used for parsing in tmpl_if statements. + * + * @param string $varname + * @param string $value + * @param string $op + * @param string $namespace current namespace + * @access private + * @return string used for eval'ing + */ + function _parseIf ($varname, $value=null, $op=null, $namespace=null) { + if (isset($namespace)) $namespace = substr($namespace, 0, -1); + $comp_str = ''; // used for extended if statements + + // work out what to put on the end id value="whatever" is used + if (isset($value)) { + + // add the correct operator depending on whether it's been specified or not + if (!empty($op)) { + if (in_array($op, $this->allowed_if_ops)) { + $comp_str .= $op; + } + else { + vlibTemplateError::raiseError('VT_WARNING_INVALID_IF_OP', WARNING, $op); + } + } + else { + $comp_str .= '=='; + } + + // now we add the value, if it's numeric, then we leave the quotes off + if (is_numeric($value)) { + $comp_str .= $value; + } + else { + $comp_str .= '\''.$value.'\''; + } + } + + if (count($this->_namespace) == 0 || $namespace == 'global') return '$this->_vars[\''.$varname.'\']'.$comp_str; + $retstr = '$this->_arrvars'; + $numnamespaces = count($this->_namespace); + for ($i=0; $i < $numnamespaces; $i++) { + if ($this->_namespace[$i] == $namespace || (($i + 1) == $numnamespaces && !empty($namespace))) { + $retstr .= "['".$namespace."'][\$_".$i."]"; + break 1; + } + else { + $retstr .= "['".$this->_namespace[$i]."'][\$_".$i."]"; + } + } + if ($this->OPTIONS['GLOBAL_VARS'] && empty($namespace)) { + return '(('.$retstr.'[\''.$varname.'\'] !== null) ? '.$retstr.'[\''.$varname.'\'] : $this->_vars[\''.$varname.'\'])'.$comp_str; + } + else { + return $retstr."['".$varname."']".$comp_str; + } + } + + + /** + * FUNCTION: _parseLoop + * returns a string used for parsing in tmpl_loop statements. + * + * @param string $varname + * @access private + * @return string used for eval'ing + */ + function _parseLoop ($varname) { + array_push($this->_namespace, $varname); + $tempvar = count($this->_namespace) - 1; + $retstr = "for (\$_".$tempvar."=0 ; \$_".$tempvar." < count(\$this->_arrvars"; + for ($i=0; $i < count($this->_namespace); $i++) { + $retstr .= "['".$this->_namespace[$i]."']"; + if ($this->_namespace[$i] != $varname) $retstr .= "[\$_".$i."]"; + } + return $retstr."); \$_".$tempvar."++) {"; + } + + /** + * FUNCTION: _parseVar + * + * returns a string used for parsing in tmpl_var statements. + * + * @param string $wholetag + * @param string $tag + * @param string $varname + * @param string $escape + * @param string $format + * @param string $namespace + * @access private + * @return string used for eval'ing + */ + function _parseVar ($wholetag, $tag, $varname, $escape, $format, $namespace) { + if (!empty($namespace)) $namespace = substr($namespace, 0, -1); + $wholetag = stripslashes($wholetag); + + if (count($this->_namespace) == 0 || $namespace == 'global') { + $var1 = '$this->_vars[\''.$varname.'\']'; + } + else { + $var1build = "\$this->_arrvars"; + $numnamespaces = count($this->_namespace); + for ($i=0; $i < $numnamespaces; $i++) { + if ($this->_namespace[$i] == $namespace || (($i + 1) == $numnamespaces && !empty($namespace))) { + $var1build .= "['".$namespace."'][\$_".$i."]"; + break 1; + } + else { + $var1build .= "['".$this->_namespace[$i]."'][\$_".$i."]"; + } + } + $var1 = $var1build . "['$varname']"; + if ($this->OPTIONS['GLOBAL_VARS'] && empty($namespace)) { + $var2 = '$this->_vars[\''.$varname.'\']'; + } + } + + $beforevar = ''; + $aftervar = ''; + if (!empty($escape)&& isset($this->ESCAPE_TAGS[$escape])) { + $beforevar .= $this->ESCAPE_TAGS[$escape]['open']; + $aftervar = $this->ESCAPE_TAGS[$escape]['close'] . $aftervar; + } + + if (!empty($format)&& isset($this->FORMAT_TAGS[$format])) { + $beforevar .= $this->FORMAT_TAGS[$format]['open']; + $aftervar = $this->FORMAT_TAGS[$format]['close'] . $aftervar; + } + + // build return values + $retstr = 'if ('.$var1.' !== null) { '; + $retstr .= 'print('.$beforevar.$var1.$aftervar.'); '; + $retstr .= '}'; + + if (@$var2) { + $retstr .= ' elseif ('.$var2.' !== null) { '; + $retstr .= 'print('.$beforevar.$var2.$aftervar.'); '; + $retstr .= '}'; + } + + switch (strtolower($this->OPTIONS['UNKNOWNS'])) { + case 'comment': + $comment = addcslashes('<!-- unknown variable '.preg_replace('/<!--|-->/', '', $wholetag).'//-->', '"'); + $retstr .= ' else { print("'.$comment.'"); $this->_setUnknown("'.$varname.'"); }'; + return $retstr; + break; + case 'leave': + $retstr .= ' else { print("'.addcslashes($wholetag, '"').'"); $this->_setUnknown("'.$varname.'"); }'; + return $retstr; + break; + case 'print': + $retstr .= ' else { print("'.htmlspecialchars($wholetag, ENT_QUOTES).'"); $this->_setUnknown("'.$varname.'"); }'; + return $retstr; + break; + + case 'ignore': + return $retstr; + break; + case 'remove': + default: + $retstr .= ' else { $this->_setUnknown("'.$varname.'"); }'; + return $retstr; + break; + } + } + + /** + * FUNCTION: _parseTag + * takes values from preg_replace in $this->_intparse() and determines + * the replace string. + * + * @param array $args array of all matches found by preg_replace + * @access private + * @return string replace values + */ + function _parseTag ($args) { + $wholetag = $args[0]; + $openclose = $args[1]; + $tag = strtolower($args[2]); + $newline = $args[9]; + //echo "1#$newline#2"; + + if ($tag == 'else') return '<?php } else { ?>'.$newline; + if ($tag == 'tmpl_include') return $wholetag; // ignore tmpl_include tags + + if (preg_match("/^<\/|{\/|<!--\/$/s", $openclose) || preg_match("/^end[if|loop|unless|comment]$/", $tag)) { + if ($tag == 'loop' || $tag == 'endloop') array_pop($this->_namespace); + if ($tag == 'comment' || $tag == 'endcomment') { + return '<?php */ ?>'.$newline; + } + else { + return '<?php } ?>'.$newline; + } + } + + // arrange attributes + for ($i=3; $i < 8; $i=($i+2)) { + if (empty($args[$i]) && empty($args[($i+1)])) break; + $key = (empty($args[$i])) ? 'name' : strtolower($args[$i]); + if ($key == 'name' && preg_match('/^(php)?include$/', $tag)) $key = 'file'; + $$key = $args[($i+1)]; + } + + $var = ($this->OPTIONS['CASELESS']) ? strtolower($name) : $name; + + if ($this->_debug && !empty($var)) { + if (preg_match("/^global\.([A-Za-z_]+[_A-Za-z0-9]*)$/", $var, $matches)) $var2 = $matches[1]; + if (empty($this->_debugTemplatevars[$tag])) $this->_debugTemplatevars[$tag] = array(); + if (!isset($var2)) $var2 = $var; + if (!in_array($var2, $this->_debugTemplatevars[$tag])) array_push($this->_debugTemplatevars[$tag], $var2); + } + + if (preg_match("/^([A-Za-z_]+[_A-Za-z0-9]*(\.)+)?([A-Za-z_]+[_A-Za-z0-9]*)$/", $var, $matches)) { + $var = $matches[3]; + $namespace = $matches[1]; + } + + + // return correct string (tag dependent) + switch ($tag) { + case 'var': + if (empty($escape) && (!empty($this->OPTIONS['DEFAULT_ESCAPE']) && strtolower($this->OPTIONS['DEFAULT_ESCAPE']) != 'none')) { + $escape = strtolower($this->OPTIONS['DEFAULT_ESCAPE']); + } + return '<?php '.$this->_parseVar ($wholetag, $tag, $var, @$escape, @$format, @$namespace).' ?>'.$newline."\n"; + break; + + case 'if': + return '<?php if ('. $this->_parseIf($var, @$value, @$op, @$namespace) .') { ?>'.$newline; + break; + + case 'unless': + return '<?php if (!'. $this->_parseIf($var, @$value, @$op, @$namespace) .') { ?>'.$newline; + break; + + case 'elseif': + return '<?php } elseif ('. $this->_parseIf($var, @$value, @$op, @$namespace) .') { ?>'.$newline; + break; + + case 'loop': + return '<?php '. $this->_parseLoop($var) .'?>'.$newline; + break; + + case 'comment': + if (empty($var)) { // full open/close style comment + return '<?php /* ?>'.$newline; + } + else { // just ignore tag if it was a one line comment + return; + } + break; + + case 'phpinclude': + if ($this->OPTIONS['ENABLE_PHPINCLUDE']) { + return '<?php include(\''.$file.'\'); ?>'.$newline; + } + break; + + case 'include': + return '<?php $this->_getData($this->_fileSearch(\''.$file.'\'), 1); ?>'; + break; + + case 'dyninclude': + return '<?php $this->_getData($this->_fileSearch($this->_dyninclude[\''.$name.'\']), 1); ?>'; + break; + + default: + if ($this->OPTIONS['STRICT']) vlibTemplateError::raiseError('VT_ERROR_INVALID_TAG', KILL, htmlspecialchars($wholetag, ENT_QUOTES)); + break; + } + + } + + /** + * FUNCTION: _intParse + * + * Parses $this->_tmplfile into correct format for eval() to work + * Called by $this->_parse(), or $this->fastPrint, this replaces all <tmpl_*> references + * with their correct php representation, i.e. <tmpl_var title> becomes $this->vars['title'] + * Sets final parsed file to $this->_tmplfilep. + * + * @access private + * @return boolean true/false + */ + function _intParse () { + //$mqrt = get_magic_quotes_runtime(); + //set_magic_quotes_runtime(0); + $this->_tmplfilep = '?>'.$this->_getData($this->_tmplfilename).'<?php return true;'; + //set_magic_quotes_runtime($mqrt); + return true; + } + + /** + * FUNCTION: _parse + * + * Calls _intParse, and eval()s $this->tmplfilep + * and outputs the results to $this->tmploutput + * + * @param bool compress whether to compress contents + * @access private + * @return boolean true/false + */ + function _parse ($compress='') { + if (!$this->_parsed) { + if ($this->OPTIONS['TIME_PARSE']) $this->_firstparsetime = $this->_getMicroTime(); + + $this->_intParse(); + $this->_parsed = true; + + if ($this->OPTIONS['TIME_PARSE']) $this->_totalparsetime = ($this->_getMicroTime() - $this->_firstparsetime); + if ($this->OPTIONS['TIME_PARSE'] && $this->OPTIONS['GLOBAL_CONTEXT_VARS']) $this->setVar('__PARSE_TIME__', $this->getParseTime()); + } + + // ob_start($compress); + ob_start(); + + array_push($this->_currentincludedir, dirname($this->_tmplfilename)); + $this->_includedepth++; + $success = @eval($this->_tmplfilep); + $this->_includedepth--; + array_pop($this->_currentincludedir); + + if ($this->_debug) $this->doDebug(); + if (!$success) vlibTemplateError::raiseError('VT_ERROR_PARSE', FATAL); + $this->_tmploutput .= ob_get_contents(); + ob_end_clean(); + + + + return true; + } + + /** + * FUNCTION: _setOption + * + * Sets one or more of the boolean options 1/0, that control certain actions in the template. + * Use of this function: + * either: vlibTemplate::_setOptions(string option_name, bool option_val [, string option_name, bool option_val ..]); + * or vlibTemplate::_setOptions(array); + * with an associative array where the key is the option_name + * and the value is the option_value. + * + * @param mixed (mulitple) + * @return bool true/false + * @access private + */ + function _setOption () { + $numargs = func_num_args(); + if ($numargs < 1) { + vlibTemplateError::raiseError('VT_ERROR_WRONG_NO_PARAMS', null, '_setOption()'); + return false; + } + + if ($numargs == 1) { + $options = func_get_arg(1); + if (is_array($options)) { + foreach ($options as $k => $v) { + if ($v != null) { + if(in_array($k, array_keys($this->OPTIONS))) $this->OPTIONS[$k] = $v; + } + else { + continue; + } + } + } + else { + vlibTemplateError::raiseError('VT_ERROR_WRONG_NO_PARAMS', null, '_setOption()'); + return false; + } + } + elseif (is_int($numargs / 2)) { + for ($i = 0; $i < $numargs; $i=($i+2)) { + $k = func_get_arg($i); + $v = func_get_arg(($i+1)); + if ($v != null) { + if(in_array($k, array_keys($this->OPTIONS))) $this->OPTIONS[$k] = $v; + } + } + } + else { + vlibTemplateError::raiseError('VT_ERROR_WRONG_NO_PARAMS', null, '_setOption()'); + return false; + } + return true; + } + + /** + * FUNCTION: _setUnknown + * + * Used during parsing, this function sets an unknown var checking to see if it + * has been previously set. + * + * @param string var + * @access private + */ + function _setUnknown ($var) { + if (!in_array($var, $this->_unknowns)) array_push($this->_unknowns, $var); + } + + /** + * FUNCTION: _getMicrotime + * Returns microtime as a float number + * + * @return float microtime + * @access private + */ + function _getMicrotime () { + list($msec, $sec) = explode(" ",microtime()); + return ((float)$msec + (float)$sec); + } + + /** + * FUNCTION: _escape_hex + * Returns str encoded to hex code. + * + * @param string str to be encoded + * @param bool true/false specify whether to use hex_entity + * @return string encoded in hex + * @access private + */ + function _escape_hex($str="", $entity=false) { + $prestr = $entity ? '&#x' : '%'; + $poststr= $entity ? ';' : ''; + for ($i=0; $i < strlen($str); $i++) { + $return .= $prestr.bin2hex($str[$i]).$poststr; + } + return $return; + } + + /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + The following functions have no use and are included just so that if the user + is making use of vlibTemplateCache functions, this doesn't crash when changed to + vlibTemplate if the user is quickly bypassing the vlibTemplateCache class. + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ + function clearCache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'clearCache()');} + function recache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'recache()');} + function setCacheLifeTime() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheLifeTime()');} + function setCacheExtension() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheExtension()');} + } + + //include_once ($conf['classpath'].'/vlibTemplate/debug.php'); + include_once ($conf['classpath'].'/tpl_cache.inc.php'); + +} // << end if(!defined()).. +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/tpl_cache.inc.php b/interface/ispconfig/server/lib/classes/tpl_cache.inc.php new file mode 100644 index 0000000..18e7d38 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/tpl_cache.inc.php @@ -0,0 +1,186 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP version 4.0 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 2002 Active Fish Group | +// +----------------------------------------------------------------------+ +// | Authors: Kelvin Jones <kelvin@kelvinjones.co.uk> | +// +----------------------------------------------------------------------+ +// +// $Id: cache.php,v 1.1 2003/07/08 12:32:06 platinum Exp $ + +/** + * Class uses all of vlibTemplate's functionality but caches the template files. + * It creates an identical tree structure to your filesystem but with cached files. + * + * @author Kelvin Jones <kelvin@kelvinjones.co.uk> + * @since 22/02/2002 + * @package vLIB + * @access public + */ + +class tplc extends tpl { + +/*-----------------------------------------------------------------------------\ +| DO NOT TOUCH ANYTHING IN THIS CLASS, IT MAY NOT WORK OTHERWISE | +\-----------------------------------------------------------------------------*/ + + var $_cache = 1; // tells vlibTemplate that we're caching + var $_cachefile; // full path to current cache file (even if it doesn't yet exist) + var $_cacheexists; // has this file been cached before + var $_cachefilelocked; // is this file currently locked whilst writing + var $_cachefiledir; // dir of current cache file + var $_clearcache = 0; + + + /** + * FUNCTION: clearCache + * will unset a file, and set $this->_cacheexists to 0. + * + * @access public + * @return boolean + */ + function clearCache() { + $this->_clearcache = 1; + return true; + } + + /** + * FUNCTION: recache + * alias for clearCache(). + * + * @access public + * @return boolean + */ + function recache() { + return $this->clearCache(); + } + + /** + * FUNCTION: setCacheLifeTime + * sets the lifetime of the cached file + * + * @param int $int number of seconds to set lifetime to + * @access public + * @return boolean + */ + function setCacheLifeTime($int = null) { + if ($int == null || !is_int($int)) return false; + if ($int == 0) $int = 60; + if ($int == -1) $int = 157680000; // set to 5 yrs time + $this->OPTIONS['CACHE_LIFETIME'] = $int; + return true; + } + + /** + * FUNCTION: setCacheExtension + * sets the extention of the cache file + * + * @param str $str name of new cache extention + * @access public + * @return boolean + */ + function setCacheExtension($str = null) { + if ($str == null || !preg_match('/^[a-z0-9]+$/', strtolower($str))) return false; + $this->OPTIONS['CACHE_EXTENSION'] = strtolower($str); + return true; + } + + +/*----------------------------------------\ + Private Functions +-----------------------------------------*/ + + /** + * FUNCTION: _checkCache + * checks if there's a cache, if there is then it will read the cache file as the template. + */ + function _checkCache ($tmplfile) { + $this->_cachefile = $this->_getFilename($tmplfile); + if ($this->_clearcache) { + if (file_exists($this->_cachefile)) unlink($this->_cachefile); + return false; + } + + if (file_exists($this->_cachefile)) { + $this->_cacheexists = 1; + + // if it's expired + if ((filemtime($this->_cachefile) + $this->OPTIONS['CACHE_LIFETIME']) < date ('U') + || filectime($this->_cachefile) < filemtime($tmplfile)) { + $this->_cacheexists = 0; + return false; // so that we know to recache + } + else { + return true; + } + + } else { + $this->_cacheexists = 0; + return false; + } + } + + + /** + * FUNCTION: _getFilename + * gets the full pathname for the cached file + * + */ + function _getFilename($tmplfile) { + return $this->OPTIONS['CACHE_DIRECTORY'].'/'.md5('vlibCachestaR'.realpath($tmplfile)).'.'.$this->OPTIONS['CACHE_EXTENSION']; + } + + /** + * FUNCTION: _createCache + * creates the cached file + * + */ + function _createCache($data) { + $cache_file = $this->_cachefile; + if(!$this->_prepareDirs($cache_file)) return false; // prepare all of the directories + + $f = fopen ($cache_file, "w"); + flock($f, 2); // set an EXclusive lock + if (!$f) vlibTemplateError::raiseError('VT_ERROR_NO_CACHE_WRITE',KILL,$cache_file); + fputs ($f, $data); // write the parsed string from vlibTemplate + flock($f, 3); // UNlock file + fclose ($f); + touch ($cache_file); + return true; + } + + /** + * FUNCTION: _prepareDirs + * prepares the directory structure + * + */ + function _prepareDirs($file) { + if (empty($file)) die('no filename'); //do error in future + $filepath = dirname($file); + if (is_dir($filepath)) return true; + + $dirs = preg_split('/[\\/]/', $filepath); + $currpath; + foreach ($dirs as $dir) { + $currpath .= $dir .'/'; + $type = @filetype($currpath); + + ($type=='link') and $type = 'dir'; + if ($type != 'dir' && $type != false && !empty($type)) { + vlibTemplateError::raiseError('VT_ERROR_WRONG_CACHE_TYPE',KILL,'directory: '.$currpath.', type: '.$type); + } + if ($type == 'dir') { + continue; + } + else { + $s = @mkdir($currpath, 0775); + if (!$s) vlibTemplateError::raiseError('VT_ERROR_CACHE_MKDIR_FAILURE',KILL,'directory: '.$currpath); + } + } + return true; + } + +} // -- end vlibTemplateCache class +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/tpl_error.inc.php b/interface/ispconfig/server/lib/classes/tpl_error.inc.php new file mode 100644 index 0000000..2f13988 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/tpl_error.inc.php @@ -0,0 +1,92 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP version 4.0 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 2002 Active Fish Group | +// +----------------------------------------------------------------------+ +// | Authors: Kelvin Jones <kelvin@kelvinjones.co.uk> | +// +----------------------------------------------------------------------+ +// +// $Id: error.php,v 1.1 2003/07/08 12:32:06 platinum Exp $ + +define('FATAL', E_USER_ERROR); +define('WARNING', E_USER_WARNING); +define('NOTICE', E_USER_NOTICE); +define('KILL', -1); // used for killing inside parsing. + +/** + * Class is used by vlibTemplate. + * It handles all of the error reporting for vlibTemplate. + * + * @author Kelvin Jones <kelvin@kelvinjones.co.uk> + * @since 06/03/2002 + * @package vLIB + * @access private + */ + +class vlibTemplateError { + +/*-----------------------------------------------------------------------------\ +| DO NOT TOUCH ANYTHING IN THIS CLASS IT MAY NOT WORK OTHERWISE | +\-----------------------------------------------------------------------------*/ + + function raiseError ($code, $level = null, $extra=null) { + if (!($level & error_reporting())&& $level != KILL) return; // binary AND checks for reporting level + + $error_codes = array( + 'VT_ERROR_NOFILE' => 'vlibTemplate Error: Template ('.$extra.') file not found.', + 'VT_ERROR_PARSE' => 'vlibTemplate Error: Parse error!<br>To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug).', + 'VT_NOTICE_INVALID_TAG' => 'vlibTemplate Notice: Invalid tag ('.$extra.').', + 'VT_ERROR_INVALID_TAG' => 'vlibTemplate Error: Invalid tag ('.$extra.'). To disable this you must turn of the STRICT option.', + 'VT_NOTICE_INVALID_ATT' => 'vlibTemplate Notice: Invalid attribute ('.$extra.').', + 'VT_WARNING_INVALID_ARR' => 'vlibTemplate Warning: Invalid loop structure passed to vlibTemplate::setLoop() (loop name: '.$extra.').', + 'VT_ERROR_INVALID_ERROR_CODE' => 'vlibTemplate Error: Invalid error raised.', + 'VT_ERROR_WRONG_NO_PARAMS' => 'vlibTemplate Warning: Wrond parameter count passed to '.$extra.'.', + 'VT_ERROR_UNKNOWN_VAR' => 'vlibTemplate Error: template var not found.', + 'VT_ERROR_NO_CACHE_WRITE' => 'vlibTemplate Error: unable to write to cache file ('.$extra.').', + 'VT_ERROR_WRONG_CACHE_TYPE' => 'vlibTemplate Error: non-directory file found in cache root with same name as directory ('.$extra.').', + 'VT_ERROR_CACHE_MKDIR_FAILURE' => 'vlibTemplate Error: failed to create directory in cache root ('.$extra.').', + 'VT_WARNING_NOT_CACHE_OBJ' => 'vlibTemplate Warning: called a vlibTemplateCache function ('.$extra.') without instantiating the vlibTemplateCache class.', + 'VT_WARNING_LOOP_NOT_SET' => 'vlibTemplate Warning: called vlibTemplate::addRow() or vlibTemplate::addLoop() with an invalid loop name.', + 'VT_WARNING_INVALID_RESOURCE' => 'vlibTemplate Warning: Invalid resource type passed to vlibTemplate::setDbLoop() for Db "'.$extra.'".', + 'VT_WARNING_INVALID_LOOP_DB' => 'vlibTemplate Warning: Invalid Db type passed to vlibTemplate::setDbLoop(), "'.$extra.'" not currently available.', + 'VT_WARNING_INVALID_IF_OP' => 'vlibTemplate Warning: The Operator "'.$extra.'" is not supported by vlibTemplate.' + ); + + $error_levels = array( + 'VT_ERROR_NOFILE' => FATAL, + 'VT_ERROR_PARSE' => FATAL, + 'VT_NOTICE_INVALID_TAG' => NOTICE, + 'VT_ERROR_INVALID_TAG' => FATAL, + 'VT_NOTICE_INVALID_ATT' => NOTICE, + 'VT_WARNING_INVALID_ARR' => WARNING, + 'VT_ERROR_INVALID_ERROR_CODE' => FATAL, + 'VT_ERROR_WRONG_NO_PARAMS' => WARNING, + 'VT_ERROR_UNKNOWN_VAR' => WARNING, + 'VT_ERROR_NO_CACHE_WRITE' => KILL, + 'VT_ERROR_WRONG_CACHE_TYPE' => KILL, + 'VT_ERROR_CACHE_MKDIR_FAILURE' => KILL, + 'VT_WARNING_NOT_CACHE_OBJ' => WARNING, + 'VT_WARNING_LOOP_NOT_SET' => WARNING, + 'VT_WARNING_INVALID_RESOURCE' => WARNING, + 'VT_WARNING_INVALID_LOOP_DB' => WARNING, + 'VT_WARNING_INVALID_IF_OP' => WARNING + ); + + ($level === null) and $level = $error_levels[$code]; + if ($level == KILL) { + die ($error_codes[$code]); + } + + if ($msg = $error_codes[$code]) { + trigger_error($msg, $level); + } else { + $level = $error_levels['VT_ERROR_INVALID_ERROR_CODE']; + $msg = $error_codes['VT_ERROR_INVALID_ERROR_CODE']; + trigger_error($msg, $level); + } + return; + } +} +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/classes/tpl_ini.inc.php b/interface/ispconfig/server/lib/classes/tpl_ini.inc.php new file mode 100644 index 0000000..7334c88 --- /dev/null +++ b/interface/ispconfig/server/lib/classes/tpl_ini.inc.php @@ -0,0 +1,116 @@ +<?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ +// +----------------------------------------------------------------------+ +// | PHP version 4.0 | +// +----------------------------------------------------------------------+ +// | Copyright (c) 2002 Active Fish Group | +// +----------------------------------------------------------------------+ +// | Authors: Kelvin Jones <kelvin@kelvinjones.co.uk> | +// +----------------------------------------------------------------------+ +// +// $Id: vlibIni.php,v 1.1 2003/07/08 12:31:10 platinum Exp $ + +/* +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; This file contains configuration parametres for use ; +; with the vLIB library. [ NOW A CLASS!! ] ; +; ; +; vLIB uses this file so that for future releases, you ; +; will not have to delve through all the php script ; +; again to set your specific variable/properties ..etc ; +; ; +; ---------------------------------------------------- ; +; ATTENTION: Do NOT remove any variable given in the ; +; configurations below as they will probably still be ; +; needed by vLIB. If you do not need a variable simply ; +; let it be. ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +*/ + +if (!defined('vlibIniClassLoaded')) { + define('vlibIniClassLoaded', 1); + + /** + * vlibIni is a class used to store configuration parameters + * for the vLIB library. + * + * @since 21/07/2002 + * @author Kelvin Jones <kelvin@kelvinjones.co.uk> + * @package vLIB + * @access private + */ + + class vlibIni { + + /** config vars for vlibTemplate */ + function vlibTemplate () { + + global $conf; + + $tpl_dir = $conf["rootpath"]."/conf"; + + return array( + + 'TEMPLATE_DIR' => $tpl_dir, // Default directory for your template files (full path) + // leave the '/' or '\' off the end of the directory. + + 'MAX_INCLUDES' => 10, // Drill depth for tmpl_include's + + 'GLOBAL_VARS' => 1, // if set to 1, any variables not found in a + // loop will search for a global var as well + + 'GLOBAL_CONTEXT_VARS' => 1, // if set to 1, vlibTemplate will add global vars + // reflecting the environment. + + 'LOOP_CONTEXT_VARS' => 1, // if set to 1, vlibTemplate will add loop specific vars + // on each row of the loop. + + 'SET_LOOP_VAR' => 1, // Sets a global variable for each top level loops + + 'DEFAULT_ESCAPE' => 'none', // 1 of the following: html, url, sq, dq, none + + 'STRICT' => 0, // Dies when encountering an incorrect tmpl_* + // style tags i.e. tmpl_vae + + 'CASELESS' => 0, // Removes case sensitivity on all variables + + 'UNKNOWNS' => 'ignore', // How to handle unknown variables. + // 1 of the following: ignore, remove, leave,print, comment + // 1 of the following: ignore, remove, leave, print, comment + + 'TIME_PARSE' => '0', // Will enable you to time how long vlibTemplate takes to parse + // your template. You then use the function: getParseTime(). + + 'ENABLE_PHPINCLUDE' => '1', // Will allow template to include a php file using <TMPL_PHPINCLUDE> + + + /* the following are only used by the vlibTemplateCache class. */ + + 'CACHE_DIRECTORY' => $conf["template"]["cache_dir"], + // Directory where the cached filesystem + // will be set up (full path, and must be writable) + // '/' or '\' off the end of the directory. + + 'CACHE_LIFETIME' => 604800, // Duration until file is re-cached in seconds (604800 = 1 week) + + 'CACHE_EXTENSION' => 'vtc' // extention to be used by the cached file i.e. index.php will become + // index.vtc (vlibTemplate Compiled) + ); + + } // << end function vlibTemplate + + + + /** config vars for vlibDate */ + function vlibDate () { + + return array( + 'DEFAULT_LANG' => 'de' // default language for the date displays + ); + + }// << end function vlibDate + + + }// << end class vlibIni +} +?> \ No newline at end of file diff --git a/interface/ispconfig/server/lib/config.inc.php b/interface/ispconfig/server/lib/config.inc.php new file mode 100644 index 0000000..8610cc9 --- /dev/null +++ b/interface/ispconfig/server/lib/config.inc.php @@ -0,0 +1,154 @@ +<?php + +/* +Copyright (c) 2007 - 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +//** Web-only +if( !empty($_SERVER['DOCUMENT_ROOT']) ) { + + Header("Pragma: no-cache"); + Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate"); + Header("Content-Type: text/html; charset=utf-8"); + + //** Set a few php.ini values + ini_set('register_globals',0); + ini_set('magic_quotes_gpc', 0); + + if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_REQUEST['s']) || isset($_REQUEST['s_old']) || isset($_REQUEST['conf'])) { + die('Internal Error: var override attempt detected'); + exit; + } +} + +//** Set a few php.ini values +if(get_magic_quotes_runtime()) set_magic_quotes_runtime(false); +if(isset($app)) unset($app); +if(isset($conf)) unset($conf); + + +//** SVN Revision +$svn_revision = '$Revision: 1837 $'; +$revision = str_replace(array('Revision:','$',' '), '', $svn_revision); + +//** Application +define('ISPC_APP_TITLE', 'ISPConfig'); +define('ISPC_APP_VERSION', '3.0.2.2'); + + +//** Database +$conf["db_type"] = 'mysql'; +$conf["db_host"] = 'localhost'; +$conf["db_database"] = 'dbispconfig'; +$conf["db_user"] = 'ispconfig'; +$conf["db_password"] = 'ce4eb6520a6f675163a748b3b2f1349c'; +$conf["db_charset"] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1") + +define("DB_TYPE",$conf["db_type"]); +define("DB_HOST",$conf["db_host"]); +define("DB_DATABASE",$conf["db_database"]); +define("DB_USER",$conf["db_user"]); +define("DB_PASSWORD",$conf["db_password"]); +define("DB_CHARSET",$conf["db_charset"]); + + +//** Database settings for the master DB. This setting is only used in multiserver setups +$conf["dbmaster_type"] = 'mysql'; +$conf["dbmaster_host"] = ''; +$conf["dbmaster_database"] = 'dbispconfig'; +$conf["dbmaster_user"] = ''; +$conf["dbmaster_password"] = '1c70c5d027ce02c30afb43fd39f9015a'; + + +//** Paths +define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // The main ROOT is the parent directory to this file, ie Interface/. NO trailing slashes. +define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib'); +define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes'); +define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web'); +define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes'); +define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser +define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache'); + +//** Paths (Do not change!) +$conf["rootpath"] = substr(dirname(__FILE__),0,-4); +$conf["fs_div"] = "/"; // File system divider, "\\" on windows and "/"" on linux and unix +$conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes"; +$conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp"; + +define("FS_DIV",$conf["fs_div"]); +define("SERVER_ROOT",$conf["rootpath"]); +define("INCLUDE_ROOT",SERVER_ROOT.FS_DIV."lib"); +define("CLASSES_ROOT",INCLUDE_ROOT.FS_DIV."classes"); + + +//** Server +$conf['app_title'] = ISPC_APP_TITLE; +$conf['app_version'] = ISPC_APP_VERSION; +$conf['app_link'] = 'http://www.ispconfig.org/'; +$conf['modules_available'] = 'admin,mail,sites,monitor,client,dns,help'; +$conf["server_id"] = "1"; + + +//** Interface +define('ISPC_INTERFACE_MODULES_ENABLED', 'mail,sites,dns,tools'); + + +//** Logging +$conf["log_file"] = '/var/log/ispconfig/ispconfig.log'; +$conf["log_priority"] = 2; // 0 = Debug, 1 = Warning, 2 = Error + + +//** Allow software package installations +$conf['software_updates_enabled'] = false; + + +//** Themes +$conf["theme"] = 'default'; +$conf["html_content_encoding"] = 'utf-8'; // example: utf-8, iso-8859-1, ... +$conf["logo"] = 'themes/default/images/ispc_logo.png'; + + +//** Default Language +$conf["language"] = 'en'; +$conf["debug_language"] = false; + + +//** Misc. +$conf["interface_logout_url"] = ""; // example: http://www.domain.tld/ + + +//** Auto Load Modules +$conf["start_db"] = true; +$conf["start_session"] = true; + + +//** Constants +define("LOGLEVEL_DEBUG",0); +define("LOGLEVEL_WARN",1); +define("LOGLEVEL_ERROR",2); + +?> diff --git a/interface/ispconfig/server/lib/mysql_clientdb.conf b/interface/ispconfig/server/lib/mysql_clientdb.conf new file mode 100644 index 0000000..b89c507 --- /dev/null +++ b/interface/ispconfig/server/lib/mysql_clientdb.conf @@ -0,0 +1,7 @@ +<?php + +$clientdb_host = 'localhost'; +$clientdb_user = 'root'; +$clientdb_password = 'roOt20100damaHoStinG'; + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/client_module.inc.php b/interface/ispconfig/server/mods-available/client_module.inc.php new file mode 100644 index 0000000..4d46f11 --- /dev/null +++ b/interface/ispconfig/server/mods-available/client_module.inc.php @@ -0,0 +1,96 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class client_module { + + var $module_name = 'client_module'; + var $class_name = 'client_module'; + var $actions_available = array( 'client_insert', + 'client_update', + 'client_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('client',$this->module_name,'process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'client': + if($action == 'i') $app->plugins->raiseEvent('client_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('client_update',$data); + if($action == 'd') $app->plugins->raiseEvent('client_delete',$data); + break; + } // end switch + } // end function + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/cron_module.inc.php b/interface/ispconfig/server/mods-available/cron_module.inc.php new file mode 100644 index 0000000..503d7ef --- /dev/null +++ b/interface/ispconfig/server/mods-available/cron_module.inc.php @@ -0,0 +1,97 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +Modified 2009, Marius Cramer, pixcept KG +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class cron_module { + + var $module_name = 'cron_module'; + var $class_name = 'cron_module'; + var $actions_available = array( 'cron_insert', + 'cron_update', + 'cron_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('cron',$this->module_name,'process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'cron': + if($action == 'i') $app->plugins->raiseEvent('cron_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('cron_update',$data); + if($action == 'd') $app->plugins->raiseEvent('cron_delete',$data); + break; + } // end switch + } // end function + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/database_module.inc.php b/interface/ispconfig/server/mods-available/database_module.inc.php new file mode 100644 index 0000000..2dac689 --- /dev/null +++ b/interface/ispconfig/server/mods-available/database_module.inc.php @@ -0,0 +1,103 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class database_module { + + var $module_name = 'database_module'; + var $class_name = 'database_module'; + var $actions_available = array( 'database_insert', + 'database_update', + 'database_delete' + ); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + if($conf['services']['db'] == true) { + return true; + } else { + return false; + } + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('web_database','database_module','process'); + + // Register service + //$app->services->registerService('httpd','web_module','restartHttpd'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'web_database': + if($action == 'i') $app->plugins->raiseEvent('database_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('database_update',$data); + if($action == 'd') $app->plugins->raiseEvent('database_delete',$data); + break; + } // end switch + } // end function + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/dns_module.inc.php b/interface/ispconfig/server/mods-available/dns_module.inc.php new file mode 100644 index 0000000..17c36bd --- /dev/null +++ b/interface/ispconfig/server/mods-available/dns_module.inc.php @@ -0,0 +1,128 @@ +<?php + +/* +Copyright (c) 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class dns_module { + + var $module_name = 'dns_module'; + var $class_name = 'dns_module'; + var $actions_available = array( 'dns_soa_insert', + 'dns_soa_update', + 'dns_soa_delete', + 'dns_rr_insert', + 'dns_rr_update', + 'dns_rr_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('dns_soa',$this->module_name,'process'); + $app->modules->registerTableHook('dns_rr',$this->module_name,'process'); + + + // Register service + $app->services->registerService('bind','dns_module','restartBind'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'dns_soa': + if($action == 'i') $app->plugins->raiseEvent('dns_soa_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('dns_soa_update',$data); + if($action == 'd') $app->plugins->raiseEvent('dns_soa_delete',$data); + break; + case 'dns_rr': + if($action == 'i') $app->plugins->raiseEvent('dns_rr_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('dns_rr_update',$data); + if($action == 'd') $app->plugins->raiseEvent('dns_rr_delete',$data); + break; + } // end switch + } // end function + + + function restartBind($action = 'restart') { + global $app; + + $command = ''; + if(is_file('/etc/init.d/bind9')) { + $command = '/etc/init.d/bind9'; + } else { + $command = '/etc/init.d/named'; + } + + if($action == 'restart') { + exec($command.' restart'); + } else { + exec($command.' reload'); + } + + } + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/mail_module.inc.php b/interface/ispconfig/server/mods-available/mail_module.inc.php new file mode 100644 index 0000000..d0c33f2 --- /dev/null +++ b/interface/ispconfig/server/mods-available/mail_module.inc.php @@ -0,0 +1,153 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class mail_module { + + var $module_name = 'mail_module'; + var $class_name = 'mail_module'; + var $actions_available = array( 'mail_domain_insert', + 'mail_domain_update', + 'mail_domain_delete', + 'mail_user_insert', + 'mail_user_update', + 'mail_user_delete', + 'mail_access_insert', + 'mail_access_update', + 'mail_access_delete', + 'mail_forwarding_insert', + 'mail_forwarding_update', + 'mail_forwarding_delete', + 'mail_transport_insert', + 'mail_transport_update', + 'mail_transport_delete', + 'mail_get_insert', + 'mail_get_update', + 'mail_get_delete', + 'mail_content_filter_insert', + 'mail_content_filter_update', + 'mail_content_filter_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + if($conf['services']['mail'] == true) { + return true; + } else { + return false; + } + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('mail_access','mail_module','process'); + $app->modules->registerTableHook('mail_domain','mail_module','process'); + $app->modules->registerTableHook('mail_forwarding','mail_module','process'); + $app->modules->registerTableHook('mail_transport','mail_module','process'); + $app->modules->registerTableHook('mail_user','mail_module','process'); + $app->modules->registerTableHook('mail_get','mail_module','process'); + $app->modules->registerTableHook('mail_content_filter','mail_module','process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'mail_access': + if($action == 'i') $app->plugins->raiseEvent('mail_access_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_access_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_access_delete',$data); + break; + case 'mail_domain': + if($action == 'i') $app->plugins->raiseEvent('mail_domain_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_domain_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_domain_delete',$data); + break; + case 'mail_forwarding': + if($action == 'i') $app->plugins->raiseEvent('mail_forwarding_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_forwarding_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_forwarding_delete',$data); + break; + case 'mail_transport': + if($action == 'i') $app->plugins->raiseEvent('mail_transport_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_transport_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_transport_delete',$data); + break; + case 'mail_user': + if($action == 'i') $app->plugins->raiseEvent('mail_user_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_user_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_user_delete',$data); + break; + case 'mail_get': + if($action == 'i') $app->plugins->raiseEvent('mail_get_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_get_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_get_delete',$data); + break; + case 'mail_content_filter': + if($action == 'i') $app->plugins->raiseEvent('mail_content_filter_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_content_filter_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_content_filter_delete',$data); + break; + } // end switch + } // end function + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/monitor_core_module.inc.php b/interface/ispconfig/server/mods-available/monitor_core_module.inc.php new file mode 100644 index 0000000..8447bae --- /dev/null +++ b/interface/ispconfig/server/mods-available/monitor_core_module.inc.php @@ -0,0 +1,1465 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class monitor_core_module { + /* TODO: this should be a config - var instead of a "constant" */ + var $interval = 5; // do the monitoring every 5 minutes + + var $module_name = 'monitor_core_module'; + var $class_name = 'monitor_core_module'; + /* No actions at this time. maybe later... */ + var $actions_available = array(); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + /* none at them moment */ + //$app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + /* none at them moment */ + //$app->modules->registerTableHook('mail_access','mail_module','process'); + + /* + Do the monitor every n minutes and write the result in the db + */ + $min = date('i'); + if (($min % $this->interval) == 0) + { + $this->doMonitor(); + } + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + function process($tablename, $action, $data) { + // global $app; + // + // switch ($tablename) { + // case 'mail_access': + // if($action == 'i') $app->plugins->raiseEvent('mail_access_insert',$data); + // if($action == 'u') $app->plugins->raiseEvent('mail_access_update',$data); + // if($action == 'd') $app->plugins->raiseEvent('mail_access_delete',$data); + // break; + // } // end switch + } // end function + + /* + This method is called every n minutes, when the module ist loaded. + The method then does a system-monitoring + */ + // TODO: what monitoring is done should be a config-var + function doMonitor() + { + /* Calls the single Monitoring steps */ + $this->monitorServer(); + $this->monitorDiskUsage(); + $this->monitorMemUsage(); + $this->monitorCpu(); + $this->monitorServices(); + $this->monitorMailLog(); + $this->monitorMailWarnLog(); + $this->monitorMailErrLog(); + $this->monitorMessagesLog(); + $this->monitorISPCCronLog(); + $this->monitorFreshClamLog(); + $this->monitorClamAvLog(); + $this->monitorIspConfigLog(); + $this->monitorSystemUpdate(); + $this->monitorMailQueue(); + $this->monitorRaid(); + $this->monitorRkHunter(); + $this->monitorFail2ban(); + $this->monitorSysLog(); + } + + function monitorServer(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'server_load'; + + /* + Fetch the data into a array + */ + $procUptime = shell_exec("cat /proc/uptime | cut -f1 -d' '"); + $data['up_days'] = floor($procUptime/86400); + $data['up_hours'] = floor(($procUptime-$data['up_days']*86400)/3600); + $data['up_minutes'] = floor(($procUptime-$data['up_days']*86400-$data['up_hours']*3600)/60); + + $data['uptime'] = shell_exec("uptime"); + + $tmp = explode(",", $data['uptime'], 4); + $tmpUser = explode(" ", trim($tmp[2])); + $data['user_online'] = intval($tmpUser[0]); + + /* Old Load Average Code + $loadTmp = explode(":" , trim($tmp[3])); + $load = explode(",", $loadTmp[1]); + $data['load_1'] = floatval(trim($load[0])); + $data['load_5'] = floatval(trim($load[1])); + $data['load_15'] = floatval(trim($load[2])); */ + + //* New Load Average code to fix "always zero" bug in non-english distros. NEEDS TESTING + $loadTmp = shell_exec("cat /proc/loadavg | cut -f1-3 -d' '"); + $load = explode(" ", $loadTmp); + $data['load_1'] = floatval(str_replace(',', '.', $load[0])); + $data['load_5'] = floatval(str_replace(',', '.', $load[1])); + $data['load_15'] = floatval(str_replace(',', '.', $load[2])); + + /** The state of the server-load. */ + $state = 'ok'; + if ($data['load_1'] > 20 ) $state = 'info'; + if ($data['load_1'] > 50 ) $state = 'warning'; + if ($data['load_1'] > 100 ) $state = 'critical'; + if ($data['load_1'] > 150 ) $state = 'error'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorDiskUsage() { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'disk_usage'; + + /** The state of the disk-usage */ + $state = 'ok'; + + /** Fetch the data of ALL devices into a array (needed for monitoring!)*/ + $dfData = shell_exec("df -hT"); + + // split into array + $df = explode("\n", $dfData); + + /* + * ignore the first line, process the rest + */ + for($i=1; $i <= sizeof($df); $i++){ + if ($df[$i] != '') + { + /* + * Make a array of the data + */ + $s = preg_split ("/[\s]+/", $df[$i]); + $data[$i]['fs'] = $s[0]; + $data[$i]['type'] = $s[1]; + $data[$i]['size'] = $s[2]; + $data[$i]['used'] = $s[3]; + $data[$i]['available'] = $s[4]; + $data[$i]['percent'] = $s[5]; + $data[$i]['mounted'] = $s[6]; + /* + * calculate the state + */ + $usePercent = floatval($data[$i]['percent']); + + //* We dont want to check the cdrom drive as a cd / dvd is always 100% full + if($data[$i]['type'] != 'iso9660' && $data[$i]['type'] != 'cramfs' && $data[$i]['type'] != 'udf') { + if ($usePercent > 75) $state = $this->_setState($state, 'info'); + if ($usePercent > 80) $state = $this->_setState($state, 'warning'); + if ($usePercent > 90) $state = $this->_setState($state, 'critical'); + if ($usePercent > 95) $state = $this->_setState($state, 'error'); + } + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMemUsage() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mem_usage'; + + /* + Fetch the data into a array + */ + $miData = shell_exec("cat /proc/meminfo"); + + $memInfo = explode("\n", $miData); + + foreach($memInfo as $line){ + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $tmp = explode(" ", trim($part[1])); + $value = 0; + if ($tmp[1] == 'kB') $value = $tmp[0] * 1024; + $data[$key] = $value; + } + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorCpu() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'cpu_info'; + + /* + Fetch the data into a array + */ + $cpuData = shell_exec("cat /proc/cpuinfo"); + $cpuInfo = explode("\n", $cpuData); + $processor = 0; + + foreach($cpuInfo as $line){ + + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $value = trim($part[1]); + if($key == 'processor') $processor = intval($value); + if($key != '') $data[$key.' '.$processor] = $value; + } + + /* the cpu has no state. It is, what it is */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorServices() + { + global $app; + global $conf; + + /** the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** get the "active" Services of the server from the DB */ + $services = $app->dbmaster->queryOneRecord("SELECT * FROM server WHERE server_id = " . $server_id); + + /* The type of the Monitor-data */ + $type = 'services'; + + /** the State of the monitoring */ + /* ok, if ALL aktive services are running, + * error, if not + * There is no other state! + */ + $state = 'ok'; + + /* Monitor Webserver */ + $data['webserver'] = -1; // unknown - not needed + if ($services['web_server'] == 1) + { + if($this->_checkTcp('localhost', 80)) { + $data['webserver'] = 1; + } else { + $data['webserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor FTP-Server */ + $data['ftpserver'] = -1; // unknown - not needed + if ($services['file_server'] == 1) + { + if($this->_checkFtp('localhost', 21)) { + $data['ftpserver'] = 1; + } else { + $data['ftpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor SMTP-Server */ + $data['smtpserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 25)) { + $data['smtpserver'] = 1; + } else { + $data['smtpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor POP3-Server */ + $data['pop3server'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 110)) { + $data['pop3server'] = 1; + } else { + $data['pop3server'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor IMAP-Server */ + $data['imapserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 143)) { + $data['imapserver'] = 1; + } else { + $data['imapserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor BIND-Server */ + $data['bindserver'] = -1; // unknown - not needed + if ($services['dns_server'] == 1) + { + if($this->_checkTcp('localhost', 53)) { + $data['bindserver'] = 1; + } else { + $data['bindserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor MYSQL-Server */ + $data['mysqlserver'] = -1; // unknown - not needed + if ($services['db_server'] == 1) + { + if($this->_checkTcp('localhost', 3306)) { + $data['mysqlserver'] = 1; + } else { + $data['mysqlserver'] = 0; + $state = 'error'; // because service is down + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorSystemUpdate(){ + /* + * This monitoring is expensive, so do it only once a hour + */ + $min = date('i'); + if ($min != 0) return; + + /* + * OK - here we go... + */ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'system_update'; + + /* This monitoring is only available at debian or Ubuntu */ + if(file_exists('/etc/debian_version')){ + + /* + * first update the "update-database" + */ + shell_exec('apt-get update'); + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $aptData = shell_exec('apt-get -s -qq dist-upgrade'); + if ($aptData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('apt-get -s -q dist-upgrade'); + } + elseif (file_exists("/etc/gentoo-release")) { + + /* + * first update the portage tree + */ + + // In keeping with gentoo's rsync policy, don't update to frequently (every four hours - taken from http://www.gentoo.org/doc/en/source_mirrors.xml) + $do_update = true; + if (file_exists('/usr/portage/metadata/timestamp.chk')) + { + $datetime = file_get_contents('/usr/portage/metadata/timestamp.chk'); + $datetime = trim($datetime); + + $dstamp = strtotime($datetime); + if ($dstamp) + { + $checkat = $dstamp + 14400; // + 4hours + if (mktime() < $checkat) { + $do_update = false; + } + } + } + + if ($do_update) { + shell_exec('emerge --sync --quiet'); + } + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $emergeData = shell_exec('emerge -puDNt --color n --nospinner --quiet world'); + if ($emergeData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('emerge -pvuDNt --color n --nospinner world'); + } + else { + /* + * It is not debian/Ubuntu, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorMailQueue(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mailq'; + + /* Get the data from the mailq */ + $data['output'] = shell_exec('mailq'); + + /* + * The last line has more informations + */ + $tmp = explode("\n", $data['output']); + $more = $tmp[sizeof($tmp) - 1]; + $this->_getIntArray($more); + $data['bytes'] = $res[0]; + $data['requests'] = $res[1]; + + /** The state of the mailq. */ + $state = 'ok'; + if ($data['requests'] > 2000 ) $state = 'info'; + if ($data['requests'] > 5000 ) $state = 'warning'; + if ($data['requests'] > 8000 ) $state = 'critical'; + if ($data['requests'] > 10000 ) $state = 'error'; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorRaid(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'raid_state'; + + /* This monitoring is only available if mdadm is installed */ + $location = system('which mdadm', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('cat /proc/mdstat'); + + /* + * Then calc the state. + */ + $tmp = explode("\n", $data['output']); + $state = 'ok'; + for ($i = 0; $i < sizeof($tmp); $i++){ + /* fetch the next line */ + $line = $tmp[$i]; + + if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) + { + /* One Disk is not working. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of critical + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'critical'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + if (strpos($line, '[__]') !== false) + { + /* both Disk are not working */ + $state = $this->_setState($state, 'error'); + } + if (strpos($line, '[UU]') !== false) + { + /* The disks are OK. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of ok + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'ok'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + } + + } + else { + /* + * mdadm is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorRkHunter(){ + /* + * This monitoring is expensive, so do it only once a day + */ + $min = date('i'); + $hour = date('H'); + if (!($min == 0 && $hour == 23)) return; + + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'rkhunter'; + + /* This monitoring is only available if rkhunter is installed */ + $location = system('which rkhunter', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress'); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * rkhunter is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorFail2ban(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_fail2ban'; + + /* This monitoring is only available if fail2ban is installed */ + $location = system('which fail2ban-client', $retval); // Debian, Ubuntu, Fedora + if($retval !== 0) $location = system('which fail2ban', $retval); // CentOS + if($retval === 0){ + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * fail2ban is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data = ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorSysLog(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'sys_log'; + + /* + * is there any warning or error for this server? + */ + $state = 'ok'; + $dbData = $app->dbmaster->queryAllRecords("SELECT loglevel FROM sys_log WHERE server_id = " . $server_id . " AND loglevel > 0"); + if (is_array($dbData)) { + foreach($dbData as $item){ + if ($item['loglevel'] == 1) $state = $this->_setState($state, 'warning'); + if ($item['loglevel'] == 2) $state = $this->_setState($state, 'error'); + } + } + + /** There is no monitor-data because the data is in the sys_log table */ + $data['output']= ''; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailWarnLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_warn'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailErrLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_err'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMessagesLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_messages'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorISPCCronLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_ispc_cron'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorFreshClamLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_freshclam'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* Get the data from the LAST log-Entry. + * if there can be found: + * WARNING: Your ClamAV installation is OUTDATED! + * then the clamav is outdated. This is a warning! + */ + $state = 'ok'; + + $tmp = explode("\n", $data); + $lastLog = array(); + if ($tmp[sizeof($tmp)-1] == "") + { + /* the log ends with an empty line remove this */ + array_pop($tmp); + } + if (strpos($tmp[sizeof($tmp)-1], "-------------") !== false) + { + /* the log ends with "-----..." remove this */ + array_pop($tmp); + } + for ($i = sizeof($tmp) -1; $i > 0; $i--){ + if (strpos($tmp[$i], "---------") === false){ + /* no delimiter found, so add this to the last-log */ + $lastLog[] = $tmp[$i]; + } + else + { + /* delimiter found, so there is no more line left! */ + break; + } + } + + /* + * Now we have the last log in the array. + * Check if the outdated-string is found... + */ + foreach($lastLog as $line){ + if (strpos(strtolower($line), "outdated") !== false) { + $state = $this->_setState($state, 'warning'); + } + } + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorClamAvLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_clamav'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + // Todo: the state should be calculated. + $state = 'ok'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorIspConfigLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_ispconfig'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + // Todo: the state should be calculated. + $state = 'ok'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function _getLogData($log){ + + $dist = ''; + $logfile = ''; + + if(@is_file('/etc/debian_version')) $dist = 'debian'; + if(@is_file('/etc/redhat-release')) $dist = 'redhat'; + if(@is_file('/etc/SuSE-release')) $dist = 'suse'; + if(@is_file('/etc/gentoo-release')) $dist = 'gentoo'; + + switch($log) { + case 'log_mail': + if($dist == 'debian') $logfile = '/var/log/mail.log'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.info'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_mail_warn': + if($dist == 'debian') $logfile = '/var/log/mail.warn'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.warn'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_mail_err': + if($dist == 'debian') $logfile = '/var/log/mail.err'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.err'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_messages': + if($dist == 'debian') $logfile = '/var/log/messages'; + if($dist == 'redhat') $logfile = '/var/log/messages'; + if($dist == 'suse') $logfile = '/var/log/messages'; + if($dist == 'gentoo') $logfile = '/var/log/messages'; + break; + case 'log_ispc_cron': + if($dist == 'debian') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'redhat') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'suse') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'gentoo') $logfile = '/var/log/cron'; + break; + case 'log_freshclam': + if($dist == 'debian') $logfile = '/var/log/clamav/freshclam.log'; + if($dist == 'redhat') $logfile = (is_file('/var/log/clamav/freshclam.log') ? '/var/log/clamav/freshclam.log' : '/var/log/freshclam.log'); + if($dist == 'suse') $logfile = ''; + if($dist == 'gentoo') $logfile = '/var/log/clamav/freshclam.log'; + break; + case 'log_clamav': + if($dist == 'debian') $logfile = '/var/log/clamav/clamav.log'; + if($dist == 'redhat') $logfile = (is_file('/var/log/clamav/clamd.log') ? '/var/log/clamav/clamd.log' : '/var/log/maillog'); + if($dist == 'suse') $logfile = ''; + if($dist == 'gentoo') $logfile = '/var/log/clamav/clamd.log'; + break; + case 'log_fail2ban': + if($dist == 'debian') $logfile = '/var/log/fail2ban.log'; + if($dist == 'redhat') $logfile = '/var/log/fail2ban.log'; + if($dist == 'suse') $logfile = '/var/log/fail2ban.log'; + if($dist == 'gentoo') $logfile = '/var/log/fail2ban.log'; + break; + case 'log_ispconfig': + if($dist == 'debian') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'redhat') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'suse') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'gentoo') $logfile = '/var/log/ispconfig/ispconfig.log'; + break; + default: + $logfile = ''; + break; + } + + // Getting the logfile content + if($logfile != '') { + $logfile = escapeshellcmd($logfile); + if(stristr($logfile, ';') or substr($logfile,0,9) != '/var/log/' or stristr($logfile, '..')) { + $log = 'Logfile path error.'; + } + else + { + $log = ''; + if(is_readable($logfile)) { + if($fd = popen("tail -n 100 $logfile", 'r')) { + while (!feof($fd)) { + $log .= fgets($fd, 4096); + $n++; + if($n > 1000) break; + } + fclose($fd); + } + } else { + $log = 'Unable to read '.$logfile; + } + } + } + + return $log; + } + + function _checkTcp ($host,$port) { + + $fp = @fsockopen ($host, $port, $errno, $errstr, 2); + + if ($fp) { + fclose($fp); + return true; + } else { + return false; + } + } + + function _checkUdp ($host,$port) { + + $fp = @fsockopen ('udp://'.$host, $port, $errno, $errstr, 2); + + if ($fp) { + fclose($fp); + return true; + } else { + return false; + } + } + + function _checkFtp ($host,$port){ + + $conn_id = @ftp_connect($host, $port); + + if($conn_id){ + @ftp_close($conn_id); + return true; + } else { + return false; + } + } + + /* + Deletes Records older than n. + */ + function _delOldRecords($type, $min, $hour=0, $days=0) { + global $app; + + $now = time(); + $old = $now - ($min * 60) - ($hour * 60 * 60) - ($days * 24 * 60 * 60); + $sql = "DELETE FROM monitor_data " . + "WHERE " . + "type =" . "'" . $app->dbmaster->quote($type) . "' " . + "AND " . + "created < " . $old; + $app->dbmaster->query($sql); + } + + /* + * Set the state to the given level (or higher, but not lesser). + * * If the actual state is critical and you call the method with ok, + * then the state is critical. + * + * * If the actual state is critical and you call the method with error, + * then the state is error. + */ + function _setState($oldState, $newState) + { + /* + * Calculate the weight of the old state + */ + switch ($oldState) { + case 'no_state': $oldInt = 0; + break; + case 'ok': $oldInt = 1; + break; + case 'unknown': $oldInt = 2; + break; + case 'info': $oldInt = 3; + break; + case 'warning': $oldInt = 4; + break; + case 'critical': $oldInt = 5; + break; + case 'error': $oldInt = 6; + break; + } + /* + * Calculate the weight of the new state + */ + switch ($newState) { + case 'no_state': $newInt = 0 ; + break; + case 'ok': $newInt = 1 ; + break; + case 'unknown': $newInt = 2 ; + break; + case 'info': $newInt = 3 ; + break; + case 'warning': $newInt = 4 ; + break; + case 'critical': $newInt = 5 ; + break; + case 'error': $newInt = 6 ; + break; + } + + /* + * Set to the higher level + */ + if ($newInt > $oldInt){ + return $newState; + } + else + { + return $oldState; + } + } + + function _getIntArray($line){ + /** The array of float found */ + $res = array(); + /* First build a array from the line */ + $data = explode(' ', $line); + /* then check if any item is a float */ + foreach ($data as $item) { + if ($item . '' == (int)$item . ''){ + $res[] = $item; + } + } + return $res; + } + + +} // end class + +?> diff --git a/interface/ispconfig/server/mods-available/server_module.inc.php b/interface/ispconfig/server/mods-available/server_module.inc.php new file mode 100644 index 0000000..894c972 --- /dev/null +++ b/interface/ispconfig/server/mods-available/server_module.inc.php @@ -0,0 +1,137 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class server_module { + + var $module_name = 'server_module'; + var $class_name = 'server_module'; + var $actions_available = array( 'server_insert', + 'server_update', + 'server_delete', + 'server_ip_insert', + 'server_ip_update', + 'server_ip_delete', + 'firewall_insert', + 'firewall_update', + 'firewall_delete', + 'software_update_inst_insert', + 'software_update_inst_update', + 'software_update_inst_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('server','server_module','process'); + $app->modules->registerTableHook('server_ip','server_module','process'); + $app->modules->registerTableHook('firewall','server_module','process'); + $app->modules->registerTableHook('software_update_inst','server_module','process'); + + // Register service + //$app->services->registerService('httpd','web_module','restartHttpd'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'server': + if($action == 'i') $app->plugins->raiseEvent('server_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('server_update',$data); + if($action == 'd') $app->plugins->raiseEvent('server_delete',$data); + break; + case 'server_ip': + if($action == 'i') $app->plugins->raiseEvent('server_ip_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('server_ip_update',$data); + if($action == 'd') $app->plugins->raiseEvent('server_ip_delete',$data); + break; + case 'firewall': + if($action == 'i') $app->plugins->raiseEvent('firewall_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('firewall_update',$data); + if($action == 'd') $app->plugins->raiseEvent('firewall_delete',$data); + break; + case 'software_update_inst': + if($action == 'i') $app->plugins->raiseEvent('software_update_inst_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('software_update_inst_update',$data); + if($action == 'd') $app->plugins->raiseEvent('software_update_inst_delete',$data); + break; + } // end switch + } // end function + + /* + // This function is used + function restartHttpd($action = 'restart') { + global $app; + if($action == 'restart') { + exec('/etc/init.d/apache2 restart'); + } else { + exec('/etc/init.d/apache2 reload'); + } + } + */ + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-available/web_module.inc.php b/interface/ispconfig/server/mods-available/web_module.inc.php new file mode 100644 index 0000000..3ddeca5 --- /dev/null +++ b/interface/ispconfig/server/mods-available/web_module.inc.php @@ -0,0 +1,140 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class web_module { + + var $module_name = 'web_module'; + var $class_name = 'web_module'; + var $actions_available = array( 'web_domain_insert', + 'web_domain_update', + 'web_domain_delete', + 'ftp_user_insert', + 'ftp_user_update', + 'ftp_user_delete', + 'shell_user_insert', + 'shell_user_update', + 'shell_user_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + if($conf['services']['web'] == true) { + return true; + } else { + return false; + } + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('web_domain','web_module','process'); + $app->modules->registerTableHook('ftp_user','web_module','process'); + $app->modules->registerTableHook('shell_user','web_module','process'); + + // Register service + $app->services->registerService('httpd','web_module','restartHttpd'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'web_domain': + if($action == 'i') $app->plugins->raiseEvent('web_domain_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('web_domain_update',$data); + if($action == 'd') $app->plugins->raiseEvent('web_domain_delete',$data); + break; + case 'ftp_user': + if($action == 'i') $app->plugins->raiseEvent('ftp_user_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('ftp_user_update',$data); + if($action == 'd') $app->plugins->raiseEvent('ftp_user_delete',$data); + break; + case 'shell_user': + if($action == 'i') $app->plugins->raiseEvent('shell_user_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('shell_user_update',$data); + if($action == 'd') $app->plugins->raiseEvent('shell_user_delete',$data); + break; + } // end switch + } // end function + + + // This function is used + function restartHttpd($action = 'restart') { + global $app; + + $command = ''; + if(is_file('/etc/init.d/httpd')) { + $command = '/etc/init.d/httpd'; + } else { + $command = '/etc/init.d/apache2'; + } + + if($action == 'restart') { + exec($command.' restart'); + } else { + exec($command.' reload'); + } + + } + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-core/monitor_core_module.inc.php b/interface/ispconfig/server/mods-core/monitor_core_module.inc.php new file mode 100644 index 0000000..8447bae --- /dev/null +++ b/interface/ispconfig/server/mods-core/monitor_core_module.inc.php @@ -0,0 +1,1465 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class monitor_core_module { + /* TODO: this should be a config - var instead of a "constant" */ + var $interval = 5; // do the monitoring every 5 minutes + + var $module_name = 'monitor_core_module'; + var $class_name = 'monitor_core_module'; + /* No actions at this time. maybe later... */ + var $actions_available = array(); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + /* none at them moment */ + //$app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + /* none at them moment */ + //$app->modules->registerTableHook('mail_access','mail_module','process'); + + /* + Do the monitor every n minutes and write the result in the db + */ + $min = date('i'); + if (($min % $this->interval) == 0) + { + $this->doMonitor(); + } + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + function process($tablename, $action, $data) { + // global $app; + // + // switch ($tablename) { + // case 'mail_access': + // if($action == 'i') $app->plugins->raiseEvent('mail_access_insert',$data); + // if($action == 'u') $app->plugins->raiseEvent('mail_access_update',$data); + // if($action == 'd') $app->plugins->raiseEvent('mail_access_delete',$data); + // break; + // } // end switch + } // end function + + /* + This method is called every n minutes, when the module ist loaded. + The method then does a system-monitoring + */ + // TODO: what monitoring is done should be a config-var + function doMonitor() + { + /* Calls the single Monitoring steps */ + $this->monitorServer(); + $this->monitorDiskUsage(); + $this->monitorMemUsage(); + $this->monitorCpu(); + $this->monitorServices(); + $this->monitorMailLog(); + $this->monitorMailWarnLog(); + $this->monitorMailErrLog(); + $this->monitorMessagesLog(); + $this->monitorISPCCronLog(); + $this->monitorFreshClamLog(); + $this->monitorClamAvLog(); + $this->monitorIspConfigLog(); + $this->monitorSystemUpdate(); + $this->monitorMailQueue(); + $this->monitorRaid(); + $this->monitorRkHunter(); + $this->monitorFail2ban(); + $this->monitorSysLog(); + } + + function monitorServer(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'server_load'; + + /* + Fetch the data into a array + */ + $procUptime = shell_exec("cat /proc/uptime | cut -f1 -d' '"); + $data['up_days'] = floor($procUptime/86400); + $data['up_hours'] = floor(($procUptime-$data['up_days']*86400)/3600); + $data['up_minutes'] = floor(($procUptime-$data['up_days']*86400-$data['up_hours']*3600)/60); + + $data['uptime'] = shell_exec("uptime"); + + $tmp = explode(",", $data['uptime'], 4); + $tmpUser = explode(" ", trim($tmp[2])); + $data['user_online'] = intval($tmpUser[0]); + + /* Old Load Average Code + $loadTmp = explode(":" , trim($tmp[3])); + $load = explode(",", $loadTmp[1]); + $data['load_1'] = floatval(trim($load[0])); + $data['load_5'] = floatval(trim($load[1])); + $data['load_15'] = floatval(trim($load[2])); */ + + //* New Load Average code to fix "always zero" bug in non-english distros. NEEDS TESTING + $loadTmp = shell_exec("cat /proc/loadavg | cut -f1-3 -d' '"); + $load = explode(" ", $loadTmp); + $data['load_1'] = floatval(str_replace(',', '.', $load[0])); + $data['load_5'] = floatval(str_replace(',', '.', $load[1])); + $data['load_15'] = floatval(str_replace(',', '.', $load[2])); + + /** The state of the server-load. */ + $state = 'ok'; + if ($data['load_1'] > 20 ) $state = 'info'; + if ($data['load_1'] > 50 ) $state = 'warning'; + if ($data['load_1'] > 100 ) $state = 'critical'; + if ($data['load_1'] > 150 ) $state = 'error'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorDiskUsage() { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'disk_usage'; + + /** The state of the disk-usage */ + $state = 'ok'; + + /** Fetch the data of ALL devices into a array (needed for monitoring!)*/ + $dfData = shell_exec("df -hT"); + + // split into array + $df = explode("\n", $dfData); + + /* + * ignore the first line, process the rest + */ + for($i=1; $i <= sizeof($df); $i++){ + if ($df[$i] != '') + { + /* + * Make a array of the data + */ + $s = preg_split ("/[\s]+/", $df[$i]); + $data[$i]['fs'] = $s[0]; + $data[$i]['type'] = $s[1]; + $data[$i]['size'] = $s[2]; + $data[$i]['used'] = $s[3]; + $data[$i]['available'] = $s[4]; + $data[$i]['percent'] = $s[5]; + $data[$i]['mounted'] = $s[6]; + /* + * calculate the state + */ + $usePercent = floatval($data[$i]['percent']); + + //* We dont want to check the cdrom drive as a cd / dvd is always 100% full + if($data[$i]['type'] != 'iso9660' && $data[$i]['type'] != 'cramfs' && $data[$i]['type'] != 'udf') { + if ($usePercent > 75) $state = $this->_setState($state, 'info'); + if ($usePercent > 80) $state = $this->_setState($state, 'warning'); + if ($usePercent > 90) $state = $this->_setState($state, 'critical'); + if ($usePercent > 95) $state = $this->_setState($state, 'error'); + } + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMemUsage() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mem_usage'; + + /* + Fetch the data into a array + */ + $miData = shell_exec("cat /proc/meminfo"); + + $memInfo = explode("\n", $miData); + + foreach($memInfo as $line){ + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $tmp = explode(" ", trim($part[1])); + $value = 0; + if ($tmp[1] == 'kB') $value = $tmp[0] * 1024; + $data[$key] = $value; + } + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorCpu() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'cpu_info'; + + /* + Fetch the data into a array + */ + $cpuData = shell_exec("cat /proc/cpuinfo"); + $cpuInfo = explode("\n", $cpuData); + $processor = 0; + + foreach($cpuInfo as $line){ + + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $value = trim($part[1]); + if($key == 'processor') $processor = intval($value); + if($key != '') $data[$key.' '.$processor] = $value; + } + + /* the cpu has no state. It is, what it is */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorServices() + { + global $app; + global $conf; + + /** the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** get the "active" Services of the server from the DB */ + $services = $app->dbmaster->queryOneRecord("SELECT * FROM server WHERE server_id = " . $server_id); + + /* The type of the Monitor-data */ + $type = 'services'; + + /** the State of the monitoring */ + /* ok, if ALL aktive services are running, + * error, if not + * There is no other state! + */ + $state = 'ok'; + + /* Monitor Webserver */ + $data['webserver'] = -1; // unknown - not needed + if ($services['web_server'] == 1) + { + if($this->_checkTcp('localhost', 80)) { + $data['webserver'] = 1; + } else { + $data['webserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor FTP-Server */ + $data['ftpserver'] = -1; // unknown - not needed + if ($services['file_server'] == 1) + { + if($this->_checkFtp('localhost', 21)) { + $data['ftpserver'] = 1; + } else { + $data['ftpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor SMTP-Server */ + $data['smtpserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 25)) { + $data['smtpserver'] = 1; + } else { + $data['smtpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor POP3-Server */ + $data['pop3server'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 110)) { + $data['pop3server'] = 1; + } else { + $data['pop3server'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor IMAP-Server */ + $data['imapserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 143)) { + $data['imapserver'] = 1; + } else { + $data['imapserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor BIND-Server */ + $data['bindserver'] = -1; // unknown - not needed + if ($services['dns_server'] == 1) + { + if($this->_checkTcp('localhost', 53)) { + $data['bindserver'] = 1; + } else { + $data['bindserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor MYSQL-Server */ + $data['mysqlserver'] = -1; // unknown - not needed + if ($services['db_server'] == 1) + { + if($this->_checkTcp('localhost', 3306)) { + $data['mysqlserver'] = 1; + } else { + $data['mysqlserver'] = 0; + $state = 'error'; // because service is down + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorSystemUpdate(){ + /* + * This monitoring is expensive, so do it only once a hour + */ + $min = date('i'); + if ($min != 0) return; + + /* + * OK - here we go... + */ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'system_update'; + + /* This monitoring is only available at debian or Ubuntu */ + if(file_exists('/etc/debian_version')){ + + /* + * first update the "update-database" + */ + shell_exec('apt-get update'); + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $aptData = shell_exec('apt-get -s -qq dist-upgrade'); + if ($aptData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('apt-get -s -q dist-upgrade'); + } + elseif (file_exists("/etc/gentoo-release")) { + + /* + * first update the portage tree + */ + + // In keeping with gentoo's rsync policy, don't update to frequently (every four hours - taken from http://www.gentoo.org/doc/en/source_mirrors.xml) + $do_update = true; + if (file_exists('/usr/portage/metadata/timestamp.chk')) + { + $datetime = file_get_contents('/usr/portage/metadata/timestamp.chk'); + $datetime = trim($datetime); + + $dstamp = strtotime($datetime); + if ($dstamp) + { + $checkat = $dstamp + 14400; // + 4hours + if (mktime() < $checkat) { + $do_update = false; + } + } + } + + if ($do_update) { + shell_exec('emerge --sync --quiet'); + } + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $emergeData = shell_exec('emerge -puDNt --color n --nospinner --quiet world'); + if ($emergeData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('emerge -pvuDNt --color n --nospinner world'); + } + else { + /* + * It is not debian/Ubuntu, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorMailQueue(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mailq'; + + /* Get the data from the mailq */ + $data['output'] = shell_exec('mailq'); + + /* + * The last line has more informations + */ + $tmp = explode("\n", $data['output']); + $more = $tmp[sizeof($tmp) - 1]; + $this->_getIntArray($more); + $data['bytes'] = $res[0]; + $data['requests'] = $res[1]; + + /** The state of the mailq. */ + $state = 'ok'; + if ($data['requests'] > 2000 ) $state = 'info'; + if ($data['requests'] > 5000 ) $state = 'warning'; + if ($data['requests'] > 8000 ) $state = 'critical'; + if ($data['requests'] > 10000 ) $state = 'error'; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorRaid(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'raid_state'; + + /* This monitoring is only available if mdadm is installed */ + $location = system('which mdadm', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('cat /proc/mdstat'); + + /* + * Then calc the state. + */ + $tmp = explode("\n", $data['output']); + $state = 'ok'; + for ($i = 0; $i < sizeof($tmp); $i++){ + /* fetch the next line */ + $line = $tmp[$i]; + + if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) + { + /* One Disk is not working. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of critical + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'critical'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + if (strpos($line, '[__]') !== false) + { + /* both Disk are not working */ + $state = $this->_setState($state, 'error'); + } + if (strpos($line, '[UU]') !== false) + { + /* The disks are OK. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of ok + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'ok'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + } + + } + else { + /* + * mdadm is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorRkHunter(){ + /* + * This monitoring is expensive, so do it only once a day + */ + $min = date('i'); + $hour = date('H'); + if (!($min == 0 && $hour == 23)) return; + + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'rkhunter'; + + /* This monitoring is only available if rkhunter is installed */ + $location = system('which rkhunter', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress'); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * rkhunter is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorFail2ban(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_fail2ban'; + + /* This monitoring is only available if fail2ban is installed */ + $location = system('which fail2ban-client', $retval); // Debian, Ubuntu, Fedora + if($retval !== 0) $location = system('which fail2ban', $retval); // CentOS + if($retval === 0){ + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * fail2ban is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data = ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorSysLog(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'sys_log'; + + /* + * is there any warning or error for this server? + */ + $state = 'ok'; + $dbData = $app->dbmaster->queryAllRecords("SELECT loglevel FROM sys_log WHERE server_id = " . $server_id . " AND loglevel > 0"); + if (is_array($dbData)) { + foreach($dbData as $item){ + if ($item['loglevel'] == 1) $state = $this->_setState($state, 'warning'); + if ($item['loglevel'] == 2) $state = $this->_setState($state, 'error'); + } + } + + /** There is no monitor-data because the data is in the sys_log table */ + $data['output']= ''; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailWarnLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_warn'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailErrLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_err'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMessagesLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_messages'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorISPCCronLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_ispc_cron'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorFreshClamLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_freshclam'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* Get the data from the LAST log-Entry. + * if there can be found: + * WARNING: Your ClamAV installation is OUTDATED! + * then the clamav is outdated. This is a warning! + */ + $state = 'ok'; + + $tmp = explode("\n", $data); + $lastLog = array(); + if ($tmp[sizeof($tmp)-1] == "") + { + /* the log ends with an empty line remove this */ + array_pop($tmp); + } + if (strpos($tmp[sizeof($tmp)-1], "-------------") !== false) + { + /* the log ends with "-----..." remove this */ + array_pop($tmp); + } + for ($i = sizeof($tmp) -1; $i > 0; $i--){ + if (strpos($tmp[$i], "---------") === false){ + /* no delimiter found, so add this to the last-log */ + $lastLog[] = $tmp[$i]; + } + else + { + /* delimiter found, so there is no more line left! */ + break; + } + } + + /* + * Now we have the last log in the array. + * Check if the outdated-string is found... + */ + foreach($lastLog as $line){ + if (strpos(strtolower($line), "outdated") !== false) { + $state = $this->_setState($state, 'warning'); + } + } + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorClamAvLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_clamav'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + // Todo: the state should be calculated. + $state = 'ok'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorIspConfigLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_ispconfig'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + // Todo: the state should be calculated. + $state = 'ok'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function _getLogData($log){ + + $dist = ''; + $logfile = ''; + + if(@is_file('/etc/debian_version')) $dist = 'debian'; + if(@is_file('/etc/redhat-release')) $dist = 'redhat'; + if(@is_file('/etc/SuSE-release')) $dist = 'suse'; + if(@is_file('/etc/gentoo-release')) $dist = 'gentoo'; + + switch($log) { + case 'log_mail': + if($dist == 'debian') $logfile = '/var/log/mail.log'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.info'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_mail_warn': + if($dist == 'debian') $logfile = '/var/log/mail.warn'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.warn'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_mail_err': + if($dist == 'debian') $logfile = '/var/log/mail.err'; + if($dist == 'redhat') $logfile = '/var/log/maillog'; + if($dist == 'suse') $logfile = '/var/log/mail.err'; + if($dist == 'gentoo') $logfile = '/var/log/maillog'; + break; + case 'log_messages': + if($dist == 'debian') $logfile = '/var/log/messages'; + if($dist == 'redhat') $logfile = '/var/log/messages'; + if($dist == 'suse') $logfile = '/var/log/messages'; + if($dist == 'gentoo') $logfile = '/var/log/messages'; + break; + case 'log_ispc_cron': + if($dist == 'debian') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'redhat') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'suse') $logfile = '/var/log/ispconfig/cron.log'; + if($dist == 'gentoo') $logfile = '/var/log/cron'; + break; + case 'log_freshclam': + if($dist == 'debian') $logfile = '/var/log/clamav/freshclam.log'; + if($dist == 'redhat') $logfile = (is_file('/var/log/clamav/freshclam.log') ? '/var/log/clamav/freshclam.log' : '/var/log/freshclam.log'); + if($dist == 'suse') $logfile = ''; + if($dist == 'gentoo') $logfile = '/var/log/clamav/freshclam.log'; + break; + case 'log_clamav': + if($dist == 'debian') $logfile = '/var/log/clamav/clamav.log'; + if($dist == 'redhat') $logfile = (is_file('/var/log/clamav/clamd.log') ? '/var/log/clamav/clamd.log' : '/var/log/maillog'); + if($dist == 'suse') $logfile = ''; + if($dist == 'gentoo') $logfile = '/var/log/clamav/clamd.log'; + break; + case 'log_fail2ban': + if($dist == 'debian') $logfile = '/var/log/fail2ban.log'; + if($dist == 'redhat') $logfile = '/var/log/fail2ban.log'; + if($dist == 'suse') $logfile = '/var/log/fail2ban.log'; + if($dist == 'gentoo') $logfile = '/var/log/fail2ban.log'; + break; + case 'log_ispconfig': + if($dist == 'debian') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'redhat') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'suse') $logfile = '/var/log/ispconfig/ispconfig.log'; + if($dist == 'gentoo') $logfile = '/var/log/ispconfig/ispconfig.log'; + break; + default: + $logfile = ''; + break; + } + + // Getting the logfile content + if($logfile != '') { + $logfile = escapeshellcmd($logfile); + if(stristr($logfile, ';') or substr($logfile,0,9) != '/var/log/' or stristr($logfile, '..')) { + $log = 'Logfile path error.'; + } + else + { + $log = ''; + if(is_readable($logfile)) { + if($fd = popen("tail -n 100 $logfile", 'r')) { + while (!feof($fd)) { + $log .= fgets($fd, 4096); + $n++; + if($n > 1000) break; + } + fclose($fd); + } + } else { + $log = 'Unable to read '.$logfile; + } + } + } + + return $log; + } + + function _checkTcp ($host,$port) { + + $fp = @fsockopen ($host, $port, $errno, $errstr, 2); + + if ($fp) { + fclose($fp); + return true; + } else { + return false; + } + } + + function _checkUdp ($host,$port) { + + $fp = @fsockopen ('udp://'.$host, $port, $errno, $errstr, 2); + + if ($fp) { + fclose($fp); + return true; + } else { + return false; + } + } + + function _checkFtp ($host,$port){ + + $conn_id = @ftp_connect($host, $port); + + if($conn_id){ + @ftp_close($conn_id); + return true; + } else { + return false; + } + } + + /* + Deletes Records older than n. + */ + function _delOldRecords($type, $min, $hour=0, $days=0) { + global $app; + + $now = time(); + $old = $now - ($min * 60) - ($hour * 60 * 60) - ($days * 24 * 60 * 60); + $sql = "DELETE FROM monitor_data " . + "WHERE " . + "type =" . "'" . $app->dbmaster->quote($type) . "' " . + "AND " . + "created < " . $old; + $app->dbmaster->query($sql); + } + + /* + * Set the state to the given level (or higher, but not lesser). + * * If the actual state is critical and you call the method with ok, + * then the state is critical. + * + * * If the actual state is critical and you call the method with error, + * then the state is error. + */ + function _setState($oldState, $newState) + { + /* + * Calculate the weight of the old state + */ + switch ($oldState) { + case 'no_state': $oldInt = 0; + break; + case 'ok': $oldInt = 1; + break; + case 'unknown': $oldInt = 2; + break; + case 'info': $oldInt = 3; + break; + case 'warning': $oldInt = 4; + break; + case 'critical': $oldInt = 5; + break; + case 'error': $oldInt = 6; + break; + } + /* + * Calculate the weight of the new state + */ + switch ($newState) { + case 'no_state': $newInt = 0 ; + break; + case 'ok': $newInt = 1 ; + break; + case 'unknown': $newInt = 2 ; + break; + case 'info': $newInt = 3 ; + break; + case 'warning': $newInt = 4 ; + break; + case 'critical': $newInt = 5 ; + break; + case 'error': $newInt = 6 ; + break; + } + + /* + * Set to the higher level + */ + if ($newInt > $oldInt){ + return $newState; + } + else + { + return $oldState; + } + } + + function _getIntArray($line){ + /** The array of float found */ + $res = array(); + /* First build a array from the line */ + $data = explode(' ', $line); + /* then check if any item is a float */ + foreach ($data as $item) { + if ($item . '' == (int)$item . ''){ + $res[] = $item; + } + } + return $res; + } + + +} // end class + +?> diff --git a/interface/ispconfig/server/mods-enabled/client_module.inc.php b/interface/ispconfig/server/mods-enabled/client_module.inc.php new file mode 100644 index 0000000..4d46f11 --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/client_module.inc.php @@ -0,0 +1,96 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class client_module { + + var $module_name = 'client_module'; + var $class_name = 'client_module'; + var $actions_available = array( 'client_insert', + 'client_update', + 'client_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('client',$this->module_name,'process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'client': + if($action == 'i') $app->plugins->raiseEvent('client_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('client_update',$data); + if($action == 'd') $app->plugins->raiseEvent('client_delete',$data); + break; + } // end switch + } // end function + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-enabled/cron_module.inc.php b/interface/ispconfig/server/mods-enabled/cron_module.inc.php new file mode 100644 index 0000000..503d7ef --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/cron_module.inc.php @@ -0,0 +1,97 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +Modified 2009, Marius Cramer, pixcept KG +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class cron_module { + + var $module_name = 'cron_module'; + var $class_name = 'cron_module'; + var $actions_available = array( 'cron_insert', + 'cron_update', + 'cron_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('cron',$this->module_name,'process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'cron': + if($action == 'i') $app->plugins->raiseEvent('cron_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('cron_update',$data); + if($action == 'd') $app->plugins->raiseEvent('cron_delete',$data); + break; + } // end switch + } // end function + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-enabled/database_module.inc.php b/interface/ispconfig/server/mods-enabled/database_module.inc.php new file mode 100644 index 0000000..2dac689 --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/database_module.inc.php @@ -0,0 +1,103 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class database_module { + + var $module_name = 'database_module'; + var $class_name = 'database_module'; + var $actions_available = array( 'database_insert', + 'database_update', + 'database_delete' + ); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + if($conf['services']['db'] == true) { + return true; + } else { + return false; + } + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('web_database','database_module','process'); + + // Register service + //$app->services->registerService('httpd','web_module','restartHttpd'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'web_database': + if($action == 'i') $app->plugins->raiseEvent('database_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('database_update',$data); + if($action == 'd') $app->plugins->raiseEvent('database_delete',$data); + break; + } // end switch + } // end function + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-enabled/dns_module.inc.php b/interface/ispconfig/server/mods-enabled/dns_module.inc.php new file mode 100644 index 0000000..17c36bd --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/dns_module.inc.php @@ -0,0 +1,128 @@ +<?php + +/* +Copyright (c) 2009, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class dns_module { + + var $module_name = 'dns_module'; + var $class_name = 'dns_module'; + var $actions_available = array( 'dns_soa_insert', + 'dns_soa_update', + 'dns_soa_delete', + 'dns_rr_insert', + 'dns_rr_update', + 'dns_rr_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('dns_soa',$this->module_name,'process'); + $app->modules->registerTableHook('dns_rr',$this->module_name,'process'); + + + // Register service + $app->services->registerService('bind','dns_module','restartBind'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'dns_soa': + if($action == 'i') $app->plugins->raiseEvent('dns_soa_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('dns_soa_update',$data); + if($action == 'd') $app->plugins->raiseEvent('dns_soa_delete',$data); + break; + case 'dns_rr': + if($action == 'i') $app->plugins->raiseEvent('dns_rr_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('dns_rr_update',$data); + if($action == 'd') $app->plugins->raiseEvent('dns_rr_delete',$data); + break; + } // end switch + } // end function + + + function restartBind($action = 'restart') { + global $app; + + $command = ''; + if(is_file('/etc/init.d/bind9')) { + $command = '/etc/init.d/bind9'; + } else { + $command = '/etc/init.d/named'; + } + + if($action == 'restart') { + exec($command.' restart'); + } else { + exec($command.' reload'); + } + + } + + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-enabled/mail_module.inc.php b/interface/ispconfig/server/mods-enabled/mail_module.inc.php new file mode 100644 index 0000000..d0c33f2 --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/mail_module.inc.php @@ -0,0 +1,153 @@ +<?php + +/* +Copyright (c) 2007, Till Brehm, projektfarm Gmbh +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class mail_module { + + var $module_name = 'mail_module'; + var $class_name = 'mail_module'; + var $actions_available = array( 'mail_domain_insert', + 'mail_domain_update', + 'mail_domain_delete', + 'mail_user_insert', + 'mail_user_update', + 'mail_user_delete', + 'mail_access_insert', + 'mail_access_update', + 'mail_access_delete', + 'mail_forwarding_insert', + 'mail_forwarding_update', + 'mail_forwarding_delete', + 'mail_transport_insert', + 'mail_transport_update', + 'mail_transport_delete', + 'mail_get_insert', + 'mail_get_update', + 'mail_get_delete', + 'mail_content_filter_insert', + 'mail_content_filter_update', + 'mail_content_filter_delete'); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + if($conf['services']['mail'] == true) { + return true; + } else { + return false; + } + + } + + /* + This function is called when the module is loaded + */ + + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + + $app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + + $app->modules->registerTableHook('mail_access','mail_module','process'); + $app->modules->registerTableHook('mail_domain','mail_module','process'); + $app->modules->registerTableHook('mail_forwarding','mail_module','process'); + $app->modules->registerTableHook('mail_transport','mail_module','process'); + $app->modules->registerTableHook('mail_user','mail_module','process'); + $app->modules->registerTableHook('mail_get','mail_module','process'); + $app->modules->registerTableHook('mail_content_filter','mail_module','process'); + + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + + function process($tablename,$action,$data) { + global $app; + + switch ($tablename) { + case 'mail_access': + if($action == 'i') $app->plugins->raiseEvent('mail_access_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_access_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_access_delete',$data); + break; + case 'mail_domain': + if($action == 'i') $app->plugins->raiseEvent('mail_domain_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_domain_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_domain_delete',$data); + break; + case 'mail_forwarding': + if($action == 'i') $app->plugins->raiseEvent('mail_forwarding_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_forwarding_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_forwarding_delete',$data); + break; + case 'mail_transport': + if($action == 'i') $app->plugins->raiseEvent('mail_transport_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_transport_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_transport_delete',$data); + break; + case 'mail_user': + if($action == 'i') $app->plugins->raiseEvent('mail_user_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_user_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_user_delete',$data); + break; + case 'mail_get': + if($action == 'i') $app->plugins->raiseEvent('mail_get_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_get_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_get_delete',$data); + break; + case 'mail_content_filter': + if($action == 'i') $app->plugins->raiseEvent('mail_content_filter_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_content_filter_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_content_filter_delete',$data); + break; + } // end switch + } // end function + +} // end class + +?> \ No newline at end of file diff --git a/interface/ispconfig/server/mods-enabled/monitor_core_module.inc.php b/interface/ispconfig/server/mods-enabled/monitor_core_module.inc.php new file mode 100644 index 0000000..8447bae --- /dev/null +++ b/interface/ispconfig/server/mods-enabled/monitor_core_module.inc.php @@ -0,0 +1,1465 @@ +<?php +/* +Copyright (c) 2007-2008, Till Brehm, projektfarm Gmbh and Oliver Vogel www.muv.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +class monitor_core_module { + /* TODO: this should be a config - var instead of a "constant" */ + var $interval = 5; // do the monitoring every 5 minutes + + var $module_name = 'monitor_core_module'; + var $class_name = 'monitor_core_module'; + /* No actions at this time. maybe later... */ + var $actions_available = array(); + + //* This function is called during ispconfig installation to determine + // if a symlink shall be created for this plugin. + function onInstall() { + global $conf; + + return true; + + } + + /* + This function is called when the module is loaded + */ + function onLoad() { + global $app; + + /* + Annonce the actions that where provided by this module, so plugins + can register on them. + */ + /* none at them moment */ + //$app->plugins->announceEvents($this->module_name,$this->actions_available); + + /* + As we want to get notified of any changes on several database tables, + we register for them. + + The following function registers the function "functionname" + to be executed when a record for the table "dbtable" is + processed in the sys_datalog. "classname" is the name of the + class that contains the function functionname. + */ + /* none at them moment */ + //$app->modules->registerTableHook('mail_access','mail_module','process'); + + /* + Do the monitor every n minutes and write the result in the db + */ + $min = date('i'); + if (($min % $this->interval) == 0) + { + $this->doMonitor(); + } + } + + /* + This function is called when a change in one of the registered tables is detected. + The function then raises the events for the plugins. + */ + function process($tablename, $action, $data) { + // global $app; + // + // switch ($tablename) { + // case 'mail_access': + // if($action == 'i') $app->plugins->raiseEvent('mail_access_insert',$data); + // if($action == 'u') $app->plugins->raiseEvent('mail_access_update',$data); + // if($action == 'd') $app->plugins->raiseEvent('mail_access_delete',$data); + // break; + // } // end switch + } // end function + + /* + This method is called every n minutes, when the module ist loaded. + The method then does a system-monitoring + */ + // TODO: what monitoring is done should be a config-var + function doMonitor() + { + /* Calls the single Monitoring steps */ + $this->monitorServer(); + $this->monitorDiskUsage(); + $this->monitorMemUsage(); + $this->monitorCpu(); + $this->monitorServices(); + $this->monitorMailLog(); + $this->monitorMailWarnLog(); + $this->monitorMailErrLog(); + $this->monitorMessagesLog(); + $this->monitorISPCCronLog(); + $this->monitorFreshClamLog(); + $this->monitorClamAvLog(); + $this->monitorIspConfigLog(); + $this->monitorSystemUpdate(); + $this->monitorMailQueue(); + $this->monitorRaid(); + $this->monitorRkHunter(); + $this->monitorFail2ban(); + $this->monitorSysLog(); + } + + function monitorServer(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'server_load'; + + /* + Fetch the data into a array + */ + $procUptime = shell_exec("cat /proc/uptime | cut -f1 -d' '"); + $data['up_days'] = floor($procUptime/86400); + $data['up_hours'] = floor(($procUptime-$data['up_days']*86400)/3600); + $data['up_minutes'] = floor(($procUptime-$data['up_days']*86400-$data['up_hours']*3600)/60); + + $data['uptime'] = shell_exec("uptime"); + + $tmp = explode(",", $data['uptime'], 4); + $tmpUser = explode(" ", trim($tmp[2])); + $data['user_online'] = intval($tmpUser[0]); + + /* Old Load Average Code + $loadTmp = explode(":" , trim($tmp[3])); + $load = explode(",", $loadTmp[1]); + $data['load_1'] = floatval(trim($load[0])); + $data['load_5'] = floatval(trim($load[1])); + $data['load_15'] = floatval(trim($load[2])); */ + + //* New Load Average code to fix "always zero" bug in non-english distros. NEEDS TESTING + $loadTmp = shell_exec("cat /proc/loadavg | cut -f1-3 -d' '"); + $load = explode(" ", $loadTmp); + $data['load_1'] = floatval(str_replace(',', '.', $load[0])); + $data['load_5'] = floatval(str_replace(',', '.', $load[1])); + $data['load_15'] = floatval(str_replace(',', '.', $load[2])); + + /** The state of the server-load. */ + $state = 'ok'; + if ($data['load_1'] > 20 ) $state = 'info'; + if ($data['load_1'] > 50 ) $state = 'warning'; + if ($data['load_1'] > 100 ) $state = 'critical'; + if ($data['load_1'] > 150 ) $state = 'error'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorDiskUsage() { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'disk_usage'; + + /** The state of the disk-usage */ + $state = 'ok'; + + /** Fetch the data of ALL devices into a array (needed for monitoring!)*/ + $dfData = shell_exec("df -hT"); + + // split into array + $df = explode("\n", $dfData); + + /* + * ignore the first line, process the rest + */ + for($i=1; $i <= sizeof($df); $i++){ + if ($df[$i] != '') + { + /* + * Make a array of the data + */ + $s = preg_split ("/[\s]+/", $df[$i]); + $data[$i]['fs'] = $s[0]; + $data[$i]['type'] = $s[1]; + $data[$i]['size'] = $s[2]; + $data[$i]['used'] = $s[3]; + $data[$i]['available'] = $s[4]; + $data[$i]['percent'] = $s[5]; + $data[$i]['mounted'] = $s[6]; + /* + * calculate the state + */ + $usePercent = floatval($data[$i]['percent']); + + //* We dont want to check the cdrom drive as a cd / dvd is always 100% full + if($data[$i]['type'] != 'iso9660' && $data[$i]['type'] != 'cramfs' && $data[$i]['type'] != 'udf') { + if ($usePercent > 75) $state = $this->_setState($state, 'info'); + if ($usePercent > 80) $state = $this->_setState($state, 'warning'); + if ($usePercent > 90) $state = $this->_setState($state, 'critical'); + if ($usePercent > 95) $state = $this->_setState($state, 'error'); + } + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMemUsage() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mem_usage'; + + /* + Fetch the data into a array + */ + $miData = shell_exec("cat /proc/meminfo"); + + $memInfo = explode("\n", $miData); + + foreach($memInfo as $line){ + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $tmp = explode(" ", trim($part[1])); + $value = 0; + if ($tmp[1] == 'kB') $value = $tmp[0] * 1024; + $data[$key] = $value; + } + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorCpu() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'cpu_info'; + + /* + Fetch the data into a array + */ + $cpuData = shell_exec("cat /proc/cpuinfo"); + $cpuInfo = explode("\n", $cpuData); + $processor = 0; + + foreach($cpuInfo as $line){ + + $part = preg_split("/:/", $line); + $key = trim($part[0]); + $value = trim($part[1]); + if($key == 'processor') $processor = intval($value); + if($key != '') $data[$key.' '.$processor] = $value; + } + + /* the cpu has no state. It is, what it is */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorServices() + { + global $app; + global $conf; + + /** the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** get the "active" Services of the server from the DB */ + $services = $app->dbmaster->queryOneRecord("SELECT * FROM server WHERE server_id = " . $server_id); + + /* The type of the Monitor-data */ + $type = 'services'; + + /** the State of the monitoring */ + /* ok, if ALL aktive services are running, + * error, if not + * There is no other state! + */ + $state = 'ok'; + + /* Monitor Webserver */ + $data['webserver'] = -1; // unknown - not needed + if ($services['web_server'] == 1) + { + if($this->_checkTcp('localhost', 80)) { + $data['webserver'] = 1; + } else { + $data['webserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor FTP-Server */ + $data['ftpserver'] = -1; // unknown - not needed + if ($services['file_server'] == 1) + { + if($this->_checkFtp('localhost', 21)) { + $data['ftpserver'] = 1; + } else { + $data['ftpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor SMTP-Server */ + $data['smtpserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 25)) { + $data['smtpserver'] = 1; + } else { + $data['smtpserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor POP3-Server */ + $data['pop3server'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 110)) { + $data['pop3server'] = 1; + } else { + $data['pop3server'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor IMAP-Server */ + $data['imapserver'] = -1; // unknown - not needed + if ($services['mail_server'] == 1) + { + if($this->_checkTcp('localhost', 143)) { + $data['imapserver'] = 1; + } else { + $data['imapserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor BIND-Server */ + $data['bindserver'] = -1; // unknown - not needed + if ($services['dns_server'] == 1) + { + if($this->_checkTcp('localhost', 53)) { + $data['bindserver'] = 1; + } else { + $data['bindserver'] = 0; + $state = 'error'; // because service is down + } + } + + /* Monitor MYSQL-Server */ + $data['mysqlserver'] = -1; // unknown - not needed + if ($services['db_server'] == 1) + { + if($this->_checkTcp('localhost', 3306)) { + $data['mysqlserver'] = 1; + } else { + $data['mysqlserver'] = 0; + $state = 'error'; // because service is down + } + } + + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorSystemUpdate(){ + /* + * This monitoring is expensive, so do it only once a hour + */ + $min = date('i'); + if ($min != 0) return; + + /* + * OK - here we go... + */ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'system_update'; + + /* This monitoring is only available at debian or Ubuntu */ + if(file_exists('/etc/debian_version')){ + + /* + * first update the "update-database" + */ + shell_exec('apt-get update'); + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $aptData = shell_exec('apt-get -s -qq dist-upgrade'); + if ($aptData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('apt-get -s -q dist-upgrade'); + } + elseif (file_exists("/etc/gentoo-release")) { + + /* + * first update the portage tree + */ + + // In keeping with gentoo's rsync policy, don't update to frequently (every four hours - taken from http://www.gentoo.org/doc/en/source_mirrors.xml) + $do_update = true; + if (file_exists('/usr/portage/metadata/timestamp.chk')) + { + $datetime = file_get_contents('/usr/portage/metadata/timestamp.chk'); + $datetime = trim($datetime); + + $dstamp = strtotime($datetime); + if ($dstamp) + { + $checkat = $dstamp + 14400; // + 4hours + if (mktime() < $checkat) { + $do_update = false; + } + } + } + + if ($do_update) { + shell_exec('emerge --sync --quiet'); + } + + /* + * Then test the upgrade. + * if there is any output, then there is a needed update + */ + $emergeData = shell_exec('emerge -puDNt --color n --nospinner --quiet world'); + if ($emergeData == '') + { + /* There is nothing to update! */ + $state = 'ok'; + } + else + { + /* There is something to update! */ + $state = 'warning'; + } + + /* + * Fetch the output + */ + $data['output'] = shell_exec('emerge -pvuDNt --color n --nospinner world'); + } + else { + /* + * It is not debian/Ubuntu, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorMailQueue(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'mailq'; + + /* Get the data from the mailq */ + $data['output'] = shell_exec('mailq'); + + /* + * The last line has more informations + */ + $tmp = explode("\n", $data['output']); + $more = $tmp[sizeof($tmp) - 1]; + $this->_getIntArray($more); + $data['bytes'] = $res[0]; + $data['requests'] = $res[1]; + + /** The state of the mailq. */ + $state = 'ok'; + if ($data['requests'] > 2000 ) $state = 'info'; + if ($data['requests'] > 5000 ) $state = 'warning'; + if ($data['requests'] > 8000 ) $state = 'critical'; + if ($data['requests'] > 10000 ) $state = 'error'; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorRaid(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'raid_state'; + + /* This monitoring is only available if mdadm is installed */ + $location = system('which mdadm', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('cat /proc/mdstat'); + + /* + * Then calc the state. + */ + $tmp = explode("\n", $data['output']); + $state = 'ok'; + for ($i = 0; $i < sizeof($tmp); $i++){ + /* fetch the next line */ + $line = $tmp[$i]; + + if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) + { + /* One Disk is not working. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of critical + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'critical'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + if (strpos($line, '[__]') !== false) + { + /* both Disk are not working */ + $state = $this->_setState($state, 'error'); + } + if (strpos($line, '[UU]') !== false) + { + /* The disks are OK. + * if the next line starts with "[>" or "[=" then + * recovery (resync) is in state and the state is + * information instead of ok + */ + $nextLine = $tmp[$i+1]; + if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) { + $state = $this->_setState($state, 'ok'); + } + else + { + $state = $this->_setState($state, 'info'); + } + } + } + + } + else { + /* + * mdadm is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorRkHunter(){ + /* + * This monitoring is expensive, so do it only once a day + */ + $min = date('i'); + $hour = date('H'); + if (!($min == 0 && $hour == 23)) return; + + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'rkhunter'; + + /* This monitoring is only available if rkhunter is installed */ + $location = system('which rkhunter', $retval); + if($retval === 0){ + /* + * Fetch the output + */ + $data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress'); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * rkhunter is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data['output']= ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 0, 2); + } + + function monitorFail2ban(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_fail2ban'; + + /* This monitoring is only available if fail2ban is installed */ + $location = system('which fail2ban-client', $retval); // Debian, Ubuntu, Fedora + if($retval !== 0) $location = system('which fail2ban', $retval); // CentOS + if($retval === 0){ + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * At this moment, there is no state (maybe later) + */ + $state = 'no_state'; + } + else { + /* + * fail2ban is not installed, so there is no data and no state + * + * no_state, NOT unknown, because "unknown" is shown as state + * inside the GUI. no_state is hidden. + * + * We have to write NO DATA inside the DB, because the GUI + * could not know, if there is any dat, or not... + */ + $state = 'no_state'; + $data = ''; + } + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorSysLog(){ + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'sys_log'; + + /* + * is there any warning or error for this server? + */ + $state = 'ok'; + $dbData = $app->dbmaster->queryAllRecords("SELECT loglevel FROM sys_log WHERE server_id = " . $server_id . " AND loglevel > 0"); + if (is_array($dbData)) { + foreach($dbData as $item){ + if ($item['loglevel'] == 1) $state = $this->_setState($state, 'warning'); + if ($item['loglevel'] == 2) $state = $this->_setState($state, 'error'); + } + } + + /** There is no monitor-data because the data is in the sys_log table */ + $data['output']= ''; + + /* + * Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailWarnLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_warn'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorMailErrLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_mail_err'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + + function monitorMessagesLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_messages'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->query($sql); + + /* The new data is written, now we can delete the old one */ + $this->_delOldRecords($type, 10); + } + + function monitorISPCCronLog() + { + global $app; + global $conf; + + /* the id of the server as int */ + $server_id = intval($conf["server_id"]); + + /** The type of the data */ + $type = 'log_ispc_cron'; + + /* Get the data of the log */ + $data = $this->_getLogData($type); + + /* + * actually this info has no state. + * maybe someone knows better...???... + */ + $state = 'no_state'; + + /* + Insert the data into the database + */ + $sql = "INSERT INTO monitor_data (server_id, type, created, data, state) " . + "VALUES (". + $server_id . ", " . + "'" . $app->dbmaster->quote($type) . "', " . + time() . ", " . + "'" . $app->dbmaster->quote(serialize($data)) . "', " . + "'" . $state . "'" . + ")"; + $app->dbmaster->